File tree Expand file tree Collapse file tree 5 files changed +46
-3
lines changed Expand file tree Collapse file tree 5 files changed +46
-3
lines changed Original file line number Diff line number Diff line change @@ -44,7 +44,7 @@ button.all {
44
44
background : rgb (28 , 184 , 65 ); /* this is a green */
45
45
}
46
46
47
- button .none {
47
+ button .none , button . vizit {
48
48
background : rgb (223 , 117 , 20 ); /* this is an orange */
49
49
}
50
50
@@ -55,3 +55,7 @@ button:hover {
55
55
button .small-button : hover {
56
56
background-color : steelblue;
57
57
}
58
+
59
+ .ribbon {
60
+ position : fixed; top : 0 ; right : 0 ; border : 0 ;
61
+ }
Original file line number Diff line number Diff line change
1
+ /*
2
+ vim: ts=2 expandtab:
3
+ */
4
+ input .input-text {
5
+ font-size : 120% ;
6
+ color : # 5a5854 ;
7
+ background-color : # f2f2f2 ;
8
+ border : 1px solid # bdbdbd ;
9
+ border-radius : 5px ;
10
+ padding : 5px 5px 5px 30px ;
11
+ background-repeat : no-repeat;
12
+ background-posit5ion : 8px 9px ;
13
+ margin-bottom : 10px ;
14
+ }
15
+
16
+ input : focus {
17
+ background-color : # ffffff ;
18
+ border : 1px solid # b1e1e4 ;
19
+ }
20
+
21
+ .region {
22
+ margin-top : 10px ;
23
+ }
24
+
25
+ .current-region {
26
+ font-size : 100% ;
27
+ font-style : italic;
28
+ text-align : center;
29
+ margin-top : 10px ;
30
+ margin-bottom : 10px ;
31
+ }
32
+
1
33
.group {
2
34
margin-bottom : 1em ;
3
35
}
Original file line number Diff line number Diff line change 15
15
< div id ="plots "> </ div >
16
16
</ body >
17
17
18
+ < a id ="github_link " href ="https://github.com/drio/bedbrowser ">
19
+ < img class ="ribbon " src ="/imgs/ribbon.png " alt ="Fork me on GitHub ">
20
+ </ a >
21
+
22
+
18
23
< script src ="js/browser.js "> </ script >
19
24
< script src ="js/viz.js "> </ script >
20
25
< script >
Original file line number Diff line number Diff line change @@ -84,18 +84,20 @@ bb.viz = function(data) {
84
84
85
85
var p = main . append ( "p" ) . attr ( "class" , "region" ) ;
86
86
87
- p . text ( "Region (Ex. Chr17:1100000-1200000)" ) ;
88
-
89
87
p . append ( "input" )
90
88
. attr ( "type" , "text" )
89
+ . attr ( "size" , "45" )
91
90
. attr ( "id" , "region" )
91
+ . attr ( "placeholder" , "Region (Ex. Chr17:1100000-1200000)" )
92
92
. attr ( "class" , "input-text" ) ;
93
93
94
94
p . append ( "button" )
95
95
. text ( "Viz it!" )
96
+ . attr ( "class" , "vizit" )
96
97
. on ( "click" , function ( ) {
97
98
var c = getRegion ( ) ;
98
99
clean ( ) ;
100
+ console . log ( "here" ) ;
99
101
if ( c )
100
102
horizon ( c [ "start" ] , c [ "stop" ] , c [ "chrm" ] ) ;
101
103
else
You can’t perform that action at this time.
0 commit comments