Aped if from http://advancestyles.info/css/css-custom-checkbox-and-radio-button/ in case it ever disappears.
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 getIEVersion() { | |
var ua = window.navigator.userAgent, | |
msie = ua.indexOf("MSIE "); | |
if (msie > 0 || !!navigator.userAgent.match(/Trident.*rv\:11\./)) { | |
return parseInt(ua.substring(msie + 5, ua.indexOf(".", msie))); | |
} else { | |
return -1; | |
} |
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
$('a[href*=#]:not([href=#])').bind('click', function () { | |
if (location.pathname.replace(/^\//,'') == this.pathname.replace(/^\//,'') && location.hostname == this.hostname) { | |
var target = $(this.hash); | |
target = target.length ? target : $('[name=' + this.hash.slice(1) +']'); | |
if (target.length) { | |
$('html,body').animate({ | |
scrollTop: target.offset().top - $header.height() | |
}, 1000); |
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 labels = []; | |
var times = function(n) { | |
return Array.apply(null, new Array(n)); | |
}; | |
var data = times(100).map(function(val, index) { | |
labels.push(index + 1); | |
// val = Math.round(Math.random() * 100); | |
val = Math.floor(Math.random() * (100 - 70 + 1)) + 70; | |
return val; |
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 labels = []; | |
var times = function(n) { | |
return Array.apply(null, new Array(n)); | |
}; | |
var data = times(100).map(function(val, index) { | |
labels.push(index + 1); | |
// val = Math.round(Math.random() * 100); | |
val = Math.floor(Math.random() * (100 - 70 + 1)) + 70; | |
return val; |
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
// https://github.com/kswedberg/jquery-smooth-scroll | |
// http://www.zachstronaut.com/posts/2009/01/18/jquery-smooth-scroll-bugs.html | |
scrollToElement: function(id) { | |
// $('a[href*=#]').each(function() { | |
// if ($(this.hash).length) { | |
// $(this).click(function(event) { | |
var targetOffset = $(id).offset().top; | |
// event.preventDefault(); |
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 isTouchDevice = false; | |
if (('ontouchstart' in window) || (navigator.maxTouchPoints > 0) || (navigator.msMaxTouchPoints > 0)) { | |
isTouchDevice = true; | |
} | |
var deviceAgent = navigator.userAgent.toLowerCase(); | |
isTouchDevice = (deviceAgent.match(/(iphone|ipod|ipad)/) || deviceAgent.match(/(android)/) || deviceAgent.match(/(iemobile)/) || deviceAgent.match(/iphone/i) || deviceAgent.match(/ipad/i) || deviceAgent.match(/ipod/i) || deviceAgent.match(/blackberry/i) || deviceAgent.match(/bada/i)); | |
// Saw in Modernizr issues thread about the old Modernizr.touch check |
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
# EditorConfig helps developers define and maintain consistent | |
# coding styles between different editors and IDEs | |
# editorconfig.org | |
root = true | |
[*] | |
charset = utf-8 | |
end_of_line = lf |
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
<template> | |
<div id="app"></div> | |
</template> | |
<script> | |
import axios from 'axios'; | |
export default { | |
mounted() { | |
axios({ |
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
[[ -s "$HOME/.profile" ]] && source "$HOME/.profile" # Load the default .profile | |
#source ~/.profile | |
# Set Paths | |
# ------------------------------------------------------------ | |
#export PATH="$PATH:/usr/local/bin/" | |
#export PATH="/usr/local/git/bin:/sw/bin/:/usr/local/bin:/usr/local/:/usr/local/sbin:/usr/local/mysql/bin:$PATH" | |
#export PATH=$PATH:/Users/dlahay/drush | |
#export PATH=$HOME/local/bin:$PATH |
OlderNewer