Skip to content

Commit daff5c2

Browse files
author
Vinit
committed
Merge pull request #2 from zacholauson/add-weather-toggle
add weather toggle
2 parents 094baee + bc14eec commit daff5c2

File tree

2 files changed

+15
-0
lines changed

2 files changed

+15
-0
lines changed

index.html

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff 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>

js/app.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)