Description of changes
None
( add screenshot here )
const getUrlParamsObj = (queryString) => { | |
const paramsArray = (window.location.search.charAt(0) === "?") | |
? window.location.search.substr(1).split('&') | |
: window.location.search.split('&') | |
return paramsArray.reduce((mainObj, val) => { | |
const valArray = val.split('=') | |
return Object.assign(mainObj, {[valArray[0]]: valArray[1]}) | |
}, {}) | |
} |
Description of changes
None
( add screenshot here )
<div class="grid"> | |
<header>Header</header> | |
<aside>Aside</aside> | |
<main>Main</main> | |
<footer>Footer</footer> | |
</div> |