Skip to content

Commit

Permalink
Update iframe demo pages to set lang="fr" when parent page URL
Browse files Browse the repository at this point in the history
contains '/fr/' (localizes map to fr).
Fix layer.md slug in fr
  • Loading branch information
prushfor authored and prushforth committed Oct 31, 2024
1 parent e04da0e commit 0235260
Show file tree
Hide file tree
Showing 19 changed files with 86 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
id: layer
title: "<map-layer>"
slug: /layers/layer/
slug: /elements/layer/
---

Les cartes sont composées d’une ou de plusieurs couches. Ces couches sont appliquées par l’élément personnalisé `<map-layer>`.
Expand Down
5 changes: 5 additions & 0 deletions static/demo/extent-demo/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,11 @@
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Demo</title>
<script>
if (window.parent.location.href.includes('/fr/')) {
document.firstElementChild.lang = 'fr';
}
</script>
<script type="module" src="../../dist/mapml.js"></script>
<link rel="stylesheet" href="../embeded-demo-style.css"/>

Expand Down
5 changes: 5 additions & 0 deletions static/demo/layer-demo/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,11 @@
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Demo</title>
<script>
if (window.parent.location.href.includes('/fr/')) {
document.firstElementChild.lang = 'fr';
}
</script>
<script type="module" src="../../dist/mapml.js"></script>
<link rel="stylesheet" href="../embeded-demo-style.css"/>

Expand Down
5 changes: 5 additions & 0 deletions static/demo/map-a-demo/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,11 @@
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Demo</title>
<script>
if (window.parent.location.href.includes('/fr/')) {
document.firstElementChild.lang = 'fr';
}
</script>
<script type="module" src="../../dist/mapml.js"></script>
<link rel="stylesheet" href="../embeded-demo-style.css"/>

Expand Down
5 changes: 5 additions & 0 deletions static/demo/map-caption-demo/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,11 @@
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Demo</title>
<script>
if (window.parent.location.href.includes('/fr/')) {
document.firstElementChild.lang = 'fr';
}
</script>
<script type="module" src="../../dist/mapml.js"></script>
<link rel="stylesheet" href="../embeded-demo-style.css"/>

Expand Down
5 changes: 5 additions & 0 deletions static/demo/map-datalist-demo/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,11 @@
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Demo</title>
<script>
if (window.parent.location.href.includes('/fr/')) {
document.firstElementChild.lang = 'fr';
}
</script>
<script type="module" src="../../dist/mapml.js"></script>
<link rel="stylesheet" href="../embeded-demo-style.css"/>

Expand Down
5 changes: 5 additions & 0 deletions static/demo/map-feature-demo/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,11 @@
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Demo</title>
<script>
if (window.parent.location.href.includes('/fr/')) {
document.firstElementChild.lang = 'fr';
}
</script>
<script type="module" src="../../dist/mapml.js"></script>
<link rel="stylesheet" href="../embeded-demo-style.css"/>

Expand Down
5 changes: 5 additions & 0 deletions static/demo/map-geometry-demo/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,11 @@
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Demo</title>
<script>
if (window.parent.location.href.includes('/fr/')) {
document.firstElementChild.lang = 'fr';
}
</script>
<script type="module" src="../../dist/mapml.js"></script>
<link rel="stylesheet" href="../embeded-demo-style.css"/>

Expand Down
5 changes: 5 additions & 0 deletions static/demo/map-input-demo/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,11 @@
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Demo</title>
<script>
if (window.parent.location.href.includes('/fr/')) {
document.firstElementChild.lang = 'fr';
}
</script>
<script type="module" src="../../dist/mapml.js"></script>
<link rel="stylesheet" href="../embeded-demo-style.css"/>

Expand Down
5 changes: 5 additions & 0 deletions static/demo/map-link-demo/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,11 @@
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Demo</title>
<script>
if (window.parent.location.href.includes('/fr/')) {
document.firstElementChild.lang = 'fr';
}
</script>
<script type="module" src="../../dist/mapml.js"></script>
<link rel="stylesheet" href="../embeded-demo-style.css"/>

Expand Down
5 changes: 5 additions & 0 deletions static/demo/map-meta-demo/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,11 @@
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Demo</title>
<script>
if (window.parent.location.href.includes('/fr/')) {
document.firstElementChild.lang = 'fr';
}
</script>
<script type="module" src="../../dist/mapml.js"></script>
<link rel="stylesheet" href="../embeded-demo-style.css"/>

Expand Down
5 changes: 5 additions & 0 deletions static/demo/map-properties-demo/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,11 @@
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Demo</title>
<script>
if (window.parent.location.href.includes('/fr/')) {
document.firstElementChild.lang = 'fr';
}
</script>
<script type="module" src="../../dist/mapml.js"></script>
<link rel="stylesheet" href="../embeded-demo-style.css"/>

Expand Down
5 changes: 5 additions & 0 deletions static/demo/map-select-demo/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,11 @@
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Demo</title>
<script>
if (window.parent.location.href.includes('/fr/')) {
document.firstElementChild.lang = 'fr';
}
</script>
<script type="module" src="../../dist/mapml.js"></script>
<link rel="stylesheet" href="../embeded-demo-style.css"/>

Expand Down
5 changes: 5 additions & 0 deletions static/demo/map-span-demo/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,11 @@
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Demo</title>
<script>
if (window.parent.location.href.includes('/fr/')) {
document.firstElementChild.lang = 'fr';
}
</script>
<script type="module" src="../../dist/mapml.js"></script>
<link rel="stylesheet" href="../embeded-demo-style.css"/>

Expand Down
5 changes: 5 additions & 0 deletions static/demo/map-style-demo/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,11 @@
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Demo</title>
<script>
if (window.parent.location.href.includes('/fr/')) {
document.firstElementChild.lang = 'fr';
}
</script>
<script type="module" src="../../dist/mapml.js"></script>
<link rel="stylesheet" href="../embeded-demo-style.css"/>

Expand Down
5 changes: 5 additions & 0 deletions static/demo/mapml-demo/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,11 @@
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Demo</title>
<script>
if (window.parent.location.href.includes('/fr/')) {
document.firstElementChild.lang = 'fr';
}
</script>
<script type="module" src="../../dist/mapml.js"></script>
<link rel="stylesheet" href="../embeded-demo-style.css"/>

Expand Down
5 changes: 5 additions & 0 deletions static/demo/mapml-viewer-demo/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,11 @@
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Demo</title>
<script>
if (window.parent.location.href.includes('/fr/')) {
document.firstElementChild.lang = 'fr';
}
</script>
<script type="module" src="../../dist/mapml.js"></script>
<link rel="stylesheet" href="../embeded-demo-style.css"/>

Expand Down
5 changes: 5 additions & 0 deletions static/demo/sandbox/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,11 @@
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Sandbox</title>
<script>
if (window.parent.location.href.includes('/fr/')) {
document.firstElementChild.lang = 'fr';
}
</script>
<script type="module" src="../../dist/mapml.js"></script>
<link rel="stylesheet" href="../sandbox.css"/>

Expand Down

0 comments on commit 0235260

Please sign in to comment.