This file contains hidden or 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 hidden or 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 hidden or 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; | |
} |
NewerOlder