Skip to content

Instantly share code, notes, and snippets.

@beckettkev
Created April 19, 2016 15:08
Show Gist options
  • Select an option

  • Save beckettkev/3f4187bfe0a9f649814a5a455e5d3067 to your computer and use it in GitHub Desktop.

Select an option

Save beckettkev/3f4187bfe0a9f649814a5a455e5d3067 to your computer and use it in GitHub Desktop.
//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