Statement: How to make a block to have proper height based on the given width and dimensions ratio.
tags: html, css, layout, keep ratio, 4x3, 16x19, aspect, height
function getQueryParams() { | |
return window.location.search | |
.replace(/^\?/, '').split('&').filter(Boolean) | |
.map(function(kv) { return kv.split('='); }) | |
.reduce(function(a, next) { return (a[next[0]] = decodeURIComponent(next[1]), a); }, {}); | |
} |
license: gpl-3.0 |
I had a task to convert a project which was written using AMD and partially in ES6 (new code).
This gist describes my approach in details.
###Prerequisites The codebase is written in AMD and paritally in ES6. All AMD modules have simple .js extension, whereas all ES6 modules have .es6.js extension.
###Used tools