about summary refs log tree commit diff
path: root/src/librustdoc/html/static/extra.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/librustdoc/html/static/extra.js')
-rw-r--r--src/librustdoc/html/static/extra.js25
1 files changed, 25 insertions, 0 deletions
diff --git a/src/librustdoc/html/static/extra.js b/src/librustdoc/html/static/extra.js
new file mode 100644
index 00000000000..d9d97d9b883
--- /dev/null
+++ b/src/librustdoc/html/static/extra.js
@@ -0,0 +1,25 @@
+// Copyright 2014-2016 The Rust Project Developers. See the COPYRIGHT
+// file at the top-level directory of this distribution and at
+// http://rust-lang.org/COPYRIGHT.
+//
+// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
+// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
+// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
+// option. This file may not be copied, modified, or distributed
+// except according to those terms.
+
+/*jslint browser: true, es5: true */
+/*globals $: true, rootPath: true */
+
+document.addEventListener('DOMContentLoaded', function() {
+    'use strict';
+
+    if (!window.playgroundUrl) {
+        var runButtons = document.querySelectorAll(".test-arrow");
+
+        for (var i = 0; i < runButtons.length; i++) {
+            runButtons[i].classList.remove("test-arrow");
+        }
+        return;
+    }
+});