New website focusing on ERP services.
This commit is contained in:
@@ -1,46 +0,0 @@
|
||||
|
||||
import Events from "../../lib/events.js";
|
||||
import BasePage from "../base.js";
|
||||
|
||||
export default class PageAdminHome extends BasePage {
|
||||
static hash = hashPageAdminHome;
|
||||
|
||||
constructor(router) {
|
||||
super(router);
|
||||
}
|
||||
|
||||
initialize() {
|
||||
this.sharedInitialize();
|
||||
this.hookupAdminStore();
|
||||
}
|
||||
|
||||
hookupAdminStore() {
|
||||
this.hookupButtonsNavStoreProductCategories();
|
||||
this.hookupButtonsNavStoreProducts();
|
||||
this.hookupButtonsNavStoreProductPermutations();
|
||||
this.hookupButtonsNavStoreProductPrices();
|
||||
this.hookupButtonsNavStoreStockItems();
|
||||
this.hookupButtonsNavStoreProductVariations();
|
||||
|
||||
this.hookupButtonsNavAdminStoreStripeProducts();
|
||||
this.hookupButtonsNavAdminStoreStripePrices();
|
||||
}
|
||||
hookupButtonsNavAdminStoreStripeProducts() {
|
||||
Events.initialiseEventHandler('.' + flagNavAdminStoreStripeProducts, flagInitialised, function(navigator) {
|
||||
navigator.addEventListener("click", function(event) {
|
||||
this.router.navigateToHash(hashPageAdminStoreStripeProducts);
|
||||
});
|
||||
});
|
||||
}
|
||||
hookupButtonsNavAdminStoreStripePrices() {
|
||||
Events.initialiseEventHandler('.' + flagNavAdminStoreStripePrices, flagInitialised, function(navigator) {
|
||||
navigator.addEventListener("click", function(event) {
|
||||
this.router.navigateToHash(hashPageAdminStoreStripePrices);
|
||||
});
|
||||
});
|
||||
}
|
||||
|
||||
leave() {
|
||||
super.leave();
|
||||
}
|
||||
}
|
||||
@@ -10,5 +10,12 @@ export default class PageContact extends BasePage {
|
||||
|
||||
initialize() {
|
||||
this.sharedInitialize();
|
||||
this.hookupButtonSubmitFormContactUs();
|
||||
}
|
||||
|
||||
hookupButtonSubmitFormContactUs() {
|
||||
const button = document.querySelector('form input[type="submit"]');
|
||||
button.classList.add(flagButton);
|
||||
button.classList.add(flagButtonPrimary);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,5 +1,9 @@
|
||||
|
||||
// internal
|
||||
import BasePage from "../base.js";
|
||||
// external
|
||||
import AOS from 'aos';
|
||||
|
||||
|
||||
export default class PageHome extends BasePage {
|
||||
static hash = hashPageHome;
|
||||
@@ -11,8 +15,45 @@ export default class PageHome extends BasePage {
|
||||
initialize() {
|
||||
this.sharedInitialize();
|
||||
this.hookupButtonsNavContact();
|
||||
// this.initialiseAOS();
|
||||
this.initialiseAnimations();
|
||||
}
|
||||
|
||||
/* AOS */
|
||||
initialiseAOS() {
|
||||
AOS.init({
|
||||
duration: 1000,
|
||||
once: true,
|
||||
});
|
||||
}
|
||||
/* Manual animations *
|
||||
initialiseAnimations() {
|
||||
// Check if IntersectionObserver is supported
|
||||
if ('IntersectionObserver' in window) {
|
||||
const observer = new IntersectionObserver((entries) => {
|
||||
entries.forEach(entry => {
|
||||
if (entry.isIntersecting) {
|
||||
entry.target.classList.add('active');
|
||||
}
|
||||
});
|
||||
}, {
|
||||
threshold: 0.1,
|
||||
rootMargin: '50px'
|
||||
});
|
||||
|
||||
// Observe all elements with 'reveal' class
|
||||
document.querySelectorAll('.reveal').forEach((element) => {
|
||||
observer.observe(element);
|
||||
});
|
||||
} else {
|
||||
// If IntersectionObserver is not supported, make all elements visible
|
||||
document.querySelectorAll('.reveal').forEach((element) => {
|
||||
element.style.opacity = 1;
|
||||
});
|
||||
}
|
||||
}
|
||||
*/
|
||||
|
||||
leave() {
|
||||
super.leave();
|
||||
}
|
||||
|
||||
@@ -1,19 +0,0 @@
|
||||
|
||||
import BasePage from "../base.js";
|
||||
|
||||
export default class PageServices extends BasePage {
|
||||
static hash = hashPageServices;
|
||||
|
||||
constructor(router) {
|
||||
super(router);
|
||||
}
|
||||
|
||||
initialize() {
|
||||
this.sharedInitialize();
|
||||
}
|
||||
|
||||
leave() {
|
||||
super.leave();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user