function goToSlidediv164183(number) {number=number-1;$('#div164183').carousel(number);}$( document ).ready(function(){ $('#div164183').on('slide.bs.carousel', function (e) { var $animatingElems = $(e.relatedTarget).find("[data-animation *= 'animated']");doAnimations($animatingElems); });});$( document ).ready(function() {$('#div164183').carousel({interval: 3000 })}); $(document).ready(function() { $(window).load(function () { var owldiv164183 = $('#div164183 .owl-carousel'); if($('[sliderprev]').length>0) { sox=$('[sliderprev]').offset().left; soy=$('[sliderprev]').offset().top; //ogefark=parseInt($('#div164183').attr('ogefark')); //if(ogefark)soy=soy+ogefark; ssx=$('#div164183').offset().left; ssy=$('#div164183').offset().top; sox=sox-ssx; soy=soy-ssy; jQuery('[sliderprev]').appendTo('#div164183'); console.log(soy); $('[sliderprev]').css('top',soy); $('[sliderprev]').css('left',sox); $('#div164183 .carousel-control .icon-prev').remove(); $('#div164183 .owl-prev').remove(); $('[sliderprev] i').css('background','unset'); $('[sliderprev]').click(function() { $('#div164183.carousel').carousel('prev'); owldiv164183.trigger('prev.owl.carousel'); }); $('[sliderprev]').hide(); } if($('[slidernext]').length>0) { sox=$('[slidernext]').offset().left; soy=$('[slidernext]').offset().top; //ogefark=parseInt($('#div164183').attr('ogefark')); //if(ogefark)soy=soy+ogefark; ssx=$('#div164183').offset().left; ssy=$('#div164183').offset().top; sox=sox-ssx; soy=soy-ssy; jQuery('[slidernext]').appendTo('#div164183'); $('[slidernext]').css('top',soy); $('[slidernext]').css('left',sox); $('#div164183 .carousel-control .icon-next').remove(); $('#div164183 .owl-next').remove(); $('[slidernext] i').css('background','unset'); $('[slidernext]').click(function() { $('#div164183.carousel').carousel('next'); owldiv164183.trigger('next.owl.carousel'); }); $('[slidernext]').hide(); } $('#div164183').mouseleave(function(event) { $('[slidernext],[sliderprev]').fadeOut(); }); $('#div164183').mouseenter(function(event) { $('[slidernext],[sliderprev]').fadeIn(); }); }); $('#div164183').carousel({pause: 'none'}); //ekran kablama teks=''; if(!teks) wh = $(window).height(); if(teks) { var menuh=$('[data-wtype=menu]').eq(0).outerHeight(); wh = $(window).height()-menuh; } //console.log('teks='+teks); //console.log(wh); ogeh=$('#div164183').outerHeight(); oget=$('#div164183').offset().top; if(teks) oget=$('#div164183').position().top; silidertop=oget; //console.log('oget='+oget); sogety=ogeh+oget; ogefark=wh-(ogeh+oget); console.log('ogefark='+ogefark); if(ogefark>0) { $('#div164183').css('height',ogeh+ogefark); $('#div164183').attr('ogefark',ogefark); if(!teks) $('#ana').height($('#ana').outerHeight()+ogefark); if(!teks) { $(window).load(function () { $('#ana,#wbody,#tamsayfaoverlow').children().each(function(){ if(!$(this).attr('data-wtype'))return; if($(this).attr('id')=='div164183')return; oget=parseInt($(this).offset().top); ogeh=parseInt($(this).outerHeight()); if(oget+ogeh>=sogety) { oget=parseInt($(this).css('top')); $(this).css('top',oget+ogefark); } }); }); $(window).load(function () { $('#div164183 [data-wtype]').each(function(){ ogefrak=parseInt($('#div164183').attr('ogefark')); console.log('ogefark='+ogefark); if(ogefrak) { oget=parseInt($(this).css('top')); $(this).css('top',oget+parseInt(ogefark/2)); } }); }); }//end teks } //console.log('wh='+wh+' ogefark='+ogefark); var left=0; $('#div164183').css('left',left); $('#div164183').css('width','100%'); var left=0; $('#div164215helper').css('left',left); $('#div164215helper').css('width','100%'); atanacakitem='#div164183item3'; if($(atanacakitem).length>0) jQuery('#div164184').appendTo('#div164183item3'); else { atanacakitem=$('#div164183 [data-snumber="3"]').attr('id'); if($('#'+atanacakitem).length>0) { jQuery('#div164184').appendTo('#'+atanacakitem); //console.log(atanacakitem); } } $('#div164184').removeClass('wow'); $('#div164184').attr('data-animation','animated fadeInDown'); var anadiv='#div164183'; if($(anadiv).offset()) { if($(anadiv).offset().left>0) ux=parseInt($('#ustkisim').offset().left)+84-parseInt($(anadiv).offset().left); else { if($('#ustkisim').outerWidth()>480 ) { ux=parseInt($('#ana').offset().left)+84; $('#div164184').css('left',ux); } } if($('#div164184').attr('wdshow') && $('#ustkisim').outerWidth()>480) $('#div164184').show(); if($('#div164184').attr('wmshow') && $('#ustkisim').outerWidth()<480) $('#div164184').show(); } atanacakitem='#div164183item3'; if($(atanacakitem).length>0) jQuery('#div164199').appendTo('#div164183item3'); else { atanacakitem=$('#div164183 [data-snumber="3"]').attr('id'); if($('#'+atanacakitem).length>0) { jQuery('#div164199').appendTo('#'+atanacakitem); //console.log(atanacakitem); } } $('#div164199').removeClass('wow'); $('#div164199').attr('data-animation','animated fadeInUp'); var anadiv='#div164183'; if($(anadiv).offset()) { if($(anadiv).offset().left>0) ux=parseInt($('#ustkisim').offset().left)+84-parseInt($(anadiv).offset().left); else { if($('#ustkisim').outerWidth()>480 ) { ux=parseInt($('#ana').offset().left)+84; $('#div164199').css('left',ux); } } if($('#div164199').attr('wdshow') && $('#ustkisim').outerWidth()>480) $('#div164199').show(); if($('#div164199').attr('wmshow') && $('#ustkisim').outerWidth()<480) $('#div164199').show(); } atanacakitem='#div164183item4'; if($(atanacakitem).length>0) jQuery('#div164201').appendTo('#div164183item4'); else { atanacakitem=$('#div164183 [data-snumber="4"]').attr('id'); if($('#'+atanacakitem).length>0) { jQuery('#div164201').appendTo('#'+atanacakitem); //console.log(atanacakitem); } } $('#div164201').removeClass('wow'); $('#div164201').attr('data-animation','animated fadeInDown'); var anadiv='#div164183'; if($(anadiv).offset()) { if($(anadiv).offset().left>0) ux=parseInt($('#ustkisim').offset().left)+104-parseInt($(anadiv).offset().left); else { if($('#ustkisim').outerWidth()>480 ) { ux=parseInt($('#ana').offset().left)+104; $('#div164201').css('left',ux); } } if($('#div164201').attr('wdshow') && $('#ustkisim').outerWidth()>480) $('#div164201').show(); if($('#div164201').attr('wmshow') && $('#ustkisim').outerWidth()<480) $('#div164201').show(); } $('#div164216 .mitem').mouseenter(function(event) { $(this).find('[wsl=listeicon]').addClass('animated tada'); $(this).find('[wsl=listeicon]').removeClass(''); }); $('#div164216 .mitem').mouseleave(function(event) { $(this).find('[wsl=listeicon]').removeClass('animated tada'); $(this).find('[wsl=listeicon]').addClass('animated '); }); $('#div164216 .mitem *[wsl=listeicon]').on('webkitAnimationEnd mozAnimationEnd MSAnimationEnd oanimationend animationend', function(event) { $(this).removeClass('animated tada'); }); $('#div164216 .mitem *[wsl=listebaslik]').each(function(e){ text=$(this).text(); text=text.trim(); datacountek=''; if(text.search('\\+')>=0) { datacountek='\+'; text=text.replace('\+',''); } if(parseInt(text)>=0) { $(this).text('1'); $(this).attr('data-count',text); } if(datacountek) $(this).attr('data-count-ek',datacountek); }); listecounter(); $('#div164218 .mitem *[wsl=listeimage]').removeClass('webzoom'); $('#div164218 .mitem').mouseenter(function(event) { $('.webzoom1').removeClass('webzoom1'); $(this).find('[ltype=image]').css('overflow','hidden'); $(this).find('[wsl=listeimage]').addClass('webzoom1'); $(this).css('cursor','pointer'); }); $('#div164218 .mitem').mouseleave(function(event) { $(this).find('[wsl=listeimage]').removeClass('webzoom1'); $(this).find('[wsl=listeimage]').addClass('webzoom1out'); }); $('#div164218 .mitem *[wsl=listeimage]').addClass('wow animated webzoom'); $('#div164218 .mitem').mouseenter(function(event) { $(this).find('[wsl=listeaciklama]').addClass('animated fadeInDown'); $(this).find('[wsl=listeaciklama]').removeClass(''); }); $('#div164218 .mitem').mouseleave(function(event) { $(this).find('[wsl=listeaciklama]').removeClass('animated fadeInDown'); $(this).find('[wsl=listeaciklama]').addClass('animated '); }); $('#div164218 .mitem *[wsl=listeaciklama]').on('webkitAnimationEnd mozAnimationEnd MSAnimationEnd oanimationend animationend', function(event) { $(this).removeClass('animated fadeInDown'); }); h='
'+ '
'+ '
'+ ''+ '
'+ '
'+ '
'+ '
'; $(h).appendTo('body'); x=0; y=0; xx=0; yy=0; celements = []; $('[wkendi=1]').each(function(i) { $(this).attr('wkendix',$(this).css('left')); $(this).attr('wkendiy',$(this).css('top')); $(this).attr('wkendiyer',$(this).parent().attr('id')); }); $('[wpopup=1]').each(function(i) { celements.push({ id:$(this).attr('id'), x: parseInt($(this).attr('x')), y:parseInt($(this).attr('y')), w:parseInt($(this).outerWidth()), h:parseInt($(this).outerHeight()) }); }); celements.sort(function(a,b) { if (a.y < b.y) return 1; if (a.y > b.y) return -1; if(a.y==b.y) { if (a.x < b.x) return 1; if (a.x > b.x) return -1; if (a.x == b.x) { if (a.h < b.h) return -1; if (a.h > b.h) return 1; if (a.h == b.h) { if(a.wb.w)return 1; } } } return 0; }); pid=''; pidx=0; pidy=0; for (var i = 0 ; i < celements.length; i++){ zid='#'+celements[i].id; //console.log(zid); if(!x)x=parseInt($(zid).css('left')); if(!y)y=parseInt($(zid).css('top')); if(parseInt($(zid).css('left'))xx)xx=parseInt($(zid).css('left'))+$(zid).outerWidth(); if(parseInt($(zid).css('top'))+$(zid).outerHeight()>yy)yy=parseInt($(zid).css('top'))+$(zid).outerHeight(); $(zid).appendTo('.hicerik'); if(i==0) { pidx=parseInt($(zid).css('left')); pidy=parseInt($(zid).css('top')); pid=zid; $(zid).css('left',0); $(zid).css('top',0); } else { zidx=parseInt($(zid).css('left')); zidy=parseInt($(zid).css('top')); $(zid).css('left',zidx-pidx); $(zid).css('top',zidy-pidy); } $(zid).show(); } //console.log(xx-x); //console.log(yy-y); pw=xx-x+50; ph=yy-y+50; $( "#wpopup" ).dialog({width:pw,height:ph,show: 'fade',modal: true,autoOpen: false,draggable: false}).parent().draggable({handle: ".hust"}); $('#wpopup').dialog({ open: function (event, ui) { $('.ui-widget-overlay').css({ opacity: 0.4, filter: 'Alpha(Opacity=100)', backgroundColor: 'black' }); }, close: function (event, ui) { $('[wkendi]').each(function(i) { $(this).appendTo('#'+$(this).attr('wkendiyer')); $(this).css('top',$(this).attr('wkendiy')); $(this).css('left',$(this).attr('wkendix')); }); }, modal: true }); windoww=$( window ).width(); if(windoww>360 && windoww<481) { windoww=windoww-360; windoww=parseInt(windoww/2); $('#wpopup' ).css('left',windoww); } $('#wpopup' ).dialog('open'); });