forked from karanmalhi/mulesoft-docs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
default.template
executable file
·291 lines (276 loc) · 9.93 KB
/
default.template
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
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
<!DOCTYPE html>
<html>
<head>
{{ page.no-index }}
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no">
<title>{{ page.title }} // MuleSoft Documentation </title>
<link rel="shortcut icon" href="/favicon.ico"/>
<link rel="stylesheet" type="text/css" href="/css/vendor.min.css?t=1524853903">
<link rel="stylesheet" type="text/css" href="/css/mulesoft.min.css?t=1524853903">
<link rel="stylesheet" type="text/css" href="https://www.mulesoft.com/sites/all/themes/muletheme/css/mulesoft-custom/header-footer-fonts.css">
<link rel="stylesheet" type="text/css" href="https://www.mulesoft.com/sites/all/themes/muletheme/css/mulesoft-custom/header-footer.css">
<link rel="stylesheet" type="text/css" href="https://www.mulesoft.com/sites/all/themes/muletheme/css/jquery.sidr.dark.css">
<script src="/js/jquery-1.11.2.min.js"></script>
<script src="/js/bootstrap.min.js"></script>
<script src="/js/addEndpoints.js"></script>
<script src="https://app-abd.marketo.com/js/forms2/js/forms2.min.js"></script>
<script src="/js/header-footer.js"></script>
<script src="/js/jquery.fancybox.pack.js"></script>
<script src="/js/last-campaign.min.js"></script>
<script src="/js/trafficSource.js"></script>
<script src="/js/scripts.js?t=1524853903"></script>
{{ page.canonical }}
{{ page.metadata }}
{{ page.swifttype-metadata }}
</head>
<body class="ms-docs">
<div class="panels-flexible-row whats-new-row" data-swiftype-index="false">
<div class="inside">
<div class="copy-container">
<h2>Free MuleSoft CONNECT Keynote & Expo Pass Available!</h2><a href="https://connect.mulesoft.com">Register now</a><span class="close-button">+</span>
</div>
</div>
</div>
<!-- START Swiftype -->
<script type="text/javascript">
(function (w, d, t, u, n, s, e) {
w['SwiftypeObject'] = n;
w[n] = w[n] || function () {
(w[n].q = w[n].q || []).push(arguments);
};
s = d.createElement(t);
e = d.getElementsByTagName(t)[0];
s.async = 1;
s.src = u;
e.parentNode.insertBefore(s, e);
})(window, document, 'script', '//s.swiftypecdn.com/install/v2/st.js', '_st');
_st('install', '-xsEiLzurJT1cpZtjMyP', '2.0.0');
</script>
<style>
.st-autocomplete-results, .st-ui-autocomplete {
font-family: "OpenSans", Helvetica, Arial, sans-serif;
width: 340px;
}
.st-ui-search-input, .st-default-search-input {
color: white;
}
</style>
<!-- END Swiftype -->
<!-- START header -->
<div id="endpoint-header"></div>
<!-- /DUMMY HEADER -->
<div class="main container-fluid">
<div class="row sub-header" data-swiftype-index="false">
<div class="search-box col-md-3 col-xs-6">
<form action="">
<i class="glyphicon glyphicon-search"></i><input class="search-field st-ui-search-input st-default-search-input" type="text" name="search-docs" placeholder="Search the docs">
<input type="submit" value="Submit">
</form>
</div>
<div class="toolbar col-md-5 col-xs-6">
<div class="toolbar-dropdown show-hide-sidebar">
<a href="#" class="tree-icon glyphicon glyphicon-th-list"><span>Nav</span></a>
</div>
<div class="toolbar-dropdown edit-github">
<a href="{{ page.github-link }}" target="_blank"><span>Edit on GitHub</span></a>
</div>
<div class="toolbar-dropdown helpful">
<div class="btn btn-default dropdown-toggle" id="dropdown-helpful">
<ul role="menu" aria-labelledby="dropdown-helpful">
<li role="presentation">
<i class="star-empty"></i>
<i class="star-empty"></i>
<i class="star-empty"></i>
<i class="star-empty"></i>
<i class="star-empty"></i>
</li>
</ul>
</div>
<ul class="dropdown-menu open" role="menu" aria-labelledby="dropdown-helpful">
<li role="presentation" class="feedback-form">
<span class="error"></span>
<div class="form-group">
<textarea name="feedback-textarea" class="form-control" rows="5" placeholder="Was this topic helpful?"></textarea>
</div>
<div class="btn-group">
<input class="btn btn-default dismiss" type="button" value="Cancel">
<input class="btn btn-primary" type="submit" value="Submit">
</div>
</li>
<li role="presentation" class="thankyou-message">
<div>
<p>Thank you!</p>
<button class="btn btn-default dismiss">Close</button>
</div>
</li>
</ul>
</div>
</div>
<div class="version-selector col-md-4 col-xs-12">
{{ page.version }}
</div>
</div>
<div class="row row-flex">
<div class="sidebar-nav col-md-3" data-swiftype-index="false">
<ul class = "home_link">
<li><i class = "glyphicon glyphicon-home"></i>
<a href = "/" title = "Home">Home</a>
</li>
</ul>
<nav>
<div class="marker"></div>
<div class="active-marker"></div>
<ul class="tree">
{{ page.toc }}
</ul>
</nav>
</div>
<!-- END sidebar-nav -->
<!-- START version notification -->
<!-- END older version notification -->
<!-- START article content -->
<div class="article-content col-md-7">
{{ page.version-notification }}
{{ page.breadcrumb }}
<h1>{{ page.title }}</h1>
{{ page.content }}
</div>
<!-- END article-content -->
{{ page.sections }}
</div>
</div>
<!-- START footer -->
<div id="endpoint-footer"></div>
<!-- Feedback script -->
<script>
// Search field toggle.
$('.search-icon').click(function () {
if (!$('#block-search-form .form-item.form-type-searchfield').is(":visible")) {
$('#block-search-form .form-item.form-type-searchfield').toggle(100, function () {
$('.search-icon').css('left', 'auto').css('background-position', '-3px -3px').css('background-size', '130%');
});
}
});
// Point to site logo.
$('.header__logo img').attr('src', '/img/mulesoft-dev-logo.svg');
var ratingId = Math.floor((Math.random() * 9999999999) + 1);
$('#dropdown-helpful').click(function () {
$('.open.dropdown-menu').show();
});
$('.helpful .dismiss').click(function () {
$('.open.dropdown-menu').hide();
});
// Star rating highlight and submit
$('.helpful li i').click(function () {
if ($('.helpful input[type="submit"]').prop('disabled')) {
$('.helpful .feedback-form').hide();
$('.helpful .thankyou-message').show();
}
else {
$('.helpful .feedback-form').show();
$('.helpful .thankyou-message').hide();
}
$('.helpful li i').removeClass('star').addClass('star-empty');
$(this)
.removeClass('star-empty').addClass('star')
.prevAll().removeClass('star-empty').addClass('star');
var rating = $('.star').length;
ratingPicked = rating;
postFeedback(ratingId, "star-only", window.location.href, rating);
});
$('.helpful li i').mouseenter(function () {
ratingPicked = $('.star').length;
$(this)
.removeClass('star-empty').addClass('star')
.prevAll().removeClass('star-empty').addClass('star');
});
$('.helpful li i').mouseleave(function () {
var i = 0;
ratingPicked ? ratingPicked : 0;
$('.helpful li i').removeClass('star').addClass('star-empty');
while (i < ratingPicked) {
$('.helpful li i')
.eq(i).removeClass('star-empty').addClass('star');
i++;
}
});
$('.helpful input[type="submit"]').click(function () {
var rating = $('.star').length;
var comment = $('.helpful [name="feedback-textarea"]').val();
if (rating) {
if (comment.length > 0) {
postFeedback(ratingId, comment, window.location.href, rating);
}
else {
$('.helpful .error').html('Please write a comment.').attr('style', 'color: #D1344E;');
}
}
else {
$('.helpful .error').html('Please rate this topic.').attr('style', 'color: #D1344E;');
}
});
function postFeedback(ratingId, comment, url, rating) {
$.ajax({
type: 'POST',
url: '/rate',
contentType: 'application/json',
data: '{ "id": ' + ratingId + ', "comment": "' + comment + '", "url": "' + url + '", "rating": ' + rating + ' }',
xhrFields: {
withCredentials: false
},
complete: function () {
if (comment != 'star-only') {
$('.helpful input[type="submit"]').attr('disabled', 'disabled');
$('.helpful .feedback-form').hide();
$('.helpful .thankyou-message').show();
}
}
});
}
</script>
<!-- END footer -->
<!-- Google Tag Manager -->
<noscript>
<iframe src="//www.googletagmanager.com/ns.html?id=GTM-SP2R"
height="0" width="0" style="display:none;visibility:hidden"></iframe>
</noscript>
<script>(function (w, d, s, l, i) {
w[l] = w[l] || [];
w[l].push({
'gtm.start': new Date().getTime(), event: 'gtm.js'
});
var f = d.getElementsByTagName(s)[0],
j = d.createElement(s), dl = l != 'dataLayer' ? '&l=' + l : '';
j.async = true;
j.src =
'//www.googletagmanager.com/gtm.js?id=' + i + dl;
f.parentNode.insertBefore(j, f);
})(window, document, 'script', 'dataLayer', 'GTM-SP2R');</script>
<!-- End Google Tag Manager -->
<script type="text/javascript">
/* Marketo Tracking Script */
(function () {
var didInit = false;
function initMunchkin() {
if (didInit === false) {
didInit = true;
Munchkin.init('564-SZS-136');
}
}
var s = document.createElement('script');
s.type = 'text/javascript';
s.async = true;
s.src = '//munchkin.marketo.net/munchkin.js';
s.onreadystatechange = function () {
if (this.readyState == 'complete' || this.readyState == 'loaded') {
initMunchkin();
}
};
s.onload = initMunchkin;
document.getElementsByTagName('head')[0].appendChild(s);
})();
</script>
<script src="/js/header-menu.js?t=1508357277"></script>
</body>
</html>