-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathcappetta-player
211 lines (190 loc) · 8.7 KB
/
cappetta-player
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
210
211
<!DOCTYPE html>
<html lang="en" xmlns="http://www.w3.org/1999/xhtml" class="manywho" style="height: 100%;">
<head>
<meta charset="utf-8" />
<!-- <meta name="disabled-adaptations" content="watch"> -->
<!--Optimizes for smart watches -->
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, minimum-scale=1, user-scalable=no">
<link rel="icon" href="https://assets.manywho.com/img/favicon.ico">
<title>Boomi Flow</title>
<!--CC Icons-->
<link rel="icon" type="image/png" href="https://files-manywho-com.s3.amazonaws.com/4599bfde-2ed0-4c14-bf26-53772a1a2f6f/favicon.png">
<link rel="apple-touch-icon" href="https://files-manywho-com.s3.amazonaws.com/4599bfde-2ed0-4c14-bf26-53772a1a2f6f/touch-icon-iphone.png">
<link rel="apple-touch-icon" sizes="152x152" href="https://files-manywho-com.s3.amazonaws.com/4599bfde-2ed0-4c14-bf26-53772a1a2f6f/touch-icon-ipad.png">
<link rel="apple-touch-icon" sizes="167x167" href="https://files-manywho-com.s3.amazonaws.com/4599bfde-2ed0-4c14-bf26-53772a1a2f6f/touch-icon-ipad-retina.png">
<link rel="apple-touch-icon" sizes="180x180" href="https://files-manywho-com.s3.amazonaws.com/4599bfde-2ed0-4c14-bf26-53772a1a2f6f/touch-icon-iphone-retina.png">
<link rel="icon" sizes="192x192" href="https://files-manywho-com.s3.amazonaws.com/4599bfde-2ed0-4c14-bf26-53772a1a2f6f/android-icon.png">
<meta name="msapplication-square310x310logo" content="https://files-manywho-com.s3.amazonaws.com/4599bfde-2ed0-4c14-bf26-53772a1a2f6f/microsoft-icon.png">
<style>
.mw-bs{
-webkit-overflow-scrolling: touch;
}
/* Enables IOS momentum scrolling */
.mw-bs .wait-container {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
min-height: 500px;
z-index: 1100;
background-color: rgba(255, 255, 255, 0.5);
}
.mw-bs .wait-message {
position: relative;
text-align: center;
margin-top: 1em;
display: block;
top: 40%;
font-size: 2em;
padding: 0 2em;
}
/* Spinner */
.mw-bs .wait-spinner {
display: block;
position: relative;
left: 50%;
width: 150px;
height: 150px;
margin: 200px 0 0 -75px;
border-radius: 50%;
-webkit-animation: spin 2s linear infinite; /* Chrome, Opera 15+, Safari 5+ */
animation: spin 2s linear infinite; /* Chrome, Firefox 16+, IE 10+, Opera */
transform: scale(1.75);
}
/* More Spinner */
.mw-bs .wait-spinner:before {
content: '';
box-sizing: border-box;
position: absolute;
top: 50%;
left: 50%;
width: 20px;
height: 20px;
margin-top: -10px;
margin-left: -10px;
border-radius: 50%;
border: 2px solid #ccc;
border-top-color: #333;
animation: spinner .6s linear infinite;
}
@keyframes spinner {
to {transform: rotate(360deg);}
}
</style>
</head>
<body style="height: 100%;">
<div id="manywho">
<div id="loader" class="mw-bs" style="width: 100%; height: 100%;">
<div class="wait-container">
<div class="wait-spinner"></div>
</div>
</div>
</div>
<script src="https://assets.manywho.com/js/vendor/jquery-2.1.4.min.js"></script>
<script>
var manywho = {
cdnUrl: 'https://assets.manywho.com',
requires: ['core', 'bootstrap3'],
initialize: function () {
var queryParameters = manywho.utils.parseQueryString(window.location.search.substring(1));
manywho.settings.initialize({
adminTenantId: 'da497693-4d02-45db-bc08-8ea16d2ccbdf',
playerUrl: [ location.protocol, '//', location.host, location.pathname ].join(''),
joinUrl: [ location.protocol, '//', location.host, location.pathname ].join('')
});
//Inputs
var input1 = queryParameters['input1'] != null ? queryParameters['input1'] : 'noInput1';
var input2 = queryParameters['input2'] != null ? queryParameters['input2'] : 'noInput2';
var input3 = queryParameters['input3'] != null ? queryParameters['input3'] : 'noInput3';
var input4 = queryParameters['input4'] != null ? queryParameters['input4'] : 'noInput4';
var input5 = queryParameters['input5'] != null ? queryParameters['input5'] : 'noInput5';
var input6 = queryParameters['input6'] != null ? queryParameters['input6'] : 'noInput6';
var input7 = queryParameters['input7'] != null ? queryParameters['input7'] : 'noInput7';
var inputEmail = queryParameters['inputEmail'] != null ? queryParameters['inputEmail'] : '[email protected]';
var inputPhone = queryParameters['inputPhone'] != null ? queryParameters['inputPhone'] : '9703180975';
var inputMode = queryParameters['inputMode'] != null ? queryParameters['inputMode'] : 'auto';
var inputs = [
{"input1": input1},
{"input2": input2},
{"input3": input3},
{"input4": input4},
{"input5": input5},
{"input6": input6},
{"input7": input7},
{"inputEmail": inputEmail},
{"inputPhone": inputPhone},
{"inputMode": inputMode}
];
var jsonInputs = manywho.json.generateFlowInputs(inputs);
//End bit for inputs ^^
var options = {
authentication: {
sessionId: queryParameters['session-token'],
sessionUrl: queryParameters['session-url']
},
navigationElementId: queryParameters['navigation-element-id'],
mode: queryParameters['mode'],
reportingMode: queryParameters['reporting-mode'],
replaceUrl: true,
collaboration: {
isEnabled: false
},
//isFullWidth: true, //Sets flow content to full width
inputs: jsonInputs, //changed from null
annotations: null,
navigation: {
isFixed: true,
isWizard: false
},
callbacks: [],
theme: queryParameters['theme'] != null ? queryParameters['theme'] : 'spacelab'
};
var tenantId = queryParameters['tenant-id'];
if (!tenantId) {
tenantId = window.location.pathname
.split('/')
.filter(function (path) {
return path && path.length > 0;
})[0];
}
manywho.engine.initialize(
tenantId,
queryParameters['flow-id'],
queryParameters['flow-version-id'],
'main',
queryParameters['join'],
queryParameters['authorization'],
options,
queryParameters['initialization']
);
}
};
</script>
<script src="https://assets.manywho.com/js/loader.min.js"></script>
<style>
/*Boomi logo from URL with small visible label font*/
.mw-bs .navbar-brand {
background: url(https://files-manywho-com.s3.amazonaws.com/038d12aa-2256-455c-9b4e-8e620970e451/Atom-WordMark-clr.png);
background-position: left center;
background-repeat: no-repeat;
font-size: 9px;
font-weight: 500;
line-height: 20px;
width: 90px;
height: 40px;
margin: 10px 15px 10px 15px !important;
padding: 0px 0px 0px 36px !important;
font-weight: bold;
background-size: contain;
}
/*Removes the extra 15 pixles left padding on columns container*/
@media (min-width: 558px) {
.mw-bs .mw-horizontal_flow>.row> :first-child {
padding-left: 0px;
border: 1px solid purple;
}
}
</style>
</body>
</html>