mirror of
https://github.com/Armored-Dragon/overte.git
synced 2025-03-11 16:13:16 +01:00
uses qml. Add last user picked colors using the custom color picker so that users can easily reuse that color.
17 lines
No EOL
448 B
HTML
17 lines
No EOL
448 B
HTML
<!--Note: change the parent postmessage second parameter due to possible security issues-->
|
|
<style type="text/css">
|
|
#undoButton {
|
|
width: 200px;
|
|
height: 200px;
|
|
}
|
|
</style>
|
|
|
|
<button id="undoButton" onclick="undo()">Undo</button>
|
|
<script type="text/javascript">
|
|
function undo() {
|
|
var undoEvent = {
|
|
"type" : "undo"
|
|
};
|
|
parent.postMessage(JSON.stringify(undoEvent), "*");
|
|
}
|
|
</script> |