Skip to content

Commit 4f52da5

Browse files
committed
modified some documents
1 parent c754410 commit 4f52da5

File tree

5 files changed

+30
-20
lines changed

5 files changed

+30
-20
lines changed

docs/api.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<head>
44
<meta charset="utf-8" />
55
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=0">
6-
<title>{THIS IS TITLE}</title>
6+
<title>STNodeEditor - API</title>
77
<link rel="stylesheet" type="text/css" href="./css/stdoc.css"/>
88
<script type="text/javascript" src="./js/jquery-1.10.2.min.js"></script>
99
<script type="text/javascript" src="./js/stdoc.js"></script>

docs/css/index.css

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
background-repeat:no-repeat;
66
-webkit-font-smoothing:antialiased;
77
}
8+
::-webkit-scrollbar { display: none; }
89
h1{
910
font-size:2.75rem;
1011
}

docs/doc_cn.html

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
height: 30px;
3131
top: 5px;
3232
background-color: rgba(125,125,125,.8);
33-
z-index: 1;
33+
z-index: 100;
3434
border-radius: 15px;
3535
background-size: cover;
3636
opacity:0.6;
@@ -61,12 +61,12 @@
6161
$(document).ready(function(){
6262
var e_l = $("#left"), e_r = $("#right");
6363
$("#a_btn_l").click(function(){
64-
e_l.css({opacity:1,width:"100%"});
65-
e_r.css({opacity:0});
64+
e_l.css({opacity:1,"z-index":10,width:"100%"});
65+
e_r.css({opacity:0,"z-index":0});
6666
});
6767
$("#a_btn_r").click(function(){
68-
e_l.css({opacity:0});
69-
e_r.css({opacity:1,left:0,width:"100%"});
68+
e_l.css({opacity:0,"z-index":0});
69+
e_r.css({opacity:1,"z-index":10,left:0,width:"100%"});
7070
});
7171
$("#a_btn_lr").click(function(){
7272
e_l.css({opacity:1,width:"50%"});

docs/doc_en.html

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
height: 30px;
3131
top: 5px;
3232
background-color: rgba(125,125,125,.8);
33-
z-index: 1;
33+
z-index: 100;
3434
border-radius: 15px;
3535
background-size: cover;
3636
opacity:0.6;
@@ -61,12 +61,12 @@
6161
$(document).ready(function(){
6262
var e_l = $("#left"), e_r = $("#right");
6363
$("#a_btn_l").click(function(){
64-
e_l.css({opacity:1,width:"100%"});
65-
e_r.css({opacity:0});
64+
e_l.css({opacity:1,"z-index":10,width:"100%"});
65+
e_r.css({opacity:0,"z-index":0});
6666
});
6767
$("#a_btn_r").click(function(){
68-
e_l.css({opacity:0});
69-
e_r.css({opacity:1,left:0,width:"100%"});
68+
e_l.css({opacity:0,"z-index":0});
69+
e_r.css({opacity:1,"z-index":10,left:0,width:"100%"});
7070
});
7171
$("#a_btn_lr").click(function(){
7272
e_l.css({opacity:1,width:"50%"});

docs/js/stdoc.js

Lines changed: 18 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -25,25 +25,34 @@ $(document).ready(function(){
2525

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

28-
if(navigator.userAgent.toLowerCase().indexOf('webkit') == -1){
29-
console.log('what the fuck...!!!!!!');
30-
$('body').append("<div id='div_fuck_the_kernel'>"
31-
+ "都TM2021年了 Windows还在采用可视滚动条 然而只有WebKit提供了滚动条样式的支持"
28+
var strUA = navigator.userAgent.toLowerCase();
29+
if(strUA.indexOf('windows') != -1 && strUA.indexOf('webkit') == -1){
30+
//console.log('what the fuck...!!!!!!');
31+
//我是真没想到都2021年了 windows还在采用可视化滚动条
32+
//而且还只有webkit内核提供了滚动条样式的支持
33+
//我一直以为现在这个年代 滚动条基本都是隐藏式了的吧
34+
//且不说windows 浏览器厂商就这么赤裸裸的使用系统原生滚动条真棒
35+
//我不是吐槽没有解决方案 而是这种设计
36+
//当发现问题后 我仅仅是想通过样式隐藏滚动条 而只有webkit能做到
37+
//::-webkit-scrollbar { display: none; }
38+
$('body').append(
39+
"<div id='WO_TE_ME_DE_YE_HEN_JUE_WANG_A_CAO'>"
40+
+ "老铁!用WebKit浏览器,不然滚动条太丑了,不想改页面了!<br/>"
41+
+ "(Use the WebKit browser as much as possible!!)"
3242
+ "</div>"
3343
);
34-
var e = $('#div_fuck_the_kernel');
35-
e.css({
44+
$('#WO_TE_ME_DE_YE_HEN_JUE_WANG_A_CAO').css({
3645
position:"fixed",
3746
top:0,
3847
left:0,
3948
right:0,
4049
color:"white",
4150
"line-height":"20px",
4251
"text-align":"center",
43-
"background-color":"rgba(255,255,0,.5)",
52+
"background-color":"rgba(255,255,0,.6)",
4453
border:"solid 1px yellow",
54+
"text-shadow":"0px 1px 1px black",
4555
"z-index":100
46-
});
47-
e.click(function(){e.remove();});
56+
}).click(function(){$(this).remove();});
4857
}
4958
});

0 commit comments

Comments
 (0)