$(window).load(function() { $("#status").fadeOut(); $("#preloader").delay(350).fadeOut("slow"); }) new cbpScroller( document.getElementById( 'cbp-so-scroller' ) ); /*global $:false */ $(function(){"use strict"; $('#home').css({'height':($(window).height())+'px'}); $(window).resize(function(){ $('#home').css({'height':($(window).height())+'px'}); }); }); $(document).ready(function() { $('body').mousewheel(function(event, delta) { if (delta < 0) { $('body').scrollTo('+=100', 1500 ); } else $('body').scrollTo('-=100', 1500 ); return false; }); }); /*global $:false */ $(document).ready(function(){"use strict"; $(".scroll").click(function(event){ event.preventDefault(); var full_url = this.href; var parts = full_url.split("#"); var trgt = parts[1]; var target_offset = $("#"+trgt).offset(); var target_top = target_offset.top - 80; $('html, body').animate({scrollTop:target_top}, 1400); }); }); $(function(){ $('ul li a').click(function(){ var item=$(this).parent(); $('ul li').removeClass('current'); item.addClass("current") }); }); $(document).ready(function(){ $("#navigation").sticky({topSpacing:0}); $("ul#menu").click(function(){ if( $("ul#menu li").css('display') != 'inline' ){ if($("ul#menu").hasClass('showmenu')) { $("ul#menu").removeClass('showmenu'); $("ul#menu li").css('display','none'); } else { $("ul#menu").addClass('showmenu'); $("ul#menu li").css('display','block'); } } }); $(window).resize(function() { if( $(window).width() >= 960 ){ if( $("ul#menu li").css('display' ) == 'none' ) $("ul#menu li").css('display','inline'); } else{ $("ul#menu li").css('display','none'); } }); }); $(function(){ $('#maximage').maximage({ cycleOptions: { fx: 'fade', speed: 1000, // Has to match the speed for CSS transitions in jQuery.maximage.css (lines 30 - 33) timeout: 4000, prev: '#arrow_left', next: '#arrow_right', pause: 1, }, onFirstImageLoaded: function(){ jQuery('#cycle-loader').hide(); jQuery('#maximage').fadeIn('slow'); } }); }); $(function($) { $(".knob").knob({ change : function (value) { //console.log("change : " + value); }, release : function (value) { //console.log(this.$.attr('value')); console.log("release : " + value); }, cancel : function () { console.log("cancel : ", this); }, draw : function () { // "tron" case if(this.$.data('skin') == 'tron') { var a = this.angle(this.cv) // Angle , sa = this.startAngle // Previous start angle , sat = this.startAngle // Start angle , ea // Previous end angle , eat = sat + a // End angle , r = 1; this.g.lineWidth = this.lineWidth; this.o.cursor && (sat = eat - 0.3) && (eat = eat + 0.3); if (this.o.displayPrevious) { ea = this.startAngle + this.angle(this.v); this.o.cursor && (sa = ea - 0.3) && (ea = ea + 0.3); this.g.beginPath(); this.g.strokeStyle = this.pColor; this.g.arc(this.xy, this.xy, this.radius - this.lineWidth, sa, ea, false); this.g.stroke(); } this.g.beginPath(); this.g.strokeStyle = r ? this.o.fgColor : this.fgColor ; this.g.arc(this.xy, this.xy, this.radius - this.lineWidth, sat, eat, false); this.g.stroke(); this.g.lineWidth = 2; this.g.beginPath(); this.g.strokeStyle = this.o.fgColor; this.g.arc( this.xy, this.xy, this.radius - this.lineWidth + 1 + this.lineWidth * 2 / 3, 0, 2 * Math.PI, false); this.g.stroke(); return false; } } }); // Example of infinite knob, iPod click wheel var v, up=0,down=0,i=0 ,$idir = $("div.idir") ,$ival = $("div.ival") ,incr = function() { i++; $idir.show().html("+").fadeOut(); $ival.html(i); } ,decr = function() { i--; $idir.show().html("-").fadeOut(); $ival.html(i); }; $("input.infinite").knob( { min : 0 , max : 20 , stopper : false , change : function () { if(v > this.cv){ if(up){ decr(); up=0; }else{up=1;down=0;} } else { if(v < this.cv){ if(down){ incr(); down=0; }else{down=1;up=0;} } } v = this.cv; } }); }); $(document).ready(function(){ //.parallax(xPosition, speedFactor, outerHeight) options: //xPosition - Horizontal position of the element //inertia - speed to move relative to vertical scroll. Example: 0.1 is one tenth the speed of scrolling, 2 is twice the speed of scrolling //outerHeight (true/false) - Whether or not jQuery should use it's outerHeight option to determine when a section is in the viewport $('#parallax-1').parallax("50%", 0.2); $('#parallax-2').parallax("50%", 0.2); $('#parallax-3').parallax("50%", 0.2); $('#parallax-4').parallax("50%", 0.1); }); $(document).ready(function() { $('