-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathindex.html
67 lines (62 loc) · 2.27 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=0"/>
<link href="https://fonts.googleapis.com/css?family=Montserrat:500,700" rel="stylesheet">
<link href="index.js" rel="script">
<link href="layout.css" rel="stylesheet">
<title>Login_popup</title>
</head>
<body>
<section class="popup-graybox">
<div class="login-popup-sec">
<div class="login-content">
<h2 data-edit="text">FullxTest</h2>
<ul>
<li>
<label>
<input type="text"
placeholder="Enter IP"
id="ip">
</label>
</li>
<li>
<button id="submitButton" class="login-btn"
onclick="getIP()">Enter
</button>
</li>
<script>
let address;
function getIP() {
//getting user input
address = document.getElementById("ip").value;
// alert(address);
}
</script>
<script>
var myScript = 'fullxtest.py'; // scripn variable
var Pythonshell = require('python-shell');
var pyshell = new Pythonshell(myScript, mode);
var options = {
mode: 'text',
pythonPath: '<-path to python'
}
pyshell.on('message', function (message) {
console.log(message);
});
pyshell.end(function (error) {
if(error){
throw error;
}
console.log('test')
});
let shell = new PythonShell('fullxtest.py', options);
PythonShell.defaultOptions = {scriptPath, '../s'}
</script>
</ul>
</div>
</div>
</section>
</body>
</html>