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
<!DOCTYPE html> | |
<html class="no-js" lang="en"> | |
<head> | |
<title></title> | |
<!-- Meta --> | |
<meta charset="utf-8"> | |
<meta name="keywords" content=""> |
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
Here is a list of scopes to use in Sublime Text 2 snippets - | |
ActionScript: source.actionscript.2 | |
AppleScript: source.applescript | |
ASP: source.asp | |
Batch FIle: source.dosbatch | |
C#: source.cs | |
C++: source.c++ | |
Clojure: source.clojure | |
CoffeeScript: source.coffee |
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
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> | |
<html xmlns="http://www.w3.org/1999/xhtml"> | |
<head> | |
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"/> | |
<title></title> | |
<style type="text/css"> | |
/* Reset */ | |
body{-webkit-text-size-adjust:100%; -ms-text-size-adjust:100%; } | |
.wrapper {display: table; table-layout: fixed; margin:0; padding:0; width:100% !important; line-height: 100% !important; -webkit-text-size-adjust: 100%; -ms-text-size-adjust: 100%; text-rendering: optimizeLegibility;} |
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
/* | |
* Responsive Page Modes Plugin - Responsive page modes based on window width | |
* http://cjweb.com.au | |
* Version: 1.0.0 (11-NOVEMBER-2014) | |
* Dual licensed under the MIT and GPL licenses. | |
* | |
* USAGE INSTRUCTIONS | |
* | |
* Load with: | |
* |
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
/* | |
* EqCol - Equalise Grid column heights | |
* Requires "Responsive Page Modes Plugin" | |
* http://cjweb.com.au | |
* Version: 1.0.0 (11-NOVEMBER-2014) | |
* Dual licensed under the MIT and GPL licenses. | |
* | |
* USAGE INSTRUCTIONS | |
* $('.grid').eqCol(); // <ul class="grid" data-eqcol-mode="medium,large" data-eqcol-item=".grid-col" > | |
* |
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
<iframe id="video" src="//www.youtube.com/embed/FKWwdQu6_ok?showinfo=0&rel=0&wmode=opaque&autohide=1&autoplay=1&enablejsapi=1&html5=1" frameborder="0" allowfullscreen></iframe> | |
<script> | |
// http://css-tricks.com/play-button-youtube-and-vimeo-api/ | |
// https://developers.google.com/youtube/iframe_api_reference | |
// global variable for the player |
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
.element { | |
position: relative; | |
top: 50%; | |
transform: translateY(-50%); | |
} |
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> | |
<style> | |
div input[type=radio]{ | |
position: absolute; | |
visibility: hidden; | |
} |
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 getParameterByName(name, url) { | |
if (!url) url = window.location.href; | |
name = name.replace(/[\[\]]/g, "\\$&"); | |
var regex = new RegExp("[?&]" + name + "(=([^&#]*)|&|#|$)"), | |
results = regex.exec(url); | |
if (!results) return null; | |
if (!results[2]) return ''; | |
return decodeURIComponent(results[2].replace(/\+/g, " ")); | |
//getParameterByName('var') | |
} |
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
//Basic form validation | |
$('form[novalidate]').on('submit', function(event){ | |
$('.form-control', this).each(function(){ | |
if (this.checkValidity() == false || ($(this).attr('data-match') && $(this).val() != $('#' + $(this).attr('data-match')).val())) { | |
event.preventDefault(); | |
event.stopPropagation(); | |
$(this).parents('.form-group').addClass('has-error'); | |
} | |
else { | |
$(this).parents('.form-group').removeClass('has-error'); |
OlderNewer