1/* 2 3Template: The Corps - Responsive Multi-purpose HTML5 Template 4Author: potenzaglobalsolutions.com 5Version: 2.1 6Design and Developed by: potenzaglobalsolutions.com 7 8NOTE: 9 10*/ 11 12 13/*================================================ 14[ Table of contents ] 15================================================ 16 17:: Preloader 18:: Contact popup 19:: Search 20:: Login 21:: Mega menu 22:: Owl carousel 23:: Tooltip 24:: Our skills 25:: Socialstream 26:: Side menu 27:: Isotope 28:: Back to top 29:: Accordion 30:: Sliderbar menu 31:: Audio video 32:: Tabs 33:: Rain 34:: Skills 2 35:: Countdown 36:: Ripple 37:: Placeholder 38:: wow 39:: Raindrops 40:: Parallax banner 41:: Mobile slider 42 43====================================== 44[ End table content ] 45======================================*/ 46 47 48/************************* 49 preloader 50*************************/ 51 52$(window).load(function() { 53 54 // csrf koruma için token deÄeri atanıyor 55 $.ajaxSetup({ 56 beforeSend: function(xhr, settings){ 57 xhr.setRequestHeader('token',token); 58 } 59 }); 60 61 //preloader 62 $("#load").fadeOut(); 63 $('#preloader').delay(0).fadeOut('slow'); 64 65 // youtube header menü scroll 66 $("#youtubeheadercontainter").mCustomScrollbar({theme:"minimal"}); 67 68 // yapım iç sayfa slider 69 $('.ic-sayfa-slide-owl').owlCarousel({ 70 loop:false, 71 margin:10, 72 autoplay:true, 73 autoplayTimeout:2000, 74 autoplayHoverPause:true, 75 nav:true, 76 dots:false, 77 responsive:{ 78 0:{ 79 items:1 80 } 81 }, 82 navText: ['<img src="/tema/assets/sonraki.png">','<img src="/tema/assets/onceki.png">'] 83 }); 84 85 // anasayfa slide altı 86 $('.anasayfa-slide-alti-owl').owlCarousel({ 87 loop:false, 88 margin:10, 89 autoplay:false, 90 autoplayTimeout:2000, 91 autoplayHoverPause:true, 92 nav:false, 93 responsive:{ 94 0:{ 95 items:1 96 } 97 }, 98 navText: ['<div class="owl-prev" style="">'+lang54+'</div>','<div class="owl-next" style="">'+lang55+'</div>'] 99 }); 100 101 // anasayfa yakında 102 $('.anasayfa-yakinda-owl').owlCarousel({ 103 loop:false, 104 margin:10, 105 autoplay:false, 106 autoplayTimeout:2000, 107 autoplayHoverPause:true, 108 nav:false, 109 responsive:{ 110 0:{ 111 items:1 112 }, 113 600:{ 114 items:4 115 }, 116 1000:{ 117 items:5 118 } 119 }, 120 navText: ['<div class="owl-prev" style="">'+lang54+'</div>','<div class="owl-next" style="">'+lang55+'</div>'] 121 }); 122 123 // anasayfa teaser popup gösterim 124 /* 125 $('.popup-youtube').magnificPopup({ 126 127 type: 'iframe', 128 iframe: { 129 markup: '<div class="mfp-iframe-scaler your-special-css-class">'+ 130 '<div class="mfp-close"></div>'+ 131 '<iframe class="mfp-iframe" frameborder="0" allowfullscreen></iframe>'+ 132 '</div>' 133 } 134 135 }); 136 */ 137 138 // colorbox responsive 139 /* 140 $.colorbox.settings.onLoad = function() { 141 colorboxResize(); 142 } 143 144 //Customize colorbox dimensions 145 var colorboxResize = function(resize) { 146 var width = "90%"; 147 var height = "auto"; 148 149 if($(window).width() > 738) { width = "738" } 150 if($(window).height() > 520) { height = "520" } 151 152 $.colorbox.settings.height = height; 153 $.colorbox.settings.width = width; 154 155 //if window is resized while lightbox open 156 if(resize){ 157 var colorbox_durum = $("#colorbox").css("display"); 158 159 // colorbox açık ise 160 if(colorbox_durum == "block"){ 161 var colorbox_ic_iframe = $(".cboxIframe").contents().find("#video").height(); 162 var height = colorbox_ic_iframe + 28; 163 } 164 165 $.colorbox.resize({ 166 'height': height, 167 'width': width 168 }); 169 } 170 } 171 172 // ekran boyutu deÄiÅtiÄinde 173 $(window).resize(function() { 174 colorboxResize(true); 175 }); 176 */ 177 178 // colorbox responsive 179 180 // oyuncu detayı popup 181 $('.oyuncu-detayi').magnificPopup({ 182 type: 'ajax', 183 mainClass: 'mfp-fade' 184 }); 185 186 // yapım video. sayfa yüklendikten 1 sn sonra otomatik larak video yükleniyor. 187 if($("#videolist").length > 0){ 188 var ilk_video = $("#videolist").val(); 189 190 setTimeout(function(){ 191 yapimvideo(ilk_video); 192 },1000); 193 } 194 195 // yapım teaser videosu varsa sayfa yüklendikten 1 sn sonra otomatik olarak videoyu yükle. 196 if($("#teasers").length > 0){ 197 198 $("#teaser_container").html('<div class="yukleniyor"></div>'); 199 200 setTimeout(function(){ 201 $("#teaser_container").html(teaser_iframe_code); 202 },1000); 203 } 204 205 // yapım posterleri varsa 206 if($("#posters").length > 0){ 207 $("#poster_container").html('<div class="yukleniyor"></div>'); 208 setTimeout(function(){ 209 yapimposterler(icerik_id); 210 },3000); 211 } 212
213 // yapım galeri 214 if($("#galerilist").length > 0){ 215 $("#galeri_container").html('<div class="yukleniyor"></div>'); 216 217 var ilk_galeri = $("#galerilist").val(); 218 219 setTimeout(function(){ 220 yapimgaleri(ilk_galeri); 221 },3000); 222 } 223 224 // yapım sayfasında url sonunda sayfadaki tabların ismi varsa 225 if(window.location.hash !== ""){ 226 227 if($(window.location.hash + "_tab").length > 0){ 228 scrolling(window.location.hash.replace("#","")); 229 } 230 231 } 232 233 // jenerik müziÄi 234 if($(".equalizer-btn").length > 0){ 235 $(".equalizer-btn").click(function() { 236 if ($("#jenerikmuzik")[0].paused == false) { 237 $("#jenerikmuzik")[0].pause(); 238 239 // $('.equalizer-btn').removeClass("muzikstop"); 240 // $('.equalizer-btn').addClass("muzikplay"); 241 } else { 242 $("#jenerikmuzik")[0].play(); 243 // $('.equalizer-btn').removeClass("muzikplay"); 244 // $('.equalizer-btn').addClass("muzikstop"); 245 } 246 247 $("#bares-container").children().toggleClass('playEqualizer'); 248 }); 249 250 if($(window).width() < 1000) { 251 $("audio").remove(); 252 // $(".muzikstop").remove(); 253 } 254 } 255 256 // jenerik müziÄi equalizer 257 /*
258 $( ".equalizer-btn" ).click(function() { 259 $('#bares-container').children().toggleClass('playEqualizer'); 260 // $('.equalizer-btn').toggleClass('muzikon'); 261 }); 262 */ 263 // scroll en aÅaÄıya inince sosyal medyayı yükle 264 $(window).scroll(function() { 265 266 if($(window).width() >= 1000) { 267 268 // yapım sayfası için 269 if($("#socialmedia").length > 0 && $("#sosyal_medya_container").length == 1){ 270 if($(window).scrollTop() > 2500) { 271 sosyalmedyagetir(icerik_id); 272 } 273 } 274 275 } 276 277 }); 278 279 // ana sayfa için sosyal medya 280 if($(window).width() >= 1000) { 281 if($("#sosyal_medya_home").length > 0 && $("#sosyal_medya_home").length == 1){ 282 $("#sosyal_medya_home").html('<div class="yukleniyor"></div>'); 283 homesosyalmedyagetir(); 284 } 285 } 286 287}); 288 289 290function seskapat(){ 291 alert("ok"); 292} 293 294function colorboxOpen(url,colorboxWidth,colorboxHeight,title){ 295 296 if($(window).width() > 768) { 297 $.colorbox({ 298 href:url, 299 iframe:true, 300 fixed:true, 301 width:colorboxWidth, 302 height:colorboxHeight, 303 open:true, 304 title:title 305 }); 306 }else{ 307 window.location.href = url+"&youtube=1"; 308 } 309 310} 311 312/************************* 313 typer 314*************************/ 315 316if($(".image-holder-2-bg").length != 0) { 317 var win = $(window), 318 foo = $('#typer'); 319 foo.typer(['<h2>Ayyapım</h2>', '<h2>Ayyapım</h2>' ]); 320 321 win.resize(function(){ 322 var fontSize = Math.max(Math.min(win.width() / (1 * 10), parseFloat(Number.POSITIVE_INFINITY)), parseFloat(Number.NEGATIVE_INFINITY)); 323 foo.css({ 324 fontSize: fontSize * .3 + 'px' 325 }); 326 }).resize(); 327 } 328 329 330/************************* 331 contact popup 332*************************/ 333 334 $('#contact-btn').click(function() { 335 $(this).next().toggle('slow'); 336 return false; 337 }); 338 339 340 341/************************* 342 mega menu 343*************************/ 344 345 jQuery(document).ready(function () { 346 jQuery('#menu-1').megaMenu({ 347 348 // MOBILE MODE SETTINGS 349 mobile_settings : { 350 collapse : true, // collapse the menu on click. options (true) or (false) 351 sibling : true, // hide the others showing drop downs when click on current drop down. options (true) or (false) 352 scrollBar : true, // enable the scroll bar. options (true) or (false) 353 scrollBar_height : 400, // scroll bar height in px value. this option works if the scrollBar option true. 354 top_fixed : false, // fixed menu top of the screen. options (true) or (false) 355 sticky_header : false, // menu fixed on top when scroll down down. options (true) or (false) 356 sticky_header_height: 200 // sticky header height top of the screen. activate sticky header when meet the height. option change the height in px value. 357 } 358 }); 359 }); 360// menu-2 361 jQuery(document).ready(function () { 362 jQuery('#menu-2').megaMenu({ 363 sticky_header : true, // menu fixed on top when scroll down down. options (true) or (false) 364 sticky_header_height: 1000, // sticky header height top of the screen. activate sticky header when meet the height. option change the height in px value. 365 // MOBILE MODE SETTINGS 366 mobile_settings : { 367 collapse : true // collapse the menu on click. options (true) or (false) 368 } 369 }); 370 }); 371 // vertical-left 372 jQuery(document).ready(function () { 373 jQuery('#menu-3').megaMenu({ 374 menu_position:'vertical-left', 375 effect : 'expand-left' 376 }); 377 }); 378 379 // vertical-left 380 jQuery(document).ready(function () { 381 jQuery('#menu-4').megaMenu({ 382 menu_position:'vertical-right', 383 effect : 'expand-right' 384 }); 385 }); 386 387 388/************************* 389 owl-carousel 390*************************/ 391 392$('.owl-carousel-2').owlCarousel({ 393 items:1, 394 loop:true, 395 autoplay:true, 396 autoplayTimeout:2000, 397 autoplayHoverPause:true, 398 dots:false, 399 nav:true, 400 navText:[ 401 "<i class='fa fa-long-arrow-left fa-2x'></i>", 402 "<i class='fa fa-long-arrow-right fa-2x'></i>" 403 ] 404 405 }); 406 407$('.owl-carousel-3').owlCarousel({ 408 items:3, 409 responsive:{ 410 0:{ 411 items:1 412 }, 413 600:{ 414 items:2 415 }, 416 1000:{ 417 items:3 418 } 419 }, 420 margin:20, 421 loop:true, 422 autoplay:true, 423 autoplayTimeout:2000, 424 autoplayHoverPause:true, 425 dots:false, 426 nav:true, 427 navText:[ 428 "<i class='fa fa-angle-left fa-2x'></i>", 429 "<i class='fa fa-angle-right fa-2x'></i>" 430 ] 431 }); 432 433 $('.owl-carousel-4').owlCarousel({ 434 items:1, 435 loop:true, 436 autoplay:true, 437 autoplayTimeout:3000, 438 autoplayHoverPause:true, 439 dots:false, 440 smartSpeed:1000, 441 nav:true, 442 navText:[ 443 "<i class='fa fa-long-arrow-right fa-2x'></i>", 444 "<i class='fa fa-long-arrow-left fa-2x'></i>" 445 ] 446 }); 447 448 $('.owl-carousel-5').owlCarousel({ 449 items:5, 450 loop:true, 451 autoplay:true, 452 autoplayTimeout:2500, 453 smartSpeed:1000, 454 autoplayHoverPause:true, 455 dots:false, 456 nav:false, 457 responsive:{ 458 0:{ 459 items:1 460 }, 461 600:{ 462 items:3 463 }, 464 1000:{ 465 items:5 466 } 467 } 468 }); 469 470 471 $('.owl-carousel-6').owlCarousel({ 472 items:1, 473 loop:true, 474 autoplay:true, 475 autoplayTimeout:2000, 476 autoplayHoverPause:true, 477 dots:false, 478 autoHeight:true, 479 nav:true, 480 navText:[ 481 "<i class='fa fa-long-arrow-left fa-2x'></i>", 482 "<i class='fa fa-long-arrow-right fa-2x'></i>" 483 ] 484 }); 485 486 $('.owl-carousel-7').owlCarousel({ 487 items:4, 488 responsive:{ 489 0:{ 490 items:1 491 }, 492 600:{ 493 items:2 494 }, 495 1000:{ 496 items:4 497 } 498 }, 499 loop:true, 500 autoplay:true, 501 autoplayTimeout:2000, 502 autoplayHoverPause:true, 503 dots:false, 504 autoHeight:true, 505 nav:true, 506 navText:[ 507 "<i class='fa fa-angle-right fa-2x'></i>", 508 "<i class='fa fa-angle-left fa-2x'></i>" 509 ] 510 }); 511 512 513 $('.owl-carousel-8').owlCarousel({ 514 items:5, 515 responsive:{ 516 0:{ 517 items:1 518 }, 519 600:{ 520 items:2 521 }, 522 1000:{ 523 items:5 524 } 525 }, 526 loop:true, 527 autoplay:true, 528 autoplayTimeout:2000, 529 autoplayHoverPause:true, 530 dots:false, 531 autoHeight:true, 532 nav:true, 533 navText:[ 534 "<i class='fa fa-long-arrow-right fa-2x'></i>", 535 "<i class='fa fa-long-arrow-left fa-2x'></i>" 536 ] 537 }); 538 539 540 $('.owl-carousel-9').owlCarousel({ 541 items:1, 542 loop:true, 543 autoplay:true, 544 autoplayTimeout:3000, 545 autoplayHoverPause:true, 546 smartSpeed:1000, 547 dots:false, 548 autoHeight:true, 549 nav:true, 550 navText:[ 551 "<i class='fa fa-long-arrow-right fa-2x'></i>", 552 "<i class='fa fa-long-arrow-left fa-2x'></i>" 553 ] 554 }); 555 556 $('.owl-carousel-10').owlCarousel({ 557 items:4, 558 responsive:{ 559 0:{ 560 items:1 561 }, 562 600:{ 563 items:2 564 }, 565 1000:{ 566 items:4 567 } 568 }, 569 dots:false, 570 loop:true, 571 autoplay:true, 572 autoplayTimeout:2500, 573 smartSpeed:1000, 574 autoplayHoverPause:true 575 }); 576 577 578 $('.owl-carousel-11').owlCarousel({ 579 items:4, 580 margin:25, 581 responsive:{ 582 0:{ 583 items:1 584 }, 585 600:{ 586 items:2 587 }, 588 1000:{ 589 items:4 590 } 591 }, 592 loop:true, 593 autoplay:true, 594 autoplayTimeout:2500, 595 smartSpeed:1000, 596 autoplayHoverPause:true, 597 dots:false, 598 autoHeight:true, 599 nav:true, 600 navText:[ 601 "<i class='fa fa-angle-right fa-2x'></i>", 602 "<i class='fa fa-angle-left fa-2x'></i>" 603 ] 604 }); 605 606 $('.owl-carousel-12').owlCarousel({ 607 items:1, 608 loop:true, 609 autoplay:true, 610 autoplayTimeout:2500, 611 smartSpeed:1000, 612 autoplayHoverPause:true, 613 dots:true, 614 autoHeight:true, 615 nav:false 616 }); 617 618 $('.owl-carousel-13').owlCarousel({ 619 items:3, 620 responsive:{ 621 0:{ 622 items:1 623 }, 624 600:{ 625 items:2 626 }, 627 1000:{ 628 items:3 629 } 630 }, 631 autoplay:true, 632 autoplayTimeout:2000, 633 autoplayHoverPause:true, 634 dots:false, 635 autoHeight:true, 636 nav:true, 637 navText:[ 638 "<i class='fa fa-angle-right fa-2x'></i>", 639 "<i class='fa fa-angle-left fa-2x'></i>" 640 ] 641 }); 642$('.owl-carousel-14').owlCarousel({ 643 items:1, 644 loop:true, 645 autoplay:true, 646 autoplayTimeout:2000, 647 autoplayHoverPause:true, 648 dots:false, 649 autoHeight:true, 650 nav:false 651 }); 652 653$('.owl-carousel-16').owlCarousel({ 654 loop:true, 655 margin:10, 656 autoplay:true, 657 autoplayTimeout:1000, 658 autoplayHoverPause:true, 659 nav:false, 660 responsive:{ 661 0:{ 662 items:1 663 }, 664 600:{ 665 items:2 666 }, 667 1000:{ 668 items:3 669 } 670 } 671}) 672 673$('.owl-carousel-17').owlCarousel({ 674 loop:true, 675 margin:10, 676 autoplay:true, 677 autoplayTimeout:1500, 678 autoplayHoverPause:true, 679 nav:true, 680 items:1 681}) 682 683 684$('.owl-carousel-18').owlCarousel({ 685 items:1, 686 loop:true, 687 margin:10, 688 autoHeight:true, 689 autoplay:true, 690 autoplayTimeout:1500, 691 autoplayHoverPause:true, 692 nav:false 693}); 694 695 $('.owl-carousel-19').owlCarousel({ 696 items:1, 697 loop:true, 698 margin:10, 699 autoHeight:true, 700 autoplay:true, 701 autoplayTimeout:1500, 702 smartSpeed:2000, 703 autoplayHoverPause:true, 704 nav:false, 705 dots:true 706}); 707 708 $('.owl-carousel-20').owlCarousel({ 709 items:1, 710 loop:true, 711 margin:10, 712 autoHeight:true, 713 autoplay:true, 714 autoplayTimeout:1500, 715 smartSpeed:2000, 716 autoplayHoverPause:true, 717 nav:false, 718 dots:true 719}); 720 721 722/************************* 723 tooltip 724*************************/ 725
726 $(document).ready(function(){ 727 $('[data-toggle="tooltip"]').tooltip({ 728 }); 729}); 730 731 732/************************* 733 counter 734*************************/ 735 736function count(options) { 737 var $this = $(this); 738 options = $.extend({}, options || {}, $this.data('countToOptions') || {}); 739 $this.countTo(options); 740 } 741 if($(".counter-main").length != 0) { 742 $(document).ready(function () { 743 $('.counter-main').appear(function() { 744 $('.timer').each(count) 745 }, { 746 offset: 500 747 }); 748 }); 749 } 750 751/************************* 752 our-skills 753*************************/ 754 755 if($(".our-skills").length != 0) { 756 $('.our-skills').appear(function() { 757 $('#bar-9').jqbar({ label: 'css3', barColor: '#00a9da', value: 50, orientation: 'v' }); 758 $('#bar-10').jqbar({ label: 'HTML5', barColor: '#00a9da', value: 90, orientation: 'v' }); 759 $('#bar-11').jqbar({ label: 'Wordpress', barColor: '#00a9da', value: 70, orientation: 'v' }); 760 $('#bar-12').jqbar({ label: 'SEO', barColor: '#00a9da', value: 50, orientation: 'v' }); 761 }, { 762 offset: 200 763 }); 764 } 765 766/************************* 767 socialstream 768*************************/ 769 770if($(".instagram-feed").length != 0) { 771 $('.instagram-feed').socialstream({ 772 socialnetwork: 'instagram', 773 limit: 6, 774 username: 'andreasmhansen' 775 }) 776} 777 778 if($(".flickr-feed").length != 0) { 779 $('.flickr-feed').socialstream({ 780 socialnetwork: 'flickr', 781 limit: 6, 782 username: 'andreasmhansen' 783 }) 784} 785 786if($(".pinterest-feed").length != 0) { 787 $('.pinterest-feed').socialstream({ 788 socialnetwork: 'pinterest', 789 limit: 6, 790 username: 'fromupnorth' 791 }) 792} 793 794if($(".deviant-feed").length != 0) { 795 $('.deviant-feed').socialstream({ 796 socialnetwork: 'deviantart', 797 limit: 6, 798 username: 'neo-innov' 799 }) 800} 801 802if($(".newsfeed-feed").length != 0) { 803 $('.newsfeed').socialstream({ 804 socialnetwork: 'newsfeed', 805 limit: 6, 806 username: 'http://feeds.feedburner.com/vectips' 807 }) 808} 809/************************* 810 side menu 811*************************/ 812 813$(document).ready(function(){ 814 $('#menu-icon').click(function(){ 815 $(this).toggleClass('open'); 816 $('#menu,#menu-toggle,#page-content,#menu-overlay').toggleClass('open'); 817 $('#menu li,.submenu-toggle').removeClass('open'); 818 }); 819}); 820 821 822/************************* 823 isotope 824*************************/ 825 826 if($(".isotope").length != 0) { 827 jQuery(window).on("load resize",function(e){ 828 var $container = $('.isotope'), 829 colWidth = function () { 830 var w = $container.width(), 831 columnNum = 1, 832 columnWidth = 0; 833return columnWidth; 834 }, 835 isotope = function () { 836 $container.isotope({ 837 resizable: true, 838 itemSelector: '.grid-item', 839 masonry: { 840 columnWidth: colWidth(), 841 gutterWidth: 10 842 } 843 }); 844 }; 845 isotope(); 846 // bind filter button click 847 $('.isotope-filters').on( 'click', 'button', function() { 848 var filterValue = $( this ).attr('data-filter'); 849 $container.isotope({ filter: filterValue }); 850 }); 851 // change active class on buttons 852 $('.isotope-filters').each( function( i, buttonGroup ) { 853 var $buttonGroup = $( buttonGroup ); 854 $buttonGroup.on( 'click', 'button', function() { 855 $buttonGroup.find('.active').removeClass('active'); 856 $( this ).addClass('active'); 857 }); 858 }); 859 // bind filter button click 860 $('.isotope-filters-3').on( 'click', 'button', function() { 861 var filterValue = $( this ).attr('data-filter'); 862 $container.isotope({ filter: filterValue }); 863 }); 864 // change active class on buttons 865 $('.isotope-filters-3').each( function( i, buttonGroup ) { 866 var $buttonGroup = $( buttonGroup ); 867 $buttonGroup.on( 'click', 'button', function() { 868 $buttonGroup.find('.active').removeClass('active'); 869 $( this ).addClass('active'); 870 }); 871 }); 872 873}); 874} 875 876// masonry 877 878 if($(".isotope-2").length != 0) { 879 jQuery(window).on("load resize",function(e){ 880 var $container = $('.masonry-main .isotope-2'), 881 colWidth = function () { 882 var w = $container.width(), 883 columnNum = 1, 884 columnWidth = 0; 885return columnWidth; 886 }, 887 isotope = function () { 888 $container.isotope({ 889 resizable: true, 890 itemSelector: '.masonry-main .masonry-item', 891 masonry: { 892 columnWidth: colWidth(), 893 gutterWidth: 10 894 } 895 }); 896 }; 897 isotope(); 898 // bind filter button click 899$('.masonry-main .isotope-filters-2').on( 'click', 'button', function() { 900 var filterValue = $( this ).attr('data-filter'); 901 $container.isotope({ filter: filterValue }); 902 }); 903 // change active class on buttons 904 $('.masonry-main .isotope-filters-2').each( function( i, buttonGroup ) { 905 var $buttonGroup = $( buttonGroup ); 906 $buttonGroup.on( 'click', 'button', function() { 907 $buttonGroup.find('.active').removeClass('active'); 908 $( this ).addClass('active'); 909 }); 910 }); 911 912}); 913} 914 915// packetry 916 if($(".isotope-3").length != 0) { 917 jQuery(window).on("load resize",function(e){ 918 var $container = $('.isotope-3'), 919 colWidth = function () { 920 var w = $container.width(), 921 columnNum = 1, 922 columnWidth = 0; 923 //Select what will be your porjects columns according to container widht 924 if (w > 1040) { columnNum = 6; } 925 else if (w > 850) { columnNum = 6; } 926 else if (w > 768) { columnNum = 6; } 927 else if (w > 480) { columnNum = 6; } 928 else if (w > 300) { columnNum = 1; } 929 columnWidth = Math.floor(w/columnNum); 930 //Default item width and height 931 $container.find('.item').each(function() { 932 var $item = $(this), 933 width = columnWidth, 934 height = columnWidth; 935 $item.css({ width: width, height: height }); 936 }); 937 //2x width item width and height 938 $container.find('.width2').each(function() { 939 var $item = $(this), 940 width = columnWidth*2, 941 height = columnWidth; 942 $item.css({ width: width, height: height }); 943 }); 944 //2x height item width and height 945 $container.find('.height2').each(function() { 946 var $item = $(this), 947 width = columnWidth, 948 height = columnWidth*2; 949 $item.css({ width: width, height: height }); 950 }); 951 //2x item width and height 952 $container.find('.width2.height2').each(function() { 953 var $item = $(this), 954 width = columnWidth*1, 955 height = columnWidth*2; 956 $item.css({ width: width, height: height }); 957 }); 958 return columnWidth; 959 }, 960 isotope = function () { 961 $container.isotope({ 962 resizable: true, 963 itemSelector: '.item', 964 masonry: { 965 columnWidth: colWidth(), 966 gutterWidth: 10 967 } 968 }); 969 }; 970 isotope(); 971 // bind filter button click 972 $('.isotope-filters').on( 'click', 'button', function() { 973 var filterValue = $( this ).attr('data-filter'); 974 $container.isotope({ filter: filterValue }); 975 }); 976 // change active class on buttons 977 $('.isotope-filters').each( function( i, buttonGroup ) { 978 var $buttonGroup = $( buttonGroup ); 979 $buttonGroup.on( 'click', 'button', function() { 980 $buttonGroup.find('.active').removeClass('active'); 981 $( this ).addClass('active'); 982 }); 983 }); 984 985}); 986} 987 988// portfolio scroll 989 if($(".snap-scrolling-example").length != 0) { 990 (function($){ 991 $(window).load(function(){ 992 /* 993 get snap amount programmatically or just set it directly (e.g. "273") 994 in this example, the snap amount is list item's (li) outer-width (width+margins) 995 */ 996 var amount=Math.max.apply(Math,$("#portfolio-scroll li").map(function(){return $(this).outerWidth(true);}).get()); 997 998 $("#portfolio-scroll").mCustomScrollbar({ 999 axis:"x", 1000 theme:"inset", 1001 advanced:{ 1002 autoExpandHorizontalScroll:true 1003 }, 1004 scrollButtons:{ 1005 enable:true, 1006 scrollType:"stepped" 1007 }, 1008 keyboard:{scrollType:"stepped"}, 1009 snapAmount:amount, 1010 mouseWheel:{scrollAmount:amount}, 1011 mouseWheel:{ enable: false } 1012 }); 1013 1014 }); 1015 })(jQuery); 1016 } 1017 1018 if($(".hover-direction").length != 0) { 1019 1020 $(window).load(function() { 1021 $('.portfolio-item').directionalHover(); 1022 }); 1023} 1024 1025// popup 1026 1027 /* 1028 $(document).ready(function() { 1029 $('.popup-youtube, .popup-vimeo, .popup-gmaps').magnificPopup({ 1030 disableOn: 700, 1031 type: 'iframe', 1032 mainClass: 'mfp-fade', 1033 removalDelay: 160, 1034 preloader: false, 1035
1036 fixedContentPos: false 1037 1038 }); 1039 }); 1040 1041 // youtube 1042 $.extend(true, $.magnificPopup.defaults, { 1043 iframe: { 1044 patterns: { 1045 youtube: { 1046 index: 'youtube.com/', 1047 id: 'v=', 1048 src: 'http://www.youtube.com/embed/%id%?autoplay=1' 1049 } 1050 } 1051 } 1052 }); 1053 1054 // vimeo 1055 $.extend(true, $.magnificPopup.defaults, { 1056 iframe: { 1057 patterns: { 1058 vimeo: { 1059 index: 'vimeo.com/', 1060 id: '/', 1061 src: 'http://player.vimeo.com/video/%id%?autoplay=1' 1062 }, 1063 } 1064 } 1065 }); 1066 */ 1067 1068 1069/************************* 1070 back-to-top 1071*************************/ 1072 1073 $(document).ready(function(){ 1074 $("#back-to-top").hide(); 1075 $(window).scroll(function(){ 1076 if ($(window).scrollTop()>100){ 1077 $("#back-to-top").fadeIn(1500); 1078 } 1079 else 1080 { 1081 $("#back-to-top").fadeOut(1500); 1082 } 1083 }); 1084 //back to top 1085 $("#back-to-top").click(function(){ 1086 $('body,html').animate({scrollTop:0},1000); 1087 return false; 1088 }); 1089 }); 1090 1091 1092 /************************* 1093 accordion 1094 *************************/ 1095 1096 var allPanels = $(".accordion > .accordion-content").hide(); 1097 allPanels.first().slideDown("easeOutExpo"); 1098 $(".accordion > .accordion-title > a").first().addClass("active"); 1099 $(".accordion > .accordion-title > a").click(function(){ 1100 var current = $(this).parent().next(".accordion-content"); 1101 $(".accordion > .accordion-title > a").removeClass("active"); 1102 $(this).addClass("active"); 1103 allPanels.not(current).slideUp("easeInExpo"); 1104 $(this).parent().next().slideDown("easeOutExpo"); 1105 return false; 1106 }); 1107 1108 var allToggles = $(".accordion-2 .accordion-2-content").hide(); 1109 $(".accordion-2 .accordion-2-title a").click(function(){ 1110 if ($(this).hasClass("active")) { 1111 $(this).parent().next().slideUp("easeOutExpo"); 1112 $(this).removeClass("active"); 1113 } 1114 else { 1115 var current = $(this).parent().next(".accordion-2-content"); 1116 $(this).addClass("active"); 1117 $(this).parent().next().slideDown("easeOutExpo"); 1118 } 1119 return false; 1120 }); 1121 1122/************************* 1123 sliderbar menu 1124*************************/ 1125 1126$('.widget-menu > ul > li > a').click(function() { 1127 var checkElement = $(this).next(); 1128 $('.widget-menu li').removeClass('active'); 1129 $(this).closest('li').addClass('active'); 1130 if((checkElement.is('ul')) && (checkElement.is(':visible'))) { 1131 $(this).closest('li').removeClass('active'); 1132 checkElement.slideUp('normal'); 1133 } 1134 if((checkElement.is('ul')) && (!checkElement.is(':visible'))) { 1135 $('.widget-menu ul ul:visible').slideUp('normal'); 1136 checkElement.slideDown('normal'); 1137 } 1138 if($(this).closest('li').find('ul').children().length == 0) { 1139 return true; 1140 } else { 1141 return false; 1142 } 1143}); 1144 1145/************************* 1146 audio video 1147*************************/ 1148 1149if($(".audio-video").length != 0) { 1150 $('audio,video').mediaelementplayer(); 1151} 1152 1153/************************* 1154 tabs 1155*************************/ 1156 1157 $(function(e) { 1158 $('.tabcontent').hide().filter(':first').show(); 1159 $('#tabs li[data-tabs]').on('click', function () { 1160 $('#tabs li[data-tabs]').removeClass('active'); 1161 $('.tabcontent').hide(); 1162 var tab = $(this).data('tabs'); 1163 $(this).addClass('active'); 1164 $('#' + tab).fadeIn().show(); 1165 }); 1166 $(".tabs li").click(function(){ 1167 var cur =$(".tabs li").index(this); 1168 var elm = $('.tabcontent:eq('+cur+')'); 1169 elm.addClass("pulse"); 1170 setTimeout(function() { 1171 elm.removeClass("pulse"); 1172 }, 220); 1173 }); 1174}); 1175 1176/************************* 1177 rain 1178*************************/ 1179 1180function run() { 1181 var image = document.getElementById('background'); 1182 image.onload = function() { 1183 var engine = new RainyDay({ 1184 image: this 1185 }); 1186 engine.rain([ [0, 2, 200], [3, 3, 1] ], 100); 1187 }; 1188 image.crossOrigin = 'anonymous'; 1189 image.src = 'images/bg/09.jpg'; 1190 } 1191 1192/************************* 1193 skills-2 1194*************************/ 1195 1196if($(".skills-2").length != 0) { 1197$('.skills-2').appear(function() { 1198 $( ".bar" ).each( function() { 1199 var $bar = $( this ), 1200 $pct = $bar.find( ".pct" ), 1201 data = $bar.data( "bar" ); 1202 setTimeout( function() { 1203 $bar 1204 .css( "background-color", data.color ) 1205 .prop( "title", data.width ) 1206 .animate({ 1207 "width": $pct.html() 1208 }, 3000, function() { 1209 $pct.css({ 1210 "color": data.color, 1211 "opacity": 1 1212 }); 1213 }); 1214 }, data.delay || 0 ); 1215 }); 1216 }, { 1217 offset: 400 1218}); 1219} 1220 1221/************************* 1222 countdown 1223*************************/ 1224 1225 $(document).ready(function(){ 1226 if($(".countdown").length != 0) { 1227 $('.maintenance-progress-bar').appear(function() { 1228 $('.countdown').downCount({ 1229 date: '10/05/2016 12:00:00', 1230 offset: +10 1231 }, function () { 1232 // alert('WOOT WOOT, done!'); 1233 }); 1234 $(".progress-bar").loading(); 1235 $('input').on('click', function () { 1236 $(".progress-bar").loading(); 1237 }); 1238 1239 }, { 1240 offset: 400 1241}); 1242} 1243}); 1244 1245/************************* 1246 ripple 1247*************************/ 1248 1249 $(".tabs li").click(function(e) { 1250 /* Add the slider movement */ 1251 // what tab was pressed 1252 var whatTab = $(this).index(); 1253 // Work out how far the slider needs to go 1254 var howFar = 160 * whatTab; 1255 /* Add the ripple */ 1256 // Remove olds ones 1257 $(".ripple").remove(); 1258 // Setup 1259 var posX = $(this).offset().left, 1260 posY = $(this).offset().top, 1261 buttonWidth = $(this).width(), 1262 buttonHeight = $(this).height(); 1263 // Add the element 1264 $(this).prepend("<span class='ripple'></span>");
1265 // Make it round! 1266 if (buttonWidth >= buttonHeight) { 1267 buttonHeight = buttonWidth; 1268 } else { 1269 buttonWidth = buttonHeight; 1270 } 1271 // Get the center of the element 1272 var x = e.pageX - posX - buttonWidth / 2; 1273 var y = e.pageY - posY - buttonHeight / 2; 1274 // Add the ripples CSS and start the animation 1275 $(".ripple").css({ 1276 width: buttonWidth, 1277 height: buttonHeight, 1278 top: y + 'px', 1279 left: x + 'px' 1280 }).addClass("rippleEffect"); 1281}); 1282 1283 1284/************************* 1285 placeholder 1286*************************/ 1287 1288$('[placeholder]').focus(function() { 1289 var input = $(this); 1290 if (input.val() == input.attr('placeholder')) { 1291 input.val(''); 1292 input.removeClass('placeholder'); 1293 } 1294}).blur(function() { 1295 var input = $(this); 1296 if (input.val() == '' || input.val() == input.attr('placeholder')) { 1297 input.addClass('placeholder'); 1298 input.val(input.attr('placeholder')); 1299 } 1300}).blur().parents('form').submit(function() { 1301 $(this).find('[placeholder]').each(function() { 1302 var input = $(this); 1303 if (input.val() == input.attr('placeholder')) { 1304 input.val(''); 1305 } 1306 }) 1307}); 1308 1309/********************************* 1310 Wow animation on scroll 1311*********************************/ 1312 1313if($(".wow").length != 0) { 1314wow = new WOW({ 1315 animateClass: 'animated', 1316 offset: 100, 1317 mobile: false 1318}); 1319wow.init(); 1320} 1321 1322/********************************* 1323 Raindrops 1324*********************************/ 1325if($(".raindrops").length != 0) { 1326 jQuery('#raindrops').raindrops( 1327 {color:'#323232', 1328 canvasHeight:200}); 1329} 1330 1331/********************************* 1332 Parallax banner 1333*********************************/ 1334if($(".parallax-banner").length != 0) { 1335 $('#scene').parallax(); 1336 } 1337 1338/********************************* 1339 Mobile slider 1340*********************************/ 1341if($(".mobile-slider-main").length != 0) { 1342 $('#mobile-slider').zenith({ 1343 layout: 'mobile-slider' , 1344 slideSpeed: 450, 1345 autoplaySpeed: 2000 1346 }); 1347 } 1348 1349 1350$(document).on('click','a.frame-close', function(e){ 1351 $('.header-preview').slideUp(); 1352}); 1353 1354 1355function gonder(){ 1356 1357 $("#sendbutton").hide(); 1358 $("#loading").show(); 1359 $("#iletisimformu").attr("action",""); 1360 $("#iletisimformu").submit(); 1361 1362 /* 1363 var m_adsoyad = "Adınız & soyadınızı yazmadınız."; 1364 var m_email_1 = "E-mail adresini yazmadınız."; 1365 var m_email_2 = "E-mail adresi geçersiz."; 1366 var m_konu = "Konu yazmadınız."; 1367 var m_tel = "Telefon numaranızı yazmadınız."; 1368 var m_mesaj = "Mesaj yazmadınız."; 1369 1370 var ad=$("#adsoyad"); 1371 var email=$("#email"); 1372 var konu=$("#konu"); 1373 var tel=$("#telefon"); 1374 var mesaj=$("#mesaj"); 1375 1376 if( ad.val() !== ""){ 1377 alert(m_adsoyad); 1378 ad.focus(); 1379 }else if( email.val().length === 0 ){ 1380 alert(m_email_1); 1381 email.focus(); 1382 }else if( !validateEmail(email.val())){ 1383 alert(m_email_2); 1384 email.focus(); 1385 }else if( tel.val().length === 0 ){ 1386 alert(m_tel); 1387 tel.focus(); 1388 }else if( konu.val().length === 0 ){ 1389 alert(m_konu); 1390 konu.focus(); 1391 }else if( mesaj.val().length === 0 ){ 1392 alert(m_mesaj); 1393 mesaj.focus(); 1394 }else{ 1395 $("#sendbutton").hide(); 1396 $("#loading").show(); 1397 $("#iletisimformu").attr("action",""); 1398 $("#iletisimformu").submit(); 1399 } 1400 */ 1401} 1402 1403function validateEmail($email) { 1404 var emailReg = /^([\w-\.]+@([\w-]+\.)+[\w-]{2,4})?$/; 1405 return emailReg.test( $email ); 1406 1407} 1408 1409function popupwindow(url){ 1410 window.open(url, 'PaylaÅ', 'width=710,height=600,scrollbars=no'); 1411} 1412 1413function yapimvideo(videoid){ 1414 1415 $("#videolar_container").html('<div class="yukleniyor"></div>'); 1416 1417 $.ajax({ 1418 type: 'POST', 1419 url: '../yapim-video.php', 1420 cache: false, 1421 data: {'id':videoid,'site_dili':site_dili,'yapim_dili':yapim_dili}, 1422 success: function(response){ 1423 1424 $("#videolar_container").html(response); 1425 1426 }, 1427 error: function(){ 1428 alert("Hata oluÅtu. Tekrar deneyiniz."); 1429 } 1430 }); 1431 1432} 1433 1434function yapimposterler(yapim){ 1435 $.ajax({ 1436 type: 'POST', 1437 url: '../yapim-posterler.php', 1438 cache: false, 1439 data: {'id':yapim}, 1440 success: function(response){ 1441 1442 $("#poster_container").html(response); 1443
1444 // slider 1445 $('.owl-carousel-15').owlCarousel({ 1446 loop:false, 1447 margin:10, 1448 autoplay:false, 1449 autoplayTimeout:2000, 1450 autoplayHoverPause:true, 1451 nav:true, 1452 responsive:{ 1453 0:{ 1454 items:1 1455 }, 1456 600:{ 1457 items:3 1458 }, 1459 1000:{ 1460 items:5 1461 } 1462 }, 1463 navText: ['<div class="owl-prev" style="">'+lang54+'</div>','<div class="owl-next" style="">'+lang55+'</div>'] 1464 }); 1465 1466 // galeri 1467 $('.popup-gallery').magnificPopup({ 1468 delegate: 'a', 1469 type: 'image', 1470 tLoading: 'Loading image #%curr%...', 1471 mainClass: 'mfp-img-mobile', 1472 gallery: { 1473 enabled: true, 1474 navigateByImgClick: true, 1475 preload: [0,1] // Will preload 0 - before current, and 1 after the current image 1476 }, 1477 callbacks: { 1478 elementParse: function(item) { 1479 //alert(item.el.attr('href')); 1480 }, 1481 updateStatus: function() { 1482 var a = $(".mfp-img").attr("src"); 1483 $(".galleryindir a").attr("href","/download.php?image=" + a); 1484 } 1485 }, 1486 image: { 1487 tError: '<a href="%url%">The image #%curr%</a> could not be loaded.', 1488 titleSrc: function(item) { 1489 return item.el.attr('title'); 1490 }, 1491 markup: '<div class="mfp-figure">' + 1492 '<div class="mfp-toolbar"></div>' + 1493 '<div class="mfp-close"></div>' + 1494 '<figure> <div class="galleryindir"><a href="#" target="_blank" title="Download"></a></div>' + 1495 '<div class="mfp-img"></div>' + 1496 '<figcaption>' + 1497 '<div class="mfp-bottom-bar">' + 1498 '<div class="mfp-title"></div>' + 1499 '<div class="mfp-counter"></div>' + 1500 '</div>' + 1501 '</figcaption>' + 1502 '</figure>' + 1503 '</div>' 1504 } 1505 }); 1506 1507 }, 1508 error: function(){ 1509 alert("Hata oluÅtu. Tekrar deneyiniz."); 1510 } 1511 }); 1512 1513} 1514 1515function yapimgaleri(yapimid){ 1516 $("#galeri_container").html('<div class="yukleniyor"></div>'); 1517 1518 $.ajax({ 1519 type: 'POST', 1520 url: '../yapim-galeri.php', 1521 cache: false, 1522 data: {'id':yapimid,'site_dili':site_dili,'yapim_dili':yapim_dili}, 1523 success: function(response){ 1524 1525 $("#galeri_container").html(response); 1526 1527 // galeri içerik scroll 1528 $("#galeriicerik").mCustomScrollbar({theme:"minimal"}); 1529 1530 // yapım galeri 1531 if($(".popup-galeri").length != 0) { 1532 $('.popup-galeri').magnificPopup({ 1533 delegate: 'a', 1534 type: 'image', 1535 tLoading: 'Loading image #%curr%...', 1536 mainClass: 'mfp-img-mobile', 1537 gallery: { 1538 enabled: true, 1539 navigateByImgClick: true, 1540 preload: [0,1] // Will preload 0 - before current, and 1 after the current image 1541 }, 1542 callbacks: { 1543 elementParse: function(item) { 1544 //alert(item.el.attr('href')); 1545 }, 1546 updateStatus: function() { 1547 var a = $(".mfp-img").attr("src"); 1548 $(".galleryindir a").attr("href","/download.php?image=" + a); 1549 } 1550 }, 1551 image: { 1552 tError: '<a href="%url%">The image #%curr%</a> could not be loaded.', 1553 titleSrc: function(item) { 1554 return item.el.attr('title'); 1555 }, 1556 markup: '<div class="mfp-figure">' + 1557 '<div class="mfp-toolbar"></div>' + 1558 '<div class="mfp-close"></div>' + 1559 '<figure> <div class="galleryindir"><a href="#" target="_blank" title="Download"></a></div>' + 1560 '<div class="mfp-img"></div>' + 1561 '<figcaption>' + 1562 '<div class="mfp-bottom-bar">' + 1563 '<div class="mfp-title"></div>' + 1564 '<div class="mfp-counter"></div>' + 1565 '</div>' + 1566 '</figcaption>' + 1567 '</figure>' + 1568 '</div>' 1569 } 1570 }); 1571 } 1572 1573 // galeri slider 1574 $('.owl-carousel-1').owlCarousel({ 1575 items:1, 1576 loop:false, 1577 animateOut: 'fadeOut', 1578 autoplay:false, 1579 autoplayTimeout:1000, 1580 autoplayHoverPause:true, 1581 autoHeight: true, 1582 dots:true, 1583 nav:false, 1584 navText:[ 1585 "<i class='fa fa-angle-left fa-2x'></i>", 1586 "<i class='fa fa-angle-right fa-2x'></i>" 1587 ] 1588 }); 1589 1590 }, 1591 error: function(){ 1592 alert("Hata oluÅtu. Tekrar deneyiniz."); 1593 } 1594 }); 1595} 1596 1597function scrolling(bolum){ 1598 1599 $(".yapimustmenu ul li").removeClass("active"); 1600 1601 var yukseklik = $("#" + bolum).offset().top; 1602 1603 var body = $("html, body"); 1604 body.stop().animate({scrollTop:(yukseklik - 40)}, 1000, 'swing', function() { 1605 $("#" + bolum + "_tab").addClass("active"); 1606 // document.location.hash = bolum; 1607 1608 // eÄer sosyal medya çaÄrılmıŠise sosyal medyayı getir 1609 if(bolum == "socialmedia"){ 1610 sosyalmedyagetir(icerik_id); 1611 } 1612 1613 }); 1614 1615} 1616 1617function sosyalmedyagetir(yapimid){ 1618 1619 var sosyal_medya_html = $("#sosyal_medya_container").html(); 1620 1621 // eÄer daha önce yüklenmemiÅ ise yükle 1622 if(sosyal_medya_html == ''){ 1623 $("#sosyal_medya_container").html('<div class="yukleniyor"></div>'); 1624 1625 $.ajax({ 1626 type: 'POST', 1627 url: '../yapim-sosyal-medya.php', 1628 cache: false, 1629 data: {'id':yapimid,'site_dili':site_dili}, 1630 success: function(response){ 1631 1632 $("#sosyal_medya_container").html(response); 1633 1634 }, 1635 error: function(){ 1636 alert("Hata oluÅtu. Tekrar deneyiniz."); 1637 } 1638 }); 1639 } 1640 1641} 1642 1643function homesosyalmedyagetir(){ 1644 $.ajax({ 1645 type: 'POST', 1646 url: '../home-sosyal-medya.php', 1647 cache: false, 1648 data: {'site_dili':site_dili}, 1649 success: function(response){ 1650 1651 $("#sosyal_medya_home").html(response); 1652
1653 }, 1654 error: function(){ 1655 alert("Hata oluÅtu. Tekrar deneyiniz."); 1656 } 1657 }); 1658 1659} 1660 1661function ebulten(){ 1662 1663 var eposta = $("#emailadresi").val(); 1664 1665 if(eposta == ""){ 1666 alert(lang7); 1667 }else if(!validateEmail(eposta)){ 1668 alert(lang7); 1669 }else{ 1670 1671 $.ajax({ 1672 type: 'POST', 1673 url: '../ebulten.php', 1674 cache: false, 1675 data: {'eposta':eposta,'icerik':icerik_id}, 1676 success: function(response){ 1677 1678 if(response == "delete"){ 1679 alert(lang9); 1680 }else if(response == "insert"){ 1681 alert(lang8); 1682 }else{ 1683 alert("Hata oluÅtu. Tekrar deneyiniz."); 1684 } 1685 1686 $("#emailadresi").val(''); 1687 1688 }, 1689 error: function(){ 1690 alert("Hata oluÅtu. Tekrar deneyiniz."); 1691 } 1692 }); 1693 1694 } 1695 1696} 1697
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.