Skip to content

Instantly share code, notes, and snippets.

View voodooGQ's full-sized avatar

Shane Smith voodooGQ

View GitHub Profile
@voodooGQ
voodooGQ / gist:3061517
Created July 6, 2012 17:34
Javascript: Bookmark Page
<script language="javascript" type="text/javascript">
var urlAddress = window.location.pathname;
var pageName = "A-Affordable Bail Bonds, Inc.";
function addToFavorites() {
if (window.external) {
window.external.AddFavorite(urlAddress,pageName)
}
else { alert("Sorry! Your browser doesn't support this function."); }
@voodooGQ
voodooGQ / gist:2864056
Created June 3, 2012 16:18 — forked from travist/gist:2863998
jQuery: Add jQuery Dynamically
var jQueryReady = function($) {
// Your code goes here...
console.log('jQuery Ready!');
};
// Make sure jQuery is ready.
if (typeof jQuery == 'undefined') {
var protocol = window.location.protocol;
if (protocol.charAt(protocol.length - 1) == ':') {
@voodooGQ
voodooGQ / css-vertical-align-center.css
Created June 3, 2012 16:17 — forked from mateuslopes/css-vertical-align-center.css
CSS: Vertical align center (without line-height)
.v-center, .vertical-center, .v-middle, .vertical-middle {
display: table-cell;
vertical-align: middle;
}