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
This is my Gist |
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
// ---- | |
// Sass (v3.4.7) | |
// Compass (v1.0.1) | |
// ---- | |
.nt-tabs { | |
margin: 5%; | |
border: 1px solid; | |
.nav-tabs>li { | |
width: 25%; |
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
// ---- | |
// Sass (v3.4.6) | |
// Compass (v1.0.1) | |
// ---- | |
#languageGate { | |
color: #fff; | |
text-align: center; | |
padding: 10%; | |
position: relative; |
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
//scroll to anchor point on page load | |
function scrollOnLoad() { | |
try { | |
//take HREF and split at anchor | |
var $_elem = $('#' + $(location).attr('href').split('#')[1]); | |
//find class of anchor element | |
var $_others = $('.' + $_elem.attr('class')); | |
//measure window height and element height | |
//if the window height is smaller that twice the element height, then use regular offset |
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
<!-- TWO STEPS TO INSTALL BASIC SLIDESHOW: | |
1. Copy the coding into the HEAD of your HTML document | |
2. Add the last code into the BODY of your HTML document --> | |
<!-- STEP ONE: Paste this code into the HEAD of your HTML document --> | |
<HEAD> |
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
function showDateIn(elem) { | |
var date = new Date(); | |
var today = date.toLocaleDateString(); | |
var hours = date.getHours(); | |
var minutes = date.getMinutes(); | |
var ampm; | |
if (minutes < 10) { | |
minutes = "0" + minutes; | |
} |
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
<html> | |
<head> | |
<title>Gallery Test</title> | |
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js"></script> | |
<script type="text/javascript"> | |
slides = [ | |
"images/plug2-offline-icon.jpg", | |
"images/notsign-offline-icon.jpg", | |
"images/globe-offline-icon.jpg", |
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 measure = { | |
'num' : 9, | |
'wHeight' : function(){ | |
var h = $(window).height(); | |
return h; | |
}, | |
'wWidth' : function(){ | |
var w = $(window).width(); | |
return w; | |
}, |
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
function vcenter(a, b) { | |
var wHeight = $(window).height(); | |
var fHeight = $(a).height(); | |
var nHeight = (wHeight / 2) - (fHeight); | |
if (!b || b == "" || b == null) { | |
var b = a; | |
} | |
$(b).css({ | |
'position' : 'relative', | |
'top' : nHeight |
NewerOlder