1
0
Fork 0
mirror of https://github.com/Eggbertx/gochan.git synced 2025-08-07 10:16:24 -07:00

Fix text appearing outside replies with images

This commit is contained in:
Joshua Merrell 2018-02-03 12:43:12 -08:00
parent faa313d301
commit c8aa02b420
7 changed files with 19 additions and 27 deletions

View file

@ -7,6 +7,6 @@
<h1>404: File not found</h1>
<img src="/error/lol 404.gif" border="0" alt="">
<p>The requested file could not be found on this server. Are you just typing random stuff in the address bar? If you followed a link from this site here, then post <a href="/site">here</a></p>
<hr><address>http://gochan.org powered by Gochan v1.8.1</address>
<hr><address>http://gochan.org powered by Gochan v1.8.2</address>
</body>
</html>

View file

@ -7,6 +7,6 @@
<h1>500: Internal Server error</h1>
<img src="/error/derpy server.gif" border="0" alt="">
<p>The server encountered an error while trying to serve the page, and we apologize for the inconvenience. The <a href="https://en.wikipedia.org/wiki/Idiot">system administrator</a> will try to fix things as soon has he/she/it can.</p>
<hr><address>http://gochan.org powered by Gochan v1.8.1</address>
<hr><address>http://gochan.org powered by Gochan v1.8.2</address>
</body>
</html>

View file

@ -75,7 +75,7 @@ function prepareThumbnails() {
var thumb_height = thumb.attr("height");
var file_info_elem = a.prevAll(".file-info:first");
var uploadURL = file_info_elem.children("a:first")[0].href;
var viewBtn = a.nextAll("span.post-links:first");
if(thumb.attr("src") == thumbURL) {
// Expanding thumbnail
if(uploadURL.indexOf(".webm") > 0) {
@ -87,12 +87,7 @@ function prepareThumbnails() {
autoplay: true,
controls: true,
loop: true
}).click(function(e) {
e.preventDefault();
if(this.pause) this.pause();
this.removeAttribute("src");
this.remove();
}).insertAfter(a);
}).insertAfter(file_info_elem);
var close_video_btn = $jq("<a />")
.prop("href", "javascript:;")
@ -103,15 +98,15 @@ function prepareThumbnails() {
}).css({
"padding-left": "8px"
})
.text("[Close]")
.html("[Close]<br />")
.insertAfter(file_info_elem);
} else {
thumb.attr({
src: uploadURL,
alt: thumbURL
});
thumb.removeAttr("width");
thumb.removeAttr("height");
})
.removeAttr("width")
.removeAttr("height");
}
} else {
// Shrinking back to thumbnail