-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
84 lines (67 loc) · 2.37 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
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
<meta content="text/html;charset=utf-8" http-equiv="Content-Type">
<meta content="utf-8" http-equiv="encoding">
<html>
<head>
<title>Fjärran - orthogonal sequence generator</title>
<meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1, maximum-scale=1">
<script src="lib/cytoscape.min.js"></script>
<script src="lib/cola.min.js"></script>
<script src="lib/cytoscape-cola.js"></script>
<style>
body {
font-family: helvetica;
font-size: 14px;
}
#cy {
z-index: 2;
width: 100%;
height: 100%;
}
#sidebar {
z-index: 3;
position: absolute;
top:0;
left:0
}
#sidebar input {
margin: 0 auto;
}
input[type=number] {
width: 4em;
}
.scrolltext {
overflow-x: hidden;
overflow-y: auto;
max-height: 10em;
border-radius: 2px;
width: 27em;
background-color: #d3d7cf;
opacity: 0.8;
}
</style>
</head>
<body>
<div style="margin: 0; width: 100%; position: relative;">
<div id=sidebar>
<label for="strandText">Strand</label>
<input id="strandText" type="text" value="ACTGN"
pattern="[AaCcGgTtWwSsMmKkRrYyBbDdHhVvNn]+"
title="Use any of A,C,G,T,W,S,M,K,R,Y,B,D,H,V,N"
style="text-transform:uppercase">
<button onclick="fromSequence()">Generate graph</button>
<div>
<label for="nNodes">Number of nodes to select</label>
<input id="nNodes" type="number" step=1 min=1 value=2>
<button id="nNodesButton" onclick="selectNodes()">Select</button><br>
<div class="scrolltext" id=nodesList>
</div>
</div>
</div>
<div>
<div id="cy"></div>
</div>
<div id="status" style="position: absolute; bottom:0"></div>
</div>
<script src="js/main.js"></script>
</body>
</html>