update
This commit is contained in:
parent
567faeb145
commit
d8a2acff41
5 changed files with 14 additions and 11 deletions
4
ads.html
4
ads.html
|
|
@ -175,8 +175,6 @@ document.getElementById("adsStatus").innerHTML = 'null, not selected (on)';
|
|||
<script src="/data/adsJsonVar.js"></script>
|
||||
<script async src="/js/ad.js" onload="fuAds('', 'ads2', '')"></script>
|
||||
|
||||
<script>
|
||||
fuAds('', 'result', '', 'all');
|
||||
</script>
|
||||
<script async src="/js/ad.js" onload="fuAds('', 'result', 'all')"></script>
|
||||
</body>
|
||||
</html>
|
||||
|
|
|
|||
|
|
@ -216,11 +216,16 @@ document.head.innerHTML += `
|
|||
<!--<script async src="/projects/insert-icon/script.js" onload="insertIcon('menuIcon', 'strict')"></script>-->
|
||||
<div class="post bg border3List">
|
||||
|
||||
<a class="insertIcon block padding light border3List b" href="https://addons.mozilla.org/firefox/user/17469135/">Install from Store</a>
|
||||
<a class="insertIcon block padding light border3List b brand" href="https://addons.mozilla.org/firefox/user/17469135/">Install from Store</a>
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
<script src="/projects/insert-icon/script.js"></script>
|
||||
<script>
|
||||
insertIcon("insertIcon", 'strict');
|
||||
</script>
|
||||
|
||||
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -393,7 +393,7 @@ document.head.innerHTML += `
|
|||
<div id="insertIcon" class="postXL bg border3List">
|
||||
<a class="block padding light border3List" href="https://color.firefox.com/">Create own theme with https://color.firefox.com/</a>
|
||||
|
||||
<a class="block padding light border3List bold" href="https://addons.mozilla.org/firefox/user/17469135/">Install from Store</a>
|
||||
<a class="insertIcon block padding light border3List bold brand" href="https://addons.mozilla.org/firefox/user/17469135/">Install from Store</a>
|
||||
|
||||
<div class="block padding light border3List small op">Dark and Light inspired by Gnome Yaru theme</div>
|
||||
|
||||
|
|
@ -406,7 +406,7 @@ document.head.innerHTML += `
|
|||
|
||||
<script src="/projects/insert-icon/script.js"></script>
|
||||
<script>
|
||||
insertIcon("insertIcon");
|
||||
insertIcon("insertIcon", 'strict');
|
||||
</script>
|
||||
|
||||
|
||||
|
|
|
|||
8
js/ad.js
8
js/ad.js
|
|
@ -1,7 +1,7 @@
|
|||
/* v.1.2.5 */
|
||||
/* v.1.2.6 */
|
||||
// print ads from json var list: fuAds('', 'ads2 - id where print', '');
|
||||
|
||||
function fuAds(none, idAds, none2, comAds){
|
||||
function fuAds(none, idAds, comAds){
|
||||
|
||||
// none - reserver var
|
||||
|
||||
|
|
@ -94,12 +94,12 @@ document.getElementById(idAds).innerHTML = '<div class="center"><div class="ligh
|
|||
|
||||
|
||||
|
||||
|
||||
if(comAds == 'all'){
|
||||
|
||||
adsPrint = '';
|
||||
ads.forEach((item, index) => {
|
||||
|
||||
// privacy
|
||||
// hide, privacy
|
||||
if(ads[index]['text'].search("src=") != -1&&confDataCollection != 'on'){
|
||||
ads[index]['text'] = `<span class="op" title=""><a class="brand" href="/privacy.${confExt}">hidden (privacy), need allow cookie</a></span>`;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -16,7 +16,7 @@ var confExt = 'html';
|
|||
// added URL to titile
|
||||
var domainNameToTitle = confHost.split('.');
|
||||
domainNameToTitle = domainNameToTitle[0];
|
||||
document.getElementsByTagName('title')[0].innerHTML += ' : '+domainNameToTitle;
|
||||
document.getElementsByTagName('title')[0].innerHTML += ' / '+domainNameToTitle;
|
||||
|
||||
// css color fixed if offline
|
||||
if(String(window.location.href).slice(0, 4) != 'http'){
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue