<html> <head> <title>Penguidom GUI</title> <link rel="manifest" href="/manifest.json"> <!-- Allow fullscreen mode on iOS devices. (These are Apple specific meta tags.) --> <meta name="apple-mobile-web-app-capable" content="yes" /> <meta name="apple-mobile-web-app-status-bar-style" content="black" /> <link rel="apple-touch-icon" sizes="256x256" href="/resources/img/logo_icon.png" /> <meta name="HandheldFriendly" content="true" /> <!-- Chrome for Android web app tags --> <meta name="mobile-web-app-capable" content="yes"> <link rel="shortcut icon" sizes="256x256" href="/resources/img/logo_icon.png" /> <meta charset="UTF-8" /> <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, minimum-scale=1, user-scalable=no" /> <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" /> <style> body { background: none repeat scroll 0 0 #FBFBFB; font-family: "HelveticaNeue-Light","Helvetica Neue Light","Helvetica Neue",sans-serif; font-size: 18px; height: 100%; line-height: 1.4em; margin: 0; min-width: 0; padding: 0; } .tblack { background-color: #000 !important; } /* Style the navbar */ #navbar { z-index: 10000; overflow: hidden; background-color: #333; position: fixed; top: 0; width:100%; } /* Navbar links */ #navbar a { padding: 14px; display: block; color: #f2f2f2; text-align: center; text-decoration: none; } /* Page content */ #content { padding: 16px; transition: margin-left .5s, margin-right .5s ; } #content::before { content: ""; display: block; height: 40px; } /* The side navigation menu */ .sidenav { height: 100%; /* 100% Full-height */ width: 0; /* 0 width - change this with JavaScript */ position: fixed; /* Stay in place */ z-index: 10; /* Stay on top */ top: 52; /* Stay at the top */ background-color: #111; /* Black*/ overflow-x: hidden; /* Disable horizontal scroll */ padding-top: 20px; /* Place content 60px from the top */ transition: 0.5s; /* 0.5 second transition effect to slide in the sidenav */ } /* The navigation menu links */ .sidenav a { padding: 8px 8px 8px 32px; text-decoration: none; font-size: 25px; color: #818181; display: block; transition: 0.3s; } /* When you mouse over the navigation links, change their color */ .sidenav a:hover { color: #f1f1f1; } .sidenavright { right:0; } .sidenavleft { left:0; } .column { float: left; width: 33%; } .coltitle { background-color: #4a66ce; color: white; text-align: center; padding: 6px; padding-top: 14px; padding-bottom: 14px; margin: 4px; border-radius: 10px; } /* Clear floats after the columns */ .row:after { content: ""; display: table; } .navrow:after { content: ""; display: table; } #navbtnl { float: left; width: 115px; height: 38px; border: solid 1px #f2f2f2; border-radius: 10px; margin: 6px 6px 6px 6px; } #navbtnl a { position: fixed; margin-left:30px; top: 0px; } #navbtnr a { position: fixed; margin-right:30px; top: 0px; } #navcntr a { padding-top: 0; } #navbtnr { float: right; width: 115px; height: 38px; border: solid 1px #f2f2f2; border-radius: 10px; margin: 6px 6px 6px 6px; } #navcntr { position: fixed; right: 90px; left: 90px; text-align: center; color: #f2f2f2; padding: 14px; } div .menubtn { padding-top: 6px; padding-right: 8px; padding-left: 8px; } div .menubtn div { width: 25px; height: 3px; background-color: #f2f2f2; margin: 4px 0; } .simplebtn { border: 1px solid #f2f2f2; border-radius: 10px; text-align: center; padding: 6px; margin: 4px 16px 0px 16px; background-color: #0d1f29; } .button { background-color: #3e3c3c; border-radius: 10px; margin: 4px; padding: 10px; padding-top: 14px; padding-bottom: 14px; } .btnname { color: #bbbbbb; float: left; } .btnact { float: right; } .button::after { content: ""; display: table; clear: both; } .onoffswitch { position: relative; width: 110px; -webkit-user-select:none; -moz-user-select:none; -ms-user-select: none; } .onoffswitch-checkbox { display: none; } .onoffswitch-label { display: block; overflow: hidden; cursor: pointer; border: 2px solid #999999; border-radius: 10px; } .onoffswitch-inner { display: block; width: 200%; margin-left: -100%; transition: margin 0.2s ease-in 0s; } .onoffswitch-inner-on, .onoffswitch-inner-off { display: block; float: left; width: 50%; height: 30px; padding: 0; line-height: 30px; font-size: 14px; color: white; font-family: Trebuchet, Arial, sans-serif; font-weight: bold; box-sizing: border-box; } .onoffswitch-inner-on { padding-left: 10px; background-color: #38CDFF; color: #FFFFFF; } .onoffswitch-inner-off { padding-right: 10px; background-color: #EEEEEE; color: #999999; text-align: right; } .onoffswitch-switch { display: block; width: 10px; margin: 6px; background: #cccccc; position: absolute; top: 0; bottom: 0; right: 84px; border: 2px solid #999999; border-radius: 8px; transition: all 0.2s ease-in 0s; } .onoffswitch-checkbox:checked + .onoffswitch-label .onoffswitch-inner { margin-left: 0; } .onoffswitch-checkbox:checked + .onoffswitch-label .onoffswitch-switch { right: 0px; } @media (min-width: 601px) { .column { height: 400px; overflow-y: auto; } } @media (max-width: 1280px) { .column { width: 50%; } } @media (max-width: 640px) { .column { width: 100%; } } </style> <script language="javascript" src="/sockjs.min.js"></script> <script language="javascript"> var sock = new SockJS('/sockjs'); sock.onopen = function() { console.log('open'); sock.send('test'); }; sock.onmessage = function(e) { console.log('message', e.data); }; sock.onclose = function() { console.log('close'); }; sideSize = "400px"; if ( window.innerWidth <= parseInt(sideSize)+200) { sideSize = "100%"; } function OpenLeft() { if(document.getElementById("SidenavLeft").style.width == sideSize) { CloseNav(); } else { document.getElementById("navbtnl").style.border = "solid 1px #19abe2"; document.getElementById("navbtnr").style.border = "solid 1px #f2f2f2"; document.getElementById("SidenavRight").style.width = "0px"; document.getElementById("SidenavLeft").style.width = sideSize; document.getElementById("content").style.marginLeft = sideSize; document.getElementById("content").style.marginRight = "0px"; } } function OpenRight() { if(document.getElementById("SidenavRight").style.width == sideSize) { CloseNav(); } else { document.getElementById("SidenavLeft").style.width = "0px"; document.getElementById("SidenavRight").style.width = sideSize; document.getElementById("content").style.marginLeft = "0px"; document.getElementById("content").style.marginRight = sideSize; document.getElementById("navbtnl").style.border = "solid 1px #f2f2f2"; document.getElementById("navbtnr").style.border = "solid 1px #19abe2"; } } function CloseNav() { document.getElementById("SidenavLeft").style.width = "0px"; document.getElementById("SidenavRight").style.width = "0px"; document.getElementById("content").style.marginRight = "0px"; document.getElementById("content").style.marginLeft = "0px"; document.getElementById("navbtnl").style.border = "solid 1px #f2f2f2"; document.getElementById("navbtnr").style.border = "solid 1px #f2f2f2"; } </script> @SCRIPT@ </head> <body class="tblack"> <div id="navbar" class="navrow"> <div id="navcntr"> <b><a href="/gui/">Penguidom 0.1</a></b> </div> <div id="navbtnl" onclick="OpenLeft()"> <div class="menubtn"> <div></div> <div></div> <div></div> </div> <a href="#">plugins</a> </div> <div id="navbtnr" onclick="OpenRight()"> <div class="menubtn" style="float:right;"> <div></div> <div></div> <div></div> </div> <a href="#">options</a> </div> </div> <div id="SidenavLeft" class="sidenav sidenavleft"> <a href="/gui/">Home</a> @PLUGINS@ </div> <div id="SidenavRight" class="sidenav sidenavright"> <div class="simplebtn"><a href="/__LOGOUT__/">Logout</a></div> </div> <div id="content" class="tblack" > <div class="row"> @CONTENT@ </div> </div> </body> </html>