GET AFID

if(isset($_SESSION[‘afid’])){ //debug code //echo “session set”; //var_dump($_SESSION[‘afid’]); } else{ $afid=get_query_var(‘afid’); unset($_SESSION[‘afid’]); if($afid==””){$afid=”CAE-DIRECT-FORM”;} $_SESSION[‘afid’] =filter_var($afid, FILTER_SANITIZE_STRIPPED); //var_dump($_SESSION[‘afid’]); //var_dump(get_query_var(‘afid’)); } if(!isset($_SESSION[‘token’])){ // GENERATE THE TOKEN, ADD AN EXPIRY TIMESTAMP $length = 32; $_SESSION[‘token’] = substr( base_convert( sha1( uniqid( mt_rand() ) ), 16,…Continue reading

Passive Listener

addEventListener(document, “touchstart”, function(e) { console.log(e.defaultPrevented); // will be false e.preventDefault(); // does nothing since the listener is passive console.log(e.defaultPrevented); // still false }, Modernizr.passiveeventlisteners ? {passive: true} : false);Continue reading

Change Star color of JetReviews plugin

/* Change Star Icon Color for JetReviews Plugin */ .jet-reviews-stars-field .jet-reviews-stars–filled i { color: #00CE7C !important; } /* Fix Double Search bar and x */ input[type=”search”]::-webkit-search-decoration, input[type=”search”]::-webkit-search-cancel-button, input[type=”search”]::-webkit-search-results-button, input[type=”search”]::-webkit-search-results-decoration { -webkit-appearance:none; }Continue reading