Spaces:
Build error
Build error
Commit
·
9ba312c
1
Parent(s):
8e81239
Create index.html
Browse files- index.html +21 -0
index.html
ADDED
@@ -0,0 +1,21 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<!DOCTYPE html>
|
2 |
+
<html>
|
3 |
+
<head>
|
4 |
+
</head>
|
5 |
+
<body>
|
6 |
+
<input type="button" id='script' name="scriptbutton" value=" Run Script " onclick="goPython()">
|
7 |
+
|
8 |
+
<script src="http://code.jquery.com/jquery-3.3.1.min.js" integrity="sha256-FgpCb/KJQlLNfOu91ta32o/NMZxltwRo8QtmkMRdAu8=" crossorigin="anonymous"></script>
|
9 |
+
|
10 |
+
<script>
|
11 |
+
function goPython(){
|
12 |
+
$.ajax({
|
13 |
+
url: "bot.py",
|
14 |
+
context: document.body
|
15 |
+
}).done(function() {
|
16 |
+
alert('finished python script');;
|
17 |
+
});
|
18 |
+
}
|
19 |
+
</script>
|
20 |
+
</body>
|
21 |
+
</html>
|