Skip to content

Commit eced660

Browse files
committed
bug fixes hehe
1 parent 2370a74 commit eced660

6 files changed

Lines changed: 17 additions & 0 deletions

File tree

adelaide.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ <h1>Australian Non-governmental Weather</h1>
2020
<button class="city-btn" id="adel">Adelaide</button>
2121
<button class="city-btn" id="sydn">Sydney</button>
2222
<button class="city-btn" id="bris">Brisbane</button>
23+
<button class="city-btn" id="more">More</button>
2324
</nav>
2425
</div>
2526
<hr>

adelaide.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -674,6 +674,11 @@ document.getElementById("bris").addEventListener("click", function (e) {
674674
window.location.href = "brisbane.html";
675675
});
676676

677+
document.getElementById("more").addEventListener("click", function (e) {
678+
runner(3);
679+
window.location.href = "more.html";
680+
});
681+
677682
function runner(city){
678683
cityText(city);
679684
console.log("RUNNER");

brisbane.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ <h1>Australian Non-governmental Weather</h1>
2020
<button class="city-btn" id="adel">Adelaide</button>
2121
<button class="city-btn" id="sydn">Sydney</button>
2222
<button class="city-btn" id="bris">Brisbane</button>
23+
<button class="city-btn" id="more">More</button>
2324
</nav>
2425
</div>
2526
<hr>

brisbane.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -674,6 +674,11 @@ document.getElementById("bris").addEventListener("click", function (e) {
674674
window.location.href = "brisbane.html";
675675
});
676676

677+
document.getElementById("more").addEventListener("click", function (e) {
678+
runner(3);
679+
window.location.href = "more.html";
680+
});
681+
677682
function runner(city){
678683
cityText(city);
679684
console.log("RUNNER");

sydney.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ <h1>Australian Non-governmental Weather</h1>
2020
<button class="city-btn" id="adel">Adelaide</button>
2121
<button class="city-btn" id="sydn">Sydney</button>
2222
<button class="city-btn" id="bris">Brisbane</button>
23+
<button class="city-btn" id="more">More</button>
2324
</nav>
2425
</div>
2526
<hr>

sydney.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -675,6 +675,10 @@ document.getElementById("bris").addEventListener("click", function (e) {
675675
window.location.href = "brisbane.html";
676676
});
677677

678+
document.getElementById("more").addEventListener("click", function (e) {
679+
runner(3);
680+
window.location.href = "more.html";
681+
});
678682

679683
function runner(city){
680684
cityText(city);

0 commit comments

Comments
 (0)