-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathindex.html
More file actions
114 lines (95 loc) · 6.21 KB
/
index.html
File metadata and controls
114 lines (95 loc) · 6.21 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
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Heal - QDR Bridge</title>
<!-- css stylesheets linked here -->
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-QWTKZyjpPEjISv5WaRU9OFeRpok6YctnYmDr5pNlyT2bRjXh0JMhjY6hW+ALEwIH" crossorigin="anonymous">
<link type="text/css" href="./public/styles/index.css" rel="stylesheet">
<link rel="icon" type="image/x-icon" href="./public/assets/qdr_favicon.ico">
</head>
<body>
<!-- Loader Container -->
<div id="loading-overlay">
<div class="loader"></div>
</div>
<!-- Form container -->
<div class="container-fluid">
<div class="row" id="form-container">
<div class="col-12 col-md-6 d-flex align-items-center justify-content-center form-card">
<form class="pt-5 pb-5">
<h1 class="banner-heading mb-4">Heal - QDR Bridge</h1>
<div class="mb-3">
<label for="source" class="form-label">Select Source</label>
<select class="form-select input-boxes" id="source" onchange="toggleInputs()">
<option value="">Select</option>
<option value="heal">HEAL Dataset</option>
</select>
</div>
<div class="mb-3" id="dataTypeDiv" style="display: none;">
<label for="dataType" class="form-label">Select Data Type</label>
<select class="form-select input-boxes" id="dataType" onchange="toggleDataInput()">
<option value="">Select</option>
<option value="projectId">Project ID</option>
<option value="jsonFile">JSON File</option>
</select>
</div>
<div class="mb-3" id="healIdInput" style="display: none;">
<label for="healId" class="form-label">Enter HEAL Project ID</label>
<input type="text" class="form-control input-boxes" id="healId" placeholder="Enter HEAL Project ID">
</div>
<div class="mb-3" id="jsonFileInput" style="display: none;">
<label for="jsonFile" class="form-label">Upload JSON File</label>
<input type="file" class="form-control input-boxes" id="jsonFile" accept=".json">
</div>
<div class="mb-3">
<label for="destination" class="form-label">Select Destination</label>
<select class="form-select input-boxes" id="destination" onchange="toggleInputs()">
<option value="">Select</option>
<option value="dataverse-qdr">Dataverse - QDR</option>
</select>
</div>
<div class="mb-3" id="apiKeyInput" style="display: none;">
<label for="apiKey" class="form-label">Enter API Key</label>
<input type="text" class="form-control input-boxes" id="apiKey" placeholder="Enter API Key">
</div>
<div class="alert alert-danger" role="alert" id="error-message">
This is a danger alert—check it out!
</div>
<div class="alert alert-info" role="alert" id="api-response-message">
This is a danger alert—check it out!
</div>
<button type="submit" class="mt-2 button-style btn btn-primary btn-large">Start Transfer</button>
</form>
</div>
<div class="col-6 banner" id="apiResponseContainer">
<img id="bannerImage" src="./public/assets/banner-image.png" alt="" role="presentation">
</div>
</div>
<!-- Footer container -->
<div class="row footer">
<div class="col-1"></div>
<div class="col-12 col-md-5">
<h2 class="mb-2">Resources</h2>
<a href="https://healdata.org/portal/discovery" target="_blank" class="d-block text-dark">HEAL Discovery Portal</a>
<a href="https://data.qdr.syr.edu/dataverse/main" target="_blank" class="d-block text-dark">Generate Dataverse API Key</a>
<a href="https://github.com/QualitativeDataRepository/heal-qdr-bridge-UI" target="_blank" class="d-block text-dark">Source Code</a>
</div>
<div class="col-4 d-none d-md-block"></div>
<div class="col-2 d-none d-md-block"></div>
<p class="text-center mt-3">The Qualitative Data Repository is hosted by the Center for Qualitative and Multi-Method Inquiry, a unit of the Maxwell School of Citizenship and Public Affairs at Syracuse University</p>
<p class="text-center">This project was supported as part of a grant <a class="text-dark" href="https://sloan.org/grant-detail/g-2023-20946" target="_blank">#G2023-20946</a> from the Alfred P. Sloan Foundation</p>
<p class="text-center">© Copyright 2017-2025 Qualitative Data Repository. All rights reserved.</p>
</div>
</div>
<!-- <footer class="container-fluid bg-light" id="footer-container">
</footer> -->
<!-- js scripts begin here -->
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/js/bootstrap.bundle.min.js" integrity="sha384-YvpcrYf0tY3lHB60NNkmXc5s9fDVZLESaAA55NDzOxhy9GkcIdslK1eN7N6jIeHz" crossorigin="anonymous"></script>
<script type="module" src="./public/js/form.js"></script>
<script src="./public/js/buttons.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/ajv/8.17.1/ajv2020.bundle.min.js" integrity="sha512-mXlpzWzZB+t4DFFezQkpSiCbT8aW12t688aLsd6KGNbRWDOdCur5C6Fl0rDl75VruBy42GvWsd6F35VQcs3lwQ==" crossorigin="anonymous" referrerpolicy="no-referrer"></script>
<!-- js scripts ends here -->
</body>
</html>