Skip to content
Merged
Show file tree
Hide file tree
Changes from 17 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,10 @@

<div id="map_container"></div>

<button id="download_button" onclick="downloadMap()">Haritayı İndir</button>
<div id="buttonGroup">
<button id="reset_button" onclick="resetButton()">Sıfırla</button>
<button id="download_button" onclick="downloadMap()">Haritayı İndir</button>
</div>

<a id="github_logo" href="https://github.com/ozanyerli" target="_blank" rel="noopener noreferrer"><img src="images/GitHub-Mark-32px.png" alt="Github page link"></a>

Expand Down
30 changes: 27 additions & 3 deletions styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,6 @@ html {
}

#download_button {
margin-left: 335px;
margin-top: 1em;
padding: 0.5em 1.7em;
border: 0.16em solid rgb(255, 255, 255);
border-radius: 2em;
Expand All @@ -56,6 +54,7 @@ html {
text-shadow: 0 0.04em 0.04em rgba(255, 255, 255, 0.253);
text-align: center;
transition: all 0.2s;
cursor: pointer;
}

#download_button:hover {
Expand All @@ -66,4 +65,29 @@ html {
#github_logo {
margin-left: 1000px;
opacity: 0.5;
}
}

#reset_button {
padding: 0.5em 1.7em;
border: 0.16em solid rgb(255, 255, 255);
border-radius: 2em;
box-sizing: border-box;
text-decoration: none;
font-family: "Roboto", sans-serif;
font-weight: 300;
color: #000000;
text-shadow: 0 0.04em 0.04em rgba(255, 255, 255, 0.253);
text-align: center;
transition: all 0.2s;
cursor: pointer;
}

#reset_button:hover {
color: black;
background-color: #EFAE88;
}

#buttonGroup {
margin-left: 335px;
margin-top: 1em;
}
6 changes: 6 additions & 0 deletions turkeyvisited.js
Original file line number Diff line number Diff line change
Expand Up @@ -133,3 +133,9 @@ function downloadMap() {
});
});
}

function resetButton() {
localStorage.removeItem("selectedCities")
cityCount = 0; document.getElementById("city_count").innerHTML = cityCount;
location.reload()
}