-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
34 lines (34 loc) · 1.53 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Project Data Indexer</title>
<link rel="stylesheet" href="style.css">
<script src="https://code.jquery.com/jquery-1.11.0.min.js"></script>
</head>
<body>
<h2>DCP Project Data Indexer</h2>
<div>
Project Data Source URL <input id="source_url" class="url" type="text" value="https://raw.githubusercontent.com/jbossorg/project-info/master/project-info.json" /><br>
Searchisko REST API URL <input id="target_url" class="url" type="text" value="https://dcp2.jboss.org/v2/rest" />
</div>
<!--
<h4>Credentials</h4>
<div>
username <input id="username" type="text" value=""></input></br>
password <input id="password" type="password"></input>
</div>
-->
<h3>You need to run the browser in mode with disabled CORS for this to work. For Chrome you can use <a href="https://alfilatov.com/posts/run-chrome-without-cors/" target="_blank">this guide</a>. Alternatively try opening this file directly from GitHub, then the headers should work correctly <http://rawgit.luolix.top/searchisko/DCP-Project-Data-Indexer/master/index.html>. However nowadays GitHub enforces page source to be shown instead of the interpreted HTML page.</h3>
<div>
<input id="startButton" type="button" value="start" text="start" />
<progress id="progressBar" value="0" max="100"></progress>
</div>
<div>
<h4>Logging messages</h4>
<ol id="log">
</ol>
</div>
<script src='script.js'></script>
</body>
</html>