1jQuery(function($){ 2 3 "use strict"; 4 5 /* ================================================== 6 Progress Bar 7 ================================================== */ 8 9 $(document).ready(function(){ 10 11 $('.ve-progress-bar').each(function(){ 12 13 $(this).appear(function(){ 14 15 var percent = $(this).find('span').attr('data-width'); 16 var $endNum = parseInt($(this).find('span strong i').text()); 17 var $that = $(this); 18 19 $(this).find('span').animate({ 20 'width' : percent + '%' 21 },2500, 'easeOutCirc',function(){ 22 }); 23 24 $(this).find('span strong').animate({ 25 'opacity' : 1 26 },3500); 27 28 29 $(this).find('span strong i').countTo({ 30 from: 0, 31 to: $endNum, 32 speed: 1100, 33 refreshInterval: 30, 34 onComplete: function(){ 35 36 } 37 }); 38 39 ////100% progress bar 40 if(percent === '100'){ 41 $that.find('span strong').addClass('full'); 42 } 43 44 }); 45 }); 46 47 }); 48 49 /* ================================================== 50 Circular Progress Bar 51 ================================================== */ 52 53 $(document).ready(function(){ 54 55 var chart = $(".chart"); 56 57 $(chart).each(function() { 58 59 $(this).appear(function(){ 60 61 var currentChart = $(this), 62 thickness = currentChart.attr('thickness'), 63 size = currentChart.attr('size'); 64 65 currentChart.easyPieChart({ 66 animate: 2000, 67 lineWidth: thickness, 68 size: size, 69 scaleColor: false, 70 onStep: function(from, to, percent) { 71 $(this.el).find('.percent').text(Math.round(percent)); 72 } 73 }); 74 75 }); 76 }); 77 78 }); 79 80 /* ================================================== 81 Counter 82 ================================================== */ 83 84 $(document).ready(function(){ 85 86 var counter = $(".counter"); 87 88 $(counter).each(function() { 89 90 $(this).appear(function(){ 91 92 var value = $(this).find('div.counter-data').attr('value'); 93 var speed = $(this).find('div.counter-data').attr('value-speed'); 94 var interval = $(this).find('div.counter-data').attr('value-interval'); 95 96 $(this).find('.counter-value').countTo({ 97 from: 0, 98 to: value, 99 speed: speed, 100 refreshInterval: interval, 101 onComplete: function(){ 102 103 } 104 }); 105 106 }); 107 }); 108 109 }); 110 111 112 /* ================================================== 113 Testimonial 114 ================================================== */ 115 116 $(document).ready(function(){ 117 118 if($('.testimonial').length > 0 ){ 119 $('.testimonial').flexslider({ 120 animation:"slide", 121 controlNav: true, 122 directionNav: false, 123 controlsContainer: '.testimonials-container', 124 }); 125 } 126 127 }); 128 129 130 /* ================================================== 131 Tweets 132 ================================================== */ 133 134 $(document).ready(function(){ 135 136 if($('.twitter-feed .slides').length > 0 ){ 137 $('.twitter-feed').flexslider({ 138 animation:"slide", 139 controlNav: false, 140 directionNav: false, 141 controlsContainer: '.twitter-feed', 142 }); 143 } 144 145 }); 146 147 148 /* ================================================== 149 Portfolio 150 ================================================== */ 151 152 // Filter Portfolio 153 $(window).load(function(){ 154 155 if($('#portfolio-projects').length > 0){ 156 157 var $grid = $('#portfolio-projects').isotope({ 158 // main isotope options 159 itemSelector: '.item-project', 160 // set layoutMode 161 layoutMode: 'masonry', 162 // options for masonry layout mode 163 masonry: { 164 columnWidth: '.item-project' 165 } 166 }); 167 168 169 // filter items when filter link is clicked 170 var $optionSets = $('#portfolio-filter .option-set'), 171 $optionLinks = $optionSets.find('a'); 172 173 $optionLinks.click(function(){ 174 var $this = $(this); 175 // don't proceed if already selected 176 if ( $this.hasClass('selected') ) { 177 return false;
178 } 179 var $optionSet = $this.parents('.option-set'); 180 $optionSet.find('.selected').removeClass('selected'); 181 $this.addClass('selected'); 182 183 // make option object dynamically, i.e. { filter: '.my-filter-class' } 184 var options = {}, 185 key = $optionSet.attr('data-option-key'), 186 value = $this.attr('data-option-value'); 187 // parse 'false' as false boolean 188 value = value === 'false' ? false : value; 189 options[ key ] = value; 190 if ( key === 'layoutMode' && typeof changeLayoutMode === 'function' ) { 191 // changes in layout modes need extra logic 192 changeLayoutMode( $this, options ); 193 } else { 194 // otherwise, apply new options 195 $grid.isotope( options ); 196 } 197 198 return false; 199 }); 200 } 201 202 }); 203 204 // Set Portfolio Thumbnails Size 205 $(window).load(function(){ 206 207 if($('.item-project').length > 0 ){ 208 $(".item-project").each(function () { 209 var e = $(".project-name", this).height(), 210 t = $(".project-name", this).width(); 211 $(".project-name .va", this).css("height", e).css("width", t); 212 }); 213 } 214 215 }); 216 217 218 /* ================================================== 219 Team 220 ================================================== */ 221 222 // Filter Team 223 $(window).load(function(){ 224 225 if($('#team-people').length > 0){ 226 227 var $grid = $('#team-people').isotope({ 228 // main isotope options 229 itemSelector: '.single-people', 230 // set layoutMode 231 layoutMode: 'masonry', 232 // options for masonry layout mode 233 masonry: { 234 columnWidth: '.single-people' 235 } 236 }); 237 238 // filter items when filter link is clicked 239 var $optionSets = $('#team-filter .option-set'), 240 $optionLinks = $optionSets.find('a'); 241 242 $optionLinks.click(function(){ 243 var $this = $(this); 244 // don't proceed if already selected 245 if ( $this.hasClass('selected') ) { 246 return false; 247 } 248 var $optionSet = $this.parents('.option-set'); 249 $optionSet.find('.selected').removeClass('selected'); 250 $this.addClass('selected'); 251 252 // make option object dynamically, i.e. { filter: '.my-filter-class' } 253 var options = {}, 254 key = $optionSet.attr('data-option-key'), 255 value = $this.attr('data-option-value'); 256 // parse 'false' as false boolean 257 value = value === 'false' ? false : value; 258 options[ key ] = value; 259 if ( key === 'layoutMode' && typeof changeLayoutMode === 'function' ) { 260 // changes in layout modes need extra logic 261 changeLayoutMode( $this, options ); 262 } else { 263 // otherwise, apply new options 264 $grid.isotope( options ); 265 } 266 267 return false; 268 }); 269 } 270 271 }); 272 273 // Set Team Thumbnails Size 274 $(window).load(function(){ 275 276 if($('.single-people').length > 0 ){ 277 $(".single-people").each(function () { 278 var e = $(".team-name", this).height(), 279 t = $(".team-name", this).width(); 280 $(".team-name .va", this).css("height", e).css("width", t); 281 }); 282 } 283 284 }); 285 286 287 /* ================================================== 288 Masonry Blog 289 ================================================== */ 290 291 $(window).load(function(){ 292 293 if($('.masonry-blog').length > 0){ 294 295 var $grid = $('.masonry-area').isotope({ 296 // main isotope options 297 itemSelector: '.item-blog', 298 // set layoutMode 299 layoutMode: 'masonry', 300 // options for masonry layout mode 301 masonry: { 302 columnWidth: '.item-blog' 303 } 304 }); 305 306 } 307 308 }); 309 310 311 /* ================================================== 312 FancyBox 313 ================================================== */ 314 315 $(document).ready(function(){ 316 if($('.fancybox').length > 0 || $('.fancybox-media').length > 0 || $('.fancybox-various').length > 0){ 317 318 $(".fancybox").fancybox({ 319 padding : 0, 320 helpers : { 321 title : { type: 'inside' }, 322 }, 323 afterLoad : function() { 324 this.title = '<span class="counter-img">' + (this.index + 1) + ' / ' + this.group.length + '</span>' + (this.title ? '' + this.title : ''); 325 } 326 }); 327 328 $('.fancybox-media').fancybox({ 329 padding : 0, 330 helpers : { 331 media : true 332 }, 333 openEffect : 'none', 334 closeEffect : 'none', 335 width : 800, 336 height : 450, 337 aspectRatio : true, 338 scrolling : 'no' 339 }); 340 341 $(".fancybox-various").fancybox({ 342 maxWidth : 800, 343 maxHeight : 600, 344 fitToView : false, 345 width : '70%', 346 height : '70%', 347 autoSize : false, 348 closeClick : false, 349 openEffect : 'none', 350 closeEffect : 'none' 351 }); 352 } 353 }); 354 355 356}); //End Strict
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.