1
0
mirror of https://github.com/chylex/TweetDuck.git synced 2025-08-18 22:24:53 +02:00
Files
.github
.idea
bld
lib
linux
resources
Content
api
error
images
introduction
login
notification
example
screenshot
add_skip_button.js
disable_clipboard_formatting.js
expand_links_or_show_tooltip.js
handle_links.js
handle_show_this_thread_link.js
notification.css
recalculate_tweet_sent_time.js
reset_scroll_position_on_load.js
scroll_smoothly.js
setup_body_hover_class.js
plugins
tweetdeck
update
.all.js
bootstrap.js
load.js
Design
Guide
Plugins
..code-workspace
windows
.gitattributes
.gitignore
LICENSE.md
README.md
TweetDuck.sln
TweetDuck.sln.DotSettings
Version.cs
global.json

13 lines
326 B
JavaScript

/**
* Adds a class to the <body> element when hovering the notification.
*/
export default function() {
document.body.addEventListener("mouseenter", function(){
document.body.classList.add("td-hover");
});
document.body.addEventListener("mouseleave", function(){
document.body.classList.remove("td-hover");
});
};