Skip to content

Instantly share code, notes, and snippets.

http://www.1stwebdesigner.com/demos/parallax/
<!----- JQUERY FOR SLIDING NAVIGATION --->
$(document).ready(function() {
$('a[href*=#]').each(function() {
if (location.pathname.replace(/^\//,'') == this.pathname.replace(/^\//,'')
&& location.hostname == this.hostname
&& this.hash.replace(/#/,'') ) {
var $targetId = $(this.hash), $targetAnchor = $('[name=' + this.hash.slice(1) +']');
var $target = $targetId.length ? $targetId : $targetAnchor.length ? $targetAnchor : false;
$(document).ready(function() {
function setHeaderHeight() {
$(".main_head").css("height", $(window).height());
}
setHeaderHeight();
$(window).resize(function() {
setHeaderHeight();
.loader {
background: none repeat scroll 0 0 #ffffff;
bottom: 0;
height: 100%;
left: 0;
position: fixed;
right: 0;
top: 0;
width: 100%;
z-index: 9999;