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
/*###### | |
John McGrath via the Google Fusion Tables group authored this script which creates a "sync" between a Google spreadsheet and a Fusion Table. | |
He has since posted it to GitHub here: https://github.com/jomcgrath2/Fusion-to-Spreadsheet | |
######*/ | |
var tableID = ' ' // Add the table ID of the fusion table here | |
var sheetNumber = 1 //Sheet number goes here (the first sheet is number 1 second is number 2 etc.) |
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
body { | |
font-family: Helvetica, Verdana | |
} | |
p { | |
padding: 7px 10px; | |
} | |
#demo { | |
border: 1px solid #999; | |
} |
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 formatSecondsAsTime(secs, format) { | |
var hr = Math.floor(secs / 3600); | |
var min = Math.floor((secs - (hr * 3600))/60); | |
var sec = Math.floor(secs - (hr * 3600) - (min * 60)); | |
if (hr < 10) { hr = "0" + hr; } | |
if (min < 10) { min = "0" + min; } | |
if (sec < 10) { sec = "0" + sec; } | |
if (hr) { hr = "00"; } |
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($) { | |
/** | |
* We have to get a collection of id's because the HTML5 player moves the DOM | |
* around and returns different elements when caching the selectors. | |
*/ | |
var elements = $('.video-player > div, .video-player object'), | |
playerIds = []; | |
elements.each(function(i, player) { | |
playerIds.push(player.id); |
NewerOlder