1var skinFolder = "bennye"; 2 3$(function() { 4 var openBtn = $('.buton_ac'), 5 slideMenu = $('.acilabilir-menu'), 6 layer = $('<div />').addClass('perde'); 7 openBtn.on("click", function() { 8 if (slideMenu.is(':hidden')) { 9 layer.appendTo('body'); 10 $("#kayan_yazi_alani").css("display","block").appendTo(slideMenu); 11 slideMenu.slideDown(300); 12 $('body').animate({'padding-top':125},300); 13 } else { 14 slideMenu.slideUp(300); 15 layer.remove(); 16 $('body').animate({'padding-top':0},300); 17 } 18 }); 19}); 20 21PM.OnPage("urun_detay",function(){ 22 $('#PM_urun_detayi div.urun_detay_orta').append('<div class="addthis_sharing_toolbox"></div>'); 23 PM.on('before-init-jq-zoom',function(){ 24 $("a.buyutec > img").removeAttr("width"); 25 $("a.buyutec > img").removeAttr("height"); 26 PM.Set('Configure', 'JqZoom.xOffset', 60); 27 PM.Set('Configure', 'JqZoom.xOffset', -50); 28 PM.Set('Configure', 'JqZoom.zoomWidth', 330); 29 PM.Set('Configure', 'JqZoom.zoomHeight', 330); 30 }); 31}); 32 33PM.OnPage(["ana_sayfa", "urunler" ,"arama_sonuclari", "yeni_urunler", "indirimli_urunler", "tag"], function(){ 34 35 $("p.baslik").wrap("<div class='baslik_tutucu'></div>"); 36 37 $.each($(".urun_kdvdahil_fiyati"), function(index) { 38 var parantezli = $(this).text().replace('KDV Dahil', ''); 39 $(this).html(parantezli + '<span></span>'); 40 }); 41 42 $(".pattern").insertBefore("#PM_alt"); 43 $(".hakkimizda").insertAfter(".pattern"); 44 $("#PM_sag").insertBefore("#PM_anasayfa_urunler"); 45 46 $(".daraltma_secenegine_yonlendir").insertAfter(".kategori_urunleri_daraltma"); 47 48 $.each($(".urunler_main div.urun"), function(index) { 49 $(this).parent().css("width","33.333%"); 50 }); 51 52 $( ".gosterim_secenekleri").find("a").first().addClass("liste_ikon"); 53 $( ".gosterim_secenekleri").find("a").last().addClass("katalog_ikon"); 54 55 $(".gosterim_secenekleri a").each(function(){ 56 var liste_ikon = $(this).children("img").attr("src"); 57 var liste_class = liste_ikon.substring(liste_ikon.lastIndexOf("/") + 1, liste_ikon.length).replace(".jpg",""); 58 $(this).addClass(liste_class); 59 }); 60 61 (function(w){ 62 var sw = document.body.clientWidth; 63 current = 0, 64 breakpointSize = window.getComputedStyle(document.body,':after').getPropertyValue('content'), 65 multiplier = 1, /*Determines the number of panels*/ 66 $carousel = $('.c'), 67 $cList = $('.c-list'), 68 $cWidth = $carousel.outerWidth(), 69 $li = $('.c li'), 70 $liLength = $li.length, 71 numPages = $liLength/multiplier, 72 $prev = $('.c-nav .prev'), 73 $next = $('.c-nav .next'); 74 75 $(document).ready(function() { 76 buildCarousel(); 77 }); 78 79 $(window).on('resize', function(){ //On Window Resize 80 sw = document.body.clientWidth; 81 $cWidth = $carousel.width(); 82 breakpointSize = window.getComputedStyle(document.body,':after').getPropertyValue('content'); /* Conditional CSS http://adactio.com/journal/5429/ */ 83 sizeCarousel(); 84 posCarousel(); 85 }); 86 87 function sizeCarousel() { //Determine the size and number of panels to reveal 88 current = 0; 89 if (breakpointSize == 'medium') { 90 multiplier = 2; 91 92 } else if (breakpointSize == 'large') { 93 multiplier = 5; 94 } else { 95 multiplier = 6; 96 } 97 animLimit = $liLength/multiplier-1; 98 $li.outerWidth($cWidth/multiplier); //Set panel widths 99 } 100 101 102 function buildCarousel() { //Build the Carousel 103 sizeCarousel(); 104 } 105 106 function posCarousel() { //Animate Carousel. CSS transitions used for the actual animation. 107 var pos = -current * $cWidth; 108 $cList.css("left",pos); 109 } 110 111 $prev.on('click', function(e){ //Previous Button Click 112 e.preventDefault(); 113 if(current>0) { 114 current--; 115 } 116 posCarousel(); 117 118 }); 119 $next.on('click', function(e){ //Next Button Click 120 e.preventDefault(); 121 if(current<animLimit) { 122 current++; 123 } 124 posCarousel(); 125 }); 126 })(this); 127 128 $(".modul_buyuk_urun, .modul_kucuk_urun").addClass("urun"); 129}); 130 131PM.on("before.init.platinmarket", function(){ 132 133 $(".alt_tutucu").css("display","block").insertBefore("#PM_alt"); 134 135 PM.OnPage("urun_detay",function(){ 136 $("#PM_urun_detayi div.urun_onerileri p.baslik").html("ÖNERÝLEN ÜRÜNLER") 137 $("#PM_urun_detayi div.urun_detay_orta").prepend('<div id="orta_hizala"></div>'); 138 139 $.each($("#PM_urun_detayi div.urun_onerileri div.icerik div.urun div.urun_kdvdahil_fiyati span"), function(index) { 140 var KDVsiz = $(this).html().replace('KDV Dahil ', ''); 141 var KDVsiz = (KDVsiz).replace(' TL', ''); 142 $(this).text( KDVsiz ); 143 }); 144 145 $("h1.urun_ismi").insertAfter("#PM_urun_detayi div.urun_detay_sol"); 146 $(".urun_detay_sag").insertAfter("h1.urun_ismi"); 147 $(".urun_ekstra_butonlar").insertAfter(".urun_detay_orta"); 148 if ($(".urun_resmi_kucuk").length != 0) $(".urun_resmi_kucuk").slideByMouse({scanOffset: 50}); 149 150 }); 151});
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.