From 0889034f67f8d8cadc98dcbefcd7021b42a00408 Mon Sep 17 00:00:00 2001 From: neptune Date: Mon, 21 Feb 2022 18:59:05 -0300 Subject: Agregados archivos faltantes --- static/css/img/berries.gifv | Bin 0 -> 2956733 bytes static/css/lavanda.css | 81 ++++++++++++++++++++++ static/css/txt/berries.css | 159 ++++++++++++++++++++++++++++++++++++++++++++ static/js/home.js | 24 ++++--- 4 files changed, 256 insertions(+), 8 deletions(-) create mode 100644 static/css/img/berries.gifv create mode 100644 static/css/lavanda.css create mode 100644 static/css/txt/berries.css diff --git a/static/css/img/berries.gifv b/static/css/img/berries.gifv new file mode 100644 index 0000000..73443da Binary files /dev/null and b/static/css/img/berries.gifv differ diff --git a/static/css/lavanda.css b/static/css/lavanda.css new file mode 100644 index 0000000..3ba0b79 --- /dev/null +++ b/static/css/lavanda.css @@ -0,0 +1,81 @@ +html, +body { + background: #000000 url('/mantencion_bg.gif') top left repeat fixed; + color:#fff; +} +a, +a .name, +.nav label { + color: rgb(179, 155, 211); +} +a.rep { + color: #fff; +} +a:hover, +a:hover .name, +.nav label:hover { + color: rgb(221, 0, 129); +} +.logo { + color: #ffccfc; +} +.replymode, +.extramode { + color: rgb(248, 151, 227); +} +.replymode { + background: #3a1b33; +} +.extramode { + background: #551729; +} +.postblock { + background: #222222; + color: #9383a8; +} +.q { + color: #f34185; +} +.fs { + text-decoration: none; +} +.subj { + color: #9387c9; +} +.name { + color: #ca8dcf; +} +.omitted { + color: #909090; +} +.reply, +#q-p { + background: #161616; + color: #fff; +} +.abbrev { + color: #bbb; +} +.highlight { + background: #2c1649; + outline: 1px dashed #470d69; +} +.managertable td { + background: #1b1b1b; + color: #fff; +} +.managertable th { + background: #aaf; + color: #fff; +} +.yt { + background: #302138; + border: 1px solid #1d1b33; +} +.quoted { + border-color: #211b45; +} +hr{ + border: 0; + border-top: 1px solid rgba(42, 0, 32, 1); +} diff --git a/static/css/txt/berries.css b/static/css/txt/berries.css new file mode 100644 index 0000000..a24ee4a --- /dev/null +++ b/static/css/txt/berries.css @@ -0,0 +1,159 @@ +@import url('https://fonts.googleapis.com/css2?family=Courier+Prime&display=swap%27'); + +body { + background: #222 url("../img/berries.gifv"); + color: #7788e9; + font-family: 'Courier Prime', monospace; +} +body.threadpage { + background-image: none; +} +a, +a .name, +#n2 { + color: #9d81be; +} +a:active, +a:focus, +a:active .name, +a:focus .name, +#n2:active { + color: #5d4d72; +} +h4 a, .lastposts { + text-decoration: none; +} +hr { + border: 1px inset #111; +} +input[type="text"], +input[type="submit"], +input[type="button"], +textarea, +button, +select { + background: #181e36; + border: 1px solid #081229; + color: #e8e8e8; +} +input[type="submit"], +input[type="button"], +button { + background: rgb(35, 30, 49); +} +input[type="submit"]:active, +input[type="button"]:active, +button:active { + background: #0b0924; +} +h1 { + color: #dc56b4; + font-size: 26px; + margin-top: -5px; + text-align: center; +} +h2 a { + color: rgb(85, 83, 190); +} +h2 span { + color: #999; +} +h3, +#size { + color: #4255ab; +} +h3 span { + color: #999; +} +h4 { + color: #c1c5c2; +} +#main_nav { + background: #000; + border-bottom: 1px solid #222; + color: #7cafc2; +} +.banner { + -webkit-filter: grayscale(60%); + filter: grayscale(60%); +} +.outerbox { + background: #0c0616; + border: 1px solid #4b4e55; + color: #777879; +} +#titlebox .threadnav { + margin: -6px; +} +#threadlist { + background: #0e0e0e; + border: 1px solid #4b4e55; +} +#threadlist a { + border-right: 1px solid #4b4e55; + border-bottom: 1px solid #4b4e55; +} +.mainpage .thread { + background: #0c0616; + border: 3px double #4b4e55; + color: #ced1cf; + opacity: 0.9; +} +.threadpage .thread { + color: #ced1cf; +} +.name, +.abbrev { + color: #bd689a; +} +.name em { + color: #88f; +} +.del a { + color: #ab428c; +} +h4 .date, +.quoted { + color: #485096; +} +.msg { + margin: 4px 40px 24px; +} +a.thumb { + margin-top: 4px; +} +.q { + color: #777; +} +.yt { + background: #262626; + border: 1px solid #444; + color: #e8e8e8; +} +.yt:hover { + text-decoration: none; +} +.deleted h4 { + color: #555; + margin-bottom: 24px; +} +#q-p { + background: #222; + border: 1px solid #4b4e55; +} +#q-p .msg { + margin-bottom: 8px; +} +form .msg { + background: #383838; + border: 1px dotted #000; +} +#footer { + color: #f7ca88; +} +#threads th { + background: #111213; +} +#threads tr:nth-child(odd) { + background: #191b1d; +} diff --git a/static/js/home.js b/static/js/home.js index c8a2921..f670ce1 100644 --- a/static/js/home.js +++ b/static/js/home.js @@ -29,6 +29,7 @@ function get_active_stylesheet() { } function check_news() { + console.log("check_news"); var last_t = opcs.last; var items = document.getElementsByClassName("ni"); var dates = document.getElementsByClassName("ni-d"); @@ -186,6 +187,7 @@ function parse() { } document.addEventListener("DOMContentLoaded", function() { + console.log("1"); window.parent.document.title = document.getElementsByTagName( "title" )[0].textContent; @@ -197,25 +199,30 @@ document.addEventListener("DOMContentLoaded", function() { parse(); } //set_stylesheet(opcs.style); - - var css = document.getElementById("change_style").getElementsByTagName("a"); - for (var j = 0; j < css.length; j++) { - css[j].addEventListener("click", function(e) { - e.preventDefault(); - set_stylesheet(this.textContent); - }); - } + console.log("2"); + + //var css = document.getElementById("change_style").getElementsByTagName("a"); + //for (var j = 0; j < css.length; j++) { + // css[j].addEventListener("click", function(e) { + // e.preventDefault(); + // set_stylesheet(this.textContent); + // }); + //} + console.log("2a"); document.getElementById("autorefresh").addEventListener("click", function(e) { opcs.auto = !opcs.auto; autoRefresh(); parse(); }); + console.log("2b"); document.getElementById("autosound").addEventListener("click", function(e) { opcs.sound = !opcs.sound; parse(); }); + console.log("3"); check_news(); + console.log("4"); chk = document.getElementById("autorefresh"); chk_snd = document.getElementById("autosound"); if (opcs.auto) { @@ -224,4 +231,5 @@ document.addEventListener("DOMContentLoaded", function() { } else chk.checked = false; if (opcs.sound) chk_snd.checked = true; else chk_snd.checked = false; + console.log("5"); }); -- cgit v1.2.1-18-gbd029