update
This commit is contained in:
parent
aa60b75cf6
commit
ccf3179e85
2 changed files with 20 additions and 9 deletions
10
js/main.js
10
js/main.js
|
|
@ -1,4 +1,4 @@
|
|||
// v.3.4.0
|
||||
// v.3.4.1
|
||||
|
||||
// conf
|
||||
var symbolForSplit = 'pwxortuzqu'; // for split
|
||||
|
|
@ -24,9 +24,10 @@ document.getElementById('theme').id = 'themeDisable';
|
|||
}
|
||||
|
||||
|
||||
document.fonts.ready.then(function() {
|
||||
|
||||
|
||||
|
||||
});
|
||||
|
||||
|
||||
|
||||
|
|
@ -73,7 +74,7 @@ mainPrintMsg('footer', `
|
|||
|
||||
|
||||
|
||||
/*
|
||||
|
||||
// adding link to footer if project: script.js and style.css
|
||||
if((window.location.href).indexOf(('/projects/')) >= 0||(window.location.href).indexOf(('/mini-projects/')) >= 0){
|
||||
fetch('script.js').then(function(response) {
|
||||
|
|
@ -88,7 +89,7 @@ if (response.status != '404') { mainPrintMsg('fStyle', `<span><a class="orange"
|
|||
}
|
||||
});
|
||||
}
|
||||
*/
|
||||
|
||||
|
||||
//mainPrintMsg('fCode', `<span>`+window.location.href+`</span>`);
|
||||
|
||||
|
|
@ -815,3 +816,4 @@ gtag('config', confGoogleAnalyticsId);
|
|||
|
||||
};
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
// v.2.1.2
|
||||
// v.2.1.3
|
||||
// About: insert icon using class name. Current js using: google fonts, costum text name and insert image or symbol, and inster by url favicon site
|
||||
// icons fonts in header
|
||||
|
||||
|
|
@ -201,19 +201,17 @@ counter++;
|
|||
|
||||
|
||||
|
||||
|
||||
// in progressssssssssssssssssssssssssss
|
||||
|
||||
// main insert icons if rule bellow true and text icon == text from link
|
||||
if(check == 'exit'){
|
||||
icArr = [...new Set(icArr)];
|
||||
//icon = icArr.toString();
|
||||
icon = icArr.join('');
|
||||
|
||||
linkText = `<span class="material-icons ico" style="font-size: 16px;">
|
||||
linkText = `<span class="material-icons ico" style="font-size: 16px; color: var(--b3);">
|
||||
${icon}
|
||||
</span>`+'<span class="pre"> </span>'+linkText;
|
||||
document.getElementsByClassName(classNameForInsert)[index].innerHTML = linkText;
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
|
@ -226,6 +224,17 @@ icArr = [];
|
|||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
if(navigator.onLine != true){
|
||||
document.body.innerHTML += `
|
||||
<style>
|
||||
.material-icons { display: none; }
|
||||
</style>
|
||||
`;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue