I hereby claim:
- I am m90 on github.
- I am frederikring (https://keybase.io/frederikring) on keybase.
- I have a public key whose fingerprint is 515D F30C 523E 2D51 0CDD FA25 41EC 336C 23D8 29D9
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
spotify:user:hdbroreau:playlist:63OGq6KncKUxlUgN7nFumw |
/* $.randy - Simple canvas spinner animation with gif fallback and all CSS included - written by Frederik Ring ([email protected]) */ | |
/* Copyright (c) 2013 Frederik Ring */ | |
/* Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: */ | |
/* The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. */ | |
/* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR AN |
var v = document.createElement('video'); | |
var feature = false; | |
if (v.canPlayType('video/mp4') == 'probably'){ | |
v.src = 'data:video/mp4;base64,AAAAHGZ0eXBtcDQyAAAAAG1wNDJpc29tYXZjMQAAAz5tb292AAAAbG12aGQAAAAAzaNacc2jWnEAAV+QAAFfkAABAAABAAAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAAEAAAAAAAAAAAAAAAAAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACAAAAGGlvZHMAAAAAEICAgAcAT////3//AAACQ3RyYWsAAABcdGtoZAAAAAHNo1pxzaNacQAAAAEAAAAAAAFfkAAAAAAAAAAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAAEAAAAAAAAAAAAAAAAAAEAAAAAAEAAAABAAAAAAAd9tZGlhAAAAIG1kaGQAAAAAzaNacc2jWnEAAV+QAAFfkFXEAAAAAAAhaGRscgAAAAAAAAAAdmlkZQAAAAAAAAAAAAAAAAAAAAGWbWluZgAAABR2bWhkAAAAAQAAAAAAAAAAAAAAJGRpbmYAAAAcZHJlZgAAAAAAAAABAAAADHVybCAAAAABAAABVnN0YmwAAACpc3RzZAAAAAAAAAABAAAAmWF2YzEAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAAAAEAAQAEgAAABIAAAAAAAAAAEOSlZUL0FWQyBDb2RpbmcAAAAAAAAAAAAAAAAAAAAAAAAY//8AAAAxYXZjQwH0AAr/4QAZZ/QACq609NQYBBkAAAMAAQAAAwAKjxImoAEABWjOAa8gAAAAEmNvbHJuY2xjAAYAAQAGAAAAGHN0dHMAAAAAAAAAAQAAAAUAAEZQAAAAKHN0c3oAAAAAAAAAAAAAAAUAAAIqAAAACAAAAAgAAAAIAAAACAAAAChzdHNjAAAAAA |
* { | |
margin: 0; | |
padding: 0; | |
} | |
body { | |
background: #f9f9f9; | |
color: #666; | |
font: 11px/14px Arial, Helvetica, sans-serif; |
$(document).ready(function(){ | |
//see http://api.jquery.com/hover/ for info on .hover() | |
$('#video').seeThru({start:'external'}).hover(function(){ | |
//handler for mouseover | |
this.play(); | |
}, function(){ | |
//handler for mouseout | |
this.pause(); |
window.matchMedia = window.matchMedia || (function(doc, undefined){ | |
var bool, | |
docElem = doc.documentElement, | |
refNode = docElem.firstElementChild || docElem.firstChild, | |
// fakeBody required for <FF4 when executed in <head> | |
fakeBody = doc.createElement('body'), | |
div = doc.createElement('div'); | |
div.id = 'mq-test-1'; |
/** | |
/ | |
/ Additional Gist for: https://github.com/m90/jquery-seeThru | |
/ | |
/ Setup: | |
/ var video is the <video> element containing the source data | |
/ var buffer is a hidden <canvas> element of the same width and height as the same video | |
/ var display is the <canvas> element used for actual display (it has the same width as the other elements, but is halved in height) | |
/ var dimensions is an object containing the target .width and .height of the video | |
/ |