mirror of https://github.com/calzoneman/sync.git
Fix #81
This commit is contained in:
parent
3da4baba52
commit
cecb5db6c7
|
@ -80,10 +80,12 @@ function initCallbacks() {
|
||||||
$("#opt_show_public").prop("checked", opts.show_public);
|
$("#opt_show_public").prop("checked", opts.show_public);
|
||||||
$("#customCss").remove();
|
$("#customCss").remove();
|
||||||
if(opts.customcss.trim() != "") {
|
if(opts.customcss.trim() != "") {
|
||||||
$("<link/>").attr("rel", "stylesheet")
|
$("#usertheme").remove();
|
||||||
.attr("href", opts.customcss)
|
$("<link/>")
|
||||||
.attr("id", "customCss")
|
.attr("rel", "stylesheet")
|
||||||
.insertAfter($("link[href='./assets/css/ytsync.css']"));
|
.attr("href", opts.customcss)
|
||||||
|
.attr("id", "customCss")
|
||||||
|
.appendTo($("head"));
|
||||||
}
|
}
|
||||||
$("#opt_allow_voteskip").prop("checked", opts.allow_voteskip);
|
$("#opt_allow_voteskip").prop("checked", opts.allow_voteskip);
|
||||||
$("#opt_voteskip_ratio").val(opts.voteskip_ratio);
|
$("#opt_voteskip_ratio").val(opts.voteskip_ratio);
|
||||||
|
|
|
@ -1150,7 +1150,7 @@ function applyOpts() {
|
||||||
if(USEROPTS.css) {
|
if(USEROPTS.css) {
|
||||||
$("<link/>").attr("rel", "stylesheet")
|
$("<link/>").attr("rel", "stylesheet")
|
||||||
.attr("type", "text/css")
|
.attr("type", "text/css")
|
||||||
.attr("id", "usertheme")
|
.attr("id", "usercss")
|
||||||
.attr("href", USEROPTS.css)
|
.attr("href", USEROPTS.css)
|
||||||
.appendTo($("head"));
|
.appendTo($("head"));
|
||||||
}
|
}
|
||||||
|
|
|
@ -8,7 +8,7 @@
|
||||||
<meta name="author" content="Calvin 'calzoneman' Montgomery">
|
<meta name="author" content="Calvin 'calzoneman' Montgomery">
|
||||||
|
|
||||||
<link href="./assets/css/bootstrap.css" rel="stylesheet">
|
<link href="./assets/css/bootstrap.css" rel="stylesheet">
|
||||||
<link href="./assets/css/ytsync.css" rel="stylesheet">
|
<link href="./assets/css/ytsync.css" rel="stylesheet" id="defaultcss">
|
||||||
<style>
|
<style>
|
||||||
body {
|
body {
|
||||||
padding-top: 60px; /* 60px to make the container go all the way to the bottom of the topbar */
|
padding-top: 60px; /* 60px to make the container go all the way to the bottom of the topbar */
|
||||||
|
|
Loading…
Reference in New Issue