Created
April 19, 2016 15:08
-
-
Save beckettkev/3f4187bfe0a9f649814a5a455e5d3067 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| //after goldfish has run... | |
| const head = document.head || document.getElementsByTagName('head')[0]; | |
| const overrides = document.createElement('style'); | |
| overrides.type = 'text/css'; | |
| const css = '#menu-items { display:none; } #outer-space { width: 100%; } #component, #component-favourites, #component-layout, #component-settings { display:block; box-shadow: 0 0 2px #d9d9d9; }#component {right: 1200px;}#component-favourites {right: 800px;}#component-layout {right: 400px; }'; | |
| if (overrides.styleSheet) { | |
| overrides.styleSheet.cssText = css; | |
| } else { | |
| overrides.appendChild(document.createTextNode(css)); | |
| } | |
| //position all panels within the app side by side | |
| head.appendChild(overrides); | |
| //reveal the hidden pnaels (divs) | |
| ['component','component-favourites','component-layout','component-settings'].forEach(function(el) { | |
| document.getElementById(el).style.display = 'block'; | |
| }); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment