1(function($) { 2 "use strict"; 3 4 // jQuery for page scrolling feature - requires jQuery Easing plugin 5 $('body').on('click', '.page-scroll a', function(event) { 6 var $anchor = $(this); 7 $('html, body').stop().animate({ 8 scrollTop: ($($anchor.attr('href')).offset().top - 85 ) 9 }, 1500, 'easeInOutExpo'); 10 event.preventDefault(); 11 }); 12 13 $("body").scrollspy({target: ".navbar-collapse", offset:200}); 14 15 // Gallery Slider 16 $('#gal-slider').flexslider({ 17 animation: "fade", 18 slideshow: false, 19 directionNav: false, 20 controlsContainer: ".gal-wrap", 21 controlNav: true, 22 manualControls: ".gal-nav li" 23 }); 24 25 // Twitterfeed 26 $('#tweetcool').tweecool({ 27 profile_image: false, 28 username: 'envato', 29 limit: 1 30 }); 31 32 // SLIDER REVOLUTION 33 jQuery('.tp-banner').show().revolution({ 34 dottedOverlay: "none", 35 delay: 16000, 36 startwidth: 1170, 37 startheight: 700, 38 hideThumbs: 200, 39 40 thumbWidth: 100, 41 thumbHeight: 50, 42 thumbAmount: 5, 43 44 navigationType: "bullet", 45 navigationArrows: "solo", 46 navigationStyle: "preview1", 47 48 touchenabled: "on", 49 onHoverStop: "on", 50 51 swipe_velocity: 0.7, 52 swipe_min_touches: 1, 53 swipe_max_touches: 1, 54 drag_block_vertical: false, 55 56 parallax: "mouse", 57 parallaxBgFreeze: "on", 58 parallaxLevels: [7, 4, 3, 2, 5, 4, 3, 2, 1, 0], 59 60 keyboardNavigation: "off", 61 62 navigationHAlign: "center", 63 navigationVAlign: "bottom", 64 navigationHOffset: 0, 65 navigationVOffset: 20, 66 67 soloArrowLeftHalign: "left", 68 soloArrowLeftValign: "center", 69 soloArrowLeftHOffset: 20, 70 soloArrowLeftVOffset: 0, 71 72 soloArrowRightHalign: "right", 73 soloArrowRightValign: "center", 74 soloArrowRightHOffset: 20, 75 soloArrowRightVOffset: 0, 76 77 shadow: 0, 78 fullWidth: "on", 79 fullScreen: "off", 80 81 spinner: "spinner4", 82 83 stopLoop: "off", 84 stopAfterLoops: -1, 85 stopAtSlide: -1, 86 87 shuffle: "off", 88 89 autoHeight: "off", 90 forceFullWidth: "off", 91 92 93 94 hideThumbsOnMobile: "off", 95 hideNavDelayOnMobile: 1500, 96 hideBulletsOnMobile: "off", 97 hideArrowsOnMobile: "off", 98 hideThumbsUnderResolution: 0, 99 100 hideSliderAtLimit: 0, 101 hideCaptionAtLimit: 0, 102 hideAllCaptionAtLilmit: 0, 103 startWithSlide: 0, 104 videoJsPath: "rs-plugin/videojs/", 105 fullScreenOffsetContainer: "" 106 }); 107 108 109 110 // SLIDER REVOLUTION 111 jQuery('.tp-banner1').show().revolution({ 112 dottedOverlay: "none", 113 delay: 16000, 114 startwidth: 1170, 115 startheight: 550, 116 hideThumbs: 200, 117 118 thumbWidth: 100, 119 thumbHeight: 50, 120 thumbAmount: 5, 121 122 navigationType: "bullet", 123 navigationArrows: "solo", 124 navigationStyle: "preview5", 125 126 touchenabled: "on", 127 onHoverStop: "on", 128 129 swipe_velocity: 0.7, 130 swipe_min_touches: 1, 131 swipe_max_touches: 1, 132 drag_block_vertical: false, 133 134 parallax: "mouse", 135 parallaxBgFreeze: "on", 136 parallaxLevels: [7, 4, 3, 2, 5, 4, 3, 2, 1, 0], 137 138 keyboardNavigation: "off", 139 140 navigationHAlign: "center", 141 navigationVAlign: "bottom", 142 navigationHOffset: 0, 143 navigationVOffset: 20, 144 145 soloArrowLeftHalign: "left", 146 soloArrowLeftValign: "center", 147 soloArrowLeftHOffset: 20, 148 soloArrowLeftVOffset: 0, 149 150 soloArrowRightHalign: "right", 151 soloArrowRightValign: "center", 152 soloArrowRightHOffset: 20, 153 soloArrowRightVOffset: 0, 154 155 shadow: 0, 156 fullWidth: "on", 157 fullScreen: "off", 158 159 spinner: "spinner4", 160 161 stopLoop: "off", 162 stopAfterLoops: -1, 163 stopAtSlide: -1, 164 165 shuffle: "off", 166 167 autoHeight: "off", 168 forceFullWidth: "off", 169 170 171 172 hideThumbsOnMobile: "off", 173 hideNavDelayOnMobile: 1500, 174 hideBulletsOnMobile: "off", 175 hideArrowsOnMobile: "off", 176 hideThumbsUnderResolution: 0, 177 178 hideSliderAtLimit: 0, 179 hideCaptionAtLimit: 0, 180 hideAllCaptionAtLilmit: 0, 181 startWithSlide: 0, 182 videoJsPath: "rs-plugin/videojs/", 183 fullScreenOffsetContainer: "" 184 }); 185 186 // SLIDER REVOLUTION 187 jQuery('.tp-banner-full').show().revolution({ 188 dottedOverlay: "none", 189 delay: 16000, 190 startwidth: 1170, 191 startheight: 700, 192 hideThumbs: 200, 193 194 thumbWidth: 100,
195 thumbHeight: 50, 196 thumbAmount: 5, 197 198 navigationType: "bullet", 199 navigationArrows: "solo", 200 navigationStyle: "preview5", 201 202 touchenabled: "on", 203 onHoverStop: "on", 204 205 swipe_velocity: 0.7, 206 swipe_min_touches: 1, 207 swipe_max_touches: 1, 208 drag_block_vertical: false, 209 210 parallax: "mouse", 211 parallaxBgFreeze: "on", 212 parallaxLevels: [7, 4, 3, 2, 5, 4, 3, 2, 1, 0], 213 214 keyboardNavigation: "off", 215 216 navigationHAlign: "center", 217 navigationVAlign: "bottom", 218 navigationHOffset: 0, 219 navigationVOffset: 20, 220 221 soloArrowLeftHalign: "left", 222 soloArrowLeftValign: "center", 223 soloArrowLeftHOffset: 20, 224 soloArrowLeftVOffset: 0, 225 226 soloArrowRightHalign: "right", 227 soloArrowRightValign: "center", 228 soloArrowRightHOffset: 20, 229 soloArrowRightVOffset: 0, 230 231 shadow: 0, 232 fullWidth: "on", 233 fullScreen: "on", 234 235 spinner: "spinner4", 236 237 stopLoop: "off", 238 stopAfterLoops: -1, 239 stopAtSlide: -1, 240 241 shuffle: "off", 242 243 autoHeight: "off", 244 forceFullWidth: "off", 245 246 247 248 hideThumbsOnMobile: "off", 249 hideNavDelayOnMobile: 1500, 250 hideBulletsOnMobile: "off", 251 hideArrowsOnMobile: "off", 252 hideThumbsUnderResolution: 0, 253 254 hideSliderAtLimit: 0, 255 hideCaptionAtLimit: 0, 256 hideAllCaptionAtLilmit: 0, 257 startWithSlide: 0, 258 videoJsPath: "rs-plugin/videojs/", 259 fullScreenOffsetContainer: "" 260 }); 261 262 // Floating Sidebar Script comment by govind 263 //var $sidebar = jQuery("#floating-sidebar"), 264 // offset = $sidebar.offset(), 265 // $scrollHeight = jQuery("#fs-content").height(), 266 // $scrollOffset = jQuery("#fs-content").offset(), 267 // $window = jQuery(window), 268 // $headerHeight = 0; 269 //$window = $(window); 270 //var sidebarOffset = $sidebar.offset(); 271 272 //$window.scroll(function() { 273 // if ($window.width() > 960) { 274 // if ($window.scrollTop() + $headerHeight + 3 > offset.top) { 275 // if ($window.scrollTop() + $headerHeight + $sidebar.height() + 50 < $scrollOffset.top + $scrollHeight) { 276 // $sidebar.stop().animate({ 277 // marginTop: $window.scrollTop() - offset.top + $headerHeight + 30 278 // }); 279 // } else { 280 // $sidebar.stop().animate({ 281 // marginTop: ($scrollHeight - $sidebar.height() - 80) + 30 282 // }); 283 // } 284 // } else { 285 // $sidebar.stop().animate({ 286 // marginTop: 0 287 // }); 288 // } 289 //} else { 290 // $sidebar.css('margin-top', 0); 291 // } 292 // }); comment end by govind 293 294 // Progressbar 295 $('.b-progress-bar').each(function() { 296 var cap = parseInt($(this).attr('data-capacity'), 10), 297 val = parseInt($(this).attr('data-value'), 10), 298 len = 100 * (val / cap) + '%'; 299 300 $(this).find('.progress-line').css('width', len); 301 302 }); 303 304 // Skills 305 $('#skills').appear(function() { 306 $(".progress-scale div").removeClass("no-width-skills"); 307 }, { 308 accX: 0, 309 accY: -200 310 }); 311 312 313 $('#skills2').appear(function() { 314 $('.chart').easyPieChart({ 315 barColor: '#000000' 316 }); 317 318 $('.chart-color2').easyPieChart({ 319 barColor: '#7cc623' 320 }); 321 322 $('.chart-color3').easyPieChart({ 323 barColor: '#0FA2D5' 324 }); 325 326 $('.chart-color4').easyPieChart({
327 barColor: '#FF4862' 328 }); 329 330 }, { 331 accX: 0, 332 accY: -200 333 }); 334 335 // TESTIMONIAL 336 337 $("#testimonial").owlCarousel({ 338 autoPlay: 3000, 339 stopOnHover: true, 340 navigation: true, 341 pagination: false, 342 slideSpeed: 600, 343 singleItem: true, 344 autoHeight: true 345 }); 346 347 // BLOG SLIDER 348 $("#blog-slider").owlCarousel({ 349 350 navigation: true, // Show next and prev buttons 351 slideSpeed: 300, 352 pagination: false, 353 paginationSpeed: 400, 354 singleItem: true 355 356 }); 357 358 // TEAM CAROUSEL 359 360 var owl = $("#home-team"); 361 362 owl.owlCarousel({ 363 364 itemsCustom: [ 365 [0, 2], 366 [450, 2], 367 [600, 2], 368 [700, 2], 369 [1000, 5], 370 [1200, 5], 371 [1400, 5], 372 [1600, 5] 373 ], 374 pagination: false, 375 navigation: true 376 377 }); 378 379 // 5 COL CAROUSEL 380 381 var owl = $("#carousel_five"); 382 383 owl.owlCarousel({ 384 385 itemsCustom: [ 386 [0, 2], 387 [450, 3], 388 [600, 3], 389 [700, 4], 390 [1000, 5], 391 [1200, 5], 392 [1400, 5], 393 [1600, 5] 394 ], 395 pagination: false, 396 navigation: true 397 398 }); 399 400 // QUOTE CAROUSEL 401 402 var owl = $("#home-quote"); 403 404 owl.owlCarousel({ 405 406 itemsCustom: [ 407 [0, 2], 408 [450, 1], 409 [600, 2], 410 [700, 2], 411 [1000, 2], 412 [1200, 2], 413 [1400, 2], 414 [1600, 2] 415 ], 416 pagination: true, 417 navigation: false 418 419 }); 420 421 // FLICKRFEED 422 423 $('#flickr').jflickrfeed({ 424 limit: 9, 425 qstrings: { 426 id: '51035555243@N01' 427 }, 428 itemTemplate: '<li><a href="{{image_b}}"><img src="{{image_s}}" alt="{{title}}" /></a></li>' 429 }); 430 431 // ACCORDION 432 433 $('#accordion .collapse').on('shown.bs.collapse', function() { 434 $(this).parent().find(".fa-plus").removeClass("fa-plus").addClass("fa-minus"); 435 $(this).parent().addClass("active"); 436 }).on('hidden.bs.collapse', function() { 437 $(this).parent().find(".fa-minus").removeClass("fa-minus").addClass("fa-plus"); 438 $(this).parent().removeClass("active"); 439 }); 440 441 442 443 $('#accordion-e1 .collapse').on('shown.bs.collapse', function() { 444 $(this).parent().find(".fa-chevron-right").removeClass("fa-chevron-right").addClass("fa-chevron-down"); 445 }).on('hidden.bs.collapse', function() { 446 $(this).parent().find(".fa-chevron-down").removeClass("fa-chevron-down").addClass("fa-chevron-down"); 447 }); 448 449 450 $('#accordion-e2 .collapse').on('shown.bs.collapse', function() { 451 $(this).parent().find(".icon-plus2").removeClass("icon-plus2").addClass("icon-minus2"); 452 }).on('hidden.bs.collapse', function() { 453 $(this).parent().find(".icon-minus2").removeClass("icon-minus2").addClass("icon-plus2"); 454 }); 455 456 457 $('#accordion-e3 .collapse').on('shown.bs.collapse', function() { 458 $(this).parent().find(".icon-cross2").removeClass("icon-cross2").addClass("icon-check2"); 459 }).on('hidden.bs.collapse', function() { 460 $(this).parent().find(".icon-check2").removeClass("icon-check2").addClass("icon-cross2"); 461 }); 462 463 $('#stats1').appear(function() { 464 465 $('.count1').each(function() { 466 $(this).prop('Counter', 0).animate({ 467 Counter: $(this).text() 468 }, { 469 duration: 2000, 470 easing: 'swing', 471 step: function(now) { 472 $(this).text(Math.ceil(now)); 473 } 474 }); 475 }); 476 477 }, { 478 accX: 0, 479 accY: -50 480 }); 481 482 $('#stats2').appear(function() { 483 484 $('.count2').each(function() { 485 $(this).prop('Counter', 0).animate({ 486 Counter: $(this).text() 487 }, { 488 duration: 2000, 489 easing: 'swing', 490 step: function(now) { 491 $(this).text(Math.ceil(now)); 492 } 493 }); 494 }); 495 496 }, { 497 accX: 0, 498 accY: -50 499 }); 500 501 502 $('#stats3').appear(function() { 503 504 $('.count3').each(function() { 505 $(this).prop('Counter', 0).animate({ 506 Counter: $(this).text() 507 }, { 508 duration: 2000,
509 easing: 'swing', 510 step: function(now) { 511 $(this).text(Math.ceil(now)); 512 } 513 }); 514 }); 515 516 }, { 517 accX: 0, 518 accY: -50 519 }); 520 521 // FULLWIDTH SEARCH 522$(".ss-trigger").click(function() { 523 $(".ss-content").addClass("ss-content-act"); 524}); 525$(".ss-close").click(function() { 526 $(".ss-content").removeClass("ss-content-act"); 527}); 528 529 // STICKY HEADER 530 $("header").sticky({topSpacing:0}); 531 532 // Countdown Timer 533 var endDate = "March 20, 2016"; 534 $('.countdown.styled').countdown({ 535 date: endDate, 536 render: function(data) { 537 $(this.el).html("<div>" + this.leadingZeros(data.days, 3) + " <span>days</span></div><div>" + this.leadingZeros(data.hours, 2) + " <span>hrs</span></div><div>" + this.leadingZeros(data.min, 2) + " <span>min</span></div><div>" + this.leadingZeros(data.sec, 2) + " <span>sec</span></div>"); 538 } 539 }); 540 541 $('.mp-lightbox').magnificPopup({ 542 removalDelay: 300, 543 type: 'image', 544 closeOnContentClick: true, 545 mainClass: 'mfp-fade', 546 image: { 547 verticalFit: true 548 }, 549 gallery:{ 550 enabled:true 551 } 552 }); 553 554 555 // SETTINGS PANEL 556 557 $('.btn-settings').on('click', function() { 558 $(this).parent().toggleClass('active'); 559 }); 560 561 $('.switch-handle').on('click', function() { 562 $(this).toggleClass('active'); 563 $('.outer-wrapper').toggleClass('boxed'); 564 565 }); 566 567 $('.bg-list div').on('click', function() { 568 if ($(this).hasClass('active')) return false; 569 if(!$('.switch-handle').hasClass('active')) $('.switch-handle').trigger('click'); 570 571 $(this).addClass('active').siblings().removeClass('active'); 572 var cl = $(this).attr('class'); 573 $('body').attr('class', cl); 574 }); 575 576 $('.color-list div').on('click', function() { 577 if ($(this).hasClass('active')) return false; 578 579 $('link.color-scheme-link').remove(); 580 581 $(this).addClass('active').siblings().removeClass('active'); 582 var src = $(this).attr('data-src'), 583 colorScheme = $('<link class="color-scheme-link" rel="stylesheet" />'); 584 585 colorScheme 586 .attr('href', src) 587 .appendTo('head'); 588 }); 589 590})(jQuery); // End of use strict 591 592 593 594 595// slider 596$("#sliderRange") 597 .slider({ 598 range: true, 599 min: 0, 600 max: 500, 601 step: 1, 602 values: [75, 300], 603 slide: function(event, ui) { 604 var price1 = ui.values[0]; 605 var price2 = ui.values[1]; 606 $("#price1") 607 .val("\u20ac" + price1); 608 $("#price2") 609 .val("\u20ac" + price2); 610 } 611 }); 612$('#price1') 613 .bind('keyup', function() { 614 var from = $(this) 615 .val(); 616 var to = $('#price2') 617 .val(); 618 $('#sliderRange') 619 .slider('option', 'values', [from, to]); 620 }); 621$('#price2') 622 .bind('keyup', function() { 623 var from = $('#price1') 624 .val(); 625 var to = $(this) 626 .val(); 627 $('#sliderRange') 628 .slider('option', 'values', [from, to]); 629 }); 630 631$(window).load(function() { 632 "use strict"; 633 // Isotope 634 var $container = $('#blog-mason'); 635 $container.isotope({ 636 itemSelector: '.bm-item' 637 }); 638 var $optionSets = $('#portfolio .folio-filter'), 639 $optionLinks = $optionSets.find('a'); 640 $optionLinks.click(function() { 641 var $this = $(this); 642 if ($this.hasClass('selected')) { 643 return false; 644 } 645 var $optionSet = $this.parents('.folio-filter'); 646 $optionSet.find('.selected').removeClass('selected'); 647 $this.addClass('selected'); 648 // make option object dynamically, i.e. { filter: '.my-filter-class' } 649 var options = {}, 650 key = $optionSet.attr('data-option-key'), 651 value = $this.attr('data-option-value'); 652 value = value === 'false' ? false : value; 653 options[key] = value; 654 if (key === 'layoutMode' && typeof changeLayoutMode === 'function') { 655 changeLayoutMode($this, options); 656 } else { 657 $container.isotope(options); 658 } 659 return false;
660 }); 661}); 662 663 664$(window).load(function() { 665 "use strict"; 666 // Isotope 667 var $container = $('#portfolio-home'); 668 $container.isotope({ 669 itemSelector: '.project-item' 670 }); 671 var $optionSets = $('#portfolio-section .filter'), 672 $optionLinks = $optionSets.find('a'); 673 $optionLinks.click(function() { 674 var $this = $(this); 675 if ($this.hasClass('selected')) { 676 return false; 677 } 678 var $optionSet = $this.parents('.filter'); 679 $optionSet.find('.selected').removeClass('selected'); 680 $this.addClass('selected'); 681 var options = {}, 682 key = $optionSet.attr('data-option-key'), 683 value = $this.attr('data-option-value'); 684 value = value === 'false' ? false : value; 685 options[key] = value; 686 if (key === 'layoutMode' && typeof changeLayoutMode === 'function') { 687 changeLayoutMode($this, options); 688 } else { 689 $container.isotope(options); 690 } 691 return false; 692 }); 693}); 694 695 var tabLinK = $('.about-post a'), 696 tabContenT = $('.tab-cont'); 697 698 tabLinK.on('click', function(event){ 699 event.preventDefault(); 700 var dataLink = $(this).attr('data-link'), 701 dataTab = $('.tab-cont.active').attr('data-tab'); 702 703 if(!$(this).hasClass('active')) { 704 $('.about-post a').removeClass('active'); 705 $(this).addClass('active'); 706 } 707 708 if ( dataLink == dataTab ) { 709 } else { 710 tabContenT.removeClass('active'); 711 $('.tab-cont[data-tab='+ dataLink +']').addClass('active'); 712 } 713 }); 714 715 716 717 // CONTACT FORM 718 719 // CONTACT FORM 720 721 $('.b-contact-form').submit(function(){ 722 723 var self = $(this), 724 action = self.attr('action'); 725 726 self.prev().slideUp(750,function() { 727 self.prev().hide(); 728 729 var name = self.find('.field-name'), 730 subj = self.find('.field-subject'), 731 email = self.find('.field-email'), 732 comm = self.find('.field-comments'); 733 comm = self.find('.field-phone'); 734 735 $.post(action, { 736 name: name.val(), 737 email: email.val(), 738 subject: subj.val() || '...', 739 comments: comm.val(), 740 phone: comm.val(), 741 }, 742 function(data){ 743 self.prev().html(data); 744 self.prev().slideDown('slow'); 745 746 if (data.match('success') != null) { 747 name.val(''); 748 subj.val(''); 749 email.val(''); 750 comm.val(''); 751 phone.val(''); 752 } 753 } 754 ); 755 756 }); 757 758 return false; 759 760 }); 761 762//¡page top{^ 763$(window).load(function() { 764 765 var _winh = document.body.clientHeight; //hL g³ªêèÈãÅ\¦ 766 $('body').css('height', '100%'); //hL g³æ¾Ì½ß±±Åè·é 767 768 var topBtn=$('#pageTop'); 769 topBtn.hide(); 770 771 $(window).scroll(function(){ 772 if (_winh>3500){ 773 if($(this).scrollTop()>300){ 774 topBtn.fadeIn(); 775 }else{ 776 topBtn.fadeOut(); 777 } 778 } 779 }); 780 781 topBtn.click(function(){ 782 $('body,html').animate({ 783 scrollTop: 0},500); 784 return false; 785 }); 786});
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.