Skip to content

Instantly share code, notes, and snippets.

View kennasoft's full-sized avatar

Ikenna Okonkwo kennasoft

View GitHub Profile
@kennasoft
kennasoft / jsfiddle_console.js
Created October 14, 2017 13:20
Javascript for emulating a rudimentary console in jsfiddle
document.addEventListener('DOMContentLoaded', function(){
document.querySelector('head').innerHTML +='<link type="text/css" href="https://gist.githubusercontent.com/kennasoft/d4f8594f7a06751b73dfb6a6cf4390ed/raw/524aa1bf26da6c2f336872ffe98fdfd89106412f/console.css" rel="stylesheet"/>'
var consoleHTML = `
<footer id="console-toggle">
<div class="console"></div>
</footer>
`;
@kennasoft
kennasoft / console.css
Created October 14, 2017 12:58
CSS for adding a rudimentary console to jsfiddle
footer,
footer *,
footer *:before,
footer *:after {
box-sizing: border-box;
}
.console {
background: black;
width: 100%;