Spaces:
Running
Running
Nathan Habib
commited on
Commit
•
e529f3e
1
Parent(s):
ffbe28d
add plot
Browse files- dist/index.html +36 -1
dist/index.html
CHANGED
@@ -78,9 +78,10 @@
|
|
78 |
|
79 |
<p>Here is why we think a new leaderboard was needed 👇</p>
|
80 |
|
|
|
|
|
81 |
<h2>Harder, better, faster, stronger: Introducing the Leaderboard v2</h2>
|
82 |
|
83 |
-
<div w3-include-html="plot.html"></div>
|
84 |
|
85 |
|
86 |
<h3>The need for a more challenging leaderboard</h3>
|
@@ -396,6 +397,40 @@
|
|
396 |
}
|
397 |
});
|
398 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
399 |
</script>
|
400 |
</body>
|
401 |
</html>
|
|
|
78 |
|
79 |
<p>Here is why we think a new leaderboard was needed 👇</p>
|
80 |
|
81 |
+
<p align="center"><iframe src="plot.html" title="description", height="500" width="80%", style="border:none;"></iframe></p>
|
82 |
+
|
83 |
<h2>Harder, better, faster, stronger: Introducing the Leaderboard v2</h2>
|
84 |
|
|
|
85 |
|
86 |
|
87 |
<h3>The need for a more challenging leaderboard</h3>
|
|
|
397 |
}
|
398 |
});
|
399 |
}
|
400 |
+
function includeHTML() {
|
401 |
+
var z, i, elmnt, file, xhttp;
|
402 |
+
/* Loop through a collection of all HTML elements: */
|
403 |
+
z = document.getElementsByTagName("*");
|
404 |
+
for (i = 0; i < z.length; i++) {
|
405 |
+
elmnt = z[i];
|
406 |
+
/*search for elements with a certain atrribute:*/
|
407 |
+
file = elmnt.getAttribute("w3-include-html");
|
408 |
+
/* print the file on the console */
|
409 |
+
console.log("HELP");
|
410 |
+
console.log(file);
|
411 |
+
|
412 |
+
if (file) {
|
413 |
+
/* Make an HTTP request using the attribute value as the file name: */
|
414 |
+
xhttp = new XMLHttpRequest();
|
415 |
+
xhttp.onreadystatechange = function() {
|
416 |
+
if (this.readyState == 4) {
|
417 |
+
if (this.status == 200) {elmnt.innerHTML = this.responseText;}
|
418 |
+
if (this.status == 404) {elmnt.innerHTML = "Page not found.";}
|
419 |
+
/* Remove the attribute, and call this function once more: */
|
420 |
+
elmnt.removeAttribute("w3-include-html");
|
421 |
+
includeHTML();
|
422 |
+
}
|
423 |
+
}
|
424 |
+
xhttp.open("GET", file, true);
|
425 |
+
xhttp.send();
|
426 |
+
/* Exit the function: */
|
427 |
+
return;
|
428 |
+
}
|
429 |
+
}
|
430 |
+
}
|
431 |
+
</script>
|
432 |
+
<script>
|
433 |
+
includeHTML();
|
434 |
</script>
|
435 |
</body>
|
436 |
</html>
|