Browse Source

remove all js in favour of html 5 elements

Pi 2 years ago
parent
commit
3deb438bd2
1 changed files with 89 additions and 59 deletions
  1. 89 59
      index.html

+ 89 - 59
index.html

@@ -12,19 +12,20 @@
 .grid {
   margin: min(1vmin, 10px) min(1vmin, 10px);
   padding: 10px;
-  font-size: min(3vmin,30px);
   text-align: center;
   position: relative;
 }
-.grid li {
+
+.grid button {
   border-style: solid;
-  border-width: 3%;
+  font-size: min(3vmin,25px);
+  borderwidth: 3%;
+  background: transparent;
   width: 40vmin;
   height: 30vmin;
   max-width: 350px;
   max-height: 263px;
   text-align: center;
-  list-style-type: none;
   display: inline-block;
   vertical-align: middle;
   margin: max(1.5vmin, 20px);
@@ -32,17 +33,18 @@
   position: relative;
   cursor: pointer;
 }
-.grid li > div {
+
+.grid button > div {
   position: relative;
   height: 100%;
   width: 100%;
   line-height: 1;
 }
-.grid li > div > h1 {
+.grid button > div > h1 {
   line-height: 0.5;
   text-align: center;
 }
-.grid li > div > p {
+.grid button > div > p {
   padding: max(0.5vmin, 10px);
   margin: 0;
   color: black;
@@ -50,95 +52,123 @@
   line-height: 1;
 }
 </style>
-<ul class="grid">
-	<li onclick="location.href='https://gogs.shandan.one/';" style="color: yellow;">
+<form action="https://shandan.one/pgadmin4"
+  id="pgadmin" rel="external" formmethod="get" formtarget="_self"></form>
+<form action="https://shandan.one/guacamole"
+  id="guacamole" rel="external" formmethod="get" formtarget="_self"></form>
+<form action="https://shandan.one/wekan"
+  id="wekan" rel="external" formmethod="get" formtarget="_self"></form>
+<form action="https://shandan.one/feed/news/rss.html"
+  id="news" rel="external" formmethod="get" formtarget="_self"></form>
+<form action="https://shandan.one/feed/discovery/rss.html"
+  id="discovery" rel="external" formmethod="get" formtarget="_self"></form>
+<form action="https://shandan.one/feed/humour/rss.html"
+  id="humour" rel="external" formmethod="get" formtarget="_self"></form>
+<form action="https://gogs.shandan.one"
+  id="vcs" rel="external" formmethod="get" formtarget="_self"></form>
+<form action="https://wol.shandan.one"
+  id="wol" rel="external" formmethod="get" formtarget="_self"></form>
+<form action="https://syncthing.shandan.one"
+  id="syncthing" rel="external" formmethod="get" formtarget="_self"></form>
+<form action="https://tvheadend.shandan.one"
+  id="tv" rel="external" formmethod="get" formtarget="_self"></form>
+<form action="https://mouse.shandan.one/#remote-mouse"
+  id="mouse" rel="external" formmethod="get" formtarget="_self"></form>
+<form action="https://gateway.shandan.one"
+  id="gateway" rel="external" formmethod="get" formtarget="_self"></form>
+<form action="https://listgarden.shandan.one"
+  id="listgarden" rel="external" formmethod="get" formtarget="_self"></form>
+<div class="grid">
+	<button form="news" style="color: gold; border-color: gold">
+		<div>
+			<h1>News</h1>
+			<p>News Feed</p>
+			<p>Notable events but not weather or sports</p>
+		</div>
+	</button>
+	<button form="discovery" style="color: gold; border-color: gold">
+		<div>
+			<h1>Discovery</h1>
+			<p>Discovery Feed</p>
+			<p>Cool and inspirational articles</p>
+		</div>
+	</button>
+	<button form="humour" style="color: gold; border-color: gold">
+		<div>
+			<h1>Humour</h1>
+			<p>Humour Feed</p>
+			<p>Humourous articles, memes or anything funny</p>
+		</div>
+	</button>
+</div>
+<hr/>
+<div class="grid">
+	<button form="wol" style="color: firebrick; border-color: firebrick">
   		<div>
-  			<h1>gogs</h1>
-  			<p class="child">Manage and access git repositories</p>
+  			<h1>WoL</h1>
+  			<p>Wake a device</p>
   		</div>
-	</li>
-	<li onclick="location.href='https://shandan.one/pgadmin4';" style="color: steelblue;">
+	</button>
+	<button form="pgadmin" style="color: steelblue; border-color: steelblue">
   		<div>
   			<h1>pgAdmin</h1>
   			<p class="child">Manage and access postgresql databases</p>
   		</div>
-	</li>
-	<li onclick="location.href='https://wol.shandan.one';" style="color: firebrick;">
-  		<div>
-  			<h1>WoL</h1>
-  			<p class="child">Wake a device</p>
-  		</div>
-	</li>
-	<li onclick="location.href='https://shandan.one/guacamole';" style="color: darkolivegreen;">
+	</button>
+	<button form="guacamole" style="color: darkolivegreen; border-color: darkolivegreen">
   		<div>
   			<h1>Gaucamole</h1>
-  			<p class="child">Remote desktop</p>
+  			<p>Remote desktop</p>
+  		</div>
+	</button>
+    <button form="vcs" style="color: yellow; border-color: yellow">
+		<div>
+  			<h1>gogs</h1>
+  			<p class="child">Manage and access git repositories</p>
   		</div>
-	</li>
-	<li onclick="location.href='https://syncthing.shandan.one';" style="color: royalblue;">
+	</button>
+	<button form="syncthing" style="color: royalblue; border-color: royalblue">
   		<div>
   			<h1>Syncthing</h1>
   			<p>Manage syncthing</p>
   		</div>
-	</li>
-	<li onclick="location.href='https://tv.shandan.one';" style="color: orange;">
+	</button>
+	<button form="tv" style="color: orange; border-color: orange">
 		<div>
   			<h1>TvHeadend</h1>
   			<p>Access PVR</p>
   			<p>Schedule recordings and view TV guide</p>
   		</div>
-	</li>
-	<li onclick="location.href='https://shandan.one/wekan';" style="color: teal;">
+	</button>
+	<button form="wekan" style="color: teal; border-color: teal">
 		<div>
 			<h1>Wekan</h1>
 			<p>Kanban board</p>
 			<p>Manage projects and tasks</p>
 		</div>
-	</li>
-	<li onclick="location.href='https://mouse.shandan.one/#remote-mouse';" style="color: saddlebrown;">
+	</button>
+	<button form="mouse" style="color: saddlebrown; border-color: saddlebrown">
 		<div>
 			<h1>Mouse</h1>
 			<p>Use device as touchpad</p>
 			<p>Turn your device's touchscreen into a remote touchpad</p>
 		</div>
-	</li>
-	<li onclick="location.href='https://gateway.shandan.one';" style="color: lightblue;">
+	</button>
+	<button form="gateway" style="color: lightblue; border-color: lightblue">
 		<div>
 			<h1>Gateway</h1>
 			<p>Access the gateway</p>
 			<p>Manage local LAN and internet connection settings</p>
 		</div>
-	</li>
-	<li onclick="location.href='https://listgarden.shandan.one';" style="color: olivedrab;">
+	</button>
+	<button form="listgarden" style="color: olivedrab; border-color: olivedrab">
 		<div>
 			<h1>ListGarden</h1>
 			<p>Manage RSS Feeds</p>
 			<p>Publish new items and create new feeds</p>
 		</div>
-	</li>
-</ul>
-<ul class="grid">
-	<li onclick="location.href='https://shandan.one/feed/news/rss.html';" style="color: gold;">
-		<div>
-			<h1>News</h1>
-			<p>News Feed</p>
-			<p>Notable events but not weather or sports</p>
-		</div>
-	</li>
-	<li onclick="location.href='https://shandan.one/feed/discovery/rss.html';" style="color: gold;">
-		<div>
-			<h1>Discovery</h1>
-			<p>Discovery Feed</p>
-			<p>Cool and inspirational articles</p>
-		</div>
-	</li>
-	<li onclick="location.href='https://shandan.one/feed/humour/rss.html';" style="color: gold;">
-		<div>
-			<h1>Humour</h1>
-			<p>Humour Feed</p>
-			<p>Humourous articles, memes or anything funny</p>
-		</div>
-	</li>
-</ul>
+	</button>
+</div>
 </body>
 </html>
+