From 4f52da54bd9be39810258fdc4ff50f33849905e0 Mon Sep 17 00:00:00 2001 From: DebugST <2212233137@qq.com> Date: Thu, 29 Apr 2021 23:24:00 +0800 Subject: [PATCH] modified some documents --- docs/api.html | 2 +- docs/css/index.css | 1 + docs/doc_cn.html | 10 +++++----- docs/doc_en.html | 10 +++++----- docs/js/stdoc.js | 27 ++++++++++++++++++--------- 5 files changed, 30 insertions(+), 20 deletions(-) diff --git a/docs/api.html b/docs/api.html index dd6a627..68115b7 100644 --- a/docs/api.html +++ b/docs/api.html @@ -3,7 +3,7 @@ -{THIS IS TITLE} +STNodeEditor - API diff --git a/docs/css/index.css b/docs/css/index.css index 7104625..0fabbd9 100644 --- a/docs/css/index.css +++ b/docs/css/index.css @@ -5,6 +5,7 @@ background-repeat:no-repeat; -webkit-font-smoothing:antialiased; } +::-webkit-scrollbar { display: none; } h1{ font-size:2.75rem; } diff --git a/docs/doc_cn.html b/docs/doc_cn.html index b703615..848c9c7 100644 --- a/docs/doc_cn.html +++ b/docs/doc_cn.html @@ -30,7 +30,7 @@ height: 30px; top: 5px; background-color: rgba(125,125,125,.8); - z-index: 1; + z-index: 100; border-radius: 15px; background-size: cover; opacity:0.6; @@ -61,12 +61,12 @@ $(document).ready(function(){ var e_l = $("#left"), e_r = $("#right"); $("#a_btn_l").click(function(){ - e_l.css({opacity:1,width:"100%"}); - e_r.css({opacity:0}); + e_l.css({opacity:1,"z-index":10,width:"100%"}); + e_r.css({opacity:0,"z-index":0}); }); $("#a_btn_r").click(function(){ - e_l.css({opacity:0}); - e_r.css({opacity:1,left:0,width:"100%"}); + e_l.css({opacity:0,"z-index":0}); + e_r.css({opacity:1,"z-index":10,left:0,width:"100%"}); }); $("#a_btn_lr").click(function(){ e_l.css({opacity:1,width:"50%"}); diff --git a/docs/doc_en.html b/docs/doc_en.html index e08a4f8..05fbfc6 100644 --- a/docs/doc_en.html +++ b/docs/doc_en.html @@ -30,7 +30,7 @@ height: 30px; top: 5px; background-color: rgba(125,125,125,.8); - z-index: 1; + z-index: 100; border-radius: 15px; background-size: cover; opacity:0.6; @@ -61,12 +61,12 @@ $(document).ready(function(){ var e_l = $("#left"), e_r = $("#right"); $("#a_btn_l").click(function(){ - e_l.css({opacity:1,width:"100%"}); - e_r.css({opacity:0}); + e_l.css({opacity:1,"z-index":10,width:"100%"}); + e_r.css({opacity:0,"z-index":0}); }); $("#a_btn_r").click(function(){ - e_l.css({opacity:0}); - e_r.css({opacity:1,left:0,width:"100%"}); + e_l.css({opacity:0,"z-index":0}); + e_r.css({opacity:1,"z-index":10,left:0,width:"100%"}); }); $("#a_btn_lr").click(function(){ e_l.css({opacity:1,width:"50%"}); diff --git a/docs/js/stdoc.js b/docs/js/stdoc.js index 50a259d..48849ed 100644 --- a/docs/js/stdoc.js +++ b/docs/js/stdoc.js @@ -25,14 +25,23 @@ $(document).ready(function(){ $(document).on("touchstart","#div_left",function(e){}); - if(navigator.userAgent.toLowerCase().indexOf('webkit') == -1){ - console.log('what the fuck...!!!!!!'); - $('body').append("
" - + "都TM2021年了 Windows还在采用可视滚动条 然而只有WebKit提供了滚动条样式的支持" + var strUA = navigator.userAgent.toLowerCase(); + if(strUA.indexOf('windows') != -1 && strUA.indexOf('webkit') == -1){ + //console.log('what the fuck...!!!!!!'); + //我是真没想到都2021年了 windows还在采用可视化滚动条 + //而且还只有webkit内核提供了滚动条样式的支持 + //我一直以为现在这个年代 滚动条基本都是隐藏式了的吧 + //且不说windows 浏览器厂商就这么赤裸裸的使用系统原生滚动条真棒 + //我不是吐槽没有解决方案 而是这种设计 + //当发现问题后 我仅仅是想通过样式隐藏滚动条 而只有webkit能做到 + //::-webkit-scrollbar { display: none; } + $('body').append( + "
" + + "老铁!用WebKit浏览器,不然滚动条太丑了,不想改页面了!
" + + "(Use the WebKit browser as much as possible!!)" + "
" ); - var e = $('#div_fuck_the_kernel'); - e.css({ + $('#WO_TE_ME_DE_YE_HEN_JUE_WANG_A_CAO').css({ position:"fixed", top:0, left:0, @@ -40,10 +49,10 @@ $(document).ready(function(){ color:"white", "line-height":"20px", "text-align":"center", - "background-color":"rgba(255,255,0,.5)", + "background-color":"rgba(255,255,0,.6)", border:"solid 1px yellow", + "text-shadow":"0px 1px 1px black", "z-index":100 - }); - e.click(function(){e.remove();}); + }).click(function(){$(this).remove();}); } }); \ No newline at end of file