diff --git a/404.html b/404.html index 440d9253..84154bc3 100644 --- a/404.html +++ b/404.html @@ -81,7 +81,7 @@
diff --git a/js/main.js b/js/main.js index 726370e2..2d384c73 100644 --- a/js/main.js +++ b/js/main.js @@ -1,4 +1,4 @@ -// v.3.4.1 +// v.3.4.2 // conf var symbolForSplit = 'pwxortuzqu'; // for split @@ -30,7 +30,17 @@ document.fonts.ready.then(function() { }); - +function mainPrintMsg(id, PrintMsg, option){ +if(document.getElementById(id) != null){ +if(option == 'plus'||option == '+'){ +document.getElementById(id).innerHTML += PrintMsg; +}else{ +document.getElementById(id).innerHTML = PrintMsg; +} +}else{ +// console.log(id+' not fount'); +} +} // start footer mainPrintMsg('footer', ` @@ -51,7 +61,7 @@ mainPrintMsg('footer', ` Themes Twi / X -cookie: status +Cookie ads: ${localStorage.getItem('confAdsStatus')} @@ -149,7 +159,7 @@ confDataCollection = 'on'; if(localStorage.getItem('confDataCollection') != null){ confDataCollection = localStorage.getItem('confDataCollection'); } -mainPrintMsg('fPrivacy', `cookies: ${confDataCollection}`); +mainPrintMsg('fPrivacy', `cookie: ${confDataCollection}`); @@ -695,13 +705,7 @@ function fuReload(){ location.reload(true); } function reload(){ location.reload(true); } -function mainPrintMsg(id, PrintMsg){ -if(document.getElementById(id) != null){ -document.getElementById(id).innerHTML += PrintMsg; -}else{ -// console.log(id+' not fount'); -} -} + @@ -778,7 +782,7 @@ z-index: 2;
-

🍪 Allow Cookies for third parties?

+

Allow Cookie for third parties?

This is necessary to improve the site. (for relevant Ads, Statistics)

@@ -798,7 +802,7 @@ function cookiePopup(option){ localStorage.setItem('confDataCollection', option); if(document.getElementById("cookiePopup") != null){ document.getElementById("cookiePopup").style.display = "none"; -mainPrintMsg('fPrivacy', `cookies: ${option}`); +mainPrintMsg('fPrivacy', `cookie: ${option}`); } } // end diff --git a/projects/17-insert-icon/script.js b/projects/17-insert-icon/script.js index 22011c4b..b8450eee 100644 --- a/projects/17-insert-icon/script.js +++ b/projects/17-insert-icon/script.js @@ -286,7 +286,7 @@ margin: 0; .material-icons { display: none; } -`); +`,'+'); //https://developer.mozilla.org/en-US/docs/Web/API/FontFaceSet/check @@ -308,7 +308,7 @@ mainPrintMsg('footer', ` -`); +`,'+'); } // "loaded" }