diff --git a/404.html b/404.html index d3922aef..a03ce7bc 100644 --- a/404.html +++ b/404.html @@ -9,8 +9,8 @@ diff --git a/index.html b/index.html index 22c24809..766ce338 100644 --- a/index.html +++ b/index.html @@ -11,7 +11,7 @@ diff --git a/links/main.css b/links/main.css index 773da22a..93e9c7ee 100644 --- a/links/main.css +++ b/links/main.css @@ -1,3 +1,5 @@ +* { margin:0;padding:0;border:0;outline:0;text-decoration:none;font-weight:inherit;font-style:inherit;color:inherit;font-size:100%;font-family:inherit;vertical-align:baseline;list-style:none;border-collapse:collapse;border-spacing:0; -webkit-font-smoothing: antialiased;-moz-osx-font-smoothing: grayscale;} + body { background:#f4f4f4; padding:0px; margin:0px; } body div { display:block; background: #ddd;min-height: calc(100vh - 60px);width: calc(100vw - 60px);margin: 15px;color: #555;padding: 15px;font-family:'input_mono_regular', 'Monospaced','Courier New',courier;font-size:11px; position: relative; border-radius: 2px } body div #icon { display: block;width: 30px;height: 30px;background-image: url(../icon.white.svg);background-size: cover;background-repeat: no-repeat;position: absolute;bottom: 10px;right:10px;background-position: center;padding:0px } @@ -6,12 +8,12 @@ body div p a { color:black; text-decoration: none; text-decoration: underline;} body div p a:hover { text-decoration: underline; } body div p b { font-weight: normal; color:#000; font-family: 'input_mono_medium' } body div p.readme { max-width:500px; } -body div list { display:block; max-width: 800px; columns:3; border-bottom: 2px solid white;padding-bottom: 15px;margin-bottom:15px; overflow: hidden;} -body div list ln { width: 22em; display:block; padding-left:5px; overflow: hidden; text-overflow: ellipsis; } -body div list ln a { line-height: 20px; display: inline-block; color:#000; padding:0px 5px; text-decoration: none;} -body div list ln a:visited { color:#999; text-decoration: none;} -body div list ln a:hover { background:#ccc; color:#000; text-decoration: none; border-radius: 2px } +body div ul { display:block; max-width: 800px; columns:3; border-bottom: 2px solid white;padding-bottom: 15px;margin-bottom:15px; overflow: hidden;} +body div ul li { width: 22em; display:block; padding-left:5px; overflow: hidden; text-overflow: ellipsis; } +body div ul li a { line-height: 20px; display: inline-block; color:#000; padding:0px 5px; text-decoration: none;} +body div ul li a:visited { color:#999; text-decoration: none;} +body div ul li a:hover { background:#ccc; color:#000; text-decoration: none; border-radius: 2px } -@media (max-width: 950px) { +@media (max-width: 950px){ body div list { columns: 2 } } \ No newline at end of file diff --git a/scripts/portal.js b/scripts/portal.js index f6078560..e80c923d 100644 --- a/scripts/portal.js +++ b/scripts/portal.js @@ -28,13 +28,7 @@ function Portal(sites) this.directory = function() { - let html = "" - - for(let id in this.sites){ - let site = this.sites[id] - html += `${id}) ${site.split("//")[1]}` - } - return `${html}\n${this.readme()}${this.buttons()}` + return `\n${this.readme()}${this.buttons()}` } this.reload = function() @@ -56,14 +50,14 @@ function Portal(sites) this.locate = function() { - let hash = this.location(); + const hash = this.location(); if(hash == "random"){ return Math.floor(Math.random()*this.sites.length) } - for(let id in this.sites){ - let site = this.sites[id]; + for(const id in this.sites){ + const site = this.sites[id]; if(site.indexOf(hash) >-1){ return parseInt(id) } @@ -78,8 +72,8 @@ function Portal(sites) this.redirect = function() { - let location = this.locate(); - let target = this.next(location); + const location = this.locate(); + const target = this.next(location); this.navigate(target) return `

Redirecting to ${target}

Directory | Skip | Random | Information

` diff --git a/scripts/sites.js b/scripts/sites.js index bc582667..ff68946a 100644 --- a/scripts/sites.js +++ b/scripts/sites.js @@ -1,5 +1,5 @@ // protocole://url.domain.ext -let sites = [ +const sites = [ "https://wiki.xxiivv.com" , "http://estevancarlos.com" , "https://electro.pizza"