1$.fn.serializeObject = function () { 2 var o = {}; 3 var a = this.serializeArray(); 4 $.each(a, function () { 5 if (o[this.name] !== undefined) { 6 if (!o[this.name].push) { 7 o[this.name] = [o[this.name]]; 8 } 9 o[this.name].push(this.value || ''); 10 } else { 11 o[this.name] = this.value || ''; 12 } 13 }); 14 return o; 15}; 16//Nicht fragen 17/*************************************************************************/ 18if (navigator.userAgent.match(/IEMobile\/10\.0/)) { 19 var msViewportStyle = document.createElement("style"); 20 msViewportStyle.appendChild( 21 document.createTextNode( 22 "@-ms-viewport{width:auto!important}" 23 ) 24 ); 25 document.getElementsByTagName("head")[0]. 26 appendChild(msViewportStyle); 27} 28 29 30function equalHeight(group) { 31 if (window.matchMedia('(min-width: 768px)').matches) { 32 var tallest = 0; 33 group.each(function () { 34 $(this).height('auto'); 35 var thisHeight = $(this).height(); 36 if (thisHeight > tallest) { 37 tallest = thisHeight; 38 } 39 }); 40 group.height(tallest); 41 } else { 42 group.removeAttr('style'); 43 } 44} 45 46function uuidv4() { 47 return 'xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx'.replace(/[xy]/g, function (c) { 48 var r = Math.random() * 16 | 0, v = c == 'x' ? r : (r & 0x3 | 0x8); 49 return v.toString(16); 50 }); 51} 52 53 54//Mobile-Check 55var isMobile = false; 56if (/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)) { 57 isMobile = true; 58} 59 60 61////UpdateCartStatus 62///*************************************************************************/ 63//$(document).ready(function () { 64// $('.CartStatus').on('increaseCartStatus', function () { 65 66// $.ajax({
67// type: "POST", 68// url: "/Ajax/ShopMethods.aspx/getCartPosCount", 69// async: false, 70// contentType: "application/json; charset=utf-8", 71// dataType: "json", 72// success: function (result) { 73// $(".CartStatus .positionTotal").text(result.d); 74// } 75// }); 76 77// }); 78 79//}); 80 81//Sucheingabe 82$(document).ready(function () { 83 84 $('#searchQuery').keypress(function (e) { 85 if (e.which == 13) { 86 $('#searchButton').click(); 87 88 return false; 89 } 90 }); 91 92 $('#searchButton').on('click', function (e) { 93 e.preventDefault(); 94 95 var query = $('#searchQuery').val(); 96 97 if (query != "") { 98 location.href = $(this).attr('href') + query; 99 } 100 }); 101 102 $("#backLink").click(function (event) { 103 event.preventDefault(); 104 history.back(1); 105 }); 106 107}); 108 109 110///*************************************************************************/ 111////InfoZeile 112//$(window).load(function () { 113// equalHeight($(".infoBar .item > div")); 114//}); 115 116//$(window).resize(function () { 117// equalHeight($(".infoBar .item > div")); 118//}); 119 120 121////SupportForm 122//$('#supportFormSend').click(function () { 123 124// if (isValidEmailAddress($('#supportFormMail').val())) { 125 126// var data = JSON.stringify($('#supportForm input,textarea').serializeObject()); 127 128// $.ajax({
129// type: "POST", 130// url: "/Ajax/ShopMethods.aspx/sendSupportForm", 131// data: data, 132// async: false, 133// contentType: "application/json; charset=utf-8", 134// dataType: "json", 135// success: function (result) { 136 137// if (result.d == "true") { 138// $('.supportWrapper input[type="text"], textarea').val(""); 139// $('.supportWrapper .bg-danger').remove(); 140// $('.supportWrapper > div:first').before('<div class="col-sm-12 bg-success rowcontainer"><h5>Ihre Nachricht wurde an uns gesendet.</h5></div>'); 141// } else { 142// $('.supportWrapper .bg-danger').remove(); 143// $('.supportWrapper > div:first').before('<div class="col-sm-12 bg-danger rowcontainer"><h5>' + result.d + '</h5></div>'); 144// } 145// } 146// }); 147 148// } else { 149// $('.supportWrapper .bg-danger').remove(); 150// $('.supportWrapper > div:first').before('<div class="col-sm-12 bg-danger rowcontainer"><h5>Bitte geben Sie eine gültige E-Mail-Adresse angeben.</h5></div>'); 151// } 152 153//});
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.