Add events to the html and respective libraries, web, mobile and core

This commit is contained in:
mmcw-dev 2017-12-20 23:49:51 -05:00
parent e880e44a5c
commit 2545df2c38
4 changed files with 4 additions and 1 deletions

View File

@ -49,7 +49,7 @@
</select> </select>
</div> </div>
<div> <div>
<button id="seq">START SEQUENCE</button> <button id="seq" onclick="sequence();">START SEQUENCE</button>
</div> </div>
<div> <div>
<button id="frame" onclick="frame();">1 FRAME</button> <button id="frame" onclick="frame();">1 FRAME</button>

View File

@ -21,6 +21,7 @@ window.setDir = null;
window.setExposure = null; window.setExposure = null;
window.setDelay = null; window.setDelay = null;
window.setCounter = null; window.setCounter = null;
window.sequence = null;
//ms //ms
var shutter = function (exposure) { var shutter = function (exposure) {

View File

@ -112,6 +112,7 @@ mobile.init = function () {
window.setExposure = mobile.setExposure; window.setExposure = mobile.setExposure;
window.setDelay = mobile.setDelay; window.setDelay = mobile.setDelay;
window.setCounter = mobile.setCounter; window.setCounter = mobile.setCounter;
window.sequence = mobile.sequence;
//show ble-specific fields in settings //show ble-specific fields in settings
for (let i of bleInputs) { for (let i of bleInputs) {

View File

@ -165,5 +165,6 @@ web.init = function () {
window.setDelay = web.setDelay; window.setDelay = web.setDelay;
window.setExposure = web.setExposure; window.setExposure = web.setExposure;
window.setCounter = web.setCounter; window.setCounter = web.setCounter;
window.sequence = web.sequence;
console.log('started web') console.log('started web')
}; };