1function cbotext(cbo) { 2 slctd = -1; 3 for (i = 0; i < cbo.length; i++) 4 { if (cbo.options[i].selected) slctd = i }; 5 if (slctd == -1) { 6 return "" 7 } else { 8 return cbo.options[slctd].text; 9 } 10} 11 12var refid = 0; 13function createReferent(tabindex, titel, vorname, nachname, refbez, refbezhinweis, index) { 14 var referentDiv = document.getElementById("referentdiv"); 15 if (referentDiv != null) { 16 var Felder = new Array("titel", "vorname", "nachname", "refbez"); 17 var FelderTitle = new Array(titel, vorname, nachname, refbez); 18 if (refid != 0) { 19 refid++; 20 } 21 else { 22 refid = index; 23 } 24 var html = ""; 25 var newcontent = document.createElement('div'); 26 for (var i = 0; i < Felder.length; i++) { 27 if (i == 0) html += "<p class=\"row\"></p><hr />"; 28 html += "<p class=\"row\"><span class=\"label\"><label class=\"shorttext\" title=\"" + FelderTitle[i] + "\">" + FelderTitle[i] + "</label></span><span class=\"blank\"> </span><span class=\"formw\">"; 29 html += "<input type=\"text\" class=\"shorttext\" title=\"" + FelderTitle[i] + "\" tabindex=\"" + tabindex + "\" id=\"" + Felder[i] + "" + refid + "\" name=\"" + Felder[i] + "" + refid + "\"></span></p>"; 30 } 31 html += "<p class=\"row\"><span class=\"label\"></span><span class=\"blank\"> </span><span class=\"formw\">" + refbezhinweis + "</span></p>"; 32 newcontent.innerHTML = html; 33 while (newcontent.firstChild) { 34 referentDiv.appendChild(newcontent.firstChild); 35 } 36 } 37} 38 39function MakeVisible(id, checkbox) { 40 var e = document.getElementById(id); 41 if (checkbox.checked) 42 e.style.display = ''; 43 else { 44 e.style.display = 'none'; 45 } 46} 47 48function showLightBox(qrText, qrHeight, header, desc, json, ddText) { 49 $.ajax({
50 url: envurl + "system/web/QRCodeImageGenerator.ashx?size=" + qrHeight + "&text=" + qrText, 51 contentType: "application/json; charset=utf-8", 52 dataType: 'json', 53 type: 'GET', 54 async: true, 55 success: function (jsresults) { 56 if (jsresults && jsresults.length > 0) { 57 var width = jsresults[0].width; 58 var height = jsresults[0].height; 59 var jsObj; 60 var optionHtml = ""; 61 if (json) { 62 jsObj = $.parseJSON(json); 63 for (var i = 0; i < jsObj.length; i++) { 64 optionHtml += '<option>' + jsObj[i].startDate.toString() + '</option>'; 65 } 66 if (optionHtml != "") { 67 optionHtml = '<div style="position:relative;background-color:#FFFFFF;width:' + (width + 20) + 'px;margin:0 auto; padding-top:20px"><p>' + ddText + '</p><select class="select" id="selectqrchangedd">' + optionHtml + '</select></div>'; 68 } 69 } 70 71 width = width < 45 ? 45 : width; 72 height = height < 45 ? 45 : height; 73 var lightBoxHtml = '<div id="jquery-overlay" style="background-color: rgb(0, 0, 0); opacity: 0.8; width: ' + document.documentElement.offsetWidth + 'px; height: ' + document.documentElement.offsetHeight + 'px;"></div>' + 74 '<div id="jquery-lightbox" tabindex="-1" style="top: 45px; left: 0px;">' + 75 optionHtml + 76 '<div id="imagedetails" style="width:' + (width + 20) + 'px; height:' + (height + 20) + 'px;">' + 77 '<div id="lightbox-container-image">' + 78 '<span style="display:inline-block;height:' + height + 'px;width:' + width + 'px;" class="RadBarcode"><img src="' + jsresults[0].imagesrc + '" class="' + jsresults[0].cssclass + '"></span>' + 79 '</div>' + 80 '</div>' + 81 '<div id="outerImageContainer" style="display: block; width:' + (width + 20) + 'px; padding:0px;">' + 82 '<div id="imageDataContainer">' + 83 '<div id="lightbox-image-details">' + 84 (header ? '<span id="caption" style="display:block;">' + header + '</span>' : '') + 85 (desc ? '<span id="lightboxdescription" style="display:block;padding-bottom:1em;">' + desc + '</span>' : '') + 86 '</div>' + 87 '<div id="lightbox-secNav">' + 88 '<a id="lightbox-secNav-btnClose" href="#" onclick="hideLightBox()"><img src="lightboxJQuery/images/close.gif"></a>' + 89 '</div>' + 90 '</div>' + 91 '</div>' + 92 '</div>'; 93 94 $("body").append(lightBoxHtml); 95 //Set Focus On Image Information 96 $("#jquery-lightbox").focus(); 97 var sel = document.getElementById('selectqrchangedd'); 98 if (sel && jsObj) { 99 sel.onchange = function () { 100 var selectedValue = sel[sel.selectedIndex].text; 101 for (var i = 0; i < jsObj.length; i++) { 102 if (selectedValue == jsObj[i].startDate.toString()) { 103 $("#lightbox-container-image").find("span.RadBarcode").html(""); 104 $("#lightbox-container-image").addClass("qrajaxloader"); 105 $.ajax({
106 url: envurl + "system/web/QRCodeImageGenerator.ashx?size=" + jsObj[i].QrSize + "&text=" + jsObj[i].ICalText, 107 contentType: "application/json; charset=utf-8", 108 dataType: 'json', 109 type: 'GET', 110 async: true, 111 success: function (results) { 112 $("#lightbox-container-image").removeClass("qrajaxloader"); 113 if (results && results.length > 0) { 114 $("#lightbox-container-image").find("span.RadBarcode").html("<img src='" + results[0].imagesrc + "' class='" + results[0].cssclass + "'>"); 115 $('#jquery-lightbox div[style*=width]').css("width", results[0].width + 20 + "px"); 116 $('#jquery-lightbox div[style*=width]').css("width", results[0].height + 20 + "px"); 117 $("#lightbox-container-image").find("span.RadBarcode").css("width", results[0].width + "px"); 118 $("#lightbox-container-image").find("span.RadBarcode").css("width", results[0].height + "px"); 119 } 120 }, 121 error: function (xhr, ajaxOptions, thrownError) { 122 $("#lightbox-container-image").removeClass("qrajaxloader"); 123 } 124 }); 125 126 break; 127 } 128 } 129 } 130 } 131 132 $(document).keydown(function (e) { 133 if ($("#jquery-lightbox").length > 0 && e.keyCode == 27) { 134 hideLightBox(); 135 } 136 }); 137 } 138 }, 139 error: function (xhr, ajaxOptions, thrownError) { 140 $("#lightbox-container-image").removeClass("qrajaxloader"); 141 } 142 }); 143 144 145 return false; 146} 147 148 149function showLightBoxBonus(qrText, qrHeight, header, desc) { 150 $.ajax({
151 url: envurl + "system/web/QRCodeImageGenerator.ashx?size=" + qrHeight + "&text=" + qrText, 152 contentType: "application/json; charset=utf-8", 153 dataType: 'json', 154 type: 'GET', 155 async: true, 156 success: function (jsresults) { 157 if (jsresults && jsresults.length > 0) { 158 var width = jsresults[0].width; 159 var height = jsresults[0].height; 160 width = width < 45 ? 45 : width; 161 height = height < 45 ? 45 : height; 162 var lightBoxHtml = '<div id="jquery-overlay" style="background-color: rgb(0, 0, 0); opacity: 0.8; width: ' + document.documentElement.offsetWidth + 'px; height: ' + document.documentElement.offsetHeight + 'px;"></div>' + 163 '<div id="jquery-lightbox" class="bonus-lightbox" tabindex="-1" style="top: 45px; left: 0px;">' + 164 '<div id="imagedetails" style="width:' + (width + 20) + 'px; height:' + (height + 20) + 'px;">' + 165 (header ? '<div id="lightbox-image-header"><span id="caption" style="display:block;">' + header + '</span></div>' : '') + 166 '<div id="lightbox-container-image">' + 167 '<span style="display:inline-block;height:' + height + 'px;width:' + width + 'px;" class="RadBarcode"><img src="' + jsresults[0].imagesrc + '" class="' + jsresults[0].cssclass + '"></span>' + 168 '</div>' + 169 '</div>' + 170 '<div id="outerImageContainer" style="display: block; width:' + (width + 20) + 'px; padding:0px;">' + 171 '<div id="imageDataContainer">' + 172 '<div id="lightbox-image-details">' + 173 (desc ? '<span id="lightboxdescription" style="display:block;padding-bottom:1em;">' + desc + '</span>' : '') + 174 '</div>' + 175 '<div class="lb_gem2golink"><a href="http://gem2go.at">Jetzt in der GEM2GO APP nutzen</a></div>' + 176 '<div id="lightbox-secNav">' + 177 '<a id="lightbox-secNav-btnClose" href="#" onclick="hideLightBox()"><img src="lightboxJQuery/images/close.gif"></a>' + 178 '</div>' + 179 '</div>' + 180 '</div>' + 181 '</div>'; 182 183 $("body").append(lightBoxHtml); 184 //Set Focus On Image Information 185 $("#jquery-lightbox").focus(); 186 $(document).keydown(function (e) { 187 if ($("#jquery-lightbox").length > 0 && e.keyCode == 27) { 188 hideLightBox(); 189 } 190 }); 191 } 192 }, 193 error: function (xhr, ajaxOptions, thrownError) { 194 $("#lightbox-container-image").removeClass("qrajaxloader"); 195 } 196 }); 197 198 199 return false; 200} 201 202 203 204function hideLightBox() { 205 $('#jquery-lightbox').remove(); 206 $('#jquery-overlay').fadeOut(function () { $('#jquery-overlay').remove(); }); 207 $('embed, object, select').css({ 'visibility': 'visible' }); 208} 209 210function addObj(entfernenTxt, divId, ddId) { 211 var objDiv = document.getElementById(divId); 212 var objDD = document.getElementById(ddId); 213 if (objDiv != null && objDD != null) { 214 var html = ""; 215 var objBez = objDD[objDD.selectedIndex].text; 216 var objOnr = objDD[objDD.selectedIndex].value; 217 if (objOnr != 0 && document.getElementById(ddId + "_" + objOnr) == null) { 218 var newcontent = document.createElement('div'); 219 html += "<p class=\"row\" id=\"" + ddId + "_" + objOnr + "\"><span class=\"label\"></span><span class=\"blank\"> </span><span class=\"formw\">"; 220 html += "<label><span>" + objBez + " </span><input type=\"hidden\" value=\"" + objOnr + "\" id=\"h_" + ddId + "_" + objOnr + "\" name=\"h_" + ddId + "_" + objOnr + "\"><input type=\"button\" value=\"" + entfernenTxt + "\" class=\"button float_right\" onclick=\"removeObj('" + ddId + "_" + objOnr + "');\"></label>"; 221 newcontent.innerHTML = html; 222 while (newcontent.firstChild) { 223 objDiv.appendChild(newcontent.firstChild); 224 } 225 } 226 } 227} 228 229function removeObj(id) { 230 var obj = document.getElementById(id); 231 if (obj != null && obj.parentNode != null) { 232 obj.parentNode.removeChild(obj); 233 } 234} 235 236function addLogo(sender, begin, end) { 237 var count = 0; 238 for (var i = begin; i <= end; i++) { 239 var obj = $('[id$="ff_' + i + '_ffinput"]').closest(".form-grid-cell "); 240 if (obj != null && $(obj).hasClass("none")) { 241 $(obj).removeClass("none"); 242 if ((end - begin) <= count) { 243 //sender.style.display = "none"; 244 $(sender).closest('.form-grid-cell').addClass('none'); 245 } 246 return; 247 } 248 else 249 count++; 250 } 251 return false; 252} 253
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.