This repository has been archived by the owner on May 31, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathpopup.html
94 lines (86 loc) · 3.96 KB
/
popup.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
<!DOCTYPE html>
<!-- 'Download Selected Links' sample customization for Galaxy -->
<!-- https://developer.chrome.com/extensions/samples -->
<!-- Bootstrap for Chrome Extensions -->
<!-- https://github.com/Ehesp/Chrome-Extension-Twitter-Bootstrap-3-Template -->
<html>
<head>
<meta charset="utf-8">
<meta name="description" content="Web Scraper for Galaxy">
<meta name="author" content="Fabio Cumbo">
<title>Galaxy Scraper</title>
<!-- Loading jQuery -->
<script src="js/jquery-3.2.1.min.js"></script>
<!-- Loading Bootstrap -->
<script src="js/bootstrap.min.js"></script>
<!-- Loading other resources -->
<script src="popup.js"></script>
<!-- Cascading Style Sheets -->
<link href="css/bootstrap.min.css" rel="stylesheet" media="screen">
<link href="css/custom.css" rel="stylesheet" media="screen">
</head>
<body>
<nav class="navbar navbar-default" role="navigation">
<div class="navbar-header">
<div class="navbar-brand">Galaxy Scraper</div>
</div>
<div class="collapse navbar-collapse navbar-ex1-collapse">
<ul class="nav navbar-nav" style="float:right">
<li class="dropdown">
<a href="#" class="dropdown-toggle" data-toggle="dropdown">Resources <b class="caret"></b></a>
<ul class="dropdown-menu">
<li><a href="https://galaxyproject.org/" target="_blank">GalaxyProject</a></li>
<li><a href="https://github.com/fabio-cumbo/galaxy-scraper-extension" target="_blank">GitHub</a></li>
</ul>
</li>
</ul>
</div>
</nav>
<section>
<div id="content_section">
<div type="button" class="btn btn-warning" style="width:100%">
You need a valid Galaxy API Key to properly use this tool</br>
<a href="https://galaxyproject.org/develop/api/" target="_blank" style="color:black">https://galaxyproject.org/develop/api/</a>
</div>
</br></br>
<input type="text" id="galaxy" class="form-control" placeholder="Galaxy URL">
<!--<input type="text" id="user" placeholder="Your Galaxy Username">
<input type="password" id="password" placeholder="Your Galaxy Password"></br>-->
<input type="text" id="api_key" class="form-control" placeholder="API Key"></br>
<div class="radio">
<label><input type="radio" name="collection" id="coll_false" value="false" checked> Upload the selected data directly in your history</label>
</div>
<div class="radio">
<label><input type="radio" name="collection" id="coll_true" value="true"> Upload the selected data in a Collection that will be created in your history</label>
</div>
<input type="text" id="collection_name" class="form-control" placeholder="Collection Name" disabled>
<!--<b><label id="collection_status">[disabled]</label></b></br>-->
</br>
<input type="text" id="filter" class="form-control"placeholder="Filter Data">
<div class="checkbox">
<label for="regex"><input type="checkbox" id="regex"> Regex</label>
</div>
</br>
<button type="button" id="send0" class="btn btn-primary btn-sm" style="width:100%">Send Data</button>
</br>
<div id="nodata" style="display:none">
</br>
<div type="button" class="btn btn-danger" style="width:100%">
You have to select at least one link
</div>
</div>
</br></br>
<div style="max-height: 200px; overflow: auto;">
<table class="table table-condensed table-hover table-responsive" id="links">
<tr>
<th><input type="checkbox" checked id="toggle_all"></th>
<th align="left">Select All</th>
</tr>
</table>
</div>
</br>
<button type="button" id="send1" class="btn btn-primary btn-sm" style="width:100%">Send Data</button>
</div>
</section>
</body>
</html>