Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <script>
- /*=============save mark to the local Storage=============*/
- (function() {
- if (adoric) {
- adoric.on('lightbox:after:show', function() {
- window.localStorage.setItem('adoricCampaignIsShowing','true');
- });
- adoric.on('lightbox:after:close', function() {
- var campaignShowing = false;
- adoric.lightboxes.forEach(function(item) {
- if (item.isShowing) {
- campaignsShowing = true;
- }
- });
- if (!campaignShowing) {
- window.localStorage.setItem('adoricCampaignIsShowing','false');
- }
- });
- }
- })();
- </script>
- <script>
- /*=============save mark to the cookies=============*/
- (function() {
- if (adoric) {
- adoric.on('lightbox:after:show', function() {
- window.document.cookie = "adoricCampaignIsShowing=true; expires=session; path=/";
- });
- adoric.on('lightbox:after:close', function() {
- var campaignShowing = false;
- adoric.lightboxes.forEach(function(item) {
- if (item.isShowing) {
- campaignsShowing = true;
- }
- });
- if (!campaignShowing) {
- window.document.cookie = "adoricCampaignIsShowing=false; expires=session; path=/";
- }
- });
- }
- })();
- </script>
Add Comment
Please, Sign In to add comment