forked from OpenBazaar/OpenBazaar-Client
-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathindex.html
100 lines (97 loc) · 3.83 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
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
<html id="ov1">
<head>
<title>OpenBazaar</title>
<link href="css/ionicons.min.css" rel="stylesheet">
<link href="css/jquery.mCustomScrollbar.min.css" rel="stylesheet" />
<link href="css/chosen.css" rel="stylesheet">
<link href="css/colpick.css" rel="stylesheet">
<link href="css/colorbox.css" rel="stylesheet">
<link href="css/obBase.css" rel="stylesheet" id="obBase">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body>
<div id="overlay" class="hide"></div>
<div id="pageNav" class="bar navBar navBar-main custCol-secondary padding0"></div>
<div class="container custCol-background custCol-text" id="obContainer">
<div id="content"></div>
<div id="customizePreviewDashedBorder" class="hide"></div>
</div>
<div id="sideBar"></div>
<div id="modalHolder">
<!-- container for modal views -->
</div>
<div id="messageModal" class="modal modal-opaque js-messageModal hide">
<!-- modal for messages -->
<div class="modal-child modal-childMain pad20 custCol-secondary custCol-text">
<div class="btn-corner btn-cornerTR js-closeIndexModal">
<h2 class="ion-close-circled"></h2>
</div>
<div class="row20 rowTop20">
<h1 class="txt-center js-messageModal-title"></h1>
</div>
<p class="txt-center js-messageModal-message"></p>
</div>
</div>
<div class="modal modal-opaque js-loadingModal top0">
<div class="spinner-with-logo fullCentered">
<i class="ion-android-sync spinner fontSize30"></i>
</div>
</div>
<div class="modal modal-opaque hide js-loadingMessageModal">
<div class="modal-child modal-childMain">
<div class="btn-corner btn-cornerTR js-closeIndexModal">
<h2 class="ion-close-circled"></h2>
</div>
<h1 class="txt-center rowTop20"><i class="ion-android-sync spinner"></i> Loading...</h1>
<p class="txt-center js-indexLoadingMsg1"></p>
<p class="txt-center js-indexLoadingMsg2"></p>
<p class="txt-center js-indexLoadingMsg3"></p>
<h2 class="txt-center">
<span class="js-indexLoadingMsg4"></span>
</h2>
<div class="rowTop20 width100 positionWrapper pad50">
<div class="txtFieldWrapper">
<input type="text" class="txtField borderRadius3 placeholder-dark" placeholder="http://serverIPorURL/api/v1/"
style="height: 32px; text-indent: 10px;" name="newServer" id="indexNewServer" />
<a class="btn btn-txt btn-insideInput js-newServerIndexApp">Set New Server</a>
</div>
</div>
<div class="rowTop20 width100 positionWrapper pad50">
<div class="txtFieldWrapper">
<a class="btn btn-txtOnly js-defaultServerIndexApp">Set to http://localhost:18469/api/v1/</a>
<a class="btn btn-txt btn-insideInput pull-right js-defaultServerIndexApp">Set to Default</a>
</div>
</div>
<div class="positionBottom row60 width100 positionWrapper">
<a class="btn btn-txt hCentered js-closeIndexApp">Close Application</a>
</div>
</div>
</div>
</div>
<!--TODO: modularize non-modular scripts -->
<script src="js/utils/list.min.js"></script>
<script>
var app = require('./js/app'),
remote = require('remote');
$('.js-closeIndexModal').on('click', function(){
$(this).closest('.modal').addClass('hide');
});
$('.js-closeIndexApp').on('click', function(){
var win = remote.getCurrentWindow();
var process = remote.process;
if (process.platform != 'darwin') {
win.close();
} else {
win.hide();
}
});
$('.js-newServerIndexApp').on('click', function(){
var newServer = $('#indexNewServer').val();
app.loadNewServer(newServer);
});
$('.js-defaultServerIndexApp').on('click', function(){
app.loadNewServer("http://localhost:18469/api/v1/");
});
</script>
</body>
</html>