◆少前百科是非盈利性、非官方的少女前线维基百科。 ◆如果您发现某些内容错误/空缺,请勇于修正/添加!参与进来其实很容易!点这里 加入少前百科。 ◆有任何意见、建议、纠错,欢迎在 GFwiki:反馈与建议 提出和讨论。编辑事务讨论QQ群:597764980,微博@GFwiki少前百科 ◆To foreigners,You can use twitter to contact us. |
“Widget:AVGplayer/js”的版本间的差异
(更新) |
(更新) |
||
第123行: | 第123行: | ||
<div id="avgsound" state="off" class="avgsmallbtn">▢)<\/div> | <div id="avgsound" state="off" class="avgsmallbtn">▢)<\/div> | ||
<div id="avgsoundminus" class="avgsmallbtn avgpushbutton">-<\/div> | <div id="avgsoundminus" class="avgsmallbtn avgpushbutton">-<\/div> | ||
− | <div id="avgsoundwidth" state=" | + | <div id="avgsoundwidth" state="4"><\/div> |
<div id="avgsoundplus" class="avgsmallbtn avgpushbutton">+<\/div> | <div id="avgsoundplus" class="avgsmallbtn avgpushbutton">+<\/div> | ||
<\/div> | <\/div> | ||
第162行: | 第162行: | ||
$(".avgpushbutton").mousedown(function(){ | $(".avgpushbutton").mousedown(function(){ | ||
− | $(this).css({"background-color":"# | + | $(this).css({"background-color":"#eaeaea88","color":"black"}); |
}); | }); | ||
$(".avgpushbutton").mouseup(function(){ | $(".avgpushbutton").mouseup(function(){ | ||
第180行: | 第180行: | ||
} else if($(this).attr("state") == "off"){ | } else if($(this).attr("state") == "off"){ | ||
$(this).attr("state", "on"); | $(this).attr("state", "on"); | ||
− | $(this).css({"background-color":"# | + | $(this).css({"background-color":"#eaeaea","color":"black"}); |
$("#mw-page-base").hide();$("#mw-head-base").hide();$("#mw-navigation").hide(); | $("#mw-page-base").hide();$("#mw-head-base").hide();$("#mw-navigation").hide(); | ||
$("#footer").hide();$(".comment-replybox").hide();$("#siteNotice").hide();$("#firstHeading").hide();$("#contentSub").hide(); | $("#footer").hide();$(".comment-replybox").hide();$("#siteNotice").hide();$("#firstHeading").hide();$("#contentSub").hide(); | ||
第197行: | 第197行: | ||
} else if($(this).attr("state") == "off"){ | } else if($(this).attr("state") == "off"){ | ||
$(this).attr("state", "on"); | $(this).attr("state", "on"); | ||
− | $(this).css({"background-color":"# | + | $(this).css({"background-color":"#eaeaea","color":"black"}); |
$("#avgbgm")[0].muted = false; | $("#avgbgm")[0].muted = false; | ||
} | } | ||
第206行: | 第206行: | ||
let back_text = String(sound_num) + "0%"; | let back_text = String(sound_num) + "0%"; | ||
$("#avgbgm")[0].volume = sound_num / 10; | $("#avgbgm")[0].volume = sound_num / 10; | ||
− | $("#avgsoundwidth").css("cssText","background-image: linear-gradient(90deg, # | + | $("#avgsoundwidth").css("cssText","background-image: linear-gradient(90deg, #eaeaea " + back_text + ", transparent " + back_text + ");"); |
$("#avgsoundwidth").attr("state",sound_num); | $("#avgsoundwidth").attr("state",sound_num); | ||
}); | }); | ||
第214行: | 第214行: | ||
let back_text = String(sound_num) + "0%"; | let back_text = String(sound_num) + "0%"; | ||
$("#avgbgm")[0].volume = sound_num / 10; | $("#avgbgm")[0].volume = sound_num / 10; | ||
− | $("#avgsoundwidth").css("cssText","background-image: linear-gradient(90deg, # | + | $("#avgsoundwidth").css("cssText","background-image: linear-gradient(90deg, #eaeaea " + back_text + ", transparent " + back_text + ");"); |
$("#avgsoundwidth").attr("state",sound_num); | $("#avgsoundwidth").attr("state",sound_num); | ||
}); | }); | ||
第221行: | 第221行: | ||
autosign = 1; | autosign = 1; | ||
setTimeout(function(){ autoreadline(); }, 4000 / autospeed); | setTimeout(function(){ autoreadline(); }, 4000 / autospeed); | ||
− | $(this).css({"background-color":"# | + | $(this).css({"background-color":"#eaeaea","color":"black"}); |
$("#avghand").css({"background-color":"#111111","color":"#eaeaea"}); | $("#avghand").css({"background-color":"#111111","color":"#eaeaea"}); | ||
}); | }); | ||
$("#avghand").click(function(){ | $("#avghand").click(function(){ | ||
autosign = 0; | autosign = 0; | ||
− | $(this).css({"background-color":"# | + | $(this).css({"background-color":"#eaeaea","color":"black"}); |
$("#avgauto").css({"background-color":"#111111","color":"#eaeaea"}); | $("#avgauto").css({"background-color":"#111111","color":"#eaeaea"}); | ||
}); | }); | ||
第249行: | 第249行: | ||
} else if($(this).attr("state") == "off"){ | } else if($(this).attr("state") == "off"){ | ||
$(this).attr("state", "on"); | $(this).attr("state", "on"); | ||
− | $(this).css({"background-color":"# | + | $(this).css({"background-color":"#eaeaea","color":"black"}); |
$("#avgbox").fadeOut(300); | $("#avgbox").fadeOut(300); | ||
setTimeout(function(){ $("#avglogbox").fadeIn(300); }, 300); | setTimeout(function(){ $("#avglogbox").fadeIn(300); }, 300); | ||
第256行: | 第256行: | ||
}); | }); | ||
$("#avglognow").click(function(){ | $("#avglognow").click(function(){ | ||
− | $(this).css({"background-color":"# | + | $(this).css({"background-color":"#eaeaea","color":"black"}); |
$("#avglogall").css({"background-color":"#111111","color":"#eaeaea"}); | $("#avglogall").css({"background-color":"#111111","color":"#eaeaea"}); | ||
logallsign = 0; | logallsign = 0; | ||
第262行: | 第262行: | ||
}); | }); | ||
$("#avglogall").click(function(){ | $("#avglogall").click(function(){ | ||
− | $(this).css({"background-color":"# | + | $(this).css({"background-color":"#eaeaea","color":"black"}); |
$("#avglognow").css({"background-color":"#111111","color":"#eaeaea"}); | $("#avglognow").css({"background-color":"#111111","color":"#eaeaea"}); | ||
logallsign = 1; | logallsign = 1; | ||
第290行: | 第290行: | ||
} else if($(this).attr("state") == "off"){ | } else if($(this).attr("state") == "off"){ | ||
$(this).attr("state", "on"); | $(this).attr("state", "on"); | ||
− | $(this).css({"background-color":"# | + | $(this).css({"background-color":"#eaeaea","color":"black"}); |
$("#avgnavigation").css("display","block"); | $("#avgnavigation").css("display","block"); | ||
avglogcreat(); | avglogcreat(); | ||
第296行: | 第296行: | ||
}); | }); | ||
− | $("#avgsound").click() | + | $("#avgsound").click(); |
+ | $("#avgsoundminus").click(); | ||
$("#avghand").click(); | $("#avghand").click(); | ||
$("#avglognow").click(); | $("#avglognow").click(); | ||
第876行: | 第877行: | ||
} | } | ||
} | } | ||
− | |||
}) | }) | ||
</script></includeonly> | </script></includeonly> |