-
Notifications
You must be signed in to change notification settings - Fork 7
/
index.html
71 lines (68 loc) · 1.87 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
<!DOCTYPE html>
<html>
<head>
<title>Dat Polyfill Server</title>
<style>
* {
box-sizing: border-box;
}
body, html {
margin: 0px;
padding: 0px;
display: flex;
flex: 1;
flex-direction: column;
height: 100%;
}
.search-container {
box-sizing: border-box;
display: flex;
flex-direction: row;
}
.search-box {
padding: 0.5em;
flex: 1;
}
.view{
width:100%
}
.hidden {
display: none
}
.selection-form {
font-family: Arial, Helvetica, sans-serif;
background: #FAFAFA;
border-radius: 1em;
}
#datListing a:link,
a:visited,
a:hover,
a:focus,
a:active {
color: white;
font-size: 1.5em;
}
</style>
<script type="text/javascript" src="./iframeResizer.min.js"></script>
<script type="text/javascript" src="./iframeResizer.contentWindow.min.js"></script>
<script type="text/javascript" >iFrameResize({log:true})</script>
</head>
<body>
<div id="header">
<form class="search-container" target="view" onsubmit="return false;">
<!--<input type="hidden" name="DAT_GATEWAY" value="http://gateway.mauve.moe:3000" />-->
<input placeholder="dat://" class="search-box" id="address" />
<button class="open-button" id="open">Refresh</button>
<button class="sites-button" id="sites">Sites</button>
</form>
</div>
<div class="client-container">
<!--<iframe id="client-frame" src="../client/index.html?DAT_GATEWAY=http%3A//localhost%3A3000" class="client-frame" seamless="seamless"></iframe>-->
<iframe id="view" style="width:100%; height: 100%;" sandbox="allow-same-origin allow-scripts allow-forms"></iframe>
<div id="datListing">
</div>
</div>
<!--<script src="dat-polyfill.js"></script>-->
<script src="index.js"></script>
</body>
</html>