-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathnewapp3.html
More file actions
83 lines (73 loc) · 2.69 KB
/
newapp3.html
File metadata and controls
83 lines (73 loc) · 2.69 KB
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
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport"
content="width=device-width, initial-scale=1, user-scalable=0, maximum-scale=1, minimum-scale=1">
<title>Create a new Application</title>
<link href="https://cdnjs.cloudflare.com/ajax/libs/prettify/r298/prettify.min.css" rel="stylesheet" type="text/css" />
<script src="https://cdnjs.cloudflare.com/ajax/libs/prettify/r298/prettify.min.js"></script>
<script src="https://code.jquery.com/jquery-3.2.1.min.js"
integrity="sha256-hwg4gsxgFZhOsEEamdOYGBf13FyQuiTwlAQgxVSNgt4=" crossorigin="anonymous"></script>
<script src="https://cdn.jsdelivr.net/npm/pretty-checkbox@3.0/dist/pretty-checkbox.min.css"></script>
<script src="https://cdn.rawgit.com/vanderlee/tristate/master/jquery.tristate.js"></script>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js" type="text/javascript"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.7/umd/popper.min.js" integrity="sha384-UO2eT0CpHqdSJQ6hJty5KVphtPhzWj9WO1clHTMGa3JDZwrnQq4sF86dIHNDz0W1" crossorigin="anonymous"></script>
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/js/bootstrap.min.js" integrity="sha384-JjSmVgyd0p3pXB1rRibZUAYoIIy6OrQ6VrjIEaFf/nJGzIxFDsf4x0xIM+B07jRM" crossorigin="anonymous"></script>
<script src="https://cdn.rawgit.com/vanderlee/tristate/master/jquery.tristate.js"></script>
<script src="./main.js"></script>
<script src="./feature.json"></script>
<script>
$(function cliccato2 () {
const {ipcRenderer} = require('electron')
const parseString = require('xml2js').parseString;
var json;
var sensors = new Array
sensors = []
var actuators = new Array
actuators = []
var systems = new Array
systems = []
var totalF=[];
global.config = [];
global.json;
$("#floware").click(function () {
try {
$.get("final_floware.json", function (data) {
global.json = data;
ipcRenderer.send("FloWareConfiguration", global.json);
})
} catch (e) {
alert(e);
}
});
});
</script>
<style>
body {
font-family: Arial;
}
ul {
list-style-type: none;
user-select: none;
}
pre {
white-space: pre-wrap;
word-break: keep-all;
}
input[type=xml] {
margin-left: 8px;
height: 0.95em;
}
</style>
</head>
<body>
<div>
</div>
<button id="floware">Import from FloWare</button>
<div class="configurator1"></div>
<div id="stampare2"></div>
<pre value="" id="pre"></pre>
</body>
</html>