请登录
玩家共建非官方战双WIKI,做最还原游戏内UI体验的WIKI!    
战双WIKI反馈留言板 · WIKI编辑教程 · BWIKI收藏到桌面的方法说明

全站通知:

Widget:Test8

来自战双帕弥什WIKI_BWIKI_哔哩哔哩
跳到导航 跳到搜索


<script>(window.RLQ = window.RLQ || []).push(['jquery', () => {

   $(function() {
       console.log('success')
       let data = eval($('#waterfallsData').text())
       console.log('data:' + data)
       let box = document.getElementById('box')
       for (let i = 0; i < data.length; i++) {
           let item = document.createElement('div')
           item.className = "item"
           let a_img = document.createElement('a')
           a_img.href = data[i].link
           let img = document.createElement('img')
           img.src = data[i].src
           // img = document.createElement('div')
           // img.innerHTML = `[[file:${data[i].src}|class=img-kk|link=&{data[i].link}]]`
           let div = document.createElement('div')
           div.className = "text"
           let link = document.createElement('a')
           link.innerHTML = data[i].text
           link.href = data[i].link
           let width = $('#content').width()
           if (width < 700) {
               link.className = "a_tel"
           } else {
               link.className = "a_text"
           }
           a_img.appendChild(img)
           item.appendChild(a_img)
           div.appendChild(link)
           item.appendChild(div)
           box.appendChild(item)
       }


$(".mw-parser-output").append($("

").text($("#box img").width() + "" + $("#box img").height()))

   })

}]); </script>