Sha256: 2030da3d689f30c6718775eadef58323b51c441e6d1cbad802b54ec3fac60344

Contents?: true

Size: 670 Bytes

Versions: 2

Compression:

Stored size: 670 Bytes

Contents

"use strict";

$(window).load(function() {
	$(".loader").delay(500).fadeOut();
	$("#mask").delay(1000).fadeOut("slow");
});

$(document).ready(function(){ 

$(".header").sticky({ topSpacing: 0 });

/* Menu Anchors */
$('a[href*=#]').click(function() {
 if (location.pathname.replace(/^\//,'') === this.pathname.replace(/^\//,'') && location.hostname === this.hostname) {
	 var $target = $(this.hash);
	 $target = $target.length && $target || $('[name=' + this.hash.slice(1) +']');
	 if ($target.length) {
		 var targetOffset = $target.offset().top;
		 $('html,body').animate({scrollTop: targetOffset-75}, 1000);
		 return false;
		}
	}
});


});

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
news_reader-0.1.1 fixtures/blog/index_files/main.js
news_reader-0.1.0 fixtures/blog/index_files/main.js