diff options
author | Allan Wang <me@allanwang.ca> | 2019-04-26 23:48:19 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-04-26 23:48:19 -0700 |
commit | 5139111a7f1f4b18e993b23d2a0b7bb5a260e905 (patch) | |
tree | b1007ac60f7f188b24999f756271430e341b7f37 /app/src/web/assets/js/menu.js | |
parent | 4e1a32bf33f7ee8cf9a125440ed11db61f884a88 (diff) | |
download | frost-5139111a7f1f4b18e993b23d2a0b7bb5a260e905.tar.gz frost-5139111a7f1f4b18e993b23d2a0b7bb5a260e905.tar.bz2 frost-5139111a7f1f4b18e993b23d2a0b7bb5a260e905.zip |
Docker (#1411)
* Add initial docker test
* Depend on java only
* Remove android part
* Move build stuff to docker
* Use shorter docker file
* Quiet docker build
* Move quiet flag forward
* Export android home
* Echo versions
* Try generic lang
* Copy project
* Group sdk manager runs
* Reorder sdkmanager
* Gitignore generated files
* Copy apk output out of docker
* Fail if no apks found
* Install packages
* Add caching
* Name container
* Update caching
* Add package lock file
* Update folder path
* Switch home dir
* Copy folder contents
* Disable caching
* Add back gradle caching
* Remove original files from asset folder
* Try generic docker
* Delete extra loader
* Try java
* Try android
* Use java
* Restrict caching
Diffstat (limited to 'app/src/web/assets/js/menu.js')
-rw-r--r-- | app/src/web/assets/js/menu.js | 55 |
1 files changed, 0 insertions, 55 deletions
diff --git a/app/src/web/assets/js/menu.js b/app/src/web/assets/js/menu.js deleted file mode 100644 index b6a30209..00000000 --- a/app/src/web/assets/js/menu.js +++ /dev/null @@ -1,55 +0,0 @@ -"use strict"; -(function () { - var viewport = document.querySelector("#viewport"); - var root = document.querySelector("#root"); - var bookmarkJewel = document.querySelector("#bookmarks_jewel"); - if (!viewport || !root || !bookmarkJewel) { - console.log('Menu.js: main elements not found'); - Frost.emit(0); - return; - } - var menuA = bookmarkJewel.querySelector("a"); - if (!menuA) { - console.log('Menu.js: menu links not found'); - Frost.emit(0); - return; - } - var jewel = document.querySelector('#mJewelNav'); - if (!jewel) { - console.log('Menu.js: jewel is null'); - return; - } - var y = new MutationObserver(function () { - viewport.removeAttribute('style'); - root.removeAttribute('style'); - }); - y.observe(viewport, { - attributes: true - }); - y.observe(root, { - attributes: true - }); - var x = new MutationObserver(function () { - var menu = document.querySelector('.mSideMenu'); - if (menu) { - x.disconnect(); - console.log("Found side menu"); - while (root.firstChild) { - root.removeChild(root.firstChild); - } - while (menu.childNodes.length) { - viewport.appendChild(menu.childNodes[0]); - } - Frost.emit(0); - setTimeout(function () { - y.disconnect(); - console.log('Unhook styler'); - }, 500); - } - }); - x.observe(jewel, { - childList: true, - subtree: true - }); - menuA.click(); -}).call(undefined); |