diff --git a/index.html b/index.html new file mode 100644 index 0000000..fa13988 --- /dev/null +++ b/index.html @@ -0,0 +1,13 @@ + + + + + + + + Dotgrid + + + + + diff --git a/links/fonts.css b/links/fonts.css new file mode 100644 index 0000000..e69de29 diff --git a/links/main.css b/links/main.css new file mode 100644 index 0000000..6eba667 --- /dev/null +++ b/links/main.css @@ -0,0 +1,3 @@ +body { background:black; padding:50px;} + +#dotgrid { background:red; margin:0px auto; border-radius:3px; } \ No newline at end of file diff --git a/links/reset.css b/links/reset.css new file mode 100644 index 0000000..9f57584 --- /dev/null +++ b/links/reset.css @@ -0,0 +1 @@ +* { margin:0;padding:0;border:0;outline:0;text-decoration:none;font-weight:inherit;font-style:inherit;color:inherit;font-size:100%;font-family:inherit;vertical-align:baseline;list-style:none;border-collapse:collapse;border-spacing:0; -webkit-font-smoothing: antialiased;-moz-osx-font-smoothing: grayscale;} \ No newline at end of file diff --git a/scripts/dotgrid.js b/scripts/dotgrid.js new file mode 100644 index 0000000..6ff2238 --- /dev/null +++ b/scripts/dotgrid.js @@ -0,0 +1,15 @@ +function Dotgrid(width,height) +{ + this.width = width; + this.height = height; + this.element = null; + + this.install = function() + { + this.element = document.createElement("div"); + this.element.id = "dotgrid"; + this.element.style.width = this.width; + this.element.style.height = this.height; + document.body.appendChild(this.element); + } +} \ No newline at end of file diff --git a/scripts/init.js b/scripts/init.js new file mode 100644 index 0000000..c90722b --- /dev/null +++ b/scripts/init.js @@ -0,0 +1,2 @@ +dotgrid = new Dotgrid(300,300); +dotgrid.install(); \ No newline at end of file