game/css/stylesMobile.js

70 lines
2.5 KiB
JavaScript
Raw Normal View History

2022-06-06 21:30:34 +00:00
// if (document.documentElement.clientWidth >= 414 && document.documentElement.clientWidth <= 736 ) {
// console.log(document.documentElement.clientWidth)
// console.log(document.documentElement.clientHeight)
// // var $reline2 = document.getElementById("reline2")
// var $chatMobile = document.getElementsByClassName("allChat")
// var $arrayChatWindow = Array.from($chatMobile)
// var $onlineList = document.getElementById("online_list")
// var $online = document.getElementById("online")
// var $chatList = document.getElementById("chat_list")
// var $chat_menus = document.getElementById("chat_menus")
// // var $cb1 = document.getElementById("cb1")
// // var $cb2 = document.getElementById("cb2")
// var $globalMain = document.getElementById("globalMain")
// for (let key of $arrayChatWindow) {
// key.hidden = true
// }
// // $reline2.hidden = true
// // <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD>
// var $buttonChat = document.createElement("button")
// $buttonChat.id = "buttonHiddenChat"
// $buttonChat.textContent = "<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD>"
// // $buttonChat.style.width = "100%"
// // $buttonChat.style.fontSize = "17pt"
// // $buttonChat.style.position = "fixed"
// $buttonChat.style.top = `${document.documentElement.clientHeight - 33}px`
// document.body.append($buttonChat)
// document.body.addEventListener("click", function (event) {
// if (event.target === $buttonChat) {
// if ($buttonChat.textContent === "<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD>") {
// $buttonChat.textContent = "<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD>"
// // for (let key of $arrayChatWindow) {
// // key.hidden = false
// // }
// $arrayChatWindow[0].hidden = false
// $onlineList.hidden = true
// $online.hidden = true
// // $chat_menus.display = "none"
// // $chatList.style.width = "410px"
// // var $p = document.createElement("p")
// // $p.textContent = "<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>"
// // document.getElementById("chat_menus").prepend(`<button><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD></button>`)
// return
// }
// $buttonChat.textContent = "<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD>"
// $arrayChatWindow[0].hidden = true
// // for (let key of $arrayChatWindow) {
// // key.hidden = true
// // }
// }
// })
// }