-
Notifications
You must be signed in to change notification settings - Fork 0
/
visualizer.html
51 lines (49 loc) · 2.15 KB
/
visualizer.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" type="text/css" href="css/styles.css">
<title>Home</title>
</head>
<body>
<header>
<img class="logo" src="images/logo.png" alt="molecule logo">
<nav>
<ul class="nav_links">
<li><a href="index.html">Home</a></li>
<li><a href="works.html">How it Works</a></li>
<li><a href="https://github.com/AMadharha/Molecule-Visualizer" target=”_blank”>GitHub</a></li>
</ul>
</nav>
<a class="cta" href="visualizer.html"><button>Visualizer</button></a>
</header>
<h1>Visualizer</h1>
<h2>Upload a Molecule</h2>
<p>
If you dont see the molecule in the table below, go ahead and search for a SDF file and upload it here.
</p>
<p style="color: lightcoral">
To ensure the sdf has the same formatting as the visualizer expects, use <a href="https://www.ebi.ac.uk/chebi/init.do" target=”_blank”>this website</a></li> to find the file.
</p>
<div class="sdf-container">
<form id="sdf-form" action="/upload-sdf" method="post" enctype="multipart/form-data">
<label for="sdf_file" class="file-upload-label">Choose an SDF file</label>
<input type="file" id="sdf_file" name="sdf_file" accept=".sdf" required style="display: none;">
<span id="file-name" class="file-name">No file selected</span>
<button type="submit">Upload File</button>
</form>
</div>
<h2>Select a Molecule</h2>
<div class="table-wrapper">
<table id="molecule-select-table">
<!-- Table will be generated dynamically -->
</table>
</div>
<div id="center-container">
<div id="svg-container"></div>
</div>
<script src="js/script.js"></script>
</body>
</html>