1var anzahl = 0; 2var preis = 0; 3 4$(document).delegate('.privacyRegistrieren', 'click', function() { 5 $("body").css("cursor", "progress"); 6 //textprivacyShop 7 var content = $('#outerPopup').load('http://www.passeier.it/shop/footer/datenschutz.html .lastContentElement', function() { 8 $('#outerPopup').css({ 9 'display' : 'block' 10 }); 11 $('#popupShop').css({ 12 'display' : 'block' 13 }); 14 $("body").css("cursor", "default"); 15 }); 16}); 17 18$(document).ready(function() { 19 20/* 21 Warenkorb ;) ! 22*/ 23 var pageURL = $(location).attr('href'); 24 var onlyBuecher = 1; 25 if(pageURL === "www.passeier.it/shop/mein-profil/warenkorb.html" || pageURL === "http://www.passeier.it/shop/mein-profil/warenkorb.html" ){ 26 27 $('.tt_products_basket').children('form').children('div.warenkorbitem').each(function(){ 28 var classe = $(this).attr('class').split(' ')[3]; 29 if(classe != 'Bücher'){ 30 onlyBuecher = 0; 31 } 32 }); 33 34 /* Option id zuweisen */ 35 $('#shipping-select').children('option').each(function(){ 36 var optionName = $(this).text(); 37 if(optionName == 'Italien (nur Bücher)'){ 38 optionName = 'ItalienBuecherVersand'; 39 } 40 $(this).addClass(optionName); 41 }); 42 43 44 if(onlyBuecher == 0){ 45 if($( "#shipping-select option:selected" ).text() == 'Italien (nur Bücher)'){ 46 $('.ItalienBuecherVersand').removeAttr("selected"); 47 $('.Italien').attr("selected", "selected"); 48 $('#warenkorbUebersicht').submit(); 49 } 50 $('.ItalienBuecherVersand').remove(); 51 52 //option ausblenden 53 }else{ 54 //option einblenden 55 } 56 } 57 58 59 60 var TextAreaField = $('#powermail_field_frage').val(); 61 $('#powermail_field_frage').val(''); 62 $('#powermail_field_frage').attr({ 63 'placeholder' : TextAreaField 64 }); 65 66 $('.singleImg').on('click', function() { 67 return false; 68 }); 69 70 $('.aufklappenLieferadresse').on('click', function() { 71 if ($('.aufklappenLieferadresseDiv').hasClass("aktiv")) { 72 $('.aufklappenLieferadresseDiv').slideUp('slow'); 73 $('.aufklappenLieferadresseDiv').removeClass('aktiv'); 74 } else { 75 $('.aufklappenLieferadresseDiv').slideDown('slow'); 76 $('.aufklappenLieferadresseDiv').addClass('aktiv'); 77 } 78 return false; 79 }); 80 81 /* Ajax load warte balken einbauen.... */ 82 83 $('select').change(function() { 84 if ($(this).hasClass('anzahlSelect') || $(this).parent('fieldset').hasClass('doNoOpenWindowWaiting')) { 85 //nix machen ;) 86 } else { 87 $('.popupPlsWaretn').css({ 88 'display' : 'block' 89 }); 90 setTimeout(function() { 91 $.getScript('http://www.passeier.it/typo3conf/ext/perfectlightbox/res/js/jquery.1.5.1.min.js'); 92 $.getScript('http://www.passeier.it/typo3conf/ext/perfectlightbox/res/js/slimbox.2.0.4.yui.js'); 93 $('.popupPlsWaretn').css({ 94 'display' : 'none' 95 }); 96 }, 3000); 97 } 98 }); 99 100 $(".catBoxen").children('a').mouseover(function() { 101 $(this).parent('div').children('p').css({ 102 'background' : '#ECCD40' 103 }); 104 /* 105 $(this).parent('div').children('p').animate({ 106 bottom: "+=35", 107 }, 0, function() { 108 // Animation complete. 109 }); 110 */ 111 }); 112 113 $(".catBoxen").children('a').mouseout(function() { 114 $(this).parent('div').children('p').css({ 115 'background' : 'rgba(129, 109, 22, 0.5)' 116 }); 117 /* 118 $(this).parent('div').children('p').animate({ 119 bottom: "-=35", 120 }, 0, function() { 121 // Animation complete. 122 }); 123 */ 124 }); 125 // Returns width of browser viewport 126 var windowBreite = $(window).width(); 127 var BreiteDyn; 128 //Ipad 768 129 //Tablet 800 130 if (windowBreite <= 800 && windowBreite >= 768) { 131 $('.darstellungBoxen').click(function() { 132 $('.listtext').css({ 133 'width' : '438px' 134 }); 135 136 $('.listbox').animate({ 137 width : "100%", 138 margin : "0px", 139 }, 1000, function() { 140 // Animation complete. 141 }); 142 $('.listbox').css({ 143 'float' : "left", 144 'min-height' : '155px' 145 }); 146 147 $('.listimage').animate({ 148 width : "118px", 149 }, 1000, function() { 150 }); 151 152 $('.tt-products img').animate({ 153 width : "118px", 154 height : "150px", 155 }, 1000, function() { 156 }); 157 158 $(this).addClass('aktiv'); 159 $('.darstellungList').removeClass('aktiv'); 160 161 }); 162 163 $('.darstellungList').click(function() { 164 $('.listbox').css({ 165 'float' : "left", 166 'min-height' : '550px' 167 }); 168 $('.listtext').css({ 169 'width' : '100%' 170 }); 171 172 $('.listbox').animate({ 173 width : "278px", 174 }, 1000, function() { 175 // Animation complete. 176 }); 177 178 $('.listimage').animate({ 179 width : "278px", 180 }, 1000, function() { 181 }); 182 183 $('.tt-products img').animate({ 184 width : "278px", 185 height : "278px", 186 }, 1000, function() { 187 }); 188 189 var StartNumber = 1; 190 $('.tt_products_item_list').children('.listbox').each(function() { 191 if (StartNumber == 1) { 192 $(this).css({ 193 'margin-right' : '5px', 194 }); 195 } else if (StartNumber == 2) { 196 $(this).css({ 197 'margin-left' : '5px', 198 }); 199 StartNumber = 0; 200 } 201 StartNumber++; 202 }); 203 204 $(this).addClass('aktiv'); 205 $('.darstellungBoxen').removeClass('aktiv'); 206 }); 207 } else { 208 $('.darstellungBoxen').click(function() { 209 $('.listtext').css({ 210 'width' : '' 211 }); 212 213 $('.listbox').animate({ 214 width : "100%", 215 margin : "0px", 216 }, 1000, function() { 217 // Animation complete. 218 }); 219 $('.listbox').css({ 220 'float' : "left", 221 'min-height' : '155px' 222 }); 223 224 $('.listimage').animate({ 225 width : "150px", 226 }, 1000, function() { 227 }); 228 229 $('.tt-products img').animate({ 230 width : "150px", 231 height : "150px", 232 }, 1000, function() { 233 }); 234 235 $(this).addClass('aktiv'); 236 $('.darstellungList').removeClass('aktiv'); 237 238 }); 239 240 $('.darstellungList').click(function() { 241 $('.listbox').css({ 242 'float' : "left", 243 'min-height' : '500px' 244 }); 245 $('.listtext').css({ 246 'width' : '100%' 247 }); 248 249 $('.listbox').animate({ 250 width : "230px", 251 }, 1000, function() { 252 // Animation complete. 253 }); 254 255 $('.listimage').animate({ 256 width : "230px", 257 }, 1000, function() { 258 }); 259 260 $('.tt-products img').animate({ 261 width : "230px", 262 height : "230px", 263 }, 1000, function() { 264 }); 265 266 var StartNumber = 1; 267 $('.tt_products_item_list').children('.listbox').each(function() { 268 if (StartNumber == 2) { 269 $(this).css({ 270 'margin' : '0 10px', 271 }); 272 StartNumber = 0; 273 } else { 274 StartNumber++; 275 } 276 }); 277 278 $(this).addClass('aktiv'); 279 $('.darstellungBoxen').removeClass('aktiv'); 280 }); 281 } 282 283 //List Block Icons Hover effekte
284 $('.darstellungList').mouseover(function() { 285 $(this).css({ 286 'color' : '#816d16' 287 }); 288 }); 289 $('.darstellungList').mouseout(function() { 290 $(this).css({ 291 'color' : '#edebd5' 292 }); 293 }); 294 295 /* Merkliste Modifizieren */ 296 297 //Anzahl Aktualisieren 298 $("#quantity").keyup(function() { 299 $('#quantiyMemo').val($(this).val()); 300 }); 301 //GröÃe Aktualisieren 302 $("#farbe").change(function() { 303 $('#colorMemo').val($(this).val()); 304 }); 305 //Farbe Aktualisieren 306 $("#size").change(function() { 307 $('#sizeMemo').val($(this).val()); 308 }); 309 310 311 312 //Schatten effekte ersten 313 $('a').mouseover(function() { 314 $(this).children('.imageShadow').css({ 315 'box-shadow' : ' 0 0 15px rgba(0, 0, 0, 0.15) inset' 316 }); 317 }); 318 $('a').mouseout(function() { 319 $(this).children('.imageShadow').css({ 320 'box-shadow' : ' 0 0 15px rgba(0, 0, 0, 0.07) inset' 321 }); 322 }); 323 324 $('.csc-textpic-image').mouseover(function() { 325 $(this).children('.imageShadow').css({ 326 'box-shadow' : ' 0 0 15px rgba(0, 0, 0, 0.15) inset' 327 }); 328 }); 329 $('.csc-textpic-image').mouseout(function() { 330 $(this).children('.imageShadow').css({ 331 'box-shadow' : ' 0 0 15px rgba(0, 0, 0, 0.07) inset' 332 }); 333 }); 334 // 335 336 $('.catBoxen').mouseover(function() { 337 $(this).css({ 338 'box-shadow' : ' 0 0 15px rgba(0, 0, 0, 0.15) inset' 339 }); 340 }); 341 $('.catBoxen').mouseout(function() { 342 $(this).css({ 343 'box-shadow' : ' 0 0 15px rgba(0, 0, 0, 0.07) inset' 344 }); 345 }); 346 347 $('.secondWrap img').after('<div class="imageShadow" style="box-shadow: 0px 0px 15px rgba(0, 0, 0, 0.07) inset;"></div>'); 348 349 /*** allgemeine geschäftsbedingungen laden ***/ 350 var content = $('#outerPopup').load('http://www.passeier.it/shop/information/agb.html .agb'); 351 // popupfensert öffnen 352 $('.agbStyl').on('click', function() { 353 $('#popupShop').css({ 354 'display' : 'block' 355 }); 356 // popup höhe zuweisen 357 var heightText = $('#agb').height(); 358 heightText += 300; 359 $('#popupShop').css({ 360 'height' : heightText + 'px' 361 }); 362 return false; 363 }); 364 365 $('.agb-popup').on('click', function() { 366 $('#popupShop').css({ 367 'display' : 'block' 368 }); 369 // popup höhe zuweisen 370 var heightText = $('#agb').height(); 371 heightText += 300; 372 $('#popupShop').css({ 373 'height' : heightText + 'px' 374 }); 375 }); 376 377 // popupfenster schlieÃen 378 $('#popupShop').on('click', function() { 379 $('#popupShop').css({ 380 'display' : 'none' 381 }); 382 }); 383 384 $('.bestellenButton').attr('disabled', true).addClass('buttonDisabled'); 385 386 $('#checkbox-agb').change(function() { 387 if ($(this).is(':checked')) { 388 $('.bitteAgbBestätigen').text(''); 389 //$('.bestellenButton').attr('disabled',false).removeClass('buttonDisabled'); 390 } else { 391 $('.bitteAgbBestätigen').text('Bitte bestätigen Sie die AGBâs'); 392 //$('.bestellenButton').attr('disabled',true).addClass('buttonDisabled'); 393 } 394 }); 395 396 $('.bestellenButtonNew').on('click', function() { 397 if ($('#checkbox-agb').is(':checked')) { 398 $('.bitteAgbBestätigen').text(''); 399 } else { 400 $('.bitteAgbBestätigen').text('Bitte bestätigen Sie die AGBâs'); 401 return false; 402 } 403 }); 404 405 // Auf die Merkliste mitgeben was selektiert wurde 406 $('#singelPreis').find('select').change(function() { 407 $('#singelPreis').find('select').each(function() { 408 var formAction = $('.merkenkorbDiv').children('form').attr('action'); 409 }); 410 }); 411 412 /* Warenkorb alle angelegten Produkte durchgehen */ 413 warenKorb(); 414 415}); 416function warenKorb() { 417 $('.tt_products_basket').children('form').children(".warenkorbitem").each(function() { 418 var produktTitle = $(this).children('div').children('.product_title').children('a').text(); 419 vorhanden = 0; 420 $('#tt-products-memo-934').children('.formulare').each(function() { 421 var nameMemo = $(this).children("form").children('div').children("#listtxt").children("h1").children('a').text(); 422 if (nameMemo == produktTitle) { 423 vorhanden = 1; 424 } 425 }); 426 if (vorhanden == 1) { 427 $(this).children('div').children('.backToMemo').css({ 428 'display' : 'none' 429 }); 430 } 431 }); 432 433} 434
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.