Commit 8e2bfad2429ef0fc2d8c5d12357e65dafb924bea
1 parent
6eb3ac28
cookie
Showing
1 changed file
with
7 additions
and
1 deletions
Show diff stats
src/app/frontend/views/index.php
| ... | ... | @@ -268,7 +268,13 @@ $page_title = isset( $page_title ) && !empty( $page_title ) ? $page_title : ''; |
| 268 | 268 | |
| 269 | 269 | <script> |
| 270 | 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) { | |
| 272 | + var b = new RegExp(a+'=([^;]){1,}'); | |
| 273 | + var c = b.exec(document.cookie); | |
| 274 | + if(c) c = c[0].split('='); | |
| 275 | + else return false; | |
| 276 | + return c[1] ? c[1] : false; | |
| 277 | + } | |
| 272 | 278 | var cookie = getCookie('popup'); |
| 273 | 279 | if (cookie !== '1') { |
| 274 | 280 | setTimeout(function(){$(".open-delivery-modal").show();},1000); | ... | ... |