feature(client) add panel backlight on drag

This commit is contained in:
coderaiser 2013-09-03 12:38:24 +00:00
parent 62366b9462
commit 9ced84f0da
2 changed files with 13 additions and 0 deletions

View file

@ -204,6 +204,10 @@ body {
padding: 20px;
}
.selected-panel {
border-color: rgba(254, 159, 224, .40);
}
#keyspanel {
text-align: center;
}

View file

@ -260,6 +260,15 @@ var Util, DOM, CloudFunc, CloudCmd;
Util.log('app cacheed');
location.reload();
}, applicationCache);
Events.add(['dragstart', 'dragend'], function () {
var panels = DOM.getByClass('panel'),
i = 0,
n = panels.length;
for (i = 0; i < n; i++)
DOM.toggleClass(panels[i], 'selected-panel');
});
/* загружаем общие функции для клиента и сервера */
DOM.jsload(CloudCmd.LIBDIR + 'cloudfunc.js', function() {