File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1- #migration-text {
2- color : $white ;
3- font-weight : bold ;
4- padding-right : 30px ;
5- }
6-
7- #migration-button {
8- border : 1px $white ;
9- border-style : solid ;
10- }
11-
12- #migration-info {
13- width : 100vw ;
14- height : $banner-height ;
15- font-size : 15px ;
16- justify-content : center ;
17- align-items : center ;
18- background-color : $blue ;
19- display : none ; // or `flex`
20- padding : 0 2rem 0 2rem ;
21- }
22-
231.navbar {
242 display : block ;
253 border-bottom : 1px solid #e9ecef ;
Original file line number Diff line number Diff line change @@ -106,24 +106,8 @@ function addTabs(){
106106 init ( )
107107}
108108
109- function addMigrationBar ( ) {
110- var migrationInfoAccepted = window . localStorage . getItem ( 'migrationInfoAccepted' )
111- if ( migrationInfoAccepted != 'true' ) {
112- var migrationBar = document . getElementById ( 'migration-info' )
113- migrationBar . style . display = 'flex' ;
114- document . documentElement . classList . add ( "has-navbar-banner-top" )
115- var migrationButton = document . getElementById ( 'migration-button' )
116- migrationButton . addEventListener ( 'click' , function ( ) {
117- window . localStorage . setItem ( 'migrationInfoAccepted' , true )
118- migrationBar . style . display = 'none' ;
119- document . documentElement . classList . remove ( "has-navbar-banner-top" )
120- } )
121- }
122- }
123-
124109document . addEventListener ( 'DOMContentLoaded' , function ( ) {
125110 addAnchors ( )
126- addMigrationBar ( )
127111 addNavBarBurgers ( )
128112 addTabs ( )
129113} )
Original file line number Diff line number Diff line change 11< nav class ="navbar is-fixed-top " role ="navigation " aria-label ="main navigation ">
2- < div id ="migration-info ">
3- < div id ="migration-text "> thethingsstack.io has moved to thethingsindustries.com/docs</ div >
4- < div id ="migration-button " class ="button is-primary "> Got it</ div >
5- </ div >
62 < div class ="container is-fluid ">
73 < div class ="navbar-brand ">
84 < a class ="navbar-item " href ="{{ relURL "/" }}">
You can’t perform that action at this time.
0 commit comments