Skip to content

Instantly share code, notes, and snippets.

View dylano's full-sized avatar

Dylan Oliver dylano

  • San Francisco, CA
View GitHub Profile
04-25 11:28:06.706 I/Gecko ( 207): XXX FIXME : Dispatch a mozChromeEvent: default-volume-channel-changed
04-25 11:28:09.466 I/Gecko ( 207): XXX FIXME : Dispatch a mozChromeEvent: default-volume-channel-changed
04-25 11:33:34.906 I/Gecko ( 207): XXX FIXME : Dispatch a mozChromeEvent: default-volume-channel-changed
04-25 11:34:04.986 I/GeckoDump( 1326): ESC[32mLOG: htmlCache resetESC[0m
04-25 11:34:04.996 I/GeckoDump( 1326): ESC[32mLOG: pushCard for type: setup_progressESC[0m
04-25 11:34:05.416 I/Gecko ( 1326): [Autoconfigurator] autoconfig:begin {"domain":"doliver.net"}
04-25 11:34:05.416 I/Gecko ( 1326): [Autoconfigurator] xhr:start {"method":"GET","url":"/autoconfig/doliver.net"}
04-25 11:34:05.426 I/Gecko ( 1326): [Autoconfigurator] xhr:end {"method":"GET","url":"/autoconfig/doliver.net","status":"error"}
04-25 11:34:05.436 I/Gecko ( 1326): [Autoconfigurator] autoconfig:coerceRejection {"domain":"doliver.net","err":"error"}
04-25 11:34:05.456 I/Gecko ( 1326): [Autoconfigurator] xhr:st
@dylano
dylano / Cards.js
Created October 6, 2014 23:38
Notes lazyload, take 2
function initCards() {
var defaultIndex = 0;
for (var i=0, l=cardElements.length; i<l; i++) {
var el = cardElements[i];
el.style.cssText += "; position: absolute; top: 0; left: 0; width: " + cardWidth + "px; min-height: 100%;";
if (el.className.indexOf(CLASS_WHEN_ACTIVE) !== -1) {
currentIndex = i;
@dylano
dylano / Cards.js
Last active August 29, 2015 14:06
Notes lazyload event
this.goTo = function(index) {
if (typeof index == "string") {
index = getIndexById(index);
}
if (index < 0 || index >= cardElements.length) {
return _this;
}
for (var i=0, l=cardElements.length; i<l; i++) {