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 ft_startDate = 0, | |
ft_startTime = 0, | |
ft_pageTitle = document.title, | |
ft_duration = false; | |
$(':input').focus(function() { | |
/* Make a record of when the user focused on the input */ | |
ft_startDate = new Date(); | |
ft_startTime = ft_startDate.getTime(); | |
}); |
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
/* This was adpated from Daniel Ryan's gist @ https://gist.github.com/dryan/738720 */ | |
function supports3d() { | |
// borrowed from modernizr | |
var div = document.createElement('div'), | |
ret = false, | |
properties = ['perspectiveProperty', 'WebkitPerspective']; | |
for (var i = properties.length - 1; i >= 0; i--){ | |
ret = ret ? ret : div.style[properties[i]] != undefined; | |
}; |