-
Notifications
You must be signed in to change notification settings - Fork 0
/
example.html
35 lines (35 loc) · 915 Bytes
/
example.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
<html>
<head>
<script src="https://code.jquery.com/jquery-3.2.1.min.js"></script>
<script src="../Files/$.connect.js"></script>
<script src="../Files/$.connect.box.js"></script>
<script src="../Files/$.connect.line.js"></script>
<script src="../Files/$.element.js"></script>
<script src="../Files/$.element.textInput.js"></script>
<script src="../Files/$.dataTypes.js"></script>
<script src="../Files/$.fn.drag.js"></script>
</head>
<body>
<style>
input{
width:300px;
font-size:20px;
}
p, button{
font-family:arial;
font-size:20px;
}
</style>
<p>Draw lines to connect the socket (try: wss://echo.websocket.org)</p>
<p id="panels">
Panels:
</p>
<script>
$(function(){
for(var i in $.element){
$('#panels').append('<button onclick="$(document.body).append($.element(\''+i+'\'));">Add '+i+'</button>')
}
})
</script>
</body>
</html>