-
Notifications
You must be signed in to change notification settings - Fork 57
/
Copy pathapp-domainlookup.html
120 lines (91 loc) · 4.01 KB
/
app-domainlookup.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
118
119
120
<!doctype html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<title>Administrative Interface Login</title>
<META HTTP-EQUIV="Pragma" CONTENT="no-cache"><!-- don't cache this file. -->
<META NAME="ROBOTS" CONTENT="NONE">
<script type="text/javascript">
var myCreole;
var baseURL = '';
//in admin, used for loading app-specific files. do NOT set the base href tho.
if (document.location.protocol == 'file:') {
baseURL = '';
}
else if (document.location.port == 8888) {
// local webserver (node.js?)
baseURL = '/';
}
else {
baseURL = "";
}
var app = {vars:{
/////////////////////////////////\
"release":"201405.a", ///|> Increment this with each change. model version followed by each deployed update getting a new letter in the alphabet.
//////////////////////////////////
"thisSessionIsAdmin": true,
"_clientid":"admin",
"jqurl": (document.location.protocol == 'file:') ? "https://www.zoovy.com/jsonapi/" : "/jsonapi/",
// "jqurl": (document.domain.indexOf('anycommerce') > -1) ? "https://www.anycommerce.com/webapi/jquery/index.cgi" : "https://www.zoovy.com/webapi/jquery/index.cgi",
// "secureURL" : "https://www.zoovy.com",
"username": "", //needs to be set for header and media library. gets set in admin.initUserInterface
"baseURL" : baseURL,
},u:{},rq:[]};
</script>
<!--
all css includes need to be after the js that changes the base url.
css files should be included before any .js file to ensure they are downloaded in parallel
-->
<link rel="stylesheet" type="text/css" href="app-domainlookup/styles.css">
<link rel="stylesheet" type="text/css" href="app-admin/jquery-ui-1.10.3.custom.css" /><!-- tho the jqueryui js lib isn't used for this app, the styles are (for now) -->
<!-- not much is going to run without these two. load em early -->
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"></script>
<!-- <script src="https://ajax.googleapis.com/ajax/libs/jqueryui/1.10.3/jquery-ui.min.js"></script>-->
<script type="text/javascript" src="controller.js"></script>
<script type="text/javascript" src="model.js"></script>
<script type="text/javascript" src="includes.js"></script>
<script type='text/javascript' src='app-domainlookup/extension.js'></script>
<!-- <script type="text/javascript" src="loadscript.js"></script> -->
<script type="text/javascript">
//don't execute script till both jquery AND the dom are ready.
$(document).ready(function(){
var tmp = new zController(app);
//instantiate wiki parser.
myCreole = new Parse.Simple.Creole();
app.model.addExtensions([{'namespace':'lookup','filename':'app-login/extension.js','callback':'initExtension'}]);
_app.u.addEventDelegation($(document.body));
});
</script>
</head>
<body class="control">
<!-- this div handles getting content to appear below the fixed header -->
<div id='appLookup' class='ui-widget ui-widget-content ui-corner-all'>
<div class='logo alignCenter stdMargin'><a href="/index.html"><img src='app-admin/images/zoovy_logo-173x30.png' width='173' height='30' alt='zoovy' /></a></div>
<div class='hint stdMargin'>
<b>Release 201342 is online and you must login directly to a store/cluster.
<br>
<br>
Why are we doing this?<br>
</b>
Every account now has a unique secure domain for improved performance and reliability.
Just enter any domain associated with your account to be immediately transported to the new admin site. Thanks!
<br>
</div>
<div id='loginFormContainer' class='stdMargin'>
<form name='merchantLogin' action='#' data-app-submit="lookup|domainLookup">
<fieldset class='marginTop'>
<label><span>Domain:</span> <input type='text' name='domain' value='' required='required' class='textbox' /></label>
<button class='loginbutton ui-widget ui-state-default ui-corner-all'>
<span class='wait'></span>
<span class='ui-button-text'>Let's Go</span>
</button>
<br>
<div class="hint">
<i>HINT: You can bookmark the next page to skip this step for future logins.</i>
</div>
</fieldset>
</form>
</div>
</div>
</body>
</html>