Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function notebookNotification(setting)
- {
- $("#lightNotificationContainer").show();
- var notificationAnimation = window.setInterval('$("#darkNotificationContainer").toggle()', 1000);
- if(setting == 0)
- {
- window.clearInterval(notificationAnimation);
- $("#lightNotificationContainer").hide();
- $("#darkNotificationContainer").hide();
- }
- }
- var intervalID;
- function notebookNotification(setting)
- {
- if(setting == 0)
- {
- if(intervalID) {
- window.clearInterval(intervalID);
- intervalID = null;
- }
- $("#lightNotificationContainer").hide();
- $("#darkNotificationContainer").hide();
- }
- else
- {
- $("#lightNotificationContainer").show();
- if(!intervalID) {
- intervalID = window.setInterval('$("#darkNotificationContainer").toggle()', 1000);
- }
- }
- }
- var keepflashing = true;
- var isShowing = true;
- function notebookNotification()
- {
- if(!isShowing)
- $("#lightNotificationContainer").show();
- else
- $("#lightNotificationContainer").show();
- isShowing = !isShowing;
- if(keepflashing)
- setTimeout( function(){ notebookNotification(setting); },100);
- else
- {
- $("#lightNotificationContainer").hide();
- $("#darkNotificationContainer").hide();
- }
- }
- function notebookNotification(setting)
- {
- if(setting == 0)
- {
- $("#lightNotificationContainer").hide();
- $("#darkNotificationContainer").hide();
- }
- else
- {
- $("#lightNotificationContainer").show();
- window.setInterval('$("#darkNotificationContainer").toggle()', 1000);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement