◆少前百科是非盈利性、非官方的少女前线维基百科。 ◆如果您发现某些内容错误/空缺,请勇于修正/添加!参与进来其实很容易!点这里 加入少前百科。 ◆有任何意见、建议、纠错,欢迎在 GFwiki:反馈与建议 提出和讨论。编辑事务讨论QQ群:597764980,微博@GFwiki少前百科 ◆To foreigners,You can use twitter to contact us. |
“Widget:SFsettings1”的版本间的差异
(测试) |
(1个标签:撤销) |
||
第1行: | 第1行: | ||
<includeonly><script type="text/javascript">(window.RLQ=window.RLQ||[]).push(function(){ | <includeonly><script type="text/javascript">(window.RLQ=window.RLQ||[]).push(function(){ | ||
− | function chibiSet() { | + | function chibiSet() { |
− | var windowWidth = document.getElementById("TDInfWindow").clientWidth | + | var windowWidth = document.getElementById("TDInfWindow").clientWidth |
− | var wa = document.getElementById("spinebox") | + | var wa = document.getElementById("spinebox") |
− | if (windowWidth < 900) { | + | if (windowWidth < 900) { |
− | wa.style.position = "relative"; | + | wa.style.position = "relative"; |
− | wa.style.width = ""; | + | wa.style.width = ""; |
− | } else { | + | } else { |
− | wa.style.position = "absolute"; | + | wa.style.position = "absolute"; |
− | wa.style.width = "320px"; | + | wa.style.width = "320px"; |
− | } | + | } |
− | } | + | } |
− | $(function(){chibiSet()}); | + | $(function(){chibiSet()}); |
− | $(window).resize(function(){chibiSet()}); | + | $(window).resize(function(){chibiSet()}); |
− | $(".trans_image").each(function(i, el){el.onclick=""}); | + | $(".trans_image").each(function(i, el){el.onclick=""}); |
}) | }) | ||
第25行: | 第25行: | ||
/* 技能演示动画 */ | /* 技能演示动画 */ | ||
$("#skillgifshow1").click(function(){ | $("#skillgifshow1").click(function(){ | ||
− | var newgif = new Image; | + | var newgif = new Image; |
− | newgif.style.width = "270px"; | + | newgif.style.width = "270px"; |
− | newgif.style.height = "90px"; | + | newgif.style.height = "90px"; |
− | newgif.style.padding = "1px 2px"; | + | newgif.style.padding = "1px 2px"; |
− | newgif.setAttribute("id" , "skillgifshowtar"); | + | newgif.setAttribute("id" , "skillgifshowtar"); |
− | newgif.setAttribute("src" , "<!--{$src1}-->"); | + | newgif.setAttribute("src" , "<!--{$src1}-->"); |
− | + | console.log(<!--{$src1}-->); | |
− | newgif.addEventListener("click",function(){ | + | newgif.addEventListener("click",function(){ |
− | document.querySelector("#skillgifshow1").style.display = "block"; | + | document.querySelector("#skillgifshow1").style.display = "block"; |
− | document.querySelector("#skillgifshowtar").remove();}); | + | document.querySelector("#skillgifshowtar").remove();}); |
− | $("#skillgifshow1").css("display" , "none"); | + | $("#skillgifshow1").css("display" , "none"); |
− | $("#skillgifshow1").parent().append(newgif); | + | $("#skillgifshow1").parent().append(newgif); |
}); | }); | ||
$("#skillgifshow2").click(function(){ | $("#skillgifshow2").click(function(){ | ||
− | window.open("<!--{$src2}-->", "blank");}) | + | window.open("<!--{$src2}-->", "blank");}) |
</script></includeonly> | </script></includeonly> |