Barely working basic playback
This commit is contained in:
parent
2a4dce3616
commit
85a14b5101
19 changed files with 406 additions and 24 deletions
|
@ -4,3 +4,4 @@ add_jslib(utils/class.js lib/utils/class ${LORGAR_DIR} browser)
|
|||
add_jslib(utils/subscribable.js lib/utils/subscribable ${LORGAR_DIR} browser)
|
||||
add_jslib(utils/globalMethods.js lib/utils/globalMethods ${LORGAR_DIR} browser)
|
||||
add_jslib(utils/enum.js lib/utils/enum ${LORGAR_DIR} browser)
|
||||
add_jslib(utils/stateMachine.js lib/utils/stateMachine ${LORGAR_DIR} browser)
|
||||
|
|
|
@ -16,6 +16,7 @@ add_jslib(wController/attributes.js lib/wController/attributes ${LORGAR_DIR} bro
|
|||
add_jslib(wController/localModel.js lib/wController/localModel ${LORGAR_DIR} browser)
|
||||
add_jslib(wController/imagePane.js lib/wController/imagePane ${LORGAR_DIR} browser)
|
||||
add_jslib(wController/file/file.js lib/wController/file/file ${LORGAR_DIR} browser)
|
||||
add_jslib(wController/file/audio.js lib/wController/file/audio ${LORGAR_DIR} browser)
|
||||
add_jslib(wController/image.js lib/wController/image ${LORGAR_DIR} browser)
|
||||
add_jslib(wController/button.js lib/wController/button ${LORGAR_DIR} browser)
|
||||
add_jslib(wController/player.js lib/wController/player ${LORGAR_DIR} browser)
|
||||
|
|
|
@ -58,10 +58,8 @@
|
|||
if (this._enabled !== enabled) {
|
||||
this._enabled = enabled;
|
||||
if (this._enabled) {
|
||||
this.addClass("hoverable");
|
||||
this.removeClass("disabled");
|
||||
} else {
|
||||
this.removeClass("hoverable");
|
||||
this.addClass("disabled");
|
||||
}
|
||||
}
|
||||
|
|
|
@ -78,11 +78,7 @@
|
|||
Subscribable.fn.destructor.call(this);
|
||||
},
|
||||
"addClass": function(className) {
|
||||
var arr = this._e.className.split(" ");
|
||||
if (arr.indexOf(className) === -1) {
|
||||
arr.push(className);
|
||||
this._e.className = arr.join(" ");
|
||||
}
|
||||
this._e.classList.add(className);
|
||||
},
|
||||
"_applyProperties": function() {
|
||||
for (var i = 0; i < this._f.properties.length; ++i) {
|
||||
|
@ -141,17 +137,7 @@
|
|||
}
|
||||
},
|
||||
"removeClass": function(className) {
|
||||
var arr = this._e.className.split(" ");
|
||||
var index = arr.indexOf(className)
|
||||
var toJoin = false;
|
||||
while (index !== -1) {
|
||||
arr.splice(index, 1);
|
||||
index = arr.indexOf(className)
|
||||
toJoin = true;
|
||||
}
|
||||
if (toJoin) {
|
||||
this._e.className = arr.join(" ");
|
||||
}
|
||||
this._e.classList.remove(className);
|
||||
},
|
||||
"_resetTheme": function() {
|
||||
this._onClearProperties();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue