jQuery.noConflict()(function($){ $(document).ready(function($) { /*STICKY NAVIGATION*/ var aboveHeight = $('#copyrights').outerHeight(); $(window).scroll(function(){ if ($(window).scrollTop() > aboveHeight && $(window).width() > 959 ) { $('#main-navigation.fixed').addClass('sticky'); } else { $('#main-navigation.fixed').removeClass('sticky'); } }); /*STICKY NAVIGATION*/ /*TWIITER*/ $.getJSON('twitter.php?url='+encodeURIComponent('statuses/user_timeline.json?screen_name=trendyWebStar&count=1'), function(tweets){ //Put your username here $("#twitter").html(tz_format_twitter(tweets)); }); /*PORTFOLIO HOVER*/ $('.portfolio-item-link').hover(function() { $(this).find('span.portfolio-item-hover').animate({opacity:1}, 200); }, function() { $(this).find('span.portfolio-item-hover').stop(0,0).animate({opacity: 0}, 200); }); /*----------------------------------------------------------*/ /*ISOTOPE JS */ /*----------------------------------------------------------*/ if ( $( '#portfolio-container' ).length && jQuery() ) { (function() { var $container = $('#portfolio-container'); if( $container.length ) { var $itemsFilter = $('#filterable'); $('.isotope-item', $container).each(function(i) { var $this = $(this); $this.addClass( $this.attr('data-categories') ); }); $(window).on('load', function() { $container.isotope({ itemSelector : '.isotope-item', layoutMode : 'fitRows' }); }); $itemsFilter.on('click', 'a', function(e) { var $this = $(this), currentOption = $this.attr('data-categories'); $itemsFilter.find('a').removeClass('active'); $this.addClass('active'); if( currentOption ) { if( currentOption !== '*' ) currentOption = currentOption.replace(currentOption, '.' + currentOption) $container.isotope({ filter : currentOption }); } e.preventDefault(); }); $itemsFilter.find('a').first().addClass('active'); } })(); } /*----------------------------------------------------------*/ /*RESPONSIVE NAVIGATION JS */ /*----------------------------------------------------------*/ var $menu_select = $("