Skip to content

Instantly share code, notes, and snippets.

var urlBase = 'http://berrics.vo.llnwd.net/o45/';
var url, videoName;
// Video listing pages
var videoListingPageEl = $('div[data-media-file-id]').each(function(){
var videoContainerDiv = $(this);
videoName = videoContainerDiv.data('media-file-id');
url = urlBase + videoName + '.mp4';
@brad426
brad426 / gist:5543197
Last active December 17, 2015 03:28
HTML boilerplate
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<title></title>
<meta name="description" content="">
<meta name="viewport" content="width=device-width">
<link rel="stylesheet" href="css/normalize.css">
@brad426
brad426 / javascript requestAnimationFrame polyfill
Last active December 17, 2015 03:28 — forked from paulirish/rAF.js
javascript requestAnimationFrame polyfill
// http://paulirish.com/2011/requestanimationframe-for-smart-animating/
// http://my.opera.com/emoller/blog/2011/12/20/requestanimationframe-for-smart-er-animating
// requestAnimationFrame polyfill by Erik Möller. fixes from Paul Irish and Tino Zijdel
// MIT license
(function() {
var lastTime = 0;
var vendors = ['ms', 'moz', 'webkit', 'o'];