Spaces:
Running
Running
Update interface.js
Browse files- interface.js +7 -2
interface.js
CHANGED
|
@@ -130,20 +130,25 @@ const currentScriptTag = document.currentScript;
|
|
| 130 |
const isIOS = /iPad|iPhone|iPod/.test(navigator.userAgent) && !window.MSStream;
|
| 131 |
const isMobile = isIOS || /Android/i.test(navigator.userAgent);
|
| 132 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 133 |
// Fill help text with appropriate instructions
|
| 134 |
if (isMobile) {
|
| 135 |
helpTextDiv.innerHTML = `
|
| 136 |
- Pour vous déplacer, glissez deux doigts sur l'écran.<br>
|
| 137 |
- Pour orbiter, utilisez un doigt.<br>
|
| 138 |
- Pour zoomer, pincez avec deux doigts.<br>
|
| 139 |
-
|
| 140 |
`;
|
| 141 |
} else {
|
| 142 |
helpTextDiv.innerHTML = `
|
| 143 |
- orbitez avec le clic droit<br>
|
| 144 |
- zoomez avec la molette<br>
|
| 145 |
- déplacez vous avec le clic gauche<br>
|
| 146 |
-
|
| 147 |
`;
|
| 148 |
}
|
| 149 |
|
|
|
|
| 130 |
const isIOS = /iPad|iPhone|iPod/.test(navigator.userAgent) && !window.MSStream;
|
| 131 |
const isMobile = isIOS || /Android/i.test(navigator.userAgent);
|
| 132 |
|
| 133 |
+
// Conditionally include the French tooltip instruction line if points_url exists
|
| 134 |
+
const tooltipInstruction = config.points_url
|
| 135 |
+
? '- Cliquez sur ⦿ pour afficher/masquer les points d’information.<br>'
|
| 136 |
+
: '';
|
| 137 |
+
|
| 138 |
// Fill help text with appropriate instructions
|
| 139 |
if (isMobile) {
|
| 140 |
helpTextDiv.innerHTML = `
|
| 141 |
- Pour vous déplacer, glissez deux doigts sur l'écran.<br>
|
| 142 |
- Pour orbiter, utilisez un doigt.<br>
|
| 143 |
- Pour zoomer, pincez avec deux doigts.<br>
|
| 144 |
+
${tooltipInstruction}
|
| 145 |
`;
|
| 146 |
} else {
|
| 147 |
helpTextDiv.innerHTML = `
|
| 148 |
- orbitez avec le clic droit<br>
|
| 149 |
- zoomez avec la molette<br>
|
| 150 |
- déplacez vous avec le clic gauche<br>
|
| 151 |
+
${tooltipInstruction}
|
| 152 |
`;
|
| 153 |
}
|
| 154 |
|