forked from kbaseattic/uploader
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathuploader.html
More file actions
78 lines (69 loc) · 2.72 KB
/
uploader.html
File metadata and controls
78 lines (69 loc) · 2.72 KB
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
<!DOCTYPE HTML>
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<title>KBase :: Data Importer</title>
<script src="js/jquery.min.js"></script>
<script src="js/bootstrap.min.js"></script>
<script src="js/config.js"></script>
<script src="js/stm.js"></script>
<script src="js/retina.js"></script>
<link rel="stylesheet" type="text/css" href="css/bootstrap.min.css">
<link rel="stylesheet" type="text/css" href="css/kbase.css">
<link rel="icon" href="images/KBase_favicon.ico" type="image/x-icon">
<script>
Retina.init( { library_resource: "js/" } ).then( function() {
Retina.add_widget({"name": "kbupload", "resource": "widgets/", "filename": "widget.kbupload.js"});
Retina.add_widget({"name": "login", "resource": "widgets/", "filename": "widget.login.js"});
Retina.add_widget({"name": "template_validator", "resource": "widgets/", "filename": "widget.template_validator.js"});
Retina.load_widget("kbupload").then( function() {
Retina.Widget.create("kbupload", {"target": document.getElementById("content")});
Retina.load_widget("login").then( function() {
Retina.Widget.create("login", {"target": document.getElementById("login_space"), "callback": function(){
if (this.hasOwnProperty('result') && this.result == 'success') {
Retina.WidgetInstances.kbupload[1].user = this.uname;
SHOCK.set_auth(this.token);
Retina.WidgetInstances.kbupload[1].authenticated(true, this.token);
} else {
SHOCK.auth_header = {};
Retina.WidgetInstances.kbupload[1].authenticated(false);
}
}});
});
});
Retina.load_widget("template_validator").then( function() {
Retina.Widget.create("template_validator", {});
});
});
</script>
</head>
<body>
<div class="container">
<div class="header">
<img src="images/labs_icon.png" style="float: left;"><p class="pagetitle">Data Importer</p><p style="float: right;" id="login_space"></p>
</div>
</div>
<div class="container">
<div class="content section" id="content">
</div>
</div>
<div class="footer">
<div class="container">
<div class="footer-column">
<a href="https://gologin.kbase.us/SignUp">Sign up for a KBase account</a>
</div>
<div class="footer-column">
<a href="http://kbase.us/about/acknowledgements">Acknowledgements</a>
</div>
<div class="footer-column">
<p>
KBase is sponsored by the <a href="http://science.energy.gov/ber/ ">U.S. Department of Energy's Office of Biological and Environmental Research</a>
</p>
<p>
<img width="140" height="28" alt="U.S. Department of Energy -- Office of Science" src="images/doe_sc_logo.png">
</p>
</div>
</div>
</div>
</body>
</html>