online v1
This commit is contained in:
@@ -1,3 +0,0 @@
|
||||
(function() {
|
||||
// Empty script
|
||||
})();
|
||||
@@ -38,7 +38,7 @@ document.addEventListener("DOMContentLoaded", function () {
|
||||
// Check if we're on a page in the sites/ folder
|
||||
const currentPath = window.location.pathname;
|
||||
const isInSitesFolder = currentPath.includes('/sites/');
|
||||
const imagePath = isInSitesFolder ? '../images/additional/spidy.png' : 'images/additional/spidy.png';
|
||||
const imagePath = isInSitesFolder ? '../images/icons/spider.png' : 'images/icons/spider.png';
|
||||
newIcon.src = imagePath;
|
||||
|
||||
icon.parentNode.replaceChild(newIcon, icon);
|
||||
@@ -46,7 +46,7 @@ document.addEventListener("DOMContentLoaded", function () {
|
||||
// Update existing img
|
||||
const currentPath = window.location.pathname;
|
||||
const isInSitesFolder = currentPath.includes('/sites/');
|
||||
const imagePath = isInSitesFolder ? '../images/additional/spidy.png' : 'images/additional/spidy.png';
|
||||
const imagePath = isInSitesFolder ? '../images/icons/spider.png' : 'images/icons/spider.png';
|
||||
icon.src = imagePath;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -650,5 +650,5 @@ document.addEventListener('DOMContentLoaded', function() {
|
||||
window.addEventListener('scroll', requestTick, { passive: true });
|
||||
|
||||
// ===== INITIALIZATION COMPLETE =====
|
||||
console.log('Tech-Onepager initialized successfully');
|
||||
//console.log('Tech-Onepager initialized successfully');
|
||||
});
|
||||
|
||||
1
Profice WebSite/scripts/tech-onepager.min.js
vendored
1
Profice WebSite/scripts/tech-onepager.min.js
vendored
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user