PageSourceSearch

https://stellenmarkt.wuv.de/api/js/base/8e71a3405afa509e2e8415dad9…?cb=b68592391ca08696051551e9002c536d

js wuv.de collected 2026-09-24 15:17:22 UTC 274,450 bytes, 7,801 lines download raw bytes

1if (typeof JwTplJsLib === "undefined") {var JwTplJsLib = (function(){ return { ready : function(fn){} }})();}
2if (typeof JwTplJsLib_8e71a3405afa509e2e8415dad96ed81b === "undefined") {
3function JwTplJsLib_8e71a3405afa509e2e8415dad96ed81b() {
4var pageInfoJsonVarName = 'jwTplJsLibPageInfoJson_8e71a3405afa509e2e8415dad96ed81b';
5var myBaseHash = '8e71a3405afa509e2e8415dad96ed81b';
6if (typeof JwTplJsLib == "object") { var _api = JwTplJsLib; _api.initLibs(); } else { var _api = false; }
7this._globalJsApi = function() { return _api; }
8if (_api.getAppInfo('spuch') === '' && typeof JwTplJsLibPartnerConfig == "object") {
9var _cfgPartner = JwTplJsLibPartnerConfig.getCfg();
10JwTplJsLibPartnerConfig = false;
11} else if (_api.getAppInfo('spuch') !== '' && typeof JwTplJsLibPartnerConfig == "object"){
12var _cfgPartner = new Map();
13JwTplJsLibPartnerConfig = false;
14} else {
15var _cfgPartner = new Map();
16}
17var _cfgGlobal = new Map();
18this._globalSetCfg = function(key, value) {
19if(_api.isStringRaw(key) === false) {
20return false;
21}
22_cfgGlobal.set('global.' + _api.trim(key.toLowerCase()), value);
23return true;
24}
25var _globalSetCfgIntern = function(key, value) {
26if(_api.isStringRaw(key) === false) {
27return false;
28}
29_cfgGlobal.set(key.toLowerCase(), value);
30return true;
31}
32this._globalGetCfg = function(key, defaultValue = -1, forceGlobal = false) {
33if(_api.getAppInfo('spuch') !== '') {
34_api.printErrorMsg("._globalGetCfg((key, defaultValue = -1, forceGlobal = false) - spuch active fatal error");
35return false;
36}
37if(_cfgPartner.has(key) && forceGlobal === false) {
38return _cfgPartner.get(key);
39} else if(_cfgGlobal.has(key) === true) {
40return _cfgGlobal.get(key);
41} else {
42return defaultValue !== -1 ? defaultValue : false;
43}
44}
45isFirefox = typeof InstallTrigger !== 'undefined';
46isSafari = Object.prototype.toString.call(window.HTMLElement).indexOf('Constructor') > 0;
47isAndroid = navigator.userAgent.match(/Android/i) != null;
48var isDevelop = document.location.search.match(/js_develop/);
49ajaxLoader = 'api/img/ajax-loader.gif';
50urlString = '';
51var dntServerStatus = false;
52var dntServerStatusCacheStatus = '_false';
53var dntServerStatusIsSet = false;
54var dntCookieStatusIsSet = false;
55var dntCookieName = '';
56var dntCookieValue = '';
57var dntCookieValueMode = '';
58var dntCookieValueAcceptCookieDisclaimer = '';
59var dntCookieCacheModified = '_false';
60var isCachedContent = '_false';
61var jsonConfigAsString = '';
62var jsonConfig = '';
63jsonModArray = [];
64var ajaxPathJoma = 'ajax/0d99df6523d9940528a486c895254ef3/get';
65var device = '';
66var browser = '';
67var deviceArray = [ 'android', 'blackberry', 'iphone', 'ipad', 'ipod', 'opera mini', 'iemobile', 'windowsphone', 'windows', 'chromebook', 'mac', 'ubuntu', 'linux' ];
68userAgentDeviceArray = [ 'Android', 'BlackBerry', 'iPhone', 'iPad', 'iPod', 'Opera Mini', 'IEMobile', 'IEMobile', 'Windows', 'X11', 'Macintosh', 'Ubuntu', 'Linux' ];
69var ams = false;
70var configStorage = {"global":{}, "app":{}, "mod": {}};
71var placeholderMobile = true;
72var liquidAdStorageName = 'liquidAd';
73var dsImLock = false;
74var dsUrl = '#';
75var imUrl = '#';
76var appGuiTagAk = '';
77this._globalGetPath = function() {
78return urlString;
79}
80this._globalWhatAppAmI = function() {
81if (typeof _globalInitAppJm === "function" && typeof _globalInitAppTs !== "function") {
82return 'jobmarket';
83} else if(typeof _globalInitAppTs === "function" && typeof _globalInitAppJm !== "function"){
84return 'teaser';
85} else {
86return '';
87}
88}
89this._globalJsPfa = function() {
90}
91this._globalAms = function() {
92ams = true;
93}
94var _globalGetAms = function() {
95return ams;
96}
97this._globalSetDsIm = function(ds, im){
98if (dsImLock === false) {
99if ((typeof ds === 'string') && (ds != '')) {
100dsUrl = ds;
101}
102if ((typeof im === 'string') && (im != '')) {
103imUrl = im;
104}
105dsImLock = true;
106}
107}
108this._globalGetDntStatus = function() {
109if (dntServerStatusCacheStatus === isCachedContent) {
110return (_globalGetClientDntStatus() || _globalGetServerDntStatus());
111} else {
112return _globalGetClientDntStatus();
113}
114}
115this._globalCheckCookieConsent = function(){
116var consent = _api.getCookie("jwconsent");
117var frame = document.querySelector('.jwdrf-frame-inner');
118if (frame === null) {
119_api.printErrorMsg(" Message -> _globalCookieConsent deactivated");
120return true;
121}
122if (consent === "") {
123return false;
124}
125return true;
126}
127var _globalGetClientDntStatus = function() {
128var dnt = (navigator.doNotTrack || window.doNotTrack || navigator.msDoNotTrack);
129if ((dnt === '1') || (dnt === 'yes')) {
130return true;
131}
132if(_globalGetDntCookieStatus() === true){
133return true;
134}
135return false;
136}
137var _globalGetDntCookieStatus = function() {
138if ((dntCookieName != '') && (dntCookieValue === '')) {
139if (_globalIsCookie(dntCookieName) === true) {
140return true;
141}
142} else if ((dntCookieName != '') && (dntCookieValue != '')) {
143var value = _globalGetCookie2(dntCookieName);
144if (value != '') {
145if (dntCookieValueMode == 'equal') {
146if (value == dntCookieValue) {
147return true;
148}
149} else if (dntCookieValueMode == 'instr') {
150if (value.indexOf(dntCookieValue) != -1) {
151return true;
152}
153}
154}
155}
156return false;
157}
158var _globalGetDntCookieDisclaimerAcceptStatus = function() {
159if ((dntCookieName != '') && (dntCookieValueAcceptCookieDisclaimer === '')) {
160return true;
161} else if ((dntCookieName != '') && (dntCookieValueAcceptCookieDisclaimer != '')) {
162var value = _globalGetCookie2(dntCookieName);
163if (value == dntCookieValueAcceptCookieDisclaimer) {
164return true;
165}
166}
167return false;
168}
169var _globalSetDntCookie = function() {
170if (dntCookieName != '') {
171var date = new Date();
172date.setTime(date.getTime() + (30*24*60*60*1000));
173document.cookie = dntCookieName + '=' + (dntCookieValue != '' ? encodeURIComponent(dntCookieValue) : '') + '; expires=' + date.toUTCString();
174}
175}
176var _globalSetDntCookieAcceptCookieDisclaimer = function() {
177if ((dntCookieName != '') && (dntCookieValueAcceptCookieDisclaimer != '')) {
178var date = new Date();
179date.setTime(date.getTime() + (30*24*60*60*1000));
180document.cookie = dntCookieName + '=' + encodeURIComponent(dntCookieValueAcceptCookieDisclaimer) + '; expires=' + date.toUTCString();
181}
182}
183var _globalGetServerDntStatus = function() {
184return dntServerStatus;
185}
186this._global52e7f70f8809431c39b35a29a01a68aa = function (cookieName, cookieValue, cookieValueMode, cookieValueAcceptCookieDisclaimer) {
187if (dntCookieStatusIsSet === false) {
188if ((typeof cookieName === 'string') && (cookieName != '')) {
189dntCookieName = cookieName;
190if (((typeof cookieValue === 'string') && (cookieValue != '')) || (typeof cookieValue === 'number')) {
191dntCookieValue = cookieValue;
192if ((typeof cookieValueMode === 'string') && ((cookieValueMode == 'equal') || (cookieValueMode == 'instr'))) {
193dntCookieValueMode = cookieValueMode;
194}
195}
196if (((typeof cookieValueAcceptCookieDisclaimer === 'string') && (cookieValueAcceptCookieDisclaimer != '')) || (typeof cookieValueAcceptCookieDisclaimer === 'number')) {
197dntCookieValueAcceptCookieDisclaimer = cookieValueAcceptCookieDisclaimer;
198}
199}
200dntCookieStatusIsSet = true;
201}
202}
203this._global8f195da3094ba233e975ee1e3733db2b = function(status, c
203acheStatus) {
204if (dntServerStatusIsSet === false) {
205if ((typeof status === 'string') && ((status === '_false') || (status === '_true'))) {
206if (status === '_true') {
207dntServerStatus = true;
208} else if (status === '_false') {
209dntServerStatus = false;
210}
211if ((typeof cacheStatus === 'string') && ((cacheStatus === '_false') || (cacheStatus === '_true'))) {
212dntServerStatusCacheStatus = cacheStatus;
213}
214}
215dntServerStatusIsSet = true;
216}
217}
218this._global8c238ba3be266daa6105c2e432332799 = function(status) {
219if ((typeof jsonConfig === 'string') && ((jsonConfig === '_false') || (jsonConfig === '_true'))) {
220isCachecContent = status;
221}
222}
223var _globalGetIsCachedContent = function() {
224return isCachecContent;
225}
226this._globalGetJwTplJsLib = function() {
227return _api;
228}
229this._globalAddJsonConfig = function(json) {
230if ((typeof jsonConfig === 'string') && (jsonConfig === '')) {
231if ((typeof json === 'string') && (json.substr(0, 1) === '{') && (json.substr(-1, 1) === '}')) {
232if ((typeof jsonConfigAsString === 'string') && (jsonConfigAsString === '')) {
233jsonConfigAsString = '{' + '\n';
234} else {
235jsonConfigAsString = jsonConfigAsString + ',' + '\n';
236}
237var modTags = json.match(/{"([0-9])+":.*"api":[ ]?"([a-z-]*)\|([0-9]+)\|([jwtpl-sys-]?[a-z0-9]*)"/);
238if (modTags != null) {
239if (typeof (jsonModArray[modTags[2]]) == 'undefined') {
240jsonModArray[modTags[2]] = modTags[1];
241} else {
242jsonModArray[modTags[2]] = jsonModArray[modTags[2]] + ',' + modTags[1];
243}
244}
245jsonConfigAsString = jsonConfigAsString + json.substr(1, (json.length - 2));
246}
247}
248}
249var _globalGetJsonConfig = function() {
250if ((typeof jsonConfig === 'string') && (jsonConfig === '')) {
251try {
252jsonConfig = JSON.parse(_globalGetJsonConfigString());
253} catch (e) {
254jsonConfig = JSON.parse('{}');
255}
256}
257return jsonConfig;
258}
259var _globalGetJsonConfigString = function() {
260var matchingList = '';
261for ( var i in jsonModArray) {
262matchingList += '"' + i + '": "' + jsonModArray[i] + '",';
263}
264return '{' + matchingList + jsonConfigAsString.substr(1) + '\n}';
265}
266this._globalGetJsonConfigStringPublic = function() {
267return _globalGetJsonConfigString();
268}
269var _globalGetJsonText = function(modKey, content, jsonVar) {
270if(content == undefined) {
271content = '';
272}
273var jsonComplete = _globalGetJsonConfig();
274var jsonKeyText = content;
275var jsonKey = '';
276if ((typeof jsonComplete[modKey] != 'undefined') && (jsonComplete[modKey] != '')) {
277jsonKey = jsonComplete[modKey];
278if ((typeof jsonComplete[jsonKey] != 'undefined') && (jsonComplete[jsonKey] != '')) {
279if ((typeof jsonComplete[jsonKey][jsonVar] != 'undefined') && (jsonComplete[jsonKey][jsonVar] != '')) {
280jsonKeyText = jsonComplete[jsonKey][jsonVar];
281}
282}
283}
284return jsonKeyText;
285}
286var _globalIsBrowserIeOrEdge = function() {
287var isIE = /* @cc_on!@ */false || !!document.documentMode;
288var isEdge = !isIE && !!window.StyleMedia;
289if((isIE === true )|| (isEdge === true)){
290return true;
291}
292return false;
293}
294var _globalGetBaseHrefUrl = function() {
295var baseHref = '';
296var baseTag = document.querySelectorAll('base');
297if(baseTag.length > 0){
298if(typeof baseTag[0] !== 'undefined' && baseTag[0].hasAttribute('href') === true && baseTag[0].getAttribute('href').length > 0){
299baseHref = baseTag[0].getAttribute('href');
300}
301}
302return baseHref;
303}
304var _globalSetBaseHrefUrl = function(baseurl) {
305var hasChanged = false;
306if(typeof baseurl === 'string' && baseurl.length > 10){
307if(baseurl.indexOf('http://') == 0 || baseurl.indexOf('https://') == 0 || baseurl.indexOf('//') == 0){
308var baseTag = document.querySelectorAll('base');
309if(baseTag.length > 0 && typeof baseTag[0] !== 'undefined'){
310baseTag[0].setAttribute('href', baseurl);
311hasChanged = true;
312}
313}
314}
315return hasChanged;
316}
317var _globalStartUpActivity = function() {
318}
319var _globalGetUrlParameter = function getUrlParameter(sParam) {
320var sPageURL = decodeURIComponent(window.location.search.substring(1)), sURLVariables = sPageURL.split('&'), sParameterName, i;
321for (i = 0; i < sURLVariables.length; i++) {
322sParameterName = sURLVariables[i].split('=');
323if (sParameterName[0] === sParam) {
324return sParameterName[1] === undefined ? true : sParameterName[1];
325}
326}
327};
328var _globalGetHost = function() {
329var hostname = document.location.hostname;
330var localORLiveTest = 'live';
331if (hostname == '127.0.0.1' || hostname == 'localhost') {
332localORLiveTest = 'local';
333}
334if (hostname.match(/jw[-]{0,1}[^.]*\.hockenheim\.jw\.dir/) || hostname == 'jobware-local') {
335localORLiveTest = 'local';
336}
337if (hostname.match(/\.a[dpti]\.sites\.jobware\.net/)) {
338localORLiveTest = 'local';
339}
340return localORLiveTest;
341}
342var _globalIsMobile = function() {
343if (isDevelop == true) {
344var android = navigator.userAgent.match(/Android/i);
345var blackBerry = navigator.userAgent.match(/BlackBerry/i);
346var iOS = navigator.userAgent.match(/iPhone|iPad|iPod/i);
347var opera = navigator.userAgent.match(/Opera Mini/i);
348var windowsPhone = navigator.userAgent.match(/IEMobile/i);
349if (android != null || blackBerry != null || iOS != null || opera != null || windowsPhone != null) {
350return true;
351}
352return false;
353}
354}
355var _globalCheckUserAgent = function() {
356if (isDevelop == true) {
357var browserArray = [ 'opera', 'firefox', 'safari', 'ie', 'internetexplorer', 'edge', 'chrome' ];
358var isDevice = false;
359var isBrowser = false;
360var testDevice = false;
361var testBrowser = false;
362for ( var arg = 0; arg < arguments.length; arg++) {
363if (deviceArray.includes(arguments[arg].toLowerCase()) == true) {
364testDevice = true;
365_globalSetDevice(_globalDetectDevice(arguments[arg].toLowerCase()));
366if (_globalGetDevice() == arguments[arg].toLowerCase()) {
367isDevice = true;
368}
369}
370if (browserArray.includes(arguments[arg].toLowerCase()) == true) {
371testBrowser = true;
372_globalSetBrowser(_globalDetectBrowser(arguments[arg].toLowerCase()));
373if (_globalGetBrowser() == arguments[arg].toLowerCase()) {
374isBrowser = true;
375}
376}
377}
378if (arguments.length == 2) {
379if (isDevice && isBrowser) {
380return true;
381} else {
382return false;
383}
384} else if (arguments.length == 1) {
385if (testDevice = true) {
386return isDevice;
387} else if (testBrowser = true) {
388return isBrowser;
389} else {
390return false;
391}
392} else if (arguments.length == 0) {
393return false;
394}
395}
396}
397var _globalSetDevice = function(setDevice) {
398if (isDevelop == true) {
399if (setDevice.trim() != '') {
400device = setDevice;
401} else {
402console.log('Wrong Device. Device detection.');
403device = _globalDetectDevice('');
404}
405}
406}
407var _globalGetDevice = function() {
408if (isDevelop == true) {
409if (device.trim() == '') {
410_globalSetDevice('');
411}
412return device;
413}
414}
415var _globalSetBrowser = function(setBrowser) {
416if (isDevelop == true) {
417if (setBrowser.trim() != '') {
418browser = setBrowser;
419} else {
420console.log('Wrong Browser. Browser detection.');
421browser = _globalDetectBrowser('');
422}
423}
424}
425var _globalGetBrowser = function() {
426if (isDevelop == true) {
427return browser;
428}
429}
430var _globalDetectDevice = function(detectDevice) {
431if (isDevelop == true) {
432if (detectDevice != '') {
433var pos = deviceArray.indexOf(detectDevice.toLowerCase());
434userAgentDeviceArray = [ userAgentDeviceArray[pos] ];
435}
436for ( var arrCount = 0; arrCount < userAgentDeviceArray.length; arrCount++) {
437isDevice = '';
438if (navigator.userAgent.match(userAgentDeviceArray[arrCount]) != null) {
439_globalSetDevice(userAgentDeviceArray[arrCount]);
440isDevice = true;
441}
442if (isDevice == true) {
443return userAgentDeviceArray[arrCount];
444}
445}
446return '';
447}
448}
449var _globalDetectBrowser = function(detectBrowser) {
450if (isDevelop == true) {
451if (detectBrowser.trim() == '') {
452var browserArray = [ 'opera', 'firefox', 'safari', 'internetexplorer', 'edge', 'chrome' ];
453} else {
454var browserArray = [ detectBrowser ];
455}
456for ( var arrCount = 0; arrCount < browserArray.length; arrCount++) {
457isBrowser = '';
458switch (browserArray[arrCount]) {
459case 'opera':
460isBrowser = (!!window.opr && !!opr.addons) || (!!window.opera) || (navigator.userAgent.indexOf(' OPR/')) || (navigator.userAgent.indexOf("Opera") != -1) >= 0;
461break;
462case 'firefox':
463isBrowser = (typeof InstallTrigger !== 'undefined') || (navigator.userAgent.indexOf("Firefox") != -1);
464break;
465case 'safari':
466isBrowser = (Object.prototype.toString.call(window.HTMLElement).indexOf('Constructor') > 0) || (navigator.userAgent.indexOf("Safari") != -1);
467break;
468case 'internetExplorer':
469isBrowser = (/* @cc_on!@ */false) || (!!document.documentMode) || (navigator.userAgent.indexOf("MSIE") != -1);
470break;
471case 'edge':
472isBrowser = !((/* @cc_on!@ */false) || (!!document.documentMode)) && (!!window.StyleMedia) || (navigator.userAgent.indexOf("Edge") != -1);
473break;
474case 'chrome':
475isBrowser = (!!window.chrome && !!window.chrome.webstore) || (navigator.userAgent.indexOf("Chrome") != -1);
476break;
477default:
478isBrowser = false;
479break;
480}
481if (isBrowser == true) {
482return browserArray[arrCount];
483}
484}
485return '';
486}
487}
488var _globalSetUmlaut = function(isUmlaut, string) {
489found = '';
490if (string != '' && string != null) {
491if (isUmlaut) {
492found = string;
493found = found.replace(/Ä/g, '&Auml;');
494found = found.replace(/ä/g, '&auml;');
495found = found.replace(/Ö/g, '&Ouml;');
496found = found.replace(/ö/g, '&ouml;');
497found = found.replace(/Ü/g, '&Uuml;');
498found = found.replace(/ü/g, '&uuml;');
499} else {
500found = string;
501found = found.replace(/&Auml;/g, 'Ä');
502found = found.replace(/&auml;/g, 'ä');
503found = found.replace(/&Ouml;/g, 'Ö');
504found = found.replace(/&ouml;/g, 'ö');
505found = found.replace(/&Uuml;/g, 'Ü');
506found = found.replace(/&uuml;/g, 'ü');
507}
508}
509return found;
510}
511var _globalFillPlaceholderInForm = function(objectForm) {
512objectForm.each(function() {
513var currentForm = jQuery(this);
514var modName = "";
515if (typeof objectForm[0] != 'undefined') {
516modName = "-" + objectForm[0].className.split("-")[1];
517}
518if(placeholderMobile === true) {
519var innerHeight = window.innerHeight;
520var innerWidth = window.innerWidth;
521var mobileSizeIndex;
522if(innerHeight > innerWidth) {
523mobileSizeIndex = innerWidth;
524} else if(innerWidth >
524 innerHeight) {
525mobileSizeIndex = innerHeight;
526}
527}
528var formInputs = jQuery("input[data-jwtpl" + modName + "-placeholder]", currentForm);
529formInputs.each(function() {
530var currentInput = jQuery(this);
531var initValue = currentInput.attr("data-jwtpl" + modName + "-placeholder");
532if(placeholderMobile === true) {
533if((mobileSizeIndex < 481)) {
534mobileInitValue = currentInput.attr("data-jwtpl" + modName + "-placeholdermobil");
535if(mobileInitValue !== undefined) {
536initValue = mobileInitValue;
537}
538}
539}
540var initValue2 = currentInput.attr("value");
541currentInput.attr({
542"placeholder" : currentInput.attr("")
543});
544if(placeholderMobile === true) {
545if (initValue2 == "") {
546currentInput.attr({
547"value" : initValue
548});
549}
550} else {
551if (initValue2 == "") {
552currentInput.attr({
553"value" : currentInput.attr("data-jwtpl" + modName + "-placeholder")// initValue
554});
555}
556}
557var focusColor = objectForm.css('color');
558var blurColor = currentInput.css('color');
559var bgInputColor = currentInput.css('background-color');
560var matchBgColor = bgInputColor.match(/rgb[a]?\(255,[ ]?255,[ ]?255[,0-9. ]*\)|#fff|white|initial/);
561currentInput.bind("focus", function() {
562activeEmailField = jQuery(this);
563activeSearchField = jQuery(this);
564if (objectForm[0].className.split("-")[1] == "sebo") {
565seboFocus(initValue);
566}
567var _this = jQuery(this);
568if (_this.val() == initValue) {
569_this.val("");
570_this.attr("placeholder", "");
571}
572if(matchBgColor == null || (matchBgColor !== null && matchBgColor.length == 0)) {
573_this.css("color", focusColor);
574}
575});
576currentInput.bind("blur", function() {
577activeSearchField = jQuery(this);
578var _this = jQuery(this);
579if (_this.val() == "") {
580_this.val(initValue);
581_this.attr("placeholder", "");
582_this.css("color", blurColor);
583}
584if (objectForm[0].className.split("-")[1] == "sebo") {
585seboBlur(initValue);
586}
587});
588});
589currentForm.bind("submit", function(e) {
590var _this = jQuery(this);
591var inputs = jQuery("input[data-jwtpl" + modName + "-placeholder]", _this);
592inputs.each(function() {
593var _this = jQuery(this);
594if((placeholderMobile === true) && (mobileSizeIndex < 481)) {
595if (_this.val() == _this.attr("data-jwtpl" + modName + "-placeholdermobil"))
596_this.val("");
597} else {
598if (_this.val() == _this.attr("data-jwtpl" + modName + "-placeholder"))
599_this.val("");
600}
601});
602});
603});
604}
605var _globalFillInPlaceholderV2 = function(objectForm){
606objectForm.forEach(function(elem) {
607var currentForm = elem;
608var modName = "";
609if (elem.classList.length > 0 && elem.classList[0].split('-').length > 1) {
610modName = "-" + objectForm[0].className.split("-")[1];
611}
612});
613}
614var _globalStringReplaceAt = function(string, index, char) {
615return string.substr(0, index) + char + string.substr(index + 1);
616}
617var _globalIsCookieEnabled = function() {
618return navigator.cookieEnabled;
619}
620var _globalIsCookieFull = function() {
621if (document.cookie.length > 3780) {
622return true
623} else {
624return false;
625}
626}
627var _globalSetCookie = function(name, wert, expires, path) {
628var arg_wert = _globalSetCookie.arguments;
629var arg_laenge = _globalSetCookie.arguments.length;
630wert = encodeURI(wert);
631if (expires != null) {
632wert += "; expires=" + expires.toGMTString()
633}
634if (path != "") {
635wert += "; path=" + path;
636}
637if (_globalIsCookieFull() == false || (wert.length < document.cookie.length)) {
638document.cookie = name + "=" + wert;
639}
640}
641var _globalIsCookie = function(name) {
642var gibZurueck;
643var regex = new RegExp(name + "[^;]*");
644if (document.cookie.match(regex)) {
645gibZurueck = true;
646} else {
647gibZurueck = false;
648}
649return gibZurueck;
650}
651var _globalGetCookie = function(name) {
652name += "=";
653var laenge = name.length;
654var indexCookieBegin = document.cookie.indexOf(name);
655var indexCookieEnd = document.cookie.indexOf(';', indexCookieBegin);
656if (indexCookieEnd == -1) {
657indexCookieEnd = document.cookie.length;
658}
659var cookieValue = decodeURI(document.cookie.substring(indexCookieBegin + laenge, indexCookieEnd));
660if (cookieValue.match(/\|\|/g)) {
661cookieValue = cookieValue.replace('||', '|');
662}
663return cookieValue;
664}
665var _globalGetCookie2 = function(cookieKey){
666if(typeof cookieKey !== 'undefined' && typeof cookieKey === 'string' && cookieKey.length > 0){
667var cookies = document.cookie;
668if(typeof cookies !== 'undefined' && typeof cookies === 'string' && cookies.length > 0){
669var cookieArray = cookies.split(';')
670for(i = 0; i < cookieArray.length;i++){
671var cookieData = cookieArray[i].split('=');
672if(cookieData[0].trim() === cookieKey.trim()){
673if(typeof cookieData[1] !== 'undefined' && typeof cookieData[1] === 'string' && cookieData[1].length > 0){
674return decodeURIComponent(cookieData[1]);
675}
676}
677}
678}
679}
680return '';
681}
682var _globalDeleteValueFromCookie = function(name, removeValue, time) {
683if(typeof(time) === 'undefined') {
684time = null;
685}
686var wert = _globalGetCookie(name);
687wert = wert.replace(removeValue, '');
688if (wert[0] == "|") {
689wert = wert.replace("|", "");
690}
691_globalSetCookie(name, wert, time, '/');
692}
693var _globalCheckIfValueExistInCookie = function(name, value, indexOfUnique) {
694var isChecked = false;
695if (_globalIsCookie(name)) {
696var cookieAllAds = _globalGetCookie(name).split('|');
697for (i = 0; i < cookieAllAds.length; i++) {
698var cookieOneAd = cookieAllAds[i].split(",");
699if (cookieOneAd[indexOfUnique] == value) {
700isChecked = true;
701}
702}
703}
704return isChecked;
705}
706var _globalJumpToAnchor = function(originElement, targetElement) {
707if((typeof document.getElementsByTagName('base')[0] != 'undefined') && (document.getElementsByTagName('base')[0].href != '')) {
708originElement.addEventListener('click', function(e) {
709e.preventDefault();
710var origin = originElement;
711var anchor = targetElement;
712if(typeof anchor != 'undefined') {
713var i = origin.offsetTop;
714var int = setInterval(function() {
715window.scrollTo(0, i);
716i += 10;
717if (i >= anchor.offsetTop) clearInterval(int);
718}, 10);
719}
720});
721}
722}
723var _globalSetWindowName = function() {
724var element = document.querySelectorAll('[data-jwtpl-myWindow]');
725if (element.length == 1) {
726element = element[0];
727if (element.hasAttribute('data-jwtpl-myWindow') == true) {
728window.name = element.getAttribute('data-jwtpl-myWindow').split("|")[0];
729}
730}
731}
732this.getPageInfoJson = function() {
733if (typeof window[pageInfoJsonVarName] !== 'undefined') {
734return window[pageInfoJsonVarName];
735} else {
736return false;
737}
738}
739this.getPageInfoJsonProperty = function(property) {
740if (typeof property === 'undefined' || typeof property !== 'string' || property.length < 1) {
741return false;
742}
743var prop = '', json = this.getPageInfoJson();
744if (json === false) {
745return false;
746} else {
747prop = property.trim().toLowerCase();
748if ([ "id", "keyword", "location", "filtered", "pagenumber", "pagesize" ].indexOf(prop) != -1) {
749if (typeof json['detaildata']['search'][prop] !== 'undefined' && json['detaildata']['search'][prop].length > 0) {
750return json['detaildata']['search'][prop];
751} else {
752return false;
753}
754} else {
755if (typeof json[prop] !== 'undefined' && json[prop].length > 0) {
756return json[prop];
757} else {
758return false;
759}
760}
761}
762}
763var _globalPageTypeFinder = function() {
764var body = document.querySelectorAll('body');
765if (body.length > 0 && body[0].hasAttribute('data-jwtpl-fingerprint') === true && body[0].getAttribute('data-jwtpl-fingerprint') != '' && arguments.length > 0 && typeof arguments[0] === 'string') {
766var stamp = body[0].getAttribute('data-jwtpl-fingerprint'), isConfig = arguments, count = arguments.length, controlString = '';
767for ( var i = 0; i < count; i++) {
768if (isConfig[i] === 'checkIfCountBiggerZero') {
769if (stamp[0] == 'X') {
770controlString += 'T';
771} else {
772controlString += 'F';
773}
774continue;
775}
776if (isConfig[i] === 'checkIfCountZero') {
777if (stamp[0] == '0') {
778controlString += 'T';
779} else {
780controlString += 'F';
781}
782continue;
783}
784if (isConfig[i] === 'checkIfStartpage') {
785if (stamp[1] + stamp[2] == '11') {
786controlString += 'T';
787} else {
788controlString += 'F';
789}
790continue;
791}
792if (isConfig[i] === 'checkIfRegularSearch') {
793if (stamp[3] + stamp[4] == '12') {
794controlString += 'T';
795} else {
796controlString += 'F';
797}
798continue;
799}
800if (isConfig[i] === 'checkIfCompanyWithProfil') {
801if (stamp[5] + stamp[6] == '13') {
802controlString += 'T';
803} else {
804controlString += 'F';
805}
806continue;
807}
808if (isConfig[i] === 'checkIfSeoPage') {
809if (stamp[7] + stamp[8] == '14') {
810controlString += 'T';
811} else {
812controlString += 'F';
813}
814continue;
815}
816if (isConfig[i] === 'checkIfRegularSearchFiltered') {
817if (stamp[9] + stamp[10] == '15') {
818controlString += 'T';
819} else {
820controlString += 'F';
821}
822continue;
823}
824if (isConfig[i] === 'checkIfRegularSearchPaged') {
825if (stamp[11] + stamp[12] == '16') {
826controlString += 'T';
827} else {
828controlString += 'F';
829}
830continue;
831}
832if (isConfig[i] === 'checkIfRegularSearchSorted') {
833if (stamp[13] + stamp[14] == '17') {
834controlString += 'T';
835} else {
836controlString += 'F';
837}
838continue;
839}
840if (isConfig[i] === 'checkIfSeoPageWithContent') {
841if (stamp[15] + stamp[16] == '18') {
842controlString += 'T';
843} else {
844controlString += 'F';
845}
846continue;
847}
848if (isConfig[i] === 'checkIfCompanyPage') {
849if (stamp[17] + stamp[18] == '19') {
850controlString += 'T';
851} else {
852controlString += 'F';
853}
854continue;
855}
856if (isConfig[i] === 'checkIfSeoPageCrossPreparedSearch') {
857if (stamp[19] + stamp[20] == '21') {
858controlString += 'T';
859} else {
860controlString += 'F';
861}
862continue;
863}
864if (isConfig[i] === 'checkIfSeoPageCrossPreparedSearchWithContent') {
865if (stamp[21] + stamp[22] == '23') {
866controlString += 'T';
867} else {
868controlString += 'F';
869}
870continue;
871}
872if (isConfig[i] === 'checkIfJobMailListResultPage') {
873if (stamp[21] + stamp[22] == '22') {
874controlString += 'T';
875} else {
876controlString += 'F';
877}
878continue;
879}
880}
881if (controlString.indexOf('F') != -1 || controlString === '') {
882return false;
883} else {
884return true;
885}
886}
887return false;
888}
889var _globalCreateAjaxLoaderGif = function(elem){
890if(urlString != '' && typeof elem != 'undefined' && elem != null){
891var para = document.createElement("img");
892para.classList.add('jwtpl-global-ajaxloader');
893para.setAttribute('src', urlString + ajaxLoader);
894para.setAttribute('style','position: fixed;top: 20%;left: 40%;background-color: #fff;padding: 20px;z-index: 9999;border-radius: 10px;box-shadow: 0 0 15px 5px rgba(0, 0, 0, 0.1);');
895elem.appendChild(para);
896}
897}
898var _globalCreateArrowsForSwipeMobile = function(elem){
899if(typeof elem != 'undefined' && elem != null){
900var left = document.createElement("div");
901left.classList.add('jwtpl-global-arrowLeft');
902var left2 = document.createElement('div');
903left2.classList.add('jwtpl-global-pageNumberBack');
904left.appendChild(left2);
905var right = document.createElement("div");
906right.classList.add('jwtpl-global-arrowRight');
907var right2 = document.createElement('div');
908right2.classList.add('jwtpl-global-pageNumberNext');
909right.appendChild(right2);
910elem.appendChild(left);
911elem.appendChild(right);
912}
913}
914var _globalCreateCrossForSwipeMobile = function(elem){
915if(typeof elem != 'undefined' && elem != null){
916var left = document.createElement("div");
917left.classList.add('jwtpl-global-crossLeft');
918var right = document.createElement("div");
919right.classList.add('jwtpl-global-crossRight');
920elem.appendChild(left);
921elem.appendChild(right);
922}
923}
924var _globalSwipeMobile = function(elem, pageBack, pageNext, showLoaderAndArrows, pagerActive1Link, elemToAppendArrow){
925if((typeof elemToAppendArrow !== 'undefined') && (elemToAppendArrow !== null)) {
926_globalCreateArrowsForSwipeMobile(elemToAppendArrow);
927_globalCreateCrossForSwipeMobile(elemToAppendArrow);
928} else {
929_globalCreateArrowsForSwipeMobile(elem);
930_globalCreateCrossForSwipeMobile(elem);
931elemToAppendArrow = elem;
932}
933if(typeof pagerActive1Link == 'undefined'){
934pagerActive1Link = null;
935}
936if(typeof showLoaderAndArrows == 'undefined'){
937showLoaderAndArrows = null;
938}
939var btnNext = elemToAppendArrow.querySelector('.jwtpl-global-arrowRight');
940var btnBack = elemToAppendArrow.querySelector('.jwtpl-global-arrowLeft');
941var pageNumberBack = elemToAppendArrow.querySelector('.jwtpl-global-pageNumberBack');
942var pageNumberNext = elemToAppendArrow.querySelector('.jwtpl-global-pageNumberNext');
943var crsLeft = elemToAppendArrow.querySelector('.jwtpl-global-crossLeft');
944var crsRight = elemToAppendArrow.querySelector('.jwtpl-global-crossRight');
945var width = elemToAppendArrow.offsetWidth;
946var widthEdgeLeft = (width /100) * 25;
947var widthEdgeRight = width - widthEdgeLeft;
948var heightEdge = screen.height / 10;
949if(("ontouchstart" in document.documentElement) && (typeof elem != 'undefined') && (elem != null) && (btnNext != null) && (btnBack != null)){
950elem.addEventListener('touchstart', function(event) {
951var startTouch = 0;
952var endTouch = 0;
953var startHoehe = 0;
954var endHoehe = 0;
955var check = true;
956event.currentTarget.addEventListener('touchmove', function(ev) {
957if(startTouch == 0){
958startTouch = ev.touches[0].clientX;
959}
960endTouch = ev.touches[0].clientX;
961if(startHoehe == 0){
962startHoehe = ev.touches[0].clientY;
963}
964endHoehe = ev.touches[0].clientY;
965if((startHoehe - endHoehe) > heightEdge || (endHoehe - startHoehe) > heightEdge){
966check = false;
967}
968if(check == true && elemToAppendArrow !== null) {
969if(startTouch > endTouch) {
970var swipeDistance = startTouch - endTouch;
971var smoothPull = Math.floor(swipeDistance*0.7);
972var iframeElem = window.document.querySelectorAll('.jwtpl-jobad-adIframe');
973elemToAppendArrow.classList.add('swipeNext')
974if((swipeDistance > 10) && (smoothPull < 71)) {
975elemToAppendArrow.setAttribute("style", "transform:translateX("+smoothPull+"px); -webkit-transform:translateX("+(-smoothPull)+"px)");
976if(iframeElem !== undefined && iframeElem.length > 0) {
977iframeElem[0].setAttribute('style', 'box-shadow: ' + swipeDistance + 'px 0px 5px -5px rgba(0,0,0,0.25);');
978}
979}
980} else if(startTouch < endTouch) {
981var swipeDistance = endTouch - startTouch;
982var smoothPull = Math.floor(swipeDistance*0.7);
983var iframeElem = window.document.querySelectorAll('.jwtpl-jobad-adIframe');
984elemToAppendArrow.classList.add('swipeBack');
985if((swipeDistance > 10) && (smoothPull < 71)) {
986elemToAppendArrow.setAttribute("style", "transform:translateX("+smoothPull+"px); -webkit-transform:translateX("+smoothPull+"px)");
987if(iframeElem !== undefined && iframeElem.length > 0) {
988iframeElem[0].setAttribute('style', 'box-shadow: -' + swipeDistance + 'px 0px 5px -5px rgba(0,0,0,0.25);');
989}
990}
991}
992}
993if(((startTouch + width / 4 ) < endTouch) && (startTouch < widthEdgeLeft)){
994if((pageNext != null) && (pageBack == null)){
995if(crsLeft != null){
996crsLeft.style.display = 'block';
997}
998}else{
999if(showLoaderAndArrows == true){
1000btnBack.style.display = 'block';
1001}
1002if((pagerActive1Link != null) && (pageNumberBack != null) ){
1003pageNumberBack.innerText = parseInt(pagerActive1Link.innerText) - 1;
1004}
1005}
1006}else{
1007startTouch, endHoehe = null;
1008crsLeft.style.display = 'none';
1009btnBack.style.display = 'none';
1010}
1011if((startTouch > (width / 4 + endTouch)) && (startTouch > widthEdgeRight)){
1012if((pageNext == null) && (pageBack != null)){
1013if(crsRight != null){
1014crsRight.style.display = 'block';
1015}
1016}else{
1017if(showLoaderAndArrows == true){
1018btnNext.style.display = 'block';
1019}
1020if((pagerActive1Link != null) && (pageNumberNext != null)){
1021pageNumberNext.innerText = parseInt(pagerActive1Link.innerText) + 1;
1022}
1023}
1024}else{
1025startTouch,endHoehe = null;
1026crsRight.style.display = 'none';
1027btnNext.style.display = 'none';
1028}
1029},false);
1030event.currentTarget.addEventListener('touchend', function(eve) {
1031if(((startTouch + (width / 4)) < endTouch) && (pageBack != null) && (startTouch < widthEdgeLeft) && check){
1032pageBack.click();
1033if(showLoaderAndArrows == true){
1034btnBack.style.display = 'block';
1035_globalCreateAjaxLoaderGif(elem);
1036}
1037}else if((startTouch > ((width / 4) + endTouch)) && (pageNext != null) && (startTouch > widthEdgeRight) && check){
1038pageNext.click();
1039if(showLoaderAndArrows == true){
1040btnNext.style.display = 'block';
1041_globalCreateAjaxLoaderGif(elem);
1042}
1043}
1044startTouch, endHoehe = null;
1045crsRight.style.display = 'none';
1046crsLeft.style.display = 'none';
1047// for animation
1048if(elemToAppendArrow !== null) {
1049if (elemToAppendArrow.style != null) {
1050elemToAppendArrow.removeAttribute('style');
1051}
1052if (elemToAppendArrow.classList.contains('swipeNext') == true) {
1053elemToAppendArrow.classList.remove('swipeNext');
1054}
1055if (elemToAppendArrow.classList.contains('swipeBack') == true) {
1056elemToAppendArrow.classList.remove('swipeBack');
1057}
1058}
1059},false);
1060});
1061}
1062}
1063var _globalGetStorageItem = function(itemPath) {
1064if(_api.isString(itemPath) === false) {
1065_api.printErrorMsg("._globalGetStorageItem(itemPath) - itemPath must be not empty string");
1066return false;
1067}
1068var
1069split = itemPath.split('.'),
1070len = split.length;
1071if(len === 1){
1072if(_api.type(sessionStorage.getItem(split[0])) !== undefined){
1073var storedItem = sessionStorage.getItem(split[0]);
1074try {
1075storedItem = JSON.parse(storedItem);
1076return storedItem;
1077} catch(e){
1078return storedItem;
1079}
1080} else {
1081return '';
1082}
1083} else if(len > 1) {
1084var storedItem = sessionStorage.getItem(split[0]);
1085if(_api.type(storedItem) === undefined){
1086return '';
1087}
1088try {
1089storedItem = JSON.parse(storedItem);
1090if(len == 2 && _api.type(storedItem[split[1]]) !== undefined){
1091return storedItem[split[1]];
1092} else if(len == 3 && _api.type(storedItem[split[1]][split[2]]) !== undefined) {
1093return storedItem[split[1]][split[2]];
1094} else if(len == 4 && _api.type(storedItem[split[1]][split[2]][split[3]]) !== undefined) {
1095return storedItem[split[1]][split[2]][split[3]];
1096} else if(len == 5 && _api.type(storedItem[split[1]][split[2]][split[3]][split[4]]) !== undefined) {
1097return storedItem[split[1]][split[2]][split[3]][split[4]];
1098} else if(len == 6 && _api.type(storedItem[split[1]][split[2]][split[3]][split[4]][split[5]]) !== undefined) {
1099return storedItem[split[1]][split[2]][split[3]][split[4]][split[5]];
1100} else if(len == 7 && _api.type(storedItem[split[1]][split[2]][split[3]][split[4]][split[5]][split[6]]) !== undefined) {
1101return storedItem[split[1]][split[2]][split[3]][split[4]][split[5]][split[6]];
1102}
1103return '';
1104} catch(e){
1105return storedItem;
1106}
1107}
1108return '';
1109}
1110this.getConfig = function(){
1111return jsonConfig;
1112}
1113this._globalSetConfig = function(key, value, type, modName){
1114if(_api.type(configStorage['global']) === undefined) {
1115_api.printErrorMsg("JwTplJsLib._globalSetConfig(key, value, type, modName) - there is no global part of configStorage. fatal error");
1116return false;
1117}
1118if(_api.type(configStorage['app']) === undefined) {
1119_api.printErrorMsg("JwTplJsLib._globalSetConfig(key, value, type, modName) - there is no app part of configStorage. fatal error");
1120return false;
1121}
1122if(_api.type(configStorage['mod']) === undefined) {
1123_api.printErrorMsg("JwTplJsLib._globalSetConfig(key, value, type, modName) - there is no mod part of configStorage. fatal error");
1124return false;
1125}
1126if(_api.type(type) === undefined && _api.type(configStorage['global'][key]) !== undefined){
1127_api.printErrorMsg("JwTplJsLib._globalSetConfig(key, value, type, modName) - configStorage[global][" + key + "] is already exists and cannot be overriden");
1128return false;
1129}
1130if(type === 'app' && _api.type(configStorage['app'][key]) !== undefined){
1131_api.printErrorMsg("JwTplJsLib._globalSetConfig(key, value, type, modName) - configStorage[app][" + key + "] is already exists and cannot be overriden");
1132return false;
1133}
1134if(_api.type(configStorage['mod'][key]) !== undefined){
1135_api.printErrorMsg("JwTplJsLib._globalSetConfig(key, value, type, modName) - configStorage[mod][" + key + "] is already exists and cannot be overriden");
1136return false;
1137}
1138if(_api.isNull(key) === true){
1139_api.printErrorMsg("JwTplJsLib._globalSetConfig(key, value, type, modName) - key is undefined");
1140return false;
1141}
1142if(_api.isString(key) === false){
1143_api.printErrorMsg("JwTplJsLib._globalSetConfig(key, value, type, modName) - key must be not empty string");
1144return false;
1145}
1146if(_api.isNull(value) === true){
1147_api.printErrorMsg("JwTplJsLib._globalSetConfig(key, value, type, modName) - value is undefined");
1148return false;
1149} else if(typeof value === 'object' || typeof value === 'boolean' || typeof value === 'function' || typeof value === 'date' || _api.isJson(value) === true){
1150_api.printErrorMsg("JwTplJsLib._globalSetConfig(key, value, type, modName) - value must be integer or string");
1151return false;
1152} else {
1153if(_api.type(value) === 'String' && value.length == 0){
1154_api.printErrorMsg("JwTplJsLib._globalSetConfig(key, value, type, modName) - value must be not empty string");
1155return false;
1156}
1157}
1158if( _api.type(type) !== undefined && type == 'mod' && _api.type(modName) === undefined){
1159_api.printErrorMsg("JwTplJsLib._globalSetConfig(key, value, type, modName) - modName must be defined when you set [type=mod] part");
1160return false;
1161} else if( _api.type(type) !== undefined && type == 'mod' && _api.isString(modName) === false) {
1162_api.printErrorMsg("JwTplJsLib._globalSetConfig(key, value, type, modName) - modName must must be not empty string");
1163return false;
1164}
1165if(_api.type(type) === undefined){
1166configStorage['global'][key] = value;
1167} else if(type === 'app') {
1168configStorage['app'][key] = value;
1169} else if (type === 'mod') {
1170var modObj = new Object();
1171try {
1172Object.defineProperty(modObj, key, { value : value });
1173Object.defineProperty(configStorage['mod'], modName, { value: modObj });
1174} catch(e){
1175_api.printErrorMsg("JwTplJsLib._globalSetConfig(key, value, type, modName) - there is no type = configStorage[" + modName + "][" + key + "]. app, mod allowed");
1176return false;
1177}
1178} else {
1179_api.printErrorMsg("JwTplJsLib._globalSetConfig(key, value, type, modName) - there is no type = [" + type + "]. app, mod allowed");
1180return false;
1181}
1182return true;
1183}
1184this._globalGetConfig = function (){
1185return configStorage;
1186}
1187var _globalToggleAccordion = function(item, toggleElement){
1188if(_api.hasClass(item, 'jwtpl-gc-expanded') === true){
1189_api.hide(toggleElement);
1190_api.removeClass(item, 'jwtpl-gc-expanded');
1191item.setAttribute('aria-expanded', 'false');
1192} else {
1193_api.addClass(toggleElement, 'fadeIn');
1194_api.show(toggleElement);
1195_api.addClass(item, 'jwtpl-gc-expanded');
1196item.setAttribute('aria-expanded', 'true');
1197}
1198};
1199var _globalBindActionListener = function(ctx){
1200var markers;
1201if(_api.type(ctx) === undefined){
1202if(_api.width() > 600){
1203markers = _api.get('.jwtpl-gc-ettoggle, .jwtpl-gc-etclose, .jwtpl-gc-etaccord, .jwtpl-gc-imgzoom, .jwtpl-gc-tablist, .jwtpl-gc-ethref, .jwtpl-gc-etexpand');
1204} else {
1205markers = _api.get('.jwtpl-gc-ettoggle, .jwtpl-gc-etclose, .jwtpl-gc-etaccord, .jwtpl-gc-tablist, .jwtpl-gc-ethref, .jwtpl-gc-etexpand');
1206}
1207} else {
1208if(_api.width() > 600){
1209markers = ctx.querySelectorAll('.jwtpl-gc-ettoggle, .jwtpl-gc-etclose, .jwtpl-gc-etaccord, .jwtpl-gc-imgzoom, .jwtpl-gc-tablist, .jwtpl-gc-ethref, .jwtpl-gc-etexpand');
1210} else {
1211markers = ctx.querySelectorAll('.jwtpl-gc-ettoggle, .jwtpl-gc-etclose, .jwtpl-gc-etaccord, .jwtpl-gc-tablist, .jwtpl-gc-ethref, .jwtpl-gc-etexpand');
1212}
1213}
1214if(markers.length > 0){
1215_api.each(markers, function(item, index){
1216if(_api.hasClass(item, 'jwtpl-gc-ettoggle') === true){
1217var toggleElement = item.nextElementSibling;
1218if(_api.type(toggleElement) === undefined){
1219_api.printErrorMsg(".bindActionListener() - toggleElement is undefined. must be a next sibling immediate after the toggle action trigger");
1220_api.printElement(toggleElement);
1221return false;
1222} else if(_api.hasClass(toggleElement, 'jwtpl-gc-box') === false){
1223_api.printErrorMsg("_globalBindActionListener - toggleElement must have css class - jwtpl-gc-box:");
1224_api.printElement(toggleElement);
1225return false;
1226}
1227_api.event(item, 'click', function(e){
1228var group = toggleElement.classList;
1229for(var i=0; i<group.length; i++){
1230if(group[i].indexOf('jwtpl-gc-etgroup') !== -1){
1231group = group[i];
1232break;
1233}
1234}
1235if(_api.isString(group) === false) {
1236_api.printErrorMsg("_globalBindActionListener - toggleElement must have event group - e.g. jwtpl-gc-etgroupnav:");
1237_api.printElement(toggleElement);
1238return false;
1239}
1240var eventGroup = _api.get('.' + group + '.fadeIn', true);
1241_api.each(eventGroup, function(item, index){
1242if(item !== toggleElement){
1243_api.removeClass(item, 'fadeIn');
1244_api.hide(item);
1245}
1246});
1247if(_api.hasClass(item, 'jwtpl-gc-ettoggletop') === true){
1248setTimeout(function(){
1249toggleElement.style.top = "-" + (toggleElement.scrollHeight + 10) + "px";
1250},100);
1251}
1252if(_api.hasClass(toggleElement, 'fadeIn') === true) {
1253_api.removeClass(toggleElement, 'fadeIn');
1254_api.hide(toggleElement);
1255} else {
1256_api.addClass(toggleElement, 'fadeIn');
1257_api.show(toggleElement);
1258}
1259});
1260}
1261if(_api.hasClass(item, 'jwtpl-gc-ethref') === true){
1262var
1263dataHref,
1264dataTarget;
1265for(var i=0; i<item.attributes.length; i++){
1266var attr = item.attributes[i].name;
1267if(attr.substring(attr.length - 7, attr.length) === '-ethref'){
1268if(item.hasAttribute(item.attributes[i].name) === true){
1269dataHref = item.getAttribute(item.attributes[i].name);
1270}
1271}
1272if(attr.substring(attr.length - 13, attr.length) === '-ethreftarget'){
1273if(item.hasAttribute(item.attributes[i].name) === true){
1274dataTarget = item.getAttribute(item.attributes[i].name);
1275}
1276}
1277}
1278if(_api.type(dataHref) === "String" && (dataHref.substring(0, 7) === 'http://' || dataHref.substring(0, 8) === 'https://')){
1279_api.event(item, 'click', function(e){
1280if(_api.type(dataTarget) === undefined){
1281window.open(dataHref, "_self");
1282} else {
1283window.open(dataHref, dataTarget);
1284}
1285});
1286}
1287}
1288if(_api.hasClass(item, 'jwtpl-gc-etclose') === true){
1289var parentWindow = item.parentElement;
1290if(_api.type(parentWindow) === undefined){
1291_api.printErrorMsg("_globalBindActionListener() - parent window is undefined. must be a parent element of closing action trigger:");
1292_api.printElement(parentWindow);
1293return false;
1294}
1295_api.event(item, 'click', function(e){
1296_api.hide(parentWindow);
1297return false;
1298});
1299}
1300if(_api.hasClass(item, 'jwtpl-gc-etexpand') === true){
1301var
1302specialBehavior = false;
1303parent = item.parentElement,
1304toggleElement = item.nextElementSibling,
1305liquidStates = _api.getLcItem(liquidAdStorageName);
1306if(_api.type(parent) === undefined){
1307_api.printErrorMsg("_globalBindActionListener - parentElement is undefined. must be immediate parent of action trigger");
1308_api.printElement(toggleElement);
1309return false;
1310} else if(_api.type(toggleElement) === undefined){
1311_api.printErrorMsg("_globalBindActionListener - toggleElement is undefined. must be a next sibling immediate after the toggle action trigger");
1312_api.printElement(toggleElement);
1313return false;
1314} else if(_api.hasClass(toggleElement, 'jwtpl-gc-box') === false){
1315_api.printErrorMsg("_globalBindActionListener - toggleElement must have css class - jwtpl-gc-box:");
1316_api.printElement(toggleElement);
1317return false;
1318}
1319if(liquidStates !== false){
1320var cssClassList = parent.classList;
1321for(var i=0; i<cssClassList.length; i++){
1322if(liquidStates.indexOf(cssClassList[i]) !== -1){
1323specialBehavior = true;
1324}
1325}
1326}
1327if(specialBehavior === false){
1328if(toggleElement.children < 1){
1329_api.printErrorMsg("_globalBindActionListener - toggleElement must have at least one childNode to be expand:");
1330_api.printElement(toggleElement);
1331return false;
1332}
1333if(toggleElement.children.length > 0){
1334_api.each(toggleElement.children, function(child,index){
1335if(index === 0){
1336_api.addClass(child, 'jwtpl-gc-halfopen');
1337// var bottomoverlay =
1338// document.createElement('div');
1339// bottomoverlay.setAttribute('class',
1340// 'jwtpl-gc-bottomoverlay');
1341// child.appendChild(bottomoverlay);
1342} else {
1343_api.hide(child);
1344}
1345});
1346}
1347_api.event(item, 'click', function(e){
1348if(_api.hasClass(item, 'jwtpl-gc-expanded') === true){
1349_api.removeClass(item, 'jwtpl-gc-expanded');
1350_api.removeClass(toggleElement, 'jwtpl-gc-expanded');
1351_api.each(toggleElement.children, function(child,index){
1352if(index === 0){
1353_api.addClass(child, 'jwtpl-gc-halfopen');
1354_api.removeClass(child, 'fadeIn');
1355} else {
1356_api.removeClass(child, 'fadeIn');
1357_api.hide(child);
1358}
1359});
1360} else {
1361_api.addClass(item, 'jwtpl-gc-expanded');
1362_api.addClass(toggleElement, 'jwtpl-gc-expanded');
1363_api.each(toggleElement.children, function(child,index){
1364if(index === 0){
1365_api.removeClass(child, 'jwtpl-gc-halfopen');
1366_api.addClass(child, 'fadeIn');
1367} else {
1368_api.addClass(child, 'fadeIn');
1369_api.show(child);
1370}
1371});
1372}
1373});
1374} else {
1375_api.addClass(item, 'jwtpl-gc-specialbehavior');
1376_api.style(parent, 'pointer-events', 'none');
1377}
1378}
1379if(_api.hasClass(item, 'jwtpl-gc-etaccord') === true){
1380var toggleElement = item.nextElementSibling;
1381if(_api.type(toggleElement) === undefined){
1382_api.printErrorMsg("_globalBindActionListener - toggleElement is undefined. must be a next sibling immediate after the toggle action trigger");
1383_api.printElement(toggleElement);
1384return false;
1385} else if(_api.hasClass(toggleElement, 'jwtpl-gc-box') === false){
1386_api.printErrorMsg("_globalBindActionListener - toggleElement must have css class - jwtpl-gc-box:");
1387_api.printElement(toggleElement);
1388return false;
1389}
1390_api.event(item, 'click', function(e){
1391_globalToggleAccordion(item, toggleElement);
1392});
1393_api.event(item, 'keydown', function(e){
1394if(e.key === 'Enter' || e.key === ' '){
1395e.preventDefault();
1396_globalToggleAccordion(item, toggleElement);
1397}
1398});
1399}
1400if(_api.hasClass(item, 'jwtpl-gc-imgzoom') === true){
1401_api.event(item, 'click', function(e){
1402if(_api.hasClass(item, 'scale') === true){
1403_api.removeClass(item, 'scale');
1404} else {
1405_api.addClass(item, 'scale');
1406}
1407});
1408}
1409if(_api.hasClass(item, 'jwtpl-gc-tablist') === true){
1410var tabs = item.getElementsByClassName('jwtpl-gc-tab');
1411if(tabs.length < 2){
1412_api.printErrorMsg("_globalBindActionListener- tab system must have at least 2 tabs");
1413_api.printElement(item);
1414return false;
1415}
1416_api.each(tabs, function(tab, index){
1417var
1418classMatch = null,
1419dataTarget;
1420for(var i=0; i<tab.attributes.length; i++){
1421classMatch = /data-jwtpl-(.*?)-ettabsrc/.exec(tab.attributes[i].name);
1422if(classMatch != null && classMatch.length > 1){
1423dataTarget = tab.attributes[i].value;
1424}
1425}
1426if(classMatch == null){
1427_api.printErrorMsg("_globalBindActionListener - tab element has no data-jwtpl-*-ettabsrc attribute:");
1428_api.printElement(tab);
1429return false;
1430} else {
1431if(_api.type(dataTarget) !== undefined){
1432var tabWindow = _api.get('.' + dataTarget);
1433if(tabWindow.length > 0){
1434_api.event(tab, 'click', function(e){
1435if(_api.hasClass(tab, 'jwtpl-gc-active0') === true){
1436_api.each(tabs, function(tab, index){
1437var
1438targetMatch = null,
1439targetData;
1440for(var i=0; i<tab.attributes.length; i++){
1441targetMatch = /data-jwtpl-(.*?)-ettabsrc/.exec(tab.attributes[i].name);
1442if(targetMatch != null && targetMatch.length > 1){
1443targetData = tab.attributes[i].value;
1444}
1445}
1446if(targetMatch == null){
1447_api.printErrorMsg("_globalBindActionListener - tab element has no data-jwtpl-*-ettabsrc attribute:");
1448_api.printElement(tab);
1449return false;
1450} else {
1451var closeTab = _api.get('.' + targetData);
1452if(closeTab.length > 0){
1453_api.hide(closeTab[0]);
1454_api.removeClass(tab, 'jwtpl-gc-active1');
1455_api.addClass(tab, 'jwtpl-gc-active0');
1456}
1457}
1458});
1459var
1460actionMatch = null,
1461actionTargetData;
1462for(var i=0; i<tab.attributes.length; i++){
1463actionMatch = /data-jwtpl-(.*?)-ettab(show|hide)/.exec(tab.attributes[i].name);
1464if(actionMatch != null && actionMatch.length > 1){
1465actionTargetData = actionMatch;
1466actionTargetData.push(tab.attributes[i].value);
1467}
1468}
1469if(_api.type(actionTargetData) !== undefined && actionTargetData.length == 4 && _api.isString(actionTargetData[3]) !== false){
1470var
1471selector = '',
1472action = actionTargetData[2],
1473actionData = actionTargetData[3];
1474actionData = actionData.split(',');
1475_api.each(actionData, function(item, index){
1476selector += '.' + _api.trim(item);
1477if(index < (actionData.length - 1)) {
1478selector += ',';
1479}
1480});
1481if(_api.isString(selector) !== false){
1482actionData = _api.get(selector);
1483if(actionData.length > 0){
1484_api.each(actionData, function(item){
1485if(action === 'hide'){
1486_api.hide(item);
1487} else if(action === 'show') {
1488_api.show(item);
1489} else {}
1490});
1491}
1492}
1493}
1494_api.removeClass(tab, 'jwtpl-gc-active0');
1495_api.addClass(tab, 'jwtpl-gc-active1');
1496_api.addClass(tabWindow[0], 'fadeIn');
1497_api.show(tabWindow[0]);
1498}
1499});
1500} else {
1501_globalActivateMod(tab, dataTarget);
1502}
1503}
1504}
1505});
1506}
1507});
1508}
1509return true;
1510}
1511var _globalInvokeModInit = function(modName){
1512if(_api.isString(modName) === true){
1513switch(modName){
1514case 'hiliadpr': hiliadprInit();
1515}
1516} else {
1517_api.printErrorMsg("._globalInvokeModInit() - modName must be an nor empty string");
1518return false;
1519}
1520}
1521var _globalActivateMod = function(trigger, modName) {
1522if(_api.isNull(trigger) === true){
1523_api.printErrorMsg("._globalActivateMod(trigger, modName) - trigger must be defined");
1524return false;
1525}
1526if(_api.isString(modName) === false){
1527_api.printErrorMsg("._globalActivateMod(trigger, modName) - modName must be an nor empty string");
1528return false;
1529}
1530var
1531loadContent = false,
1532modNameClass = modName,
1533modName = modName.split('-');
1534if(modName.length > 1){
1535modName = modName[1];
1536_api.event(trigger, 'mousedown', function(e){
1537if(loadContent === false){
1538if(_api.type(configStorage['mod'][modName]) !== undefined && _api.isString(configStorage['mod'][modName]['html']) > 0){
1539var
1540regexResult,
1541regexStr = 'data-jwtpl-' + modName + '-jsEmbedTarget="(.*?)"',
1542regex = new RegExp(regexStr),
1543modData = configStorage['mod'][modName]['html'];
1544regexResult = regex.exec(modData);
1545if(_api.type(regexResult) !== undefined && regexResult.length > 1){
1546regexResult = regexResult[1];
1547var domRef = _api.get('.' + regexResult);
1548if(domRef.length == 0){
1549_api.printErrorMsg("._globalActivateMod(trigger, modName) - target reference for content injection undefined");
1550return false;
1551}
1552loadContent = true;
1553domRef[0].insertAdjacentHTML('beforeend', modData);
1554var injectedDoc = document.querySelector('.' + modNameClass);
1555_globalBindActionListener(injectedDoc);
1556_globalInvokeModInit(modName);
1557if(_api.type(trigger.parentElement) !== undefined && _api.type(trigger.parentElement.parentElement) !== undefined){
1558_globalBindActionListener(trigger.parentElement.parentElement);
1559}
1560} else {
1561_api.printErrorMsg("._globalActivateMod(trigger, modName) - mod=[" + modName + "] dont contain attribute 'data-jwtpl-[" + modName + "]-jsEmbedTarget");
1562return false;
1563}
1564} else {
1565_api.printErrorMsg("._globalActivateMod(trigger, modName) - no mod data found or empty in js config");
1566return false;
1567}
1568}
1569});
1570} else {
1571_api.printErrorMsg("._globalActivateMod(trigger, modName) - modName do not match to pattern jwtpl-[modName]-* ");
1572return false;
1573}
1574return true;
1575}
1576var _globalLoadPartnerTracking = function(){
1577var scripts = document.querySelectorAll('.jwtpl-jmpt-partnerTracking');
1578for(var i = 0; i < scripts.length; i++){
1579scripts[i].insertAdjacentHTML('afterend', scripts[i].text);
1580scripts[i].parentElement.removeChild(scripts[i])
1581}
1582}
1583var _globalInitJobDataDescrExpander = function() {
1584let trigger = _api.get('.jwtpl-gc-viewData');
1585if(trigger.length > 0) {
1586_api.each(trigger, function(it){
1587let
1588itemDescr = it.querySelectorAll('.jwtpl-sysHili-itemDescr'),
1589quickView = it.querySelectorAll('.jwtpl-gc-viewDataInner');
1590if(itemDescr.length > 0){
1591_api.event(it, 'click', function(e){
1592if(_api.hasClass(itemDescr[0], 'jwtpl-gc-hidden1') === true) {
1593_api.removeClass(itemDescr[0], 'jwtpl-gc-hidden1');
1594_api.addClass(itemDescr[0], 'fadeIn');
1595_api.addClass(it, 'jwtpl-gc-expanded');
1596} else {
1597_api.addClass(itemDescr[0], 'jwtpl-gc-hidden1');
1598_api.removeClass(itemDescr[0], 'fadeIn');
1599_api.removeClass(it, 'jwtpl-gc-expanded');
1600}
1601});
1602}
1603});
1604}
1605}
1606var _globalInitOrientationClass = function() {
1607let body = _api.get('body');
1608if(body.length > 0) {
1609if(_api.isMobile() === true) {
1610_api.addClass(body[0], 'jwtpl-sys-bodyAppDvM1');
1611} else {
1612_api.addClass(body[0], 'jwtpl-sys-bodyAppDvM0');
1613}
1614if(window.orientation === 0 || window.orientation === 180) {
1615_api.addClass(body[0], 'jwtpl-sys-bodyAppDvOP');
1616}
1617if(window.orientation === 90 || window.orientation === -90) {
1618_api.addClass(body[0], 'jwtpl-sys-bodyAppDvOL');
1619}
1620window.addEventListener("orientationchange", function(event) {
1621if(event.target.screen.orientation.type === 'landscape-primary') {
1622_api.addClass(body[0], 'jwtpl-sys-bodyAppDvOL');
1623_api.removeClass(body[0], 'jwtpl-sys-bodyAppDvOP');
1624}
1625if(event.target.screen.orientation.type === 'portrait-primary') {
1626_api.addClass(body[0], 'jwtpl-sys-bodyAppDvOP');
1627_api.removeClass(body[0], 'jwtpl-sys-bodyAppDvOL');
1628}
1629});
1630}
1631}
1632this._globalCheckIe = function() {
1633if(window.navigator.userAgent.indexOf("Trident") > 0 || window.navigator.userAgent.indexOf("MSIE") === true){
1634if(_api !== false) {
1635let
1636body = _api.get('body'),
1637message = 'Microsoft hat die Weiterentwicklung des von Ihnen verwendeten <strong>Internet Explorers</strong> eingestellt. In unserem auf Sicherheit und Schnelligkeit optimierten Stellenmarkt können wir diesen Browser daher leider nicht mehr unterstützen. Wir empfehlen Ihnen dringend einen aktuellen sicheren Browser zu nutzen.';
1638if(body.length > 0 && _api.hasClass(body[0], 'jwtpl-sys-bodyAppMmNg') === true) {
1639body[0].insertAdjacentHTML('afterbegin',
1640'<div style="position: fixed; background-color: #444; background-color: rgba(0,0,0,.7); color: #fff; width: 100%; height: 2000px; height: 100vw; z-index: 999999;">' +
1641'<p style="width: 60%; background-color: #fff; color: #444; margin: 200px auto; padding: 30px; text-align: center; font-size: 22px;">' +
1642'<i style="display: block; font-size: 60px; margin-bottom: 20px; color: #dc3545;" class="fa fa-exclamation-triangle" aria-hidden="true"></i>' + message +'</p></div>');
1643}
1644}
1645}
1646}
1647this._globalSetAppGuiTagAk = function(ak) {
1648if(typeof ak === 'string'){
1649appGuiTagAk = ak.trim().toLowerCase();
1650}
1651}
1652var _globalGetAppGuiTagAk = function(){
1653return appGuiTagAk;
1654}
1655var _globalInit = function(url, baseName, additional = '') {
1656if ((typeof url === 'string') && (urlString == '') && (url != '')) {
1657urlString = url;
1658}
1659if(_api !== false){
1660let hasInitRun = _api.init(baseName, url);
1661if(_api.getAppInfo('version') === 'v9'){
1662let bn = baseName.split('_');
1663if(bn.length == 2){
1664_api.runMatchedFuncs('jwTplJsLibObjectCallMe_' + bn[1] + '_');
1665}
1666}
1667if(_api.isStringRaw(additional) === true) {
1668additional = additional.toLowerCase();
1669additional = _api.trim(additional);
1670additional = additional + ',';
1671} else {
1672additional = ',';
1673}
1674if(hasInitRun === true) {
1675}
1676if(_api._consent() !== false){
1677if (_api._consent().getAppVersion() >= 3) {
1678if(additional.indexOf('cs=noinit,') === -1) {
1679_api._consent().init();
1680}
1681} else {
1682if(additional.indexOf('cs=noinit,') === -1) {
1683_api._consent().init();
1684}
1685}
1686if(additional.indexOf('cs=clear,') !== -1) {
1687if(_api.isStringNotEmpty(_api._consent().getConsentCookieName()) === true){
1688_api.deleteCookie(_api._consent().getConsentCookieName());
1689}
1690}
1691}
1692if(_api._noli() !== false && _api.isString(url) !== false){
1693if(_api._consent().checkConsent(2) === false){
1694var stars = document.querySelectorAll("[class*='jwtpl-gc-noliitem']");
1695for(var i = 0; i < stars.length; i++){
1696stars[i].addEventListener('click', cookieEvent);
1697}
1698function cookieEvent(ev){
1699ev.preventDefault();
1700ev.stopPropagation();
1701_api._consent().getConsent(2);
1702}
1703}
1704_api._consent().getConsent(2, function(){
1705_api._noli().initNoli();
1706_api._noli().refreshNoli();
1707var stars = document.querySelectorAll("[class*='jwtpl-gc-noliitem']")
1708for(var i = 0; i < stars.length; i++){
1709stars[i].removeEventListener('click', cookieEvent);
1710}
1711}, '')
1712}
1713if(_api._trid() !== false){
1714_api._consent().getConsent(1, _api._trid().initTrid);
1715}
1716_api._consent().getConsent(1, _globalLoadPartnerTracking);
1717_globalInitOrientationClass();
1718}
1719_globalSetWindowName();
1720_globalBindActionListener();
1721_globalInitJobDataDescrExpander();
1722// window.jwconsent = _globalCookieConsent();
1723}
1724var _globalReInit = function() {
1725if(_api !== false){
1726_api.reInit();
1727}
1728}
1729var _globalInitAppJm = function () {}
1730var jm_pts43ToggleBoxOne = function () {
1731/** pts4.1 **/
1732var boxOneTrigger = _api.get('.jwtpl-jmpt-toggleBoxOneTitle');
1733if (boxOneTrigger.length > 0) {
1734var toggleArea = _api.get('.jwtpl-remo-block, .jwtpl-fite-block');
1735_api.event(boxOneTrigger[0], 'click', function (e) {
1736e.preventDefault();
1737_api.each(toggleArea, function (item) {
1738if (_api.type(item.style) !== undefined && item.style.display !== undefined) {
1739if (item.style.display === "" || item.style.display === "none" || item.style.display === "invisible") {
1740_api.show(item);
1741_api.addClass(boxOneTrigger[0], 'expanded');
1742} else {
1743_api.hide(item);
1744_api.removeClass(boxOneTrigger[0], 'expanded');
1745}
1746}
1747});
1748});
1749}
1750}
1751var jm_pts4ChangeNavigationOnScroll = function () {
1752var
1753trigger = false,
1754oboBlock = _api.get('.jwtpl-obo-block'),
1755jobadNavigation = _api.get('.jwtpl-jobad-navigation');
1756if (oboBlock.length > 0 && jobadNavigation.length > 0) {
1757window.addEventListener('scroll', function (e) {
1758if (window.scrollY > 600 && trigger === false) {
1759trigger = true;
1760_api.addClass(jobadNavigation[0], 'sticky-nav');
1761_api.addClass(oboBlock[0], 'sticky-nav');
1762} else if (window.scrollY < 600 && trigger === true) {
1763trigger = false;
1764_api.removeClass(jobadNavigation[0], 'sticky-nav');
1765_api.removeClass(oboBlock[0], 'sticky-nav');
1766}
1767});
1768}
1769}
1770var jm_pts4JustifySebo = function () {
1771var
1772sebo = _api.get('.jwtpl-sebo-block'),
1773seboBgImg = _api.get('.jwdrf-header-banner'),
1774width = width = window.innerWidth || document.documentElement.clientWidth || document.body.clientWidth;
1775if (sebo.length > 0 && seboBgImg.length > 0) {
1776var
1777imgInitHeight = _api.parseInt(_api.getCssProps(seboBgImg[0]).height),
1778seboHeight = _api.parseInt(_api.getCssProps(sebo[0]).height),
1779imgHeight = _api.parseInt(_api.getCssProps(seboBgImg[0]).height);
1780if (imgInitHeight !== false && seboHeight !== false && imgHeight !== false) {
1781if (width < 1000) {
1782seboBgImg[0].style.height = (seboHeight + 150) + 'px';
1783}
1784if (width < 769) {
1785seboBgImg[0].style.height = (seboHeight + 70) + 'px';
1786} else {
1787seboBgImg[0].style.height = imgInitHeight + 'px';
1788}
1789window.addEventListener('resize', function (e) {
1790var
1791width = width = window.innerWidth || document.documentElement.clientWidth || document.body.clientWidth;
1792seboHeight = _api.parseInt(_api.getCssProps(sebo[0]).height),
1793imgHeight = _api.parseInt(_api.getCssProps(seboBgImg[0]).height);
1794if (seboHeight !== false && imgHeight !== false) {
1795if (width < 1000) {
1796seboBgImg[0].style.height = (seboHeight + 150) + 'px';
1797}
1798if (width < 769) {
1799seboBgImg[0].style.height = (seboHeight + 70) + 'px';
1800} else {
1801seboBgImg[0].style.height = imgInitHeight + 'px';
1802}
1803}
1804});
1805}
1806}
1807}
1808var jm_pts4loadTracking1 = function(){
1809function createTrackingScript(script){
1810var scriptTag = document.createElement('script');
1811var firstScriptTag = document.getElementsByTagName('script')[0];
1812scriptTag.text = script;
1813firstScriptTag.parentNode.insertBefore(scriptTag, firstScriptTag);
1814}
1815var optionsLevel1 = {
1816url: _api.getProjectPath() + "resource/js/partner1.js",
1817method: 'get',
1818callback: createTrackingScript
1819}
1820_api.ajax(optionsLevel1);
1821}
1822var jm_pts4loadTracking2 = function(){
1823function createTrackingScript(script){
1824var scriptTag = document.createElement('script');
1825var firstScriptTag = document.getElementsByTagName('script')[0];
1826scriptTag.text = script;
1827firstScriptTag.parentNode.insertBefore(scriptTag, firstScriptTag);
1828}
1829var optionsLevel2 = {
1830url: _api.getProjectPath() + "resource/js/partner2.js",
1831method: 'get',
1832callback: createTrackingScript
1833}
1834_api.ajax(optionsLevel2);
1835}
1836var jm_pts4loadTracking4 = function(){
1837function createTrackingScript(script){
1838var scriptTag = document.createElement('script');
1839var firstScriptTag = document.getElementsByTagName('script')[0];
1840scriptTag.text = script;
1841firstScriptTag.parentNode.insertBefore(scriptTag, firstScriptTag);
1842}
1843var optionsLevel4 = {
1844url: _api.getProjectPath() + "resource/js/partner4.js",
1845method: 'get',
1846callback: createTrackingScript
1847}
1848_api.ajax(optionsLevel4);
1849}
1850var jm_pts4InitBackLink = function() {
1851if(_api.isMobile() === true) {
1852let
1853body = _api.get('body', true),
1854backLink = _api.get('.jwdrf-header-backLink');
1855if(backLink.length > 0) {
1856if(body.length > 0 && _api.hasClass(body[0], 'jwtpl-sys-bodyPtViewer') === true) {
1857_api.removeClass(backLink[0], 'jwtpl-gc-hidden1');
1858_api.event(backLink[0], 'click', function(e){
1859if(_api.hasClass(body[0], 'jwtpl-gc-specialstate') === true) {
1860window.location = _api.getProjectPath();
1861} else {
1862_api.addClass(body[0], 'jwtpl-gc-specialstate');
1863let searchLink = _api.get('.jwdrf-header-searchLink');
1864if(searchLink.length > 0) {
1865_api.removeClass(searchLink[0], 'jwtpl-gc-hidden1');
1866_api.event(searchLink[0], 'click', function(e){
1867window.scrollTo({
1868top: 0,
1869left: 0,
1870behavior: 'smooth'
1871});
1872});
1873}
1874}
1875});
1876} else if(body.length > 0 && (_api.hasClass(body[0], 'jwtpl-sys-bodyPtResult') === true || _api.hasClass(body[0], 'jwtpl-sys-bodyPtSeo') === true)) {
1877_api.removeClass(backLink[0], 'jwtpl-gc-hidden1');
1878_api.event(backLink[0], 'click', function(e){
1879window.location = _api.getProjectPath();
1880});
1881}
1882}
1883}
1884}
1885var jm_pts4InitSearchLink = function() {
1886if(_api.isMobile() === true) {
1887let
1888body = _api.get('body', true),
1889searchLink = _api.get('.jwdrf-header-searchLink');
1890if(searchLink.length > 0) {
1891if(body.length > 0 && (_api.hasClass(body[0], 'jwtpl-sys-bodyPtResult') === true || _api.hasClass(body[0], 'jwtpl-sys-bodyPtSeo') === true)) {
1892_api.removeClass(searchLink[0], 'jwtpl-gc-hidden1');
1893_api.event(searchLink[0], 'click', function(e){
1894window.scrollTo({
1895top: 0,
1896left: 0,
1897behavior: 'smooth'
1898});
1899});
1900}
1901}
1902}
1903}
1904var jm_pts4InitLazyLoad = function() {
1905let observer = new IntersectionObserver(function(entries, self) {
1906entries.forEach(entry => {
1907if(entry.isIntersecting) {
1908if(_api.type(entry.target.dataset) !== undefined && _api.type(entry.target.dataset.jwtplSysimgLazysrc) !== undefined) {
1909entry.target.src = entry.target.dataset.jwtplSysimgLazysrc;
1910self.unobserve(entry.target);
1911}
1912}
1913});
1914});
1915let lazyImg = _api.get('[data-jwtpl-sysImg-lazySrc]');
1916if(lazyImg.length > 0) {
1917_api.each(lazyImg, function(img){
1918observer.observe(img);
1919});
1920}
1921}
1922var jm_pts4SetFooterColor = function() {
1923if(_api.getAppGenAsInt() < 2){
1924if(_api.get('[data-jwtpl-sys-gui*="mn:melili"][data-jwtpl-sys-gui*="id:t2"].jwtpl-melili-inversMenue1').length == 1){
1925let copyright = _api.get('.jwdrf-footer-copyright');
1926if(copyright.length > 0) {
1927_api.style(copyright[0], 'color', '#ffffff');
1928}
1929}
1930}
1931}
1932var jm_pts4Init = function () {
1933if(_api._consent() !== false){
1934_api._consent().getConsent(1, jm_pts4loadTracking1);
1935_api._consent().getConsentNoWarning(2, jm_pts4loadTracking2);
1936_api._consent().getConsentNoWarning(4, jm_pts4loadTracking4);
1937}
1938jm_pts4JustifySebo();
1939jm_pts4InitBackLink();
1940jm_pts4InitSearchLink();
1941jm_pts4SetFooterColor();
1942}
1943'use strict';
1944class Aiss {
1945constructor () {
1946this.modName = 'Aiss';
1947if (Aiss._instance){
1948_api.printErrorMsg(' - > class [' + this.modName + '] is a singleton. no multiple instances possible');
1949return false;
1950}
1951Aiss._instance = this;
1952this.processRequest();
1953}
1954getDataSet() {
1955let
1956dataset = {},
1957aissBlock = _api.get('.jwtpl-aiss-block'),
1958aissContent = _api.get('.jwtpl-aiss-content');
1959if(aissBlock.length > 0 && aissContent.length > 0){
1960if(aissBlock[0].hasAttribute('data-jwtpl-aiss-jumpTo') === true){
1961dataset['jumpTo'] = aissBlock[0].getAttribute('data-jwtpl-aiss-jumpTo');
1962}
1963if(aissBlock[0].hasAttribute('data-jwtpl-aiss-searchUrl') === true){
1964dataset['searchUrl'] = aissBlock[0].getAttribute('data-jwtpl-aiss-searchUrl');
1965}
1966if(aissBlock[0].hasAttribute('data-jwtpl-aiss-seourl') === true){
1967dataset['seoUrl'] = aissBlock[0].getAttribute('data-jwtpl-aiss-seourl');
1968}
1969if(aissBlock[0].hasAttribute('data-jwtpl-aiss-axhost') === true){
1970dataset['axHost'] = aissBlock[0].getAttribute('data-jwtpl-aiss-axhost');
1971}
1972if(aissBlock[0].hasAttribute('data-jwtpl-aiss-seoUrlMod') === true){
1973dataset['seoMode'] = aissBlock[0].getAttribute('data-jwtpl-aiss-seoUrlMod');
1974}
1975if(aissBlock[0].hasAttribute('data-jwtpl-aiss-jsjn') === true){
1976dataset['jsjn'] = aissBlock[0].getAttribute('data-jwtpl-aiss-jsjn');
1977}
1978if(aissBlock[0].hasAttribute('data-jwtpl-aiss-jsjo') === true){
1979dataset['jsjo'] = aissBlock[0].getAttribute('data-jwtpl-aiss-jsjo');
1980}
1981if(aissBlock[0].hasAttribute('data-jwtpl-aiss-score') === true){
1982let score = parseFloat(aissBlock[0].getAttribute('data-jwtpl-aiss-score'));
1983dataset['score'] = score;
1984}
1985if(aissBlock[0].hasAttribute('data-jwtpl-aiss-score') === true){
1986let ew = parseInt(aissBlock[0].getAttribute('data-jwtpl-aiss-ew'));
1987dataset['ew'] = ew;
1988}
1989if(aissBlock[0].hasAttribute('data-jwtpl-aiss-count') === true){
1990let count = parseInt(aissBlock[0].getAttribute('data-jwtpl-aiss-count'));
1991dataset['count'] = count;
1992}
1993if(aissBlock[0].hasAttribute('data-jwtpl-aiss-ch') === true){
1994dataset['ch'] = aissBlock[0].getAttribute('data-jwtpl-aiss-ch');
1995}
1996if(aissBlock[0].hasAttribute('data-jwtpl-aiss-version') === true){
1997dataset['vs'] = aissBlock[0].getAttribute('data-jwtpl-aiss-version');
1998if((dataset['vs']==='v1') ||(dataset['vs']==='v2') ){
1999dataset['vs']='v3';
2000}
2001}
2002dataset['container'] = aissContent[0];
2003dataset['block'] = aissBlock[0];
2004if(_api.width() < 769 && aissBlock[0].hasAttribute('data-jwtpl-aiss-mcount') === true){
2005let attr = aissBlock[0].getAttribute('data-jwtpl-aiss-mcount');
2006attr = parseInt(attr);
2007if(_api.isInt(attr) === true){
2008dataset['mcount'] = attr;
2009}
2010}
2011} else {
2012return false;
2013}
2014return dataset;
2015}
2016checkSetup() {
2017let
2018dataset = this.getDataSet();
2019if(dataset !== false){
2020if( (_api.type(dataset['searchUrl']) !== undefined && _api.isString(dataset['searchUrl']) === false) &&
2021(_api.type(dataset['seoUrl']) !== undefined && _api.isString(dataset['seoUrl']) === false)){
2022_api.printErrorMsg(".checkSetup() - data-jwtpl-aiss-searchUrl and data-jwtpl-aiss-seourl undefined or empty");
2023return false;
2024}
2025if(_api.type(dataset['jsjn']) !== undefined && _api.isString(dataset['jsjn']) === false){
2026_api.printErrorMsg(".checkSetup() - data-jwtpl-aiss-jsjn undefined or empty");
2027return false;
2028}
2029if(_api.type(dataset['ch']) !== undefined && _api.isString(dataset['ch']) === false){
2030_api.printErrorMsg(".checkSetup() - data-jwtpl-aiss-ch undefined or empty");
2031return false;
2032}
2033if(_api.type(dataset['score']) !== undefined && _api.isFloat(dataset['score']) === false){
2034_api.printErrorMsg(".checkSetup() - data-jwtpl-aiss-score undefined or empty");
2035return false;
2036}
2037if(_api.type(dataset['count']) !== undefined && _api.isInt(dataset['count']) === false){
2038_api.printErrorMsg(".checkSetup() - data-jwtpl-aiss-count undefined or empty");
2039return false;
2040}
2041if(_api.type(dataset['vs']) !== undefined && _api.isString(dataset['vs']) === false){
2042_api.printErrorMsg(".checkSetup() - data-jwtpl-aiss-version undefined or empty");
2043return false;
2044}
2045if(_api.type(dataset['container']) === undefined){
2046_api.printErrorMsg(".checkSetup() - you must specify html container to write proposal in");
2047return false;
2048}
2049return dataset;
2050} else {
2051return false;
2052}
2053}
2054processRequest() {
2055let dataset = this.checkSetup();
2056if(dataset !== false){
2057let
2058apiUrl,
2059data = {};
2060data["query"] = encodeURIComponent(dataset['jsjn']);
2061data["marketReference"] = dataset['ch'];
2062if(_api.isString(dataset['jsjo']) === true){
2063data["location"] = dataset['jsjo'];
2064}
2065if(dataset['vs'] === 'v1') {
2066apiUrl = 'https://searchgraph.jobware.net/suggest';
2067} else if(dataset['vs'] === 'v2') {
2068apiUrl = 'https://searchgraph.jobware.net/v2/suggest';
2069} else if(dataset['vs'] === 'v3') {
2070if(_api.isRealLocalHost()){
2071apiUrl = 'https://searchgraphv2.jobware.net/suggest?search_string=' + data["query"] + "&channel=" + data["marketReference"];
2072} else {
2073apiUrl = dataset["axHost"] + 'suggest?search_string=' + data["query"] + "&channel=" + data["marketReference"];
2074}
2075if(_api.type(data["location"]) !== undefined && _api.isStringNotEmpty(data["location"]) === true) {
2076apiUrl += '&location=' + data["location"];
2077}
2078}
2079_api.ajax({
2080url : apiUrl,
2081method : dataset['vs'] === 'v3' ? "get": "post",
2082headers : {
2083"content-type" : "application/json"
2084},
2085data : dataset['vs'] !== 'v3' ? JSON.stringify(data) : '',
2086callback : function(response) {
2087let json = _api.jsonParse(response);
2088if(json !== false) {
2089let
2090content = [],
2091proposals = [];
2092if(dataset['vs'] === 'v1' && _api.len(json) > 0 && _api.type(json[0]['suggestions']) !== undefined) {
2093for (let i = 0; i < dataset['count']; i++) {
2094if(_api.type(json[0]['suggestions'][i]) !== undefined) {
2095proposals.push(json[0]['suggestions'][i]);
2096}
2097}
2098_api.each(proposals, function(item, index){
2099let href;
2100if(_api.isString(dataset['seoUrl']) === true){
2101if(_api.isString(dataset['jsjo']) === true){
2102href = dataset['seoUrl'] + item.suggestion + '/' + dataset['jsjo'].toLowerCase();
2103} else {
2104href = dataset['seoUrl'] + item.suggestion;
2105}
2106} else if(_api.isString(dataset['searchUrl']) === true){
2107if(_api.isString(dataset['jsjo']) === true){
2108href = dataset['searchUrl'] + '?jsjn=' + item.suggestion + '&jsjo=' + dataset['jsjo'].toLowerCase();
2109} else {
2110href = dataset['searchUrl'] + '?jsjn=' + item.suggestion;
2111}
2112}
2113if(item.num_results > 0) {
2114let entry = _api.assignTpl({
2115"tag": "a",
2116"tagData": item.suggestion,
2117"tagAttr": {
2118"class": "jwtpl-aiss-link",
2119"href": href
2120}
2121});
2122content.push(entry);
2123}
2124});
2125} else if(dataset['vs'] === 'v2' && _api.len(json['response']) > 0 && _api.type(json['response'][0]['suggestions']) !== undefined) {
2126if(_api.type(json['response'][0]['nearest']) !== undefined && json['response'][0]['nearest'] !== dataset['jsjn'].toLowerCase()) {
2127return false;
2128}
2129for (let i = 0; i < dataset['count']; i++) {
2130if(_api.type(json['response'][0]['suggestions'][i]) !== undefined) {
2131proposals.push(json['response'][0]['suggestions'][i]);
2132}
2133}
2134let
2135toUpperWords = ['fh','php','sap','fi','co','ms','ibm','it','cnc','cad','cam','erp','bta','cta','pta','mta', 'cfo', 'ceo', 'coo'],
2136toLowerWords = ['und','oder','von','zur','zum','der','die','das','im','im'],
2137replaceList = {'c#':'csharp', 'c++': 'cplusplus'};
2138_api.each(proposals, function(item, index, _this){
2139let href;
2140if(item.distance <= dataset['score']){
2141let strSeoLoc = '';
2142if(_api.isString(dataset['jsjo']) === true){
2143strSeoLoc = _this.modifyStrSeoUrl(dataset['jsjo']);
2144}
2145if(_api.isString(dataset['seoUrl']) === true && _api.isString(dataset['seoMode']) === true && dataset['seoMode'] === '1' && strSeoLoc.includes('-') === false){
2146let strSeoUrl = _this.modifyStrSeoUrl(item.suggestion, replaceList);
2147if(_api.isString(dataset['jsjo']) === true){
2148href = dataset['seoUrl'] + strSeoUrl + '/' + strSeoLoc;
2149} else {
2150href = dataset['seoUrl'] + strSeoUrl;
2151}
2152} else if(_api.isString(dataset['searchUrl']) === true){
2153if(_api.isString(dataset['jsjo']) === true){
2154href = dataset['searchUrl'] + '?jsjn=' + item.suggestion + '&jsjo=' + dataset['jsjo'].toLowerCase();
2155} else {
2156href = dataset['searchUrl'] + '?jsjn=' + item.suggestion;
2157}
2158}
2159if(item.num_results > 0) {
2160let modStr = _this.ucWords(item.suggestion, toUpperWords, toLowerWords);
2161let entry = _api.assignTpl({
2162"tag": "a",
2163"tagData": modStr,
2164"tagAttr": {
2165"class": "jwtpl-aiss-link",
2166"href": href
2167}
2168});
2169content.push(entry);
2170}
2171}
2172});
2173} else if(dataset['vs'] === 'v3') {
2174if(json !== false) {
2175let
2176toUpperWords = ['fh','php','sap','fi','co','ms','ibm','it','cnc','cad','cam','erp','bta','cta','pta','mta', 'cfo', 'ceo', 'coo'],
2177toLowerWords = ['und','oder','von','zur','zum','der','die','das','im','im'],
2178replaceList = {'c#':'csharp', 'c++': 'cplusplus'};
2179_api.each(json, function(item, index, _this) {
2180let href;
2181if (item.edge_weight <= dataset['ew']) {
2182let strSeoLoc = '';
2183if (_api.isString(dataset['jsjo']) === true) {
2184strSeoLoc = _this.modifyStrSeoUrl(dataset['jsjo']);
2185}
2186if (_api.isString(dataset['seoUrl']) === true && _api.isString(dataset['seoMode']) === true && dataset['seoMode'] === '1' && strSeoLoc.includes('-') === false) {
2187let strSeoUrl = _this.modifyStrSeoUrl(item.suggestion, replaceList);
2188if (_api.isString(dataset['jsjo']) === true) {
2189href = dataset['seoUrl'] + strSeoUrl + '/' + strSeoLoc;
2190} else {
2191href = dataset['seoUrl'] + strSeoUrl;
2192}
2193} else if (_api.isString(dataset['searchUrl']) === true) {
2194if (_api.isString(dataset['jsjo']) === true) {
2195href = dataset['searchUrl'] + '?jsjn=' + item.suggestion + '&jsjo=' + dataset['jsjo'].toLowerCase();
2196} else {
2197href = dataset['searchUrl'] + '?jsjn=' + item.suggestion;
2198}
2199}
2200if (item.num_results > 0) {
2201let modStr = _this.ucWords(item.suggestion, toUpperWords, toLowerWords);
2202let entry = _api.assignTpl({
2203"tag": "a",
2204"tagData": modStr,
2205"tagAttr": {
2206"class": "jwtpl-aiss-link",
2207"href": href
2208}
2209});
2210content.push(entry);
2211}
2212}
2213});
2214}
2215}
2216if(_api.type(dataset['mcount']) !== undefined){
2217let mcount = dataset['mcount'];
2218if(content.length > mcount && _api.type(content[mcount]) !== undefined && _api.type(content[content.length - 1]) !== undefined) {
2219let
2220visiblePart = content.slice(0,mcount),
2221hiddenPart = content.slice(mcount);
2222visiblePart = visiblePart.join('');
2223if(hiddenPart.length > 0){
2224hiddenPart = hiddenPart.join('');
2225hiddenPart = _api.assignTpl({
2226"tag": "span",
2227"tagData": '<span class="jwtpl-aiss-hiddenItems jwtpl-gc-hidden1">' + hiddenPart + '</span>',
2228"tagAttr": {
2229"class": "jwtpl-aiss-showMore plus"
2230}
2231});
2232} else {
2233hiddenPart = '';
2234}
2235content = visiblePart + hiddenPart;
2236} else {
2237content = content.join('');
2238}
2239} else {
2240content = content.join('');
2241}
2242if(content.length > 0) {
2243dataset['container'].insertAdjacentHTML('afterbegin', content);
2244_api.removeClass(dataset['block'], 'jwtpl-gc-hidden1');
2245if(_api.type(dataset['mcount']) !== undefined){
2246let addtitionalItems = _api.get('.jwtpl-aiss-showMore, .jwtpl-aiss-hiddenItems');
2247if(addtitionalItems.length == 2){
2248_api.event(addtitionalItems[0], 'click', function(e){
2249let that = this;
2250if(_api.hasClass(that,'plus') === true) {
2251_api.removeClass(that,'plus');
2252_api.addClass(that,'minus');
2253} else if(_api.hasClass(that,'minus') === true) {
2254_api.removeClass(that,'minus');
2255_api.addClass(that,'plus');
2256}
2257if(_api.hasClass(addtitionalItems[1],'jwtpl-gc-hidden1') === true) {
2258_api.removeClass(addtitionalItems[1],'jwtpl-gc-hidden1');
2259} else {
2260_api.addClass(addtitionalItems[1],'jwtpl-gc-hidden1');
2261}
2262});
2263}
2264}
2265_api._gui().doColorMe();
2266}
2267} else {
2268_api.printErrorMsg(".processRequest() - cannot parse json from request");
2269return false;
2270}
2271}
2272});
2273} else {
2274_api.printErrorMsg(".processRequest() - cannot send ajax request. dataset corrupted or empty");
2275return false;
2276}
2277}
2278}
2279this.aissGetColorMeInfo = function() {
2280return [ '.jwtpl-aiss-block|desktop|all|base|border-color:bg',
2281'.jwtpl-aiss-link|desktop|all|base|color:hf|background-color:hbg',
2282'.jwtpl-aiss-link|desktop|all|hover|color:af|background-color:abg',
2283'.jwtpl-aiss-block|mobile|all|base|border-color:bg',
2284'.jwtpl-aiss-link|mobile|all|base|color:hf|background-color:hbg',
2285];
2286}
2287var aissInit = function(){
2288const _aiss = new Aiss();
2289Object.freeze(_aiss);
2290}
2291this.ecbGetColorMeInfo = function() {
2292return [ '.jwtpl-ecb-block|desktop|all|base|color:f|background-color:bg',
2293'.jwtpl-ecb-block|mobile|all|base|color:f|background-color:bg'
2294];
2295}
2296var ecbInit = function () {
2297}
2298var fiteOpenActiveCat = function () {
2299var activeCat = _api.get('.jwtpl-fite-selectedFiteCat1');
2300if (activeCat.length > 0) {
2301var childNodes = activeCat[0].children;
2302if (childNodes.length > 0) {
2303var
2304fiteToggle = _api.get('.jwtpl-fite-toggle'),
2305fiteItemList = _api.get('.jwtpl-fite-blockInner'),
2306toggle = childNodes[0],
2307itemList = childNodes[1];
2308if (_api.type(toggle) !== undefined && _api.type(itemList) !== undefined) {
2309if (_api.hasClass(toggle, 'expanded') === false) {
2310_api.addClass(toggle, 'expanded');
2311_api.show(itemList);
2312}
2313}
2314if (_api.type(fiteToggle) !== undefined && fiteToggle.length > 0 && _api.type(fiteItemList) !== undefined && fiteItemList.length > 0) {
2315if (_api.hasClass(fiteToggle[0], 'expanded') === false) {
2316_api.addClass(fiteToggle[0], 'expanded');
2317_api.show(fiteItemList[0]);
2318}
2319}
2320}
2321}
2322}
2323var fiteModifyHiddenGoogleLinks = function () {
2324// Quelle, dass ein # von Google nicht gecrawlt wird ('Review Your URLs')
2325// https://www.searchenginepeople.com/blog/16094-google-javascript-crawling.html
2326var elements = document.querySelectorAll('[data-jwtpl-fite-hguUrl]');
2327for (var index = 0; index < elements.length; index++) {
2328if ((elements[index].hasAttribute('href') === true) && (elements[index].getAttribute('href') == '#') && (elements[index].getAttribute('data-jwtpl-fite-hguUrl') != '')) {
2329elements[index].setAttribute('href', elements[index].getAttribute('data-jwtpl-fite-hguUrl'));
2330}
2331}
2332}
2333var fiteRegisterToggleGroup = function (trigger) {
2334trigger = _api.get(trigger);
2335_api.each(trigger, function (item, index, _this) {
2336if (_api.type(item) !== undefined && _api.type(item.nextElementSibling) !== undefined) {
2337fiteRegisterToggle(item, item.nextElementSibling);
2338}
2339})
2340}
2341var fiteRegisterToggle = function (trigger, nodeToToggle) {
2342//Node or Selector
2343if (_api.type(trigger) === 'String'){
2344trigger = _api.get(trigger)[0];
2345}
2346if (_api.type(nodeToToggle) === 'String'){
2347nodeToToggle = _api.get(nodeToToggle)[0];
2348}
2349if (trigger && nodeToToggle) {
2350var wrapper = document.createElement('div');
2351wrapper.classList.add('jwtpl-sys-elementInner');
2352nodeToToggle.parentNode.insertBefore(wrapper, nodeToToggle);
2353wrapper.appendChild(nodeToToggle);
2354let
2355noFilterOrderTrigger = _api.get('.jwtpl-fite-blockNoFilterOrderMode1 .jwtpl-fite-sortingActiveElement'),
2356jomaToggleElement = _api.get('.jwtpl-obo-itemJobMailBox'),
2357noliToggleElement = _api.get('.jwtpl-obo-itemNoticeListBox');
2358_api.event(trigger, 'click', function (event) {
2359if(noFilterOrderTrigger.length > 0){
2360if(noliToggleElement.length > 0 && _api.hasClass(noliToggleElement[0],'open') === true){
2361_api.removeClass(noliToggleElement[0], 'open');
2362_api.hide(noliToggleElement[0]);
2363}
2364if(jomaToggleElement.length > 0 && _api.hasClass(jomaToggleElement[0],'open') === true){
2365_api.removeClass(jomaToggleElement[0], 'open');
2366_api.hide(jomaToggleElement[0]);
2367}
2368}
2369event.preventDefault();
2370fiteToggleBox(trigger, wrapper);
2371});
2372_api.event(trigger, 'keydown', function(event) {
2373if(event.key === 'Enter' || event.key === ' '){
2374event.preventDefault();
2375fiteToggleBox(trigger, wrapper);
2376}
2377})
2378}
2379}
2380var fiteToggleBox = function (trigger, nodeToToggle) {
2381let noFilterOrderTrigger = _api.get('.jwtpl-fite-blockNoFilterOrderMode1 .jwtpl-fite-sortingActiveElement');
2382if (_api.hasClass(trigger, 'expanded') === true) {
2383_api.removeClass(trigger, 'expanded');
2384trigger.setAttribute('aria-expanded', 'false');
2385nodeToToggle.style.maxHeight = '';
2386nodeToToggle.style.overflow = '';
2387if(noFilterOrderTrigger.length > 0){
2388if(nodeToToggle.style.display === 'block'){
2389nodeToToggle.style.display = 'none';
2390} else {
2391nodeToToggle.style.display = 'block';
2392}
2393} else {
2394nodeToToggle.style.opacity = '';
2395}
2396} else {
2397_api.addClass(trigger, 'expanded');
2398trigger.setAttribute('aria-expanded', 'true');
2399nodeToToggle.style.maxHeight = nodeToToggle.scrollHeight + 'px';
2400if(noFilterOrderTrigger.length > 0){
2401if(nodeToToggle.style.display === 'block'){
2402nodeToToggle.style.display = 'none';
2403} else {
2404nodeToToggle.style.display = 'block';
2405}
2406} else {
2407nodeToToggle.style.opacity = 1;
2408}
2409fiteUpdateMaxHeight(nodeToToggle);
2410}
2411}
2412var fiteOpenSelectedCat = function(){
2413var selectedCat = _api.get('.jwtpl-fite-selectedFiteCat1');
2414if(selectedCat.length > 0){
2415setTimeout(function(){
2416_api.get('.jwtpl-jmpt-toggleBoxOneTitle')[0].click();
2417selectedCat[0].firstElementChild.click();
2418}, 500)
2419}
2420}
2421var fiteUpdateMaxHeight = function(nodeToToggle) {
2422var elementToResize = _api.get('.jwtpl-jmpt-toggleBoxOne');
2423if (elementToResize.length > 0) {
2424elementToResize = elementToResize[0].parentElement;
2425if (elementToResize === nodeToToggle) {
2426return;
2427}
2428elementToResize.style.maxHeight = (elementToResize.scrollHeight + nodeToToggle.scrollHeight) + 'px';
2429}
2430}
2431var fiteCountSelectedCats = function () {
2432var filter = document.querySelector('.jwtpl-fite-block');
2433if (filter === null) {
2434return;
2435}
2436var filterHeader = document.querySelector('.jwtpl-jmpt-toggleBoxOneLink');
2437if (filterHeader === null) {
2438return;
2439}
2440var countTotal = 0;
2441var sublists = filter.querySelectorAll('.jwtpl-fite-innerList');
2442for (var i = 0; i < sublists.length; i++) {
2443var count = sublists[i].querySelectorAll('.jwtpl-fite-itemNameActive1').length;
2444if (count !== 0) {
2445sublists[i].firstElementChild.setAttribute('data-jwtpl-fite-count', count);
2446countTotal = countTotal + count;
2447}
2448}
2449if (countTotal !== 0){
2450filterHeader.setAttribute('data-jwtpl-fite-count', countTotal);
2451}
2452}
2453var fiteInit = function () {
2454let toggleBoxOne = _api.get('.jwtpl-jmpt-toggleBoxOne');
2455//fiteOpenActiveCat();
2456fiteRegisterToggleGroup('.jwtpl-fite-headline');
2457fiteRegisterToggle('.jwtpl-jmpt-toggleBoxOneTitle', '.jwtpl-jmpt-toggleBoxOne');
2458fiteRegisterToggle('.jwtpl-fite-sortingActiveElement', '.jwtpl-fite-sortingGroup');
2459fiteModifyHiddenGoogleLinks();
2460if(toggleBoxOne.length > 0) {
2461toggleBoxOne[0].style.display = "block";
2462}
2463fiteCountSelectedCats();
2464fiteOpenSelectedCat();
2465}
2466this.hili_getNoliData = function (eventData) {
2467if(_api._noli() !== false){
2468if(_api.type(eventData.trigger) !== undefined && eventData.trigger instanceof Element){
2469if(_api.type(eventData.trigger.parentElement) !== undefined && _api.type(eventData.trigger.parentElement.parentElement) !== undefined && _api.type(eventData.trigger.parentElement.parentElement.parentElement) !== undefined) {
2470var
2471url, title, date = '', adv = '', loc = '',
2472noliParent = eventData.trigger.parentElement.parentElement.parentElement,
2473data = noliParent.querySelectorAll('.jwtpl-hili-itemLink, .jwtpl-hili-itemTitel, .jwtpl-hili-itemDate, .
2473jwtpl-hili-itemCompany, .jwtpl-hili-itemLocation');
2474if(data.length > 0){
2475if(_api.type(data[0]) !== undefined){
2476if(data[0].tagName === 'A' && data[0].hasAttribute('href') === true){
2477url = data[0].getAttribute('href');
2478} else {
2479return false;
2480}
2481} else {
2482return false;
2483}
2484if(_api.type(data[1]) !== undefined) {
2485var text = data[1].innerText;
2486if(_api.isString(text) === true){
2487titel = text;
2488} else {
2489return false;
2490}
2491} else {
2492return false;
2493}
2494if(_api.type(data[2]) !== undefined) {
2495var text = data[2].innerText;
2496if(_api.isString(text) === true){
2497date = text;
2498}
2499}
2500if(_api.type(data[3]) !== undefined) {
2501var text = data[3].innerText;
2502if(_api.isString(text) === true){
2503adv = text;
2504}
2505}
2506if(_api.type(data[4]) !== undefined) {
2507var text = data[4].innerText;
2508if(_api.isString(text) === true){
2509loc = text;
2510}
2511}
2512return [url, titel, date, adv, loc];
2513} else {
2514_api.printErrorMsg('.hili_getNoliData(eventData) - no noli data found');
2515return false;
2516}
2517} else {
2518_api.printErrorMsg('.hili_getNoliData(eventData) - eventData.trigger must have 2 ascendants');
2519return false;
2520}
2521} else {
2522_api.printErrorMsg('.hili_getNoliData(eventData) - eventData.trigger must be DOMElement. [' + _api.type(eventData.trigger) + '] given instead');
2523return false;
2524}
2525} else {
2526return false;
2527}
2528}
2529var hiliModifyPlaceholder = function() {
2530var hiliForms = jQuery(".jwtpl-hili-jobMailForm");
2531_globalFillPlaceholderInForm(hiliForms);
2532}
2533var hiliSetTextInDiv = function() {
2534var texte = [];
2535texte['jobMailTitle'] = 'Passende Jobs zu Ihrer Suche ...';
2536texte['jobMailSubTitle'] = '... immer aktuell und kostenlos per Mail';
2537texte['jobMailBtn'] = 'Jobs kostenlos per E-Mail';
2538texte['jobMailSlogan'] = 'Sie k&ouml;nnen den Suchauftrag jederzeit abbestellen.';
2539texte['jobMailDsgvo'] = 'Es gilt unsere Datenschutzerkl&auml;rung. Sie erhalten passende Angebote per E-Mail. Sie k&ouml;nnen sich jederzeit wieder kostenlos abmelden.';
2540matching = [];
2541matching['jobMailTitle'] = 'jmt';
2542matching['jobMailSubTitle'] = 'jmst';
2543matching['jobMailBtn'] = 'jmn';
2544matching['jobMailSlogan'] = 'jms';
2545matching['jobMailDsgvo'] = 'jmd';
2546joma_bSetText('hili', 'jobMailForm', texte, matching);
2547}
2548var hiliJobMailer = function() {
2549var firstTime = true;
2550jQuery(".jwtpl-hili-jobMailLink").unbind().click(function(e) {
2551e.preventDefault();
2552hiliSetTextInDiv();
2553if (jQuery('.jwtpl-hili-jobMailLayer:visible').length) {
2554jQuery(".jwtpl-hili-jobMailLayer").css("display", "none");
2555jQuery(this).removeClass("jwtpl-hili-jobMailLayerOpen").addClass("jwtpl-hili-jobMailLayerClose");
2556} else {
2557jQuery(".jwtpl-hili-sorting").removeClass("jwtpl-hili-sortingExpanded");
2558jQuery(".jwtpl-hili-sortToggle").removeClass("jwtpl-hili-sortingExpanded");
2559jQuery(".jwtpl-hili-sortToggle i").removeClass("fa-angle-up").addClass("fa-angle-down");
2560jQuery(".jwtpl-hili-jobMailLayer").css("display", "inline-block");
2561jQuery(this).removeClass("jwtpl-hili-jobMailLayerClose").addClass("jwtpl-hili-jobMailLayerOpen");
2562if (firstTime == true) {
2563firstTime = hiliMakeLayerSize("jobMail", 1);
2564}
2565if (jQuery(".jwtpl-hili-noticeListLayer").css("display") != 'none') {
2566jQuery(".jwtpl-hili-noticeListLayer").css("display", "none");
2567jQuery(".jwtpl-hili-noticeListLink").removeClass("jwtpl-hili-noticeListLayerOpen").addClass("jwtpl-hili-jobMailLayerClose");
2568}
2569if (jQuery(".jwtpl-hili-saveSearchLayer").css("display") != 'none') {
2570jQuery(".jwtpl-hili-saveSearchLayer").css("display", "none");
2571}
2572}
2573});
2574jQuery(".jwtpl-hili-jobMailLayer .jwtpl-global-bt").click(function(e) {
2575e.preventDefault();
2576});
2577jQuery(".jwtpl-hili-jobMailLink, .jwtpl-hili-jobMailLayer").click(function(e) {
2578e.stopPropagation();
2579});
2580jQuery("html, .jwtpl-hili-jobMailIconClose").click(function(event) {
2581jQuery(".jwtpl-hili-jobMailLayer:visible").css("display", "none");
2582jQuery(".jwtpl-hili-jobMailLink").removeClass("jwtpl-hili-jobMailLayerOpen").addClass("jwtpl-hili-jobMailLayerClose");
2583});
2584}
2585var hiliNoticeList = function() {
2586var firstTime = true;
2587noticeListTitle = jQuery(".jwtpl-hili-noticeListTitle")[0].innerHTML;
2588if (typeof noli_bRegistMod == 'function') {
2589noli_bRegistMod("hili", "noticeListSaveList");
2590}
2591jQuery(".jwtpl-hili-noticeListLink").click(function(e) {
2592e.preventDefault();
2593if (jQuery('.jwtpl-hili-noticeListLayer:visible').length) {
2594jQuery(".jwtpl-hili-noticeListLayer").css("display", "none");
2595jQuery(this).removeClass("jwtpl-hili-noticeListLayerOpen").addClass("jwtpl-hili-noticeListLayerClose");
2596} else {
2597jQuery(".jwtpl-hili-sorting").removeClass("jwtpl-hili-sortingExpanded");
2598jQuery(".jwtpl-hili-sortToggle").removeClass("jwtpl-hili-sortingExpanded");
2599jQuery(".jwtpl-hili-sortToggle i").removeClass("fa-angle-up").addClass("fa-angle-down");
2600jQuery(".jwtpl-hili-noticeListLayer").css("display", "inline-block");
2601jQuery(this).removeClass("jwtpl-hili-noticeListLayerClose").addClass("jwtpl-hili-noticeListLayerOpen");
2602if (firstTime == true) {
2603firstTime = hiliMakeLayerSize("noticeList", 0);
2604}
2605if (jQuery(".jwtpl-hili-jobMailLayer").css("display") != 'none') {
2606jQuery(".jwtpl-hili-jobMailLayer").css("display", "none");
2607jQuery(".jwtpl-hili-jobMailLink").removeClass("jwtpl-hili-jobMailLayerOpen").addClass("jwtpl-hili-jobMailLayerClose");
2608}
2609if (jQuery(".jwtpl-hili-saveSearchLayer").css("display") != "none") {
2610jQuery(".jwtpl-hili-saveSearchLayer").css("display", "none");
2611jQuery(".jwtpl-hili-saveSearchLink").removeClass("jwtpl-hili-saveSearchLayerOpen").addClass("jwtpl-hili-saveSearchLayerClose");
2612}
2613}
2614});
2615jQuery(".jwtpl-hili-noticeListLink, .jwtpl-hili-noticeListLayer, .jwtpl-hili-itemFav").click(function(e) {
2616e.stopPropagation();
2617});
2618jQuery("html, .jwtpl-hili-noticeListIconClose").click(function(event) {
2619jQuery(".jwtpl-hili-noticeListLayer:visible").css("display", "none");
2620jQuery(".jwtpl-hili-noticeListLink").removeClass("jwtpl-hili-noticeListLayerOpen").addClass("jwtpl-hili-noticeListLayerClose");
2621});
2622}
2623var hiliSaveSearch = function() {
2624var firstTime = true;
2625jQuery(".jwtpl-hili-saveSearchLink").click(function(e) {
2626e.preventDefault();
2627if (jQuery('.jwtpl-hili-saveSearchLayer:visible').length) {
2628jQuery(".jwtpl-hili-saveSearchLayer").css("display", "none");
2629jQuery(this).removeClass("jwtpl-hili-saveSearchLayerOpen").addClass("jwtpl-hili-saveSearchLayerClose");
2630} else {
2631if (typeof saseli_bSetSaveSearchList !== 'undefined') {
2632saseli_bSetSaveSearchList("hili");
2633}
2634jQuery(".jwtpl-hili-sorting").removeClass("jwtpl-hili-sortingExpanded");
2635jQuery(".jwtpl-hili-sortToggle").removeClass("jwtpl-hili-sortingExpanded");
2636jQuery(".jwtpl-hili-sortToggle i").removeClass("fa-angle-up").addClass("fa-angle-down");
2637jQuery(".jwtpl-hili-saveSearchLayer").css("display", "inline-block");
2638jQuery(this).removeClass("jwtpl-hili-saveSearchLayerClose").addClass("jwtpl-hili-saveSearchLayerOpen");
2639if (jQuery(".jwtpl-hili-jobMailLayer").css("display") != 'none'){
2640jQuery(".jwtpl-hili-jobMailLayer").css("display", "none");
2641}
2642if (jQuery(".jwtpl-hili-noticeListLayer").css("display") != 'none') {
2643jQuery(".jwtpl-hili-noticeListLayer").css("display", "none");
2644jQuery(".jwtpl-hili-noticeListLink").removeClass("jwtpl-hili-noticeListLayerOpen").addClass("jwtpl-hili-noticeListLayerClose");
2645}
2646}
2647});
2648jQuery(".jwtpl-hili-saveSearchLink, .jwtpl-hili-saveSearchLayer").click(function(e) {
2649e.stopPropagation();
2650});
2651jQuery("html, .jwtpl-hili-saveSearchIconClose").click(function(event) {
2652jQuery(".jwtpl-hili-saveSearchLayer:visible").css("display", "none");
2653jQuery(".jwtpl-hili-saveSearchLink").removeClass("jwtpl-hili-saveSearchLayerOpen").addClass("jwtpl-hili-saveSearchLayerClose");
2654});
2655}
2656var hiliMakeLayerSize = function(classToken, intMove) {
2657var firstLetterUpperCase = classToken.charAt(0).toUpperCase() + classToken.slice(1);
2658var taskbarLinkLeftValue = document.getElementsByClassName("jwtpl-hili-taskbar" + firstLetterUpperCase)[0].offsetLeft - intMove;
2659jQuery(".jwtpl-hili-" + classToken + "Layer").css("left", taskbarLinkLeftValue);
2660return false;
2661}
2662var hiliSetTextInSortBox = function(event) {
2663var allEls = document.getElementsByClassName('jwtpl-hili-sortingElement');
2664for ( var i = 0; i < allEls.length; i++) {
2665allEls[i].children[0].innerHTML = allEls[i].children[0].getAttribute('data-jwtpl-hili-sortingtext');
2666}
2667}
2668var hiliShowHideSorter = function() {
2669jQuery(".jwtpl-hili-sortingTitle, .jwtpl-hili-sortingActiveElement").click(function(event) {
2670if (jQuery(".jwtpl-hili-sorting").hasClass("jwtpl-hili-sortingExpanded")) {
2671jQuery(".jwtpl-hili-sorting").removeClass("jwtpl-hili-sortingExpanded");
2672jQuery(".jwtpl-hili-sortToggle").removeClass("jwtpl-hili-sortingExpanded");
2673jQuery(".jwtpl-hili-sortToggle i").removeClass("fa-angle-up").addClass("fa-angle-down");
2674} else {
2675hiliSetTextInSortBox();
2676jQuery(".jwtpl-hili-jobMailLayer").css("display", "none");
2677jQuery(".jwtpl-hili-sorting, .jwtpl-hili-sortToggle").addClass("jwtpl-hili-sortingExpanded");
2678jQuery(".jwtpl-hili-sortToggle i").removeClass("fa-angle-down").addClass("fa-angle-up");
2679}
2680});
2681jQuery(".jwtpl-hili-sortingTitle, .jwtpl-hili-sortingActiveElement").click(function(e) {
2682e.stopPropagation();
2683});
2684jQuery("html").click(function() {
2685jQuery(".jwtpl-hili-sorting").removeClass("jwtpl-hili-sortingExpanded");
2686jQuery(".jwtpl-hili-sortToggle").removeClass("jwtpl-hili-sortingExpanded");
2687jQuery(".jwtpl-hili-sortToggle i").removeClass("fa-angle-up").addClass("fa-angle-down");
2688});
2689}
2690var hiliMarkAd = function() {
2691jQuery(".jwtpl-hili-itemFav").unbind().click(function() {
2692var freeStorage = false;
2693var jsonConfigStr = _globalGetJsonConfig();
2694if(jsonConfigStr['noli-b'] !== undefined) {
2695var positionOfNoli = jsonConfigStr['noli-b'];
2696var jsonNoli = jsonConfigStr[positionOfNoli];
2697var version = jsonNoli['vs'];
2698if(version == 'v2') {
2699freeStorage = true;
2700// var localStorage = window.localStorage;
2701// if((_api.type(localStorage) !== undefined) && (localStorage.length > 0)) {
2702// var storageSize = 0;
2703// for(var x in localStorage) {
2704// if(localStorage.hasOwnProperty(x) === true) {
2705// var amount = (localStorage.getItem(x).length * 2) / 1024 / 1024;
2706// storageSize += amount;
2707// }
2708// }
2709// if(storageSize < 5) {
2710// freeStorage = true;
2711// }
2712// } else {
2713// freeStorage = true;
2714// }
2715} else {
2716if(document.cookie.length < 3780) {
2717freeStorage = true;
2718}
2719}
2720}
2721if (freeStorage || jQuery(this).parent().parent(".jwtpl-hili-item").find(".jwtpl-hili-col2").hasClass("jwtpl-hili-itemMarked")) {
2722if (jQuery(this).parent().parent(".jwtpl-hili-item").find(".jwtpl-hili-col2").hasClass("jwtpl-hili-itemMarked")) {
2723jQuery(this).parent().parent(".jwtpl-hili-item").find(".jwtpl-hili-col2").removeClass("jwtpl-hili-itemMarked");
2724} else {
2725jQuery(this).parent().parent(".jwtpl-hili-item").find(".jwtpl-hili-col2").addClass("jwtpl-hili-itemMarked");
2726}
2727noli_bSaveJobAdHiliColumn(this);
2728noli_bRefreshMarked();
2729}
2730});
2731}
2732var hiliHideShowFavs = function() {
2733if (document.getElementsByClassName('jwtpl-hili-list')[0] != null) {
2734var boolRemove = document.getElementsByClassName('jwtpl-hili-list')[0].getAttribute('data-jwtpl-hili-removeFavsResponsive');
2735}
2736}
2737var hiliShowAdvertiserProfileLink = function() {
2738var profiles = _api.get(".jwtpl-hili-itemCompany");
2739if (profiles.length > 0) {
2740for (var i = 0; i < profiles.length; i++) {
2741var profileUrl = profiles[i].getAttribute('data-jwtpl-hili-advprofurl');
2742if (_api.type(profileUrl) !== undefined && profileUrl.length > 0) {
2743var profileNode = document.createElement('span');
2744_api.addClass(profileNode, 'jwtpl-hili-itemProfile')
2745profileNode.innerHTML = '<a href ="' + profileUrl + '" target="_blank"></a>';
2746profiles[i].insertAdjacentElement('afterend', profileNode);
2747}
2748}
2749}
2750}
2751var hiliMoveTaskbarMobile = function() {
2752var taskbar = document.querySelectorAll('.jwtpl-hili-taskbar'), toggle = document.querySelectorAll('.jwtpl-hili-sortToggle');
2753if (taskbar.length > 0 && taskbar[0]) {
2754taskbar[0].style.display = 'block';
2755if (taskbar[0].classList) {
2756taskbar[0].classList.add('mobileMode');
2757}
2758}
2759if (toggle.length > 0 && toggle[0]) {
2760if (toggle[0].parentElement !== undefined) {
2761toggle[0].parentElement.appendChild(taskbar[0]);
2762}
2763}
2764}
2765var hiliMoveTaskbarDesktop = function() {
2766var taskbar = document.querySelectorAll('.jwtpl-hili-taskbar'), toggle = document.querySelectorAll('.jwtpl-hili-sortToggle');
2767if (taskbar.length > 0 && taskbar[0]) {
2768taskbar[0].style.display = 'table-cell';
2769if (taskbar[0].classList) {
2770taskbar[0].classList.remove('mobileMode');
2771}
2772if (typeof taskbar[0].parentElement !== 'undefined' && typeof toggle[0] !== 'undefined') {
2773taskbar[0].parentElement.appendChild(toggle[0]);
2774}
2775}
2776}
2777var hiliHideMobileTaskbarOnRemoverExists = function() {
2778var taskbar = document.getElementsByClassName('jwtpl-hili-taskbar')[0];
2779if (taskbar !== undefined) {
2780taskbar.style.display = 'none';
2781}
2782}
2783var hiliModifyHiddenGoogleLinks = function() {
2784var elements = document.querySelectorAll('[data-jwtpl-hili-hguUrl]');
2785for ( var index = 0; index < elements.length; index++) {
2786if ((elements[index].hasAttribute('href') === true) && (elements[index].getAttribute('href') == '#') && (elements[index].getAttribute('data-jwtpl-hili-hguUrl') != '')) {
2787elements[index].setAttribute('href', elements[index].getAttribute('data-jwtpl-hili-hguUrl'));
2788}
2789}
2790}
2791var hiliModifyJoburls = function(object) {
2792if(_api.type(object) !== undefined ) {
2793var itemPara = '';
2794var itemParaSeperation = '';
2795var jumpToTag = '';
2796var foundParent = false;
2797var testObject = object;
2798var localJsDevelop = '';
2799while (!jQuery(testObject).is('body') && foundParent == false) {
2800testObject = testObject.parentElement;
2801if (testObject.getAttribute("data-jwtpl-trackingseperationkey") != '' && testObject.getAttribute("data-jwtpl-trackingseperationkey") != null) {
2802foundParent = true;
2803}
2804}
2805if (foundParent == true) {
2806itemParaSeperation = testObject.getAttribute("data-jwtpl-trackingseperationkey");
2807} else {
2808}
2809var hiliBlock = _api.get('.jwtpl-hili-block');
2810if (hiliBlock.length > 0 && hiliBlock[0].getAttribute('data-jwtpl-hili-viewerparams') !== null && hiliBlock[0].getAttribute('data-jwtpl-hili-viewerparams') == 'true') {
2811itemPara = object.getAttribute("data-jwtpl-hili-urlinfos");
2812}
2813var itemUrl = object.href;
2814var arrAddUrlParam = new Array();
2815if(itemParaSeperation != '') {
2816arrAddUrlParam.push('jw_chl_seg=' + itemParaSeperation);
2817}
2818if(itemPara != '') {
2819arrAddUrlParam.push(itemPara);
2820}
2821for(var paramNo = 0; paramNo < arrAddUrlParam.length;
2821 paramNo++) {
2822if(paramNo != 0) {
2823itemUrl = itemUrl + '&';
2824} else {
2825if(itemUrl.indexOf('?') !== -1) {
2826itemUrl = itemUrl + '&';
2827} else {
2828itemUrl = itemUrl + '?';
2829}
2830}
2831itemUrl = itemUrl + arrAddUrlParam[paramNo];
2832}
2833if(jumpToTag != '') {
2834itemUrl = itemUrl + '#' + jumpToTag;
2835}
2836if(arrAddUrlParam.length > 0 && localJsDevelop !== '') {
2837itemUrl = itemUrl + '&' + localJsDevelop;
2838} else if(arrAddUrlParam.length < 0 && localJsDevelop !== '' ) {
2839itemUrl = itemUrl + '?' + localJsDevelop;
2840}
2841return itemUrl;
2842} else {
2843return '';
2844}
2845}
2846var hiliClickLinkVw = function() {
2847jQuery('.jwtpl-hili-itemLink').click(function(event) {
2848var url = this.href;
2849url = hiliModifyJoburls(this);
2850var windowNames = document.querySelectorAll('[data-jwtpl-myWindow]');
2851if ((typeof windowNames != 'undefined' && windowNames.length > 0) && !isFirefox == true && !_globalIsBrowserIeOrEdge() == true && ((navigator.maxTouchPoints == 0 || window.self !== window.top) /*|| (isFirefox && !isAndroid)*/)){
2852var targetArr = jQuery(windowNames[0]).attr('data-jwtpl-myWindow').split("|");
2853if(targetArr.length < 1) {
2854jQuery(this).attr('href', url);
2855jQuery(this).attr('target', blank);
2856return false;
2857}
2858var target = targetArr[1];
2859if (window.innerWidth > 482) {
2860event.preventDefault();
2861}
2862var viewerTarget;
2863var hiliBlock = _api.get('.jwtpl-hili-block');
2864if(hiliBlock.length > 0) {
2865viewerTarget = hiliBlock[0].getAttribute('data-jwtpl-hili-viewertarget');
2866if(_api.type(viewerTarget) !== undefined && viewerTarget == '_self') {
2867target = viewerTarget;
2868}
2869}
2870if(viewerTarget !== 'self') {
2871try {
2872vwJob = window.open(url, target);
2873vwJob.location.href
2874} catch(err) {
2875target = target + '-' + Math.floor(Math.random()*50).toString();
2876vwJob = window.open(url, target);
2877}
2878}
2879vwJob.focus();
2880return false;
2881} else {
2882jQuery(this).attr('href', url);
2883var target = '_self';
2884if ( ((isFirefox == true) || (_globalIsBrowserIeOrEdge() == true)) && (navigator.maxTouchPoints == 0)) {
2885target = '_blank';
2886}
2887var hiliBlock = _api.get('.jwtpl-hili-block');
2888if(hiliBlock.length > 0) {
2889var viewerTarget = hiliBlock[0].getAttribute('data-jwtpl-hili-viewertarget');
2890if(_api.type(viewerTarget) !== undefined && viewerTarget == '_self') {
2891target = viewerTarget;
2892}
2893}
2894jQuery(this).attr('target', target);
2895return true;
2896}
2897});
2898}
2899var hiliClickLinkVwFancy = function(){
2900jQuery('.jwtpl-hili-itemLink').each(function(){
2901var _this = $(this);
2902_this.click(function(e){
2903var
2904_this = $(this),
2905iFrame =$('<iframe class="fb-iframe" name="fb-iframe" width="100%" frameBorder="0" scrolling="no"></iframe>')
2906fancy = $('<div class="fancy-container"><span class="closeIcon">X</span></div>'),
2907body = $('body'),
2908windowHeight = $(window).height();
2909e.preventDefault();
2910iFrame.height(windowHeight);
2911body.css('overflow', 'hidden');
2912iFrame.attr('src', _this.attr('href'));
2913fancy.append(iFrame);
2914body.append(fancy);
2915fancy.show();
2916$('.closeIcon').click(function(){
2917fancy.remove();
2918body.css('overflow', 'auto');
2919});
2920$(document).keydown(function(e) {
2921if (e.keyCode == 27) {
2922body.css('overflow', 'auto');
2923fancy.remove();
2924}
2925});
2926setTimeout(function(){
2927var loadedFrame = document.querySelector('.fb-iframe');
2928if(typeof loadedFrame.contentDocument.body !== 'undefined'){
2929var advertisement = loadedFrame.contentDocument.body.getElementsByClassName('jwtpl-vwfb-iframe');
2930if(advertisement.length > 0){
2931advertisement[0].height = ($(window).height() - 100);
2932} else {
2933setTimeout(function(){
2934var loadedFrame = document.querySelector('.fb-iframe');
2935if(typeof loadedFrame.contentDocument.body !== 'undefined'){
2936var advertisement = loadedFrame.contentDocument.body.getElementsByClassName('jwtpl-vwfb-iframe');
2937if(advertisement.length > 0){
2938advertisement[0].height = ($(window).height() - 100);
2939}
2940}
2941}, 750);
2942}
2943} else {
2944setTimeout(function(){
2945var loadedFrame = document.querySelector('.fb-iframe');
2946if(typeof loadedFrame.contentDocument.body !== 'undefined'){
2947var advertisement = loadedFrame.contentDocument.body.getElementsByClassName('jwtpl-vwfb-iframe');
2948if(advertisement.length > 0){
2949advertisement[0].height = ($(window).height() - 100);
2950}
2951}
2952}, 750);
2953}
2954}, 750);
2955});
2956});
2957}
2958var hiliSwipeOnElement = function(){
2959var list = document.querySelector('.jwtpl-hili-list');
2960var back = document.querySelector('.jwtpl-hilipage-pagerSpecialGoBackLink');
2961var next = document.querySelector('.jwtpl-hilipage-pagerSpecialGoForwardLink');
2962var page = document.querySelector('.jwtpl-hilipage-pagerLink.jwtpl-hilipage-pagerA
2962ctive1Link');
2963var showLoaderAndArrows = true;
2964if((list != null) && (page != null) && ((back != null) || (next != null))){
2965_globalSwipeMobile(list,back,next,showLoaderAndArrows,page);
2966}
2967}
2968var hiliMarkJobInHiliWhenInSiteViewer = function() {
2969var hiliBlock = _api.get('.jwtpl-hili-block');
2970if(hiliBlock.length > 0) {
2971var markUpActive = hiliBlock[0].getAttribute('data-jwtpl-hili-markupjobad');
2972if(markUpActive === '1') {
2973var arrLinks = _api.get('.jwtpl-hili-item');
2974var docOrigin = document.location.origin;
2975var docPath = document.location.pathname;
2976var aktUrl = docOrigin + docPath;
2977var isFound = false;
2978if(aktUrl !== '' && arrLinks.length > 0) {
2979_api.each(arrLinks, function(item, key, _this) {
2980var item = arrLinks[key];
2981var itemUrl = item.getElementsByClassName('jwtpl-hili-itemLink');
2982if(itemUrl.length >0 && _api.type(itemUrl[0].href) !== undefined && itemUrl[0].href === aktUrl) {
2983item.classList.add('jwtpl-hili-itemActive');
2984isFound = true;
2985}
2986});
2987if(isFound === false) {
2988arrLinks[0].classList.add('jwtpl-hili-itemActive');
2989}
2990}
2991}
2992}
2993}
2994var hiliGetNextItem = function(actItemUrl) {
2995var nextItemUrl = '';
2996if(actItemUrl.trim() !== '') {
2997var allItems = _api.get('.jwtpl-hili-itemLink');
2998if(allItems.length > 0 && (allItems[0].parentElement.parentElement.classList.contains('jwtpl-hili-itemActive')) === false) {
2999_api.each(allItems, function(item, key, _this) {
3000if(actItemUrl === item.href) {
3001nextItemUrl = hiliModifyJoburls(allItems[key + 1]);
3002}
3003});
3004} else {
3005nextItemUrl = hiliModifyJoburls(allItems[1]);
3006}
3007}
3008return nextItemUrl;
3009}
3010var hiliGetPrevItem = function(actItemUrl) {
3011var prevItemUrl = '';
3012if(actItemUrl.trim() !== '') {
3013var allItems = _api.get('.jwtpl-hili-itemLink');
3014_api.each(allItems, function(item, key, _this) {
3015if(actItemUrl === item.href) {
3016prevItemUrl = hiliModifyJoburls(allItems[key - 1]);
3017}
3018});
3019}
3020return prevItemUrl;
3021}
3022var hiliGetActItem = function() {
3023var actItem = null;
3024var allItems = _api.get('.jwtpl-hili-item');
3025_api.each(allItems, function(item, key, _this) {
3026if(item.classList.contains('jwtpl-hili-itemActive') === true) {
3027actItem = item;
3028}
3029});
3030return actItem;
3031}
3032var hiliInit = function() {
3033var
3034viewerMode = '',
3035curHili = document.querySelector('.jwtpl-hili-block');
3036if(curHili !== null){
3037if(curHili.hasAttribute('data-jwtpl-hili-viewertarget') === true){
3038viewerMode = curHili.getAttribute('data-jwtpl-hili-viewertarget');
3039}
3040}
3041if(viewerMode === 'fancy'){
3042hiliClickLinkVwFancy();
3043} else {
3044hiliClickLinkVw();
3045}
3046hiliShowAdvertiserProfileLink();
3047hiliModifyPlaceholder();
3048hiliJobMailer();
3049if (jQuery('.jwtpl-hili-noticeList').length != 0) {
3050hiliNoticeList();
3051}
3052if (jQuery('.jwtpl-hili-saveSearchLink').length != 0) {
3053hiliSaveSearch();
3054}
3055hiliShowHideSorter();
3056if (_api._consent().checkConsent(2) === false) {
3057var stars = document.querySelectorAll("[class*='jwtpl-gc-noliitem']");
3058for (var i = 0; i < stars.length; i++) {
3059stars[i].addEventListener('click', cookieEvent);
3060}
3061function cookieEvent(ev) {
3062ev.preventDefault();
3063ev.stopPropagation();
3064_api._consent().getConsent(2);
3065}
3066}
3067_api._consent().getConsent(2, function () {
3068hiliMarkAd();
3069var stars = document.querySelectorAll("[class*='jwtpl-gc-noliitem']")
3070for (var i = 0; i < stars.length; i++) {
3071stars[i].removeEventListener('click', cookieEvent);
3072}
3073}, '')
3074isFirefox = typeof InstallTrigger !== 'undefined';
3075isSafari = Object.prototype.toString.call(window.HTMLElement).indexOf('Constructor') > 0;
3076isAndroid = navigator.userAgent.match(/Android/i) != null;
3077hiliHideShowFavs();
3078var triggered = false, getHiliTaskbarParam = document.getElementsByClassName('jwtpl-hili-block')[0], showTaskbar = '';
3079if (getHiliTaskbarParam !== undefined) {
3080if (getHiliTaskbarParam.hasAttribute('data-jwtpl-hili-showMobileTaskbarOnNotExists') === true) {
3081var param = getHiliTaskbarParam.getAttribute('data-jwtpl-hili-showMobileTaskbarOnNotExists');
3082if (param === '') {
3083showTaskbar = false;
3084} else {
3085if (document.getElementsByClassName(param).length > 0) {
3086showTaskbar = false;
3087} else {
3088showTaskbar = true;
3089}
3090}
3091}
3092}
3093var width = window.innerWidth || document.documentElement.clientWidth || document.body.clientWidth;
3094if (width < 769 && triggered === false) {
3095triggered = true;
3096if (showTaskbar === true) {
3097hiliMoveTaskbarMobile();
3098}
3099}
3100window.addEventListener('resize', function(e) {
3101var width = window.innerWidth || document.documentElement.clientWidth || document.body.clientWidth;
3102if (width < 769 && triggered === false) {
3103triggered = true;
3104if (showTaskbar === true) {
3105hiliMoveTaskbarMobile();
3106} else {
3107hiliHideMobileTaskbarOnRemoverExists();
3108}
3109} else if (width > 769 && triggered === true) {
3110triggered = false
3111hiliMoveTaskbarDesktop();
3112}
3113});
3114hiliModifyHiddenGoogleLinks();
3115if (_globalGetAms() === true) {
3116hiliSwipeOnElement();
3117}
3118hiliMarkJobInHiliWhenInSiteViewer();
3119}
3120var hiliadprInitMap = function () {
3121var adrStreet = document.getElementsByClassName("jwtpl-hiliadpr-street")[0].textContent.trim();
3122var adrLocation = document.getElementsByClassName("jwtpl-hiliadpr-location")[0].textContent.trim();
3123var adrCountry = document.getElementsByClassName("jwtpl-hiliadpr-country")[0].textContent.trim();
3124var address = adrStreet + ', ' + adrLocation + ', ' + adrCountry;
3125google.maps.event.addDomListener(window, 'load', hiliadprLoadMap());
3126}
3127var hiliadprLoadMap = function () {
3128geocoder = new google.maps.Geocoder();
3129geocoder.geocode({
3130'address': address
3131}, function (results, status) {
3132if (status == google.maps.GeocoderStatus.OK) {
3133var adrMap = new google.maps.Map(document.getElementsByClassName('jwtpl-hiliadpr-map')[0], {
3134zoom: 13,
3135disableDefaultUI: true
3136});
3137jobware.googleMaps.data.marker = new google.maps.Marker({
3138map: adrMap,
3139position: results[0].geometry.location
3140});
3141}
3142});
3143}
3144var hiliadprMoveAdvertiserProfileOnMobile = function () {
3145var
3146hiliadpr = _api.get('.jwtpl-hiliadpr-block', true),
3147targetBlock = _api.get('.jwtpl-jmpt-responsiveAdverProfile');
3148if (hiliadpr.length > 0 && targetBlock.length > 0) {
3149targetBlock[0].insertAdjacentElement('afterbegin', hiliadpr[0]);
3150_api.removeClass(targetBlock[0], 'jwtpl-gc-hidden1');
3151_api.removeClass(targetBlock[0], 'jwtpl-gc-hidden0');
3152_api.removeClass(hiliadpr[0], 'jwtpl-gc-hidden1');
3153_api.removeClass(hiliadpr[0], 'jwtpl-gc-hidden0');
3154_api.show(hiliadpr[0]);
3155}
3156}
3157var hiliadprRestoreAdvertiserProfile = function () {
3158var
3159hiliadpr = _api.get('.jwtpl-hiliadpr-block', true),
3160jobadBox = _api.get('.jwtpl-jobad-box'),
3161targetBlock = _api.get('.jwtpl-jobad-block'),
3162tabs = _api.get('.jwtpl-jobad-optionTabBlock');
3163if (hiliadpr.length > 0 && targetBlock.length > 0 && tabs.length > 0 && jobadBox.length > 0) {
3164targetBlock[0].insertAdjacentElement('beforeend', hiliadpr[0]);
3165var
3166tabs = tabs[0].children,
3167act;
3168_api.each(tabs, function (item) {
3169if (_api.hasClass(item, 'jwtpl-gc-active1') === true) {
3170if (item.hasAttribute('data-jwtpl-jobad-ettabsrc') === true) {
3171act = item.getAttribute('data-jwtpl-jobad-ettabsrc');
3172}
3173}
3174});
3175if (act === 'jwtpl-jobad-box') {
3176_api.removeClass(hiliadpr[0], 'fadeIn');
3177_api.hide(hiliadpr[0]);
3178}
3179if (act === 'jwtpl-hiliadpr-block') {
3180_api.removeClass(jobadBox[0], 'fadeIn');
3181_api.hide(jobadBox[0]);
3182}
3183}
3184}
3185var hiliadprLazyLoad = function () {
3186var galleryTitle = document.querySelector(".jwtpl-hiliadpr-galleryTitle");
3187if (galleryTitle === null) {
3188return;
3189}
3190if (typeof IntersectionObserver === 'function') {
3191var options = {};
3192var observer = new IntersectionObserver(loadImages, options);
3193observer.observe(galleryTitle);
3194} else {
3195loadImages();
3196}
3197function loadImages(ev) {
3198if (ev && ev[0].isIntersecting === false) {
3199return;
3200}
3201var images = document.querySelectorAll(".jwtpl-hiliadpr-galleryItem img");
3202for (var i = 0; i < images.length; i++) {
3203if (images[i].hasAttribute("data-src")) {
3204images[i].setAttribute("src", images[i].getAttribute("data-src"));
3205images[i].removeAttribute("data-src");
3206}
3207}
3208if (ev) {
3209observer.unobserve(ev[0].target);
3210}
3211}
3212}
3213var hiliadprLoadYoutube = function () {
3214var videos = document.querySelectorAll('.jwtpl-hiliadpr-videoContainer');
3215var placeholder = '<!DOCTYPE html>' +
3216'<html lang="en">' +
3217'<head>' +
3218'<meta charset="UTF-8">' +
3219'<meta name="viewport" content="width=device-width, initial-scale=1.0">' +
3220'<title>Document</title>' +
3221'<style>' +
3222'html,body, .container {' +
3223'height: 200px;' +
3224'font-family: Arial, Helvetica, sans-serif;' +
3225'}' +
3226'.container {' +
3227'display: -webkit-flexbox;' +
3228'display: -ms-flexbox;' +
3229'display: -webkit-flex;' +
3230'display: flex;' +
3231'-webkit-flex-align: center;' +
3232'-ms-flex-align: center;' +
3233'-webkit-align-items: center;' +
3234'align-items: center;' +
3235'justify-content: center;' +
3236'line-height: 1.5em;' +
3237'border: 1px solid #e5e5e5;' +
3238'padding: 20px;' +
3239'}' +
3240'span {' +
3241'background-color: #555;' +
3242'color: #fff;' +
3243'padding: 20px;' +
3244'text-align: center;' +
3245'cursor: pointer;' +
3246'}' +
3247'i.fa {' +
3248'color: #fff;' +
3249'font-size: 40px;' +
3250'}' +
3251'</style>' +
3252'<link rel="stylesheet" type="text/css" href="' + _api.getProjectPath() + 'api/css/font-awesome-4.5.0.css"/>' +
3253'</head>' +
3254'<body>' +
3255'<div class="container">' +
3256'<span style="">' +
3257'<i class="fa fa-exclamation-triangle" aria-hidden="true"></i><br><br>' +
3258'Bitte stimmen Sie der Nutzung externer Inhalte zu.' +
3259'</span>' +
3260'</div>' +
3261'</body>' +
3262'</html>';
3263if (!_api._consent() || _api._consent().checkConsent(4) === true) {
3264for (var i = 0; i < videos.length; i++) {
3265var currentVid = videos[i];
3266currentVid.src = currentVid.getAttribute('data-src');
3267currentVid.removeAttribute('srcdoc')
3268currentVid.style.height = "400px";
3269return;
3270}
3271}
3272if (_api._consent().checkConsent(4) === false) {
3273for (var i = 0; i < videos.length; i++) {
3274var currentVid = videos[i];
3275currentVid.srcdoc = placeholder;
3276currentVid.style.height = "250px";
3277setTimeout(function () {
3278currentVid.contentDocument.body.addEventListener('click', function () {
3279_api._consent().getConsent(4, function () {
3280currentVid.src = currentVid.getAttribute('data-src');
3281currentVid.removeAttribute('srcdoc')
3282currentVid.style.height = "400px";
3283})
3284});
3285}, 500)
3286}
3287}
3288}
3289var hiliadprInit = function () {
3290hiliadprLoadYoutube();
3291//hiliadprLazyLoad();
3292var
3293triggered = false;
3294if (_api.width() < 900 && triggered === false) {
3295triggered = true;
3296hiliadprMoveAdvertiserProfileOnMobile();
3297}
3298window.addEventListener('resize', function (e) {
3299if (_api.width() < 900 && triggered === false) {
3300triggered = true;
3301hiliadprMoveAdvertiserProfileOnMobile();
3302} else if (_api.width() > 900 && triggered === true) {
3303triggered = false;
3304hiliadprRestoreAdvertiserProfile();
3305}
3306});
3307}
3308var hilipageModifyHiddenGoogleLinks = function() {
3309var elements = document.querySelectorAll('[data-jwtpl-hilipage-hguUrl]');
3310for(var index = 0; index < elements.length; index++){
3311if((elements[index].hasAttribute('href') === true) && (elements[index].getAttribute('href') == '#') && (elements[index].getAttribute('data-jwtpl-hilipage-hguUrl') != '')){
3312elements[index].setAttribute('href', elements[index].getAttribute('data-jwtpl-hilipage-hguUrl'));
3313}
3314}
3315}
3316var hilipageInit = function() {
3317hilipageModifyHiddenGoogleLinks();
3318}
3319var jobad_edjInitItemExpander = function() {
3320let
3321itemCountMax,
3322itemCountReal,
3323edjBlock = _api.get('[data-jwtpl-jobadedj-itemcount]'),
3324edjItem = _api.get('.jwtpl-jobadedj-item'),
3325trigger = _api.get('.jwtpl-jobadedj-loadMoreText');
3326if(edjBlock.length > 0){
3327itemCountReal = edjBlock[0].getAttribute('data-jwtpl-jobadedj-itemcount');
3328itemCountReal = parseInt(itemCountReal);
3329}
3330if(_api.isMobile() === true){
3331itemCountMax = 4;
3332} else{
3333itemCountMax = 12;
3334}
3335if(itemCountReal > (itemCountMax + 1)){
3336if(edjItem.length > 0 && trigger.length > 0) {
3337_api.each(edjItem, function(it, index){
3338if((index + 1) > itemCountMax) {
3339_api.hide(it);
3340_api.addClass(it, 'jwtpl-gc-hidden1');
3341}
3342});
3343_api.event(trigger[0], 'click', function(e){
3344let inv = _api.get('.jwtpl-jobadedj-item', true);
3345_api.each(inv, function(it){
3346if(_api.hasClass(it, 'jwtpl-gc-hidden1') === true) {
3347_api.show(it);
3348_api.addClass(it, 'fadeIn');
3349_api.removeClass(it, 'jwtpl-gc-hidden1');
3350}
3351});
3352_api.hide(trigger[0]);
3353});
3354}
3355} else {
3356_api.hide(trigger[0]);
3357}
3358}
3359var jobad_edjInit = function () {
3360jobad_edjInitItemExpander();
3361}
3362let iframeResizeCounter = 0;
3363this.jobad_getNoliData = function (eventData) {
3364if (_api._noli() !== false) {
3365var
3366url, title, date = '', adv = '', loc = '',
3367data = _api.get('[data-jwtpl-jobad-url], .jwtpl-jobad-title, .jwtpl-jobad-date, .jwtpl-jobad-company, .jwtpl-jobad-location');
3368if (data.length > 0) {
3369if (_api.type(data[0]) !== undefined) {
3370if (data[0].hasAttribute('data-jwtpl-jobad-url') === true) {
3371var attr = data[0].getAttribute('data-jwtpl-jobad-url');
3372if (_api.isString(attr) === true) {
3373if(attr.indexOf('?') !== -1) {
3374attr = attr.substring(0, attr.indexOf('?'));
3375}
3376url = attr;
3377} else {
3378return false;
3379}
3380} else {
3381return false;
3382}
3383} else {
3384return false;
3385}
3386if (_api.type(data[1]) !== undefined) {
3387var text = data[1].innerText;
3388if (_api.isString(text) === true) {
3389titel = text;
3390} else {
3391return false;
3392}
3393} else {
3394return false;
3395}
3396if (_api.type(data[2]) !== undefined) {
3397var text = data[2].innerText;
3398if (_api.isString(text) === true) {
3399date = text;
3400}
3401}
3402if (_api.type(data[3]) !== undefined) {
3403var text = data[3].innerText;
3404if (_api.isString(text) === true) {
3405adv = text;
3406}
3407}
3408if (_api.type(data[4]) !== undefined) {
3409var text = data[4].innerText;
3410if (_api.isString(text) === true) {
3411loc = text;
3412}
3413}
3414} else {
3415return false;
3416}
3417return [url, titel, date, adv, loc];
3418} else {
3419return false;
3420}
3421}
3422this.jobad_doApplyB2Go = function () {
3423if(_api.isReady() === true){
3424jobadOpenApplyBox('.jwtpl-jobad-navB2gApplyBox');
3425}
3426}
3427this.jobad_doApplyChiffre = function () {
3428if(_api.isReady() === true){
3429jobadOpenApplyBox('.jwtpl-jobad-navChiffreBox');
3430}
3431}
3432this.jobad_doApplyNoApply = function () {
3433if(_api.isReady() === true){
3434jobadOpenApplyBox('.jwtpl-jobad-navNoApplyBox');
3435}
3436}
3437var jobadOpenApplyBox = function (applyBoxSelector) {
3438var applyBox = _api.get(applyBoxSelector);
3439if (applyBox.length > 0) {
3440var closeBox = _api.get(applyBoxSelector + 'Close');
3441var jobadContainer = _api.get('.jwtpl-jobad-navigation', true);
3442if (closeBox.length > 0) {
3443_api.each(closeBox, function(it){
3444_api.event(it, 'click', function (e) {
3445_api.removeClass(applyBox[0], 'open');
3446_api.hide(applyBox[0]);
3447});
3448});
3449}
3450if (_api.hasClass(applyBox[0], 'open') === true) {
3451_api.removeClass(applyBox[0], 'open');
3452_api.hide(applyBox[0]);
3453} else {
3454_api.addClass(applyBox[0], 'open');
3455_api.show(applyBox[0]);
3456}
3457}
3458}
3459var jobadOpenMenuBox = function () {
3460var
3461iconShare = _api.get('.jwtpl-jobad-iconShare'),
3462shareMenu = _api.get('.jwtpl-jobad-shareMenuBox');
3463if (iconShare.length > 0 && shareMenu.length > 0) {
3464_api.event(iconShare[0], 'click', function (e) {
3465var ccsProps = _api.getCssProps(shareMenu[0]);
3466if (ccsProps.display === 'none') {
3467_api.addClass(shareMenu[0], 'fadeIn');
3468_api.show(shareMenu[0])
3469} else {
3470_api.removeClass(shareMenu[0], 'fadeIn');
3471_api.hide(shareMenu[0])
3472}
3473});
3474}
3475return false;
3476var navShare = _api.get('.jwtpl-jobad-navShare');
3477var navShareLink = _api.get('.jwtpl-jobad-navShare a');
3478var navShareClose = _api.get('.jwtpl-jobad-navShareBoxClose');
3479var navOption = _api.get('.jwtpl-jobad-navOptions');
3480var navOptionLink = _api.get('.jwtpl-jobad-navOptions a');
3481var navOptionClose = _api.get('.jwtpl-jobad-navOptionsBoxClose');
3482var optionBox = _api.get('.jwtpl-jobad-navOptionsBox');
3483var shareBox = _api.get('.jwtpl-jobad-navShareBox');
3484var navStyle = window.getComputedStyle(_api.get('.jwtpl-jobad-navigation')[0]);
3485var noApplyBox = _api.get('.jwtpl-jobad-navNoApplyBox');
3486var chiffreBox = _api.get('.jwtpl-jobad-navChiffreBox');
3487if (navShare.length > 0) {
3488_api.event(navShare[0], 'click', function (e) {
3489e.stopPropagation();
3490jobadToggleBoxes('jwtpl-jobad-navShareBox');
3491if (jobadNavbarIsBottom() === true) {
3492var negHeight = shareBox[0].scrollHeight;
3493if (_api.isMobile() === false && _api.width() > 900) {
3494negHeight = negHeight + 8;
3495}
3496shareBox[0].style.top = -negHeight + 'px';
3497} else {
3498shareBox[0].style.top = null;
3499}
3500if (optionBox.length > 0) {
3501var optionBoxDisplay = window.getComputedStyle(optionBox[0]).display;
3502if (optionBoxDisplay != 'none') {
3503jobadToggleBoxes('jwtpl-jobad-navOptionsBox');
3504}
3505}
3506if (noApplyBox.length > 0) {
3507_api.hide(noApplyBox[0]);
3508_api.removeClass(noApplyBox[0], 'open');
3509}
3510if (chiffreBox.length > 0) {
3511_api.hide(chiffreBox[0]);
3512_api.removeClass(chiffreBox[0], 'open');
3513}
3514});
3515}
3516if (navShareLink.length > 0) {
3517_api.event(navShareLink[0], 'click', function (event) {
3518event.preventDefault();
3519});
3520}
3521if (navShareClose.length > 0) {
3522_api.event(navShareClose[0], 'click', function () {
3523jobadToggleBoxes('jwtpl-jobad-navShareBox');
3524});
3525}
3526if (navOption.length > 0) {
3527_api.event(navOption[0], 'click', function (e) {
3528e.stopPropagation();
3529jobadToggleBoxes('jwtpl-jobad-navOptionsBox');
3530if (jobadNavbarIsBottom() === true) {
3531var negHeight = optionBox[0].scrollHeight;
3532if (_api.isMobile() === false && _api.width() > 900) {
3533negHeight = negHeight + 8;
3534}
3535optionBox[0].style.top = -negHeight + 'px';
3536} else {
3537optionBox[0].style.top = null;
3538}
3539if (shareBox.length > 0) {
3540var shareBoxDisplay = window.getComputedStyle(shareBox[0]).display;
3541if (shareBoxDisplay != 'none') {
3542jobadToggleBoxes('jwtpl-jobad-navShareBox');
3543}
3544}
3545if (noApplyBox.length > 0) {
3546_api.hide(noApplyBox[0]);
3547_api.removeClass(noApplyBox[0], 'open');
3548}
3549if (chiffreBox.length > 0) {
3550_api.hide(chiffreBox[0]);
3551_api.removeClass(chiffreBox[0], 'open');
3552}
3553});
3554}
3555if (navOptionLink.length > 0) {
3556_api.event(navOptionLink[0], 'click', function (event) {
3557event.preventDefault();
3558});
3559}
3560if (navOptionClose.length > 0) {
3561_api.event(navOptionClose[0], 'click', function () {
3562jobadToggleBoxes('jwtpl-jobad-navOptionsBox');
3563});
3564}
3565}
3566var jobadToggleBoxes = function (elementClass) {
3567var navToggleBox = _api.get('.' + elementClass);
3568if (navToggleBox.length > 0) {
3569_api.toggle(navToggleBox[0]);
3570_api.toggleClass(navToggleBox[0], 'open')
3571}
3572}
3573var jobadOptionToggleNoticeList = function () {
3574if (_api.get('.jwtpl-jobad-navOptionsItem.jwtpl-jobad-noticeListIcon').length > 0) {
3575_api.event(_api.get('.jwtpl-jobad-navOptionsItem.jwtpl-jobad-noticeListIcon')[0], 'click', function (event) {
3576event.preventDefault();
3577jobadToggleBoxes('jwtpl-jobad-itemNoticeListBox');
3578jobadToggleBoxes('jwtpl-jobad-navOptionsBox');
3579});
3580}
3581if (_api.get('.jwtpl-jobad-itemNoticeListBoxClose').length > 0) {
3582_api.event(_api.get('.jwtpl-jobad-itemNoticeListBoxClose')[0], 'click', function (event) {
3583event.preventDefault();
3584jobadToggleBoxes('jwtpl-jobad-itemNoticeListBox');
3585jobadToggleBoxes('jwtpl-jobad-navOptionsBox');
3586});
3587}
3588}
3589var jobadResizeInterval;
3590var jobadResizeIframeDims = function () {
3591var ratio;
3592var oldHeight = 0;
3593var iframe = _api.get('.jwtpl-jobad-adIframe',true);
3594var jobadBox = _api.get('.jwtpl-jobad-box',true);
3595var container = _api.get('.jwtpl-jobad-frameContainer',true);
3596var minHeight = 500;
3597var frameContentWidth = 0;
3598var currentRatio = 0;
3599if (_api.type(iframe) === undefined || iframe.length < 1) {
3600_api.printInfoMsg(" Message -> jobadResizeIframeDims() - iframe not found. abort");
3601console.log('iframe not found. abort');
3602return false;
3603}
3604function getHeight() {
3605var height = Math.max(frameHtml.offsetHeight, minHeight, frameBody.scrollHeight);
3606return height;
3607}
3608function getWidth() {
3609var width = Math.max(frameHtml.offsetWidth, frameHtml.scrollWidth, frameHtml.clientWidth, frameBody.scrollWidth);
3610return width;
3611}
3612function setRatio() {
3613if (jobadBox.length === 1 && window.getComputedStyle(jobadBox[0]).getPropertyValue("display") === 'none') {
3614return;
3615}
3616frameContentWidth = getWidth();
3617ratio = Math.floor(_api.get('.jwtpl-jobad-box', true)[0].scrollWidth / frameContentWidth * 100) / 100;
3618if (ratio < 1) {
3619frameHtml.style.transform = "scale(" + (ratio - 0.02) + ")";
3620frameHtml.style.transformOrigin = "5% 0";
3621console.log('ratio: ' + ratio)
3622} else {
3623frameHtml.style.transform = "";
3624}
3625}
3626function setIframeHeight() {
3627if(jobadCheckCors() === false) {
3628if (ratio < 0.95) {
3629var currentHeight = getHeight()*(ratio-0.02) + 'px';
3630} else {
3631var currentHeight = getHeight() + 'px';
3632}
3633if (currentHeight !== oldHeight) {
3634if (ratio < 0.95) {
3635oldHeight = getHeight();
3636container[0].style.height = oldHeight*(ratio-0.02) + 'px'
3637iframe[0].style.height = oldHeight*(ratio-0.02) + 'px';
3638} else {
3639oldHeight = getHeight();
3640container[0].style.height = oldHeight + 'px'
3641iframe[0].style.height = oldHeight + 'px';
3642}
3643}
3644}
3645}
3646let scrollToggler = false;
3647iframeResizeCounter++;
3648if(iframeResizeCounter >= 10 && scrollToggler === false ){
3649if(iframe.length > 0 && iframe[0].contentDocument.readyState === 'interactive') {
3650iframe[0].setAttribute('scrolling', 'yes');
3651scrollToggler = true;
3652}
3653}
3654if (jobadCheckCors() === false && (iframe[0].contentDocument.readyState !== 'complete' || iframe[0].contentWindow.location.href === 'about:blank')) {
3655setTimeout(function () {
3656jobadResizeIframeDims();
3657}, 100);
3658} else {
3659iframe[0].setAttribute('scrolling', 'no');
3660if (jobadCheckCors() === false && iframe.length > 0) {
3661if (iframe[0].getAttribute('data-jwtpl-jobad-swipe') === '1') {
3662jobadSwipe();
3663}
3664var frameBody = iframe[0].contentWindow.document.body;
3665var frameHtml = iframe[0].contentWindow.document.documentElement;
3666if (frameHtml.scrollWidth > iframe[0].clientWidth) {
3667setRatio();
3668setTimeout( function () {setRatio();},1000);
3669}
3670clearInterval(jobadResizeInterval);
3671jobadResizeInterval = setInterval(setIframeHeight, 200);
3672setIframeHeight()
3673var resizeTimeout;
3674_api.event(window, 'resize', function () {
3675if (resizeTimeout) {
3676clearTimeout(resizeTimeout);
3677}
3678resizeTimeout = setTimeout(
3679function () {
3680setRatio();
3681}, 200
3682)
3683})
3684}
3685}
3686}
3687var jobadKeyboardNavigation = function () {
3688if (_api.isLocalHost()) {
3689window.addEventListener('keydown', function (event) {
3690if (event.key == 'ArrowRight') {
3691var inputs = document.querySelectorAll('input:focus');
3692if(inputs.length > 0){
3693return;
3694}
3695_api.get('.jwtpl-jobad-navNextIcon')[0].click();
3696}
3697if (event.key == 'ArrowLeft') {
3698var inputs = document.querySelectorAll('input:focus');
3699if(inputs.length > 0){
3700return;
3701}
3702_api.get('.jwtpl-jobad-navBackIcon')[0].click();
3703}
3704})
3705}
3706}
3707var jobadClickOnPrevNextButton = function () {
3708var nextButton = _api.get('.jwtpl-jobad-navNext');
3709if (nextButton.length > 0) {
3710_api.event(nextButton[0], 'click', function (event) {
3711if (_api.type(this.parentElement) !== undefined) {
3712if (_api.hasClass(this.parentElement, 'jwtpl-jobad-navInactive') === true) {
3713event.preventDefault();
3714}
3715}
3716});
3717}
3718var prevButton = _api.get('.jwtpl-jobad-navBack a');
3719if (prevButton.length > 0) {
3720_api.event(prevButton[0], 'click', function (event) {
3721if (_api.type(this.parentElement) !== undefined) {
3722if (_api.hasClass(this.parentElement, 'jwtpl-jobad-navInactive') === true) {
3723event.preventDefault();
3724}
3725}
3726});
3727}
3728}
3729var jobadNextPrevButton = function () {
3730var nextBtn = _api.get('.jwtpl-jobad-navNext');
3731var prevBtn = _api.get('.jwtpl-jobad-navBack');
3732var jobadBlock = _api.get('.jwtpl-jobad-block');
3733var jumpToTag = '';
3734if (jobadBlock.length > 0) {
3735var jumpToTag = jobadBlock[0].getAttribute('data-jwtpl-jobad-jumpto');
3736}
3737if (nextBtn.length > 0) {
3738_api.event(nextBtn[0], 'click', function (event) {
3739var nextBtnUrlFallback = true;
3740var dataAttrUrl = '';
3741var nextBtnUrlElem = _api.get('.jwtpl-jobad-navNextUrl');
3742if (nextBtnUrlElem.length > 0) {
3743dataAttrUrl = nextBtnUrlElem[0].getAttribute('data-jwtpl-jobad-navnext');
3744if ((dataAttrUrl !== null && dataAttrUrl !== '') && (_api.type(jumpToTag) === 'String')) {
3745if (_api.type(nextBtn[0].href) !== 'String') {
3746nextBtnUrlElem[0].href = dataAttrUrl + '#' + jumpToTag;
3747nextBtnUrlFallback = false;
3748}
3749}
3750if ((nextBtnUrlFallback === true)) {
3751var hiliItemDataAttr = _api.get('[data-jwtpl-jobad-hili]');
3752if (hiliItemDataAttr.length > 0) {
3753hiliItemDataAttr = hiliItemDataAttr[0].getAttribute('data-jwtpl-jobad-hili');
3754} else {
3755hiliItemDataAttr = '';
3756}
3757var hiliPagerDataAttr = _api.get('[data-jwtpl-jobad-hilipager]');
3758if (hiliPagerDataAttr.length > 0) {
3759hiliPagerDataAttr = hiliPagerDataAttr[0].getAttribute('data-jwtpl-jobad-hilipager');
3760} else {
3761hiliPagerDataAttr = '';
3762}
3763if (hiliItemDataAttr.trim() !== '' && hiliPagerDataAttr.trim() !== '') {
3764var docOrigin = document.location.origin;
3765var docPath = document.location.pathname;
3766var actUrl = docOrigin + docPath;
3767if (actUrl !== '' && _api.type(nextBtnUrlElem[0].href) !== undefined) {
3768var nextItemUrl = jobadGetNextPrevItemUrl('1', hiliItemDataAttr, actUrl, hiliPagerDataAttr);
3769if (nextItemUrl.trim() !== '') {
3770nextBtnUrlElem[0].href = nextItemUrl;
3771} else {
3772if (_api.type(nextBtnUrlElem[0].parentElement) !== undefined) {
3773nextBtnUrlElem[0].parentElement.classList.add('jwtpl-jobad-navInactive');
3774}
3775}
3776}
3777}
3778}
3779}
3780});
3781}
3782if (prevBtn.length > 0) {
3783_api.event(prevBtn[0], 'click', function (event) {
3784var prevBtnUrlFallback = true;
3785var dataAttrUrl = '';
3786var prevBtnUrlElem = _api.get('.jwtpl-jobad-navBackUrl');
3787if (prevBtnUrlElem.length > 0) {
3788dataAttrUrl = prevBtnUrlElem[0].getAttribute('data-jwtpl-jobad-navback');
3789if ((dataAttrUrl !== null && dataAttrUrl !== '') && (_api.type(jumpToTag) === 'String')) {
3790if (_api.type(prevBtn[0].href !== 'String')) {
3791prevBtnUrlElem[0].href = dataAttrUrl + '#' + jumpToTag;
3792prevBtnUrlFallback = false;
3793}
3794}
3795if (prevBtnUrlFallback === true) {
3796var hiliItemDataAttr = _api.get('[data-jwtpl-jobad-hili]');
3797if (hiliItemDataAttr.length > 0) {
3798hiliItemDataAttr = hiliItemDataAttr[0].getAttribute('data-jwtpl-jobad-hili');
3799} else {
3800hiliItemDataAttr = '';
3801}
3802var hiliPagerDataAttr = _api.get('[data-jwtpl-jobad-hilipager]');
3803if (hiliPagerDataAttr.length > 0) {
3804hiliPagerDataAttr = hiliPagerDataAttr[0].getAttribute('data-jwtpl-jobad-hilipager');
3805} else {
3806hiliPagerDataAttr = '';
3807}
3808if (hiliItemDataAttr.trim() !== '' && hiliPagerDataAttr.trim() !== '') {
3809var docOrigin = document.location.origin;
3810var docPath = document.location.pathname;
3811var actUrl = docOrigin + docPath;
3812if (actUrl !== '' && _api.type(prevBtnUrlElem[0].href) !== undefined) {
3813var prevItemUrl = jobadGetNextPrevItemUrl('0', hiliItemDataAttr, actUrl, hiliPagerDataAttr);
3814if (prevItemUrl.trim() !== '') {
3815prevBtnUrlElem[0].href = prevItemUrl;
3816} else {
3817if (_api.type(nextBtnUrlElem[0].parentElement) !== undefined) {
3818prevBtnUrlElem[0].parentElement.classList.add('jwtpl-jobad-navInactive');
3819}
3820}
3821}
3822}
3823}
3824}
3825});
3826}
3827}
3828var jobadGetNextPrevItemUrl = function (nextOrPrev, hiliItemDataAttr, actUrl, hiliPagerDataAttr) {
3829var itemUrl = ''
3830if (hiliItemDataAttr.trim() !== '' && nextOrPrev.trim() !== '' && (nextOrPrev === '0' || nextOrPrev === '1')) {
3831switch (hiliItemDataAttr) {
3832case 'hili':
3833if (nextOrPrev === '0') {
3834itemUrl = hiliGetPrevItem(actUrl);
3835if (itemUrl.trim() === '') {
3836itemUrl = jobadGetNextPrevPagerUrl(nextOrPrev, hiliPagerDataAttr);
3837}
3838} else if (nextOrPrev === '1') {
3839itemUrl = hiliGetNextItem(actUrl);
3840if (itemUrl.trim() === '') {
3841itemUrl = jobadGetNextPrevPagerUrl(nextOrPrev, hiliPagerDataAttr);
3842}
3843} else {
3844itemUrl = '';
3845}
3846break;
3847}
3848}
3849return itemUrl;
3850}
3851var jobadGetNextPrevPagerUrl = function (nextOrPrev, hiliPagerDataAttr) {
3852var pagerUrl = '';
3853if (hiliPagerDataAttr.trim() !== '' && nextOrPrev.trim() !== '' && (nextOrPrev === '0' || nextOrPrev === '1')) {
3854switch (hiliPagerDataAttr) {
3855case 'hilipage':
3856if (nextOrPrev === '0') {
3857pagerUrl = hilipageGetPrevPager();
3858} else if (nextOrPrev === '1') {
3859pagerUrl = hilipageGetNextPager();
3860} else {
3861pagerUrl = '';
3862}
3863break;
3864}
3865}
3866return pagerUrl;
3867}
3868var jobadToggleHili = function () {
3869var hilibody = _api.get('body');
3870var hilibackground = _api.get('.jwtpl-jobad-hili-background');
3871var hili = _api.get('.jwdrf-sidebar-inner');
3872var hiliToggle = _api.get('.jwtpl-jobad-hili-toggle');
3873var activeItem = _api.get('.jwtpl-hili-itemActive');
3874var initCall = false;
3875if (hilibackground.length === 0 || hili.length === 0 || hiliToggle.length === 0) {
3876return false;
3877}
3878var isResultPage = _api.hasClass(document.body, 'jwtpl-sys-bodyPtResult') ||
3879_api.hasClass(document.body, 'jwtpl-sys-bodyPtSeo') ||
3880_api.hasClass(document.body, 'jwtpl-sys-bodyPtAdvertiser');
3881/*
3882hilibackground[0].addEventListener('click', function (event) {
3883hiliToggle[0].click();
3884})
3885*/
3886function toggleHili () {
3887_api.toggleClass(hilibody[0], 'jwtpl-jobad-hiliVisible');
3888_api.toggleClass(hilibackground[0], 'jwtpl-jobad-hiliVisible');
3889_api.toggleClass(hili[0], 'jwtpl-jobad-hiliVisible');
3890_api.toggleClass(hiliToggle[0], 'jwtpl-jobad-hiliVisible');
3891if (hiliToggle[0].style.transform === "") {
3892if(initCall === false && isResultPage === true) {
3893initCall = true;
3894setTimeout(function(){
3895hiliToggle[0].style.transform = 'translateX(' + (hili[0].offsetWidth) + 'px)';
3896},1);
3897} else {
3898hiliToggle[0].style.transform = 'translateX(' + (hili[0].offsetWidth) + 'px)';
3899}
3900} else {
3901hiliToggle[0].style.transform = "";
3902}
3903if (activeItem.length > 0 && hili[0].scrollTop === 0) {
3904hili[0].scrollTop = activeItem[0].offsetTop;
3905}
3906}
3907if (_api.isMobile()) {
3908window.addEventListener('resize', function () {
3909hili[0].style.height = window.innerHeight + 'px';
3910});
3911}
3912if (hiliToggle.length > 0) {
3913if (typeof Hammer !== "function") {
3914_api.printErrorMsg(" Message -> jobadSwipe() - hammer.js not found. Swiping might be disabled in settings");
3915} else{
3916var hiliSwipe = new Hammer(hili[0]);
3917hiliSwipe.on('swipeleft', toggleHili);
3918var backgroundSwipe = new Hammer(hilibackground[0]);
3919backgroundSwipe.on('swipeleft', toggleHili);
3920var toggleSwipe = new Hammer(hiliToggle[0]);
3921toggleSwipe.on('swipe', toggleHili);
3922}
3923window.addEventListener('resize', function () {
3924if (hiliToggle[0].classList.contains('jwtpl-jobad-hiliVisible')) {
3925hiliToggle[0].style.transform = 'translateX(' + (hili[0].offsetWidth) + 'px)';
3926}
3927});
3928_api.event(hiliToggle[0], 'click', toggleHili);
3929}
3930if (_api.width() < 1100 && _api.get('.jwtpl-jobad-hili-toggle').length > 0 && isResultPage) {
3931_api.get('.jwtpl-jobad-hili-toggle')[0].click();
3932}
3933}
3934var jobadRegistSaveButton = function (className) {
3935if (typeof jobadSaveButtonArr === 'undefined') {
3936jobadSaveButtonArr = new Array();
3937}
3938jobadSaveButtonArr.push(className);
3939}
3940var jobadMarkIfJobIsSaved = function () {
3941setTimeout(function () {
3942var dataElement = _api.get('[data-jwtpl-jobad-hili]');
3943var dataElementUrl = _api.get('[data-jwtpl-jobad-url]');
3944for (var btn = 0; btn < jobadSaveButtonArr.length; btn++) {
3945var jobadFavEl = _api.get(jobadSaveButtonArr[btn]);
3946var adUrl = '';
3947if (((dataElement.length > 0) || (dataElementUrl.length > 0)) && (jobadFavEl.length > 0)) {
3948var dataUrl = dataElementUrl[0].getAttribute('data-jwtpl-jobad-url');
3949if ((dataElementUrl.length > 0) && (dataUrl !== '')) {
3950var jsonConfigStr = _globalGetJsonConfig();
3951if (jsonConfigStr['noli-b'] !== undefined) {
3952var version = _globalGetJsonText('noli-b', '', 'vs');
3953if (version === 'v2') {
3954var localStorage = window.localStorage;
3955if ((_api.type(localStorage) !== undefined) && (_api.getLcItem('noli') !== false) && (_api.type(JSON.parse(_api.getLcItem('noli'))) !== undefined)) {
3956var localJson = JSON.parse(_api.getLcItem('noli'))['item'];
3957if (_api.type(localJson) !== undefined) {
3958for (var lsElem = 0; lsElem < localJson.length; lsElem++) {
3959var lsUrl = localJson[lsElem].url;
3960if (lsUrl === dataUrl) {
3961lsElem = localJson.length;
3962_api.addClass(jobadFavEl[0], 'jwtpl-jobad-jobMarked');
3963}
3964}
3965}
3966}
3967} else {
3968if (_globalCheckIfValueExistInCookie('jw_saveJob', dataUrl, 4) === true) {
3969_api.addClass(jobadFavEl[0], 'jwtpl-jobad-jobMarked');
3970}
3971}
3972}
3973} else if (dataElement.length > 0) {
3974var actHili = _api.get('.jwtpl-' + dataElement[0].getAttribute('data-jwtpl-jobad-hili') + '-block');
3975if (actHili.length > 0) {
3976var actMarkedElInHili = actHili[0].querySelectorAll('.jwtpl-hili-itemActive');
3977if (actMarkedElInHili.length > 0) {
3978var elIsMarked = actMarkedElInHili[0].querySelectorAll('.jwtpl-hili-itemMarked');
3979if (elIsMarked.length > 0) {
3980_api.addClass(jobadFavEl[0], 'jwtpl-jobad-jobMarked');
3981}
3982}
3983}
3984}
3985}
3986}
3987}, 500);
3988}
3989var jobadOverrideDefaultColor = function () {
3990const hybridMopsDrei = _api.get('.jwtpl-jobad-innerLiquidBox30');
3991if(hybridMopsDrei.length > 0){
3992const hybridDreiColorsAttribute = hybridMopsDrei[0].getAttribute('data-jwtpl-jobad-liquidColors');
3993const hybridDreiTitleColors = _api.get('.jwtpl-jobad-liquidTitleColor');
3994if(hybridDreiColorsAttribute !== undefined && hybridDreiTitleColors.length > 0){
3995const parts = hybridDreiColorsAttribute.split(',');
3996_api.each(hybridDreiTitleColors, function (hybridDreiTitleColor) {
3997if (parts.length === 2 && parts[0] === 'v3' && parts[1] !== '#') {
3998if((parts[1].toLowerCase() === '#fff')||(parts[1].toLowerCase() === '#ffffff')){
3999parts[1] = '#000';
4000}
4001hybridDreiTitleColor.style.color = `${parts[1]}`;
4002}
4003});
4004}
4005return true;
4006}
4007return false;
4008}
4009var jobadSaveJob = function () {
4010for (var btn = 0; btn < jobadSaveButtonArr.length; btn++) {
4011if (_api.get(jobadSaveButtonArr[btn]).length > 0) {
4012_api.event(_api.get(jobadSaveButtonArr[btn])[0], 'click', function (event) {
4013event.preventDefault();
4014if (_api.isCookieFull() === false) {
4015if (_api.hasClass(this, 'jwtpl-jobad-jobMarked') == false) {
4016_api.addClass(this, 'jwtpl-jobad-jobMarked');
4017} else {
4018_api.removeClass(this, 'jwtpl-jobad-jobMarked');
4019}
4020jobadSaveJobAdHeader(this);
4021}
4022});
4023}
4024}
4025noli_bRefreshMarked();
4026}
4027var jobadSaveJobAdHeader = function (clickSrc) {
4028isMarked = _api.hasClass(clickSrc, 'jwtpl-jobad-jobMarked');
4029if (isMarked) {
4030var htmlJobDetails = _api.get('.jwtpl-jobad-headline');
4031if (htmlJobDetails.length > 0) {
4032var titleElement = htmlJobDetails[0].querySelectorAll('.jwtpl-jobad-title');
4033var adTitle = '';
4034if (titleElement.length > 0) {
4035adTitle = titleElement[0].innerHTML;
4036if (adTitle.match(/&amp;/) || adTitle.match(/,/)) {
4037adTitle = adTitle.replace(/&amp;/g, "&amp");
4038adTitle = adTitle.replace(/,/g, "'");
4039}
4040}
4041var companyElement = htmlJobDetails[0].querySelectorAll('.jwtpl-jobad-company');
4042var adCompany = '';
4043if (companyElement.length > 0) {
4044adCompany = companyElement[0].innerHTML;
4045if (adCompany.match(/&amp;/) || adCompany.match(/\|/) || adCompany.match(/,/)) {
4046adCompany = adCompany.replace(/&amp;/g, "&amp");
4047adCompany = adCompany.replace(/\|/g, "´");
4048adCompany = adCompany.replace(/,/g, "'");
4049}
4050adCompany = adCompany.replace(/<[\/]{0,1}a[^>]*>/gi, '');
4051}
4052var locationElement = htmlJobDetails[0].querySelectorAll('.jwtpl-jobad-location');
4053var adLocation = '';
4054if (locationElement.length > 0) {
4055adLocation = locationElement[0].innerHTML;
4056if (adLocation.match(/,/)) {
4057adLocation = adLocation.replace(/,/g, "'");
4058}
4059}
4060var dateElement = htmlJobDetails[0].querySelectorAll('.jwtpl-jobad-date');
4061if (dateElement.length > 0) {
4062var adDate = dateElement[0].innerHTML;
4063}
4064var dataElement = _api.get('[data-jwtpl-jobad-hili]');
4065var dataElementUrl = _api.get('[data-jwtpl-jobad-url]');
4066var adUrl = '';
4067if ((dataElement.length > 0) || (dataElementUrl.length > 0)) {
4068if ((dataElementUrl.length > 0) && (dataElementUrl[0].getAttribute('data-jwtpl-jobad-url') !== '')) {
4069adUrl = dataElementUrl[0].getAttribute('data-jwtpl-jobad-url');
4070adUrl = adUrl.replace(/\Detail\//g, '');// TODO: evtl durch
4071// PHP ändern!!
4072} else if (dataElement.length > 0) {
4073var actHili = _api.get('.jwtpl-' + dataElement[0].getAttribute('data-jwtpl-jobad-hili') + '-block');
4074if (actHili.length > 0) {
4075var actMarkedElInHili = actHili[0].querySelectorAll('.jwtpl-' + dataElement[0].getAttribute('data-jwtpl-jobad-hili') + '-itemActive');
4076if (actMarkedElInHili.length > 0) {
4077var actItemUrl = actMarkedElInHili[0].querySelectorAll('.jwtpl-' + dataElement[0].getAttribute('data-jwtpl-jobad-hili') + '-itemLink');
4078if (actItemUrl.length > 0) {
4079adUrl = actItemUrl[0].href;
4080}
4081}
4082}
4083}
4084}
4085var arrInfos = [];
4086arrInfos[0] = adTitle;
4087arrInfos[1] = adCompany;
4088arrInfos[2] = adLocation;
4089arrInfos[3] = adDate;
4090arrInfos[4] = adUrl;
4091noli_bSaveJobDataIn(arrInfos);
4092jobadMarkIfJobIsSaved();
4093noli_bRefreshMarked();
4094if (!_globalCheckIfValueExistInCookie("jw_saveJob", arrInfos[4], 4)) {
4095expire = new Date();
4096var timeInSeconds = parseInt(noli_bGetJsonText('clt'));
4097expire.setTime(expire.getTime() + (timeInSeconds * 1000));
4098if (_globalIsCookie("jw_saveJob=")) {
4099_globalSetCookie('jw_saveJob', _globalGetCookie('jw_saveJob') + '|' + arrInfos, expire, '/', true);
4100} else {
4101_globalSetCookie('jw_saveJob', arrInfos, expire, '/');
4102}
4103jobadMarkIfJobIsSaved();
4104noli_bRefreshMarked();
4105}
4106}
4107} else {
4108noli_bDeleteJobAd(clickSrc, false);
4109jobadDeleteJobAd(clickSrc, false);
4110}
4111}
4112var jobadDeleteJobAd = function (paramAkt, isBtn) {
4113if (_globalIsCookie("jw_saveJob=")) {
4114if (_globalGetCookie('jw_saveJob').match('\|[^;]*') != '') {
4115var cookieAllAds = _globalGetCookie('jw_saveJob').split('|');
4116} else {
4117var cookieAllAds = _globalGetCookie('jw_saveJob');
4118}
4119if (isBtn) {
4120var grandParent = jQuery(paramAkt).parent();
4121var grandGrandParent = grandParent.parent();
4122var modToken = grandGrandParent[0].className.match(/jwtpl-([^-]*)-.*/g)[0].replace("jwtpl-", '').replace(/-.*/, '');
4123var adTitleLink = jQuery(grandGrandParent[0].getElementsByClassName('jwtpl-' + modToken + '-listJobsItemLink')).attr('href');
4124adUrlRemove = adTitleLink.match(/.html[^\s]*/);
4125adTitleLink = adTitleLink.replace(adUrlRemove[0], '.html');
4126} else {
4127var dataElement = _api.get('[data-jwtpl-jobad-hili]');
4128var adTitleLink = '';
4129if (dataElement.length > 0) {
4130var actHili = _api.get('.jwtpl-' + dataElement[0].getAttribute('data-jwtpl-jobad-hili') + '-block');
4131if (actHili.length > 0) {
4132var actMarkedElInHili = actHili[0].querySelectorAll('.jwtpl-hili-itemActive');
4133if (actMarkedElInHili.length > 0) {
4134var actItemUrl = actMarkedElInHili[0].querySelectorAll('.jwtpl-hili-itemLink');
4135if (actItemUrl.length > 0) {
4136adTitleLink = actItemUrl[0].href;
4137}
4138}
4139}
4140}
4141}
4142adTitleLinkReplace = adTitleLink;
4143adTitleLinkReplace = adTitleLinkReplace.replace(/\//g, '\\/');
4144var matchRegex = new RegExp("[^\\|]*" + adTitleLink + "\\|");
4145var matchRegex2 = new RegExp("[^\\|]*" + adTitleLink);
4146var aktCookie = _globalGetCookie('jw_saveJob');
4147if (aktCookie.match(matchRegex) == null) {
4148matchRegex = matchRegex2;
4149}
4150if (aktCookie.match(matchRegex) != null) {
4151var cookieRemove = aktCookie.match(matchRegex)[0];
4152noli_bDeleteJobAdCookie('jw_saveJob', cookieRemove);
4153}
4154}
4155jobadMarkIfJobIsSaved();
4156noli_bRefreshMarked();
4157}
4158var jobadSetWhatsappLink = function () {
4159if (navigator.userAgent.toLowerCase().indexOf('firefox') > -1) {
4160var link = _api.get('.jwtpl-jobad-whatsAppIcon');
4161if (link.length > 0) {
4162var href = link[0].href;
4163link[0].href = href.replace('wa.me', 'web.whatsapp.com');
4164}
4165}
4166}
4167var jobadCloseOpenedDropdownOnAction = function () {
4168var html = _api.get('html');
4169var dropDowns = _api.get('.jwtpl-jobad-navShareBox, .jwtpl-jobad-navOptionsBox, .jwtpl-jobad-navChiffreBox, .jwtpl-jobad-navNoApplyBox, .jwtpl-jobad-optionsNavShareBox, .jwtpl-jobad-navB2gApplyBox', true);
4170if (html.length > 0) {
4171_api.event(html[0], 'click', function (e) {
4172if (dropDowns.length > 0) {
4173_api.each(dropDowns, function (item) {
4174if (_api.type(item.style) !== undefined && _api.type(item.style.display) !== undefined && (item.style.display === 'block' || item.style.display === '')) {
4175_api.hide(item);
4176if (_api.hasClass(item, 'jwtpl-jobad-optionsNavShareBox') === true) {
4177_api.removeClass(item, 'open');
4178}
4179}
4180});
4181}
4182});
4183}
4184window.addEventListener('scroll', function (e) {
4185if (dropDowns.length > 0) {
4186_api.each(dropDowns, function (item) {
4187if (_api.type(item.style) !== undefined && _api.type(item.style.display) !== undefined && (item.style.display === 'block' || item.style.display === '')) {
4188_api.hide(item);
4189_api.removeClass(item, 'open');
4190}
4191});
4192}
4193});
4194}
4195var jobadPrint = function () {
4196var printLinks = _api.get('.jwtpl-jobad-printIcon, .jwtpl-jobad-print');
4197if (printLinks.length > 0) {
4198var jobad = _api.get('.jwtpl-jobad-adIframe');
4199if(jobad.length > 0){
4200_api.each(printLinks, function(item){
4201_api.event(item, 'click', function(e){
4202e.preventDefault();
4203try{
4204jobad[0].contentWindow.print();
4205} catch(e) {}
4206});
4207_api.event(item, 'keydown', function(e){
4208e.preventDefault();
4209if (e.key === 'Enter' || e.key === ' ') {
4210try{
4211jobad[0].contentWindow.print();
4212}catch {}
4213}
4214});
4215});
4216}
4217}
4218}
4219var jobadJumpAfterSearch = function () {
4220var activeAd = document.querySelector('.jwtpl-hili-itemActive');
4221var sidebar = document.querySelector('.jwdrf-sidebar-inner');
4222var searchbox = document.querySelector('.jwtpl-sebo-innerSticky');
4223var delay = 1;
4224var deviceCorretion = 0;
4225if(_api.getUrlParameter('jscg') !== false || _api.getUrlParameter('jssc') !== false || _api.getUrlParameter('jsso') !== false){
4226delay = 75;
4227}
4228if(_api.isIphone() === true) {
4229deviceCorretion = 0;
4230}
4231if (activeAd !== null && sidebar !== null && searchbox !== null && !document.body.classList.contains('jwtpl-sys-bodyPtResult') && activeAd.previousElementSibling !== null) {
4232setTimeout(function(){
4233activeAd.scrollIntoView();
4234if(_api.isMobile() === true) {
4235sidebar.scrollTop -= ( searchbox.scrollHeight + 20 + deviceCorretion);
4236} else {
4237sidebar.scrollTop -= ( searchbox.scrollHeight + 5 + deviceCorretion);
4238/*
4239sidebar.scrollTo({
4240top: activeAd.offsetTop - ( searchbox.scrollHeight + 20 + deviceCorretion),
4241behavior: 'smooth'
4242});
4243*/
4244}
4245}, delay);
4246}
4247var jobadBlock = _api.get('.jwtpl-jobad-block');
4248if (jobadBlock.length > 0) {
4249if (document.body.classList.contains('jwtpl-sys-bodyPtResult') === true || document.body.classList.contains('jwtpl-sys-bodyPtSeo') === true || document.body.classList.contains('jwtpl-sys-bodyPtAdvertiser') === true) {
4250setTimeout(function(){
4251//jumpToElement[0].scrollIntoView();
4252sidebar.scrollTop = 0;
4253}, delay);
4254}
4255}
4256}
4257var jobadNavbarIsBottom = function () {
4258var navigation = _api.get('.jwtpl-jobad-navigation')[0];
4259var bottomContainer = _api.get('.jwtpl-jobad-navigation-container-bottom')[0]
4260var isMobile = window.innerWidth < 900;
4261if (navigation.classList.contains('jwtpl-jobad-navigation-sticky-bottom') || navigation.parentElement === bottomContainer || isMobile) {
4262navigation.classList.add('nav-is-bottom');
4263return true;
4264} else {
4265navigation.classList.remove('nav-is-bottom');
4266return false;
4267}
4268}
4269var jobadToggleEmbeddedShareBox = function () {
4270var
4271trigger = _api.get('.jwtpl-jobad-navOptionsItem.jwtpl-jobad-shareIcon'),
4272naviShareBox = _api.get('.jwtpl-jobad-optionsNavShareBox');
4273if (trigger.length > 0 && naviShareBox.length > 0) {
4274_api.event(trigger[0], 'click', function (e) {
4275e.preventDefault();
4276e.stopPropagation();
4277if (_api.hasClass(naviShareBox[0], 'open') === false) {
4278if (jobadNavbarIsBottom() === true) {
4279var optionsNavShareBox = _api.get('.jwtpl-jobad-navOptionsBox');
4280if (optionsNavShareBox.length > 0) {
4281var negOffset = window.getComputedStyle(optionsNavShareBox[0]).getPropertyValue('top');
4282negOffset = parseInt(negOffset);
4283negOffset = negOffset - 264;
4284optionsNavShareBox[0].style.top = negOffset + "px";
4285}
4286}
4287_api.addClass(naviShareBox[0], 'open');
4288_api.show(naviShareBox[0]);
4289} else {
4290if (jobadNavbarIsBottom() === true) {
4291var optionsNavShareBox = _api.get('.jwtpl-jobad-navOptionsBox');
4292if (optionsNavShareBox.length > 0) {
4293var negOffset = window.getComputedStyle(optionsNavShareBox[0]).getPropertyValue('top');
4294negOffset = parseInt(negOffset);
4295negOffset = negOffset + 264;
4296optionsNavShareBox[0].style.top = negOffset + "px";
4297}
4298}
4299_api.removeClass(naviShareBox[0], 'open');
4300_api.hide(naviShareBox[0]);
4301}
4302});
4303}
4304}
4305var jobadSwipe = function () {
4306if(jobadCheckCors() === true){
4307return false;
4308}
4309var adType = null;
4310if (typeof Hammer !== "function") {
4311_api.printErrorMsg(" Message -> jobadSwipe() - hammer.js not found. Swiping might be disabled in settings");
4312return;
4313}
4314var iframe = document.querySelector('.jwtpl-jobad-adIframe');
4315var hybrid = document.querySelector('.jwtpl-jobad-boxLiquid');
4316if (iframe !== null) {
4317adType = "iframe";
4318var iframeBody = iframe.contentDocument.body;
4319var threshold = document.body.clientWidth / 2.5;
4320_api.printInfoMsg(" Message -> jobadSwipe() - iframe found");
4321} else if (hybrid !== null) {
4322adType = "hybrid";
4323var iframeBody = hybrid;
4324var threshold = hybrid.clientWidth / 2.5;
4325_api.printInfoMsg(" Message -> jobadSwipe() - hybrid found");
4326} else {
4327_api.printErrorMsg(" Message -> jobadSwipe() - no swipable ad found");
4328return
4329}
4330delete Hammer.defaults.cssProps.userSelect;
4331if (iframeBody === null) {
4332return;
4333}
4334var touchGestures = new Hammer(iframeBody);
4335var arrowRight = document.querySelector('.jwtpl-jobad-swipe-arrow-right');
4336var arrowLeft = document.querySelector('.jwtpl-jobad-swipe-arrow-left');
4337var prevButton = document.querySelector('a.jwtpl-jobad-navBackActive1');
4338var nextButton = document.querySelector('a.jwtpl-jobad-navNextActive1');
4339var allowLeft = true;
4340var allowRight = true;
4341if (nextButton === null) {
4342allowLeft = false;
4343}
4344if (prevButton === null) {
4345allowRight = false;
4346}
4347if (arrowRight === null || arrowLeft === null) {
4348_api.printErrorMsg(" Message ->
4348 jobadSwipe() - swipe arrows not found");
4349return;
4350}
4351touchGestures.on('panstart', function (ev) {
4352// iframeBody.style.willChange = "transform";
4353if (ev.pointerType === 'mouse' || ev.srcEvent.type === 'pointercancel' || ev.target.className.substring(0, 4) === "owl-") {
4354return;
4355};
4356iframeBody.style.transition = "";
4357});
4358touchGestures.on('panmove', function (ev) {
4359if (ev.pointerType === 'mouse' || ev.srcEvent.type === 'pointercancel' || ev.target.className.substring(0, 4) === "owl-") {
4360return;
4361};
4362iframeBody.style.transition = "";
4363if (ev.offsetDirection === 2 && allowLeft === true) {
4364if (Math.abs(ev.deltaX) < threshold) {
4365iframeBody.style.transform = "translateX(" + ev.deltaX * 0.8 + "px)";
4366}
4367arrowRight.style.opacity = ev.distance / (threshold);
4368arrowRight.style.display = "inline";
4369arrowLeft.style.display = "";
4370}
4371if (ev.offsetDirection === 4 && allowRight === true) {
4372if (Math.abs(ev.deltaX) < threshold) {
4373iframeBody.style.transform = "translateX(" + ev.deltaX * 0.8 + "px)";
4374}
4375arrowLeft.style.opacity = ev.distance / (threshold);
4376arrowLeft.style.display = "inline";
4377arrowRight.style.display = "";
4378}
4379});
4380touchGestures.on('panend', function (ev) {
4381if (ev.pointerType === 'mouse' || ev.target.className.substring(0, 4) === "owl-") {
4382return;
4383};
4384iframeBody.style.transition = "all 0.3s";
4385if ((ev.direction === 2 || ev.offsetDirection === 2) && ev.distance > threshold && allowLeft === true) {
4386arrowRight.classList.add('jwtpl-jobad-swipe-loading');
4387window.location = nextButton.href;
4388}
4389else if ((ev.direction === 4 || ev.offsetDirection === 4) && ev.distance > threshold && allowRight === true) {
4390arrowLeft.classList.add('jwtpl-jobad-swipe-loading')
4391window.location = prevButton.href;
4392}
4393else {
4394iframeBody.style.transform = "";
4395arrowLeft.style.display = 'none';
4396arrowRight.style.display = 'none';
4397}
4398});
4399}
4400var jobadSlider = function (parentElement) {
4401parentElement = document.querySelector(".jwtpl-jobad-videoList")
4402var slides = parentElement.children;
4403parentElement.style.width = slides.length * slides[0].scrollWidth + "px";
4404parentElement.style.position = "absolute";
4405parentElement.style.display = "flex";
4406parentElement.style.height = "400px";
4407parentElement.style.overflow = "hidden";
4408parentElement.style.right = 0;
4409for (var i = 0; i < slides.length; i++) {
4410slides[i].style.display = "inline";
4411slides[i].style.width = "100%";
4412slides[i].style.flexBasis = 0;
4413}
4414function moveSlides() {
4415console.log("move")
4416// parentElement.style.right = parseInt(parentElement.style.right,10) +
4417// slides[0].scrollWidth + "px";
4418};
4419setInterval(moveSlides, 3000)
4420}
4421var jobadInitializeSwiperAndVideos = function() {
4422var containerPrev = _api.get('.jwtpl-jobad-liquidVideoSwiperButtonContainerPrev', true),
4423buttonPrev = _api.get('.jwtpl-jobad-liquidVideoSwiperButtonContainerPrev .swiper-button-prev', true),
4424containerNext = _api.get('.jwtpl-jobad-liquidVideoSwiperButtonContainerNext', true),
4425buttonNext = _api.get('.jwtpl-jobad-liquidVideoSwiperButtonContainerNext .swiper-button-next', true),
4426videoLayers = _api.get('.jwtpl-jobad-liquidVideoLayer', true),
4427videoList = _api.get('.jwtpl-jobad-liquidVideoList', true),
4428swiperButtonContainer = _api.get('.jwtpl-jobad-liquidVideoSwiperButtonContainer', true);
4429if (videoLayers.length > 1) {
4430swiperButtonContainer[0].classList.remove('jwtpl-gc-hidden1');
4431}
4432if (videoList.length > 0) {
4433videoList[0].classList.remove('jwtpl-gc-hidden1');
4434}
4435var swiper = new Swiper('.jwtpl-jobad-liquidVideoList', {
4436slidesPerView: 1,
4437spaceBetween: 10,
4438navigation: {
4439nextEl: '.swiper-button-next',
4440prevEl: '.swiper-button-prev',
4441},
4442on: {
4443slideChange: function () {
4444function handleSlideChange(container, button) {
4445if (button.classList.contains('swiper-button-disabled')) {
4446container.classList.add('disabled');
4447} else {
4448container.classList.remove('disabled');
4449}
4450}
4451handleSlideChange(containerPrev[0], buttonPrev[0]);
4452handleSlideChange(containerNext[0], buttonNext[0]);
4453},
4454},
4455});
4456_api.each(videoLayers, video => {
4457var videoSrc = video.getAttribute('data-jwtpl-jobad-liquidVideoSrc');
4458var videoEmbed = '<div style="position:absolute;overflow:hidden;width:100%;height:100%;"><iframe style="position:absolute;width:100%;height:100%;" src="' + videoSrc + '" frameborder="0"></iframe></div>';
4459var liquidVideoEmbed = video.querySelector('.jwtpl-jobad-liquidVideoEmbed');
4460if(liquidVideoEmbed && videoEmbed){
4461liquidVideoEmbed.innerHTML = videoEmbed;
4462}
4463});
4464if (buttonPrev && buttonPrev[0]) {
4465if (buttonPrev[0].classList.contains('swiper-button-disabled')) {
4466containerPrev[0].classList.add('disabled');
4467} else {
4468containerPrev[0].classList.remove('disabled');
4469}
4470}
4471}
4472var jobadAllowVideoConsent = function () {
4473if(_api._consent().checkConsent(4) === true){
4474jobadInitializeSwiperAndVideos();
4475} else{
4476var videoListNoConsent = _api.get('.jwtpl-jobad-liquidVideoListNoConsent', true),
4477allowVideoConsent = _api.get('.jwtpl-jobad-liquidAllowVideoConsent', true);
4478if(allowVideoConsent.length > 0 && videoListNoConsent.length>0){
4479videoListNoConsent[0].classList.remove('jwtpl-gc-hidden1');
4480var allowVideoConsentButton = allowVideoConsent[0];
4481_api.event(allowVideoConsentButton, 'click', function (e) {
4482_api._consent().getConsent(4, function () {
4483var videoListNoConsent = _api.get('.jwtpl-jobad-liquidVideoListNoConsent', true);
4484setTimeout(jobadInitializeSwiperAndVideos, 100);
4485videoListNoConsent[0].classList.add('jwtpl-gc-hidden1');
4486}, 'Um Videos sehen zu können, müssen Sie externe Inhalte erlauben!');
4487})
4488}
4489}
4490}
4491var jobadAllowShadowReplace = function () {
4492let showShadow = _api.get('.jwtpl-jobad-blockIsShadowMode1', true),
4493shadowBox = _api.get('.jwtpl-jobad-innerShadowBox', true);
4494if (showShadow.length > 0 && shadowBox.length > 0) {
4495let loadAxUrl = shadowBox[0].getAttribute('data-jwtpl-jobad-shadowLoadUrl'),
4496jobAdBaseHref = shadowBox[0].getAttribute('data-jwtpl-jobad-shadowBaseHref'),
4497innerShadowBox = _api.get('.jwtpl-jobad-innerShadowBoxAd', true);
4498if(loadAxUrl !== '' && jobAdBaseHref !== ''){
4499fetch(loadAxUrl)
4500.then(response => response.text())
4501.then(data => {
4502if(innerShadowBox.length > 0){
4503jobadShadowModeClickOnText();
4504data = jobadShadowModeModifyHTML(data, jobAdBaseHref);
4505if (document.body.attachShadow) {
4506innerShadowBox.forEach((el) => {
4507var shadow = el.attachShadow({
4508mode: 'open'
4509});
4510shadow.innerHTML = data;
4511});
4512}
4513}
4514})
4515}
4516}
4517}
4518var jobadShadowModeModifyHTML = function (data, jobAdBaseHref) {
4519data = data.replaceAll('src="', 'src="' + jobAdBaseHref);
4520data = data.replaceAll('content: url("', 'content: url("' + jobAdBaseHref);
4521data = data.replaceAll('<body>', '<div class="jwtpl-jobad-shadowJobAdBody">');
4522data = data.replaceAll('</body>', '</div>');
4523data = data.replaceAll('body {', '.jwtpl-jobad-shadowJobAdBody {');
4524data = data.replaceAll('/fonts.googleapis.com/css2?family=Roboto+Condensed:wght@300;400;700&amp;display=swap', 'https://fonts.googleapis.com/css2?family=Roboto+Condensed:wght@300;400;700&amp;display=swap');
4525['<html>','</html>','<body>','</body>','<html lang="de">','<head>','</head>'].forEach((el)=>{
4526data = data.replaceAll(el, '');
4527})
4528data = data.replaceAll('<link rel="stylesheet" href="', '<link rel="stylesheet" href="' + jobAdBaseHref);
4529data = data.replaceAll('<link href="', '<link href="' + jobAdBaseHref);
4530return data;
4531}
4532var jobadShadowModeClickOnText = function () {
4533let spanText = _api.get('.jwtpl-jobad-infoShadowBoxMessageText', true);
4534if (spanText.length > 0) {
4535spanText[0].addEventListener('click', () => {
4536console.log('Text was clicked!');
4537});
4538}
4539}
4540var jobadConfigureScroller = function () {
4541if (_api.type(Swiper) !== "Function") {
4542_api.printErrorMsg(" Message -> jobadConfigureScroller() - scroller.js not found");
4543return;
4544}
4545var liquidAd = document.querySelector('.jwtpl-jobad-boxLiquid');
4546if (liquidAd === null) {
4547_api.printInfoMsg(" Message -> jobadConfigureScroller() - liquid ad not found. abort");
4548return;
4549}
4550// keine checks für Swiper selector nötig, check bereits in swiper framework
4551var picSwiper = new Swiper('.jwtpl-jobad-picList', {
4552loop: false,
4553spaceBetween: 20,
4554pagination: {
4555el: '.swiper-pagination',
4556}
4557});
4558}
4559var jobadReadHeightOfLiquidBox = function() {
4560var LiquidLi = _api.get('[data-jwtpl-jobad-liquidLi]');
4561if(LiquidLi.length === 0){return false;}
4562var maxHeight = 130;
4563var boxHeight = 0;
4564var innerLiquidBox = _api.get('.jwtpl-jobad-innerLiquidBox > div:not(.jwtpl-jobad-liquidHeaderPicBox):not(.jwtpl-jobad-liquidTitleBox)' );
4565var laengeInnerLiquidBox = innerLiquidBox.length;
4566for (var i = 0; i < laengeInnerLiquidBox ; i++){
4567boxHeight = innerLiquidBox[i].getBoundingClientRect().height;
4568// jobadCountLiquidBoxLi(innerLiquidBox[i].children);
4569if(boxHeight > maxHeight){jobadSetClassLiquidHeight(innerLiquidBox[i].children);}
4570}
4571}
4572var jobadSetClassLiquidHeight = function (selector){
4573_api.addClass(selector[0],'jwtpl-jobad-etexpand-liquid');
4574_api.addClass(selector[0],'jwtpl-jobad-icon-liquid');
4575_api.addClass(selector[1],'jwtpl-jobad-small-liquid');
4576_api.event(selector[0], 'click', function (e) {
4577if (_api.hasClass(selector[1], 'jwtpl-jobad-small-liquid') === true) {
4578_api.removeClass(selector[1], 'jwtpl-jobad-small-liquid');
4579_api.removeClass(selector[0], 'jwtpl-jobad-icon-liquid:');
4580_api.addClass(selector[0], 'jwtpl-jobad-expanded-liquid');}
4581else {
4582_api.addClass(selector[1], 'jwtpl-jobad-small-liquid');
4583_api.addClass(selector[0], 'jwtpl-jobad-expanded-liquid');
4584_api.removeClass(selector[0], 'jwtpl-jobad-expanded-liquid');
4585_api.addClass(selector[0], 'jwtpl-jobad-icon-liquid');}
4586});
4587}
4588var jobadInitLiquidImageExpander = function () {
4589var imgExpanderData = _api.get('.jwtpl-jobad-boxLiquidVersion10 .jwtpl-jobad-liquidHeaderPicBox, .jwtpl-jobad-boxLiquidVersion10 .jwtpl-jobad-liquidHeaderPicBoxOverlay, .jwtpl-jobad-boxLiquidVersion20 .jwtpl-jobad-liquidHeaderPicBox, .jwtpl-jobad-boxLiquidVersion20 .jwtpl-jobad-liquidHeaderPicBoxOverlay');
4590if (imgExpanderData.length == 2) {
4591var
4592imgContainer = imgExpanderData[0],
4593trigger = imgExpanderData[1];
4594_api.event(trigger, 'click', function (e) {
4595if (_api.hasClass(imgContainer, 'jw-gc-expanded') === true) {
4596_api.removeClass(imgContainer, 'jw-gc-expanded');
4597_api.removeClass(imgContainer, 'fadeIn');
4598_api.removeClass(trigger, 'jw-gc-expanded');
4599} else {
4600_api.addClass(imgContainer, 'jw-gc-expanded');
4601_api.addClass(imgContainer, 'fadeIn');
4602_api.addClass(trigger, 'jw-gc-expanded');
4603}
4604});
4605}
4606}
4607var jobadInitLiquidColors = function () {
4608var versionHybridDrei = jobadOverrideDefaultColor();
4609if(versionHybridDrei){
4610return true;
4611}
4612var liquidColors = _api.get('[data-jwtpl-jobad-liquidcolors]');
4613if (liquidColors.length === 1) {
4614var colors;
4615if (liquidColors[0].hasAttribute('data-jwtpl-jobad-liquidcolors') === true) {
4616colors = liquidColors[0].getAttribute('data-jwtpl-jobad-liquidcolors');
4617}
4618if (_api.isString(colors) === true) {
4619colors = colors.split(',');
4620if(colors.length > 0 && colors[0].includes('v') === true) {
4621_api.printInfoMsg(" Message -> jobadInitLiquidColors() - mode v[0-9]+ not supported");
4622return false;
4623}
4624_api.each(colors, function (color, index) {
4625if (_api.trim(color) !== '#') {
4626if(_api.hasClass(liquidColors[0], 'jwtpl-jobad-innerLiquidBox10') === true){
4627if (index == 0) {
4628var ele = _api.get('[class*="Title"][class*="jwtpl-jobad-liquid"]');
4629_api.each(ele, function (e) {
4630if(_api.hasClass(e.parentElement, 'jwtpl-jobad-liquidBoxNoColor') === false) {
4631_api.style(e, 'background', 'none ' + color);
4632}
4633});
4634var ele2 = _api.get('.jwtpl-jobad-innerLiquidBox .jwtpl-gc-box, .jwtpl-jobadContactInner, .jwtpl-jobad-trophyList, .jwtpl-jobadApplyInner');
4635_api.each(ele2, function (e) {
4636if(_api.hasClass(e.parentElement, 'jwtpl-jobad-liquidBoxNoColor') === false) {
4637_api.style(e, 'border', '1px solid ' + color);
4638_api.style(e, 'border-top', '0');
4639}
4640});
4641}
4642if (index == 1) {
4643var ele = _api.get('[class*="Title"][class*="jwtpl-jobad-liquid"]');
4644_api.each(ele, function (e) {
4645_api.style(e, 'color', color);
4646});
4647}
4648if (index == 3) {
4649var ele = _api.get('.jwtpl-jobad-innerLiquidBox a');
4650_api.each(ele, function (e) {
4651_api.style(e, 'color', color);
4652});
4653}
4654if (index == 4) {
4655var ele = _api.get('.jwtpl-jobad-boxLiquidVersion10 .jwtpl-jobad-innerLiquidBox, .jwtpl-jobad-boxLiquidVersion20 .jwtpl-jobad-innerLiquidBox');
4656_api.each(ele, function (e) {
4657_api.style(e, 'background-color', color);
4658if(color !== '#fff' && color !== '#ffffff'){
4659_api.style(e, 'padding', '10px');
4660}
4661});
4662}
4663if (index == 5) {
4664var ele = _api.get('.jwtpl-jobad-innerLiquidBox');
4665if(ele.length > 0){
4666_api.style(ele[0], 'color', color);
4667}
4668}
4669}
4670if(_api.hasClass(liquidColors[0], 'jwtpl-jobad-innerLiquidBox20') === true){
4671if (index == 0) {
4672var ele = _api.get('.jwtpl-jobad-liquidTaskTitle, .jwtpl-jobad-liquidQualiTitle, .jwtpl-jobad-liquidPicTitle, .jwtpl-jobad-liquidBenefitTitle, .jwtpl-jobad-liquidVr360Title, .jwtpl-jobad-liquidCompanyTitle, .jwtpl-jobad-liquidContactTitle, .jwtpl-jobad-liquidConsultTitle, .jwtpl-jobad-liquidApplyTitle, .jwtpl-jobad-liquidTrophyTitle');
4673if (['white', '#fff', '#ffffff', 'rgb(255,255,255)', 'rgb(255, 255, 255)'].includes(color) === false) {
4674_api.each(ele, function (e) {
4675_api.style(e, 'color', color);
4676});
4677} else {
4678_api.each(ele, function (e) {
4679_api.addClass(e, 'jwtpl-gc-specialstate');
4680});
4681}
4682}
4683if (index == 1) {
4684var el = _api.get('.jwtpl-jobad-liquidTitle, .jwtpl-jobad-liquidSloganBox');
4685_api.each(el, function(it){
4686_api.style(it, 'color', color);
4687//_api.style(it, 'background-color', color);
4688});
4689}
4690if (index == 2) {
4691var el = _api.get('.jwtpl-jobad-liquidTitle, .jwtpl-jobad-liquidSloganBox');
4692_api.each(el, function(it){
4693_api.style(it, 'background-color', color);
4694//_api.style(it, 'color', color);
4695});
4696}
4697if (index == 3) {
4698var ele = _api.get('.jwtpl-jobad-innerLiquidBox a');
4699_api.each(ele, function (e) {
4700_api.style(e, 'color', color);
4701});
4702}
4703if (index == 4) {
4704var ele = _api.get('.jwtpl-jobad-innerLiquidBox');
4705_api.each(ele, function (e) {
4706_api.style(e, 'background-color', color);
4707if(color !== '#fff' && color !== '#ffffff'){
4708_api.style(e, 'padding', '10px');
4709}
4710});
4711}
4712if (index == 5) {
4713var ele = _api.get('.jwtpl-jobad-innerLiquidBox');
4714if(ele.length > 0){
4715_api.style(ele[0], 'color', color);
4716}
4717}
4718}
4719}
4720});
4721}
4722}
4723}
4724var jobadInitLiquidListStyle = function () {
4725const hybridMopsDrei = _api.get('.jwtpl-jobad-innerLiquidBox30');
4726if(hybridMopsDrei.length === 0){
4727var listStyleData = _api.get('[data-jwtpl-jobad-liquidLi]');
4728if(listStyleData.length > 0){
4729if(listStyleData[0].hasAttribute('data-jwtpl-jobad-liquidLi')){
4730var listStyleType = _api.trim(listStyleData[0].getAttribute('data-jwtpl-jobad-liquidLi'));
4731if(listStyleType !== ''){
4732var uls = _api.get('.jwtpl-jobad-boxLiquid ul');
4733_api.each(uls, function(ul){
4734_api.style(ul, 'list-style-type', listStyleType);
4735});
4736}
4737}
4738}
4739}
4740}
4741var jobadInitLiquidLinkMe = function () {
4742var linkMe = _api.get('[data-jwtpl-gc-linkMe]');
4743if(linkMe.length > 0) {
4744_api.each(linkMe, function(it){
4745var
4746link = it.getAttribute('data-jwtpl-gc-linkMe'),
4747target = it.getAttribute('data-jwtpl-gc-linkmetarget');
4748if(_api.isString(link) === true){
4749var aTag = document.createElement('a');
4750aTag.href = link;
4751if(_api.isString(target) === true) {
4752aTag.target = target;
4753} else {
4754aTag.target = '_self';
4755}
4756it.insertAdjacentElement('beforebegin', aTag);
4757aTag.appendChild(it);
4758}
4759});
4760}
4761}
4762var jobadInitLiquidEqualBoxHeight = function() {
4763let
4764liquidBoxes = _api.get('.jwtpl-jobad-customEvent');
4765if(liquidBoxes.length > 0) {
4766_api.each(liquidBoxes, function(evtTrigger){
4767let actEl = evtTrigger.nextElementSibling;
4768if(_api.isNull(actEl) === false) {
4769let scan = actEl.querySelector('ul');
4770if(_api.isNull(scan) === false){
4771let lis = scan.children;
4772if(lis.length > 3) {
4773for(let i=3; i<lis.length; i++){
4774_api.addClass(lis[i], 'jwtpl-gc-hidden1');
4775}
4776_api.event(evtTrigger, 'click', function(ev){
4777if(_api.hasClass(this, 'jwtpl-gc-expanded') === true) {
4778_api.removeClass(this, 'jwtpl-gc-expanded');
4779for(let i=3; i<lis.length; i++){
4780_api.addClass(lis[i], 'jwtpl-gc-hidden1');
4781}
4782} else {
4783_api.addClass(this, 'jwtpl-gc-expanded');
4784for(let i=3; i<lis.length; i++){
4785_api.removeClass(lis[i], 'jwtpl-gc-hidden1');
4786}
4787}
4788});
4789} else {
4790console.log('nicht mehr als 3 Treffer');
4791}
4792} else {
4793console.log('keine Liste...');
4794if(_api.height(actEl) > 100) {
4795let el = actEl.children;
4796if(el.length > 0) {
4797_api.each(el, function(it){
4798if(it.classList.value.indexOf('Add') != -1){
4799_api.addClass(it, 'jwtpl-gc-hidden1');
4800} else {
4801console.log(it,_api.height(it))
4802}
4803});
4804}
4805}
4806}
4807}
4808})
4809}
4810}
4811var jobadInitLiquidSetActionState = function(){
4812var
4813trigger = _api.get('.jwtpl-jobad-liquidTitleBox, .jwtpl-jobad-liquidTaskBox, .jwtpl-jobad-liquidQualiBox, .jwtpl-jobad-liquidBenefitBox, .jwtpl-jobad-liquidCompanyBox, .jwtpl-jobad-liquidContactBox, .jwtpl-jobad-liquidApplyBox');
4814if(trigger.length > 0){
4815_api.each(trigger, function(item){
4816var eName = item.className;
4817if(_api.isString(eName) === true && eName.indexOf('liquid') !== -1){
4818eName = eName.split(" ");
4819for(var i=0; i<eName.length; i++){
4820if(_api.isString(eName[i]) === true && eName[i].indexOf('liquid') !== -1){
4821eName = eName[i]
4822break;
4823}
4824}
4825if(_api.isString(eName) === true){
4826_api.event(item, 'click', function(e){
4827if(_api.hasClass(item, 'jwtpl-gc-specialbehavior') === true) {
4828_api.removeClass(item, 'jwtpl-gc-specialbehavior');
4829var lsData = _api.getLcItem(liquidAdStorageName);
4830if(_api.isString(lsData) === true){
4831var filter = [];
4832lsData = lsData.split(',');
4833_api.each(lsData, function(item){
4834if(item !== eName){
4835filter.push(item);
4836}
4837});
4838lsData = filter;
4839lsData = lsData.join(',');
4840_api.setLcItem(liquidAdStorageName, lsData);
4841}
4842} else {
4843_api.addClass(item, 'jwtpl-gc-specialbehavior');
4844var lsData = _api.getLcItem(liquidAdStorageName);
4845if(lsData == false){
4846_api.setLcItem(liquidAdStorageName, eName);
4847} else {
4848if(lsData.indexOf(eName) === -1){
4849lsData += ',' + eName;
4850_api.setLcItem(liquidAdStorageName, lsData);
4851}
4852}
4853}
4854});
4855}
4856}
4857});
4858}
4859}
4860var jobadLoadAdvertiserProfile = function() {
4861var
4862advProfileMarker = _api.get('.jwtpl-jmpt-insertAdvProfil.jwtpl-jmpt-insertAdvProfil1Active1');
4863if(advProfileMarker.length > 0 && _api.type(configStorage['mod']) !== undefined && _api.type(configStorage['mod']['hiliadpr']) !== undefined && _api.type(configStorage['mod']['hiliadpr']['html']) !== undefined){
4864var hiliAdPr = configStorage['mod']['hiliadpr']['html'];
4865if(_api.isString(hiliAdPr) === true){
4866hiliAdPr = hiliAdPr.replace('jwtpl-gc-hidden1', '');
4867advProfileMarker[0].insertAdjacentHTML('afterbegin', hiliAdPr);
4868_api.removeClass(advProfileMarker[0], 'jwtpl-gc-hidden1');
4869hiliadprInit();
4870_api._gui().doLazyLoad();
4871}
4872}
4873}
4874var jobadInitAdvertiserProfile = function(){
4875const observer = new IntersectionObserver(function(entries, self) {
4876entries.forEach(entry => {
4877if(entry.isIntersecting) {
4878jobadLoadAdvertiserProfile();
4879self.unobserve(entry.target);
4880}
4881});
4882});
4883let advProfile = _api.get('.jwtpl-jmpt-insertAdvProfil.jwtpl-jmpt-insertAdvProfil1Active1', true);
4884if(advProfile.length > 0) {
4885_api.removeClass(advProfile[0], 'jwtpl-gc-hidden1');
4886observer.observe(advProfile[0]);
4887}
4888}
4889var jobadLoadAd = function(){
4890var iframe = document.querySelector('.jwtpl-jobad-adIframe');
4891if (iframe === null) {return}
4892if(jobadCheckCors() === false && iframe.src !== ''){
4893iframe.addEventListener('load', jobadResizeIframeDims);
4894return;
4895}
4896if (_api._consent().checkConsent(1) === false) {
4897if(_api.getConsentStatus().indexOf('pcsj') !== -1){
4898loadJobad();
4899} else {
4900loadPlaceholder();
4901_api._consent().getConsent(1, loadJobad);
4902}
4903} else {
4904loadJobad();
4905}
4906function loadPlaceholder(){
4907var url = iframe.getAttribute('data-srcdoc');
4908iframe.srcdoc = url;
4909jobadResizeIframeDims();
4910setTimeout(function(){
4911iframe.contentDocument.body.addEventListener('click', function(){_api._consent().getConsent(1, jobadLoadAd)})
4912}, 500)
4913}
4914function loadJobad(){
4915var url = iframe.getAttribute('data-src');
4916if (!url) {
4917return;
4918}
4919iframe.src = url;
4920iframe.removeAttribute('srcdoc');
4921iframe.addEventListener('load', jobadResizeIframeDims);
4922}
4923}
4924var jobadLoadHybridAd = function () {
4925var missingConsentClass = 'jwtpl-jobad-missingConsent';
4926var hybridAd = document.querySelector('.jwtpl-jobad-innerLiquidBox');
4927var placeholder = document.querySelector('.jwtpl-jobad-placeholder');
4928if (hybridAd === null || _api._consent().checkConsent(1) === true) { return; }
4929_api._consent().getConsent(1, showAd);
4930hybridAd.classList.add(missingConsentClass)
4931if (placeholder !== null) {
4932placeholder.classList.add(missingConsentClass)
4933placeholder.addEventListener('click', function () { _api._consent().getConsent(1, showAd) })
4934}
4935function showAd() {
4936if (placeholder !== null) {
4937placeholder.classList.remove(missingConsentClass);
4938}
4939hybridAd.classList.remove(missingConsentClass);
4940}
4941}
4942var jobadLoadRawModeAd = function () {
4943var missingConsentClass = 'jwtpl-jobad-missingConsent';
4944var rawModeAd = document.querySelector('.jwtpl-jobad-innerRawBoxAd');
4945var placeholder = document.querySelector('.jwtpl-jobad-placeholder');
4946if (rawModeAd === null || _api._consent().checkConsent(1) === true) { return; }
4947_api._consent().getConsent(1, showAd);
4948rawModeAd.classList.add(missingConsentClass)
4949if (placeholder !== null) {
4950placeholder.classList.add(missingConsentClass)
4951placeholder.addEventListener('click', function () { _api._consent().getConsent(1, showAd) })
4952}
4953function showAd() {
4954if (placeholder !== null) {
4955placeholder.classList.remove(missingConsentClass);
4956}
4957rawModeAd.classList.remove(missingConsentClass);
4958}
4959}
4960var jobadLoadHybridTracking = function(){
4961var trackingElement = document.querySelector('.jwtpl-jobad-cimgYi')
4962if(trackingElement == null){
4963return;
4964}
4965_api._consent().getConsent(1, function(){
4966var text = trackingElement.innerHTML;
4967text = text.replace('<!-- JWTPL-GENERATED:', '');
4968text = text.replace('-->', '');
4969trackingElement.innerHTML = text;
4970})
4971}
4972var jobadInitChiffreBoxOnTop = function() {
4973let applyTop = _api.get('.jwtpl-jobad-apply a');
4974if(applyTop.length > 0) {
4975let applyBox = _api.get('.jwtpl-jobad-navChiffreBox');
4976if(applyBox.length > 0) {
4977let
4978element = applyBox[0].cloneNode(true),
4979closeIcon = element.querySelector('.jwtpl-jobad-navChiffreBoxClose');
4980// jwtpl-jobad-placeholder
4981if(closeIcon) {
4982_api.event(closeIcon, 'click', function(e){
4983_api.removeClass(element, 'open');
4984_api.hide(element);
4985});
4986}
4987_api.addClass(element, 'jwtpl-jobad-navChiffreBoxPositionTop');
4988applyTop[0].insertAdjacentElement('afterend', element);
4989_api.event(applyTop[0], 'click', function(e){
4990e.preventDefault();
4991if (_api.hasClass(element, 'open') === true) {
4992_api.removeClass(element, 'open');
4993_api.hide(element);
4994} else {
4995_api.addClass(element, 'open');
4996_api.show(element);
4997}
4998});
4999}
5000}
5001}
5002var jobadInitApplyBoxOnTop = function() {
5003let applyTop = _api.get('.jwtpl-jobad-apply a');
5004if(applyTop.length > 0) {
5005let applyBox = _api.get('.jwtpl-jobad-navB2gApplyBox');
5006if(applyBox.length > 0) {
5007let
5008element = applyBox[0].cloneNode(true),
5009closeIcon = element.querySelector('.jwtpl-jobad-navB2gApplyBoxClose');
5010if(closeIcon) {
5011_api.event(closeIcon, 'click', function(e){
5012_api.removeClass(element, 'open');
5013_api.hide(element);
5014});
5015}
5016_api.addClass(element, 'jwtpl-jobad-navB2gApplyBoxPositionTop');
5017applyTop[0].insertAdjacentElement('afterend', element);
5018_api.event(applyTop[0], 'click', function(e){
5019e.preventDefault();
5020if (_api.hasClass(element, 'open') === true) {
5021_api.removeClass(element, 'open');
5022_api.hide(element);
5023} else {
5024_api.addClass(element, 'open');
5025_api.show(element);
5026}
5027});
5028}
5029}
5030}
5031var jobadInitNoApplyBoxOnTop = function() {
5032let applyTop = _api.get('.jwtpl-jobad-apply a');
5033if(applyTop.length > 0) {
5034let applyBox = _api.get('.jwtpl-jobad-navNoApplyBox');
5035if(applyBox.length > 0) {
5036let
5037element = applyBox[0].cloneNode(true),
5038closeIcon = element.querySelector('.jwtpl-jobad-navNoApplyBoxClose');
5039if(closeIcon) {
5040_api.event(closeIcon, 'click', function(e){
5041_api.removeClass(element, 'open');
5042_api.hide(element);
5043});
5044}
5045_api.addClass(element, 'jwtpl-jobad-navNoApplyBoxPositionTop');
5046applyTop[0].insertAdjacentElement('afterend', element);
5047_api.event(applyTop[0], 'click', function(e){
5048e.preventDefault();
5049if (_api.hasClass(element, 'open') === true) {
5050_api.removeClass(element, 'open');
5051_api.hide(element);
5052} else {
5053_api.addClass(element, 'open');
5054_api.show(element);
5055}
5056});
5057}
5058}
5059}
5060var jobad_isEx = false, jobad_jars = 0, jobad_jar = 1, jobad_jars_el = _api.get('[data-jwtpl-jobad-jars]'), jobad_jar_el = _api.get('[data-jwtpl-jobad-jar]');
5061if(jobad_jars_el.length > 0 && jobad_jars_el[0].hasAttribute('data-jwtpl-jobad-jars') === true && jobad_jars_el[0].getAttribute('data-jwtpl-jobad-jars').length > 0) {
5062jobad_jars = parseInt(jobad_jars_el[0].getAttribute('data-jwtpl-jobad-jars'));
5063}
5064if(jobad_jar_el.length > 0 && jobad_jar_el[0].hasAttribute('data-jwtpl-jobad-jar') === true && jobad_jar_el[0].getAttribute('data-jwtpl-jobad-jar').length > 0) {
5065jobad_jar = parseInt(jobad_jar_el[0].getAttribute('data-jwtpl-jobad-jar'));
5066}
5067var jobadCheckCors = function () {
5068if(jobad_jars === 0) {
5069return false;
5070}
5071if(jobad_jars === 1 && jobad_jar === 0) {
5072return true;
5073}
5074let
5075ex,
5076iframe = _api.get('.jwtpl-jobad-adIframe', true);
5077if(iframe.length > 0) {
5078if(jobad_isEx === false){
5079try{
5080ex = iframe[0].contentWindow.document.getElementById("jw_externeAnzeige");
5081if(ex !== null && ex.length > 0) {
5082jobad_isEx = true;
5083return true;
5084}
5085return false;
5086} catch(e) {
5087jobad_isEx = true;
5088return true;
5089}
5090} else {
5091return true;
5092}
5093} else {
5094return false;
5095}
5096}
5097var jobadIframeInitScrollbar = function() {
5098setTimeout(function(){
5099let
5100iframe = _api.get('.jwtpl-jobad-adIframe', true);
5101if(iframe.length > 0 && jobadCheckCors() === true) {
5102iframe[0].setAttribute('scrolling', 'yes');
5103}
5104}, 2000);
5105}
5106var jobadInit = function () {
5107let
5108iframe = _api.get('.jwtpl-jobad-adIframe');
5109if(jobadCheckCors() === false && iframe.length > 0) {
5110iframe[0].setAttribute('data-srcdoc', _api._consent().getIFrameMsg());
5111}
5112jobadLoadAd();
5113jobadLoadHybridTracking();
5114jobadToggleEmbeddedShareBox();
5115// jobadCloseOpenedDropdownOnAction();
5116jobadResizeIframeDims();
5117jobadClickOnPrevNextButton();
5118jobadNextPrevButton();
5119jobadOpenMenuBox();
5120jobadToggleHili();
5121jobadConfigureScroller();
5122jobadOptionToggleNoticeList();
5123var jsonConfigStr = _globalGetJsonConfig();
5124if (jsonConfigStr['noli-b'] !== undefined) {
5125noli_bRegistMod('jobad', 'itemNoticeListBoxItems');
5126noli_bRefreshMarked();
5127var noticeListIsSet = true;
5128var hiliModAttr = document.querySelectorAll('[data-jwtpl-jobad-hili]');
5129var hiliMod = '';
5130if (hiliModAttr.length > 0) {
5131var hiliMod = hiliModAttr[0].getAttribute('data-jwtpl-jobad-hili');
5132}
5133noli_bSetNoliStars('.jwtpl-jobad-navNotice', hiliMod);
5134noli_bSetNoliStars('.jwtpl-jobad-noticeIcon', hiliMod);
5135jobadRegistSaveButton('.jwtpl-jobad-navNotice');
5136jobadRegistSaveButton('.jwtpl-jobad-noticeIcon');
5137jobadMarkIfJobIsSaved();
5138jobadSaveJob();
5139}
5140jobadKeyboardNavigation();
5141jobadSetWhatsappLink();
5142jobadPrint();
5143jobadJumpAfterSearch();
5144jobadSwipe();
5145jobadInitLiquidImageExpander();
5146jobadInitLiquidColors();
5147jobadInitLiquidListStyle();
5148jobadInitLiquidLinkMe();
5149//jobadInitLiquidEqualBoxHeight();
5150// jobadInitLiquidSetActionState();
5151//jobadReadHeightOfLiquidBox();
5152jobadInitAdvertiserProfile();
5153jobadLoadHybridAd();
5154jobadLoadRawModeAd();
5155jobadInitChiffreBoxOnTop();
5156jobadInitApplyBoxOnTop();
5157jobadInitNoApplyBoxOnTop();
5158jobadIframeInitScrollbar();
5159jobadAllowVideoConsent();
5160jobadAllowShadowReplace();
5161}
5162var joma_bInputBorderSuccessColor = 'green';
5163var joma_bInputBorderErrorColor = 'red';
5164var joma_bGetJsonText = function (jsonVar) {
5165var textDefault = '';
5166if (jsonVar == 'ok') {
5167textDefault = 'Vielen Dank f&uuml;r Ihr Vertrauen! Ab jetzt erhalten Sie passende Jobs per E-Mail.';
5168} else if (jsonVar == 'e1') {
5169textDefault = 'Leider liegt ein Fehler vor. Bitte probieren Sie es sp&auml;ter noch einmal.';
5170} else if (jsonVar == 'e2') {
5171textDefault = 'Sie haben sich f&uuml;r diese Suchkriterien bereits angemeldet.';
5172} else if (jsonVar == 'e3') {
5173textDefault = 'Ung&uuml;ltige E-Mail-Adresse. Bitte pr&uuml;fen Sie Ihre Eingabe.';
5174}
5175return _globalGetJsonText('joma-b', textDefault, jsonVar);
5176}
5177var joma_bRegistBtn = function () {
5178jQuery('.jwtpl-global-bt').unbind('click').click(function () {
5179if (jQuery(this).parent().find('.jwtpl-remo-inputEmail').length > 0) {
5180sldeSelect = 'remo';
5181} else if (jQuery(this).parent().find('.jwtpl-hili-inputEmail').length > 0) {
5182sldeSelect = 'hili';
5183} else if (jQuery(this).parent().find('.jwtpl-slde-inputEmail').length > 0) {
5184sldeSelect = 'slde';
5185}
5186sldeClickedBtn = 'global';
5187activeEmailField = jQuery(this).parent().find('.jwtpl-' + sldeSelect + '-inputEmail');
5188joma_bOptInJobmail();
5189});
5190jQuery('.jwtpl-joma-bt').unbind('click').click(function () {
5191sldeSelect = 'joma';
5192sldeClickedBtn = 'joma';
5193activeEmailField = jQuery(this).parent().find('.jwtpl-' + sldeSelect + '-email');
5194joma_bOptInJobmail();
5195});
5196jQuery('.jwtpl-joma1-bt').unbind('click').click(function () {
5197sldeSelect = 'joma1';
5198sldeClickedBtn = 'joma1';
5199activeEmailField = jQuery(this).parent().find('.jwtpl-' + sldeSelect + '-email');
5200joma_bOptInJobmail();
5201});
5202jQuery('.jwtpl-joma2-bt').unbind('click').click(function () {
5203sldeSelect = 'joma2';
5204sldeClickedBtn = 'joma2';
5205activeEmailField = jQuery(this).parent().find('.jwtpl-' + sldeSelect + '-email');
5206joma_bOptInJobmail();
5207});
5208jQuery('.jwtpl-obo-itemJobMailBt')
5209.unbind('click')
5210.on('click', function () {
5211sldeSelect = 'obo';
5212sldeClickedBtn = 'obo';
5213activeEmailField = jQuery(this).parent().find('.jwtpl-' + sldeSelect + '-itemJobMailEmail');
5214joma_bOptInJobmail();
5215})
5216.on('keydown', function (e) {
5217if (e.key === 'Enter' || e.key === ' ') {
5218e.preventDefault();
5219jQuery(this).trigger('click');
5220}
5221});
5222}
5223var joma_bSetText = function (modToken, formClass, textArr, matchingArr) {
5224var
5225formEl = document.getElementsByClassName('jwtpl-' + modToken + '-' + formClass)[0],
5226elArr = [];
5227if(_api.type(formEl) !== undefined) {
5228for (var i = 0; i < formEl.children.length; i++) {
5229var aktEl = formEl.children[i];
5230elArr[aktEl.classList[0]] = aktEl;
5231}
5232for (var i in textArr) {
5233var aktText = _globalGetJsonText(modToken, textArr[i], matchingArr[i]);
5234if (typeof elArr['jwtpl-' + modToken + '-' + i] != 'undefined') {
5235elArr['jwtpl-' + modToken + '-' + i].innerHTML = aktText;
5236}
5237if (i == 'jobMailBtn') {
5238elArr['jwtpl-global-bt'].innerHTML = aktText;
5239}
5240}
5241}
5242}
5243var joma_bV2GetSearchId = function () {
5244var result = '';
5245result = joma_bGetJsonText('si');
5246return result;
5247}
5248var joma_bV2GetJobMarketId = function () {
5249var result = '';
5250result = joma_bGetJsonText('ch');
5251return result;
5252}
5253var joma_bCheckAjaxUrl = function (url) {
5254if (typeof url !== 'string') {
5255return false;
5256} else {
5257if (url.indexOf('http://') == 0 || url.indexOf('https://') == 0 || url.indexOf('//') == 0) {
5258return true
5259} else {
5260return false;
5261}
5262}
5263}
5264var joma_bGetPublicIp = function () {
5265var ip;
5266var host = joma_bGetJsonText('wh');
5267if (host !== '') {
5268var xhr = joma_bGetXhr();
5269var joma_bGetPublicIpOnReady = function () {
5270if (xhr.readyState == 4 && xhr.status == 200) {
5271try {
5272ip = JSON.parse(xhr.responseText);
5273} catch (err) { }
5274}
5275}
5276xhr.onreadystatechange = joma_bGetPublicIpOnReady;
5277if (joma_bGetJsonText('p') === 'b' && _globalIsBrowserIeOrEdge() === true) {
5278var baseHref = _globalGetBaseHrefUrl();
5279if (baseHref.length > 0) {
5280if (_globalSetBaseHrefUrl(joma_bGetJsonText('wh')) === true) {
5281xhr.open('GET', host + ajaxPathJoma, false);
5282xhr.send(null);
5283_globalSetBaseHrefUrl(baseHref);
5284} else {
5285xhr.open('GET', host + ajaxPathJoma, false);
5286xhr.send(null);
5287}
5288} else {
5289xhr.open('GET', host + ajaxPathJoma, false);
5290xhr.send(null);
5291}
5292} else {
5293xhr.open('GET', host + ajaxPathJoma, false);
5294xhr.send(null);
5295}
5296}
5297return ip;
5298}
5299var joma_bGetXhr = function () {
5300var xhr;
5301if (window.XMLHttpRequest) {
5302xhr = new XMLHttpRequest();
5303} else if (window.ActiveXObject) {
5304xhr = new ActiveXObject("Microsoft.XMLHTTP");
5305}
5306return xhr;
5307}
5308var joma_bV2Request = function () {
5309var url = '';
5310var channel = '';
5311var email = joma_bGetEmail();
5312var data = new FormData();
5313var xhr;
5314if (_globalGetHost() != 'live') {
5315url = "http://jobmailer-registration-test.jobware.net:8090/register?";
5316channel = 'CH-0000164';
5317} else {
5318url = joma_bGetJsonText('wh');
5319url += "jobmail/register?";
5320channel = joma_bV2GetJobMarketId('ch');
5321}
5322data.append("jw_jobmarket", channel);
5323if (typeof (joma_bGetJsonText('sn')) == 'undefined') {
5324data.append("jw_jobname", '');
5325} else {
5326data.append("jw_jobname", joma_bGetJsonText('sn'));
5327}
5328if (typeof (joma_bGetJsonText('sl')) == 'undefined') {
5329data.append("jw_jobort", '');
5330} else {
5331data.append("jw_jobort", joma_bGetJsonText('sl'));
5332}
5333if (typeof (joma_bGetJsonText('ca')) == 'undefined') {
5334} else {
5335data.append("jw_categories", joma_bGetJsonText('ca'));
5336}
5337if (((typeof (joma_bGetJsonText('sl')) !== 'undefined') && joma_bGetJsonText('sl') !== '' )&& (typeof (joma_bGetJsonText('sr')) !== 'undefined')) {
5338data.append("jw_ort_distance", joma_bGetJsonText('sr'));
5339}
5340data.append("email", email);
5341data.append("snippet", sldeSelect);
5342data.append("origin", joma_bGetJsonText('wh'));
5343data.append("url", url);
5344successTemp = 'ignoreResponse';
5345joma_bLoaderGifOFF(false);
5346activeEmailField.css(joma_bInputBorderSuccessColor);
5347jQuery(activeEmailField).parent().parent().find('.jwtpl-' + sldeSelect + '-jobMailResponse')[0].innerHTML = joma_bGetJsonText('ok');
5348jQuery(activeEmailField).parent().parent().find('.jwtpl-' + sldeSelect + '-jobMailResponse').first().show();
5349var uk = joma_bGetPublicIp();
5350if (typeof (uk) === 'object' && typeof (uk['data']) !== 'undefined' && uk['data'] !== '') {
5351data.append("ipAddr", uk['data']);
5352} else {
5353data.append("ipAddr", '');
5354}
5355if (joma_bCheckAjaxUrl(url) === true) {
5356xhr = joma_bGetXhr();
5357if (joma_bGetJsonText('p') === 'b' && _globalIsBrowserIeOrEdge() === true) {
5358var baseHref = _globalGetBaseHrefUrl();
5359if (baseHref.length > 0) {
5360if (_globalSetBaseHrefUrl(joma_bGetJsonText('wh')) === true) {
5361xhr.open('POST', url, true);
5362xhr.send(data);
5363_globalSetBaseHrefUrl(baseHref);
5364} else {
5365xhr.open('POST', url, true);
5366xhr.send(data);
5367}
5368} else {
5369xhr.open('POST', url, true);
5370xhr.send(data);
5371}
5372} else if (joma_bGetJsonText('p') === 's') {
5373xhr.open('POST', url, false);
5374xhr.send(data);
5375} else {
5376xhr.open('POST', url, true);
5377xhr.send(data);
5378}
5379} else {
5380joma_bLoaderGifOFF(false);
5381activeEmailField.css('border-color', joma_bInputBorderSuccessColor);
5382jQuery(activeEmailField).parent().parent().find('.jwtpl-' + sldeSelect + '-jobMailResponse')[0].innerHTML = joma_bGetJsonText('ok');
5383jQuery(activeEmailField).parent().parent().find('.jwtpl-' + sldeSelect + '-jobMailResponse').first().show();
5384}
5385}
5386var joma_bGetEmail = function () {
5387email = '';
5388htmlSource = activeEmailField;
5389email = htmlSource.val();
5390var element = '';
5391if (activeEmailField[0].parentElement.className.match(/jobMailForm$/) != null) {
5392element = '-' + activeEmailField[0].parentElement.className.split('-')[1];
5393}
5394placeholder = htmlSource.attr("data-jwtpl" + element + "-placeholder");
5395if (email == placeholder) {
5396email = '';
5397}
5398return email;
5399}
5400var joma_bCheckEmail = function () {
5401var regexp = new RegExp(/^([a-z0-9\-\.\_]+)\@([a-z0-9\-\.]+)\.([a-z]{2,50})$/i);
5402if (regexp.test(joma_bGetEmail())) {
5403result = true;
5404} else {
5405result = false;
5406}
5407return result;
5408}
5409var joma_bV2RequestForEmail = function (email) {
5410var searchId = joma_bV2GetSearchId();
5411var jobMarketId = joma_bV2GetJobMarketId();
5412if (searchId != '' && email != '' && jobMarketId != '') {
5413if (joma_bGetJsonText('vs') == 'v1') {
5414var originUrl = joma_bGetJsonText('wh');
5415if (_globalGetHost() != 'live') {
5416thisReqPath = originUrl + 'jobsearch/jobMail/register';
5417} else {
5418thisReqPath = originUrl + 'jobsearch/jobMail/register';
5419}
5420var response = jQuery.ajax({
5421url: thisReqPath,
5422type: 'POST',
5423async: false,
5424data: {
5425jw_email: email,
5426jw_jobmarket: jobMarketId,
5427jw_search_id: searchId
5428},
5429scope: this,
5430}).responseText;
5431if (typeof response == "undefined") {
5432response = '{"success":false,"status":"FAILED"}';
5433}
5434joma_bOnSuccess(response);
5435} else if (joma_bGetJsonText('vs') == 'v2') {
5436joma_bV2Request();
5437}
5438}
5439}
5440var successTemp;
5441var joma_bOnSuccess = function (response) {
5442if (joma_bGetJsonText('vs') == 'v1') {
5443if (response.match(/\"success\":true/)) {
5444successTemp = 'success';
5445} else {
5446if (response.match(/\"status\":\"DUPE\"/)) {
5447successTemp = 'dupe';
5448} else {
5449successTemp = 'wrongMatch';
5450}
5451}
5452}
5453}
5454var joma_bOptInJobmail = function () {
5455joma_bLoaderGifON();
5456var email = joma_bGetEmail();
5457if (email != '') {
5458if (joma_bCheckEmail()) {
5459joma_bV2RequestForEmail(email);
5460if (successTemp == 'ignoreResponse') {
5461return false;
5462}
5463if (successTemp == 'success') {
5464joma_bLoaderGifOFF(false);
5465activeEmailField.css('border-color', joma_bInputBorderSuccessColor);
5466jQuery(activeEmailField).parent().parent().find('.jwtpl-' + sldeSelect + '-jobMailResponse')[0].innerHTML = joma_bGetJsonText('ok');
5467jQuery(activeEmailField).parent().parent().find('.jwtpl-' + sldeSelect + '-jobMailResponse').first().show();
5468} else if (successTemp == 'dupe') {
5469joma_bLoaderGifOFF(true);
5470activeEmailField.css('border-color', joma_bInputBorderErrorColor);
5471activeEmailField.css('border-color', joma_bInputBorderSuccessColor);
5472jQuery(activeEmailField).parent().parent().find('.jwtpl-' + sldeSelect + '-jobMailResponse')[0].innerHTML = joma_bGetJsonText('e2');
5473jQuery(activeEmailField).parent().parent().find('.jwtpl-' + sldeSelect + '-jobMailResponse').first().show();
5474} else if (successTemp == 'wrongMatch') {
5475joma_bLoaderGifOFF(true);
5476activeEmailField.css('border-color', joma_bInputBorderErrorColor);
5477activeEmailField.css('border-color', joma_bInputBorderSuccessColor);
5478jQuery(activeEmailField).parent().parent().find('.jwtpl-' + sldeSelect + '-jobMailResponse')[0].innerHTML = joma_bGetJsonText('e1');
5479jQuery(activeEmailField).parent().parent().find('.jwtpl-' + sldeSelect + '-jobMailResponse').first().show();
5480} else {
5481joma_bLoaderGifOFF(true);
5482activeEmailField.css('border-color', joma_bInputBorderErrorColor);
5483activeEmailField.css('border-color', joma_bInputBorderSuccessColor);
5484jQuery(activeEmailField).parent().parent().find('.jwtpl-' + sldeSelect + '-jobMailResponse')[0].innerHTML = joma_bGetJsonText('e1');
5485jQuery(activeEmailField).parent().parent().find('.jwtpl-' + sldeSelect + '-jobMailResponse').first().show();
5486}
5487} else {
5488joma_bLoaderGifOFF(true);
5489jQuery(activeEmailField).parent().parent().find('.jwtpl-' + sldeSelect + '-jobMailResponse')[0].innerHTML = joma_bGetJsonText('e3');
5490jQuery(activeEmailField).parent().parent().find('.jwtpl-' + sldeSelect + '-jobMailResponse').first().show();
5491joma_bAnimateInputField();
5492}
5493} else {
5494joma_bLoaderGifOFF(true);
5495jQuery(activeEmailField).parent().parent().find('.jwtpl-' + sldeSelect + '-jobMailResponse')[0].innerHTML = joma_bGetJsonText('e3');
5496jQuery(activeEmailField).parent().parent().find('.jwtpl-' + sldeSelect + '-jobMailResponse').first().show();
5497joma_bAnimateInputField();
5498}
5499}
5500var joma_bLoaderGifON = function () {
5501activeEmailField.hide();
5502activeEmailField.parent().find('.jwtpl-' + sldeClickedBtn + '-bt').hide();
5503activeEmailField.parent().find('.jwtpl-' + sldeSelect + '-eMailLoader').first().show();
5504}
5505var joma_bLoaderGifOFF = function (isWrongEmail) {
5506loaderOn = false;
5507activeEmailField.parent().find('.jwtpl-' + sldeSelect + '-eMailLoader').hide();
5508if (isWrongEmail) {
5509activeEmailField.parent().find('.jwtpl-' + sldeClickedBtn + '-bt').show();
5510jQuery(activeEmailField).parent().parent().find('.jwtpl-' + sldeSelect + '-jobMailResponse').first().css({
5511'border': '1px solid rgba(255,0,0,0.5)',
5512'-webkit-box-shadow': '0px 0px 9px -2px rgba(255,0,0,1)',
5513'-moz-box-shadow': '0px 0px 9px -2px rgba(255,0,0,1)',
5514'box-shadow': '0px 0px 9px -2px rgba(255,0,0,1)'
5515});
5516activeEmailField.css({
5517'width': '',
5518'text-align': ''
5519});
5520} else {
5521jQuery(activeEmailField).parent().parent().find('.jwtpl-' + sldeSelect + '-jobMailResponse').first().css({
5522'border': '1px solid rgba(0,128,0,0.5)',
5523'-webkit-box-shadow': '0px 0px 9px -2px rgba(0,128,0,1)',
5524'-moz-box-shadow': '0px 0px 9px -2px rgba(0,128,0,1)',
5525'box-shadow': '0px 0px 9px -2px rgba(0,128,0,1)'
5526});
5527activeEmailField.css({
5528'width': '100%',
5529'text-align': 'center'
5530});
5531}
5532activeEmailField.show();
5533}
5534var joma_bAnimateInputField = function () {
5535jQuery(activeEmailField).css('border-color', '#e30011');
5536var widthOrigin = jQuery(activeEmailField).outerWidth(true);
5537var addBorder = 0;
5538var widthAni = 20;
5539while (widthAni > 2) {
5540jQuery(activeEmailField).animate({
5541'width': widthOrigin - widthAni
5542});
5543widthAni = widthAni / 2;
5544jQuery(activeEmailField).animate({
5545'width': widthOrigin
5546});
5547}
5548}
5549var joma_bJobmailPopUpTimer = function () {
5550var hasJobs = document.querySelector('[data-jwtpl-remo-resultcount]');
5551var jobsInHili = document.querySelectorAll(".jwtpl-hili-list .jwtpl-hili-item").length;
5552if (joma_bCheckUrlHasNot('jssi') && hasJobs != null && hasJobs.getAttribute('data-jwtpl-remo-resultcount') == 'true') {
5553setTimeout(joma_bJobmailPopUp, 500);
5554}
5555if (document.querySelector(".jwtpl-jobad-adIframe") || document.querySelector(".jwdrf-viewer-inner")) {
5556setTimeout(joma_bJobmailPopUp, 500);
5557}
5558if (joma_bCheckUrlHas('jscg') == true) {
5559var hili = document.querySelector('.jwtpl-hili-jobMailSearchFilter');
5560var remo = document.querySelector('.jwtpl-remo-jobMailSearchFilter');
5561if (hili != null) {
5562hili.innerText = ' (Filter: aktiv)';
5563}
5564if (remo != null) {
5565remo.innerText = ' (Filter: aktiv)';
5566}
5567}
5568}
5569var joma_bCheckUrlHasNot = function (string) {
5570var urlString = window.location.href;
5571// var url = new URL(urlString);
5572// if(url.searchParams.has(string) == false){
5573// return true;
5574// }
5575var searchString = document.location.search.replace('?', '');
5576var urlSearchParamsArr = new Array();
5577if (searchString.trim() !== '') {
5578var searchStringAsArr = searchString.split('&');
5579if (searchStringAsArr.length > 0) {
5580// _api.each(searchStringAsArr, function(item, key, _this) {
5581for (var key = 0; key < searchStringAsArr.length; key++) {
5582var item = searchStringAsArr[key];
5583var itemSplit = item.split('=');
5584if (itemSplit.length == 2) {
5585urlSearchParamsArr[itemSplit[0]] = itemSplit[1];
5586}
5587// });
5588}
5589}
5590}
5591if (urlSearchParamsArr.hasOwnProperty(string) == false) {
5592return true;
5593}
5594return false;
5595}
5596var joma_bCheckUrlHas = function (string) {
5597var urlString = window.location.href;
5598// var url = new URL(urlString);
5599//
5600// if(url.searchParams.has(string) == true){
5601// return true;
5602// }
5603var searchString = document.location.search.replace('?', '');
5604var urlSearchParamsArr = new Array();
5605if (searchString.trim() !== '') {
5606var searchStringAsArr = searchString.split('&');
5607if (searchStringAsArr.length > 0) {
5608// _api.each(searchStringAsArr, function(item, key, _this) {
5609for (var key = 0; key < searchStringAsArr.length; key++) {
5610var item = searchStringAsArr[key];
5611var itemSplit = item.split('=');
5612if (itemSplit.length == 2) {
5613urlSearchParamsArr[itemSplit[0]] = itemSplit[1];
5614}
5615// });
5616}
5617}
5618}
5619if (urlSearchParamsArr.hasOwnProperty(string) == true) {
5620return true;
5621}
5622return false;
5623}
5624var joma_bJobmailPopUp = function () {
5625var elem1 = document.querySelector('.jwtpl-hili-jobMailLayerClose');
5626var elem2 = document.querySelector('.jwtpl-remo-jobMailLink');
5627var elem3 = document.querySelector('.jwtpl-remo-block');
5628var elem4 = document.querySelector('.jwtpl-remo-inputEmail');
5629var elem5 = document.querySelector('.jwtpl-hili-jobMailLayer');
5630var elem6 = document.querySelector('.jwtpl-obo-itemJobMailIcon');
5631function checkPopupCondition() {
5632return joma_bCheckUrlHas('jsdn') ||
5633joma_bCheckUrlHas('jsjn') ||
5634joma_bCheckUrlHas('jsdo') ||
5635(joma_bCheckUrlHas('jsco') && joma_bGetJsonText('sf') === '1') ||
5636(joma_bCheckUrlHas('jscg') && joma_bGetJsonText('sf') === '1')
5637}
5638if (elem5 != null) {
5639elem5.classList.add("popup");
5640}
5641if ((elem1 != null) && (window.getComputedStyle(elem1).getPropertyValue('display') != 'none') && (elem1.offsetWidth > 0 && elem1.offsetHeight > 0)) {
5642elem1.click();
5643setInterval(joma_bJobmailPopUpAnimation, 250);
5644} else if (elem2 != null && (window.getComputedStyle(elem2).getPropertyValue('display') != 'none')) {
5645elem2.click();
5646elem3.scrollIntoView();
5647setInterval(joma_bJobmailPopUpAnimationMobile, 250);
5648}
5649else if (elem6 && checkPopupCondition() === true && _api._consent().checkConsent(2) === true) {
5650var jobMailBox = document.querySelector('.jwtpl-obo-itemJobMailBox');
5651var jumptag = joma_bGetJsonText('jt');
5652var targetCount = parseInt(joma_bGetJsonText('ct'));
5653var animationClass = "jwtpl-jomab-animate";
5654if (!sessionStorage.getItem('jobmailcounter')) {
5655sessionStorage.setItem('jobmailcounter', targetCount)
5656}
5657var counter = parseInt(sessionStorage.getItem('jobmailcounter'));
5658sessionStorage.setItem('jobmailcounter', ++counter);
5659if (counter % targetCount === 0) {
5660if (targetCount !== 1) {
5661animationClass = 'jwtpl-jomab-animate-special';
5662}
5663if (_api.width() < 1100 && _api.get('.jwtpl-jobad-hili-toggle').length > 0 &&
5664(_api.get('.jwdrf-sidebar-inner.jwtpl-jobad-hiliVisible').length + _api.get('.jwtpl-jmpt-leftColumn.jwtpl-jobad-hiliVisible').length === 0)) {
5665_api.get('.jwtpl-jobad-hili-toggle')[0].click();
5666}
5667jobMailBox.classList.add('jwtpl-jomab-auto-opened')
5668elem6.click();
5669jobMailBox.classList.remove('open')
5670//_api.get('[name="' + jumptag + '"]')[0].scrollIntoView();
5671jobMailBox.classList.add(animationClass);
5672var modalBackground = document.createElement('div');
5673modalBackground.classList.add('jwtpl-jomab-modal-background');
5674document.querySelector('.jwtpl-obo-block').appendChild(modalBackground);
5675document.body.classList.add('jwtpl-jomab-modal');
5676function closeModal() {
5677jobMailBox.classList.remove(animationClass);
5678jobMailBox.classList.remove('jwtpl-jomab-auto-opened')
5679if (_api.get('.jwtpl-jomab-modal-background', true).length > 0) {
5680document.querySelector('.jwtpl-obo-block').removeChild(modalBackground);
5681}
5682document.body.classList.remove('jwtpl-jomab-modal');
5683}
5684modalBackground.addEventListener('click', function(){
5685_api.get('.jwtpl-obo-itemJobMailBoxClose')[0].click();
5686})
5687_api.get('.jwtpl-obo-itemJobMailIcon')[0].addEventListener('click', closeModal)
5688_api.get('.jwtpl-obo-itemJobMailBoxClose')[0].addEventListener('click', closeModal)
5689jobMailBox.addEventListener("animationend", function () {
5690jobMailBox.classList.remove(animationClass);
5691})
5692}
5693}
5694else {
5695clearInterval(joma_bJobmailPopUp, 1000);
5696}
5697if (elem5 != null) {
5698document.querySelector('.jwtpl-hili-jobMailLink').addEventListener('click', function () {
5699elem5.classList.remove("popup");
5700});
5701}
5702}
5703var iii = 0;
5704var joma_bJobmailPopUpAnimation = function () {
5705if (iii <= 6) {
5706var elem = document.querySelector('.jwtpl-hili-jobMailLayer');
5707if (elem != null && elem.style.display != 'none') {
5708var btn = document.querySelector('.jwtpl-hili-jobMailForm .jwtpl-global-bt');
5709if (btn != null) {
5710var btnColor = window.getComputedStyle(btn).getPropertyValue('background-color');
5711var shadowOne = 'rgba(0,0,0,.1) 0px 0px 4px 2px';
5712var shadowTwo = btnColor + '0px 0px 4px 2px';
5713if ((iii % 2) != 0) {
5714elem.style.boxShadow = shadowTwo;
5715} else {
5716elem.style.boxShadow = shadowOne;
5717}
5718}
5719} else {
5720clearInterval(joma_bJobmailPopUpAnimation, 250);
5721}
5722iii++;
5723}
5724}
5725var joma_bJobmailPopUpAnimationMobile = function () {
5726if (iii <= 8) {
5727var elem = document.querySelector('.jwtpl-remo-jobMailLayer');
5728if (elem != null && elem.style.display != 'none') {
5729var btn = document.querySelector('.jwtpl-remo-jobMailForm .jwtpl-global-bt');
5730if (btn != null) {
5731var btnColor = window.getComputedStyle(btn).getPropertyValue('background-color');
5732var shadowOne = 'rgba(0,0,0,.1) 0px 0px 4px 2px';
5733var shadowTwo = btnColor + '0px 0px 4px 2px';
5734if ((iii % 2) != 0) {
5735elem.style.boxShadow = shadowTwo;
5736} else {
5737elem.style.boxShadow = shadowOne;
5738}
5739}
5740} else {
5741clearInterval(joma_bJobmailPopUpAnimationMobile, 250);
5742}
5743iii++;
5744}
5745}
5746var joma_bSlideOutSliderOnFilteredSite = function () {
5747if (joma_bCheckUrlHas('jssi') == true) {
5748window.addEventListener('load', function () {
5749var slideBtn = document.querySelector('.jwtpl-slde-smallArrow');
5750if (slideBtn != null && joma_bCheckUrlHasNot('jssc') && joma_bCheckUrlHasNot('jsso')) {
5751slideBtn.click();
5752setInterval(joma_bAnimateSliderOnFilteredSite, 250);
5753}
5754});
5755}
5756}
5757var joma_bAnimateSliderOnFilteredSite = function () {
5758if (iii <= 8) {
5759var elem = document.querySelector('.jwtpl-slde-smallArrow');
5760if (elem != null && elem.style.display != 'none') {
5761var btn = document.querySelector('#jwtpl-slde-jobMailTab');
5762var block = document.querySelector('#jwtpl-slde-sliderJS');
5763var btnColor = window.getComputedStyle(btn).getPropertyValue('background-color');
5764var colorTwo = window.getComputedStyle(btn).getPropertyValue('color');
5765var arrow = document.querySelector('.fa-angle-left');
5766var list = document.querySelector('#jwtpl-slde-noticeListTabSide');
5767var jobmail = document.querySelector('#jwtpl-slde-jobMailTabSide');
5768var shadowOne = 'rgba(170,170,170,0.5)';
5769var shadowTwo = btnColor;
5770var colorOne = '#000';
5771block.style.boxShadow = 'none';
5772if (btn != null && block != null) {
5773block.style.boxShadow = 'none';
5774if ((iii % 2) != 0) {
5775elem.style.backgroundColor = shadowTwo;
5776arrow.style.color = colorTwo;
5777list.style.color = colorTwo;
5778jobmail.style.color = colorTwo;
5779} else {
5780elem.style.backgroundColor = shadowOne;
5781arrow.style.color = colorOne;
5782list.style.color = colorOne;
5783jobmail.style.color = colorOne;
5784}
5785} else {
5786clearInterval(joma_bAnimateSliderOnFilteredSite, 250);
5787}
5788} else {
5789clearInterval(joma_bAnimateSliderOnFilteredSite, 250);
5790}
5791iii++;
5792} else {
5793clearInterval(joma_bAnimateSliderOnFilteredSite, 250);
5794}
5795}
5796var joma_bPopUpAndSlideOut = function () {
5797if ((joma_bGetJsonText('sm') === 'slider') || (joma_bGetJsonText('sm') === 'regular')) {
5798joma_bSlideOutSliderOnFilteredSite();
5799}
5800if ((joma_bGetJsonText('sm') === 'hitlist') || (joma_bGetJsonText('sm') === 'regular')) {
5801joma_bJobmailPopUpTimer();
5802}
5803}
5804var joma_bInitPopupOnTeaserCall = function() {
5805let
5806obo = _api.get('.jwtpl-obo-block'),
5807jomaLayer = _api.get('.jwtpl-obo-itemJobMailIcon'),
5808jobMailBox = _api.get('.jwtpl-obo-itemJobMailBox');
5809if(obo.length > 0 && jobMailBox.length > 0 && jomaLayer.length > 0 && _api.getUrlParameter('jmoj') !== false) {
5810let
5811bg = document.createElement('div'),
5812closeIcon = _api.get('.jwtpl-obo-itemJobMailBoxClose'),
5813jobMailSubHeadingAdd = _api.get('.jwtpl-obo-itemJobMailSubHeadingAdd');
5814jomaLayer[0].click();
5815jobMailBox[0].classList.add('jwtpl-jomab-auto-opened');
5816_api.addClass(bg, 'jwtpl-jomab-modal-background');
5817obo[0].appendChild(bg);
5818document.body.classList.add('jwtpl-jomab-modal');
5819if(closeIcon.length > 0) {
5820_api.event(closeIcon[0], 'click', (e) => {
5821bg.remove();
5822jobMailBox[0].classList.remove('jwtpl-jomab-auto-opened');
5823});
5824}
5825if(jobMailSubHeadingAdd.length > 0) {
5826let text = _api.getBaseCfg('obo.1.ov.gui.subtitleadd', '');
5827if(text.length > 0) {
5828jobMailSubHeadingAdd[0].innerText = text;
5829_api.removeClass(jobMailSubHeadingAdd[0],'jwtpl-gc-hidden1');
5830}
5831}
5832}
5833}
5834var joma_bInit = function () {
5835joma_bPopUpAndSlideOut();
5836joma_bRegistBtn(); // Drecksfusch, wenn der Slider aus ist, geht JOMA nicht mehr
5837setTimeout(joma_bInitPopupOnTeaserCall, 250);
5838}
5839var jomaFunctions = function(){
5840var jomaForm = jQuery(".jwtpl-joma-block");
5841/*jomaEmail = jQuery('.jwtpl-joma-email input[name="jobmail"]');
5842jomaEmailPlaceholder = jomaEmail.val();
5843jomaTrigger = jQuery('.jwtpl-joma-bt');
5844jomaMsg = jQuery('.jwtpl-joma-message-container');
5845regexPattern = new RegExp(/^[+a-zA-Z0-9._-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,4}$/i);
5846stmUrl = 'http://jw-len-w8s-11.hockenheim.jw.dir/arbeitsschutz-portal.jobs.jobware.net/_localdata/beispiel/jmResponse.json';
5847jomaEmail.focus(function(){
5848jomaEmail.css("box-shadow", "0px 0px 3px 0px #ccc inset");
5849jomaMsg.empty();
5850jomaMsg.hide();
5851});*/
5852_globalFillPlaceholderInForm(jomaForm);
5853}
5854this.jomaGetColorMeInfo = function() {
5855return [ '.jwtpl-joma-block|desktop|all|base|color:f|background-color:bg',
5856'.jwtpl-joma-bt|desktop|all|base|color:hf|background-color:hbg',
5857'.jwtpl-joma-bt|desktop|all|hover|color:af|background-color:abg',
5858'.jwtpl-joma-block|mobile|all|base|color:f|background-color:bg',
5859'.jwtpl-joma-bt|mobile|all|base|color:hf|background-color:hbg'
5860];
5861}
5862var jomaInit = function() {
5863jomaFunctions();
5864}
5865var limoToggleVisibility = function() {
5866var
5867limoBlock = _api.get('.jwtpl-limo-block');
5868if(limoBlock.length > 0){
5869if(_api.hasClass(limoBlock[0], 'jwtpl-gc-hidden1') === true){
5870_api.removeClass(limoBlock[0], 'jwtpl-gc-hidden1');
5871} else {
5872_api.addClass(limoBlock[0], 'jwtpl-gc-hidden1');
5873}
5874}
5875}
5876var limoResize = function(animationMode){
5877var
5878limoBlock = jQuery('.jwtpl-limo-block'),
5879delay = 0;
5880limoBlock.each(function(){
5881var
5882count = 0,
5883currentBlock = jQuery(this),
5884maxElements = currentBlock.attr('data-jwtpl-limo-visibleElementsMobile'),
5885elements = jQuery('.jwtpl-limo-element', currentBlock);
5886elements.each(function(){
5887var currentElement = jQuery(this);
5888if(count < maxElements){
5889count++;
5890currentElement.addClass('visible');
5891} else {
5892currentElement.addClass('invisible');
5893currentElement.hide();
5894}
5895});
5896if(elements.length > maxElements){
5897var
5898div = jQuery('<div>'),
5899toggler = jQuery('<a>');
5900div.addClass('jwtpl-limo-toggler');
5901toggler.attr('href', '#');
5902toggler.addClass('iconDown');
5903toggler.click(function(e){
5904e.preventDefault();
5905elements.each(function(){
5906if(jQuery(this).hasClass('invisible') === true){
5907jQuery(this).toggle(delay, function(){});
5908}
5909});
5910if(jQuery(this).hasClass('iconDown') === true){
5911jQuery(this).removeClass('iconDown').addClass('iconUp');
5912} else {
5913jQuery(this).removeClass('iconUp').addClass('iconDown');
5914}
5915});
5916div.append(toggler);
5917jQuery(this).append(div);
5918}
5919});
5920}
5921var limoResizeCleanUp = function(){
5922var
5923limoBlock = jQuery('.jwtpl-limo-block');
5924limoBlock.each(function(){
5925var
5926currentBlock = jQuery(this),
5927elements = jQuery('.jwtpl-limo-element', currentBlock),
5928limoToggler = jQuery('.jwtpl-limo-toggler', currentBlock);
5929if(elements.hasClass('visible') === true){
5930elements.removeClass('visible');
5931}
5932if(elements.hasClass('invisible') === true){
5933elements.removeClass('invisible');
5934elements.show();
5935}
5936limoToggler.remove();
5937});
5938}
5939var limoInit = function () {
5940var
5941triggered = false,
5942buttonRendered = false;
5943if(jQuery(window).width() < 769 && triggered === false){
5944triggered = true;
5945limoResize();
5946}
5947jQuery(window).on('resize', function(e) {
5948if(jQuery(window).width() < 769 && triggered === false){
5949triggered = true;
5950limoResize();
5951} else if(jQuery(window).width() > 769 && triggered === true){
5952triggered = false
5953limoResizeCleanUp();
5954}
5955});
5956}
5957var meliliInitInFolderMenu = function(){
5958var
5959trigger = _api.get('[data-jwtpl-melili-simpleMode="0"] .jwtpl-melili-menuIcon'),
5960inFolder = _api.get('.jwtpl-gc-itemInFolder1');
5961if(trigger.length > 0 && inFolder.length > 0){
5962var inFolderWrapper = document.createElement('div');
5963_api.addClass(inFolderWrapper, 'jwtpl-melili-menuFolder jwtpl-gc-hidden1');
5964_api.each(inFolder, function(item){
5965_api.show(item);
5966inFolderWrapper.appendChild(item);
5967});
5968trigger[0].insertAdjacentElement('afterend', inFolderWrapper);
5969_api.event(trigger[0], 'click', function(e){
5970e.stopPropagation();
5971var other = _api.get('.jwtpl-melili-linkWrapper');
5972_api.each(other, function(ele){
5973if(_api.hasClass(ele,'fadeIn') === true){
5974_api.addClass(ele, 'jwtpl-gc-hidden1');
5975_api.removeClass(ele, 'fadeIn')
5976}
5977});
5978if(_api.hasClass(inFolderWrapper, 'jwtpl-gc-hidden1') === true){
5979_api.removeClass(inFolderWrapper, 'jwtpl-gc-hidden1');
5980_api.addClass(inFolderWrapper, 'fadeIn');
5981} else {
5982_api.addClass(inFolderWrapper, 'jwtpl-gc-hidden1');
5983_api.removeClass(inFolderWrapper, 'fadeIn');
5984}
5985});
5986_api.event(trigger[0], 'keydown', function (e) {
5987if (e.key === 'Enter' || e.key === ' ') {
5988e.preventDefault();
5989trigger[0].click();
5990}
5991});
5992var
5993map = new Map(),
5994meliLinks = _api.get('.jwdrf-header-links .jwtpl-gc-itemLevel0');
5995folderLinks = _api.get('.jwdrf-header-links .jwtpl-gc-itemLevel1');
5996_api.each(meliLinks, function(item){
5997if(item.hasAttribute('data-jwtpl-gc-lvl0key') === true){
5998var
5999attr = item.getAttribute('data-jwtpl-gc-lvl0key'),
6000catWrapper = document.createElement('span');
6001if(_api.isString(attr) === true){
6002var linkWrapper = document.createElement('div');
6003if(_api.hasClass(item, 'jwtpl-gc-itemInFolder0') == true){
6004catWrapper.setAttribute('class', 'jwtpl-melili-catWrapper jwtpl-melili-folderLvl0');
6005} else if(_api.hasClass(item, 'jwtpl-gc-itemInFolder1') == true){
6006catWrapper.setAttribute('class', 'jwtpl-melili-catWrapper jwtpl-melili-folderLvl1');
6007}
6008linkWrapper.setAttribute('class', 'jwtpl-melili-linkWrapper jwtpl-gc-hidden1');
6009catWrapper.setAttribute('data-jwtpl-melili-catWrapper', attr);
6010item.insertAdjacentElement('beforebegin', catWrapper);
6011catWrapper.appendChild(item);
6012_api.each(folderLinks, function(link){
6013if(link.hasAttribute('data-jwtpl-gc-lvl0key') === true){
6014var childRef = link.getAttribute('data-jwtpl-gc-lvl0key');
6015if(_api.isString(childRef) === true && childRef === attr){
6016_api.show(link);
6017linkWrapper.appendChild(link);
6018}
6019}
6020});
6021catWrapper.appendChild(linkWrapper);
6022_api.event(item, 'click', function(e){
6023e.preventDefault();
6024e.stopPropagation();
6025if(_api.hasClass(linkWrapper, 'jwtpl-gc-hidden1') === true) {
6026var other = _api.get('.jwtpl-melili-linkWrapper, .jwtpl-melili-menuFolder');
6027_api.each(other, function(ele){
6028var flank = item.parentElement !== null ? item.parentElement.parentElement : false;
6029if(ele !== linkWrapper && _api.hasClass(ele, 'fadeIn') === true && _api.hasClass(flank, 'jwtpl-melili-menuFolder') === false){
6030_api.addClass(ele, 'jwtpl-gc-hidden1');
6031_api.removeClass(ele, 'fadeIn');
6032}
6033});
6034_api.removeClass(linkWrapper, 'jwtpl-gc-hidden1');
6035_api.addClass(linkWrapper, 'fadeIn');
6036} else {
6037_api.addClass(linkWrapper, 'jwtpl-gc-hidden1');
6038_api.removeClass(linkWrapper, 'fadeIn');
6039}
6040});
6041}
6042}
6043});
6044}
6045}
6046var meliliInitMolileMode = function(){
6047var
6048menu = _api.get('.jwtpl-melili-menuFolder'),
6049headerLinks = _api.get('.jwdrf-header-links .jwtpl-melili-blockInner > .jwtpl-melili-icon, .jwdrf-header-links .jwtpl-melili-blockInner > .jwtpl-melili-catWrapper, .jwdrf-header-topLinks .jwtpl-melili-blockInner > .jwtpl-melili-icon, .jwdrf-header-topLinks .jwtpl-melili-blockInner > .jwtpl-melili-catWrapper'),
6050footerLinks = _api.get('.jwdrf-footer-info .jwtpl-melili-icon');
6051if(menu.length > 0 && headerLinks.length > 0 /* && footerLinks.length > 0 */){
6052var headerLinks = Array.prototype.slice.call(headerLinks);
6053headerLinks = headerLinks.reverse();
6054_api.each(headerLinks, function(item){
6055var clone = item.cloneNode(true);
6056if(_api.hasClass(clone, 'jwtpl-melili-catWrapper') === true){
6057var children = clone.children;
6058if(children.length == 2) {
6059_api.event(children[0], 'click', function(e){
6060e.stopPropagation();
6061var other = _api.get('.jwtpl-melili-menuFolder .jwtpl-melili-linkWrapper');
6062_api.each(other, function(ele){
6063if(ele !== children[1] && _api.hasClass(ele, 'jwtpl-gc-hidden1') === false){
6064_api.addClass(ele, 'jwtpl-gc-hidden1');
6065_api.removeClass(ele, 'fadeIn');
6066}
6067});
6068if(_api.hasClass(children[1], 'jwtpl-gc-hidden1') === true){
6069_api.removeClass(children[1], 'jwtpl-gc-hidden1');
6070_api.addClass(children[1], 'fadeIn');
6071} else {
6072_api.addClass(children[1], 'jwtpl-gc-hidden1');
6073_api.removeClass(children[1], 'fadeIn');
6074}
6075});
6076}
6077}
6078_api.addClass(clone, 'jwtpl-melili-mobileMode');
6079menu[0].prepend(clone);
6080});
6081_api.each(footerLinks, function(item){
6082var clone = item.cloneNode(true);
6083_api.addClass(clone, 'jwtpl-melili-mobileMode');
6084if(clone.hasAttribute('data-jwtpl-sysdsgvo-dsgvolink') === true) {
6085_api.event(clone, 'click', function(e){
6086let menuFolder = _api.get('.jwtpl-melili-menuFolder');
6087if(menuFolder.length > 0) {
6088_api.addClass(menuFolder[0], 'jwtpl-gc-hidden1');
6089_api.removeClass(menuFolder[0], 'fadeIn');
6090}
6091});
6092}
6093_api.show(clone);
6094menu[0].appendChild(clone);
6095});
6096}
6097}
6098var meliliResetMolileMode = function() {
6099var clones = _api.get('.jwtpl-melili-mobileMode', true);
6100if(clones.length > 0) {
6101_api.each(clones, function(item){
6102item.remove();
6103});
6104}
6105}
6106var meliliCloseAllOnAction = function(){
6107var body = _api.get('body');
6108if(body.length > 0){
6109_api.event(body[0], 'click', function(e){
6110e.stopPropagation();
6111var other = _api.get('.jwtpl-melili-linkWrapper.fadeIn, .jwtpl-melili-menuFolder.fadeIn', true);
6112_api.each(other, function(item){
6113_api.addClass(item, 'jwtpl-gc-hidden1');
6114_api.removeClass(item, 'fadeIn');
6115});
6116});
6117}
6118}
6119var meliliInitNoli = function(){
6120var trigger = _api.get('[data-jwtpl-sysnoli-nolilist]');
6121if(trigger.length > 0){
6122var
6123text,
6124noliInner = document.createElement('div');
6125_api.addClass(noliInner, 'jwtpl-melili-noliInner');
6126_api.addClass(noliInner, 'jwtpl-gc-hidden1');
6127text = '<div class="jwtpl-obo-itemNoticeListHeading jwtpl-sysNoli-header">Ihre Merkliste' +
6128'<span class="jwtpl-sysNoli-cnt" data-jwtpl-sys-nolisize="0" data-jwtpl-sys-nolisizemax="50">/</span></div>' +
6129'<p class="jwtpl-sysNoli-noItem">Mit Klick auf einen Stern in der Trefferliste können Sie sich die Anzeige merken</p>';
6130noliInner.innerHTML = text;
6131trigger[0].insertAdjacentElement('afterend', noliInner);
6132_api.event(trigger[0], 'click', function(e){
6133e.stopPropagation();
6134if(_api.hasClass(noliInner,'jwtpl-gc-hidden1') === true){
6135_api.removeClass(noliInner, 'jwtpl-gc-hidden1');
6136_api.addClass(noliInner, 'fadeIn');
6137} else {
6138_api.addClass(noliInner, 'jwtpl-gc-hidden1');
6139_api.removeClass(noliInner, 'fadeIn');
6140}
6141});
6142}
6143}
6144var meliliModifyMenuLink = function() {
6145let
6146parentLink = _api.get('.jwdrf-header-links .jwtpl-melili-blockInner.jwtpl-gc-itemList.jwtpl-gc-itemListMenu'),
6147footerLink = _api.get('.jwdrf-footer-info .jwtpl-melili-iconMarkerHome.jwtpl-melili-itemGrAble0.jwtpl-gc-itemLevel0');
6148if(!parentLink || !parentLink[0].children[0].children[1]){
6149return false;
6150}
6151if(!footerLink){
6152return false;
6153}
6154let stellenmarktLink = parentLink[0].children[0].children[1].children[0],
6155originalHref = stellenmarktLink.getAttribute("href");
6156if(stellenmarktLink.children[0].innerHTML.localeCompare("Stellenmarkt") === 0 || stellenmarktLink.children[0].innerHTML.localeCompare("Studierendenjobs") === 0){
6157stellenmarktLink.removeAttribute('href');
6158stellenmarktLink.onclick = ()=>{
6159self.location.href = originalHref;
6160}
6161stellenmarktLink.title ="Zum Stellenmarkt";
6162}
6163if(footerLink[0].innerText.localeCompare("Home") === 0 && footerLink[0].target !== "_blank"){
6164footerLink[0].setAttribute('href', originalHref);
6165footerLink[0].title ="Zur Startseite";
6166}
6167}
6168var meliliInit = function() {
6169meliliInitInFolderMenu();
6170//meliliCloseAllOnAction();
6171var triggered = false,
6172width = window.innerWidth || document.documentElement.clientWidth || document.body.clientWidth;
6173if (width <= 1200 && triggered === false) {
6174triggered = true;
6175meliliInitMolileMode();
6176}
6177window.addEventListener('resize', function(e) {
6178var width = window.innerWidth || document.documentElement.clientWidth || document.body.clientWidth;
6179if (width <= 1200 && triggered === false) {
6180triggered = true;
6181meliliInitMolileMode();
6182} else if (width > 1200 && triggered === true) {
6183triggered = false
6184meliliResetMolileMode();
6185}
6186});
6187meliliInitNoli();
6188meliliModifyMenuLink();
6189}
6190var oboInitEventListener = function(){
6191var
6192oboBlock = _api.get('.jwtpl-obo-block'),
6193jomaBlockOneJob = _api.get('.jwtpl-sysApi-countJob1 .jwtpl-joma-block'),
6194jomaTrigger = _api.get('.jwtpl-obo-itemJobMailIcon'),
6195jomaToggleElement = _api.get('.jwtpl-obo-itemJobMailBox'),
6196jomaClose = _api.get('.jwtpl-obo-itemJobMailBoxClose'),
6197noliTrigger = _api.get('.jwtpl-obo-itemNoticeListIcon'),
6198noliToggleElement = _api.get('.jwtpl-obo-itemNoticeListBox'),
6199noliClose = _api.get('.jwtpl-obo-itemNoticeListBoxClose'),
6200fiteTrigger = _api.get('.jwtpl-jmpt-toggleBoxOneTitle'),
6201fiteToggleElement = _api.get('.jwtpl-sys-elementInner'),
6202noFilterOrderTrigger = _api.get('.jwtpl-fite-blockNoFilterOrderMode1 .jwtpl-fite-sortingActiveElement');
6203if(jomaTrigger.length > 0 && jomaToggleElement.length > 0){
6204_api.event(jomaTrigger[0], 'click', function(e){
6205if(_api.hasClass(jomaToggleElement[0], 'open')){
6206_api.removeClass(jomaToggleElement[0], 'open');
6207_api.hide(jomaToggleElement[0]);
6208_api.show(jomaBlockOneJob[0]);
6209} else {
6210_api.addClass(jomaToggleElement[0], 'open');
6211_api.show(jomaToggleElement[0]);
6212_api.hide(jomaBlockOneJob[0]);
6213}
6214if(noliToggleElement.length > 0 && _api.hasClass(noliToggleElement[0],'open') === true){
6215_api.removeClass(noliToggleElement[0], 'open');
6216_api.hide(noliToggleElement[0]);
6217}
6218if(fiteTrigger.length > 0 && fiteToggleElement.length > 0){
6219_api.removeClass(fiteTrigger[0], 'expanded');
6220fiteToggleElement[0].style.maxHeight = '';
6221fiteToggleElement[0].style.overflow = '';
6222fiteToggleElement[0].style.opacity = '';
6223}
6224if(noFilterOrderTrigger.length > 0 && fiteToggleElement.length > 0) {
6225_api.removeClass(noFilterOrderTrigger[0], 'expanded');
6226_api.hide(fiteToggleElement[0]);
6227}
6228if(jomaClose.length > 0){
6229_api.event(jomaClose[0], 'click', function(e){
6230_api.removeClass(jomaToggleElement[0], 'open');
6231_api.hide(jomaToggleElement[0]);
6232_api.show(jomaBlockOneJob[0]);
6233});
6234}
6235});
6236}
6237if(noliTrigger.length > 0 && noliToggleElement.length > 0){
6238var boxItems = _api.get('.jwtpl-obo-itemNoticeListBoxItems');
6239_api.event(noliTrigger[0], 'click', function(e){
6240if(_api.hasClass(noliToggleElement[0], 'open')){
6241_api.removeClass(noliToggleElement[0], 'open');
6242_api.hide(noliToggleElement[0]);
6243} else {
6244_api._consent().checkConsent(2, function(){
6245if(_api._noli() !== false) {
6246if(_api._consent().checkConsent(2) === true){
6247var noli = _api._noli().renderNoli();
6248} else{
6249var noli = false;
6250}
6251if(noli !== false){
6252if(noli.length > 0){
6253if(boxItems.length > 0){
6254_api.empty(boxItems[0]);
6255for(var i=0; i<noli.length; i++){
6256boxItems[0].appendChild(noli[i].cloneNode(true));
6257}
6258}
6259}
6260} else {
6261boxItems[0].innerHTML = _api._noli().getDefaultMsg();
6262}
6263}
6264});
6265_api.addClass(noliToggleElement[0], 'open');
6266_api.show(noliToggleElement[0]);
6267}
6268if(jomaToggleElement.length > 0 && _api.hasClass(jomaToggleElement[0],'open') === true){
6269_api.removeClass(jomaToggleElement[0], 'open');
6270_api.hide(jomaToggleElement[0]);
6271}
6272if(fiteTrigger.length > 0 && fiteToggleElement.length > 0){
6273_api.removeClass(fiteTrigger[0], 'expanded');
6274fiteToggleElement[0].style.maxHeight = '';
6275fiteToggleElement[0].style.overflow = '';
6276fiteToggleElement[0].style.opacity = '';
6277}
6278if(noFilterOrderTrigger.length > 0 && fiteToggleElement.length > 0) {
6279_api.removeClass(noFilterOrderTrigger[0], 'expanded');
6280_api.hide(fiteToggleElement[0]);
6281}
6282if(noliClose.length > 0){
6283_api.event(noliClose[0], 'click', function(e){
6284_api.removeClass(noliToggleElement[0], 'open');
6285_api.hide(noliToggleElement[0]);
6286});
6287}
6288});
6289}
6290if(fiteTrigger.length > 0 && fiteToggleElement.length > 0){
6291_api.event(fiteTrigger[0], 'click', function(e){
6292if(noliToggleElement.length > 0 && _api.hasClass(noliToggleElement[0],'open') === true){
6293_api.removeClass(noliToggleElement[0], 'open');
6294_api.hide(noliToggleElement[0]);
6295}
6296if(jomaToggleElement.length > 0 && _api.hasClass(jomaToggleElement[0],'open') === true){
6297_api.removeClass(jomaToggleElement[0], 'open');
6298_api.hide(jomaToggleElement[0]);
6299}
6300});
6301}
6302if(fiteTrigger.length == 0 || fiteToggleElement.length == 0){
6303if(oboBlock.length > 0) {
6304_api.style(oboBlock[0], 'float', 'none');
6305}
6306}
6307if(noFilterOrderTrigger.length > 0) {
6308let noFilterOrderCloseIcon = _api.get('.jwtpl-fite-sortingGroupBoxClose');
6309if(noFilterOrderCloseIcon.length > 0) {
6310_api.removeClass(noFilterOrderCloseIcon[0], 'jwtpl-gc-hidden1');
6311_api.event(noFilterOrderCloseIcon[0], 'click', (e) => {
6312_api.hide(fiteToggleElement[0]);
6313});
6314}
6315}
6316}
6317var oboSetTextInDiv = function() {
6318var texte = [];
6319texte['itemJobMailHeading'] = 'Passende Jobs zu Ihrer Suche ...';
6320texte['itemJobMailSubHeading'] = '... immer aktuell und kostenlos per Mail';
6321texte['itemJobMailBt'] = 'Jobs kostenlos per E-Mail';
6322texte['itemJobMailNotice'] = 'Sie k&ouml;nnen den Suchauftrag jederzeit abbestellen.';
6323texte['itemJobMailDsgvo'] = 'Es gilt unsere Datenschutzerkl&auml;rung. Sie erhalten passende Angebote per E-Mail. Sie k&ouml;nnen sich jederzeit wieder kostenlos abmelden.';
6324matching = [];
6325matching['itemJobMailHeading'] = 'jmh';
6326matching['itemJobMailSubHeading'] = 'jms';
6327matching['itemJobMailBt'] = 'jmt';
6328matching['itemJobMailNotice'] = 'jmn';
6329matching['itemJobMailDsgvo'] = 'jmd';
6330joma_bSetText('obo', 'itemJobMailBoxInner', texte, matching);
6331}
6332var oboModifyPlaceholder = function() {
6333var oboForms = jQuery('.jwtpl-obo-itemJobMailBoxInner');
6334_globalFillPlaceholderInForm(oboForms);
6335}
6336this.oboGetColorMeInfo = function() {
6337return [ '.jwtpl-obo-itemJobMailBox|desktop|all|base|color:f|background-color:bg',
6338'.jwtpl-obo-itemJobMailBt|desktop|all|base|color:hf|background-color:hbg',
6339'.jwtpl-obo-itemJobMailBox .jwtpl-obo-itemJobMailBt|desktop|all|hover|color:af|background-color:abg',
6340'.jwtpl-obo-itemJobMailBox|mobile|all|base|color:f|background-color:bg',
6341'.jwtpl-obo-itemJobMailBt|mobile|all|base|color:hf|background-color:hbg'
6342];
6343}
6344var oboInit = function() {
6345var jsonConfigStr = _globalGetJsonConfig();
6346var noticeListIsSet = false;
6347var jobMailerIsSet = false;
6348var saveSearchListIsSet = false;
6349if(jsonConfigStr['noli-b'] !== undefined) {
6350noli_bRegistMod('obo', 'itemNoticeListBoxItems');
6351noli_bRefreshMarked();
6352noticeListIsSet = true;
6353}
6354if(jsonConfigStr['joma-b'] !== undefined) {
6355oboSetTextInDiv();
6356joma_bRegistBtn();
6357jobMailerIsSet = true;
6358oboModifyPlaceholder();
6359}
6360if(jsonConfigStr['saseli-b'] !== undefined) {
6361saseli_bSetSaveSearchList('obo', 'itemSaveSearchListBoxItems');
6362saseli_bDeleteSearchFromList();
6363saveSearchListIsSet = true;
6364}
6365oboInitEventListener();
6366}
6367var remoModifyJobMailPlaceholder = function() {
6368var remoForms = jQuery(".jwtpl-remo-jobMailForm");
6369_globalFillPlaceholderInForm(remoForms);
6370}
6371var remoSetTextInDivs = function() {
6372var texte = [];
6373texte['jobMailTitle'] = 'Passende Jobs zu Ihrer Suche ...';
6374texte['jobMailSubTitle'] = '... immer aktuell und kostenlos per Mail';
6375texte['jobMailBtn'] = 'Jobs kostenlos per E-Mail';
6376texte['jobMailSlogan'] = 'Sie k&ouml;nnen den Suchauftrag jederzeit abbestellen.';
6377matching = [];
6378matching['jobMailTitle'] = 'jmt';
6379matching['jobMailSubTitle'] = 'jmst';
6380matching['jobMailBtn'] = 'jmn';
6381matching['jobMailSlogan'] = 'jms';
6382joma_bSetText('remo', 'jobMailForm', texte, matching);
6383}
6384var remoJobMailer = function() {
6385jQuery(".jwtpl-remo-jobMailLink").unbind().click(function(e) {
6386e.preventDefault();
6387remoSetTextInDivs();
6388if (jQuery('.jwtpl-remo-jobMailLayer:visible').length) {
6389jQuery(".jwtpl-remo-jobMailLayer").css("display", "none");
6390} else {
6391jQuery(".jwtpl-remo-jobMailLayer").css("display", "inline-block");
6392if (jQuery(".jwtpl-remo-noticeListLayer").css("display") != 'none') {
6393jQuery(".jwtpl-remo-noticeListLayer").css("display", "none");
6394}
6395if (jQuery(".jwtpl-remo-saveSearchLayer").css("display") != "none") {
6396jQuery(".jwtpl-remo-saveSearchLayer").css("display", "none");
6397}
6398}
6399});
6400jQuery(".jwtpl-remo-jobMailLayer .jwtpl-global-bt").click(function(e) {
6401e.preventDefault();
6402});
6403jQuery(".jwtpl-remo-jobMailLink, .jwtpl-remo-jobMailLayer").click(function(e) {
6404e.stopPropagation();
6405});
6406jQuery("html, .jwtpl-remo-jobMailIconClose").click(function(event) {
6407jQuery(".jwtpl-remo-jobMailLayer:visible").css("display", "none");
6408});
6409}
6410var remoNoticeList = function() {
6411if (typeof noli_bRegistMod == 'function') {
6412noli_bRegistMod("remo", "noticeListSaveList");
6413}
6414jQuery(".jwtpl-remo-noticeListLink").click(function(e) {
6415e.preventDefault();
6416if (jQuery('.jwtpl-remo-noticeListLayer:visible').length) {
6417jQuery(".jwtpl-remo-noticeListLayer").css("display", "none");
6418} else {
6419jQuery(".jwtpl-remo-noticeListLayer").css("display", "inline-block");
6420if (jQuery(".jwtpl-remo-jobMailLayer").css("display") != 'none') {
6421jQuery(".jwtpl-remo-jobMailLayer").css("display", "none");
6422}
6423if (jQuery(".jwtpl-remo-saveSearchLayer").css("display") != 'none') {
6424jQuery(".jwtpl-remo-saveSearchLayer").css("display", "none");
6425}
6426// if(typeof noli_bRefreshMarked != 'undefined')
6427// {
6428// noli_bRegistMod("remo", "noticeListSaveList");
6429// console.log('--');
6430// noli_bRefreshMarked();
6431// }
6432}
6433});
6434jQuery(".jwtpl-remo-noticeListLink, .jwtpl-remo-noticeListLayer, .jwtpl-hili-itemFav").click(function(e) {
6435// click event wird bis zum Layer gebubblet und dann gestoppt
6436e.stopPropagation();
6437});
6438jQuery("html, .jwtpl-remo-noticeListIconClose").click(function(event) {
6439//event.stopPropagation();
6440jQuery(".jwtpl-remo-noticeListLayer:visible").css("display", "none");
6441});
6442}
6443var remoSaveSearch = function() {
6444jQuery(".jwtpl-remo-saveSearchLink").click(function(e) {
6445e.preventDefault();
6446if (jQuery('.jwtpl-remo-saveSearchLayer:visible').length) {
6447jQuery(".jwtpl-remo-saveSearchLayer").css("display", "none");
6448} else {
6449if (typeof saseli_bSetSaveSearchList !== 'undefined') {
6450saseli_bSetSaveSearchList("remo");
6451}
6452jQuery(".jwtpl-remo-saveSearchLayer").css("display", "inline-block");
6453if (jQuery(".jwtpl-remo-jobMailLayer").css("display") != 'none') {
6454jQuery(".jwtpl-remo-jobMailLayer").css("display", "none");
6455}
6456if (jQuery(".jwtpl-remo-noticeListLayer").css("display") != 'none') {
6457jQuery(".jwtpl-remo-noticeListLayer").css("display", "none");
6458}
6459// if(typeof noli_bRefreshMarked != 'undefined')
6460// {
6461// noli_bRegistMod("remo", "noticeListSaveList");
6462// console.log('--');
6463// noli_bRefreshMarked();
6464// }
6465}
6466});
6467jQuery(".jwtpl-remo-saveSearchLink, .jwtpl-remo-saveSearchLayer, .jwtpl-hili-itemFav").click(function(e) {// click
6468// event wird bis zum Layer gebubblet und dann gestoppt
6469e.stopPropagation();
6470});
6471jQuery("html, .jwtpl-remo-saveSearchIconClose").click(function(event) {
6472//event.stopPropagation();
6473jQuery(".jwtpl-remo-saveSearchLayer:visible").css("display", "none");
6474});
6475}
6476var remoShowHideLinks = function() {
6477if (jQuery(window).width() < 481) {
6478jQuery(".jwtpl-remo-showRemoLinks").unbind("click");
6479jQuery(".jwtpl-remo-showRemoLinks").click(function() {
6480if (jQuery('.jwtpl-remo-block').hasClass("jwtpl-remo-showLinks")) {
6481jQuery('.jwtpl-remo-block').removeClass("jwtpl-remo-showLinks");
6482jQuery(this).children("i").removeClass("fa-angle-up").addClass("fa-angle-down");
6483} else {
6484jQuery('.jwtpl-remo-block').addClass("jwtpl-remo-showLinks");
6485jQuery(this).children("i").removeClass("fa-angle-down").addClass("fa-angle-up");
6486}
6487});
6488} else {
6489jQuery('.jwtpl-remo-block').addClass("jwtpl-remo-showLinks");
6490}
6491}
6492var remoResize = function() {
6493var resizeTimer;
6494jQuery(window).on('resize', function(e) {
6495clearTimeout(resizeTimer);
6496resizeTimer = setTimeout(function() {
6497remoShowHideLinks();
6498}, 250);
6499});
6500}
6501var remoModifyHiddenGoogleLinks = function() {
6502// Quelle, dass ein # von Google nicht gecrawlt wird ('Review Your URLs')
6503// https://www.searchenginepeople.com/blog/16094-google-javascript-crawling.html
6504var elements = document.querySelectorAll('[data-jwtpl-remo-hguUrl]');
6505for ( var index = 0; index < elements.length; index++) {
6506if ((elements[index].hasAttribute('href') === true) && (elements[index].getAttribute('href') == '#') && (elements[index].getAttribute('data-jwtpl-remo-hguUrl') != '')) {
6507elements[index].setAttribute('href', elements[index].getAttribute('data-jwtpl-remo-hguUrl'));
6508}
6509}
6510}
6511var remoInit = function() {
6512remoModifyJobMailPlaceholder();
6513remoJobMailer();
6514remoNoticeList();
6515remoSaveSearch();
6516remoShowHideLinks();
6517remoResize();
6518remoModifyHiddenGoogleLinks();
6519}
6520var seboCollapse = function () {
6521var container = document.querySelector('.jwtpl-sebo-block');
6522var compactContainer = document.querySelector('.jwtpl-sebo-formCompactBlock')
6523var searchfieldCombined = document.querySelector('.jwtpl-sebo-formCompact');
6524var searchFieldJsjn = document.querySelector('.jwtpl-sebo-searchFormTextJsJn');
6525var searchFieldJsjo = document.querySelector('.jwtpl-sebo-searchFormTextJsJo');
6526var toExpand = document.querySelector('.jwtpl-sebo-expanded');
6527var sidebar = document.querySelector('#jwtpl-jmpt-areaSubMain');
6528if (!container || !searchfieldCombined || (!searchFieldJsjn && !searchFieldJsjo) || !toExpand || !compactContainer) {
6529_api.printErrorMsg(" -> seboCollapse() - missing element");
6530return false;
6531}
6532function setCombinedFieldText() {
6533searchfieldCombined.value = searchFieldJsjn?.value + ' - ' + searchFieldJsjo?.value;
6534if ((!searchFieldJsjn || searchFieldJsjn?.value === "") && (!searchFieldJsjo || searchFieldJsjo?.value === "")) {
6535if(!searchFieldJsjn && searchFieldJsjo){
6536searchfieldCombined.value = "Ort, PLZ"
6537}else if(searchFieldJsjn && !searchFieldJsjo){
6538searchfieldCombined.value = "Suchbegriff, Position"
6539}else{
6540searchfieldCombined.value = "Suchbegriff, Position, Ort, PLZ"
6541}
6542} else if (!searchFieldJsjn || searchFieldJsjn?.value === "") {
6543searchfieldCombined.value = "Jobs in " + searchFieldJsjo.value;
6544} else if (!searchFieldJsjo || searchFieldJsjo?.value === "") {
6545searchfieldCombined.value = searchFieldJsjn.value;
6546}
6547}
6548function expand() {
6549if (container.classList.contains('jwtpl-sebo-open') === false) {
6550toExpand.classList.remove('jwtpl-gc-hidden1');
6551searchfieldCombined.parentElement.classList.add('jwtpl-gc-hidden1');
6552_api.addClass(container, 'jwtpl-sebo-open');
6553toExpand.style.opacity = 1;
6554document.addEventListener('mousedown', detectClickOutsideSebo);
6555if (sidebar !== null) {
6556sidebar.addEventListener('wheel', collapse);
6557sidebar.addEventListener('touchmove', collapse);
6558}
6559if(searchFieldJsjn){
6560searchFieldJsjn.select();
6561}
6562else if(searchFieldJsjo){
6563searchFieldJsjo.select();
6564}
6565seboHideJsJnProposalList();
6566seboHideJsJoProposalList();
6567}
6568}
6569function collapse() {
6570if (container.classList.contains('jwtpl-sebo-open') === true) {
6571toExpand.classList.add('jwtpl-gc-hidden1');
6572searchfieldCombined.parentElement.classList.remove('jwtpl-gc-hidden1');
6573_api.removeClass(container, 'jwtpl-sebo-open');
6574toExpand.style.opacity = 0;
6575setCombinedFieldText();
6576seboHideJsJnProposalList();
6577seboHideJsJoProposalList();
6578document.removeEventListener('mousedown', detectClickOutsideSebo);
6579if (sidebar !== null) {
6580sidebar.removeEventListener('wheel', collapse);
6581sidebar.removeEventListener('touchmove', collapse);
6582}
6583}
6584}
6585function detectClickOutsideSebo() {
6586if (!event) {
6587_api.printErrorMsg(" -> seboCollapse()->detectClickOutsideSebo() - event not found");
6588}
6589var containerFound = container.contains(event.target);
6590if (containerFound === false) {
6591collapse();
6592}
6593}
6594searchfieldCombined.addEventListener('click', expand);
6595searchfieldCombined.addEventListener('select', expand);
6596searchfieldCombined.addEventListener('paste', expand);
6597searchfieldCombined.addEventListener('focus', expand);
6598container.addEventListener('focusout', function (e) {
6599if (!container.contains(e.relatedTarget)) {
6600collapse();
6601}
6602});
6603setCombinedFieldText();
6604}
6605var seboSetWidth = function () {
6606var iframe = document.querySelector('.jwtpl-jobad-adIframe');
6607var sebo = document.querySelector('.jwtpl-sebo-innerSticky');
6608var sidebar = document.querySelector('.jwdrf-sidebar-inner #jwtpl-jmpt-areaUnbound');
6609var jsjnSuggestList = document.querySelector('.jwtpl-sebo-jsjnSuggestList');
6610var jsjoSuggestList = document.querySelector('.jwtpl-sebo-jsjoSuggestList');
6611if (!sebo || !sidebar || (!jsjnSuggestList && !jsjoSuggestList)) {
6612_api.printErrorMsg(" -> seboSetWidth() - missing element");
6613return false;
6614}
6615function setSize() {
6616sebo.style.width = sidebar.scrollWidth + 'px';
6617if(jsjnSuggestList){
6618jsjnSuggestList.style.width = sidebar.scrollWidth + 'px';
6619}
6620if(jsjoSuggestList){
6621jsjoSuggestList.style.width = sidebar.scrollWidth + 'px';
6622}
6623}
6624window.addEventListener('resize', setSize);
6625if(iframe !== null){
6626iframe.addEventListener('load', setSize);
6627}
6628setSize();
6629}
6630isClicked = false;
6631requestSend = false;
6632var seboModifyPlaceholder = function () {
6633$(".jwtpl-sebo-formInputText").focus(seboUpdateText);
6634}
6635var seboUpdateText = function (e) {
6636activeSearchField = jQuery(this);
6637var inputField = this;
6638var blockElement = this.parentElement;
6639seboFocus('');
6640$(this).keyup(function () {
6641setTimeout(function () {
6642if (inputField.value != '' && !blockElement.classList.contains("floated")) {
6643blockElement.classList.add('floating');
6644setTimeout(function () {
6645blockElement.classList.add('floated');
6646blockElement.classList.remove('floating');
6647}, 500);
6648} else if (inputField.value == '') {
6649blockElement.classList.remove('floating');
6650blockElement.classList.remove('floated');
6651blockElement.classList.add('floatingBack');
6652setTimeout(function () {
6653blockElement.classList.remove('floatingBack');
6654}, 500);
6655}
6656}, 1);
6657});
6658}
6659var seboFocus = function (initValue) {
6660return true;
6661var tipLetter;
6662if (jQuery(activeSearchField).parent().find('.jwtpl-sebo-jsjnSuggestListOn').length != 0) {
6663if (activeSearchField.val().length > 2 && activeSearchField.val() != initValue) {
6664if (requestSend || _globalGetHost() == 'local') {
6665seboShowJsJnProposalList(activeSearchField.val());
6666}
6667}
6668activeSearchField.keyup(function () {
6669if (activeSearchField.val().length > 2) {
6670if (activeSearchField.hasClass('jwtpl-sebo-searchFormTextJsJn')) {
6671if (jQuery('.jwtpl-sebo-jsjnSuggestList').hasClass('jwtpl-sebo-jsjnSuggestListCoOn')) {
6672if (_globalGetHost() == 'live') {
6673if (typeof httpRequest != 'undefined') {
6674httpRequest.abort();
6675}
6676if (tipLetter != null) {
6677clearTimeout(tipLetter);
6678}
6679tipLetter = setTimeout(function () { seboAjaxRequestJsJnWithCo(this); }, 100);
6680}
6681} else {
6682if (_globalGetHost() == 'live') {
6683if (typeof httpRequest != 'undefined') {
6684httpRequest.abort();
6685}
6686if (tipLetter != null) {
6687clearTimeout(tipLetter);
6688}
6689tipLetter = setTimeout(function () { seboAjaxRequestJsJn(); }, 100);
6690}
6691}
6692var akt = this;
6693tipLetter = setTimeout(function () { seboShowJsJnProposalList(jQuery(akt).val()); }, 700);
6694}
6695} else {
6696seboHideJsJnProposalList();
6697}
6698});
6699}
6700if (jQuery(activeSearchField).parent().find('.jwtpl-sebo-jsjoSuggestListOn').length != 0) {
6701if (activeSearchField.val().length > 2 && activeSearchField.val() != initValue) {
6702if (requestSend || _globalGetHost() == 'local') {
6703seboShowJsJoProposalList(activeSearchField.val());
6704}
6705}
6706activeSearchField.keyup(function () {
6707if (activeSearchField.val().length > 2) {
6708if (activeSearchField.hasClass('jwtpl-sebo-searchFormTextJsJo')) {
6709if (_globalGetHost() == 'live') {
6710if (typeof httpRequest != 'undefined') {
6711httpRequest.abort();
6712}
6713if (tipLetter != null) {
6714clearTimeout(tipLetter);
6715}
6716tipLetter = setTimeout(function () { seboAjaxRequestJsJo(); }, 100);
6717}
6718var akt = this;
6719tipLetter = setTimeout(function () { seboShowJsJoProposalList(jQuery(akt).val()); }, 700);
6720}
6721} else {
6722seboHideJsJoProposalList();
6723}
6724});
6725}
6726}
6727var seboBlur = function () {
6728return true;
6729if (!isClicked) {
6730if (activeSearchField.hasClass('jwtpl-sebo-searchFormTextJsJo')) {
6731seboHideJsJoProposalList();
6732} else if (activeSearchField.hasClass('jwtpl-sebo-searchFormTextJsJn')) {
6733seboHideJsJnProposalList();
6734}
6735}
6736}
6737var seboGetContentJsJnProposalList = function () {
6738return true;
6739if (_globalGetHost() != 'live') {
6740if (jQuery('.jwtpl-sebo-jsjnSuggestList').hasClass('jwtpl-sebo-jsjnSuggestListCoOn')) {
6741var content = '{"version":"12.09","searchText":"inf","jobTitles":[{"id":"3_81_174951","typeId":3,"marketId":81,"localId":174951,"title":"Informatiker/in","score":0.32,"adCount":15},{"id":"3_81_174201","typeId":3,"marketId":81,"localId":174201,"title":"Bioinformatiker/in","score":0.24,"adCount":11},{"id":"3_81_173801","typeId":3,"marketId":81,"localId":173801,"title":"Wirtschaftsinformatiker/in","score":0.1,"adCount":4},{"id":"3_81_184271","typeId":3,"marketId":81,"localId":184271,"title":"Systeminformatiker/in","score":0.02,"adCount":0},{"id":"3_81_180331","typeId":3,"marketId":81,"localId":180331,"title":"Leiter/in Forschung","score":0.02,"adCount":0}],"advertiser":[{"id":"2_81_67191","typeId":2,"marketId":81,"localId":67191,"title":"MIK GmbH Management Information Kommunikation","score":0.099999994,"adCount":0},{"id":"2_81_68411","typeId":2,"marketId":81,"localId":68411,"title":"Advanced Driver Information Technology GmbH","score":0.099999994,"adCount":0},{"id":"2_81_25900","typeId":2,"marketId":81,"localId":25900,"title":"Mainfrucht GmbH & Co. KG","score":0.099999994,"adCount":0},{"id":"2_81_38121","typeId":2,"marketId":81,"localId":38121,"title":"EID Energie Informationsdienst GmbH","score":0.099999994,"adCount":0},{"id":"2_81_32641","typeId":2,"marketId":81,"localId":32641,"title":"Landratsamt Schweinfurt","score":0.099999994,"adCount":0}]}';
6742} else {
6743var content = '{"version":"12.08","searchText":"inf","entries":[{"id":"c0","title":"Berufsfeldübergreifend","searchString":"inf","rawTitle":"Berufsfeldübergreifend","entries":[{"id":"81_174951","proposal":174951,"title":"Informatiker/in","rawTitle":"Informatiker/in","score":0.32,"adCount":15},{"id":"81_174201","proposal":174201,"title":"Bioinformatiker/in","rawTitle":"Bioinformatiker/in","score":0.22,"adCount":10},{"id":"81_173801","proposal":173801,"title":"Wirtschaftsinformatiker/in","rawTitle":"Wirtschaftsinformatiker/in","score":0.1,"adCount":4},{"id":"81_174791","proposal":174791,"title":"Geoinformatiker/in","rawTitle":"Geoinformatiker/in","score":0.02,"adCount":0},{"id":"81_175351","proposal":175351,"title":"Medizin-Informatiker/in","rawTitle":"Medizin-Informatiker/in","score":0.02,"adCount":0}]}]}';
6744}
6745} else {
6746if (jQuery('.jwtpl-sebo-jsjnSuggestList').hasClass('jwtpl-sebo-jsjnSuggestListCoOn')) {
6747if (document.getElementsByName('jsjn')[0].value.length > 2) {
6748var content = seboReadyAjax();
6749}
6750} else {
6751if (document.getElementsByName('jsjn')[0].value.length > 2) {
6752var content = seboReadyAjax();
6753}
6754}
6755}
6756return content;
6757}
6758var seboAjaxRequestJsJo = function () {
6759return true;
6760httpRequest = new XMLHttpRequest
6761if (!httpRequest) {
6762console.log('Cannot create XMLHTTP instance');
6763return null;
6764}
6765httpRequest.onreadystatechange = seboReadyAjax();
6766httpRequest.open('GET', jQuery(".jwtpl-sebo-block").attr("data-jwtpl-sebo-axhost") + 'jobsearch/search/locationLive' + '?text=' + document.getElementsByName('jsjo')[0].value);
6767httpRequest.send();
6768}
6769var seboAjaxRequestJsJn = function () {
6770return true;
6771httpRequest = new XMLHttpRequest
6772if (!httpRequest) {
6773console.log('Cannot create XMLHTTP instance');
6774return null;
6775}
6776httpRequest.onreadystatechange = seboReadyAjax();
6777httpRequest.open('GET', jQuery(".jwtpl-sebo-block").attr("data-jwtpl-sebo-axhost") + 'jobsearch/search/areaLive' + '?text=' + document.getElementsByName('jsjn')[0].value);
6778httpRequest.send();
6779}
6780var seboAjaxRequestJsJnWithCo = function () {
6781return true;
6782httpRequest = new XMLHttpRequest
6783if (!httpRequest) {
6784console.log('Cannot create XMLHTTP instance');
6785return null;
6786}
6787httpRequest.onreadystatechange = seboReadyAjax();
6788httpRequest.open('GET', jQuery(".jwtpl-sebo-block").attr("data-jwtpl-sebo-axhost") + 'jobsearch/search/areaLive' + '?text=' + document.getElementsByName('jsjn')[0].value + '&api=12.09');
6789httpRequest.send();
6790}
6791var seboReadyAjax = function () {
6792return true;
6793if (httpRequest.readyState === XMLHttpRequest.DONE) {
6794if (httpRequest.status === 200) {
6795requestSend = true;
6796return httpRequest.responseText;
6797} else {
6798console.log('There was a problem with the request.');
6799}
6800}
6801}
6802var seboGetContentJsJoProposalList = function () {
6803return true;
6804if (_globalGetHost() != 'live') {
6805var content = '{"searchText":"ber","entries":[{"id":"2_162679","rawName":"1**** Berlin","rawDocName":"Berlin","rawZip":"1****","name":"<em>Berlin<\u002fem>","zip":"1****","region":"<em>Berlin<\u002fem>","regionTitle":"","country":"","scoreDetails":null},{"id":"2_25483","rawName":"51469 Bergisch Gladbach","rawDocName":"Bergisch Gladbach","rawZip":"51469","name":"<em>Bergisch<\u002fem> Gladbach","zip":"51469","region":"Nordrhein-Westfalen","regionTitle":"","country":"","scoreDetails":null}
6805,{"id":"1_10","rawName":"Berlin","rawDocName":"Berlin","rawZip":null,"name":"<em>Berlin<\u002fem>","zip":null,"region":"<em>Berlin<\u002fem>","regionTitle":"Bundesland","country":"","scoreDetails":null},{"id":"2_3988","rawName":"25575 Beringstedt","rawDocName":"Beringstedt","rawZip":"25575","name":"<em>Beringstedt<\u002fem>","zip":"25575","region":"Schleswig-Holstein","regionTitle":"","country":"","scoreDetails":null},{"id":"2_719","rawName":"23919 Berkenthin","rawDocName":"Berkenthin","rawZip":"23919","name":"<em>Berkenthin<\u002fem>","zip":"23919","region":"Schleswig-Holstein","regionTitle":"","country":"","scoreDetails":null},{"id":"2_223","rawName":"25779 Bergewöhrden","rawDocName":"Bergewöhrden","rawZip":"25779","name":"<em>Bergewöhrden<\u002fem>","zip":"25779","region":"Schleswig-Holstein","regionTitle":"","country":"","scoreDetails":null}]}';
6806} else {
6807if (document.getElementsByName('jsjo')[0].value.length > 1) {
6808var content = seboReadyAjax();
6809}
6810}
6811return content;
6812}
6813var seboGetJsJnProposalList = function () {
6814return true;
6815htmlJsJn = '';
6816var dummyContent = seboGetContentJsJnProposalList();
6817if(dummyContent.indexOf('"entries":[]') !== -1){
6818return htmlJsJn;
6819}
6820if (typeof dummyContent !== "undefined") {
6821var substrFirst = dummyContent.indexOf('[');
6822var substrLast = dummyContent.indexOf(']');
6823arrContentJn = dummyContent.substr(substrFirst, substrLast).split('},{');
6824var isTitle = false;
6825for (var i = 0; i < arrContentJn.length; i++) {
6826found = arrContentJn[i];
6827found = _globalSetUmlaut(true, found);
6828found = found.replace(/"/g, '');
6829var arrFound = found.split(',');
6830for (loca = 0; loca < arrFound.length; loca++) {
6831if (arrFound[loca].match(/title/)) {
6832if (jQuery('.jwtpl-sebo-jsjnSuggestList').hasClass('jwtpl-sebo-jsjnSuggestListCoOn') && !isTitle) {
6833isTitle = true;
6834htmlJsJn += "<span class='jwtpl-sebo-jsjnTitleHead'> Berufsbezeichnung: </span>";
6835htmlJsJn += "<span class='jwtpl-sebo-iconClose'></span>";
6836}
6837if (!isTitle) {
6838isTitle = true;
6839akt = arrFound[loca].split(':');
6840htmlJsJn += "<span class='jwtpl-sebo-jsjnTitleHead'>" + akt[1] + "</span>";
6841} else {
6842akt = arrFound[loca].split(':');
6843htmlJsJn += "<span class='jwtpl-sebo-jsjnTitle'>" + akt[1] + "</span>";
6844}
6845}
6846}
6847}
6848if (jQuery('.jwtpl-sebo-jsjnSuggestList').hasClass('jwtpl-sebo-jsjnSuggestListCoOn')) {
6849htmlJsJn = seboGetJsJnProposalListWithCompany();
6850}
6851return htmlJsJn;
6852}
6853}
6854var seboGetJsJnProposalListWithCompany = function () {
6855return true;
6856var contentWithCompany = seboGetContentJsJnProposalList();
6857var substrFirst = contentWithCompany.indexOf("[", contentWithCompany.indexOf("[") + 1);
6858var substrLast = contentWithCompany.indexOf("]", contentWithCompany.indexOf("]") + 1);
6859var arrContentJnWithCo = contentWithCompany.substring(substrFirst, substrLast);
6860arrContentJnWithCo = arrContentJnWithCo.split("},{");
6861arrContentJn = arrContentJn.concat(arrContentJnWithCo);
6862var isTitle = false;
6863for (var i = 0; i < arrContentJnWithCo.length; i++) {
6864found = arrContentJnWithCo[i];
6865found = _globalSetUmlaut(true, found);
6866found = found.replace(/"/g, '');
6867var arrFound = found.split(',');
6868for (loca = 0; loca < arrFound.length; loca++) {
6869if (arrFound[loca].match(/title/)) {
6870if (jQuery('.jwtpl-sebo-jsjnSuggestList').hasClass('jwtpl-sebo-jsjnSuggestListCoOn') && !isTitle) {
6871isTitle = true;
6872htmlJsJn += "<span class='jwtpl-sebo-jsjnTitleHead'> Unternehmen: </span>";
6873}
6874if (!isTitle) {
6875isTitle = true;
6876akt = arrFound[loca].split(':');
6877htmlJsJn += "<span class='jwtpl-sebo-jsjnTitleHead'>" + akt[1] + "</span>";
6878} else {
6879akt = arrFound[loca].split(':');
6880htmlJsJn += "<span class='jwtpl-sebo-jsjnTitle'>" + akt[1] + "</span>";
6881}
6882}
6883}
6884}
6885return htmlJsJn;
6886}
6887var seboGetJsJoProposalList = function () {
6888return true;
6889htmlJsJo = '';
6890var dummyContent = seboGetContentJsJoProposalList();
6891if (typeof dummyContent !== "undefined") {
6892var substrFirst = dummyContent.indexOf('[');
6893var substrLast = dummyContent.indexOf(']');
6894arrContentJo = dummyContent.substr(substrFirst, substrLast).split('},{');
6895for (var i = 0; i < arrContentJo.length; i++) {
6896found = arrContentJo[i];
6897found = _globalSetUmlaut(true, found);
6898found = found.replace(/"/g, '');
6899var arrFound = found.split(',');
6900for (loca = 0; loca < arrFound.length; loca++) {
6901if (arrFound[loca].match(/rawName/) && arrFound[loca].match(/rawName[^0-9]+[0-9]/)) {
6902akt = arrFound[loca].split(':');
6903htmlJsJo += "<span class='jwtpl-sebo-jsjoTitle'>" + akt[1] + "</span>";
6904}
6905}
6906}
6907return htmlJsJo;
6908}
6909}
6910var seboMarkJsJnProposalList = function (markString) {
6911return true;
6912markString = markString.replace(/(\*|\|)/g, "");
6913var html = seboGetJsJnProposalList();
6914html = _globalSetUmlaut(false, html);
6915var regex = new RegExp(markString, "gi");
6916var regex1 = new RegExp(markString, "g");
6917var tmp = markString[0];
6918var regexr = new RegExp(tmp, "g");
6919if (markString != '') tmp = tmp.toUpperCase();
6920markStringUpper = markString.replace(regexr, tmp);
6921var regex2 = new RegExp(markStringUpper, "g");
6922var regexInTag = new RegExp("<[^<]*" + markString + "[^/]*>", "gi");
6923if (markString != '') {
6924if (html.match(regex)) {
6925if (html.match(regexInTag)) {
6926var isTitle = false;
6927var regexRepl = new RegExp(">[0-9* /A-ZÄÖÜ]*" + markString + "[A-ZÄÖÜ]*<", "gi");
6928htmlReplace = html.match(regexRepl);
6929html = '';
6930if (htmlReplace != null) {
6931for (var i = 0; i < arrContentJn.length; i++) {
6932if (arrContentJn[i].match(/"advertiser":/g)) {
6933var secondHead = i - 1;
6934}
6935}
6936for (var replZaehl = 0; replZaehl < htmlReplace.length; replZaehl++) {
6937htmlReplace[replZaehl] = htmlReplace[replZaehl].substring(1, htmlReplace[replZaehl].length - 1);
6938if (replZaehl == secondHead && jQuery('.jwtpl-sebo-jsjnSuggestList').hasClass('jwtpl-sebo-jsjnSuggestListCoOn')) {
6939html += "<span class='jwtpl-sebo-jsjnTitleHead'> Unternehmen: </span>";
6940}
6941if (replZaehl != 0) {
6942var aktReplace = htmlReplace[replZaehl];
6943aktReplace = aktReplace.replace(regex1, '<b>' + markString + '</b>');
6944aktReplace = aktReplace.replace(regex2, '<b>' + markString[0].toUpperCase() + '</b>');
6945htmlReplace[replZaehl] = aktReplace;
6946html += "<span class='jwtpl-sebo-jsjnTitle'>" + htmlReplace[replZaehl] + "</span>";
6947} else {
6948if (jQuery('.jwtpl-sebo-jsjnSuggestList').hasClass('jwtpl-sebo-jsjnSuggestListCoOn')) {
6949html += "<span class='jwtpl-sebo-jsjnTitleHead'> Berufsbezeichnung: </span>";
6950} else {
6951html += "<span class='jwtpl-sebo-jsjnTitleHead'>" + htmlReplace[replZaehl] + "</span>";
6952}
6953}
6954}
6955}
6956} else {
6957if (html.match(new RegExp("(Title\'>)" + markString, "gi"))) {
6958html = html.replace(regex1, '<b>' + markString + '</b>');
6959html = html.replace(regex2, '<b>' + markStringUpper + '</b>');
6960}
6961}
6962}
6963html = _globalSetUmlaut(true, html);
6964return html;
6965}
6966}
6967var seboMarkJsJoProposalList = function (markString) {
6968return true;
6969markString = markString.replace(/(\*|\|)/g, "");
6970var html = seboGetJsJoProposalList();
6971html = _globalSetUmlaut(false, html);
6972var regex = new RegExp(markString, "gi");
6973var regex1 = new RegExp(markString, "g");
6974var tmp = markString[0];
6975var regexr = new RegExp(tmp, "g");
6976if (markString != '') {
6977tmp = tmp.toUpperCase();
6978}
6979markStringUpper = markString.replace(regexr, tmp);
6980var regex2 = new RegExp(markStringUpper, "g");
6981var regexInTag = new RegExp("<[^<]*" + markString + "[^/]*>", "gi");
6982if (markString != '') {
6983if (html.match(regex)) {
6984if (html.match(regexInTag)) {
6985var isTitle = false;
6986var regexRepl = new RegExp(">[0-9* /A-ZÄÖÜ]*" + markString + "[A-ZÄÖÜ]*<", "gi");
6987htmlReplace = html.match(regexRepl);
6988html = '';
6989if (htmlReplace != null) {
6990for (var replZaehl = 0; replZaehl < htmlReplace.length; replZaehl++) {
6991htmlReplace[replZaehl] = htmlReplace[replZaehl].substring(1, htmlReplace[replZaehl].length - 1);
6992var aktReplace = htmlReplace[replZaehl];
6993aktReplace = aktReplace.replace(regex1, '<b>' + markString + '</b>');
6994aktReplace = aktReplace.replace(regex2, '<b>' + markString[0].toUpperCase() + '</b>');
6995htmlReplace[replZaehl] = aktReplace;
6996html += "<span class='jwtpl-sebo-jsjnRawName'>" + htmlReplace[replZaehl] + "</span>";
6997}
6998}
6999} else {
7000html = html.replace(regex1, '<b>' + markString + '</b>');
7001html = html.replace(regex2, '<b>' + markStringUpper + '</b>');
7002}
7003}
7004}
7005html = _globalSetUmlaut(true, html);
7006return html;
7007}
7008var seboHoverItem = function () {
7009return true;
7010jQuery('.jwtpl-sebo-jsjnSuggestList').hover(function () {
7011isClicked = true;
7012}, function () {
7013isClicked = false;
7014});
7015jQuery('.jwtpl-sebo-jsjoSuggestList').hover(function () {
7016isClicked = true;
7017}, function () {
7018isClicked = false;
7019});
7020}
7021var seboRegistClick = function () {
7022return true;
7023jQuery('.jwtpl-sebo-jsjnTitle').click(function () {
7024var isFound = false;
7025var text = jQuery(this)[0].innerHTML;
7026text = text.replace(/<[\/]{0,1}b>/g, '');
7027var regex = new RegExp(text, 'g');
7028for (var i = 0; i < arrContentJn.length; i++) {
7029var regexAkt = new RegExp(text, 'g');
7030if (arrContentJn[i].match(regexAkt)) {
7031arrContentJn[i] = arrContentJn[i].replace(/"/g, '');
7032var jnId = arrContentJn[i].split(",");
7033jnId = jnId[0].split(":");
7034jQuery('.jwtpl-sebo-jsjnId').val(jnId[1]);
7035}
7036}
7037jQuery('.jwtpl-sebo-searchFormTextJsJn').val(text);
7038if (jQuery('.jwtpl-sebo-jsjnSuggestList').hasClass('jwtpl-sebo-jsjnSuggestListAutoSubmit')) {
7039jQuery('.jwtpl-sebo-form').submit();
7040} else {
7041seboHideJsJnProposalList();
7042}
7043});
7044jQuery('.jwtpl-sebo-jsjoTitle').click(function () {
7045var isFound = false;
7046var text = jQuery(this)[0].innerHTML;
7047text = text.replace(/<[\/]{0,1}b>/g, '');
7048if (text.match(/\*/g)) {
7049text = text.replace(/[0-9]+[\*]*/g, '');
7050}
7051var regex = new RegExp(text, 'g');
7052for (var i = 0; i < arrContentJo.length; i++) {
7053var regexAkt = new RegExp(text, 'g');
7054if (arrContentJo[i].match(regexAkt)) {
7055arrContentJo[i] = arrContentJo[i].replace(/"/g, '');
7056var joId = arrContentJo[i].split(",");
7057joId = joId[0].split(":");
7058jQuery('.jwtpl-sebo-jsjnId').val(joId[1]);
7059}
7060}
7061jQuery('.jwtpl-sebo-searchFormTextJsJo').val(text);
7062if (jQuery('.jwtpl-sebo-jsjoSuggestList').hasClass('jwtpl-sebo-jsjoSuggestListAutoSubmit')) {
7063jQuery('.jwtpl-sebo-form').submit();
7064} else {
7065seboHideJsJoProposalList();
7066}
7067});
7068jQuery('.jwtpl-sebo-iconClose').click(function () {
7069var elList = this.parentElement.parentElement;
7070jQuery(elList).css("display", "none");
7071});
7072}
7073var seboShowJsJnProposalList = function (toMark) {
7074return true;
7075activeSearchField.parent().find('.jwtpl-sebo-jsjnSuggestList')[0].innerHTML = "";
7076if (toMark != "" && activeSearchField.val().length > 2) {
7077var list;
7078if (_globalGetHost() != 'live') {
7079list = "<span class=\"jwtpl-sebo-jsjnDummyWarning\">Dieses funktioniert nur im Live-Betrieb</span>" + seboMarkJsJnProposalList(toMark);
7080}
7081else {
7082list = seboMarkJsJnProposalList(toMark);
7083}
7084if (list.length > 0) {
7085activeSearchField.parent().find('.jwtpl-sebo-jsjnSuggestList')[0].innerHTML = list;
7086activeSearchField.parent().find('.jwtpl-sebo-jsjnSuggestList').first().show();
7087activeSearchField.parent().parent().find('.jwtpl-sebo-jsjoSuggestList').first().hide();
7088seboRegistClick();
7089seboHoverItem();
7090activeSearchField.parent().find('.jwtpl-sebo-jsjnSuggestList').first().wrapInner("<div class='jwtpl-sebo-jsjnSuggestListInner'></div>");
7091}
7092}
7093else {
7094jQuery('.jwtpl-sebo-jsjnSuggestList').first().hide();
7095}
7096if (('ontouchstart' in window)) {
7097jQuery(".jwtpl-sebo-jsjnSuggestListInner").css({ "overflow": "visible", "max-height": "none" });
7098}
7099}
7100var seboShowJsJoProposalList = function (toMark) {
7101return true;
7102var proposal = seboMarkJsJoProposalList(toMark);
7103if(proposal.length == 0) {
7104return false;
7105}
7106activeSearchField.parent().find('.jwtpl-sebo-jsjoSuggestList')[0].innerHTML = "";
7107if (toMark != "" && activeSearchField.val().length > 2) {
7108var list;
7109if (_globalGetHost() != 'live') list = "<span class=\"jwtpl-sebo-jsjoDummyWarning\">Dieses funktioniert nur im Live-Betrieb</span><span class='jwtpl-sebo-iconClose'></span>" + seboMarkJsJoProposalList(toMark);
7110else list = "<span class='jwtpl-sebo-iconClose'></span>" + seboMarkJsJoProposalList(toMark);
7111if (list.length > 0) {
7112activeSearchField.parent().find('.jwtpl-sebo-jsjoSuggestList')[0].innerHTML = list;
7113activeSearchField.parent().find('.jwtpl-sebo-jsjoSuggestList').first().show();
7114activeSearchField.parent().parent().find('.jwtpl-sebo-jsjnSuggestList').first().hide();
7115seboRegistClick();
7116seboHoverItem();
7117activeSearchField.parent().find('.jwtpl-sebo-jsjoSuggestList').first().wrapInner("<div class='jwtpl-sebo-jsjoSuggestListInner'></div>");
7118}
7119}
7120else {
7121jQuery('.jwtpl-sebo-jsjoSuggestList').first().hide();
7122}
7123if (('ontouchstart' in window)) {
7124jQuery(".jwtpl-sebo-jsjoSuggestListInner").css({ "overflow": "visible", "max-height": "none" });
7125}
7126}
7127var seboHideJsJnProposalList = function () {
7128return true;
7129jQuery('.jwtpl-sebo-jsjnSuggestList').first().innerHTML = "";
7130jQuery('.jwtpl-sebo-jsjnSuggestList').first().hide();
7131}
7132var seboHideJsJoProposalList = function () {
7133return true;
7134jQuery('.jwtpl-sebo-jsjoSuggestList').first().innerHTML = "";
7135jQuery('.jwtpl-sebo-jsjoSuggestList').first().hide();
7136}
7137var seboSuggestHideEvents = function () {
7138return true;
7139var jsjnField = document.querySelector('.jwtpl-sebo-searchFormTextJsJn');
7140if (jsjnField !== null) {
7141jsjnField.addEventListener('blur', function(){setTimeout(seboHideJsJnProposalList, 200)});
7142}
7143var jsjoField = document.querySelector('.jwtpl-sebo-searchFormTextJsJo');
7144if (jsjoField !== null) {
7145jsjoField.addEventListener('blur', function(){setTimeout(seboHideJsJoProposalList, 200)} );
7146}
7147}
7148var seboHideShowRadius = function (event, modus) {
7149if ((typeof event.parentElement != 'undefined') && (event.parentElement.hasChildNodes() == true) && (event.classList['value'].match('jwtpl-sebo-formJsJrBlockHidden') == null)) {
7150var allEl = event.parentElement.children;
7151var classListString = '';
7152for (var i = 0; i < allEl.length; i++) {
7153classListString += allEl[i].classList.value + ",";
7154}
7155var arrClass = classListString.split(',');
7156if (arrClass.indexOf('jwtpl-sebo-jsJrGroup') != -1) {
7157if (((allEl[arrClass.indexOf('jwtpl-sebo-jsJrGroup')].style.display == '') || (allEl[arrClass.indexOf('jwtpl-sebo-jsJrGroup')].style.display == 'none')) && (modus != 'close')) {
7158allEl[arrClass.indexOf('jwtpl-sebo-jsJrGroup')].style.display = 'block';
7159if (arrClass.indexOf('jwtpl-sebo-formJsJrChev fa fa-angle-down') != -1) {
7160allEl[arrClass.indexOf('jwtpl-sebo-formJsJrChev fa fa-angle-down')].classList.remove('fa-angle-down');
7161allEl[arrClass.indexOf('jwtpl-sebo-formJsJrChev fa fa-angle-down')].classList.add('fa-angle-up');
7162}
7163seboSetTextInSpan();
7164} else {
7165allEl[arrClass.indexOf('jwtpl-sebo-jsJrGroup')].style.display = '';
7166if (arrClass.indexOf('jwtpl-sebo-formJsJrChev fa fa-angle-up') != -1) {
7167allEl[arrClass.indexOf('jwtpl-sebo-formJsJrChev fa fa-angle-up')].classList.remove('fa-angle-up');
7168allEl[arrClass.indexOf('jwtpl-sebo-formJsJrChev fa fa-angle-up')].classList.add('fa-angle-down');
7169}
7170}
7171}
7172}
7173if ((!isClicked) && (typeof activeSearchField != 'undefined')) {
7174if (activeSearchField.hasClass('jwtpl-sebo-searchFormTextJsJo')) {
7175seboHideJsJoProposalList();
7176} else if (activeSearchField.hasClass('jwtpl-sebo-searchFormTextJsJn')) {
7177seboHideJsJnProposalList();
7178}
7179}
7180}
7181var seboSetTextInSpan = function () {
7182var arrEl = document.getElementsByClassName('jwtpl-sebo-jsJrElement');
7183if (arrEl[0].innerText == '') {
7184for (var i = 0; i < arrEl.length; i++) {
7185arrEl[i].innerText = arrEl[i].getAttribute('data-jwtpl-sebo-jsjrvalue') + ' km';
7186}
7187}
7188}
7189var seboInitRadiusSearch = function () {
7190var
7191jsjo = _api.get('.jwtpl-sebo-searchFormTextJsJo'),
7192jsjn = _api.get('.jwtpl-sebo-searchFormTextJsJn'),
7193jsjr = _api.get('.jwtpl-sebo-formJsJrBlock'),
7194jsjrGroup = _api.get('.jwtpl-sebo-jsJrGroup'),
7195JsJrHidden = _api.get('.jwtpl-sebo-formJsJrHidden');
7196if ((jsjo.length > 0 || jsjn.length > 0) && jsjr.length > 0 && jsjrGroup.length > 0 && JsJrHidden.length > 0) {
7197var
7198jrElement = jsjrGroup[0].children,
7199jrInput = _api.get('.jwtpl-sebo-formJsJrInput');
7200if (jrInput.length > 0) {
7201_api.event(jsjo[0], 'click', function (e) {
7202if (_api.hasClass(jrInput[0], 'jwtpl-gc-expanded') === true) {
7203_api.removeClass(jrInput[0], 'jwtpl-gc-expanded');
7204_api.hide(jsjrGroup[0]);
7205}
7206});
7207_api.event(jsjn[0], 'click', function (e) {
7208if (_api.hasClass(jrInput[0], 'jwtpl-gc-expanded') === true) {
7209_api.removeClass(jrInput[0], 'jwtpl-gc-expanded');
7210_api.hide(jsjrGroup[0]);
7211}
7212});
7213if (_api.type(jsjo[0].value) !== undefined && jsjo[0].value.length > 0 && _api.type(jsjo[0].placeholder) !== undefined && jsjo[0].value !== jsjo[0].placeholder) {
7214jrInput[0].innerHTML = JsJrHidden[0].value + " km";
7215}
7216}
7217_api.each(jrElement, function (item) {
7218if (item.hasAttribute('data-jwtpl-sebo-jsjrtext') === true && item.hasAttribute('data-jwtpl-sebo-jsjrvalue') === true) {
7219var
7220jsjrText = item.getAttribute('data-jwtpl-sebo-jsjrtext'),
7221jsjrValue = item.getAttribute('data-jwtpl-sebo-jsjrvalue');
7222if (jsjrText !== '') {
7223item.innerHTML = jsjrText;
7224}
7225_api.event(item, 'click', function (e) {
7226_api.each(jrElement, function (slot) {
7227if (slot === item) {
7228_api.addClass(slot, 'jwtpl-sebo-jsJrElementActive1');
7229if (jsjrValue !== '') {
7230jrInput[0].innerHTML = jsjrText;
7231JsJrHidden[0].value = jsjrValue;
7232}
7233} else {
7234_api.removeClass(slot, 'jwtpl-sebo-jsJrElementActive1');
7235_api.addClass(slot, 'jwtpl-sebo-jsJrElementActive0');
7236}
7237});
7238if (_api.hasClass(jrInput[0], 'jwtpl-gc-expanded') === true) {
7239_api.removeClass(jrInput[0], 'jwtpl-gc-expanded');
7240_api.hide(jsjrGroup[0]);
7241}
7242});
7243_api.event(item, 'keydown', function(e){
7244if (e.key === 'Enter' || e.key === ' ') {
7245_api.each(jrElement, function(slot){
7246if(slot === item){
7247_api.addClass(slot, 'jwtpl-sebo-jsJrElementActive1');
7248if(jsjrValue !== ''){
7249jrInput[0].innerHTML = jsjrText;
7250JsJrHidden[0].value = jsjrValue;
7251}
7252} else {
7253_api.removeClass(slot, 'jwtpl-sebo-jsJrElementActive1');
7254_api.addClass(slot, 'jwtpl-sebo-jsJrElementActive0');
7255}
7256});
7257if(_api.hasClass(jrInput[0], 'jwtpl-gc-expanded') === true) {
7258_api.removeClass(jrInput[0], 'jwtpl-gc-expanded');
7259_api.hide(jsjrGroup[0]);
7260}
7261}
7262});
7263}
7264});
7265_api.event(jsjo[0], 'keyup', function (e) {
7266var _this = this;
7267if (_api.type(_this.value) !== undefined && _this.value.length > 2) {
7268_api.show(jsjr[0]);
7269} else {
7270_api.hide(jsjr[0]);
7271}
7272});
7273}
7274}
7275var seboInitJobtypSearch = function () {
7276var
7277jsjn = _api.get('.jwtpl-sebo-searchFormTextJsJn'),
7278jsjtGroup = _api.get('.jwtpl-sebo-jsJtGroup'),
7279jsJtHidden = _api.get('.jwtpl-sebo-formJsJtHidden'),
7280jsJtInput = _api.get('.jwtpl-sebo-formJsJtInput');
7281if (jsjn.length > 0 && jsjtGroup.length > 0 && jsJtHidden.length > 0 && jsJtInput.length > 0) {
7282var
7283curValue,
7284jtElement = jsjtGroup[0].children,
7285jtInput = _api.get('.jwtpl-sebo-formJsJtInput');
7286if (jtInput.length > 0) {
7287_api.event(jsjn[0], 'click', function (e) {
7288if (_api.hasClass(jtInput[0], 'jwtpl-gc-expanded') === true) {
7289_api.removeClass(jtInput[0], 'jwtpl-gc-expanded');
7290_api.hide(jsjtGroup[0]);
7291}
7292});
7293}
7294if(jsJtHidden[0].value !== '') {
7295curValue = _api.get('[data-jwtpl-sebo-jsjtvalue="' + jsJtHidden[0].value + '"]');
7296if(curValue.length > 0 && curValue[0].hasAttribute('data-jwtpl-sebo-jsjttext') === true && curValue[0].getAttribute('data-jwtpl-sebo-jsjttext').length > 0) {
7297jsJtInput[0].innerHTML = curValue[0].getAttribute('data-jwtpl-sebo-jsjttext');
7298}
7299}
7300_api.each(jtElement, function (item) {
7301if (item.hasAttribute('data-jwtpl-sebo-jsjttext') === true && item.hasAttribute('data-jwtpl-sebo-jsjtvalue') === true) {
7302var
7303jsjtText = item.getAttribute('data-jwtpl-sebo-jsjttext'),
7304jsjtValue = item.getAttribute('data-jwtpl-sebo-jsjtvalue');
7305if (jsjtText !== '') {
7306item.innerHTML = jsjtText;
7307}
7308_api.event(item, 'click', function (e) {
7309_api.each(jtElement, function (slot) {
7310if (slot === item) {
7311_api.addClass(slot, 'jwtpl-sebo-jsJtElementActive1');
7312if (jsjtValue !== '') {
7313jtInput[0].innerHTML = jsjtText;
7314jsJtHidden[0].value = jsjtValue;
7315}
7316} else {
7317_api.removeClass(slot, 'jwtpl-sebo-jsJtElementActive1');
7318_api.addClass(slot, 'jwtpl-sebo-jsJtElementActive0');
7319}
7320});
7321if (_api.hasClass(jtInput[0], 'jwtpl-gc-expanded') === true) {
7322_api.removeClass(jtInput[0], 'jwtpl-gc-expanded');
7323_api.hide(jsjtGroup[0]);
7324}
7325});
7326}
7327});
7328}
7329}
7330var seboGetJSONJobName = function(param) {
7331var channel=_api.get('[data-jwtpl-sebo-marketCh]',true),
7332seboBlock =_api.get('.jwtpl-sebo-block',true),
7333apiVersion=_api.get('[data-jwtpl-sebo-jav]',true),
7334seboTextJsJn = _api.get(".jwtpl-sebo-searchFormTextJsJn",true),
7335urlSource = '',
7336htmlJsJn = '';
7337channelNumber = channel[0].getAttribute('data-jwtpl-sebo-marketCh');
7338apiSplit = apiVersion[0].getAttribute('data-jwtpl-sebo-jav').split('|')
7339jsjnAPIVersion = apiSplit[0];
7340if(_api.isRealLocalHost()){
7341urlSource = 'http://localhost/playground/arealiveJobname.html?text=' + param + '&jw_jobmarket=' + channelNumber + '&api=' + jsjnAPIVersion;
7342}else{
7343urlSource = seboBlock[0].getAttribute('data-jwtpl-sebo-axhost') + 'jobsearch/search/areaLive' + '?text=' + param + '&jw_jobmarket=' + channelNumber + '&api=' + jsjnAPIVersion;
7344}
7345_api.ajax({
7346url: urlSource,
7347method:'get',
7348callback:function(data){
7349var jsonData = JSON.parse(data);
7350if (jsonData.hasOwnProperty('jobTitles') && jsonData.jobTitles.length > 0) {
7351htmlJsJn += "<span class='jwtpl-sebo-jsjnTitleHead'> Berufsbezeichnung: </span>";
7352for (var i = 0; i < jsonData.jobTitles.length; i++) {
7353if (jsonData.jobTitles[i].title) {
7354htmlJsJn += '<span class="jwtpl-sebo-jsjnTitle jwtpl-sebo-jsjnSuggestListItem" data-jwtpl-sebo-jsjnSuggestListItemData="'+jsonData.jobTitles[i].id+'">' + jsonData.jobTitles[i].title.replace(new RegExp(param.trim(), 'gi'), (param) => '<strong>' + param.trim() + '</strong>') + '</span>';
7355}
7356}
7357}
7358if (jsonData.hasOwnProperty('advertiser') && jsonData.advertiser.length > 0) {
7359htmlJsJn += "<span class='jwtpl-sebo-jsjnTitleHead'> Unternehmen: </span>";
7360for (var i = 0; i < jsonData.advertiser.length; i++) {
7361if (jsonData.advertiser[i].title) {
7362htmlJsJn += '<span class="jwtpl-sebo-jsjnTitle jwtpl-sebo-jsjnSuggestListItem" data-jwtpl-sebo-jsjnSuggestListItemData="'+jsonData.advertiser[i].id+'">' + jsonData.advertiser[i].title.replace(new RegExp(param.trim(), 'gi'), (param) => '<strong>' + param.trim() + '</strong>') + '</span>';
7363}
7364}
7365}
7366if(htmlJsJn !=''){
7367var suggestListElementJobname = _api.get(".jwtpl-sebo-jsjnSuggestList",true);
7368if (suggestListElementJobname.length > 0) {
7369var suggestListElementJobnameInner = document.createElement('div');
7370suggestListElementJobnameInner.className = 'jwtpl-sebo-jsjnSuggestListInner';
7371if (_api.isRealLocalHost() || _api.isPreviewHost() || _api.isDevHost() || _api.isIntegrationHost()) {
7372var warningSpan = document.createElement('span');
7373warningSpan.className = 'jwtpl-sebo-jsjnDummyWarning';
7374warningSpan.innerHTML = 'Dieses funktioniert nur im Live-Betrieb';
7375// suggestListElementJobnameInner.appendChild(warningSpan);
7376}
7377var closeSpan = document.createElement('span');
7378closeSpan.className = 'jwtpl-sebo-iconClose';
7379closeSpan.innerHTML = 'X';
7380suggestListElementJobnameInner.appendChild(closeSpan);
7381suggestListElementJobnameInner.innerHTML += htmlJsJn;
7382suggestListElementJobname[0].innerHTML = '';
7383suggestListElementJobname[0].appendChild(suggestListElementJobnameInner);
7384suggestListElementJobname[0].style.display = 'block';
7385var listItem = _api.get('.jwtpl-sebo-jsjnSuggestListItem',true);
7386_api.each(listItem, item => {
7387_api.event(item, 'click', function (e) {
7388var itemName = _api.get('.jwtpl-sebo-searchFormTextJsJn',true);
7389itemName[0].value = item.textContent;
7390suggestListElementJobname[0].innerHTML = '';
7391})
7392});
7393_api.event(document, 'click', function (e) {
7394var target = e.target,
7395isSuggestListElementJobname = target.closest('.jwtpl-sebo-jsjnSuggestList'),
7396isInputField = target.closest('.jwtpl-sebo-searchFormTextJsJn'),
7397isCloseSpan = target.closest('.jwtpl-sebo-iconClose');
7398if (!isSuggestListElementJobname && !isInputField) {
7399suggestListElementJobname[0].innerHTML = '';
7400}
7401if (isCloseSpan) {
7402suggestListElementJobname[0].innerHTML = '';
7403}
7404});
7405_api.event(seboTextJsJn[0], 'focus', function (e) {
7406if (suggestListElementJobname[0].style.display === 'none') {
7407suggestListElementJobname[0].style.display = 'block';
7408}
7409});
7410}
7411}
7412}
7413});
7414}
7415var seboTipJobname = function (){
7416var seboTextJsJn = _api.get(".jwtpl-sebo-searchFormTextJsJn",true),
7417suggestListElementJobname = _api.get(".jwtpl-sebo-jsjnSuggestList",true),
7418seboProposalListOn = _api.get(".jwtpl-sebo-jsjnSuggestListOn",true);
7419if(seboProposalListOn[0]){
7420_api.event(seboTextJsJn[0], 'keyup', function(e){
7421e.preventDefault();
7422if(seboTextJsJn[0].value.length >=3){
7423seboGetJSONJobName(seboTextJsJn[0].value);
7424}else{
7425suggestListElementJobname[0].innerHTML = '';
7426}
7427});
7428_api.event(seboTextJsJn[0], 'click', function(e){
7429e.preventDefault();
7430if(seboTextJsJn[0].value.length >= 3){
7431seboGetJSONJobName(seboTextJsJn[0].value);
7432}else{
7433suggestListElementJobname[0].innerHTML = '';
7434}
7435});
7436}else{
7437return false;
7438}
7439}
7440var seboGetJSONLocation = function(param) {
7441var channel=_api.get('[data-jwtpl-sebo-marketCh]',true),
7442seboBlock =_api.get('.jwtpl-sebo-block',true),
7443apiVersion=_api.get('[data-jwtpl-sebo-jav]',true),
7444seboTextJsJo = _api.get(".jwtpl-sebo-searchFormTextJsJo",true),
7445urlSource = '',
7446htmlJsJo = '';
7447channelNumber = channel[0].getAttribute('data-jwtpl-sebo-marketCh');
7448apiSplit = apiVersion[0].getAttribute('data-jwtpl-sebo-jav').split('|')
7449jsjoAPIVersion = apiSplit[1];
7450if(_api.isRealLocalHost()){
7451urlSource = 'http://localhost/playground/locationhtmltest.html?text=' + param + '&jw_jobmarket=' + channelNumber + '&api=' + jsjoAPIVersion;
7452}else{
7453urlSource = seboBlock[0].getAttribute('data-jwtpl-sebo-axhost') + 'jobsearch/search/locationLive' + '?text=' + param + '&jw_jobmarket=' + channelNumber + '&api=' + jsjoAPIVersion;
7454}
7455_api.ajax({
7456url: urlSource,
7457method:'get',
7458callback:function(data){
7459var jsonData = JSON.parse(data);
7460if (jsonData.hasOwnProperty('entries') && jsonData.entries.length > 0) {
7461for (var i = 0; i < jsonData.entries.length; i++) {
7462if (jsonData.entries[i].name) {
7463htmlJsJo += '<span class="jwtpl-sebo-jsjoTitle jwtpl-sebo-jsjoSuggestListItem" data-jwtpl-sebo-jsjoSuggestListItemData="'+jsonData.entries[i].id+'">' + jsonData.entries[i].name.replace(new RegExp(param.trim(), 'gi'), (param) => '<strong>' + param.trim() + '</strong>') + '</span>';
7464}
7465}
7466}
7467if(htmlJsJo !=''){
7468var suggestListElement = _api.get(".jwtpl-sebo-jsjoSuggestList",true);
7469if (suggestListElement.length > 0) {
7470var suggestListElementInner = document.createElement('div');
7471suggestListElementInner.className = 'jwtpl-sebo-jsjoSuggestListInner';
7472if (_api.isRealLocalHost() || _api.isPreviewHost() || _api.isDevHost() || _api.isIntegrationHost()) {
7473var warningSpan = document.createElement('span');
7474warningSpan.className = 'jwtpl-sebo-jsjoDummyWarning';
7475warningSpan.innerHTML = 'Dieses funktioniert nur im Live-Betrieb';
7476// suggestListElementInner.appendChild(warningSpan);
7477}
7478var closeSpan = document.createElement('span');
7479closeSpan.className = 'jwtpl-sebo-iconClose';
7480closeSpan.innerHTML = 'X';
7481suggestListElementInner.appendChild(closeSpan);
7482suggestListElementInner.innerHTML += htmlJsJo;
7483suggestListElement[0].innerHTML = '';
7484suggestListElement[0].appendChild(suggestListElementInner);
7485suggestListElement[0].style.display = 'block';
7486var listItem = _api.get('.jwtpl-sebo-jsjoSuggestListItem',true);
7487_api.each(listItem, item => {
7488_api.event(item, 'click', function (e) {
7489var itemID = _api.get('.jwtpl-sebo-jsjoId',true),
7490itemName = _api.get('.jwtpl-sebo-searchFormTextJsJo',true);
7491itemName[0].value = item.textContent;
7492itemID[0].value = item.getAttribute('data-jwtpl-sebo-jsjoSuggestListItemData');
7493suggestListElement[0].innerHTML = '';
7494})
7495});
7496_api.event(document, 'click', function (e) {
7497var target = e.target,
7498isSuggestListElement = target.closest('.jwtpl-sebo-jsjoSuggestList'),
7499isInputField = target.closest('.jwtpl-sebo-searchFormTextJsJo'),
7500isCloseSpan = target.closest('.jwtpl-sebo-iconClose');
7501if (!isSuggestListElement && !isInputField) {
7502suggestListElement[0].innerHTML = '';
7503}
7504if (isCloseSpan) {
7505suggestListElement[0].innerHTML = '';
7506}
7507});
7508_api.event(seboTextJsJo[0], 'focus', function (e) {
7509if (suggestListElement[0].style.display === 'none') {
7510suggestListElement[0].style.display = 'block';
7511}
7512});
7513}
7514}
7515}
7516});
7517}
7518var seboTipLocation = function (){
7519var seboTextJsJo = _api.get(".jwtpl-sebo-searchFormTextJsJo",true),
7520suggestListElement = _api.get(".jwtpl-sebo-jsjoSuggestList",true),
7521seboProposalListOn = _api.get(".jwtpl-sebo-jsjoSuggestListOn",true);
7522if(seboProposalListOn[0]){
7523_api.event(seboTextJsJo[0], 'keyup', function(e){
7524e.preventDefault();
7525var itemID = _api.get('.jwtpl-sebo-jsjoId',true);
7526itemID[0].value = '';
7527if(seboTextJsJo[0].value.length >=3){
7528seboGetJSONLocation(seboTextJsJo[0].value);
7529}else{
7530suggestListElement[0].innerHTML = '';
7531}
7532});
7533_api.event(seboTextJsJo[0], 'click', function(e){
7534e.preventDefault();
7535if(seboTextJsJo[0].value.length >= 3){
7536seboGetJSONLocation(seboTextJsJo[0].value);
7537}else{
7538suggestListElement[0].innerHTML = '';
7539}
7540});
7541}else{
7542return false;
7543}
7544}
7545var seboOnSubmit = function () {
7546var btnSubmit = _api.get(".jwtpl-sebo-btSubmit",true);
7547_api.event(btnSubmit[0], 'click', function(e){
7548e.preventDefault();
7549var itemID = _api.get('.jwtpl-sebo-jsjoId',true),
7550jomod = _api.get('[data-jwtpl-sebo-jsjomod]'),
7551form = _api.get('.jwtpl-sebo-form',true),
7552seboTextJsJo = _api.get(".jwtpl-sebo-searchFormTextJsJo",true);
7553jomod = jomod[0].getAttribute('data-jwtpl-sebo-jsjomod');
7554if(itemID[0]?.value.trim() !== '' && jomod == 1){
7555seboTextJsJo[0].value = '';
7556}
7557form[0].submit();
7558});
7559}
7560var seboHiddenValueReset = function () {
7561var jsjnHiddenField = _api.get('[data-jwtpl-sebo-jsjnid]',true),
7562jsjoHiddenField = _api.get('[data-jwtpl-sebo-jsjoid]',true),
7563seboProposalListOn = _api.get(".jwtpl-sebo-jsjnSuggestListOn",true),
7564seboProposalListOnJo = _api.get(".jwtpl-sebo-jsjoSuggestListOn",true),
7565itemJsjnID = _api.get('.jwtpl-sebo-jsjnId',true),
7566itemJsjoID = _api.get('.jwtpl-sebo-jsjoId',true);
7567if(jsjnHiddenField.length > 0 && seboProposalListOn.length > 0 && itemJsjnID.length > 0){
7568jsjnHiddenValue = jsjnHiddenField[0].getAttribute('data-jwtpl-sebo-jsjnid');
7569itemJsjnID[0].value= jsjnHiddenValue;
7570}
7571if(jsjoHiddenField.length > 0 && seboProposalListOnJo.length > 0 && itemJsjoID.length > 0){
7572jsjoHiddenValue = jsjoHiddenField[0].getAttribute('data-jwtpl-sebo-jsjoid');
7573itemJsjoID[0].value= jsjoHiddenValue;
7574}
7575}
7576var seboNecessaryListToStart = function () {
7577var channel=_api.get('[data-jwtpl-sebo-marketCh]',true),
7578seboBlock =_api.get('.jwtpl-sebo-block',true),
7579apiVersion=_api.get('[data-jwtpl-sebo-jav]',true),
7580seboTextJsJn = _api.get(".jwtpl-sebo-searchFormTextJsJn",true),
7581suggestListElementJobname = _api.get(".jwtpl-sebo-jsjnSuggestList",true),
7582itemName = _api.get('.jwtpl-sebo-searchFormTextJsJn',true),
7583seboProposalListOn = _api.get(".jwtpl-sebo-jsjnSuggestListOn",true),
7584seboTextJsJo = _api.get(".jwtpl-sebo-searchFormTextJsJo",true),
7585suggestListElement = _api.get(".jwtpl-sebo-jsjoSuggestList",true),
7586itemID = _api.get('.jwtpl-sebo-jsjoId',true),
7587jsjnID = _api.get('.jwtpl-sebo-jsjnId', true),
7588itemNameJo = _api.get('.jwtpl-sebo-searchFormTextJsJo',true),
7589seboProposalListOnJo = _api.get(".jwtpl-sebo-jsjoSuggestListOn",true),
7590btnSubmit = _api.get(".jwtpl-sebo-btSubmit"),
7591jomod = _api.get('[data-jwtpl-sebo-jsjomod]'),
7592form = _api.get('.jwtpl-sebo-form',true)
7593if (
7594channel.length > 0 &&
7595seboBlock.length > 0 &&
7596apiVersion.length > 0 &&
7597(seboTextJsJn.length > 0 || seboTextJsJo.length > 0) &&
7598(suggestListElementJobname.length > 0 || suggestListElement.length > 0) &&
7599(itemName.length > 0 || itemNameJo.length > 0) &&
7600(seboProposalListOn.length > 0 || seboProposalListOnJo.length > 0) &&
7601(itemID.length > 0 || jsjnID.length) &&
7602btnSubmit.length > 0 &&
7603jomod.length > 0 &&
7604form.length > 0
7605) {
7606return true;
7607} else {
7608return false;
7609}
7610}
7611this.seboGetColorMeInfo = function() {
7612return [ '.jwtpl-sebo-btSubmit input|desktop|all|base|color:hf|background-color:hbg',
7613'.jwtpl-sebo-innerSticky|desktop|all|base|background-color:bg',
7614'.jwtpl-sebo-btSubmit input|desktop|all|hover|color:af|background-color:abg',
7615'.jwtpl-sebo-btSubmit input|mobile|all|base|color:hf|background-color:hbg',
7616'.jwtpl-sebo-innerSticky|mobile|all|base|background-color:bg'
7617];
7618}
7619var seboTabIndexing = function (){
7620const jsjnSuggestionList = _api.get(".jwtpl-sebo-jsjnSuggestList",true);
7621const jsjoSuggestList = _api.get(".jwtpl-sebo-jsjoSuggestList",true);
7622_api.event(document, 'keydown', function (e) {
7623if (e.key === "Tab") {
7624jsjnSuggestionList[0].innerHTML = '';
7625jsjnSuggestionList[0].style.display = "none";
7626jsjoSuggestList[0].innerHTML = '';
7627jsjoSuggestList[0].style.display = "none";
7628}
7629})
7630}
7631var seboInit = function () {
7632seboCollapse();
7633seboSetWidth();
7634seboModifyPlaceholder();
7635seboInitRadiusSearch();
7636seboInitJobtypSearch();
7637seboSuggestHideEvents();
7638var jsjnExisting = _api.get(".jwtpl-sebo-blockJsJn1",true);
7639var jsjoExisting = _api.get(".jwtpl-sebo-blockJsJo1",true);
7640if(seboNecessaryListToStart()){
7641if(jsjnExisting?.length > 0){
7642seboTipJobname();
7643}
7644if(jsjoExisting?.length > 0){
7645seboTipLocation();
7646}
7647seboOnSubmit();
7648}
7649seboHiddenValueReset();
7650seboTabIndexing();
7651}
7652var seco_1InitShowMoreText = function() {
7653var
7654seco1Link = _api.get('.jwtpl-seco1-block .jwtpl-seco1-moreLink a'),
7655seco1SecoText2 = _api.get('.jwtpl-seco1-seoText2');
7656if(seco1Link.length > 0 && seco1SecoText2.length){
7657_api.event(seco1Link[0], 'click', function(e){
7658e.preventDefault();
7659var that = this;
7660if(that.hasAttribute("data-jwtpl-seco1-addevent") === true){
7661var fn = that.getAttribute("data-jwtpl-seco1-addevent");
7662if(fn.length !== 0) {
7663try {
7664eval(fn + "()");
7665} catch(err){
7666_api.printErrorMsg('.seco_1InitShowMoreText() - function [' + fn + '()] is undefined');
7667}
7668}
7669}
7670if(_api.type(seco1SecoText2[0].style.display) !== undefined){
7671if(seco1SecoText2[0].style.display == "" || seco1SecoText2[0].style.display == "none"){
7672_api.show(seco1SecoText2[0]);
7673that.innerHTML = 'weniger...';
7674} else {
7675_api.hide(seco1SecoText2[0]);
7676that.innerHTML = 'mehr...';
7677}
7678}
7679});
7680}
7681}
7682var seco_1Init = function() {
7683seco_1InitShowMoreText();
7684}
7685var seco_2ShowMore2 = function() {
7686var secoToggler = document.getElementsByClassName('jwtpl-seco2-secoShow')[0];
7687if(secoToggler !== undefined){
7688secoToggler.addEventListener('click', function() {
7689var parentEl = this.parentElement;
7690if(this.classList.contains('fa-chevron-down') == true) {
7691parentEl.classList.add('jwtpl-seco2-showAll');
7692this.classList.remove('jwtpl-seco2-secoShowMore');
7693this.classList.remove('fa-chevron-down');
7694this.classList.add('fa-chevron-up');
7695} else if(this.classList.contains('fa-chevron-up') == true) {
7696parentEl.classList.remove('jwtpl-seco2-showAll');
7697this.classList.add('jwtpl-seco2-secoShowMore');
7698this.classList.add('fa-chevron-down');
7699this.classList.remove('fa-chevron-up');
7700}
7701});
7702}
7703}
7704var seco_2ShowMore = function() {
7705var secoToggler = _api.get('.jwtpl-seco2-secoShow');
7706if(secoToggler.length > 0 && _api.type(secoToggler[0]) !== undefined){
7707_api.event(secoToggler[0], 'click', function(e){
7708var
7709trigger = this
7710parent = trigger.parentElement;
7711if(_api.type(parent) !== undefined){
7712if(_api.hasClass(trigger, 'fa-chevron-up')){
7713_api.removeClass(trigger, 'fa-chevron-up');
7714_api.addClass(trigger, 'fa-chevron-down');
7715parent.style.height = '400px';
7716} else if(_api.hasClass(trigger, 'fa-chevron-down')){
7717_api.removeClass(trigger, 'fa-chevron-down');
7718_api.addClass(trigger, 'fa-chevron-up');
7719parent.style.height = 'auto';
7720}
7721}
7722});
7723}
7724}
7725var seco_2InitShowMoreText = function(){
7726var
7727seco2Link = _api.get('.jwtpl-seco2-block .jwtpl-seco2-moreLink a'),
7728seco2SecoText2 = _api.get('.jwtpl-seco2-seoText2');
7729if(seco2Link.length > 0 && seco2SecoText2.length > 0){
7730_api.event(seco2Link[0], 'click', function(e){
7731e.preventDefault();
7732var that = this;
7733if(_api.type(seco2SecoText2[0].style.display) !== undefined){
7734if(seco2SecoText2[0].style.display == "" || seco2SecoText2[0].style.display == "none"){
7735_api.show(seco2SecoText2[0]);
7736that.innerHTML = 'weniger...';
7737} else {
7738_api.hide(seco2SecoText2[0]);
7739that.innerHTML = 'mehr...';
7740}
7741}
7742});
7743}
7744}
7745var seco_2JumpToBottomText = function() {
7746/* var jumpHref = document.getElementsByClassName('jwtpl-seco2-jumpSeco2')[0];
7747var targetBottomText = document.getElementsByClassName('jwtpl-seco2-block')[0];
7748_globalJumpToAnchor(jumpHref, targetBottomText);*/
7749}
7750var seco_2Init = function() {
7751var
7752mobileTrigger = false,
7753initialWidth = window.innerWidth || document.documentElement.clientWidth || document.body.clientWidth;
7754if(initialWidth < 769 && mobileTrigger === false){
7755mobileTrigger = true;
7756seco_2ShowMore();
7757}
7758window.addEventListener('resize', function() {
7759var width = window.innerWidth || document.documentElement.clientWidth || document.body.clientWidth;
7760if(width < 769 && mobileTrigger == false) {
7761mobileTrigger = true;
7762seco_2ShowMore();
7763}
7764});
7765seco_2InitShowMoreText();
7766// seco_2JumpToBottomText();
7767}
7768var logMe = function (descr, mod = '') {
7769if (_api !== false) {
7770_api.log(descr, mod);
7771}
7772}
7773var hasInitRun = false;
7774this.init = function(url, baseName, additional = '') {
7775if (hasInitRun === false) {
7776hasInitRun = true;
7777_globalInit(url, baseName, additional);
7778_globalInitAppJm();
7779jm_pts4Init();
7780if (document.getElementsByClassName('jwtpl-aiss-block').length >= 1) { aissInit(); }
7781if (document.getElementsByClassName('jwtpl-ecb-block').length >= 1) { ecbInit(); }
7782if (document.getElementsByClassName('jwtpl-fite-block').length >= 1) { fiteInit(); }
7783if (document.getElementsByClassName('jwtpl-hili-block').length >= 1) { hiliInit(); }
7784if (document.getElementsByClassName('jwtpl-hiliadpr-block').length >= 1) { hiliadprInit(); }
7785if (document.getElementsByClassName('jwtpl-hilipage-block').length >= 1) { hilipageInit(); }
7786if (document.getElementsByClassName('jwtpl-jobadedj-block').length >= 1) { jobad_edjInit(); }
7787if (document.getElementsByClassName('jwtpl-jobad-block').length >= 1) { jobadInit(); }
7788joma_bInit();
7789if (document.getElementsByClassName('jwtpl-joma-block').length >= 1) { jomaInit(); }
7790if (document.getElementsByClassName('jwtpl-limo-block').length >= 1) { limoInit(); }
7791if (document.getElementsByClassName('jwtpl-melili-block').length >= 1) { meliliInit(); }
7792if (document.getElementsByClassName('jwtpl-obo-block').length >= 1) { oboInit(); }
7793if (document.getElementsByClassName('jwtpl-remo-block').length >= 1) { remoInit(); }
7794if (document.getElementsByClassName('jwtpl-sebo-block').length >= 1) { seboInit(); }
7795if (document.getElementsByClassName('jwtpl-seco1-block').length >= 1) { seco_1Init(); }
7796if (document.getElementsByClassName('jwtpl-seco2-block').length >= 1) { seco_2Init(); }
7797_globalReInit();
7798}
7799}
7800}
7801}

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.