diff --git a/static/js/lib/common/MyUtils.js b/static/js/lib/common/MyUtils.js index 56e6bef..f31b59d 100644 --- a/static/js/lib/common/MyUtils.js +++ b/static/js/lib/common/MyUtils.js @@ -273,12 +273,12 @@ export class MyUtils { "\nwindow.webkit: ", window.webkit, "\nwindow.gecko: ", window.gecko, "\nwindow.opera: ", window.opera) - let testDiv = document.getElementById("testDevice") - testDiv.innerText = testDiv.innerText + - "\n ie: " + window.ie + - "\n window.webkit: " + window.webkit + - "\n window.gecko: " + window.gecko + - "\n window.opera: " + window.opera + // let testDiv = document.getElementById("testDevice") + // testDiv.innerText = testDiv.innerText + + // "\n ie: " + window.ie + + // "\n window.webkit: " + window.webkit + + // "\n window.gecko: " + window.gecko + + // "\n window.opera: " + window.opera } /** @@ -297,15 +297,15 @@ export class MyUtils { let nowFrontSize = ((curClientW / designWidth) / 10) + 'px'; curDoc.style.fontSize = nowFrontSize; console.log("curClientW :", curClientW, "designWidth: ", designWidth, "-> ", nowFrontSize); - let testDiv = document.getElementById("testDevice") - testDiv.innerText = testDiv.innerText + - // "\n navigator_userAgent :" + navigator.userAgent.toLocaleLowerCase() + - "\n isMobile :" + /mobi|android|iphone|ipad|ipod/i.test(navigator.userAgent.toLocaleLowerCase()) + - "\n isIOS :" + /iphone|ipad|ipod/.test(window.navigator.userAgent.toLocaleLowerCase()) + - "\n isAndroid :" + /android/.test(window.navigator.userAgent.toLocaleLowerCase()) + - "\n curClientW :" + curClientW + - " \n designWidth: " + designWidth + - "\n 1rem = " + nowFrontSize + // let testDiv = document.getElementById("testDevice") + // testDiv.innerText = testDiv.innerText + + // // "\n navigator_userAgent :" + navigator.userAgent.toLocaleLowerCase() + + // "\n isMobile :" + /mobi|android|iphone|ipad|ipod/i.test(navigator.userAgent.toLocaleLowerCase()) + + // "\n isIOS :" + /iphone|ipad|ipod/.test(window.navigator.userAgent.toLocaleLowerCase()) + + // "\n isAndroid :" + /android/.test(window.navigator.userAgent.toLocaleLowerCase()) + + // "\n curClientW :" + curClientW + + // " \n designWidth: " + designWidth + + // "\n 1rem = " + nowFrontSize } @@ -341,7 +341,7 @@ export class MyUtils { console.log("myEditFrontSize: ", myEditFrontSize.style.fontSize); let testDiv = document.getElementById("testDevice"); - testDiv.innerText += "\nmyEditFrontSize:" + myEditFrontSize.style.fontSize; + testDiv.innerText = "\nmyEditFrontSize:" + myEditFrontSize.style.fontSize; } /** diff --git a/static/js/lib/main.js b/static/js/lib/main.js index b99e8a0..4f70564 100644 --- a/static/js/lib/main.js +++ b/static/js/lib/main.js @@ -170,15 +170,17 @@ window.onload = function () { /** - * 监听手机键盘 + * 使用说明 */ - if (window.myEdit.ctx.isMobile) { - if (window.myEdit.ctx.isIOS) { - // window.addEventListener("") - } else if (window.myEdit.ctx.isAndroid) { - - } - - } + let testDiv = document.getElementById("testDevice"); + testDiv.innerText += "\n\n ### info ###"+ + "\n'# ': h1" + + "\n'## ': h2" + + "\n'### ': h3" + + "\n'#### ': h4" + + "\n'##### ': h5" + + "\n'###### ': h6" + + "\n'- ': 无序列表" + + "\n'num ': 有序序列表" }