This repository was archived by the owner on Nov 22, 2021. It is now read-only.
File tree 6 files changed +67
-4
lines changed
6 files changed +67
-4
lines changed Original file line number Diff line number Diff line change @@ -891,6 +891,26 @@ Code.init = function (toolbox) {
891
891
} ( name ) ) ;
892
892
}
893
893
894
+ var filterBtn = document . querySelectorAll ( '.filterBtn' ) ;
895
+ if ( Code . getTags ( ) [ 0 ] == 'smart' ) {
896
+ filterBtn [ 0 ] . className = 'filterBtn' ;
897
+ filterBtn [ 1 ] . className = 'filterBtn selected' ;
898
+ }
899
+ filterBtn . forEach ( function ( item , index ) {
900
+ filterBtn [ index ] . onclick = function ( ) {
901
+ filterBtn . forEach ( function ( m , n ) {
902
+ filterBtn [ n ] . className = 'filterBtn' ;
903
+ } ) ;
904
+ filterBtn [ index ] . className = 'filterBtn selected' ;
905
+ var tagName = this . getAttribute ( 'tag' ) ;
906
+ if ( tagName ) {
907
+ window . history . pushState ( 'tag' , 'title' , '/?tags=' + tagName ) ;
908
+ } else {
909
+ window . history . pushState ( 'tag' , 'title' , '/' ) ;
910
+ }
911
+ } ;
912
+ } ) ;
913
+
894
914
onresize ( ) ;
895
915
} ;
896
916
Original file line number Diff line number Diff line change @@ -18,6 +18,45 @@ html[dir="RTL"] .farSide {
18
18
text-align : left;
19
19
}
20
20
21
+ # mainTable {
22
+ margin-left : 42px ;
23
+ width : calc (100% - 42px );
24
+ }
25
+
26
+ # blockFilter {
27
+ width : 42px ;
28
+ background : # 333 ;
29
+ position : fixed;
30
+ top : 110px ;
31
+ left : 0 ;
32
+ }
33
+
34
+ # blockFilter a {
35
+ display : block;
36
+ box-sizing : border-box;
37
+ width : 100% ;
38
+ height : 36px ;
39
+ line-height : 36px ;
40
+ text-align : center;
41
+ color : # 999 ;
42
+ border-right-width : 0px ;
43
+ border-right-style : solid;
44
+ border-right-color : # f43 ;
45
+ cursor : pointer;
46
+ transition : .2s ;
47
+ }
48
+
49
+ # blockFilter a .selected {
50
+ color : # fff ;
51
+ border-right-width : 4px ;
52
+ background : # 494949 ;
53
+ }
54
+
55
+ # blockFilter a : hover {
56
+ color : # fff ;
57
+ background : # 494949 ;
58
+ }
59
+
21
60
22
61
/* Buttons */
23
62
Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ var MSG = {
9
9
exportImage : "Download Image" ,
10
10
userMenuDashboard : "Dashboard" ,
11
11
userMenuTutorials : "Tutorials" ,
12
- userMenuWebSite : "Support " ,
12
+ userMenuWebSite : "Web Site " ,
13
13
userMenuLogout : "Logout" ,
14
14
blocks : "Blocks" ,
15
15
linkTooltip : "Save and Link to Blocks" ,
Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ var MSG = {
9
9
exportImage : "下载图片" ,
10
10
userMenuDashboard : "专案管理" ,
11
11
userMenuTutorials : "教学" ,
12
- userMenuWebSite : "资讯 " ,
12
+ userMenuWebSite : "官方网站 " ,
13
13
userMenuLogout : "登出" ,
14
14
blocks : "积木" ,
15
15
linkTooltip : "储存并产生连结" ,
Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ var MSG = {
9
9
exportImage : "下載圖片" ,
10
10
userMenuDashboard : "專案管理" ,
11
11
userMenuTutorials : "教學" ,
12
- userMenuWebSite : "資訊 " ,
12
+ userMenuWebSite : "官網 " ,
13
13
userMenuLogout : "登出" ,
14
14
blocks : "積木" ,
15
15
linkTooltip : "儲存並產生連結" ,
Original file line number Diff line number Diff line change 14
14
<a href =" #close" title =" Close" class =" close" >X</a >
15
15
</div >
16
16
</div >
17
- <table width =" 100%" height =" 100%" class =" nav" >
17
+ <div id =" blockFilter" >
18
+ <a class =" filterBtn selected" >All</a >
19
+ <a class =" filterBtn" tag =" smart" >S</a >
20
+ </div >
21
+ <table class =" nav" id =" mainTable" height =" 100%" >
18
22
<tr >
19
23
<td colspan = 2>
20
24
<table width =" 100%" >
You can’t perform that action at this time.
0 commit comments