Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
var rr = [{"top":8165,"time":2042},{"top":8169,"time":2075},{"top":8181,"time":2124},{"top":8211,"time":2169},{"top":8222,"time":2210},{"top":8258,"time":2253},{"top":8331,"time":2294},{"top":8366,"time":2327},{"top":8446,"time":2365},{"top":8545,"time":2411},{"top":8584,"time":2459},{"top":8586,"time":2503},{"top":8588,"time":2825},{"top":8608,"time":2872},{"top":8686,"time":2921},{"top":8746,"time":2971},{"top":8796,"time":3015},{"top":8833,"time":3057},{"top":8918,"time":3102},{"top":8971,"time":3146},{"top":9008,"time":3195},{"top":9010,"time":3241},{"top":9012,"time":3492},{"top":9017,"time":3536},{"top":9069,"time":3582},{"top":9108,"time":3628},{"top":9170,"time":3677},{"top":9233,"time":3724},{"top":9382,"time":3806},{"top":9432,"time":4067},{"top":9434,"time":4354},{"top":9437,"time":4487},{"top":9709,"time":4548},{"top":9911,"time":4607},{"top":9914,"time":5210},{"top":9925,"time":5268},{"top":9990,"time":5331},{"top":10030,"time":5389},{"top":10081,"time":5451},{"top":10187,"time":5511},{"top":10260,"time":5565},{"top":10363,"time":5622},{"top":10386,"time":5680},{"top":10388,"time":5738},{"top":10390,"time":5876},{"top":10405,"time":5936},{"top":10476,"time":5998},{"top":10512,"time":6062},{"top":10577,"time":6119},{"top":10692,"time":6180},{"top":10805,"time":6260},{"top":10859,"time":6322},{"top":10865,"time":6629},{"top":10870,"time":6760},{"top":10986,"time":6813},{"top":11289,"time":6909},{"top":11298,"time":7311},{"top":11454,"time":7374},{"top":11627,"time":7437},{"top":11682,"time":7498},{"top":11712,"time":7557},{"top":11713,"time":7635},{"top":11721,"time":7944},{"top":11802,"time":8005},{"top":11961,"time":8066},{"top":12016,"time":8126},{"top":12039,"time":8186},{"top":12109,"time":8262},{"top":12136,"time":8337},{"top":12137,"time":8633},{"top":12140,"time":9144},{"top":12367,"time":9223},{"top":12508,"time":9300},{"top":12522,"time":9379},{"top":12584,"time":9438},{"top":12674,"time":9500},{"top":12866,"time":9573},{"top":12879,"time":9640},{"top":12880,"time":9828},{"top":12902,"time":9894},{"top":12970,"time":9965},{"top":13007,"time":10032},{"top":13085,"time":10103},{"top":13162,"time":10169},{"top":13286,"time":10239},{"top":13303,"time":10305},{"top":13304,"time":10461},{"top":13327,"time":10533},{"top":13406,"time":10628},{"top":13431,"time":10704},{"top":13564,"time":10807},{"top":13664,"time":10890},{"top":13718,"time":10962},{"top":13727,"time":11279},{"top":13729,"time":11425},{"top":14013,"time":11513},{"top":14151,"time":11604},{"top":14153,"time":11911},{"top":14175,"time":11979},{"top":14241,"time":12050},{"top":14310,"time":12250},{"top":14371,"time":12337},{"top":14513,"time":12425},{"top":14599,"time":12511},{"top":14627,"time":12602},{"top":14628,"time":12692},{"top":14651,"time":12785},{"top":14700,"time":12874},{"top":14849,"time":12961},{"top":15030,"time":13078},{"top":15051,"time":13155},{"top":15052,"time":13532},{"top":15054,"time":13710},{"top":15416,"time":13812},{"top":15476,"time":13905},{"top":15478,"time":14212},{"top":15534,"time":14289},{"top":15688,"time":14457},{"top":15708,"time":14547},{"top":15759,"time":14631},{"top":15836,"time":14716},{"top":15847,"time":14804},{"top":15849,"time":14913},{"top":16019,"time":15001},{"top":16165,"time":15089},{"top":16189,"time":15182},{"top":16224,"time":15268},{"top":16264,"time":15357},{"top":16271,"time":15779},{"top":16274,"time":15999},{"top":16463,"time":16101},{"top":16589,"time":16206},{"top":16590,"time":16462},{"top":16607,"time":16542},{"top":16695,"time":16719},{"top":16715,"time":16811},{"top":16797,"time":16907},{"top":16889,"time":17000},{"top":16959,"time":17107},{"top":16960,"time":17218},{"top":16972,"time":17348},{"top":17289,"time":17453},{"top":17331,"time":17561},{"top":17333,"time":17947},{"top":17405,"time":18057},{"top":17490,"time":18164},{"top":17520,"time":18272},{"top":17642,"time":18377},{"top":17752,"time":18515},{"top":17755,"time":18613},{"top":17831,"time":19257},{"top":18179,"time":19374},{"top":18183,"time":19616},{"top":18231,"time":19715},{"top":18338,"time":19817},{"top":18391,"time":20019},{"top":18492,"time":20135},{"top":18591,"time":20254},{"top":18603,"time":20378},{"top":18604,"time":20515},{"top":18895,"time":20625},{"top":18974,"time":20744},{"top":18976,"time":21098},{"top":19021,"time":21216},{"top":19080,"time":21340},{"top":19130,"time":21512},{"top":19292,"time":22326},{"top":19320,"time":22466},{"top":19345,"time":22585},{"top":19380,"time":22705},{"top":19688,"time":22870},{"top":19716,"time":22976},{"top":19743,"time":23078},{"top":19973,"time":23181},{"top":20086,"time":23280},{"top":20087,"time":23492},{"top":20092,"time":23899},{"top":20202,"time":24014},{"top":20299,"time":24132},{"top":20333,"time":24248},{"top":20429,"time":24361},{"top":20511,"time":24483},{"top":20596,"time":25157},{"top":20935,"time":25279},{"top":20940,"time":25816},{"top":21181,"time":25920},{"top":21253,"time":26043},{"top":21254,"time":26669},{"top":21347,"time":26799},{"top":21412,"time":26920},{"top":21446,"time":27038},{"top":21592,"time":27162},{"top":21665,"time":27276},{"top":21677,"time":27400},{"top":21680,"time":27582},{"top":21757,"time":27701},{"top":21825,"time":27819},{"top":21874,"time":27937},{"top":22044,"time":28119},{"top":22048,"time":28213},{"top":22125,"time":28855},{"top":22472,"time":28987},{"top":22475,"time":29687},{"top":22546,"time":29802},{"top":22631,"time":29912},{"top":22660,"time":30020},{"top":22752,"time":30126},{"top":22843,"time":30241},{"top":22848,"time":30617},{"top":23057,"time":30722},{"top":23161,"time":30834},{"top":23192,"time":30944},{"top":23240,"time":31048},{"top":23266,"time":31154},{"top":23267,"time":31631},{"top":23270,"time":31835},{"top":23670,"time":31943},{"top":23691,"time":32043},{"top":23696,"time":32417},{"top":23849,"time":32511},{"top":24009,"time":32608},{"top":24033,"time":32718},{"top":24062,"time":32824},{"top":24067,"time":33150},{"top":24182,"time":33256},{"top":24274,"time":33368},{"top":24308,"time":33484},{"top":24372,"time":33589},{"top":24433,"time":33697},{"top":24436,"time":33852},{"top":24507,"time":33960},{"top":24592,"time":34071},{"top":24621,"time":34177},{"top":24730,"time":34283},{"top":24804,"time":34781},{"top":24806,"time":34969},{"top":25166,"time":35094},{"top":25175,"time":35223},{"top":25178,"time":35619},{"top":25227,"time":35722},{"top":25281,"time":35908},{"top":25313,"time":36027},{"top":25445,"time":36151},{"top":25493,"time":36275},{"top":25497,"time":36419},{"top":25606,"time":36536},{"top":25652,"time":36658},{"top":25687,"time":36779},{"top":25790,"time":36894},{"top":25864,"time":37010},{"top":25866,"time":37285},{"top":25902,"time":37400},{"top":25917,"time":37521},{"top":25954,"time":37643},{"top":26156,"time":37762},{"top":26235,"time":38310},{"top":26238,"time":38530},{"top":26549,"time":38666},{"top":26602,"time":38802},{"top":26606,"time":38933},{"top":26609,"time":39436},{"top":26763,"time":39560},{"top":26818,"time":39688},{"top":26857,"time":39818},{"top":26912,"time":39943},{"top":26961,"time":40066},{"top":26977,"time":40190},{"top":26979,"time":40420},{"top":27095,"time":40555},{"top":27136,"time":40686},{"top":27173,"time":40813},{"top":27257,"time":40939},{"top":27295,"time":41064}];
(function p(d) {
var t = rr.shift();
setTimeout(function () {
document.getElementById("viewerContainer").scrollTop = t.top;
p(t.time)
}, t.time - d);
})(0)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment