Skip to content

Commit

Permalink
modified some documents
Browse files Browse the repository at this point in the history
  • Loading branch information
DebugST committed Apr 29, 2021
1 parent c754410 commit 4f52da5
Show file tree
Hide file tree
Showing 5 changed files with 30 additions and 20 deletions.
2 changes: 1 addition & 1 deletion docs/api.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=0">
<title>{THIS IS TITLE}</title>
<title>STNodeEditor - API</title>
<link rel="stylesheet" type="text/css" href="./css/stdoc.css"/>
<script type="text/javascript" src="./js/jquery-1.10.2.min.js"></script>
<script type="text/javascript" src="./js/stdoc.js"></script>
Expand Down
1 change: 1 addition & 0 deletions docs/css/index.css
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
background-repeat:no-repeat;
-webkit-font-smoothing:antialiased;
}
::-webkit-scrollbar { display: none; }
h1{
font-size:2.75rem;
}
Expand Down
10 changes: 5 additions & 5 deletions docs/doc_cn.html
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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%"});
Expand Down
10 changes: 5 additions & 5 deletions docs/doc_en.html
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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%"});
Expand Down
27 changes: 18 additions & 9 deletions docs/js/stdoc.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,25 +25,34 @@ $(document).ready(function(){

$(document).on("touchstart","#div_left",function(e){});

if(navigator.userAgent.toLowerCase().indexOf('webkit') == -1){
console.log('what the fuck...!!!!!!');
$('body').append("<div id='div_fuck_the_kernel'>"
+ "都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(
"<div id='WO_TE_ME_DE_YE_HEN_JUE_WANG_A_CAO'>"
+ "老铁!用WebKit浏览器,不然滚动条太丑了,不想改页面了!<br/>"
+ "(Use the WebKit browser as much as possible!!)"
+ "</div>"
);
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,
right:0,
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();});
}
});

0 comments on commit 4f52da5

Please sign in to comment.