Spaces:
Build error
Build error
Commit
·
3c944ef
1
Parent(s):
b26f093
Update index.html
Browse files- index.html +5 -16
index.html
CHANGED
@@ -1,21 +1,10 @@
|
|
1 |
<!DOCTYPE html>
|
2 |
<html>
|
3 |
-
|
4 |
-
|
5 |
-
<body>
|
6 |
-
<input type="button" id='script' name="scriptbutton" value=" Run Script " onclick="goPython()">
|
7 |
|
8 |
-
|
9 |
|
10 |
-
|
11 |
-
|
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>
|
|
|
1 |
<!DOCTYPE html>
|
2 |
<html>
|
3 |
+
<body>
|
4 |
+
<head>
|
|
|
|
|
5 |
|
6 |
+
<input type="button" id='script' name="scriptbutton" value=" Run Script " onclick="exec('python bot.py');">
|
7 |
|
8 |
+
</head>
|
9 |
+
</body>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
10 |
</html>
|