Browse Source

improved zone names in SVG map

added tag around custom attributes in the description
fixed SVG dimensions in HTML document
master
Youen Toupin 3 years ago
parent
commit
fd385fd76d
  1. 58
      assets/climate-zones-map.svg
  2. 50
      simulator/data/climate-zones-map.svg
  3. 4
      simulator/tools/embed.js
  4. 4
      simulator/www/simulator.html

58
assets/climate-zones-map.svg

File diff suppressed because one or more lines are too long

Before

Width:  |  Height:  |  Size: 130 KiB

After

Width:  |  Height:  |  Size: 131 KiB

50
simulator/data/climate-zones-map.svg

File diff suppressed because one or more lines are too long

Before

Width:  |  Height:  |  Size: 128 KiB

After

Width:  |  Height:  |  Size: 128 KiB

4
simulator/tools/embed.js

@ -7,8 +7,8 @@ function embedSvg(src, dst) {
data = data.replace(/<svg[^>]*>[\r\n]*/g, ''); data = data.replace(/<svg[^>]*>[\r\n]*/g, '');
data = data.replace(/<\/svg>[\r\n]*/g, ''); data = data.replace(/<\/svg>[\r\n]*/g, '');
data = data.replace(/>\s*<desc[^>]*>/g, ' '); data = data.replace(/>\s*<desc[^>]*>&lt;attributes&gt;/g, ' ');
data = data.replace(/<\/desc>/g, '>'); data = data.replace(/&lt;\/attributes&gt;<\/desc>/g, '>');
data = data.replace(/&quot;/g, '"'); data = data.replace(/&quot;/g, '"');
data = "(<any>window)['"+src.replace(/^.*[\\\/]/, '')+"'] = `" + data + "`;"; data = "(<any>window)['"+src.replace(/^.*[\\\/]/, '')+"'] = `" + data + "`;";

4
simulator/www/simulator.html

@ -120,7 +120,7 @@
<footer class="footer"> <footer class="footer">
<div class="content has-text-centered"> <div class="content has-text-centered">
<p> <p>
Ce simulateur est un logiciel libre sous licence <a href="https://gitea.youb.fr/youen/vhelio-simulator/raw/branch/master/AGPLv3.txt">AGPL</a>.<br/> Ce simulateur est un logiciel libre sous licence <a href="https://gitea.youb.fr/youen/vhelio-simulator/raw/branch/master/AGPLv3.txt">AGPL</a><br/>
Développé par l'association <a href="https://vhelio.org/association/">« Vélo Solaire Pour Tous »</a><br/> Développé par l'association <a href="https://vhelio.org/association/">« Vélo Solaire Pour Tous »</a><br/>
<a href="https://gitea.youb.fr/youen/vhelio-simulator">Accéder au code source</a> <a href="https://gitea.youb.fr/youen/vhelio-simulator">Accéder au code source</a>
</p> </p>
@ -135,7 +135,7 @@
<button class="delete" aria-label="close"></button> <button class="delete" aria-label="close"></button>
</header> </header>
<section class="modal-card-body"> <section class="modal-card-body">
<svg id="zones-map" width="587" height="550" version="1.0"></svg> <svg id="zones-map" width="595" height="564" version="1.0"></svg>
</section> </section>
</div> </div>
</div> </div>

Loading…
Cancel
Save