更多語言
更多操作
imported>Wr 無編輯摘要 |
imported>Wr 無編輯摘要 |
||
第1行: | 第1行: | ||
<html> |
<html> |
||
<div class="media"> |
<div class="media"> |
||
<img src="https://sonicpedia.org/ |
<img src="https://sonicpedia.org/headlogo.png" class="mr-3" alt="索尼克百科 Logo" width="60px" height="60px"> |
||
<div class="media-body"> |
<div class="media-body"> |
||
<h5 class="mt-0">欢迎来到信息栏创建工具!</h5> |
<h5 class="mt-0">欢迎来到信息栏创建工具!</h5> |
於 2022年3月23日 (三) 13:43 的修訂
<html>
<img src="https://sonicpedia.org/headlogo.png" class="mr-3" alt="索尼克百科 Logo" width="60px" height="60px">
歡迎來到信息欄創建工具!
您可通過本工具快速創建適用於索尼克百科及其他 MediaWiki 站點的信息欄~ 歡迎分享!
<input type="text" id="franame" onkeydown="if(event.keyCode==13){getfraname()}"/> <button type="button" class="btn btn-primary" onclick="getfraname()">確定</button>
<script>
/*確認名字*/
function getfraname() {
var franame=document.getElementById("franame").value
var xianhide=document.getElementById("xianhide");
document.getElementById("houhide").style.display = "none"
xianhide.style.display = "block"
var mwmark = document.getElementById("mwmark")
mwmark.insertAdjacentHTML("beforeend",franame)
}
/*添加信息*/
function getfracontent() {
var fraco=document.getElementById("fracontent").value
document.getElementById("writee").insertAdjacentHTML("beforeend","
|-
")
var mwmark = document.getElementById("mwmark")
mwmark.insertAdjacentHTML("beforeend","
|")
mwmark.insertAdjacentHTML("beforeend",fraco)
mwmark.insertAdjacentHTML("beforeend"," =")
document.getElementById("fracontent").value = ""
}
function stopmakefra() {
document.getElementById("writee").insertAdjacentHTML("beforeend","
|}")
document.getElementById("mwmark").insertAdjacentHTML("beforeend","
}}")
document.getElementById("mwmark").style.opacity = "100"
document.getElementById("buttoncr").style.display = "none";
document.getElementById("houhide").style.display = "none"
}
</script>
</html>