forked from OpenBazaar/OpenBazaar-Client
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
117 lines (99 loc) · 4.08 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
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
<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/medium-editor.min.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="appFrame">
<div id="appBar" class="top0 alignCenter custCol-secondary"></div>
<div id="contentFrame">
<div id="navArea">
<div id="pageNav" class="custCol-secondary"></div>
</div>
<div id="contentArea">
<div class="container custCol-background custCol-text" id="obContainer">
<div id="content"></div>
<div id="modalHolder">
<!-- container for modal views -->
</div>
</div>
<div id="sideBar"></div>
<div id="messageModal" class="modal modal-opaque js-messageModal hide">
<!-- modal for messages -->
<div class="modal-child modal-childMain color-primary custCol-secondary padding20 custCol-text">
<div class="txt-center row10 js-messageModalTitleWrapper">
<h1 class="js-messageModal-title"></h1>
</div>
<div class="txt-center row10 js-messageModalMsgWrapper">
<p class="fontSize14 js-messageModal-message"></p>
<div class="bar barFlush bottomBar js-messageModal-btnBar hide">
<a class="btn btn-bar btn-half borderRight custCol-border textOpacity90 custCol-primary js-messageModal-btn1">
</a>
<a class="btn btn-bar btn-half textOpacity90 custCol-primary js-messageModal-btn2">
</a>
</div>
</div>
<div class="btn-corner btn-cornerTR btn-cornerTROutR btn-flushTop js-closeIndexModal">
<h2 class="ion-android-close custCol-text clickable"></h2>
</div>
</div>
</div>
<div id="overlay" class="hide"></div>
<div id="statusBar"></div>
</div>
<div id="loadingModal" class="modal modal-opaque modal-fullscreen js-loadingModal hide">
<div class="spinner-with-logo fullCentered">
<i class="ion-android-sync spinner fontSize30 spinner-with-logo-icon"></i>
</div>
<div id="loadingModalContent">
<p class="fontSize16 js-translate" data-translate="errorMessages.loadingViewError"></p>
<div id="loadingModalBtns">
<a class="btn btn-large marginRight10 custCol-secondary custCol-text js-indexReload"><i class="ion-android-sync"></i> <span class="js-translate" data-translate="Reload"></span></a>
<a class="btn btn-large custCol-secondary custCol-text" href="#home"><i class="ion-eye"></i> <span class="js-translate" data-translate="LoadIndex"></span></a>
</div>
</div>
</div>
</div>
</div>
<!--TODO: modularize non-modular scripts -->
<script src="js/utils/list.min.js"></script>
<script>
var app = require('./js/start');
window.translateIndex = function(){
$('.js-translate').each(function() {
$(this).text(polyglot.t($(this).data("translate")));
});
};
translateIndex();
$('.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-indexReload').on('click', function(){
location.reload();
});
$('.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>