forked from NemoTravel/nemo.travel.frontend
-
Notifications
You must be signed in to change notification settings - Fork 0
/
example.html
92 lines (87 loc) · 3.67 KB
/
example.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Nemo Widget Example</title>
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" />
<link href="http://fonts.googleapis.com/css?family=Roboto:400,700,500&subset=latin,cyrillic" rel="stylesheet" type="text/css">
<link rel="stylesheet" href="http://demo.nemo.travel/templates/wurst/f2.0/css/style.css?a=1123">
<!--[if IE 9]>
<link rel="stylesheet" href="http://demo.nemo.travel/templates/wurst/f2.0/css/ie9.css?a=1123">
<![endif]-->
<link href="http://demo.nemo.travel/templates/wurst/f2.0/js/lib/lightslider/dist/css/lightslider.min.css" rel="stylesheet">
<link href="http://demo.nemo.travel/templates/wurst/f2.0/js/lib/fotorama-4.6.4/fotorama.css" rel="stylesheet">
<link href="https://maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css" rel="stylesheet">
</head>
<body>
<div id="js-nemoApp">
<!-- ko if: component() -->
<div data-bind="component: {
name: component,
params: {
route: componentRoute(),
additional: componentAdditionalParams()
}
}">
<div class="nemo-common-appLoader"></div>
</div>
<!-- /ko -->
<!-- ko if: !component() && !globalError() -->
<div class="nemo-common-appLoader"></div>
<!-- /ko -->
<!-- ko if: globalError() -->
<div class="nemo-common-appError" data-bind="text: globalError"></div>
<!-- /ko -->
</div>
<script src="http://demo.nemo.travel/templates/wurst/f2.0/js/lib/requirejs/v.2.1.15/require.js"></script>
<script>
var nemoSourceHost = 'http://demo.nemo.travel/templates/wurst/f2.0';
require.config({
urlArgs: '',
paths: {
async: nemoSourceHost+'/js/lib/requirejs/async',
domReady: nemoSourceHost+'/js/lib/requirejs/domReady',
text: nemoSourceHost+'/js/lib/requirejs/text',
knockout: nemoSourceHost+'/js/lib/knockout/v.3.2.0/knockout-3.2.0',
AppController: nemoSourceHost+'/js/NemoFrontEndController',
jquery: nemoSourceHost+'/js/lib/jquery/v.2.1.3/jquery-2.1.3.min',
jqueryUI: nemoSourceHost+'/js/lib/jqueryUI/v.1.11.4/jquery-ui.min',
jsCookie: nemoSourceHost+'/js/lib/js.cookie/v.2.0.0/js.cookie',
tooltipster: nemoSourceHost+'/js/lib/tooltipster/jquery.tooltipster.min',
numeralJS: nemoSourceHost+'/js/lib/numeral.js/v.1.5.3/numeral.min',
mousewheel: nemoSourceHost+'/js/lib/jquery.mousewheel/jquery.mousewheel.min',
touchpunch: nemoSourceHost+'/js/lib/jquery.ui.touch-punch/v.0.2.3/jquery.ui.touch-punch.min',
dotdotdot: nemoSourceHost+'/js/lib/jquery.dotdotdot-master/jquery.dotdotdot'
},
baseUrl: nemoSourceHost,
enforceDefine: true,
waitSeconds: 300,
config: { text: { useXhr: function () { return true; } } }
});
require(['AppController'], function (AppController) {
var controller = new AppController(document.getElementById('js-nemoApp'), {
controllerSourceURL: nemoSourceHost,
dataURL: 'http://demo.nemo.travel/api',
staticInfoURL: '//demo.nemo.travel',
templateSourceURL: 'http://demo.nemo.travel/frontendStatic/html/wurst/v0/en/',
i18nURL: 'http://demo.nemo.travel/frontendStatic/i18n/wurst/v0',
version: 'v0',
root: '/',
i18nLanguage: 'en',
CORSWithCredentials: true,
componentsAdditionalInfo: {
'Flights/SearchForm/Controller': {
forceSelfHostNavigation: true
},
'Hotels/SearchForm/Controller': {
forceSelfHostNavigation: true
}
}
});
});
</script>
<script src="http://demo.nemo.travel/templates/wurst/f2.0/js/lib/jquery/v.2.1.3/jquery-2.1.3.min.js"></script>
<script src="http://demo.nemo.travel/templates/wurst/f2.0/js/lib/fotorama-4.6.4/fotorama.min.js"></script>
</body>
</html>