1//FANCYBOX title 2/*kp*/ 3function formatFancyboxTitle(title, currentArray, currentIndex, currentOpts) { 4 return '<div>' + 5 (title && title.length ? '<b style=\"float:left;\">' + title.substr(0,title.indexOf('--')-1) + '</b><br /><span style=\"float:left;\">' + title.substr(title.indexOf('--')+2) + '</span>' : '' ) 6 + ' (' + (currentIndex + 1) + '/' + currentArray.length + ' kép)</div>'; 7} 8 9 10$(document).ready(function(){ 11 12 13 // csúszó fÅmenü - nem jó Ãgy 14 /* 15 $("nav .bottom .first").mouseenter(function () { 16 $("nav .bottom .vitMenu").show("slide", { direction: "left" }, 1000); 17 }); 18 $("nav .bottom .vitMenu").mouseleave(function () { 19 $("nav .bottom .vitMenu").hide("slide", { direction: "left" }, 1000); 20 }); 21 */ 22 23 //CALENDAR 24 $(".calendarBox td.active a").hover( 25 function() { 26 i = $(this).parents("td:eq(0)").prevAll(".active").andSelf().length; //egy tr-ben hanyadik az aktiv cella 27 j = $(this).parents("tr:eq(0)").prevAll("tr").find(".active").length; //elozo tr-ekben aktiv cellak szama 28 k = i+j-1; 29 30 $(".calendarLinks div").hide(); 31 $(".calendarLinks").slideDown().find("div:eq("+ k +")").show(); 32 }, 33 function() { } 34 ); 35 36 37 //custom input 38 $(".voteBox input").uniform(); 39 40 41 //facebook 42 //$(".facebookContainer").html('<iframe src="http://www.facebook.com/plugins/likebox.php?href=http%3A%2F%2Fwww.facebook.com%2Fvitorlasmagazin&width=648&connections=11&stream=false&header=true&height=230" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width: 648px; height: 230px; margin: 0 auto; display: block; background-color: white;" allowTransparency="false"></iframe>'); 43 44 45 //input focus 46 $("input").focus(function(){ 47 t = $(this); 48 if( t.val() == "KeresÅ" ) { t.val(""); } 49 }).blur(function(){ 50 t = $(this); 51 var eredetiErtek = t[0].defaultValue; 52 if (t.val() == "" && eredetiErtek == "KeresÅ") {t.val(eredetiErtek);} 53 }); 54 55 //fancybox 56 $("a[rel=gallery], a.fancybox").fancybox({ /*kp*/ 57 'titleShow' : true, 58 'transitionIn' : 'elastic', 59 'transitionOut' : 'elastic', 60 'easingIn' : 'easeOutBack', 61 'easingOut' : 'easeInBack', 62// 'titlePosition' : 'over' 63 'titlePosition' : 'inside', 64 'titleFormat' : formatFancyboxTitle 65 }); 66 67 68 //carousel 69 $(".galleryContainer").jcarousel(); 70 71 72 //main page gallery 73 $(".galleryBox .galleryRight img").hover( 74 function() { 75 $(".galleryBox .item").hide(); 76 77 i = $(this).parent("a").prevAll("a").length; 78 $(".galleryBox .item:eq(" + i + ")").show(); 79 }, 80 function() { } 81 ); 82 83 //HIR LAPOZO 84 //config variables 85 var autoscroll_on = true; 86 var autoscroll_speed = 7000; //speed in millisec 87 88 89 //script variables 90 kepek_szama = $(".newsSlider img").length-1; 91 aktualis_szam = 0; 92 93 94 //removes all active class 95 function reset_active_class () { 96 $(".newsSlider .sliderControl").find(".active").removeClass("active"); 97 $(".newsSlider .textContainer .item").hide(); 98 $(".newsSlider img").hide(); 99 } 100 101 102 /******AUTO SCROLL START******/ 103 if (autoscroll_on && kepek_szama > 1) { 104 var timer; 105 106 107 //autoscroll function 108 function autoscroll () { 109 timer = setInterval(next, autoscroll_speed); 110 111 return timer; 112 } 113 114 115 //scrolls items right 116 function next () { 117 next_szam = aktualis_szam+1; 118 119 reset_active_class (); 120 121 //when last item displayed autoscroll starts over 122 if (aktualis_szam == kepek_szama) { 123 $(".newsSlider img:eq(0)").fadeIn(3000); 124 $(".sliderControl a:eq(0)").addClass("active"); 125 $(".newsSlider .textContainer .item:eq(0)").fadeIn(); 126 127 aktualis_szam = 0; 128 } 129 130 else { 131 $(".newsSlider img:eq(" + next_szam + ")").fadeIn(3000); 132 $(".sliderControl a:eq(" + next_szam + ")").addClass("active"); 133 $(".newsSlider .textContainer .item:eq(" + next_szam + ")").fadeIn(3000); 134 135 aktualis_szam = next_szam; 136 } 137 } 138 139 140 //hover function, stops autoscroll on mouseover / starts autoscroll on mouseout 141 $(".newsSlider").hover( 142 function() {clearInterval(timer);}, 143 function() {autoscroll ();} 144 ); 145 146 147 autoscroll (); 148 } 149 /******AUTO SCROLL END******/ 150 151 152 //bind click function to page buttons 153 $(".sliderControl a").click(function(){ 154 k = $(this).prevAll().length; 155 aktualis_szam = k; 156 157 reset_active_class (); 158 159 $(".newsSlider img:eq(" + k + ")").fadeIn(3000); 160 $(".sliderControl a:eq(" + k + ")").addClass("active"); 161 $(".newsSlider .textContainer .item:eq(" + k + ")").fadeIn(3000); 162 163 164 return false;
165 }); 166 167});
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.