aboutsummaryrefslogtreecommitdiff
path: root/files/ru/web/api/page_visibility_api/index.html
diff options
context:
space:
mode:
Diffstat (limited to 'files/ru/web/api/page_visibility_api/index.html')
-rw-r--r--files/ru/web/api/page_visibility_api/index.html4
1 files changed, 2 insertions, 2 deletions
diff --git a/files/ru/web/api/page_visibility_api/index.html b/files/ru/web/api/page_visibility_api/index.html
index 3ac365ba5d..c0b75b5670 100644
--- a/files/ru/web/api/page_visibility_api/index.html
+++ b/files/ru/web/api/page_visibility_api/index.html
@@ -71,7 +71,7 @@ original_slug: Web/API/Видимость_страницы_API
<p>The example, which pauses the video when you switch to another tab and plays again when you return to its tab, was created with the following code:</p>
-<pre class="brush: js notranslate">// Set the name of the hidden property and the change event for visibility
+<pre class="brush: js">// Set the name of the hidden property and the change event for visibility
var hidden, visibilityChange;
if (typeof document.hidden !== "undefined") { // Opera 12.10 and Firefox 18 and later support
hidden = "hidden";
@@ -145,7 +145,7 @@ if (typeof document.addEventListener === "undefined" || hidden === undefined) {
<dd>An {{domxref("EventListener")}} providing the code to be called when the {{event("visibilitychange")}} event is fired.</dd>
</dl>
-<pre class="brush: js notranslate">//startSimulation and pauseSimulation defined elsewhere
+<pre class="brush: js">//startSimulation and pauseSimulation defined elsewhere
function handleVisibilityChange() {
if (document.hidden) {
pauseSimulation();