ui: simplify button widgets and optimize layering
This commit is contained in:
parent
8b9ed8c48a
commit
99ae3cc0b8
8 changed files with 2158 additions and 2207 deletions
|
|
@ -28,12 +28,10 @@ module.exports.create = function(widgetData,container) {
|
|||
|
||||
|
||||
var widget = $(`
|
||||
<div class="push toggle">
|
||||
<div class="light"</div>
|
||||
<div class="light">
|
||||
</div>\
|
||||
`),
|
||||
$document = $(document),
|
||||
light = widget.find('.light')[0]
|
||||
$document = $(document)
|
||||
|
||||
widget.value = widget.find('span')
|
||||
widget.state = 0
|
||||
|
|
|
|||
|
|
@ -27,12 +27,10 @@ module.exports.options = {
|
|||
module.exports.create = function(widgetData,container) {
|
||||
|
||||
var widget = $(`
|
||||
<div class="toggle">
|
||||
<div class="light"></div>
|
||||
<div class="light">
|
||||
</div>\
|
||||
`),
|
||||
$document = $(document),
|
||||
light = widget.find('.light')[0]
|
||||
$document = $(document)
|
||||
|
||||
widget.value = widget.find('span')
|
||||
widget.state = 0
|
||||
|
|
|
|||
File diff suppressed because it is too large
Load diff
Loading…
Add table
Add a link
Reference in a new issue