Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/saadnpq/npq-hugo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorsaadnpq <saadnpq@localhost.localdomain>2020-04-12 20:46:10 +0300
committersaadnpq <saadnpq@localhost.localdomain>2020-04-12 20:46:10 +0300
commit462080bd3360fd26a9649e8897e4d3d2bbbd3026 (patch)
treed8b485f80fe8dcc60571f8e4c21c9d03492f8a6f /exampleSite/public/js/navbutton.js
parent7e23565a2c53f37b7302f60cf567b22236d99a30 (diff)
fixed untracked files
Diffstat (limited to 'exampleSite/public/js/navbutton.js')
-rw-r--r--exampleSite/public/js/navbutton.js25
1 files changed, 0 insertions, 25 deletions
diff --git a/exampleSite/public/js/navbutton.js b/exampleSite/public/js/navbutton.js
deleted file mode 100644
index 588b78c..0000000
--- a/exampleSite/public/js/navbutton.js
+++ /dev/null
@@ -1,25 +0,0 @@
-function navToggle() {
- isNavOpen() ? navClose() : navOpen();
- }
-
- /* Set the width of the side navigation to 0 and the left margin of the page content to 0 */
-function isNavOpen() {
- navStyle = window.getComputedStyle(document.getElementById("sidenav"));
- navWidth = navStyle.getPropertyValue('width')
- return ( navWidth !== "0px" ) && (navWidth !== "");
-}
-
-function navOpen(){
- let navWidth = "200px"
- document.getElementById("sidenav").style.width = navWidth;
- document.getElementById("closebtn").style.left= navWidth;
- if (! window.matchMedia("(max-width: 650px)").matches){
- document.getElementById("main").style.marginLeft = navWidth;
- }
-}
-
-function navClose(){
- document.getElementById("sidenav").style.width = "0px";
- document.getElementById("main").style.marginLeft = "0px";
- document.getElementById("closebtn").style.left= "0px";
-} \ No newline at end of file