HTML


<textarea
	name="h"
	id="h"
	placeholder="Html">
</textarea>
<textarea
	name="c"
    id="c"
	placeholder="Css">
</textarea>
<textarea
	name="j"
    id="j"
	placeholder="Js">
</textarea>


CSS


* {
  margin: 0;
  padding: 0;
  border: 0px none;
  outline: none;
}
html, body {
  height: 100%;
}
textarea {
  width: 33.333%;
  height: 33.333vh;
  float: left;
  font-family: monospace;
  font-size: 14px;
  line-height: 1.378;
  /*resize: none;*/
  box-shadow:
    inset -1px 0 0 0 #ccc,
    inset 0 -1px 0 0 #ccc;
}
iframe {
  width: 100%;
  height: calc(100vh - 33.333vh - 4px);
  background-color: #f5f5f5;
}
span {
  color: #999;
}


JS


/*
** mini > player
** all In/One / simple / withOut /syntaxHigh...
*/
document.body.oninput = function() {
  document.querySelector('iframe').srcdoc =
    h.value + '<style>' + c.value + '</style><script>' + j.value + '<\/script>'
}
var placeholder = document.createElement('span');
placeholder.textContent = 'Output';
document.body.appendChild(placeholder);
var iframe = document.createElement('iframe');
iframe.style.setProperty('display', 'none');
placeholder.parentNode.insertBefore(iframe, placeholder.nextSibling);
iframe.addEventListener('load', function() {
  if(placeholder.parentNode === null) {
    } else {
    placeholder.parentNode.removeChild(placeholder);
  }
  iframe.style.removeProperty('display');
});


CodePlay Playground as you play with the keyboard:

Console

The CodePlay Code Box Editors Playground is very simple to use, anyone can directly interact with a minimum of knowledge of HTML experience, live an idea or a project. We believe that only 5% of the developers has the full capacity and knowledge of each key on the keyboard. Therefore we decided to put together a single command from the Key [Esc] == 27.
For every need and every situation the keyboard [Esc] key fixes and puts in place the Original Initial Code Box Editors.
All this without losing the contents of each Box Editors .
!Enjoy your CodePlay.


CodePlay Playground is a project based on WordPress entirely revised to have a clean and dynamic HTML output.

Editor:

- [Esc] To reset the Box Editors and the closure of any open window overlay, including the Output (FULL) Preview.

New! - Double Click to Expand /Open & Close All Box Editors

New! - Ctrl + Up/Down to Show /Hide the Footer Bar. This allows hide footer bar when you want, + ESC to Back.

New! - Preview in Full page is now also possible via dblClick on the Vertical Drag-bar. Each keyboard action can be Reset via the ESC button.


Ex.
- Close this? [Esc], or a Click outside.


Front End User - New /Save Post is Now Open, Register *required.
New Play Now