-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
b32c482
commit 6efd269
Showing
20 changed files
with
1,450 additions
and
799 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
/** | ||
* General function to be called for required JS actions. | ||
*/ | ||
|
||
var $ = jQuery; | ||
$(document).ready(function () { | ||
//Hide free guide notification popup | ||
$(document).on('click', '.cf-pluginpop-close', function () { | ||
|
||
var popupName = $(this).attr('data-popup-name'); | ||
setCookieGeneral('banner_' + popupName, "yes", 60 * 24 * 7); | ||
$('.' + popupName).hide(); | ||
}); | ||
|
||
}); | ||
|
||
//set cookies | ||
function setCookieGeneral(name, value, minutes) { | ||
var expires = ""; | ||
if (minutes) { | ||
var date = new Date(); | ||
date.setTime(date.getTime() + (minutes * 60 * 1000)); | ||
expires = "; expires=" + date.toUTCString(); | ||
} | ||
document.cookie = name + "=" + (value || "") + expires + "; path=/"; | ||
} | ||
|
Oops, something went wrong.