Hide on inactivity
How do I make an hide on inactivity?
What is a hide on inactivity? How do you make a hide on inactivity? This script and codes were developed by SNÖGRAFX on 26 August 2022, Friday.
Hide on inactivity - Script Codes HTML Codes
<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>Hide on inactivity</title> <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/meyer-reset/2.0/reset.min.css"> <link rel="stylesheet" href="css/style.css">
</head>
<body> <div id='thing'></div> <script src='http://cdnjs.cloudflare.com/ajax/libs/jquery/2.1.3/jquery.min.js'></script> <script src="js/index.js"></script>
</body>
</html>
Hide on inactivity - Script Codes CSS Codes
body { background: maroon;
}
#thing { background: orange; padding: 3em; margin: 3em; height: 3em; width: 3em;
}
Hide on inactivity - Script Codes JS Codes
var el = '#thing';
var interval = 1;
setInterval(function(){ if(interval == 5){ $(el).hide(); interval = 1; } interval = interval+1; console.log(interval);
},800);
$(document).bind('mousemove keypress', function() { $(el).show(); interval = 1;
});
Developer | SNÖGRAFX |
Username | snografx |
Uploaded | August 26, 2022 |
Rating | 3 |
Size | 2,082 Kb |
Views | 52,624 |
Find the perfect freelance services for your business! Fiverr's mission is to change how the world works together. Fiverr connects businesses with freelancers offering digital services in 500+ categories. Find Developer!
Name | Size |
CityPlanner Logo Loading Animation 2017 | 2,589 Kb |
Basic parallax | 2,269 Kb |
Owl Carousel, Centred Content | 2,773 Kb |
CSS Navigation buttons | 2,460 Kb |
Clickable back element | 1,517 Kb |
Full page parallax | 1,957 Kb |
CityPlanner fallback | 4,228 Kb |
Mondrian Flexbox | 2,229 Kb |
Simple content swap | 1,859 Kb |
Google-style CSS options button | 2,293 Kb |
Jasper is the AI Content Generator that helps you and your team break through creative blocks to create amazing, original content 10X faster. Discover all the ways the Jasper AI Content Platform can help streamline your creative workflows. Start For Free!
Name | Username | Size |
Adding and Removing Element | Accimeesterlin | 2,119 Kb |
Svg penguin | _massimo | 2,990 Kb |
Z-index demo | Kblh | 1,534 Kb |
Beveled corners using CSS border attribute | DawsonMediaD | 2,136 Kb |
Wip elementary os navbar | Nickcolley | 2,993 Kb |
Simple Login Form Template | Banunn | 3,571 Kb |
A Pen by Moeid Saleem | Moeidsaleem | 1,862 Kb |
Mosaic transition effect between two photos using jQuery | Stathisg | 2,518 Kb |
Use the Twitchtv JSON API | Roksanaop | 3,561 Kb |
A Pen by panstable | Panstable | 2,940 Kb |
Surf anonymously, prevent hackers from acquiring your IP address, send anonymous email, and encrypt your Internet connection. High speed, ultra secure, and easy to use. Instant setup. Hide Your IP Now!