File tree Expand file tree Collapse file tree 3 files changed +4
-12
lines changed Expand file tree Collapse file tree 3 files changed +4
-12
lines changed Original file line number Diff line number Diff line change 1818< div class ="container ">
1919 < div class ="left ">
2020 < div id ="btnContainer ">
21- < button class ="btn active " onclick ="listView() "> < i class ="fa fa-bars "> </ i > </ button >
22- < button class ="btn " onclick ="gridView() "> < i class ="fa fa-th-large "> </ i > </ button >
21+ < button class ="btn " onclick ="listView() "> < i class ="fa fa-bars "> </ i > </ button >
22+ < button class ="btn active " onclick ="gridView() "> < i class ="fa fa-th-large "> </ i > </ button >
2323 < button class ="btn " id ="addBtn "> < i class ="fas fa-plus "> </ i > </ button >
2424 </ div >
2525 < div class ="row " id ="notes ">
Original file line number Diff line number Diff line change 77
88// List View
99function listView ( ) {
10+
1011 for ( i = 0 ; i < elements . length ; i ++ ) {
1112 elements [ i ] . style . width = "100%" ;
1213 }
@@ -27,15 +28,6 @@ for (var i = 0; i < btns.length; i++) {
2728 this . className += " active" ;
2829 } ) ;
2930}
30- var editContainer = document . getElementById ( "editContainer" ) ;
31- var editbtns = editContainer . getElementsByClassName ( "btn" ) ;
32- for ( var i = 0 ; i < editbtns . length ; i ++ ) {
33- editbtns [ i ] . addEventListener ( "click" , function ( ) {
34- var current = document . getElementsByClassName ( "active" ) ;
35- current [ 0 ] . className = current [ 0 ] . className . replace ( " active" , "" ) ;
36- this . className += " active" ;
37- } ) ;
38- }
3931
4032class Notes {
4133 constructor ( dbName ) {
Original file line number Diff line number Diff line change 1616/* Create two equal columns that floats next to each other */
1717.column {
1818 float : left;
19- width : 100 % ;
19+ width : 50 % ;
2020 height : 100px ;
2121 border : 2px solid # eee ;
2222 border-radius : 5% ;
You can’t perform that action at this time.
0 commit comments