1/*global jQuery:false */ 2jQuery(document).ready(function($) { 3"use strict"; 4 5 6 //add some elements with animate effect 7 8 $(".big-cta").hover( 9 function () { 10 $('.cta a').addClass("animated shake"); 11 }, 12 function () { 13 $('.cta a').removeClass("animated shake"); 14 } 15 ); 16 $(".box").hover( 17 function () { 18 $(this).find('.icon').addClass("animated fadeInDown"); 19 $(this).find('p').addClass("animated fadeInUp"); 20 }, 21 function () { 22 $(this).find('.icon').removeClass("animated fadeInDown"); 23 $(this).find('p').removeClass("animated fadeInUp"); 24 } 25 ); 26 27 28 $('.accordion').on('show', function (e) { 29 30 $(e.target).prev('.accordion-heading').find('.accordion-toggle').addClass('active'); 31 $(e.target).prev('.accordion-heading').find('.accordion-toggle i').removeClass('icon-plus'); 32 $(e.target).prev('.accordion-heading').find('.accordion-toggle i').addClass('icon-minus'); 33 }); 34 35 $('.accordion').on('hide', function (e) { 36 $(this).find('.accordion-toggle').not($(e.target)).removeClass('active'); 37 $(this).find('.accordion-toggle i').not($(e.target)).removeClass('icon-minus'); 38 $(this).find('.accordion-toggle i').not($(e.target)).addClass('icon-plus'); 39 }); 40 41 42 // tooltip 43 $('.social-network li a, .options_box .color a').tooltip(); 44 45 // fancybox 46 $(".fancybox").fancybox({ 47 padding : 0, 48 autoResize: true, 49 beforeShow: function () { 50 this.title = $(this.element).attr('title'); 51 this.title = '<h4>' + this.title + '</h4>' + '<p>' + $(this.element).parent().find('img').attr('alt') + '</p>'; 52 }, 53 helpers : { 54 title : { type: 'inside' }, 55 } 56 }); 57 58 59 //scroll to top 60 $(window).scroll(function(){ 61 if ($(this).scrollTop() > 100) { 62 $('.scrollup').fadeIn(); 63 } else { 64 $('.scrollup').fadeOut(); 65 } 66 }); 67 $('.scrollup').click(function(){ 68 $("html, body").animate({ scrollTop: 0 }, 1000); 69 return false; 70 }); 71 $('#post-slider').flexslider({ 72 // Primary Controls 73 controlNav : false, //Boolean: Create navigation for paging control of each clide? Note: Leave true for manualControls usage 74 directionNav : true, //Boolean: Create navigation for previous/next navigation? (true/false) 75 prevText : "Previous", //String: Set the text for the "previous" directionNav item 76 nextText : "Next", //String: Set the text for the "next" directionNav item 77 78 // Secondary Navigation 79 keyboard : true, //Boolean: Allow slider navigating via keyboard left/right keys 80 multipleKeyboard : false, //{NEW} Boolean: Allow keyboard navigation to affect multiple sliders. Default behavior cuts out keyboard navigation with more than one slider present. 81 mousewheel : false, //{UPDATED} Boolean: Requires jquery.mousewheel.js (https://github.com/brandonaaron/jquery-mousewheel) - Allows slider navigating via mousewheel 82 pausePlay : false, //Boolean: Create pause/play dynamic element 83 pauseText : 'Pause', //String: Set the text for the "pause" pausePlay item 84 playText : 'Play', //String: Set the text for the "play" pausePlay item 85 86 // Special properties 87 controlsContainer : "", //{UPDATED} Selector: USE CLASS SELECTOR. Declare which container the navigation elements should be appended too. Default container is the FlexSlider element. Example use would be ".flexslider-container". Property is ignored if given element is not found. 88 manualControls : "", //Selector: Declare custom control navigation. Examples would be ".flex-control-nav li" or "#tabs-nav li img", etc. The number of elements in your controlNav should match the number of slides/tabs. 89 sync : "", //{NEW} Selector: Mirror the actions performed on this slider with another slider. Use with care. 90 asNavFor : "", //{NEW} Selector: Internal property exposed for turning the slider into a thumbnail navigation for another slider 91 });
92 93 $('#main-slider').flexslider({ 94 namespace : "flex-", //{NEW} String: Prefix string attached to the class of every element generated by the plugin 95 selector : ".slides > li", //{NEW} Selector: Must match a simple pattern. '{container} > {slide}' -- Ignore pattern at your own peril 96 animation : "fade", //String: Select your animation type, "fade" or "slide" 97 easing : "swing", //{NEW} String: Determines the easing method used in jQuery transitions. jQuery easing plugin is supported! 98 direction : "horizontal", //String: Select the sliding direction, "horizontal" or "vertical" 99 reverse : false, //{NEW} Boolean: Reverse the animation direction 100 animationLoop : true, //Boolean: Should the animation loop? If false, directionNav will received "disable" classes at either end 101 smoothHeight : false, //{NEW} Boolean: Allow height of the slider to animate smoothly in horizontal mode 102 startAt : 0, //Integer: The slide that the slider should start on. Array notation (0 = first slide) 103 slideshow : true, //Boolean: Animate slider automatically 104 slideshowSpeed : 7000, //Integer: Set the speed of the slideshow cycling, in milliseconds 105 animationSpeed : 600, //Integer: Set the speed of animations, in milliseconds 106 initDelay : 0, //{NEW} Integer: Set an initialization delay, in milliseconds 107 randomize : false, //Boolean: Randomize slide order 108 109 // Usability features 110 pauseOnAction : true, //Boolean: Pause the slideshow when interacting with control elements, highly recommended. 111 pauseOnHover : false, //Boolean: Pause the slideshow when hovering over slider, then resume when no longer hovering 112 useCSS : true, //{NEW} Boolean: Slider will use CSS3 transitions if available 113 touch : true, //{NEW} Boolean: Allow touch swipe navigation of the slider on touch-enabled devices 114 video : false, //{NEW} Boolean: If using video in the slider, will prevent CSS3 3D Transforms to avoid graphical glitches 115 116 // Primary Controls 117 controlNav : true, //Boolean: Create navigation for paging control of each clide? Note: Leave true for manualControls usage 118 directionNav : true, //Boolean: Create navigation for previous/next navigation? (true/false) 119 prevText : "Previous", //String: Set the text for the "previous" directionNav item 120 nextText : "Next", //String: Set the text for the "next" directionNav item 121 122 // Secondary Navigation 123 keyboard : true, //Boolean: Allow slider navigating via keyboard left/right keys 124 multipleKeyboard : false, //{NEW} Boolean: Allow keyboard navigation to affect multiple sliders. Default behavior cuts out keyboard navigation with more than one slider present. 125 mousewheel : false, //{UPDATED} Boolean: Requires jquery.mousewheel.js (https://github.com/brandonaaron/jquery-mousewheel) - Allows slider navigating via mousewheel 126 pausePlay : false, //Boolean: Create pause/play dynamic element 127 pauseText : 'Pause', //String: Set the text for the "pause" pausePlay item 128 playText : 'Play', //String: Set the text for the "play" pausePlay item 129 130 // Special properties 131 controlsContainer : "", //{UPDATED} Selector: USE CLASS SELECTOR. Declare which container the navigation elements should be appended too. Default container is the FlexSlider element. Example use would be ".flexslider-container". Property is ignored if given element is not found. 132 manualControls : "", //Selector: Declare custom control navigation. Examples would be ".flex-control-nav li" or "#tabs-nav li img", etc. The number of elements in your controlNav should match the number of slides/tabs. 133 sync : "", //{NEW} Selector: Mirror the actions performed on this slider with another slider. Use with care. 134 asNavFor : "", //{NEW} Selector: Internal property exposed for turning the slider into a thumbnail navigation for another slider 135 });
136 137});
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.