PageSourceSearch

https://www.hotelcareer.ch/js/vendor/jq_v3/jqSelecta.php.js?ft=179…=1&jb=10003&SID=h8kvihbv3do7ldbu616nuqvahp

js hotelcareer.ch collected 2026-10-09 23:25:48 UTC 16,345 bytes, 62 lines download raw bytes

1jQuery.fn.jqSelecta=function(opts){var thiz=this,selectOption=jQuery(this),ID_BASE=selectOption.attr('id'),selectName=selectOption.prop('name'),CELL_REF='cell.ref',OPT_REF='opt.ref',defaults={ownButtonClass:'',ownClass:'selectaDropDefault',ownMaxHeight:!1,ownOnClick:!1,multiSelect:null,autoSelected:null,title:null,showHeader:!1,showHeaderCloseIcon:!0,showFooter:!1,showMultiSelectFooterIcons:!0,footerCancelButtonText:'Abbrechen',footerOkButtonText:' Ok ',multiselectTitle:'Ausgewählte Elemente',showFooterOkCancelButtons:!0,onOpen:function(){},onClose:function(){},labelCallback:function(i){if(options.ownOnClick){eval(options.ownOnClick)}
2if(options.multiSelect){if(0==i){return'--- keine Auswahl ---'}
3return options.multiselectTitle+': '+i}else{var s=selectOption.find('[selected=selected]');if(s==null||s.length==0){s=jQuery(selectOption.children()[0])}
4if(null!=s.html()){return s.html().replace(/\s+/g,' ')}else{return''}}},height:'100%',maxheight:'300px',autoScrollOverflowY:!0,autoScrollOverflowX:!1,columns:1,fadeSpeed:0,valueSetFrom:'value',titleSetFrom:'title',textSetFrom:'text',persistAsCookie:!1,debug:!1,trace:!1,shadow:!1},options=jQuery.extend(defaults,opts),iframe=null,currentState=null,selecta,table,tbody,holder,buttonDisplayIcon,buttonText;if(options.ownMaxHeight){options.maxheight=options.ownMaxHeight}
5if(options.multiSelect===null){options.multiSelect=selectOption.attr('multiple');if(options.multiSelect===undefined){options.multiSelect=!1}}
6if(options.multiSelect){options.showFooter=!0}
7if(options.title){options.showHeader=!0}
8this.cancelAndClose=function(){if(options.multiSelect===!0){thiz.revertState()}
9thiz.hideSelecta()};this.refreshLabel=function(){if(typeof buttonText!=='undefined'){buttonText.html(options.labelCallback(selectOption.find('[selected=selected]').size()));if('search_bra'==selectOption[0].id){buttonText.html(options.labelCallback(selectOption.find('[selected=selected]').size()))}else if('bra_24'==selectOption[0].id){buttonText.html(options.labelCallback(selectOption.find('[selected=selected]').size()))}}};this.revertState=function(){if(currentState!==null&&currentState.length>=0){this.selectNone();jQuery(currentState).attr('selected','selected')}
10this.reloadState();this.refreshLabel()};this.resetSelecta=function(){table.find('.cellectable').each(function(i){deselectElement(this)});buttonText.html('--- bitte auswählen ---')}
11this.reloadState=function(){selectOption.find('[selected=selected]').each(function(i){selectElement(jQuery(this).data(OPT_REF))})};this.refreshSelecta=function(){selectOption.find('[selected=selected]').each(function(i){selectElement(jQuery(this).data(OPT_REF));setSelectColor(jQuery(this).data(OPT_REF))});selectOption.find('[selected=false]').each(function(i){deselectElement(jQuery(this).data(OPT_REF));setDeselectColor(jQuery(this).data(OPT_REF))})};this.refreshAll=function(){selectOption.find('[selected=false]').each(function(i){setSelectColor(jQuery(this).data(OPT_REF))})};this.showSelecta=function(){holder.css('z-index',1000);if($.browser.msie&&parseInt($.browser.version)<8){$('.toNoIndex').toggleClass('noIndex')}
12selecta.fadeIn(options.fadeSpeed);currentState=selectOption.find('[selected=selected]');iframe=jQuery('<iframe style="border:0; overflow:hidden; position:absolute;top:0px'+((options.trace===!0)?';border: solid blue 1px;':'')+';left:0;width:100%;height:'+selecta.height()+'px;z-index:-1"></iframe>');jQuery('#'+ID_BASE+'_jqselecta-wrap').prepend(iframe);if(options.shadow===!0){jQuery('#'+ID_BASE+'_jqselecta-shadow').fadeIn(options.fadeSpeed)}
13buttonDisplayIcon.removeClass('ui-icon-triangle-1-s').addClass('ui-icon-triangle-1-n');options.onOpen()};this.hideSelecta=function(){if($.browser.msie&&parseInt($.browser.version)<8){$('.toNoIndex').toggleClass('noIndex')}
14var fs=(options.multiSelect===!0)?options.fadeSpeed:(options.fadeSpeed*3);selecta.fadeOut(fs,function(){iframe.remove();buttonDisplayIcon.removeClass('ui-icon-triangle-1-n').addClass('ui-icon-triangle-1-s');options.onClose()});if(options.shadow===!0){jQuery('#'+ID_BASE+'_jqselecta-shadow').hide()}
15holder.css('z-index',0);if(options.persistAsCookie===!0){dehydrateAsCookie()}};this.dehydrateAsCookie=function(){var v='';selectOption.find('[selected=selected]').each(function(i){if(i>0){v+='&'}
16v+=escape(jQuery(this).attr('value'))+'='+escape(jQuery(this).html())});if(v!==''){jQuery.cookie(ID_BASE+'_jqSelecta',v)}};this.rehydrateFromCookie=function(){var str=jQuery.cookie(ID_BASE+'_jqSelecta'),c,i,v,selOpt;if(str!==null){c=str.split(/\&/);if(c.length>0){this.selectNone()}
17for(i=0;i<c.length;i++){v=c[i].split(/\=/);selectOption.find('[value='+unescape(v[0])+']').each(function(i){selOpt=jQuery(this);if(unescape(v[1])===selOpt.html()){jQuery(this).attr('selected','selected')}})}
18this.reloadState()}};this.resetCats=function(ele,refr){$('#'+ele+'_jqselecta').find('.cellectable').each(function(i){var c=jQuery(this);c.css('font-weight','normal');c.find('span').removeClass('ui-icon-check').addClass('ui-icon-close')});if(!0==refr){thiz.refreshLabel()}};this.resetBras=function(ele,refr){$('#'+ele+'_jqselecta').find('.cellectable').each(function(i){var c=jQuery(this);if(!1==c.data(CELL_REF).attr('selected')){c.css('font-weight','normal');c.find('span').removeClass('ui-icon-check').addClass('ui-icon-close')}});if(!0==refr){thiz.refreshLabel()}};this.toggleSelecta=function(){if(selecta.is(':visible')){thiz.hideSelecta()}else{thiz.showSelecta()}};this.selectAll=function(){table.find('.cellectable').each(function(i){selectElement(this)});thiz.refreshLabel()};this.selectNone=function(){table.find('.cellectable').each(function(i){deselectElement(this)});thiz.refreshLabel()};this.selectInverse=function(){table.find('.cellectable').each(function(i){if(jQuery(this).data(CELL_REF).attr('selected')=='selected'){deselectElement(this)}else{selectElement(this)}});thiz.refreshLabel()};
18this.getSelectedValues=function(){var retVal=[];jQuery(thiz).find('[selected=selected]').each(function(i){retVal[retVal.length]=jQuery(this).attr('value')});return retVal};function deselectElementOld(e){var c=jQuery(e);if(c.data(CELL_REF).attr('disabled')){return}
19c.data(CELL_REF).removeAttr('selected');c.css('font-weight','normal');c.find('span').removeClass('ui-icon-check').addClass('ui-icon-close')}
20function deselectElement(e){var c=jQuery(e);if(c.data(CELL_REF).attr('disabled')){return}
21c.data(CELL_REF).prop('defaultSelected',!1);c.data(CELL_REF).removeAttr('selected');c.css('font-weight','normal');c.find('span').removeClass('ui-icon-check').addClass('ui-icon-close')}
22function setDeselectColor(e){var c=jQuery(e);c.css('color','#aaa')}
23function setSelectColor(e){var c=jQuery(e);c.css('color','#222222')}
24function selectElementOld(e){var c=jQuery(e);if(c.data(CELL_REF).attr('disabled')){return}
25c.data(CELL_REF).attr('selected','selected');c.css('font-weight','bold');c.find('span').removeClass('ui-icon-close').addClass('ui-icon-check')}
26function selectElement(e){var c=jQuery(e);if(c.data(CELL_REF).attr('disabled')){return}
27if('msie'==$.browser.name){c.data(CELL_REF).prop('defaultSelected',!0)}
28c.data(CELL_REF).attr('selected','selected');c.css('font-weight','bold');c.find('span').removeClass('ui-icon-close').addClass('ui-icon-check')}
29function toggleElementOld(e){var c=jQuery(e);if(c.data(CELL_REF).attr('disabled')){return}
30if(c.data(CELL_REF).attr('selected')=='selected'&&options.multiSelect){deselectElement(e)}else{selectElement(e)}
31thiz.refreshLabel()}
32function toggleElement(e){var c=jQuery(e);if(c.data(CELL_REF).attr('disabled')){return}
33if(c.data(CELL_REF).prop('defaultSelected')==!0&&options.multiSelect){deselectElement(e)}else{selectElement(e)}
34thiz.refreshLabel()}
35function debug(args){if(options.debug){var msg='[jqSelecta]  '+((typeof(args)==='Array')?Array.prototype.join.call(args,''):args);if(window.console&&window.console.log){window.console.log(msg)}else{alert(msg)}}}
36function instantiate(){selecta=jQuery('<div id="'+ID_BASE+'_jqselecta" class="ui-widget-neutral ui-helper-clearfix ui-widget-content-neutral ui-corner-all" style="display:none;"></div>');table=jQuery('<table style="text-align:left;border:0;padding:0;margin:0;width:100%;z-index:19;"></table>');tbody=jQuery('<tbody></tbody>').appendTo(table);var children=selectOption.children(),widthUnit='%',columnWidth=(100/options.columns),rowSize=Math.round(children.length/options.columns),row,j,i,index,child,cell,oText,text,oTitle,title,oValue,value,oSelected,headerCloseIcon,scrollableContainer,header,footer,hoverCraft,nobr,button,selectAllIcon,selectNoneIcon,selectInverseIcon,okButton,cancelButton,singluarSelected=null;if(options.multiSelect===!1&&selectOption.find('[selected=selected]').size()>0){singluarSelected=selectOption.find('[selected=selected]')[0].index;if(singluarSelected===null){singluarSelected=0}}
37for(i=0;i<rowSize;i++){row=jQuery('<tr></tr>');for(j=0;j<options.columns;j++){index=i+j*rowSize;if(index>=children.length){for(;j<options.columns;j++){jQuery('<td> </td>').appendTo(row)}
38break}
39child=jQuery(children[index]);text=oText=child.text();title=oTitle=child.attr('title');value=oValue=child.attr('value');if(options.textSetFrom==='value'){text=oValue}else if(options.textSetFrom==='title'){text=oTitle}
40if(options.valueSetFrom==='text'){value=oText}else if(options.valueSetFrom==='title'){value=oTitle}
41if(options.titleSetFrom==='text'){title=oText}else if(options.titleSetFrom==='value'){title=oValue}
42oSelected=child.prop('defaultSelected');if(!(options.multiSelect===!1||options.autoSelected===null)){oSelected=options.autoSelected}
43if(singluarSelected!==null&&singluarSelected!==index){oSelected=!1}
44if(oSelected){child.attr('selected','selected')}
45cell=jQuery('<td title="'+title+'" style="border:0px;cursor:pointer;width:'+columnWidth+widthUnit+';'+((!0==oSelected)?'font-weight:bold':'')+'" class="cellectable widget-content'+'"><div style="text-overflow:ellipsis;">'+'<div style="float:left"><span class="ui-icon '+((!0==oSelected)?'ui-icon-check':'ui-icon-close')+'"/></div><div style="padding-left:16px;white-space:nowrap;float:none;"> '+text+'</div></div></td>');jQuery(cell).data(CELL_REF,child);jQuery(child).data(OPT_REF,cell);jQuery(cell).appendTo(row);if(child.attr('disabled')===!0){cell.addClass('ui-state-disabled-neutral')}else{cell.hover(function(){jQuery(this).addClass('ui-state-hover-neutral')},function(){jQuery(this).removeClass('ui-state-hover-neutral')}).click(function(){var c=jQuery(this),o,v;if(options.multiSelect===!1){o=c.data(CELL_REF);table.find('.cellectable').each(function(i){jQuery(this).css('font-weight','normal');jQuery(this).find('span').removeClass('ui-icon-check').addClass('ui-icon-close');jQuery(this).data(CELL_REF).removeAttr('selected');jQuery(this).data(CELL_REF).removeAttr('selected')})}
46toggleElement(this);if(options.multiSelect===!1){thiz.hideSelecta()}
47return!1})}}
48jQuery(row).appendTo(tbody)}
49jQuery(selecta).bind('mouseaway',function(){jQuery(this).find('ui-state-hover-neutral').removeClass('ui-state-hover-neutral')});if(!0===options.showHeader){if(options.showHeaderCloseIcon===!0){headerCloseIcon=jQuery('<div title="Cancel &amp; Close" id="'+ID_BASE+'_jqselecta-header-close" class="ui-state-default-neutral ui-corner-all" style="float:right;cursor:pointer"><span class="ui-icon ui-icon-close"/></div>');headerCloseIcon.hover(function(){jQuery(this).addClass('ui-state-hover-neutral')},function(){jQuery(this).removeClass('ui-state-hover-neutral')}).click(thiz.cancelAndClose);header=jQuery('<div id="'+ID_BASE+'_jqselecta-header" class="ui-widget-header-neutral ui-helper-clearfix" style="padding:1px"></div>');header.append(headerCloseIcon)}
50if(options.title!==null){header.append('<div id="'+ID_BASE+'_jqselecta-header-text">'+options.title+'</div>')}
51header.appendTo(selecta)}
52if(navigator.userAgent.match(/MSIE 6/)){if(rowSize>17){var ie_height=options.maxheight}else{var ie_height='auto; '}
53scrollableContainer=jQuery('<div style="height:'+ie_height+'!important;overflow-y:'+((options.autoScrollOverflowY===!0)?'auto':'hidden')+'!important;overflow-x:'+((options.autoScrollOverflowX===!0)?'auto':'hidden')+'!important; margin-right:2px"></div>')}else{scrollableContainer=jQuery('<div style="max-height:'+options.maxheight+';height:'+options.height+'!important;overflow-y:'+((options.autoScrollOverflowY===!0)?'auto':'hidden')+'!important;overflow-x:'+((options.autoScrollOverflowX===!0)?'auto':'hidden')+'!important; margin-right:2px"></div>')}
54table.appendTo(scrollableContainer);scrollableContainer.appendTo(selecta);if(options.showFooter===!0){footer=jQuery('<div id="'+ID_BASE+'_jqselecta-footer" class="ui-widget-header-neutral ui-helper-clearfix" style="padding:1px"></div>');hoverCraft=new Array();if((options.multiSelect===!0||options.multiSelect=='multiple')&&options.showMultiSelectFooterIcons===!0){selectAllIcon=jQuery('<div title="Alles auswählen" id="'+ID_BASE+'_jqselecta-select-all" class="ui-state-default-neutral ui-corner-all" style="float:left;cursor:pointer"><span class="ui-icon ui-icon-circle-check"/></div>');selectNoneIcon=jQuery('<div title="Keine Auswahl" id="'+ID_BASE+'_jqselecta-select-none" class="ui-state-default-neutral ui-corner-all" style="float:left;cursor:pointer"><span class="ui-icon ui-icon-circle-close"/></div>');selectAllIcon.click(thiz.selectAll);selectNoneIcon.click(thiz.selectNone);footer.append(selectAllIcon);footer.append(selectNoneIcon);hoverCraft.push(selectAllIcon,selectNoneIcon)}
55if((options.multiSelect===!0||options.multiSelect=='multiple')&&options.showFooterOkCancelButtons===!0){okButton=jQuery('<button class="ui-state-default-neutral ui-corner-all bgJb" style="text-overflow:ellipsis;overflow:hidden;float:right;cursor:pointer;" type="button">'+options.footerOkButtonText+'</button>');cancelButton=jQuery('<button class="ui-state-default-neutral ui-corner-all" style="text-overflow:ellipsis;overflow:hidden;float:right;cursor:pointer;" type="button">'+options.footerCancelButtonText+'</button>');okButton.click(thiz.hideSelecta);cancelButton.click(thiz.cancelAndClose);okButton.appendTo(footer);cancelButton.appendTo(footer);hoverCraft.push(okButton,cancelButton)}
56footer.appendTo(selecta);jQuery(hoverCraft).each(function(){jQuery(this).hover(function(){jQuery(this).addClass('ui-state-hover-neutral')},function(){jQuery(this).removeClass('ui-state-hover-neutral')})})}
57if(options.persistAsCookie===!0){rehydrateFromCookie()}
58var me_button_class='selectaDropAutoWidth';if(undefined!==$('select[name="'+selectName+'"]').attr('ownbuttonclass')){me_button_class=$('select[name="'+selectName+'"]').attr('ownbuttonclass')}
59var me_class='selectaDropDefault';if(undefined!==$('select[name="'+selectName+'"]').attr('ownclass')){me_class=$('select[name="'+selectName+'"]').attr('ownclass')}
60button=jQuery('<button id="'+ID_BASE+'_jqselecta-button" class="ui-state-default-neutral '+me_button_class+' ui-corner-all selectaButton" style="cursor:pointer;" type="button"></button>');nobr=jQuery('<nobr></nobr>');buttonDisplayIcon=jQuery('<span class="ui-icon ui-icon-triangle-1-s" style="float:right"/>');nobr.append(buttonDisplayIcon);buttonText=jQuery('<span style="text-overflow:ellipsis;overflow:hidden">'+options.labelCallback(selectOption.find('[selected=selected]').size())+'</span>');nobr.append(buttonText);button.append(nobr);button.bind('click',thiz.toggleSelecta);button.hover(function(){jQuery(this).addClass('ui-state-hover-neutral')},function(){jQuery(this).removeClass('ui-state-hover-neutral')});holder=jQuery('<span  id="'+ID_BASE+'_jqselecta-holder" class="selectaHolder '+me_class+'" style="margin:0;padding:0;overflow:visible;position:relative'+((options.trace===!0)?';border: dashed green 1px;':'')+'"></span>');button.appendTo(holder);selecta.appendTo(holder);selectOption.after(holder);selectOption.hide();selecta.wrap('<div  id="'+ID_BASE+'_jqselecta-wrap" class="selectaDrop'+options.columns+'" style="position:absolute;z-index:19;display:block'+((options.trace===!0)?';
60border: dotted red 1px':'')+';top:20px;left:0px'+'"></div>');if(options.shadow===!0){jQuery('#'+ID_BASE+'_jqselecta-wrap').prepend(jQuery('<div id="'+ID_BASE+'_jqselecta-shadow" class="ui-widget-shadow-neutral" style="position:absolute;z-index:29;top:0;top:'+button.height()+'px;left:0px;max-height:'+options.maxheight+';height: '+selecta.height()+'px;display:none"></div>'))}
61return thiz}
62return instantiate()}

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.