Added Icon Maker mockup
Update .gitignore, ico-maker.yml, and 9 more files...
This commit is contained in:
@@ -1,3 +0,0 @@
|
||||
.cursor-pointer {
|
||||
cursor: pointer;
|
||||
}
|
||||
|
24
static/resources/NibblePoker/applets/ico-maker/ico-maker.mjs
Normal file
24
static/resources/NibblePoker/applets/ico-maker/ico-maker.mjs
Normal file
@@ -0,0 +1,24 @@
|
||||
/**!
|
||||
* NibblePoker Ico Maker
|
||||
* @author Herwin Bozet <herwin.bozet@nibblepoker.lu>
|
||||
* @license Public Domain
|
||||
*/
|
||||
|
||||
import {Sortable} from "../../../SortableJS/1.15.6/modular/sortable.core.esm.js"
|
||||
|
||||
export const appletId = "ico-maker";
|
||||
|
||||
{
|
||||
const eIconPartsContainer = document.getElementById(`${appletId}-icon-parts-list`);
|
||||
|
||||
|
||||
window.onload = function () {
|
||||
|
||||
// Setting up SortableJS
|
||||
let sortable = Sortable.create(eIconPartsContainer, {
|
||||
animation: 125, // ms, animation speed moving items when sorting, `0` — without animation
|
||||
easing: "cubic-bezier(1, 0, 0, 1)", // Easing for animation. Defaults to null. See https://easings.net/ for examples.
|
||||
|
||||
});
|
||||
};
|
||||
}
|
Reference in New Issue
Block a user