Skip to content

Commit 4cff3da

Browse files
committed
404
1 parent 1f391b1 commit 4cff3da

8 files changed

Lines changed: 18 additions & 16 deletions

File tree

dist/about.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -481,12 +481,12 @@
481481
});
482482

483483
function isNoMobilePage() {
484-
return window.location.pathname === '/no-mobile.html';
484+
return window.location.pathname === './no-mobile.html';
485485
}
486486

487487
function checkScreenSize() {
488488
if (window.innerWidth < 1680 && !isNoMobilePage()) {
489-
window.location.href = '/no-mobile.html';
489+
window.location.href = './no-mobile.html';
490490
}
491491
}
492492

dist/batch-tools.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -546,12 +546,12 @@
546546
});
547547

548548
function isNoMobilePage() {
549-
return window.location.pathname === '/no-mobile.html';
549+
return window.location.pathname === './no-mobile.html';
550550
}
551551

552552
function checkScreenSize() {
553553
if (window.innerWidth < 1680 && !isNoMobilePage()) {
554-
window.location.href = '/no-mobile.html';
554+
window.location.href = './no-mobile.html';
555555
}
556556
}
557557

dist/index.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -528,12 +528,12 @@
528528
});
529529

530530
function isNoMobilePage() {
531-
return window.location.pathname === '/no-mobile.html';
531+
return window.location.pathname === './no-mobile.html';
532532
}
533533

534534
function checkScreenSize() {
535535
if (window.innerWidth < 1680 && !isNoMobilePage()) {
536-
window.location.href = '/no-mobile.html';
536+
window.location.href = './no-mobile.html';
537537
}
538538
}
539539

dist/projects.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -481,12 +481,12 @@
481481
});
482482

483483
function isNoMobilePage() {
484-
return window.location.pathname === '/no-mobile.html';
484+
return window.location.pathname === './no-mobile.html';
485485
}
486486

487487
function checkScreenSize() {
488488
if (window.innerWidth < 1680 && !isNoMobilePage()) {
489-
window.location.href = '/no-mobile.html';
489+
window.location.href = './no-mobile.html';
490490
}
491491
}
492492

dist/settings.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -498,12 +498,12 @@
498498
});
499499

500500
function isNoMobilePage() {
501-
return window.location.pathname === '/no-mobile.html';
501+
return window.location.pathname === './no-mobile.html';
502502
}
503503

504504
function checkScreenSize() {
505505
if (window.innerWidth < 1680 && !isNoMobilePage()) {
506-
window.location.href = '/no-mobile.html';
506+
window.location.href = './no-mobile.html';
507507
}
508508
}
509509

dist/storage-tools.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -684,12 +684,12 @@
684684
});
685685

686686
function isNoMobilePage() {
687-
return window.location.pathname === '/no-mobile.html';
687+
return window.location.pathname === './no-mobile.html';
688688
}
689689

690690
function checkScreenSize() {
691691
if (window.innerWidth < 1680 && !isNoMobilePage()) {
692-
window.location.href = '/no-mobile.html';
692+
window.location.href = './no-mobile.html';
693693
}
694694
}
695695

dist/web-snippets.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -550,12 +550,12 @@
550550
});
551551

552552
function isNoMobilePage() {
553-
return window.location.pathname === '/no-mobile.html';
553+
return window.location.pathname === './no-mobile.html';
554554
}
555555

556556
function checkScreenSize() {
557557
if (window.innerWidth < 1680 && !isNoMobilePage()) {
558-
window.location.href = '/no-mobile.html';
558+
window.location.href = './no-mobile.html';
559559
}
560560
}
561561

src/includes/_layout/layout.pug

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,8 @@ html(lang="en")
2626

2727
script.
2828

29+
30+
2931
//- Dark theme
3032
const storedTheme = localStorage.getItem('theme');
3133
if (storedTheme === 'dark') {
@@ -52,12 +54,12 @@ script.
5254
});
5355

5456
function isNoMobilePage() {
55-
return window.location.pathname === '/no-mobile.html';
57+
return window.location.pathname === './no-mobile.html';
5658
}
5759

5860
function checkScreenSize() {
5961
if (window.innerWidth < 1680 && !isNoMobilePage()) {
60-
window.location.href = '/no-mobile.html';
62+
window.location.href = './no-mobile.html';
6163
}
6264
}
6365

0 commit comments

Comments
 (0)