打开主菜单
首页
随机
最近更改
特殊页面
沙盒
互助客栈
方针与指引
帮助
页面信息
链入页面
相关更改
设置
关于LLWiki
免责声明
LLWiki
搜索
用户菜单
18.191.202.174
讨论
监视列表
贡献
登录
LLWiki正在建设中,欢迎
加入我们
!
查看“Widget:As-song”的源代码
←
Widget:As-song
因为以下原因,您没有权限编辑本页:
您请求的操作仅限属于该用户组的用户执行:
用户
您没有权限编辑
Widget
命名空间内的页面。
您可以查看和复制此页面的源代码。
<noinclude>{{doc|content=用於[[LoveLive!學園偶像祭ALL STARS歌曲列表]],請使用{{tl|AS song select}}調用。}}</noinclude><includeonly><!--{if !isset($wgWidgetAsSong) || !$wgWidgetAsSong}--><!--{assign var="wgWidgetAsSong" value=true scope="global"}--><script> //</includeonly>JavaScript脚本:<pre lang=js> window.addEventListener('load', function() { document.querySelectorAll( '.as-song-container' ).forEach(function(ele) { var select = document.createElement('select'), nodeList = ele.querySelectorAll('.as-song'), optionArray = []; ele.insertBefore(select, ele.firstChild); select.lang = 'ja'; nodeList.forEach(function(table, i) { var option = new Option(table.querySelector('big').textContent, i); optionArray.push(option); }); optionArray = optionArray.sort(function(a, b) { return a.text <= b.text ? -1 : 1; }); optionArray.forEach(function(option) { select.add(option); }); select.dataset.oldIndex = optionArray[0].value; nodeList[select.dataset.oldIndex].style.display = 'table'; select.onchange = function() { nodeList[select.dataset.oldIndex].style.display = 'none'; select.dataset.oldIndex = optionArray[select.selectedIndex].value; nodeList[select.dataset.oldIndex].style.display = 'table'; }; }); }); //</pre> <includeonly> </script><style> /* </includeonly>CSS样式表:<pre lang=css> */ .as-song-container select { font-size: 1rem; padding: 2px; margin-right: 1em; font-family: 'ヒラギノ角ゴ ProN' , 'Hiragino Kaku Gothic ProN' , '游ゴシック' , '游ゴシック体' , YuGothic , 'Yu Gothic' , 'メイリオ' , Meiryo , 'MS ゴシック' , 'MS Gothic' , HiraKakuProN-W3 , 'TakaoExゴシック' , TakaoExGothic , 'MotoyaLCedar' , 'Droid Sans Japanese' , sans-serif; } .as-song-container select + div { display: inline-block; vertical-align: top; } .as-song-container .as-song { display: none; } /* </pre><includeonly> */ </style><!--{/if}--></includeonly>
本页使用的模板:
Template:Doc
(
查看源代码
)(受保护)
Template:Documentation
(
查看源代码
)(受保护)
Template:Tl
(
查看源代码
)(受保护)
返回
Widget:As-song
。