give gray offlien scale to website
window.addEventListener('online', function(e) {
// add your logic to update the UI when online
console.log("You are online");
document.body.style.filter = 'grayscale(0)';
}, false);
window.addEventListener('offline', function(e) {
// add your logic to update the UI when offline
console.log("You are offline");
document.body.style.filter = 'grayscale(1)';
}, false);
Also in JavaScript:
- redirect with javascript
- rest operator javascript
- set datetimepicker javascript
- js replace all substrings
- localtunnel
- Programação web com Node e Express Beneficiando-se da stack JavaScript
- require("history").createBrowserHistory` instead of `require("history/createBrowserHistory")`
- tab adds tab textarea javascript
- console.clear js
- Javascript generate random string
- bind and unbind jquery validation
- remove last char string js
- nodejs make directory
- swiftyjson
- tensorflow js cdn
- array reverse algorithm in js
- node default version
- howt to disable a select tag using js
- javascript repeat each second
- express js example
- javascript last index
- react route multiple components
- or statment javscript
- setinterval vs settimeout js