forked from ging/fiware-cloud-portal
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.temp.head.test.html
209 lines (197 loc) · 11.1 KB
/
index.temp.head.test.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
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd">
<html lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0" />
<title>index</title>
<!-- Date: 2012-03-13 -->
<link href='css/bootstrap.css' media='screen' rel='stylesheet' />
<link href='css/bootstrap-responsive.css' media='screen' rel='stylesheet' />
<link href='css/style.css' media='screen' rel='stylesheet' />
<link href='css/application.css' media='screen' rel='stylesheet' />
<link href='css/jquery.selectbox.css' media='screen' rel='stylesheet' />
<link href='css/lib/chosen_fiware.css' media='screen' rel='stylesheet' />
<link href="ico/favicon.ico" rel="shortcut icon">
<link href="ico/apple-touch-icon-144-precomposed.png" sizes="144x144" rel="apple-touch-icon-precomposed">
<link href="ico/apple-touch-icon-114-precomposed.png" sizes="114x114" rel="apple-touch-icon-precomposed">
<link href="ico/apple-touch-icon-72-precomposed.png" sizes="72x72" rel="apple-touch-icon-precomposed">
<link href="ico/apple-touch-icon-57-precomposed.png" rel="apple-touch-icon-precomposed">
<!-- <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.6.4/jquery.min.js" type="text/javascript"></script>-->
<script type="text/javascript" src="../lib/require.js"></script>
<!--<script type="text/javascript" src="../lib/jquery-1.7.1.min.js"></script>-->
<script type="text/javascript" src="../lib/underscore.js"></script>
<script type="text/javascript" src="../lib/bootstrap.min.js"></script>
<script type="text/javascript" src="../lib/jstack.js"></script>
<script type="text/javascript" src="../lib/cdmi.js"></script>
<script type="text/javascript" src="../lib/ovf.js"></script>
<script type="text/javascript" src="../lib/backbone.js"></script>
<script type="text/javascript" src="../lib/bootstrap-combobox.js"></script>
<!-- <script type="text/javascript" src="../lib/chosen.jquery.min.js"></script> -->
<!-- <script type="text/javascript" src="../lib/chosen.proto.min.js"></script> -->
<script type="text/javascript" src="../lib/chosen_fiware.jquery.js"></script>
<script type="text/javascript" src="../lib/prism.js"></script>
<script type="text/javascript" src="../lib/jquery.selectbox-0.1.3.min.js"></script>
<script>
(function($)
{
// maintain a to the existing function
var oldFadeIn = $.fn.fadeIn;
// ...before overwriting the jQuery extension point
$.fn.fadeIn = function()
{
// original behavior - use function.apply to preserve context
var ret = this.show();
// stuff I will be extending
// that doesn't affect/change
// the way .css() works
// preserve return value (probably the jQuery object...)
return ret;
};
// maintain a to the existing function
var oldFadeOut = $.fn.fadeOut;
// ...before overwriting the jQuery extension point
$.fn.fadeOut = function()
{
// original behavior - use function.apply to preserve context
var ret = this.hide();
// stuff I will be extending
// that doesn't affect/change
// the way .css() works
// preserve return value (probably the jQuery object...)
return ret;
};
})(jQuery);
window.addEventListener("load", function() {
setTimeout(function() {
window.scrollTo(0, 0);
}, 0);
});
function loadTemplates(urls, callback) {
var total = urls.length;
var amount = 0;
for (var index in urls) {
var url = urls[index];
$.ajax({
url: url + "?random=" + Math.random()*99999,
asynx: false, // synchonous call in case code tries to use template before it's loaded
success: function (response) {
$('head').append(response);
amount++;
if (amount == total) {
callback();
}
}
});
}
}
$(document).ready(function(){
$('.bar').css({width: "0%"});
loadTemplates([
'templates/auth/login.html',
'templates/forms/addUserToProject.html',
'templates/forms/updateInstance.html',
'templates/forms/createFlavor.html',
'templates/forms/updateImage.html',
'templates/forms/rebootInstances.html',
'templates/forms/changePassword.html',
'templates/forms/createSnapshot.html',
'templates/forms/createVolumeSnapshot.html',
'templates/forms/createVolume.html',
'templates/forms/editVolumeAttachments.html',
'templates/forms/launchImage.html',
'templates/forms/createContainer.html',
'templates/forms/installSoftware.html',
'templates/forms/copyObject.html',
'templates/forms/uploadObject.html',
'templates/forms/launchVDC.html',
'templates/forms/createVDCService.html',
'templates/forms/createSecurityGroup.html',
'templates/forms/editSecurityGroupRules.html',
'templates/forms/createKeypair.html',
'templates/forms/createProject.html',
'templates/forms/editProject.html',
'templates/forms/createUser.html',
'templates/forms/editUser.html',
'templates/forms/importKeypair.html',
'templates/forms/downloadKeypair.html',
'templates/forms/allocateIP.html',
'templates/forms/modifyUsers.html',
'templates/root/nova/overview.html',
'templates/root/nova/accessAndSecurity.html',
'templates/root/nova/keypairs.html',
'templates/root/nova/securityGroups.html',
'templates/root/nova/floatingIPs.html',
'templates/root/nova/snapshots.html',
'templates/root/nova/snapshots/instanceSnapshots.html',
'templates/root/nova/snapshots/volumeSnapshots.html',
'templates/root/nova/instances.html',
'templates/root/nova/volumes.html',
'templates/root/nova/instanceDetail.html',
'templates/root/nova/imageDetail.html',
'templates/root/nova/volumeDetail.html',
'templates/root/nova/VDCs.html',
'templates/root/nova/VDC.html',
'templates/root/nova/VDCService.html',
'templates/root/objectstorage/containers.html',
'templates/root/objectstorage/container.html',
'templates/root/sys/images.html',
'templates/root/sys/overview.html',
'templates/root/sys/instances.html',
'templates/root/sys/services.html',
'templates/root/sys/flavors.html',
'templates/root/sys/projects.html',
'templates/root/sys/users.html',
'templates/root/sys/newUsers.html',
'templates/root/sys/usersForProject.html',
'templates/root/sys/quotas.html',
'templates/root/root.html',
'templates/root/navTab.html',
'templates/root/topBar.html',
'templates/root/sideBar.html',
'templates/root/confirm.html',
'templates/root/settings.html',
'templates/messages.html',
'templates/root/neutron/networks.html',
'templates/forms/createNetwork.html',
'templates/forms/editNetwork.html',
'templates/forms/createSubnet.html',
'templates/root/neutron/networkDetail.html',
'templates/root/neutron/networkOverview.html',
'templates/root/neutron/networkSubnets.html',
'templates/root/neutron/networkPorts.html',
'templates/root/neutron/subnetDetail.html',
'templates/root/neutron/portDetail.html',
'templates/forms/editSubnet.html',
'templates/forms/editPort.html',
'templates/root/neutron/routers.html',
'templates/forms/createRouter.html',
'templates/forms/editRouter.html',
'templates/root/neutron/routerDetail.html',
'templates/root/neutron/routerOverview.html',
'templates/root/neutron/routerInterfaces.html',
'templates/forms/addInterfaceToRouter.html'
], function(){
$('.bar').css({width: "30%"});
console.log("Templates loaded.");
console.log($("#createKeyPairFormTemplate"));
require(["libs.js"], function() {
$('.bar').css({width: "50%"});
require(["models.js"], function() {
$('.bar').css({width: "70%"});
require(["views.js"], function() {
$('.bar').css({width: "90%"});
require(["routes.js"], function() {
$('.bar').css({width: "100%"});
$('#initbar').hide();
UTILS.Auth.initialize("/keystone/v2.0/", "/keystone-admin/v2.0/");
//UTILS.Auth.initialize("http://mcu5.dit.upm.es:5000/v2.0/");
var fiRouter = new OSRouter();
Backbone.history.start();
})
})
})
})
});
});
</script>