From: Anton Khorev Date: Wed, 27 Jul 2022 18:28:12 +0000 (+0300) Subject: Merge master with css changes X-Git-Tag: live~2403^2~1 X-Git-Url: https://git.openstreetmap.org/rails.git/commitdiff_plain/bb868e0b11b25eb000a2c71cc993db86e383e0f3?hp=057cf89149d2bff9b206162aa4b63fbd34505cf0 Merge master with css changes --- diff --git a/app/assets/javascripts/index.js b/app/assets/javascripts/index.js index f0b96f59f..d5a3731d8 100644 --- a/app/assets/javascripts/index.js +++ b/app/assets/javascripts/index.js @@ -195,7 +195,7 @@ $(document).ready(function () { $(".welcome").addClass("visible"); } - $(".welcome .close").on("click", function () { + $(".welcome .btn-close").on("click", function () { $(".welcome").removeClass("visible"); Cookies.set("_osm_welcome", "hide", { secure: true, expires: expiry, path: "/", samesite: "lax" }); }); @@ -203,7 +203,7 @@ $(document).ready(function () { var bannerExpiry = new Date(); bannerExpiry.setYear(bannerExpiry.getFullYear() + 1); - $("#banner .close-wrap").on("click", function (e) { + $("#banner .btn-close").on("click", function (e) { var cookieId = e.target.id; $("#banner").hide(); e.preventDefault(); diff --git a/app/assets/javascripts/index/browse.js b/app/assets/javascripts/index/browse.js index 1140515f5..8ef859d85 100644 --- a/app/assets/javascripts/index/browse.js +++ b/app/assets/javascripts/index/browse.js @@ -50,10 +50,11 @@ OSM.initializeBrowse = function (map) { $("#browse_status").html( $("
") .append( + $("" + + "

" + I18n.t("javascripts.directions.directions") + "

" + + "

" + I18n.t("javascripts.directions.distance") + ": " + formatDistance(route.distance) + ". " + I18n.t("javascripts.directions.time") + ": " + formatTime(route.time) + "."; if (typeof route.ascend !== "undefined" && typeof route.descend !== "undefined") { diff --git a/app/assets/javascripts/leaflet.key.js b/app/assets/javascripts/leaflet.key.js index e839171ab..3e8e66854 100644 --- a/app/assets/javascripts/leaflet.key.js +++ b/app/assets/javascripts/leaflet.key.js @@ -19,9 +19,8 @@ L.OSM.key = function (options) { .attr("class", "sidebar_heading") .appendTo($ui) .append( - $("") - .text(I18n.t("javascripts.close")) - .attr("class", "icon close") + $("

- +
diff --git a/app/views/layouts/_banner.html.erb b/app/views/layouts/_banner.html.erb index bd0c90227..2751a5458 100644 --- a/app/views/layouts/_banner.html.erb +++ b/app/views/layouts/_banner.html.erb @@ -1,4 +1,4 @@ <% unless (banner = next_banner()).nil? %> <%= link_to (image_tag banner[:img], :alt => banner[:alt], :title => banner[:alt]), banner[:link] %> - + <% end %> diff --git a/app/views/layouts/_search.html.erb b/app/views/layouts/_search.html.erb index c2501b95b..24e25076f 100644 --- a/app/views/layouts/_search.html.erb +++ b/app/views/layouts/_search.html.erb @@ -19,7 +19,7 @@
-
+