Skip to content

Commit dc31470

Browse files
committed
more cities
1 parent 004bce2 commit dc31470

6 files changed

Lines changed: 785 additions & 2 deletions

File tree

index.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>

index.js

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

680+
document.getElementById("more").addEventListener("click", function (e) {
681+
runner(3);
682+
window.location.href = "more.html";
683+
});
684+
685+
// document.getElementById("back").addEventListener("click", function (e) {
686+
// runner(0);
687+
// window.location.href = "index.html";
688+
// });
689+
680690

681691
function runner(city){
682692
cityText(city);

more.html

Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
<html>
2+
<head>
3+
<meta charset="%UTF-8" />
4+
<link rel="icon" type="image/x-icon" href="/favicon.ico">
5+
<title>Australian Weather</title>
6+
</head>
7+
<body>
8+
<script type="module" src="./more.js"></script>
9+
10+
<script
11+
src="https://cdnjs.cloudflare.com/ajax/libs/Chart.js/2.9.4/Chart.js">
12+
13+
</script>
14+
15+
<link rel="stylesheet" href="style.css">
16+
<div id="top-box">
17+
<h1>Australian Non-governmental Weather</h1>
18+
<!-- <h1 id="Melbourne">Melbourne</h1> -->
19+
<nav class="city-nav">
20+
<button class="city-btn" id="more">Back</button>
21+
</nav>
22+
</div>
23+
<hr>
24+
25+
26+
<!-- <div id="feels-div">
27+
<h2 id="feels2">You are valued.</h2>
28+
</div> -->
29+
<h1 id="placeholder2">Beautiful cities, often forgotten.</h1>
30+
<div id="idasdasd">
31+
32+
</div>
33+
34+
35+
<div id="more-box">
36+
<div class="row">
37+
<button class="city-btn">Perth</button>
38+
<button class="city-btn">Cairns</button>
39+
<button class="city-btn">Townsville</button>
40+
<button class="city-btn">Darwin</button>
41+
</div>
42+
<div class="row">
43+
<button class="city-btn">Katherine</button>
44+
<button class="city-btn">Hobart</button>
45+
<button class="city-btn">Horsham</button>
46+
<button class="city-btn">Gold Coast</button>
47+
</div>
48+
<div class="row">
49+
<button class="city-btn" id="back">Back</button>
50+
</div>
51+
</div>
52+
53+
</body>
54+
</html>

0 commit comments

Comments
 (0)