imseldrith commited on
Commit
3c944ef
·
1 Parent(s): b26f093

Update index.html

Browse files
Files changed (1) hide show
  1. index.html +5 -16
index.html CHANGED
@@ -1,21 +1,10 @@
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>
 
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>