-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
132 lines (129 loc) · 7.04 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
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
<html>
<head>
<title>Skincare Compare</title>
<!-- CSS -->
<link rel="stylesheet" href = "https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css">
<link href="https://fonts.googleapis.com/css?family=Poppins:300|Raleway+Dots&display=swap" rel="stylesheet">
<link rel="stylesheet" href = "assets/css/custom.css">
<!--JQUERY-->
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.4.1/jquery.js" integrity="sha256-WpOohJOqMqqyKL9FccASB9O0KwACQJpFTUBLTYOVvVU=" crossorigin="anonymous"></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://cdnjs.cloudflare.com/ajax/libs/jquery-csv/0.71/jquery.csv-0.71.min.js"></script>
<!--CUSTOM-->
<script src="scripts/script.js"></script>
<script src="scripts/tableScript.js"></script>
<script src="scripts/handleDataScript.js"></script>
<script src="scripts/cosdna.js"></script>
<script src="scripts/quickCompare.js"></script>
<script src="scripts/header.js"></script>
<!--FAVICON-->
<link rel="icon" href="assets/img/favicon.png">
</head>
<body>
<div class="container">
<div id="header"></div>
<br>
<div id="uploadInputWrapper">
<div class="input-group" id="formInput">
<label class="input-group-btn">
<span class="btn btn-custom">
Upload CSV . . . <input type="file" style="display: none;"
id="csvFileUpload" accept=".csv" oninput="uploadCsvFile(event)"
onchange="setFileNameOnUpload(this)">
</span>
</label>
<input type="text" id="uploadFileInfo" class="form-control" readonly>
</div>
</div>
<div class="ingredientsBorder"></div>
<div class="tableDiv">
<div class="listDiv" id="safeTableDiv">
<h3>Safe Ingredients</h3>
<h5>(top 10 listed)</h5>
<div id="safeListTable">
<table class="table">
<thead>
<tr>
<th scope="col">Ingredient</th>
<th scope="col">#</th>
</tr>
</thead>
</table>
</div>
<div class="downloadInputWrapper">
<h4 class="downloadOptions">Download Options</h4>
<div class="formRadios" id="safeRadios">
<div class="radio">
<label><input id="safeRadio" type="radio" name="safeRadio" checked>safe ingredients list</label>
</div>
<div class="radio">
<label><input id="safeExclusiveRadio" type="radio" name="safeRadio">safe ingredients list, without allergic ingredients</label>
</div>
</div>
<form class="formClass" onsubmit="download(this['name'].value, 'safeList', false, event)">
<div class="filenameInputWrapper"><input type="text" class="form-control" name="name" placeholder="filename" value="safeList.csv"></div>
<input type="submit" class="btn btn-custom" value="Download">
</form>
</div>
</div>
<div class="ingredientsBorder"></div>
<div class="listDiv" id="allergicTableDiv">
<h3>Allergic Ingredients</h3>
<h5>(top 10 listed)</h5>
<div id="allergicListTable">
<table class="table">
<thead>
<tr>
<th>Ingredient</th>
<th>#</th>
</tr>
</thead>
</table>
</div>
<div class="downloadInputWrapper">
<h4 class="downloadOptions">Download Options</h4>
<div class="formRadios" id="allergicRadios">
<div class="radio">
<label><input id="allergicRadio" type="radio" name="allergicRadio" checked>allergic ingredients list</label>
</div>
<div class="radio">
<label><input id="allergicExclusiveRadio" type="radio" name="allergicRadio">allergic ingredients list, without safe ingredients</label>
</div>
</div>
<form class="formClass" onsubmit="download(this['name'].value, 'allergicList', false, event)">
<div class="filenameInputWrapper"><input type="text" class="form-control" name="name" placeholder="filename" value="allergicList.csv"></div>
<input type="submit" class="btn btn-custom" value="Download">
</form>
</div>
</div>
<div class="ingredientsBorder"></div>
<div class="listDiv" id="sharedTableDiv">
<h3>Shared Ingredients</h3>
<h5>(top 10 listed)</h5>
<div id="sharedListTable">
<table class="table">
<thead>
<tr>
<th>Ingredient</th>
<th>#</th>
</tr>
</thead>
</table>
</div>
<div class="downloadInputWrapper">
<h4 class="downloadOptions">Download Options</h4>
<div class="formRadios" id="sharedRadios">
<div class="radio">
<label><input id="sharedRadio" type="radio" name="sharedRadio" checked>shared ingredients list</label>
</div>
</div>
<form class="formClass" onsubmit="download(this['name'].value, 'sharedList', false, event)">
<div class="filenameInputWrapper"><input type="text" class="form-control" name="name" placeholder="filename" value="sharedList.csv"></div>
<input type="submit" class="btn btn-custom" value="Download">
</form>
</div>
</div>
</div>
</div>
</body>
</html>