<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title></title>
</head>
<body>
<script type="text/javascript" src="canvas-nest.js" ></script>
</body>
</html>
! function() {
function get_attribute(node, attr, default_value) {
return node.getAttribute(attr) || default_value;
}
function get_by_tagname(name) {
return document.getElementsByTagName(name);
}
function get_config_option() {
var scripts = get_by_tagname("script"),
script_len = scripts.length,
script = scripts[script_len - 1];
return {
l: script_len,
z: get_attribute(script, "zIndex", -1),
o: get_attribute(script, "opacity", 0.5),
c: get_attribute(script, "color", "0,0,0"),
n: get_attribute(script, "count", 99)
};
}
function set_canvas_size() {
canvas_width = the_canvas.width = window.innerWidth || document.documentElement.clientWidth || document.body.clientWidth,
canvas_height = the_canvas.height = window.innerHeight || document.documentElement.clientHeight || document.body.clientHeight;
}
function draw_canvas() {
context.clearRect(0, 0, canvas_width, canvas_height);