2019-03-27 02:20:54 +03:00
|
|
|
//when the page is donw loading, you can get ready to start
|
|
|
|
window.onload = function(){
|
2020-04-04 10:41:56 +03:00
|
|
|
updateCursor();
|
|
|
|
|
|
|
|
//if the user specified dimentions
|
|
|
|
if (specifiedDimentions)
|
|
|
|
//create a new pixel
|
|
|
|
newPixel(getValue('size-width'),getValue('size-height'),'');
|
|
|
|
else
|
|
|
|
//otherwise show the new pixel dialog
|
|
|
|
showDialogue('new-pixel', false);
|
|
|
|
};
|