mirror of
https://github.com/lospec/pixel-editor.git
synced 2023-08-10 21:12:51 +03:00
Turned the PaleteBlock into an IIFE
This commit is contained in:
@@ -60,15 +60,15 @@
|
||||
|
||||
<div id = "palette-container">
|
||||
<ul id = "palette-list">
|
||||
<li style = "background-color:rgb(255,0,0);width:40px;height:40px;" onmousedown="startRampSelection(event)"
|
||||
onmousemove="updateRampSelection(event)" onmouseup="endRampSelection(event)"></li>
|
||||
<li style = "background-color:rgb(0,255,0);width:40px;height:40px;"onmousedown="startRampSelection(event)"
|
||||
onmousemove="updateRampSelection(event)" onmouseup="endRampSelection(event)"></li>
|
||||
<li style = "background-color:rgb(255,0,0);width:40px;height:40px;" onmousedown="PaletteBlock.startRampSelection(event)"
|
||||
onmousemove="PaletteBlock.updateRampSelection(event)" onmouseup="PaletteBlock.endRampSelection(event)"></li>
|
||||
<li style = "background-color:rgb(0,255,0);width:40px;height:40px;"onmousedown="PaletteBlock.startRampSelection(event)"
|
||||
onmousemove="PaletteBlock.updateRampSelection(event)" onmouseup="PaletteBlock.endRampSelection(event)"></li>
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
<div id="pb-options">
|
||||
<button title="Add colours to palette" onclick="pbAddColours()">Add colours</button>
|
||||
<button title="Remove colours from palette" onclick="pbRemoveColours()">Remove colours</button>
|
||||
<button title="Add colours to palette" id="pb-addcolours">Add colours</button>
|
||||
<button title="Remove colours from palette" id="pb-removecolours">Remove colours</button>
|
||||
</div>
|
||||
</div>
|
||||
Reference in New Issue
Block a user