[ Index ] |
PHP Cross Reference of YOURLS |
[Summary view] [Print] [Text view]
1 2 // If javascript is enabled, display the button 3 document.getElementById('yourls-always').style.display = 'block'; 4 5 // When button clicked, store a cookie that says the user doesn't want a toolbar 6 document.getElementById('yourls-always').onclick = yourls_cookie_no_toolbar_please; 7 function yourls_cookie_no_toolbar_please() { 8 var exdate=new Date(); 9 exdate.setDate( exdate.getDate()+365 ); // store 365 days 10 document.cookie = "yourls_no_toolbar=1;expires="+exdate.toUTCString() ; 11 } 12
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
Generated: Mon Mar 31 05:10:02 2025 | Cross-referenced by PHPXref 0.7.1 |