Skip to content

Instantly share code, notes, and snippets.

@THEtheChad
Last active August 29, 2015 14:00
Show Gist options
  • Save THEtheChad/11380591 to your computer and use it in GitHub Desktop.
Save THEtheChad/11380591 to your computer and use it in GitHub Desktop.
Bootstrap Options Display
var factory = document.createElement('div');
var html = '<table class="bootstrapper" style="margin:auto;width:500px;position:absolute;top:10px;left:10px;background:#fff;border-spacing:10px;border-collapse:separate;font-size:14px;font-family:Arial">';
var opts = Bootstrapper.ensightenOptions;
for(key in opts){
html += '<tr>';
html += '<td style="text-align:right">' + key + '</td>';
html += '<td>' + opts[key] + '</td>';
html += '</tr>';
}
html += '</table>';
factory.innerHTML = html;
var content = factory.childNodes[0];
window.open('','Bootstrapper Options','width=600,height=600,location=0,menubar=0,status=1,toolbar=0,resizable=1,scrollbars=1').document.body.appendChild(content);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment