File tree Expand file tree Collapse file tree 2 files changed +15
-0
lines changed
Expand file tree Collapse file tree 2 files changed +15
-0
lines changed Original file line number Diff line number Diff line change @@ -199,6 +199,17 @@ <h2>Seconds Toggle</h2>
199199 < label for ="hide-seconds "> Off</ label >
200200 </ div >
201201 </ section >
202+ < section >
203+ < h2 > Weather Toggle</ h2 >
204+ < div >
205+ < input type ="radio " name ="weather " id ="weather-on " value ="true " checked />
206+ < label for ="weather-on "> On</ label >
207+ </ div >
208+ < div >
209+ < input type ="radio " name ="weather " id ="weather-off " value ="false "/>
210+ < label for ="weather-off "> Off</ label >
211+ </ div >
212+ </ section >
202213 < button type ="submit "> SAVE</ button >
203214 </ form >
204215 </ div >
Original file line number Diff line number Diff line change @@ -864,6 +864,10 @@ function style() {
864864 $ ( '#main' ) . addClass ( 'no-seconds' ) ;
865865 }
866866
867+ // Remove weather
868+ if ( ! options . weather ) {
869+ $ ( '#main #weather' ) . addClass ( 'hidden' ) ;
870+ }
867871 } ) ;
868872}
869873
You can’t perform that action at this time.
0 commit comments