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