diff options
author | SphinxKnight <SphinxKnight@users.noreply.github.com> | 2021-09-27 19:52:26 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-09-27 19:52:26 +0200 |
commit | b57379257281efd293e51237969a8553a7c58ae7 (patch) | |
tree | 37d1e1dee8f3ab8a5e4d953d121f80f647a94b5e /files/fr/web/api/navigator | |
parent | f139538f3148990f7b61d94f75d96381985a0c0e (diff) | |
download | translated-content-b57379257281efd293e51237969a8553a7c58ae7.tar.gz translated-content-b57379257281efd293e51237969a8553a7c58ae7.tar.bz2 translated-content-b57379257281efd293e51237969a8553a7c58ae7.zip |
Fix web api fr upstream h2m (#2597)
* fix html examples with script
* remove languages macro
* enclose code words in <code> to avoid dot escape
Diffstat (limited to 'files/fr/web/api/navigator')
3 files changed, 5 insertions, 7 deletions
diff --git a/files/fr/web/api/navigator/battery/index.html b/files/fr/web/api/navigator/battery/index.html index 3eb09b9ab3..59595e4a78 100644 --- a/files/fr/web/api/navigator/battery/index.html +++ b/files/fr/web/api/navigator/battery/index.html @@ -64,6 +64,4 @@ updateBatteryStatus(); <ul> <li><a href="http://hacks.mozilla.org/2012/02/using-the-battery-api-part-of-webapi/">Blog post - Using the Battery API</a></li> <li><a href="http://davidwalsh.name/battery-api">David Walsh on the Javascript Battery Api</a></li> -</ul> - -<p>{{ languages( {"zh-cn": "zh-cn/DOM/window.navigator.battery" } ) }}</p> +</ul>
\ No newline at end of file diff --git a/files/fr/web/api/navigator/registerprotocolhandler/index.html b/files/fr/web/api/navigator/registerprotocolhandler/index.html index 9c9f9bdff7..25df0e4c12 100644 --- a/files/fr/web/api/navigator/registerprotocolhandler/index.html +++ b/files/fr/web/api/navigator/registerprotocolhandler/index.html @@ -26,7 +26,7 @@ translation_of: Web/API/Navigator/registerProtocolHandler <h3 id="Exemple">Exemple</h3> -<p>Si votre application web est située à http://www.example.com, vous pouvez enregistrer un gestionnaire de protocole lui permettant de gérer « mailto » comme ceci :</p> +<p>Si votre application web est située à <code>http://www.example.com</code>, vous pouvez enregistrer un gestionnaire de protocole lui permettant de gérer « mailto » comme ceci :</p> <pre class="eval">navigator.registerProtocolHandler("mailto", "<a href="https://www.example.com/?to=%s">https://www.example.com/?to=%s</a>", diff --git a/files/fr/web/api/navigator/registerprotocolhandler/web-based_protocol_handlers/index.html b/files/fr/web/api/navigator/registerprotocolhandler/web-based_protocol_handlers/index.html index 70b96ec01a..3ab6522963 100644 --- a/files/fr/web/api/navigator/registerprotocolhandler/web-based_protocol_handlers/index.html +++ b/files/fr/web/api/navigator/registerprotocolhandler/web-based_protocol_handlers/index.html @@ -41,7 +41,7 @@ translation_of: Web/API/Navigator/registerProtocolHandler/Web-based_protocol_han <h4 id="Exemple">Exemple</h4> -<pre><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"> +<pre class="brush: html"><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"> <html lang="fr"> <head> <title>Web Protocol Handler Sample - Register</title> @@ -62,7 +62,7 @@ translation_of: Web/API/Navigator/registerProtocolHandler/Web-based_protocol_han <h4 id="Exemple_2">Exemple</h4> -<pre><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"> +<pre class="brush: html"><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"> <html lang="fr"> <head> <title>Exemple de gestionnaire de protocole web — test</title> @@ -86,7 +86,7 @@ translation_of: Web/API/Navigator/registerProtocolHandler/Web-based_protocol_han <h4 id="Exemple_3">Exemple</h4> -<pre><?php +<pre class="brush: html"><?php $value = ""; if ( isset ( $_GET["value"] ) ) { $value = $_GET["value"]; |