1/* --------------------- 2 CUSTOM JS DOCUMENT 3--------------------- */ 4var appMaster = { 5 /* --------------------- 6 Page Loader 7 --------------------- */ 8 pageLoader: function(){ 9 $(".loader-item").delay(700).fadeOut(); 10 $("#pageloader").delay(800).fadeOut("slow"); 11 }, 12 /* --------------------- 13 Navigation Menu 14 --------------------- */ 15 navBar: function(){ 16 /* --------------------- 17 Sticky 18 --------------------- */ 19 if ($('#sticker').length) { 20 $("#sticker").sticky({topSpacing:0}); 21 } 22 /* -------------------------- 23 Home Background Super Slider 24 -------------------------- */ 25 if ($('#slides').length) { 26 $('#slides').superslides({ 27 }); 28 } 29 30 }, 31 32 /* -------------------------- 33 HeaderSearch, Phone & Social Icons Toggle 34 -------------------------- */ 35 toggleNav: function(){ 36 37 /* header Contact (Phone) */ 38 $( ".header-contact" ).click(function() { 39 $( ".header-contact-content" ).show( "fast", function() {}); 40 $('.transparent-header .navbar').fadeIn().addClass('top-search-open'); 41 $(".close").click(function() { 42 $(".header-contact-content").hide("fast", function() {}); 43 $('.transparent-header .navbar').fadeIn().removeClass('top-search-open'); 44 }) 45 }); 46 47 48 /* header Search (Search Form) */ 49 $( ".header-search" ).click(function() { 50 $( ".header-search-content" ).show( "fast", function() {}); 51 $('.transparent-header .navbar').fadeIn().addClass('top-search-open'); 52 53 $(".close").click(function() { 54 $(".header-search-content").hide("fast", function() {}); 55 $('.transparent-header .navbar').fadeIn().removeClass('top-search-open'); 56 }) 57 }); 58 59 60 /* header Share (Search Form) */ 61 $( ".header-share" ).click(function() { 62 $( ".header-share-content" ).show( "fast", function() {}); 63 $('.transparent-header .navbar').fadeIn().addClass('top-search-open'); 64 65 $(".close").click(function() { 66 $(".header-share-content").hide("fast", function() {}); 67 $('.transparent-header .navbar').fadeIn().removeClass('top-search-open'); 68 }) 69 }); 70 }, 71 /* --------------------- 72 Owl Slider 73 /* --------------------- */ 74 owlCarousel: function(){ 75 (function($) { 76 "use strict"; 77 if ($('.owl-carousel').length) { 78 $(".owl-carousel").each(function (index) { 79 var effect_mode = $(this).data('effect'); 80 var autoplay = $(this).data('autoplay'); 81 var navigation = $(this).data('navigation'); 82 var pagination = $(this).data('pagination'); 83 var singleitem = $(this).data('singleitem'); 84 var items = $(this).data('items'); 85 var itemsdesktop = $(this).data('desktop'); 86 var itemsdesktopsmall = $(this).data('desktopsmall'); 87 var itemstablet = $(this).data('tablet'); 88 var itemsmobile = $(this).data('mobile'); 89 if( itemsdesktop > 0 ) 90 { 91 itemsdesktop = [1199, itemsdesktop]; 92 } 93 if( itemsdesktopsmall > 0 ) 94 { 95 itemsdesktopsmall = [979, itemsdesktopsmall]; 96 } 97 if( itemstablet > 0 ) 98 { 99 itemstablet = [479, itemstablet]; 100 } 101 if( itemsmobile > 0 ) 102 { 103 itemsmobile = [479, itemsmobile]; 104 } 105 $(this).owlCarousel({ 106 transitionStyle: effect_mode, 107 autoPlay : autoplay, 108 navigation : navigation, 109 pagination : pagination, 110 singleItem : singleitem, 111 items : items, 112 itemsDesktop : itemsdesktop, 113 itemsDesktopSmall : itemsdesktopsmall, 114 itemsTablet : itemstablet, 115 itemsMobile : itemsmobile, 116 navigationText: ["<i class='fa fa-angle-left'></i>", "<i class='fa fa-angle-right'></i>"] 117 }); 118 }); 119 } 120 })(jQuery); 121 }, 122 /* --------------------- 123 Animation 124 /* --------------------- */ 125 dataAnimations: function() { 126 $('[data-animation]').each(function() { 127 var element = $(this); 128 element.addClass('animated'); 129 element.appear(function() { 130 131 var delay = ( element.data('delay') ? element.data('delay') : 1 ); 132 if( delay > 1 ) element.css('animation-delay', delay + 'ms'); 133 element.addClass( element.data('animation') ); 134 setTimeout(function() { 135 element.addClass('visible'); 136 }, delay); 137 138 }); 139 }); 140 }, 141 /* --------------------- 142 Owl Slider 143 /* --------------------- */ 144 progressBar: function(){ 145 if ($('.progress-bar').length) { 146 $('.progress-bar').each(function() { 147 $(this).appear(function(){ 148 var datavl = $(this).attr('data-percentage'); 149 $(this).animate({ "width" : datavl + "%"}, '1200'); 150 }); 151 });
152 } 153 }, 154 /* --------------------- 155 Background Image Attribute 156 /* --------------------- */ 157 bgImage: function(){ 158 var pageSection = $(".image-bg, .parallax-bg"); 159 pageSection.each(function(indx){ 160 if ($(this).attr("data-background")){ 161 $(this).css("background-image", "url(" + $(this).data("background") + ")"); 162 } 163 }); 164 }, 165 /* --------------------- 166 Fun Factor / Counter 167 /* --------------------- */ 168 funFactor: function(){ 169 (function($){ 170 $(".count-number").appear(function(){ 171 $(this).each(function(){ 172 datacount = $(this).attr('data-count'); 173 $(this).find('.counter').delay(6000).countTo({ 174 from: 10, 175 to: datacount, 176 speed: 3000, 177 refreshInterval: 50, 178 }); 179 }); 180 }); 181 })(jQuery); 182 }, 183 /* --------------------- 184 Parallax BG 185 /* --------------------- */ 186 parallaxBg: function(){ 187 if($('.image-bg').length != 0 && !navigator.userAgent.match(/iPad|iPhone|Android/i)){ 188 $.stellar({ 189 horizontalScrolling: false, 190 verticalOffset: 0, 191 horizontalOffset: 0, 192 responsive: true, 193 scrollProperty: 'scroll', 194 parallaxElements: false, 195 }); 196 } 197 }, 198 /* --------------------- 199 Portfolio 200 /* --------------------- */ 201 portfolioFilter: function(){ 202 if($('#mix-container').length != 0){ 203 $('#mix-container').mixItUp(); 204 } 205 }, 206 /* --------------------- 207 Image Popup 208 /* --------------------- */ 209 prettyPhoto: function(){ 210 (function($) { 211 "use strict"; 212 if( $("a[rel^='prettyPhoto'], a[data-rel^='prettyPhoto']").length != 0 ) { 213 $("a[rel^='prettyPhoto'], a[data-rel^='prettyPhoto']").prettyPhoto({hook: 'data-rel', theme: "dark_square", social_tools: false, deeplinking: false}); 214 } 215 })(jQuery); 216 }, 217 /* --------------------- 218 Background Video 219 /* --------------------- */ 220 backgroundVideo: function(){ 221 if (typeof $.fn.mb_YTPlayer != 'undefined' && $.isFunction($.fn 222 .mb_YTPlayer)) { 223 var m = false; 224 if (/Android|webOS|iPhone|iPad|iPod|BlackBerry/i.test( 225 navigator.userAgent)) { 226 m = true 227 } 228 var v = $('.player'); 229 if (m == false) { 230 v.mb_YTPlayer(); 231 $('#video-controls a') 232 .each(function() { 233 var t = $(this); 234 t.on('click', (function(e) { 235 e.preventDefault(); 236 if (t.hasClass( 237 'fa-volume-off')) { 238 t.removeClass( 239 'fa-volume-off' 240 ) 241 .addClass( 242 'fa-volume-down' 243 ); 244 v.unmuteYTPVolume(); 245 return false 246 } 247 if (t.hasClass( 248 'fa-volume-down')) { 249 t.removeClass( 250 'fa-volume-down' 251 ) 252 .addClass( 253 'fa-volume-off' 254 ); 255 v.muteYTPVolume(); 256 return false 257 } 258 if (t.hasClass('fa-pause')) { 259 t.removeClass( 260 'fa-pause') 261 .addClass('fa-play'); 262 v.pauseYTP(); 263 return false 264 } 265 if (t.hasClass('fa-play')) { 266 t.removeClass('fa-play') 267 .addClass( 268 'fa-pause'); 269 v.playYTP(); 270 return false 271 } 272 })); 273 }); 274 $('#video-controls') 275 .show(); 276 } 277 } 278 }, 279 /* --------------------- 280 Contact Form 281 /* --------------------- */ 282 simplecontactForm: function(){ 283 if ( $( "#contactform" ).length !== 0 ) { 284 $('#contactform').bootstrapValidator({ 285 container: 'tooltip', 286 feedbackIcons: { 287 valid: 'fa fa-check', 288 warning: 'fa fa-user', 289 invalid: 'fa fa-times', 290 validating: 'fa fa-refresh' 291 }, 292 fields: { 293 contact_name: { 294 validators: { 295 notEmpty: { 296 message: '' 297 } 298 } 299 }, 300 contact_email: { 301 validators: { 302 notEmpty: { 303 message: '' 304 }, 305 emailAddress: { 306 message: '' 307 } 308 } 309 }, 310 contact_phone: { 311 validators: { 312 notEmpty: { 313 message: '' 314 } 315 } 316 }, 317 contact_message: { 318 validators: { 319 notEmpty: { 320 message: '' 321 } 322 } 323 }, 324 } 325 }) 326 .on('success.form.bv', function(e) { 327 e.preventDefault(); 328 var $form = $(e.target), 329 validator = $form.data('bootstrapValidator'), 330 submitButton = validator.getSubmitButton(); 331 var form_data = $('#contactform').serialize(); 332 $.ajax({
333 type: "POST", 334 dataType: 'json', 335 url: "php/contact-form.php", 336 data: form_data, 337 success: function(msg){ 338 $('.form-message').html(msg.data); 339 $('.form-message').show(); 340 submitButton.removeAttr("disabled"); 341 resetForm($('#contactform')); 342 }, 343 error: function(msg){} 344 }); 345 return false; 346 }); 347 } 348 function resetForm($form) { 349 350 $form.find( 351 'input:text, input:password, input, input:file, select, textarea' 352 ) 353 .val(''); 354 355 $form.find('input:radio, input:checkbox') 356 .removeAttr('checked') 357 .removeAttr('selected'); 358 $form.find('button[type=submit]') 359 .attr("disabled", "disabled"); 360 361 } 362 }, 363 /* -------------------------------------------- 364 Career Form 365 -------------------------------------------- */ 366 careerForm: function(){ 367 if ( $( "#careerform" ).length !== 0 ) { 368 $('#careerform').bootstrapValidator({ 369 container: 'tooltip', 370 feedbackIcons: { 371 valid: 'fa fa-check', 372 warning: 'fa fa-user', 373 invalid: 'fa fa-times', 374 validating: 'fa fa-refresh' 375 }, 376 fields: { 377 career_name: { 378 validators: { 379 notEmpty: { 380 message: '' 381 } 382 } 383 }, 384 career_email: { 385 validators: { 386 notEmpty: { 387 message: '' 388 }, 389 emailAddress: { 390 message: '' 391 } 392 } 393 }, 394 career_phone: { 395 validators: { 396 notEmpty: { 397 message: '' 398 } 399 } 400 }, 401 career_file: { 402 validators: { 403 notEmpty: { 404 message: 'Please Upload pdf or doc or docx file' 405 }, 406 file: { 407 extension: 'pdf,doc,docx', 408 type: 'application/pdf,application/vnd.openxmlformats-officedocument.wordprocessingml.document,application/msword', 409 message: 'The selected file is not valid!' 410 } 411 } 412 }, 413 } 414 }) 415 .on('success.form.bv', function(e) { 416 e.preventDefault(); 417 var $form = $(e.target), 418 validator = $form.data('bootstrapValidator'), 419 submitButton = validator.getSubmitButton(); 420 var form_data = $('#careerform').serialize(); 421 $.ajax({
422 type: "POST", 423 dataType: 'json', 424 url: "php/career.php", 425 data: form_data, 426 success: function(msg){ 427 $('.form-message2').html(msg.data); 428 $('.form-message2').show(); 429 submitButton.removeAttr("disabled"); 430 resetForm($('#careerform')); 431 }, 432 error: function(msg){} 433 }); 434 return false; 435 }); 436 } 437 function resetForm($form) { 438 439 $form.find( 440 'input:text, input:password, input, input:file, select, textarea' 441 ) 442 .val(''); 443 444 $form.find('input:radio, input:checkbox') 445 .removeAttr('checked') 446 .removeAttr('selected'); 447 $form.find('button[type=submit]') 448 .attr("disabled", "disabled"); 449 450 451 } 452 }, 453 /* --------------------- 454 Subscribe Form 455 /* --------------------- */ 456 subscribeForm: function(){ 457 if ( $( "#subscribe_form" ).length !== 0 ) { 458 $('#subscribe_form').bootstrapValidator({ 459 container: 'tooltip', 460 feedbackIcons: { 461 valid: 'fa fa-check', 462 warning: 'fa fa-user', 463 invalid: 'fa fa-times', 464 validating: 'fa fa-refresh' 465 }, 466 fields: { 467 subscribe_email: { 468 validators: { 469 notEmpty: { 470 message: 'Email is required. Please enter email.' 471 }, 472 emailAddress: { 473 message: 'Please enter a correct email address.' 474 } 475 } 476 }, 477 } 478 }) 479 .on('success.form.bv', function(e) { 480 e.preventDefault(); 481 var $form = $(e.target), 482 validator = $form.data('bootstrapValidator'), 483 submitButton = validator.getSubmitButton(); 484 var form_data = $('#subscribe_form').serialize(); 485 $.ajax({
486 type: "POST", 487 dataType: 'json', 488 url: "php/subscription.php", 489 data: form_data, 490 success: function(msg){ 491 $('.form-message1').html(msg.data); 492 $('.form-message1').show(); 493 submitButton.removeAttr("disabled"); 494 resetForm($('#subscribe_form')); 495 }, 496 error: function(msg){} 497 }); 498 return false; 499 }); 500 } 501 function resetForm($form) { 502 503 $form.find( 504 'input:text, input:password, input, input:file, select, textarea' 505 ) 506 .val(''); 507 508 $form.find('input:radio, input:checkbox') 509 .removeAttr('checked') 510 .removeAttr('selected'); 511 $form.find('button[type=submit]') 512 .attr("disabled", "disabled"); 513 514 } 515 }, 516 /* -------------------------------------------- 517 Scroll Navigation 518 -------------------------------------------- */ 519 navMenu: function(){ 520 jQuery('.scroll').bind('click', function(event) { 521 var $anchor = jQuery(this); 522 var headerH = jQuery('#navigation').outerHeight(); 523 jQuery('html, body').stop().animate({ 524 scrollTop : jQuery($anchor.attr('href')).offset().top - 60 + "px" 525 }, 1200, 'easeInOutExpo'); 526 event.preventDefault(); 527 }); 528 /* Active When Scroll */ 529 jQuery('body').scrollspy({ 530 target: '#topnav', 531 offset: 95 532 }) 533 /* Responsive Auto Close */ 534 $('.one-page .nav li a').click(function () { 535 $('.navbar-collapse').removeClass('in'); 536 }); 537 /* Smooth Scroll Links */ 538 jQuery('.page-scroll a') 539 .bind('click', function(event) { 540 var $anchor = jQuery(this); 541 jQuery('html, body') 542 .stop() 543 .animate({ 544 scrollTop: jQuery($anchor.attr('href')) 545 .offset() 546 .top 547 }, 1500, 'easeInOutExpo'); 548 event.preventDefault(); 549 }); 550 }, 551 /* -------------------------------------------- 552 Scroll Navigation 553 -------------------------------------------- */ 554 /* Text Tying Slider */ 555 typedSlider: function() { 556 jQuery(".element").each(function(){ 557 var $this = jQuery(this); 558 $this.typed({ 559 strings: $this.attr('data-elements').split(','), 560 typeSpeed: 100, 561 backDelay: 3000 562 }); 563 }); 564 }, 565 /* -------------------------------------------- 566 Video Slider 567 -------------------------------------------- */ 568 videotextSlider: function() { 569 $(function() { 570 "use strict"; 571 if ( jQuery( ".video-slider-text" ).length !== 0 ) { 572 jQuery('.video-slider-text').easyTicker({ 573 direction: 'up', 574 speed: 'slow', 575 interval: 4000, 576 height: 'auto', 577 visible: 1, 578 mousePause: 0, 579 }); 580 } 581 }); 582 }, 583 /* -------------------------------------------- 584 Day Counter 585 -------------------------------------------- */ 586 countDown: function() { 587 $('.daycounter').each(function(){ 588 var counter_id = $(this).attr('id'); 589 var counter_type = $(this).data('counter'); 590 var year = $(this).data('year'); 591 var month = $(this).data('month'); 592 var date = $(this).data('date'); 593 var countDay = new Date(); 594 countDay = new Date(year, month - 1, date); 595 if( counter_type == "down" ) { 596 $("#"+counter_id).countdown({ 597 labels: ['Years', 'Months', 'Weeks', 'Days', 'Hours', 'Mins', 'Secs'], 598 labels1: ['Year', 'Month', 'Week', 'Day', 'Hour', 'Min', 'Sec'], 599 until: countDay 600 }); 601 } else if( counter_type == "up" ) { 602 $("#"+counter_id).countdown({ 603 labels: ['Years', 'Months', 'Weeks', 'Days', 'Hours', 'Mins', 'Secs'], 604 labels1: ['Year', 'Month', 'Week', 'Day', 'Hour', 'Min', 'Sec'], 605 since: countDay 606 }); 607 } 608 }); 609 }, 610 611 612 /* -------------------------------------------- 613 Social Feeds 614 -------------------------------------------- */ 615 socialPhotostream: function() { 616 617 if( $(".my-feeds").length != 0 ) { 618 /* ================ FLICKR FEED ================ */ 619 $('.flickr-feed').socialstream({ 620 socialnetwork: 'flickr', 621 limit: 12, 622 username: 'google' 623 }) 624 /* ================ PINTEREST FEED ================ */ 625 $('.pinterest-feed').socialstream({ 626 socialnetwork: 'pinterest', 627 limit: 12, 628 username: 'vmrkela' 629 }) 630 /* ================ INSTAGRAM FEED ================ */ 631 $('.instagram-feed').socialstream({ 632 socialnetwork: 'instagram', 633 limit: 12, 634 username: 'google' 635 }) 636 /* ================ INSTAGRAM FOOTER FEED ================ */ 637 $('.instagram-footer-feed').socialstream({ 638 socialnetwork: 'instagram', 639 limit: 10, 640 username: 'google' 641 }) 642 /* ================ DRIBBBLE FEED ================ */ 643 $('.dribbble-feed').socialstream({ 644 socialnetwork: 'dribbble', 645 limit: 12, 646 username: 'envato' 647 }) 648 /* ================ NEWSFEED ================ */ 649 $('.instagram-footer-feed').socialstream({ 650 socialnetwork: 'newsfeed', 651 limit: 10, 652 username: '#' 653 }) 654 /* ================ PICASA FEED ================ */ 655 $('.picasa-feed').socialstream({ 656 socialnetwork: 'picasa', 657 limit: 12, 658 username: 'envato' 659 }); 660 /* ================ YOUTUBE FEED ================ */ 661 $('.youtube-feed').socialstream({ 662 socialnetwork: 'youtube', 663 limit: 12, 664 username: 'Envato' 665 }) 666 667 } 668 }, 669 /* -------------------------------------------- 670 Price Range Slier 671 -------------------------------------------- */ 672 priceRange: function() { 673 if( $(".range").length != 0 ) { 674 $('.range').nstSlider({ 675 "left_grip_selector": ".leftGrip", 676 "right_grip_selector": ".rightGrip", 677 "value_bar_selector": ".bar", 678 "value_changed_callback": function(cause, leftValue, rightValue) { 679 var $container = $(this).parent(); 680 $container.find('.leftLabel').text(leftValue); 681 $container.find('.rightLabel').text(rightValue); 682 }, 683 "highlight": { 684 "grip_class": "gripHighlighted", 685 "panel_selector": ".highlightPanel" 686 } 687 }); 688 $('#highlightRangeButton').click(function() { 689 var highlightMin = Math.random() * 20, 690 highlightMax = highlightMin + Math.random() * 80; 691 $('.nstSlider').nstSlider('highlight_range', highlightMin, highlightMax); 692 }); 693 } 694 }, 695 /*==========Navigation Menu============*/ 696 sideNav: function() { 697 $("#navigation-menu").click(function(e) { 698 e.preventDefault(); 699 $("#wrapper .toggle-menu").animate({ right: '0px' }, "slow"); 700 return false; 701 }); 702 $("#navigation-close").click(function(e) { 703 e.preventDefault(); 704 $("#wrapper .toggle-menu").animate({ right: '-50%' }, "slow"); 705 return false; 706 }); 707 708 /* ----------- Menus hide after click -- mobile devices ----------- */ 709 710 $('#wrapper .nav li a').click(function () { 711 $("#wrapper .toggle-menu").animate({ right: '-50%' }, "slow"); 712 return false; 713 }); 714 715 $('.scroll-2').bind('click', function(event) { 716 var $anchor = $(this); 717 var headerH = $('#navigation-menu').outerHeight(); 718 $('html, body').stop().animate({ 719 scrollTop : $($anchor.attr('href')).offset().top + 1 + "px" 720 }, 1200, 'easeInOutExpo'); 721 event.preventDefault(); 722 }); 723 }, 724
725 /* Background image height equal to the browser height. */ 726 fullScreen: function() { 727 $('.full-screen').css({ 'height': $(window).height() }); 728 $(window).on('resize', function() { 729 $('.full-screen').css({ 'height': $(window).height() }); 730 }); 731 }, 732 733 fancySelect: function() { 734 "use strict"; 735 if ( $( ".fancy-select" ).length !== 0 ) { 736 $('.fancy-select').fancySelect(); 737 } 738 }, 739 740 741 hiddenFooter: function() { 742 var footer_height = $(".hidden-footer").height(); 743 $('#page').css({ 'margin-bottom': footer_height + "px" }); 744 $('.hidden-footer').css({ 'height': footer_height + "px" }); 745 $('.hidden-footer').css({ 'max-height': footer_height + "px" }); 746 $(window).on('resize', function() { 747 $('#page').css({ 'margin-bottom': footer_height + "px" }); 748 $('.hidden-footer').css({ 'height': footer_height + "px" }); 749 $('.hidden-footer').css({ 'max-height': footer_height + "px" }); 750 }); 751 }, 752 753 /* -------------------------------------------- 754 Charts 755 -------------------------------------------- */ 756 allCharts: function() { 757 758 jQuery(window).load( function(){ 759 var lineChartData = { 760 labels : ["January","February","March","April","May","June","July"], 761 datasets : [ 762 { 763 fillColor : "rgba(220,220,220,.5)", 764 strokeColor : "rgba(220,220,220,1)", 765 pointColor : "rgba(220,220,220,1)", 766 pointStrokeColor : "#fff", 767 data : [10,20,40,70,100,90,40] 768 }, 769 { 770 fillColor : "rgba(151,187,205,0.5)", 771 strokeColor : "rgba(151,187,205,1)", 772 pointColor : "rgba(151,187,205,1)", 773 pointStrokeColor : "#fff", 774 data : [70,30,60,40,50,30,60] 775 }, 776 { 777 fillColor : "rgba(255,196,0,0.5)", 778 strokeColor : "rgba(151,187,205,1)", 779 pointColor : "rgba(151,187,205,1)", 780 pointStrokeColor : "#fff", 781 data : [10,40,100,70,30,80,50] 782 } 783 ] 784 }; 785 786 var barChartData = { 787 labels : ["January","February","March","April","May","June","July"], 788 datasets : [ 789 { 790 fillColor : "rgba(255,196,0,0.5)", 791 strokeColor : "rgba(220,220,220,1)", 792 data : [50,70,90,60,70,40,50] 793 } 794 ] 795 796 }; 797 798 var radarChartData = { 799 labels : ["Html5","Css3","Jquery","Wordpress","Joomla","Drupal","Design"], 800 datasets : [ 801 { 802 fillColor : "rgba(220,220,220,0.5)", 803 strokeColor : "rgba(220,220,220,1)", 804 pointColor : "rgba(220,220,220,1)", 805 pointStrokeColor : "#fff", 806 data : [65,59,90,81,56,55,40] 807 }, 808 { 809 fillColor : "rgba(255,196,0,0.5)", 810 strokeColor : "rgba(255,196,0,1)", 811 pointColor : "rgba(255,196,0,1)", 812 pointStrokeColor : "#fff", 813 data : [28,48,40,19,96,27,100] 814 } 815 ] 816 817 }; 818 819 var pieChartData = [ 820 { 821 value: 90, 822 color:"#ffc400" 823 }, 824 { 825 value : 30, 826 color : "#229e05" 827 }, 828 { 829 value : 60, 830 color : "#171717" 831 }, 832 { 833 value : 100, 834 color : "#004eff" 835 }, 836 { 837 value : 20, 838 color : "#584A5E" 839 } 840 841 ]; 842 843 var polarAreaChartData = [ 844 { 845 value : 60, 846 color: "#ffc400" 847 }, 848 { 849 value : 70, 850 color: "#cccccc" 851 }, 852 { 853 value : 60, 854 color: "#171717" 855 }, 856 { 857 value : 30, 858 color: "#229e05" 859 }, 860 { 861 value : 50, 862 color: "#004eff" 863 }, 864 { 865 value : 20, 866 color: "#584A5E" 867 } 868 ]; 869 870 var doughnutChartData = [ 871 { 872 value: 30, 873 color:"#ffc400" 874 }, 875 { 876 value : 50, 877 color : "#cccccc" 878 }, 879 { 880 value : 100, 881 color : "#171717" 882 }, 883 { 884 value : 40, 885 color : "#004eff" 886 }, 887 { 888 value : 120, 889 color : "#4D5360" 890 } 891 ]; 892 893 function showLineChart(){ 894 var ctx = document.getElementById("lineChartmist").getContext("2d"); 895 new Chart(ctx).Line(lineChartData, { responsive: true }); 896 } 897 898 function showBarChart(){ 899 var ctx = document.getElementById("barChartmist").getContext("2d"); 900 new Chart(ctx).Bar(barChartData, { responsive: true }); 901 } 902 903 function showRadarChart(){ 904 var ctx = document.getElementById("radarChartmist").getContext("2d"); 905 new Chart(ctx).Radar(radarChartData, { responsive: true }); 906 } 907 908 function showPolarAreaChart(){ 909 var ctx = document.getElementById("polarAreaChartmist").getContext("2d"); 910 new Chart(ctx).PolarArea(polarAreaChartData, { responsive: true }); 911 } 912 913 function showPieChart(){ 914 var ctx = document.getElementById("pieChartmist").getContext("2d"); 915 new Chart(ctx).Pie(pieChartData,{ responsive: true }); 916 } 917 function showDoughnutChart(){ 918 var ctx = document.getElementById("doughnutChartmist").getContext("2d");
919 new Chart(ctx).Doughnut(doughnutChartData,{ responsive: true }); 920 } 921 922 $('#lineChart').appear( function(){ $(this).css({ opacity: 1 }); setTimeout(showLineChart,300); },{accX: 0, accY: -155},'easeInCubic'); 923 924 $('#barChart').appear( function(){ $(this).css({ opacity: 1 }); setTimeout(showBarChart,300); },{accX: 0, accY: -155},'easeInCubic'); 925 926 $('#radarChart').appear( function(){ $(this).css({ opacity: 1 }); setTimeout(showRadarChart,300); },{accX: 0, accY: -155},'easeInCubic'); 927 928 $('#polarAreaChart').appear( function(){ $(this).css({ opacity: 1 }); setTimeout(showPolarAreaChart,300); },{accX: 0, accY: -155},'easeInCubic'); 929 930 $('#pieChart').appear( function(){ $(this).css({ opacity: 1 }); setTimeout(showPieChart,300); },{accX: 0, accY: -155},'easeInCubic'); 931 932 $('#doughnutChart').appear( function(){ $(this).css({ opacity: 1 }); setTimeout(showDoughnutChart,300); },{accX: 0, accY: -155},'easeInCubic'); 933 934 }); 935 936 }, 937 /* -------------------------------------------- 938 Masonry Grid 939 -------------------------------------------- */ 940 masonryGrid: function(){ 941 942 $('.masonry-grid').each(function(){ 943 var $port_container = $(this); 944 945 var filter_selector = $port_container.parent().find('.works-filters li.active').data('filter'); 946 947 $port_container.imagesLoaded(function(){ 948 $port_container.isotope({ 949 itemSelector: '.grid-item', 950 filter: filter_selector, 951 animationEngine: "css", 952 masonry: { 953 columnWidth: '.grid-sizer' 954 } 955 }); 956 }); 957 958 /* Portfolio Filter Items */ 959 $('.works-filters li').click(function(){ 960 $(this).parents().find('.works-filters li.active').removeClass('active'); 961 $(this).addClass('active'); 962 var selector = $(this).parents().find('.works-filters li.active').attr('data-filter'); 963 $(this).parents().find('.masonry-grid').isotope({ filter: selector, animationEngine : "css" }); 964 965 return false; 966 }); 967 }); 968 969 }, 970 /* -------------------------------------------- 971 Product Zoom 972 -------------------------------------------- */ 973 productZoom: function(){ 974 if ( $( ".single-product" ).length !== 0 ) { 975 var zoomWindowWidth; 976 var zoomWindowHeight; 977 978 zoomWindowWidth : 400; 979 zoomWindowHeight : 470; 980 zoomType = 'window'; 981 982 if ($(window).width() < 992) { 983 zoomWindowWidth : 0; 984 zoomWindowHeight : 0; 985 zoomType = 'inner'; 986 } 987 988 $("#zoom-product").elevateZoom({ 989 gallery:'zoom-product-thumb', 990 cursor: 'pointer', 991 galleryActiveClass: 'active', 992 imageCrossfade: true, 993 responsive: true, 994 scrollZoom: false, 995 zoomWindowWidth : zoomWindowWidth, 996 zoomWindowHeight : zoomWindowHeight, 997 zoomType : zoomType 998 }); 999 1000 $("#zoom-product").bind("click", function(e) { 1001 var ez = $('#zoom-product').data('elevateZoom'); 1002 $.fancybox(ez.getGalleryList()); 1003 return false; 1004 }); 1005 $('#plus').click(function() { 1006 $('#output').html(function(i, val) { return val*1+1 }); 1007 }); 1008 $('#minus').click(function() { 1009 $('#output').html(function(i, val) { return val*1-1 }); 1010 }); 1011 } 1012 }, 1013 1014 /* -------------------------------------------- 1015 Local Hosted Video Player 1016 -------------------------------------------- */ 1017 1018 hostedVideo: function(){ 1019 if ( $( ".video-section" ).length !== 0 ) { 1020 var player = videojs('really-cool-video', { /* Options */ }, function() { 1021 console.log('Good to go!'); 1022 1023 this.play(); 1024 1025 this.on('ended', function() { 1026 console.log('awww...over so soon?'); 1027 }); 1028 }); 1029 } 1030 }, 1031 1032 /* -------------------------------------------- 1033 Local Hosted Video Player 1034 -------------------------------------------- */ 1035 gridRotator: function(){ 1036 if ( $( "#ri-grid" ).length !== 0 ) { 1037 $( '#ri-grid' ).gridrotator( { 1038 rows : 3, 1039 columns : 8, 1040 interval : 2000, 1041 animType : 'random', 1042 animSpeed : 1000, 1043 step : 2, 1044 w1024 : { rows : 4, columns : 6 }, 1045 w768 : {rows : 4,columns : 5 }, 1046 w480 : {rows : 4,columns : 3 }, 1047 w320 : {rows : 4,columns : 2 }, 1048 w240 : {rows : 4,columns : 2 }, 1049 }); 1050 } 1051 }, 1052 1053 /* -------------------------------------------- 1054 Local Hosted Video Player 1055 -------------------------------------------- */ 1056 datePicker: function(){ 1057 if ( $( ".date-picker" ).length !== 0 ) { 1058 $(function () { 1059 $('.date-picker').datetimepicker({ 1060 format: 'DD/MM/YYYY' 1061 }); 1062 }); 1063 } 1064 }, 1065 timePicker: function(){ 1066 if ( $( ".time-picker" ).length !== 0 ) { 1067 $(function () { 1068 $('.time-picker').datetimepicker({ 1069 format: 'LT' 1070 }); 1071 }); 1072 } 1073 } 1074 1075}; 1076 1077$(document).ready(function() { 1078 appMaster.pageLoader(); 1079 appMaster.navBar(); 1080 appMaster.toggleNav(); 1081 appMaster.owlCarousel(); 1082 appMaster.progressBar(); 1083 appMaster.dataAnimations(); 1084 appMaster.bgImage(); 1085 appMaster.funFactor(); 1086 appMaster.parallaxBg(); 1087 appMaster.portfolioFilter(); 1088 appMaster.prettyPhoto(); 1089 //appMaster.backgroundVideo(); 1090 //appMaster.simplecontactForm(); 1091 //appMaster.subscribeForm(); 1092 appMaster.navMenu(); 1093 //appMaster.typedSlider(); 1094 //appMaster.videotextSlider(); 1095 //appMaster.countDown(); 1096 //appMaster.socialPhotostream(); 1097 //appMaster.priceRange(); 1098 //appMaster.allCharts(); 1099 //appMaster.masonryGrid(); 1100 appMaster.productZoom(); 1101 appMaster.sideNav(); 1102 appMaster.fullScreen(); 1103 appMaster.fancySelect(); 1104 //appMaster.hostedVideo(); 1105 appMaster.gridRotator(); 1106 //appMaster.datePicker(); 1107 //appMaster.timePicker(); 1108 1109}); 1110 1111 1112 1113/*---------------STICKY NAVIGATION------------------*/ 1114var header = jQuery('#slider-section'), 1115 headerPos = header.offset(); 1116 1117 $(window).scroll(function() { 1118 if( $(".side-nav").length != 0 ) { 1119 if( $(this).scrollTop() > headerPos.top+header.height() ) { 1120 $('#sticky').addClass('nav-fixed').fadeIn('medium'); 1121 } else { 1122 $('#sticky').removeClass('nav-fixed').fadeIn('medium'); 1123 } 1124 } 1125}); 1126 1127$(window).load(function() { 1128 appMaster.hiddenFooter(); 1129 appMaster.masonryGrid(); 1130});
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.