aboutsummaryrefslogtreecommitdiff
path: root/src/js/app.js
diff options
context:
space:
mode:
authorkaotisk <kaotisk@arching-kaos.org>2024-11-23 09:37:00 +0200
committerkaotisk <kaotisk@arching-kaos.org>2024-11-23 09:37:00 +0200
commitc5c3505cbeaae832c0bc42c0583d77fc2bff8b37 (patch)
tree6c790b0508b10d8651babc027cdc02f8df8fad80 /src/js/app.js
parent7a1f09d3236b74357c92ec18da69c3828c1a6db5 (diff)
downloadarching-kaos-web-ui-c5c3505cbeaae832c0bc42c0583d77fc2bff8b37.tar.gz
arching-kaos-web-ui-c5c3505cbeaae832c0bc42c0583d77fc2bff8b37.tar.bz2
arching-kaos-web-ui-c5c3505cbeaae832c0bc42c0583d77fc2bff8b37.zip
Refactored menu with ak-generator, fixed mobile viewHEADorigin/masterorigin/HEADmaster
Diffstat (limited to 'src/js/app.js')
-rw-r--r--src/js/app.js35
1 files changed, 17 insertions, 18 deletions
diff --git a/src/js/app.js b/src/js/app.js
index 06ba891..b84be92 100644
--- a/src/js/app.js
+++ b/src/js/app.js
@@ -15,22 +15,19 @@ body.height = window.innerHeight;
pageLayout.width = window.innerWidth;
pageLayout.height = window.innerHeight;
mainContainer.style.display = 'block';
-window.innerWidth <= 770 ? isMobile = true : isMobile = false;
-isMobile ? doubleFloorMenu.style.display = 'none':doubleFloorMenu.style.display = 'flex';
+window.innerWidth <= 850 ? isMobile = true : isMobile = false;
+
function onWindowResize()
{
body.width = window.innerWidth;
body.height = window.innerHeight;
pageLayout.width = window.innerWidth;
pageLayout.height = window.innerHeight;
- window.innerWidth <= 770 ? isMobile = true : isMobile = false;
+ window.innerWidth <= 850 ? isMobile = true : isMobile = false;
isMobile ? doubleFloorMenu.style.display = 'none':doubleFloorMenu.style.display = 'flex';
}
window.addEventListener('resize', onWindowResize, false);
-// And call
-menuinit();
-locationHashOnChange();
progressPlaceholder.value = '0';
@@ -60,20 +57,22 @@ var scripts = [
{
element:"script",
src:"./js/ui/mainLayout.js"
- },
- {
- element:"script",
- src:"./js/page-navigation.js"
- },
- {
- element:"script",
- src:"./js/page-projects.js"
- },
- {
- element:"script",
- src:"./js/menu.js"
}
];
+//,
+// {
+// element:"script",
+// src:"./js/page-navigation.js"
+// },
+// {
+// element:"script",
+// src:"./js/page-projects.js"
+// },
+// {
+// element:"script",
+// src:"./js/menu.js"
+// }
+//];
for ( var i = 0; i < scripts.length; i++ )
{