forked from cxykevin/sacn_accout_system
完成手机兼容
This commit is contained in:
parent
00d25a5f80
commit
78ecd798c8
|
@ -58,10 +58,15 @@
|
|||
</mdui-layout-main>
|
||||
</mdui-layout>
|
||||
<script>
|
||||
if (window.innerHeight > window.innerWidth) {
|
||||
var size = window.innerHeight / window.innerWidth
|
||||
document.body.style.zoom = size
|
||||
} else {
|
||||
if (window.innerWidth > 800) {
|
||||
document.getElementById("cards").style.transform = "translateY(-50%)"
|
||||
document.getElementById("toc-drawer").setAttribute('open', true);
|
||||
}
|
||||
}
|
||||
function logins() {
|
||||
document.getElementById("loginbtn").setAttribute('loading', "");
|
||||
const Http = new XMLHttpRequest();
|
||||
|
|
|
@ -58,11 +58,15 @@
|
|||
</mdui-layout-main>
|
||||
</mdui-layout>
|
||||
<script>
|
||||
console.log(window.innerWidth)
|
||||
if (window.innerHeight > window.innerWidth) {
|
||||
var size = window.innerHeight / window.innerWidth
|
||||
document.body.style.zoom = size
|
||||
} else {
|
||||
if (window.innerWidth > 800) {
|
||||
document.getElementById("cards").style.transform = "translateY(-50%)"
|
||||
document.getElementById("toc-drawer").setAttribute('open', true);
|
||||
}
|
||||
}
|
||||
function change_passwd() {
|
||||
if (document.getElementById("passwd").value === document.getElementById("check_passwd").value) {
|
||||
document.getElementById("loginbtn").setAttribute('loading', "");
|
||||
|
|
|
@ -52,10 +52,15 @@
|
|||
</mdui-layout-main>
|
||||
</mdui-layout>
|
||||
<script>
|
||||
if (window.innerHeight > window.innerWidth) {
|
||||
var size = window.innerHeight / window.innerWidth
|
||||
document.body.style.zoom = size
|
||||
} else {
|
||||
if (window.innerWidth > 800) {
|
||||
document.getElementById("cards").style.transform = "translateY(-50%)"
|
||||
document.getElementById("toc-drawer").setAttribute('open', true);
|
||||
}
|
||||
}
|
||||
function logins() {
|
||||
document.getElementById("loginbtn").setAttribute('loading', "");
|
||||
const Http = new XMLHttpRequest();
|
||||
|
|
|
@ -59,11 +59,15 @@
|
|||
</mdui-layout-main>
|
||||
</mdui-layout>
|
||||
<script>
|
||||
console.log(window.innerWidth)
|
||||
if (window.innerHeight > window.innerWidth) {
|
||||
var size = window.innerHeight / window.innerWidth
|
||||
document.body.style.zoom = size
|
||||
} else {
|
||||
if (window.innerWidth > 800) {
|
||||
document.getElementById("cards").style.transform = "translateY(-50%)"
|
||||
document.getElementById("toc-drawer").setAttribute('open', true);
|
||||
}
|
||||
}
|
||||
function signup() {
|
||||
if (document.getElementById("passwd").value === document.getElementById("check_passwd").value) {
|
||||
document.getElementById("loginbtn").setAttribute('loading', "");
|
||||
|
|
Loading…
Reference in New Issue