Commit 6eb3ac286072cd89879fa82ca44824d3e646f23f

Authored by Alex Savenko
1 parent a48a9f56

cookie

Showing 1 changed file with 3 additions and 1 deletions   Show diff stats
src/app/frontend/views/index.php
@@ -270,10 +270,12 @@ $page_title = isset( $page_title ) && !empty( $page_title ) ? $page_title : ''; @@ -270,10 +270,12 @@ $page_title = isset( $page_title ) && !empty( $page_title ) ? $page_title : '';
270 $(document).ready(function(){ 270 $(document).ready(function(){
271 function getCookie(a) {var b = new RegExp(a+'=([^;]){1,}');var c = b.exec(document.cookie);if(c) c = c[0].split('=');else return false;return c[1] ? c[1] : false;} 271 function getCookie(a) {var b = new RegExp(a+'=([^;]){1,}');var c = b.exec(document.cookie);if(c) c = c[0].split('=');else return false;return c[1] ? c[1] : false;}
272 var cookie = getCookie('popup'); 272 var cookie = getCookie('popup');
273 - alert(cookie);  
274 if (cookie !== '1') { 273 if (cookie !== '1') {
275 setTimeout(function(){$(".open-delivery-modal").show();},1000); 274 setTimeout(function(){$(".open-delivery-modal").show();},1000);
276 } 275 }
  276 + else {
  277 + $(".open-delivery-modal").hide();
  278 + }
277 }); 279 });
278 $(".open-delivery-modal div img").click(function(){ 280 $(".open-delivery-modal div img").click(function(){
279 $(".delivery-form-par").show(); 281 $(".delivery-form-par").show();