|
|
@ -35,7 +35,7 @@ let corpi = {
|
|
|
|
|
|
|
|
|
|
|
|
$(document).ready(function(){
|
|
|
|
$(document).ready(function(){
|
|
|
|
|
|
|
|
|
|
|
|
// generate divs
|
|
|
|
// Generate divs
|
|
|
|
Object.values(corpi).forEach(corpus => {
|
|
|
|
Object.values(corpi).forEach(corpus => {
|
|
|
|
$('#boxes' ).append(`
|
|
|
|
$('#boxes' ).append(`
|
|
|
|
<div class="ui-widget-content draggable resizable" id="${corpus['id']}">
|
|
|
|
<div class="ui-widget-content draggable resizable" id="${corpus['id']}">
|
|
|
@ -47,6 +47,7 @@ $(document).ready(function(){
|
|
|
|
$('#icons').append(`<button onclick="$(${corpus['id']}).fadeIn()" class="icon">${corpus["glyph"]}</button>`)
|
|
|
|
$('#icons').append(`<button onclick="$(${corpus['id']}).fadeIn()" class="icon">${corpus["glyph"]}</button>`)
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// Start mouse UI
|
|
|
|
const dragResize = new DragResizeClose();
|
|
|
|
const dragResize = new DragResizeClose();
|
|
|
|
|
|
|
|
|
|
|
|
});
|
|
|
|
});
|
|
|
|