]> git.ozlabs.org Git - hiprofile/blobdiff - hiprofile/resources/hiprofile.js
Convert to a python package
[hiprofile] / hiprofile / resources / hiprofile.js
diff --git a/hiprofile/resources/hiprofile.js b/hiprofile/resources/hiprofile.js
new file mode 100644 (file)
index 0000000..61a3090
--- /dev/null
@@ -0,0 +1,19 @@
+
+function expand_source(node)
+{
+    var text = $(node).text();
+    var new_text;
+    var new_display;
+
+    if (text == "+") {
+        new_text = "-";
+        new_display = "block";
+    } else {
+        new_text = "+";
+        new_display = "none";
+    }
+
+    $(node).text(new_text);
+    $(node).parent().find("pre[class='source']").
+        css("display", new_display);
+}