This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<meta property="og:image" content="img.jpg" /> | |
<meta property="og:title" content="Title" /> | |
<meta property="og:description" content="Desc." /> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$("#fullname").bind('click keypress keyup change focus', function(){ | |
$("#note_email").fadeIn(); | |
}); | |
$("#fullname").bind('focus', function(){ | |
$("#note_email").fadeIn(); | |
}); | |
OR |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## Expires | |
<IfModule mod_expires.c> | |
ExpiresActive On | |
ExpiresByType image/jpg "access 1 year" | |
ExpiresByType image/jpeg "access 1 year" | |
ExpiresByType image/gif "access 1 year" | |
ExpiresByType image/png "access 1 year" | |
ExpiresByType text/css "access 1 month" | |
ExpiresByType text/html "access 1 month" | |
ExpiresByType application/pdf "access 1 month" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$(window).scroll(function () { | |
/* Check the location of each desired element */ | |
$('.fade').each(function (i) { | |
var bottom_of_object = $(this).offset().top + $(this).outerHeight(); | |
var bottom_of_window = $(window).scrollTop() + $(window).height(); | |
/* If the object is completely visible in the window, fade it in */ | |
if (bottom_of_window > bottom_of_object) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var fadeTimeout; | |
console.log(fadeTimeout); | |
$("#menu").hover(function () { | |
fadeTimeout = setTimeout(showFade, 2000); | |
}, | |
hideFade); | |
function showFade() { | |
var fade = $("<div class='secret-menu'><a href='secret-menu.pdf' style='color:black' >Shhhh! Secret Menu!</a></div>"); | |
fade.appendTo($("#menu")); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
header("HTTP/1.1 301 Moved Permanently"); | |
header("Location: http://www.New-Website.com"); | |
?> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ServerName shawsoysterfest.com | |
ServerAlias www.shawsoysterfest.com | |
Redirect 301 / http://www.oysterfestchicago.com/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var image = document.getElementById("hover-example"); | |
image.onmouseover = function() { image.src = "http://placehold.it/350x150/262626/ffffff"; } | |
image.onmouseout = function() { image.src = "http://placehold.it/350x150"; } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var scroll_start = 0; | |
var startchange = $('#scroll-color'); | |
var offset = startchange.offset(); | |
$(document).scroll(function () { | |
scroll_start = $(this).scrollTop(); | |
if (scroll_start > offset.top) { | |
$('.navigation').css('background', '#e63c2d'); | |
} else { | |
$('.navigation').css('background', 'transparent'); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var sections = $('section'), | |
links = $('nav ul li a'), | |
lis = $('nav ul > li'); | |
$(window).scroll(function() { | |
var currentPosition = $(this).scrollTop(); | |
links.removeClass('active'); | |
lis.removeClass('active'); | |
sections.each(function() { |