improved zone names in SVG map

added tag around custom attributes in the description
fixed SVG dimensions in HTML document
This commit is contained in:
Youen Toupin 2021-10-04 23:16:44 +02:00
parent ec38f950d7
commit fd385fd76d
4 changed files with 74 additions and 42 deletions

File diff suppressed because one or more lines are too long

Before

Width:  |  Height:  |  Size: 130 KiB

After

Width:  |  Height:  |  Size: 131 KiB

File diff suppressed because one or more lines are too long

Before

Width:  |  Height:  |  Size: 128 KiB

After

Width:  |  Height:  |  Size: 128 KiB

View File

@ -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(/>\s*<desc[^>]*>/g, ' ');
data = data.replace(/<\/desc>/g, '>');
data = data.replace(/>\s*<desc[^>]*>&lt;attributes&gt;/g, ' ');
data = data.replace(/&lt;\/attributes&gt;<\/desc>/g, '>');
data = data.replace(/&quot;/g, '"');
data = "(<any>window)['"+src.replace(/^.*[\\\/]/, '')+"'] = `" + data + "`;";

View File

@ -120,7 +120,7 @@
<footer class="footer">
<div class="content has-text-centered">
<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/>
<a href="https://gitea.youb.fr/youen/vhelio-simulator">Accéder au code source</a>
</p>
@ -135,7 +135,7 @@
<button class="delete" aria-label="close"></button>
</header>
<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>
</div>
</div>