aboutsummaryrefslogtreecommitdiff
path: root/static
diff options
context:
space:
mode:
authorLibravatar Choom 2023-01-16 05:05:02 -0300
committerLibravatar Choom 2023-01-16 14:37:07 -0300
commit1f988f01c7eee932ef7d2fb80de5a2b3792097d3 (patch)
treea83fd88c3f8dc17390f9f084483d53c8884d63ec /static
parent4c31093827f57394563de037a21143407586e384 (diff)
downloadweabot-1f988f01c7eee932ef7d2fb80de5a2b3792097d3.tar.gz
weabot-1f988f01c7eee932ef7d2fb80de5a2b3792097d3.tar.xz
weabot-1f988f01c7eee932ef7d2fb80de5a2b3792097d3.zip
Divs únicos deben tener id
Diffstat (limited to 'static')
-rw-r--r--static/css/spc/material.css10
-rw-r--r--static/css/spc/material_normal.css14
-rw-r--r--static/css/spc/treehugger.css2
-rw-r--r--static/css/txt/bbs.css8
-rw-r--r--static/css/txt/berries.css2
-rw-r--r--static/css/txt/bios.css10
-rw-r--r--static/css/txt/blue moon.css2
-rw-r--r--static/css/txt/cuteanarchy.css7
-rw-r--r--static/css/txt/gamer.css6
-rw-r--r--static/css/txt/headline.css6
-rw-r--r--static/css/txt/mercury.css4
-rw-r--r--static/css/txt/postal.css4
-rw-r--r--static/css/txt/rizzona.css2
-rw-r--r--static/css/txt/void.css2
-rw-r--r--static/js/autorefresh.js7
-rw-r--r--static/js/weabotxt.js20
16 files changed, 52 insertions, 54 deletions
diff --git a/static/css/spc/material.css b/static/css/spc/material.css
index 3e6b57b..02eb49e 100644
--- a/static/css/spc/material.css
+++ b/static/css/spc/material.css
@@ -178,7 +178,7 @@ hr,
input[type="submit"],
input[type="button"],
button,
-.lastposts a,
+#lastposts a,
#n2 {
background: #2296f3;
border: 0;
@@ -281,14 +281,14 @@ a.yt,
#q-p .reply {
margin-bottom: 8px;
}
-.lastposts {
+#lastposts {
padding: 16px 0;
font-size: 1px;
font-size: 0;
text-align: center;
}
-.lastposts a,
-.lastposts #n2 {
+#lastposts a,
+#lastposts #n2 {
background: #ff4081;
margin: 0 5px;
text-decoration: none;
@@ -298,7 +298,7 @@ a.yt,
border-radius: 100%;
box-shadow: 0 2px 5px rgba(0, 0, 0, 0.12);
}
-.lastposts a,
+#lastposts a,
#n2,
#counter {
color: #fff;
diff --git a/static/css/spc/material_normal.css b/static/css/spc/material_normal.css
index 0fa7c7e..0c75456 100644
--- a/static/css/spc/material_normal.css
+++ b/static/css/spc/material_normal.css
@@ -180,7 +180,7 @@ hr,
input[type="submit"],
input[type="button"],
button,
-.lastposts a,
+#lastposts a,
#n2 {
background: #2296f3;
border: 0;
@@ -258,19 +258,19 @@ a.yt,
border: 1px solid #ddd;
box-shadow: 0 0 5px #ccc;
}
-.lastposts {
+#lastposts {
padding: 16px 0;
font-size: 1px;
font-size: 0;
text-align: center;
}
-.lastposts a,
-.lastposts #n2 {
+#lastposts a,
+#lastposts #n2 {
background: #ff4081;
margin-right: 5px;
text-decoration: none;
}
-.lastposts a:active,
+#lastposts a:active,
#n2:active {
background: #b22d5a;
}
@@ -284,7 +284,7 @@ a.yt,
border-radius: 100%;
box-shadow: 0 2px 5px rgba(0, 0, 0, 0.12);
}
-.lastposts a,
+#lastposts a,
#n2,
#counter {
color: #fff;
@@ -399,7 +399,7 @@ h5 {
margin: 0;
padding: 0.5em;
}
- .lastposts {
+ #lastposts {
padding: 8px 0;
}
.postform > span {
diff --git a/static/css/spc/treehugger.css b/static/css/spc/treehugger.css
index 10fd30e..e9ce92b 100644
--- a/static/css/spc/treehugger.css
+++ b/static/css/spc/treehugger.css
@@ -84,7 +84,7 @@ hr {
border: 0;
border-top: 2px solid #daffe0;
}
-.lastposts {
+#lastposts {
color: #3cae4e;
}
.q {
diff --git a/static/css/txt/bbs.css b/static/css/txt/bbs.css
index fd2e6f0..a8a5a7b 100644
--- a/static/css/txt/bbs.css
+++ b/static/css/txt/bbs.css
@@ -254,11 +254,11 @@ a.yt b {
#q-p .thumb div {
display: none;
}
-.lastposts {
+#lastposts {
text-align: center;
line-height: 1;
}
-.lastposts #n2 {
+#lastposts #n2 {
text-decoration: underline;
}
.threadpage .threadlinks {
@@ -328,7 +328,7 @@ form .msg {
overflow-x: auto;
white-space: nowrap;
}
-.end {
+#end {
margin-top: 0.5em;
line-height: 1em;
}
@@ -435,7 +435,7 @@ form .msg {
margin: 0 1px 0 6px;
}
#footer,
- .end {
+ #end {
font-size: 12px;
text-align: center;
}
diff --git a/static/css/txt/berries.css b/static/css/txt/berries.css
index 732adb1..425f1ca 100644
--- a/static/css/txt/berries.css
+++ b/static/css/txt/berries.css
@@ -32,7 +32,7 @@ a:focus .name,
#n2:active {
color: #5d4d72;
}
-h4 a, .lastposts {
+h4 a, #lastposts {
text-decoration: none;
}
hr {
diff --git a/static/css/txt/bios.css b/static/css/txt/bios.css
index 5264906..2974d57 100644
--- a/static/css/txt/bios.css
+++ b/static/css/txt/bios.css
@@ -1,11 +1,11 @@
body,
textarea,
-.lastposts #counter {
+#lastposts #counter {
background: #00a;
color: #fff;
}
a,
-.lastposts #n2 {
+#lastposts #n2 {
color: #ff0;
text-decoration: none;
}
@@ -18,8 +18,8 @@ a:active,
}
.mainpage .threadlinks a:before,
#threadlinks a:before,
-.lastposts a:before,
-.lastposts label:before {
+#lastposts a:before,
+#lastposts label:before {
content: "▶ ";
}
input[type="text"],
@@ -161,7 +161,7 @@ a:focus .name {
box-shadow: 1em 1em #000;
padding: 0;
}
-.lastposts {
+#lastposts {
border-top: 1px solid #fff;
color: #00a;
padding: 0.5em;
diff --git a/static/css/txt/blue moon.css b/static/css/txt/blue moon.css
index 9da9ab5..549ae0c 100644
--- a/static/css/txt/blue moon.css
+++ b/static/css/txt/blue moon.css
@@ -182,7 +182,7 @@ a.thumb {
form .msg {
border: 1px dotted #49525d;
}
-.lastposts {
+#lastposts {
background: #49525d;
color: #afb9c5;
margin-top: 2px;
diff --git a/static/css/txt/cuteanarchy.css b/static/css/txt/cuteanarchy.css
index af9c360..864cc40 100644
--- a/static/css/txt/cuteanarchy.css
+++ b/static/css/txt/cuteanarchy.css
@@ -203,7 +203,7 @@ a.thumb {
color: #66564f;
}
-.lastposts #n2 {
+#lastposts #n2 {
text-decoration: none;
}
@@ -211,11 +211,6 @@ a.thumb {
color: #e9b2c8;
}
-.end {
- font-size: small;
- font-family: monospace;
-}
-
form .msg {
background: #ffb8b8;
border: 1px dotted #000;
diff --git a/static/css/txt/gamer.css b/static/css/txt/gamer.css
index 09954aa..3079afe 100644
--- a/static/css/txt/gamer.css
+++ b/static/css/txt/gamer.css
@@ -48,12 +48,12 @@ hr {
padding-bottom: 4px;
}
#thread_nav a,
-.lastposts a,
+#lastposts a,
#n2 {
color: #66b;
}
#thread_nav a:active,
-.lastposts a:active,
+#lastposts a:active,
#n2:active {
color: #afa;
}
@@ -160,7 +160,7 @@ form .msg {
margin-top: 0.5em;
margin-bottom: 0;
}
-.lastposts {
+#lastposts {
color: #66b;
}
.del a,
diff --git a/static/css/txt/headline.css b/static/css/txt/headline.css
index c9d3525..24eb7d2 100644
--- a/static/css/txt/headline.css
+++ b/static/css/txt/headline.css
@@ -60,7 +60,7 @@ button:active {
}
.outerbox .innerbox,
.postform,
-.lastposts {
+#lastposts {
background: #eee;
border-bottom: 2px solid #bbb;
}
@@ -121,13 +121,13 @@ button:active {
.mainpage .postform {
margin: 0;
}
-.postform, .lastposts {
+.postform, #lastposts {
background: #eee;
border-bottom: 2px solid #bbb;
margin-top: 0;
padding: .5em;
}
-.lastposts {
+#lastposts {
background-image: none;
}
form .msg {
diff --git a/static/css/txt/mercury.css b/static/css/txt/mercury.css
index 27ffbee..921ec7c 100644
--- a/static/css/txt/mercury.css
+++ b/static/css/txt/mercury.css
@@ -122,13 +122,13 @@ hr {
.mainpage .postform {
margin: 0;
}
-.postform, .lastposts {
+.postform, #lastposts {
background: #cce url(../img/rose2.png) no-repeat scroll top right;
border-bottom: 2px solid #aab;
margin-top: 0;
padding: .5em;
}
-.lastposts {
+#lastposts {
background-image: none;
}
#createbox {
diff --git a/static/css/txt/postal.css b/static/css/txt/postal.css
index 14d2bbb..0c3c013 100644
--- a/static/css/txt/postal.css
+++ b/static/css/txt/postal.css
@@ -152,12 +152,12 @@ h4 {
border-color: #f0e7ce;
color: #353535;
}
-.lastposts,
+#lastposts,
.threadpage .postform {
margin-top: 0.5em;
padding: 0.5em;
}
-.lastposts,
+#lastposts,
.threadpage .postform {
background: #fff;
-webkit-box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
diff --git a/static/css/txt/rizzona.css b/static/css/txt/rizzona.css
index 8617f8a..29bd2c4 100644
--- a/static/css/txt/rizzona.css
+++ b/static/css/txt/rizzona.css
@@ -84,7 +84,7 @@ hr {
.msg hr {
display: block;
}
-.lastposts {
+#lastposts {
margin: 0.5em 0;
}
.mainpage .postform {
diff --git a/static/css/txt/void.css b/static/css/txt/void.css
index fff6587..5e9d431 100644
--- a/static/css/txt/void.css
+++ b/static/css/txt/void.css
@@ -51,7 +51,7 @@ h4,
.postform span,
#size,
.abbrev,
-.end,
+#end,
#footer,
#footer a,
#threads th {
diff --git a/static/js/autorefresh.js b/static/js/autorefresh.js
index 91ac05c..d804675 100644
--- a/static/js/autorefresh.js
+++ b/static/js/autorefresh.js
@@ -233,7 +233,6 @@ function updateThread(posts, total_replies, serverTime) {
}
thread_length = parseInt(total_replies) + 1;
- //document.getElementsByClassName("thread")[0].firstChild.children[0].innerHTML = "("+thread_length+")";
new_unread = thread_length - thread_first_length;
if (new_unread) document.title = "(" + new_unread + ") " + thread_title;
@@ -244,7 +243,7 @@ function notif(title, msg) {
var n = new Notification(title, {
body: msg
});
- setTimeout(n.close.bind(n), 10000);
+ setTimeout(n.close.bind(n), 5000);
}
function counter() {
@@ -270,7 +269,7 @@ function detectService() {
if (thread_length == thread_lastreply) {
serviceType = 2;
document.getElementById("n").addEventListener("click", checkNew);
- var footer = document.getElementsByClassName("lastposts")[0];
+ var footer = document.getElementById("lastposts");
var in1 = document.createElement("input");
in1.id = "autorefresh";
in1.setAttribute("type", "checkbox");
@@ -281,7 +280,7 @@ function detectService() {
in2.setAttribute("for", "autorefresh");
in2.style.marginRight = "4px";
in2.style.cursor = "pointer";
- in2.textContent = "Auto refresh";
+ in2.textContent = "Automático";
var in3 = document.createElement("span");
in3.id = "counter";
in3.style.position = "absolute";
diff --git a/static/js/weabotxt.js b/static/js/weabotxt.js
index ea060f8..2c93105 100644
--- a/static/js/weabotxt.js
+++ b/static/js/weabotxt.js
@@ -189,6 +189,17 @@ function listSort(e) {
for (var j = 0; j < arr.length; j++) table.appendChild(arr[j]);
}
+function checkHidden() {
+ var hidp = localStorage.getItem("hid-p-"+board);
+ if (hidp) {
+ var hid = hidp.split("!");
+ for (var i = 0; i < hid.length; i++) {
+ var post = document.getElementById("p"+hid[i]);
+ if (post) post.classList.add("hidden");
+ }
+ }
+}
+
function togglePost(e) {
var post = e.parentElement;
var pid = post.id.slice(1);
@@ -295,14 +306,7 @@ document.addEventListener("DOMContentLoaded", function() {
}
}
- var hidp = localStorage.getItem("hid-p-"+board);
- if (hidp) {
- var hid = hidp.split("!");
- for (var i = 0; i < hid.length; i++) {
- var post = document.getElementById("p"+hid[i]);
- if (post) post.classList.add("hidden");
- }
- }
+ checkHidden();
});
document.addEventListener("click", function(e) {