|
2 | 2 | <html> |
3 | 3 | <head> |
4 | 4 | <meta charset="utf-8"> |
| 5 | + <link rel="stylesheet" href="topbar/topbar.css"> |
| 6 | + |
5 | 7 | <script src="http://d3js.org/d3.v3.min.js"></script> |
6 | 8 | <script src="./lib/FileSaver.js"></script> |
7 | 9 | <script src="./lib/ntseq.js"></script> |
8 | | - <script src="./load-inputs.js"></script> |
9 | 10 | <script src="./sequence-annotations.js"></script> |
10 | 11 | <style> |
11 | 12 |
|
|
14 | 15 | stroke-width: 3; |
15 | 16 | stroke: #000; |
16 | 17 | } |
17 | | - |
18 | | - .navbar { |
19 | | - list-style-type: none; |
20 | | - margin: 0; |
21 | | - padding: 0; |
22 | | - font-family: Optima, "Lucida Grande", "Lucida Sans Unicode", Verdana, Helvetica, Arial, sans-serif; |
23 | | - overflow: hidden; |
24 | | - background-color: #144023; |
25 | | - } |
26 | | - |
27 | | - .navbar span { |
28 | | - float: left; |
29 | | - color: white; |
30 | | - font-family: Optima, "Lucida Grande", "Lucida Sans Unicode", Verdana, Helvetica, Arial, sans-serif; |
31 | | - } |
32 | | - |
33 | | - li a, .dropbtn { |
34 | | - display: inline-block; |
35 | | - color: white; |
36 | | - text-align: center; |
37 | | - padding: 14px 16px; |
38 | | - text-decoration: none; |
39 | | - } |
40 | | - |
41 | | - li a:hover, .dropdown:hover .dropbtn { |
42 | | - background-color: #267a43; |
43 | | - } |
44 | | - |
45 | | - li.dropdown { |
46 | | - display: inline-block; |
47 | | - } |
48 | | - |
49 | | - .dropdown-content { |
50 | | - display: none; |
51 | | - position: absolute; |
52 | | - background-color: #f9f9f9; |
53 | | - min-width: 160px; |
54 | | - box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2); |
55 | | - z-index: 1; |
56 | | - } |
57 | | - |
58 | | - .dropdown-content a { |
59 | | - color: black; |
60 | | - padding: 12px 16px; |
61 | | - text-decoration: none; |
62 | | - display: block; |
63 | | - text-align: left; |
64 | | - } |
65 | | - |
66 | | - .dropdown-content a:hover {background-color: #f1f1f1} |
67 | | - |
68 | | - .dropdown:hover .dropdown-content { |
69 | | - display: block; |
70 | | - } |
71 | | - |
72 | 18 | </style> |
73 | 19 |
|
74 | 20 | <script type="text/javascript"> |
|
108 | 54 | <span class="dropdown"> |
109 | 55 | <a href="javascript:void(0)" class="dropbtn">File</a> |
110 | 56 | <div class="dropdown-content"> |
111 | | - <a href="#">Load Sequences from a FASTA file:</a> |
112 | | - <input type="file" id="files" name="files[]"/> |
| 57 | + <a href="#" onclick="openImportFileWindow();">Import FASTA file</a> |
113 | 58 | <a href="#" onclick="downloadSVG('sequence.svg')">Save as SVG</a> |
114 | 59 | </div> |
115 | 60 | </span> |
116 | 61 | </div> |
117 | 62 |
|
118 | | - <script type="text/javascript"> |
119 | | - |
120 | | - document.getElementById('files').addEventListener('change', handleFileSelect, false); |
| 63 | + <div id="import-file-window" class="modal"> |
| 64 | + <div class="modal-content"> |
| 65 | + <h2>Upload a FASTA file:</h2> |
| 66 | + <input type="file" id="files" name="files[]"/> |
| 67 | + <div class="right"> |
| 68 | + <button id="cancel-load-file" class="btn cancel">Cancel</button> |
| 69 | + <button id="load-fasta-file" class="btn">Load file</button> |
| 70 | + </div> |
| 71 | + </div> |
| 72 | + </div> |
121 | 73 |
|
| 74 | + <script src="topbar/topbar.js"></script> |
| 75 | + <script type="text/javascript"> |
122 | 76 |
|
123 | 77 | var margin = 75, |
124 | 78 | width = 1400 - margin, |
|
0 commit comments