CSS


html, body {
  margin: 0;
  height: 100%;
  overflow: hidden;
}
canvas {
  margin: 0;
  width: 100%;
}
div {
  position: absolute;
  left:0;
  top:0;
  width: 100%;
  height: 100%;
  z-index: 999;
	
background: -moz-radial-gradient(center, ellipse cover,  rgba(255,255,255,0.35) 0%, rgba(255,255,255,0) 100%);  
background: -webkit-gradient(radial, center center, 0px, center center, 100%, color-stop(0%,rgba(255,255,255,0.35)), color-stop(100%,rgba(255,255,255,0)));  
background: -webkit-radial-gradient(center, ellipse cover,  rgba(255,255,255,0.35) 0%,rgba(255,255,255,0) 100%);  
background: -o-radial-gradient(center, ellipse cover,  rgba(255,255,255,0.35) 0%,rgba(255,255,255,0) 100%);  
background: -ms-radial-gradient(center, ellipse cover,  rgba(255,255,255,0.35) 0%,rgba(255,255,255,0) 100%);  
background: radial-gradient(ellipse at center,  rgba(255,255,255,0.35) 0%,rgba(255,255,255,0) 100%);  
}


JS


var canvas, ctx;
var drawTimer, clearTimer;
var width, height;
var html = document.documentElement;

$(document).ready(function() {
    canvas = document.getElementById('canvas');
    width = canvas.width = html.clientWidth;
    height = canvas.height = html.clientHeight;
    ctx = canvas.getContext('2d');    
    drawTimer = window.setInterval(draw, 180);
    clearTimer = window.setInterval(clear, 100);
});

function resizeCanvas() {
  settlePoint = Array(html.clientWidth);
  settleCanvas.width = canvas.width = html.clientWidth;
  settleCanvas.height = canvas.height = html.clientHeight;
}

function draw() {
  var fontSize = Math.random() * 22;
  var x = Math.random() * canvas.width;
  var y = Math.random() * canvas.height;
  var r = Math.floor(Math.random() * 255) + 50;
  var g = Math.floor(Math.random() * 255) + 50;
  var b = Math.floor(Math.random() * 255) + 50;

  var color = 'rgba(' + r + ',' + g + ',' + b +',1.0)';
  ctx.fillStyle = color;
  ctx.font = fontSize + 'pt Arial';
  ctx.fillText('*', x, y);
}                                     
                                     
function clear() {
  ctx.fillStyle = 'rgba(0,0,0,0.25)';
  ctx.fillRect(0, 0, width, height);
}




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