mirror of
https://github.com/Eggbertx/gochan.git
synced 2025-08-07 10:16:24 -07:00
Videos (should) now format correctly
This commit is contained in:
parent
c8aa02b420
commit
4d93f8bb98
4 changed files with 9 additions and 8 deletions
|
@ -246,7 +246,7 @@ hr {
|
|||
}
|
||||
|
||||
|
||||
img.thumbnail {
|
||||
.upload {
|
||||
float:left;
|
||||
max-width: 100%;
|
||||
margin: 5px 10px 10px 0px;
|
||||
|
|
|
@ -66,7 +66,7 @@ function prepareThumbnails() {
|
|||
// set thumbnails to expand when clicked
|
||||
$jq("a.upload-container").click(function(e) {
|
||||
var a = $jq(this);
|
||||
var thumb = a.find("img.thumbnail");
|
||||
var thumb = a.find("img.upload");
|
||||
var video;
|
||||
var thumbURL;
|
||||
if(thumb.attr("alt") == undefined) thumbURL = thumb.attr("src");
|
||||
|
@ -86,6 +86,7 @@ function prepareThumbnails() {
|
|||
src: uploadURL,
|
||||
autoplay: true,
|
||||
controls: true,
|
||||
class: "upload",
|
||||
loop: true
|
||||
}).insertAfter(file_info_elem);
|
||||
|
||||
|
@ -98,8 +99,8 @@ function prepareThumbnails() {
|
|||
}).css({
|
||||
"padding-left": "8px"
|
||||
})
|
||||
.html("[Close]<br />")
|
||||
.insertAfter(file_info_elem);
|
||||
.html("[Close]<br />");
|
||||
file_info_elem.append(close_video_btn);
|
||||
} else {
|
||||
thumb.attr({
|
||||
src: uploadURL,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue