(function ($) { $(document) .ready(function () { selectnav('menu-responsive', { nested: true }); $(".photo-preview img") .fadeTo(1, 1); $(".photo-preview img") .hover( function () { $(this) .fadeTo("fast", 0.70); }, function () { $(this) .fadeTo("slow", 1); }); $(".flickr_badge_image img") .fadeTo(1, 1); $(".flickr_badge_image img") .hover( function () { $(this) .fadeTo("fast", 0.70); }, function () { $(this) .fadeTo("slow", 1); }); // ------------------------------------------------------------------------------------------------------- // Mosaic // ------------------------------------------------------------------------------------------------------- $('.bar-photo') .mosaic({ animation: 'slide', speed: 300 }); $('.bar-arc-photo') .mosaic({ animation: 'slide', speed: 300 }); $('.bar-arc-audio') .mosaic({ animation: 'slide', speed: 300 }); $('.bar-arc-video') .mosaic({ animation: 'slide', speed: 300 }); $('.bar-home-photo') .mosaic({ animation: 'slide', speed: 300 }); $('.bar-home-video') .mosaic({ animation: 'slide', speed: 300 }); $('.bar-home-audio') .mosaic({ animation: 'slide', speed: 300 }); $('.bar-home-audio') .mosaic({ animation: 'slide', speed: 300 }); $('.bar-widget-photo') .mosaic({ animation: 'slide', speed: 300 }); $('.bar-widget-video') .mosaic({ animation: 'slide', speed: 300 }); // ------------------------------------------------------------------------------------------------------- // Tabs // ------------------------------------------------------------------------------------------------------- $("#tabs ul") .idTabs(); // ------------------------------------------------------------------------------------------------------- // Toggle // ------------------------------------------------------------------------------------------------------- $("#tabs ul") .idTabs(); $(".toggle_container") .hide(); $(".trigger") .click(function () { jQuery(this) .toggleClass("active") .next() .slideToggle("fast"); return false; //Prevent the browser jump to the link anchor }); // ------------------------------------------------------------------------------------------------------- // Fixed DIV // ------------------------------------------------------------------------------------------------------- jQuery(document) .ready(function () { jQuery('.event-widgets:last') .addClass('last'); jQuery('.video-widget-cover:last') .addClass('last'); jQuery('.home-post:last') .addClass('last'); jQuery('.widget:last') .addClass('last'); }); // ------------------------------------------------------------------------------------------------------- // Responsive // ------------------------------------------------------------------------------------------------------- jQuery(document).ready(function () { jQuery("#btn-menu").click(function () { jQuery(".main-navigation").slideToggle(1000); }); }); jQuery(window).on("resize", function () { var latime = jQuery(window).width(); if (latime < 800) { jQuery(".main-navigation").hide(); jQuery("#btn-menu").show(); jQuery(".main-navigation").css("width", "100%"); } else { jQuery("#btn-menu").hide(); jQuery(".main-navigation").show(); } }); }); })(window.jQuery); /* playback timings (ms): LoadShardBlock: 177.943 (3) esindex: 0.01 captures_list: 574.21 CDXLines.iter: 20.135 (3) PetaboxLoader3.datanode: 184.391 (4) exclusion.robots.fetch: 368.055 (4) exclusion.robots: 368.877 exclusion.robots.policy: 0.349 RedisCDXSource: 2.187 PetaboxLoader3.resolve: 91.176 load_resource: 120.989 */