Skip to content
Merged
Show file tree
Hide file tree
Changes from all 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
8 changes: 5 additions & 3 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -17,14 +17,16 @@

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

<div id="buttonGroup">
<button id="reset_button" onclick="resetButton()">Sıfırla</button>
<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>
</div>
<button id="download_button" onclick="downloadMap()">Haritayı İndir</button>

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

<div id="city_count_text">Seçilen il sayısı:&nbsp;<span id="city_count">0</span>/81</div>

<script src="turkeyvisited.js"></script>

</body>

</html>
</html>
30 changes: 28 additions & 2 deletions styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ html {

#download_button {
margin-left: 335px;
margin-top: 1em;
margin-top: 0.5em;
padding: 0.5em 1.7em;
border: 0.16em solid rgb(255, 255, 255);
border-radius: 2em;
Expand All @@ -56,6 +56,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 +67,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()
}