Commit 6903c37b8ec3db05f00bd65fd15f1d03ae77a3e6

Authored by Alex Savenko
1 parent 3dbaa92b

cookie

Showing 1 changed file with 1 additions and 6 deletions   Show diff stats
src/app/frontend/views/index.php
@@ -268,12 +268,7 @@ $page_title = isset( $page_title ) && !empty( $page_title ) ? $page_title : ''; @@ -268,12 +268,7 @@ $page_title = isset( $page_title ) && !empty( $page_title ) ? $page_title : '';
268 268
269 <script> 269 <script>
270 $(document).ready(function(){ 270 $(document).ready(function(){
271 - function getCookie(name) {  
272 - var matches = document.cookie.match(new RegExp(  
273 - "(?:^|; )" + name.replace(/([\.$?*|{}\(\)\[\]\\\/\+^])/g, '\\$1') + "=([^;]*)"  
274 - ));  
275 - return matches ? decodeURIComponent(matches[1]) : undefined;  
276 - } 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;}
277 var cookie = getCookie('popup'); 272 var cookie = getCookie('popup');
278 alert(cookie); 273 alert(cookie);
279 if (cookie != '1') { 274 if (cookie != '1') {