Skip to content

Instantly share code, notes, and snippets.

View tobitailor's full-sized avatar

Tobias Schneider tobitailor

View GitHub Profile
// From the 140bytes wishlist here: https://github.com/jed/140bytes/wiki/Wishlist
// TASK:
// Create a function which can create a DOM structure from this:
//
domBuilder(
[/HTML/],
[/HEAD/],
[/TITLE/],
"Wouldn't this be cool?",
[],
// Kanvas v0.0.1 (c) 2012 Tobias Schneider
// Released under MIT license.
// Kanvas adds support for not (yet) implemented HTML Canvas APIs.
;var Kanvas = Kanvas || (function (document, undefined) {
'use strict';
<!DOCTYPE html>
<html dir="ltr" mozdisallowselectionprint moznomarginboxes>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
<style>
* {
padding: 0;
margin: 0;
}