javascript - bug in content warning page -
i'm helping friend little debugging site, i'm not familiar php though use help.
if (has_nav_menu('header menu')) { ht_header_menu_wp_nav(); // header menu }else{ echo '<nav id="header-menu">'; echo '<ul>'; ht_no_wp_nav_notice(); echo '</ul>'; echo '</nav>'; } ht_top_social_media(); ht_top_search_from(); $url=$_server['http_referer']; $server=$_server['http_referer']; $str=strstr($url,'www.sample.com'); if($str==""){ ?> <script> $( document ).ready(function() { $("#popup").show(); $("#warningpop").show(); }); </script> <?php }
it's code content warning page, meaning in first time enter page: popup , warningpop shown, second time when press enter button http_refer should address of site , not show popup , warningpop. thing when press enter see popup , warningpop can't access content of site. tell me why? :)
Comments
Post a Comment