From 467d4353936f23ce8f2efb405e755a2ef9be553a Mon Sep 17 00:00:00 2001 From: Devine Lu Linvega Date: Sat, 19 May 2018 08:31:05 +1200 Subject: [PATCH] Improved layout --- index.html | 4 ++-- portal.js | 7 ++----- 2 files changed, 4 insertions(+), 7 deletions(-) diff --git a/index.html b/index.html index d85538b..df1d5d6 100644 --- a/index.html +++ b/index.html @@ -55,10 +55,10 @@ body { background:#eee; padding:30px; } body a { color:#000; display: inline-block; padding:0px 5px; line-height: 20px} body a:hover { color:#eee; background:#000; text-decoration: none; } + body p { display:block; padding:0px 5px} body list { display:block; columns:3; } body list ln { display:block; padding-left:5px} - body list ln a:active { color:#pink; background:black} - body list ln a:visited { color:#000; background:pink} + body list ln a:visited { color:#000; background:white} diff --git a/portal.js b/portal.js index d034ec9..55ebfdd 100644 --- a/portal.js +++ b/portal.js @@ -18,7 +18,7 @@ function Portal(sites) { var html = "" - for(id in this.sites){ + for(var id in this.sites){ var site = this.sites[id] html += `${id}) ${site.split("//")[1]}` } @@ -72,10 +72,7 @@ function Portal(sites) var html = "" - html = `Redirecting to ${target} - -Directory | Skip | Random | Information -` + html = `

Redirecting to ${target}

Directory | Skip | Random | Information` return html } }