Sha256: e4112d76425221da555ab6b4367721da95f69f8cc0737d6b14cce15c7b18afa2
Contents?: true
Size: 876 Bytes
Versions: 35
Compression:
Stored size: 876 Bytes
Contents
mumuki.load(function () { var error_svgs = ['403', '404', '500', 'timeout_1', 'timeout_2', 'timeout_3']; mumuki.errors = mumuki.errors || {}; mumuki.characters = mumuki.characters || {}; error_svgs.forEach(function (svgErrorSuffix) { addImage(mumuki.errors, 'error_' + svgErrorSuffix, '/'); }); addImage(mumuki.characters, 'yellow_context', '/character/kids/'); addImage(mumuki.characters, 'magnifying_glass_apparition', '/'); addImage(mumuki.characters, 'magnifying_glass_loop', '/'); function addImage(object, imageName, urlPrefix) { var url = urlPrefix + imageName + '.svg'; if (!object[imageName]) { $.get(url, function (data) { var duration = parseFloat($(data).find('animate').attr('dur') || 0, 10) * 1000; object[imageName] = { url: url, duration: duration }; }); } } });
Version data entries
35 entries across 35 versions & 1 rubygems