We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ae02c31 commit 9abfb95Copy full SHA for 9abfb95
docs/_static/linksdl.js
@@ -3,10 +3,13 @@
3
* ~~~~~~~~~~~
4
*
5
* javascript code to enable download links of notebooks and scripts *.py
6
+ * https://stackoverflow.com/questions/2304941
7
8
*/
9
-$(document).ready(function() {
10
- document.getElementsByClassName("last")[0].children[1].setAttribute("download", "")
11
- document.getElementsByClassName("last")[0].children[2].setAttribute("download", "")
12
-});
+document.onreadystatechange = function () {
+ if (document.readyState == "interactive") {
+ document.getElementsByClassName("line")[2].children[1].setAttribute("download", "")
13
+ document.getElementsByClassName("line")[2].children[2].setAttribute("download", "")
14
+ }
15
+}
0 commit comments