Search
 
SCRIPT & CODE EXAMPLE
 

JAVASCRIPT

preview.cookie-consent.js

<script type="text/javascript">
    function setCookie(key, value, expiry) {
        var expires = new Date();
        expires.setTime(expires.getTime() + (expiry * 24 * 60 * 60 * 1000));
        document.cookie = key + '=' + value + ';expires=' + expires.toUTCString();
    }

    function getCookie(key) {
        var keyValue = document.cookie.match('(^|;) ?' + key + '=([^;]*)(;|$)');
        return keyValue ? keyValue[2] : null;
    }

    function eraseCookie(key) {
        var keyValue = getCookie(key);
        setCookie(key, keyValue, '-1');
    }

</script>
Comment

PREVIOUS NEXT
Code Example
Javascript :: settimeout react native focus text input 
Javascript :: select text with vim vscode 
Javascript :: DeleteAsync 
Javascript :: make express app object accessible from all project modules 
Javascript :: 1521334061 
Javascript :: download xml file asp.net web api and angularjs 
Javascript :: angular copy folder to dist 
Javascript :: all callbacks and function for iCheck plugin 
Javascript :: how we use usefef in map function 
Javascript :: vue expected string with value got number with value 
Javascript :: react native icon onpress remove highlight onpress 
Javascript :: select value from select and pass it to useeffect 
Javascript :: js get word before question mark 
Javascript :: how to remove tashkeel from arabic charactor 
Javascript :: agora token Renewal 
Javascript :: Ajax Mixed content blocked 
Javascript :: VueJs System Modifier keys like exact ctrl alt shift meta 
Javascript :: react native controlling device brightness 
Javascript :: google search input javascript 
Javascript :: xslt "node to string" 
Javascript :: NO "ELSE" STATEMENT IN THIS CODE 
Javascript :: update a particular holder view in recycler 
Javascript :: js array find first match 
Javascript :: jquery click ony works once on dropdown 
Javascript :: Angular : pass data to component loaded via route 
Javascript :: javascript random to abs 
Javascript :: Music bot by Laa & ia1q & Ess 
Javascript :: Dynamically Generated Table 
Javascript :: char code to string javascript 
Javascript :: pixijs circle 
ADD CONTENT
Topic
Content
Source link
Name
6+9 =