Init
This commit is contained in:
15
scripts/dotgrid.js
Normal file
15
scripts/dotgrid.js
Normal file
@@ -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);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user