15
| <![CDATA[<script>
(function(doc, win) {
var viewport = doc.getElementById('viewport'),
isIFrame = (win.top.location.href !== win.location.href),
isPopup = (win.name.search(/^OTRSPopup_/) != -1);
try {
if (((!isIFrame && !isPopup) || (isIFrame && isPopup)) && (!localStorage.getItem("DesktopMode") || parseInt(localStorage.getItem("DesktopMode"), 10) <= 0)) {
viewport.setAttribute("content", "width=device-width, initial-scale=1.0, user-scalable=no");
}
}
catch (Exception) {}
}(document, window));
</script>]]>
|
50
| <![CDATA[<script>
(function(doc, win) {
var isIFrame = (win.top.location.href !== win.location.href),
isPopup = (win.name.search(/^OTRSPopup_/) != -1);
try {
if (((!isIFrame && !isPopup) || (isIFrame && isPopup)) && (!localStorage.getItem("DesktopMode") || parseInt(localStorage.getItem("DesktopMode"), 10) <= 0)) {
var ResponsiveCSS;
ResponsiveCSS = doc.createElement("link");
ResponsiveCSS.setAttribute("rel", "stylesheet");
ResponsiveCSS.setAttribute("type", "text/css");
ResponsiveCSS.setAttribute("href", "/otrs-web/skins/Customer/default/css-cache/ResponsiveCSS_8174737d7078aa07dd87b5ba2143f129.css");
doc.getElementsByTagName("head")[0].appendChild(ResponsiveCSS);
}
}
catch (Exception) {}
}(document, window));
</script>]]>
|
71
| <![CDATA[<script type="text/javascript">//<![CDATA[
"use strict";
var Core = Core || {};
Core.App = Core.App || {};
/**
* @function
* Ignores an event. Implemented without jQuery because no external JavaScript is available yet.
* @return nothing
*/
function IgnoreEvent (Event) {
if (Event.preventDefault) {
Event.preventDefault();
}
Event.returnValue = false;
return false;
}
/**
* @function
* This function blocks all click events on the page until it is
* unblocked after all JavaScript was loaded. Implemented without
* jQuery because no external JavaScript is available yet.
* @return nothing
*/
Core.App.BlockEvents = function() {
if (document.addEventListener) {
document.addEventListener('click', IgnoreEvent, false);
}
else {
document.attachEvent('onclick', IgnoreEvent);
}
};
/**
* @function
* This function unblocks all click events on the page
* after all JavaScript was loaded. Implemented without
* jQuery because no external JavaScript is available yet.
* @return nothing
*/
Core.App.UnblockEvents = function() {
if (document.removeEventListener) {
document.removeEventListener('click', IgnoreEvent, false);
}
else {
document.detachEvent('onclick', IgnoreEvent);
}
// allow tests to wait for complete page load
Core.App.PageLoadComplete = true;
};
// Now block all click events on the page to make sure that
// an agent does not click before all JavaScript was loaded,
// as event listeners are not yet available, for example.
Core.App.BlockEvents();
//]]></script>]]>
|
203
| <![CDATA[<script type="text/javascript">//<![CDATA[
"use strict";
var CKEDITOR_BASEPATH = "/otrs-web/js/thirdparty/ckeditor-4.7.0/";
//]]></script>]]>
|
214
| <![CDATA[<script type="text/javascript">//<![CDATA[
"use strict";
Core.Init.ExecuteInit('JS_LOADED');
Core.Customer.Enhance();
Core.App.Ready(function() {
Core.Init.ExecuteInit('DOCUMENT_READY');
Core.Config.AddConfig({"Baselink":"/otrs/customer.pl?","LoginFailed":null});
Core.Init.ExecuteInit('CONFIG_LOADED');
Core.Init.ExecuteInit('APP_GLOBAL_EARLY');
Core.Init.ExecuteInit('APP_GLOBAL');
Core.Init.ExecuteInit('APP_GLOBAL_LATE');
});
//]]></script>]]>
|
235
| <![CDATA[<script type="text/javascript">//<![CDATA[
"use strict";
Core.App.Ready(function() {
Core.Init.ExecuteInit('APP_MODULE_EARLY');
Core.Init.ExecuteInit('APP_MODULE');
Core.Init.ExecuteInit('APP_MODULE_LATE');
});
//]]></script>]]>
|
247
| <![CDATA[<script type="text/javascript">//<![CDATA[
"use strict";
Core.App.Ready(function () {
Core.Init.ExecuteInit('FINISH');
Core.App.UnblockEvents();
});
//]]></script>]]>
|