Skip to content

Commit

Permalink
Merge pull request #8 from boriskrasko/markup
Browse files Browse the repository at this point in the history
Markup -> gh-pages
  • Loading branch information
boriskrasko authored Feb 4, 2024
2 parents e17eff5 + c750f2d commit 1ca0eb5
Show file tree
Hide file tree
Showing 11 changed files with 15 additions and 15 deletions.
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
Binary file added assets/img/standard-map 20.31.27.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/img/standard-map.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
File renamed without changes
File renamed without changes
8 changes: 4 additions & 4 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -1150,25 +1150,25 @@
<ul>
<li data-map-style="standart">
<span class="box">
<img src="assets/images/standard_map.png" alt="">
<img src="assets/img/standard_map.png" alt="">
</span>
<span class="basemaps-item">Standart</span>
</li>
<li data-map-style="blue">
<span class="box">
<img src="assets/images/blue_map.png" alt="">
<img src="assets/img/blue_map.png" alt="">
</span>
<span class="basemaps-item">Blue</span>
</li>
<li data-map-style="contrast">
<span class="box">
<img src="assets/images/contrast_map.png" alt="">
<img src="assets/img/contrast_map.png" alt="">
</span>
<span class="basemaps-item">Contrast</span>
</li>
<li data-map-style="dark-blue">
<span class="box">
<img src="assets/images/dark_blue_map.png" alt="">
<img src="assets/img/dark_blue_map.png" alt="">
</span>
<span class="basemaps-item">Dark blue</span>
</li>
Expand Down
4 changes: 2 additions & 2 deletions main.js
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ mapImage.onmousedown = function (e) {

mapImage.onmouseup = resetDrag;
document.querySelector('.map-svg').onmouseleave = resetDrag;

const countryName = e.target.getAttribute('name') || e.target.getAttribute('class').split(' ')[0];
const currentCountry = findCountryByName(countryName);
updateGlobalCounterRecovery(countryName);
Expand Down Expand Up @@ -252,7 +252,7 @@ const basemaps = document.querySelector('.basemaps-list ul');

basemaps.querySelectorAll('li').forEach(li => {
li.addEventListener('click', () => {
mapImage.classList = li.dataset.mapStyle;
mapImage.id = li.dataset.mapStyle;
})
})

Expand Down
18 changes: 9 additions & 9 deletions style.css
Original file line number Diff line number Diff line change
Expand Up @@ -902,41 +902,41 @@ footer ul li {
fill: #17D0FA;
}

.dark-blue .active-country {
#dark-blue .active-country {
fill: #eee;
}

.blue .active-country {
#blue .active-country {
fill: #999;
stroke: #fff;
}

.standart .active-country {
#standart .active-country {
fill: #17D0FA;
}

.blue > * {
#blue > * {
fill: #17D0FADD;
stroke: #000;
}

.dark-blue > * {
#dark-blue > * {
stroke: #fff;
}

.dark-blue {
#dark-blue {
background-color: #1C2E3B;
}

.contrast {
#contrast {
stroke-width: 2;
}

.standart {
#standart {
stroke-width: 0.3;
}

.standart > *{
#standart > *{
stroke: #17D0FA;
fill: transparent;
}
Expand Down

0 comments on commit 1ca0eb5

Please sign in to comment.