1(function ($, Drupal, window, document, undefined) { 2 $(document).ready(function () { 3 4 5 if ($('#vcdcontainer').length) { 6 $.getJSON("/ajax/loadvirtuellecd", 7 function (data) { 8 if (data.result == 0) { 9 document.location.href = "/virtuellecd"; 10 } else { 11 if (data.url) { 12 $('#vcdcontainer').replaceWith('<h1>Die Virtuelle CD der Mac Life</h1><p>Die virtuelle CD der <b>'+data.node.title+'</b> steht Ihnen unter folgendem Link zur Verfügung:</p><a href="'+ data.url+'" class="button">Hier gehts zum Download</a>'); 13 //document.location.href = data.url; 14 } else { 15 $('#vcdcontainer').replaceWith(data.html); 16 } 17 } 18 }); 19 } 20 21 $("#booklet").booklet({ 22 hoverWidth: 100, 23 speed: 500, 24 pageNumbers: false, 25 pagePadding: 0, 26 pageSelector: false, 27 auto: false, 28 closed: false, 29 covers: false 30 }); 31 32 var viewableyears = Math.floor(($('.pdfshop_filter_wrapper').width() - $('.pdfshop_filter_wrapper select').width()) / 68) + 1; 33 34 $('.pdfshop_filter li:nth-child(1n+' + viewableyears + ')').each(function () { 35 $(this).hide(); 36 }); 37 38 //$('.pdfshop_filter select option:nth-child(' + (viewableyears - 1) + ')').attr('selected', 'selected'); 39 $('.pdfshop_filter li.last').show(); 40 41 42 $(".pdfshop_filter select").change(function () { 43 window.location = $(this).val(); 44 }); 45 46 count = 1; 47 48 if ($().accordion) { 49 // marquee is loaded and available 50 $("#tec_pdfshop_block_accordion").accordion({ 51 header: '.head', 52 event: 'click', 53 icons: false, 54 beforeActivate: function (event, ui) { 55 tec_pdfshop_load_image($("#tec_pdfshop_block_accordion").accordion("option", "active")); 56 tec_pdfshop_set_count(); 57 } 58 }); 59 } 60 //Die Wechselfunktion wird im Interval aufgerufen 61 timer = window.setInterval(tec_pdfshop_accordion_play, 8000); 62 63 //Bei berührung mit der Mouse wird der Wechsel unterbunden 64 var over = false; 65 $("#tec_pdfshop_block_accordion").mouseenter(function () { 66 over = true; 67 window.clearInterval(timer); 68 69 }).mouseleave(function () { 70 over = false; 71 timer = window.setInterval(tec_pdfshop_accordion_play, 8000); 72 }); 73 74 function tec_pdfshop_load_image(c) { 75 $("#tec_pdfshop_block_accordion li:nth-child(" + (c + 1) + ") .content").find('img').each(function () { 76 $(this).attr("src", $(this).data('src')); 77 }); 78 } 79 80 /* 81 * 82 * @param {type} c 83 * @returns {undefined} 84 */ 85 function tec_pdfshop_set_count(c) { 86 count++; 87 //Wenn alle einmal geöffnet wurden, dann wird wieder von vorne angefangen 88 if (count >= $("#tec_pdfshop_block_accordion").children('li').length) { 89 count = 0; 90 } 91 } 92 93 /* 94 * 95 */ 96 function tec_pdfshop_accordion_play() { 97 //Wechsel wird nur ausgefürht, wenn der Bereich nicht berührt wird 98 if (!over && $().accordion) { 99 $("#tec_pdfshop_block_accordion").accordion("option", "active", count); 100 } 101 } 102 103 }); 104})(jQuery, Drupal, this, this.document); 105 106 107
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.