Commit 7f46f35c authored by Martin Cífka's avatar Martin Cífka
Browse files

minor changes

parent 1378f8f3
Loading
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -148,7 +148,7 @@
                
                <table id="wsFormTable2">
                    <tr>
                        <td><label for="checkboxWifiOff">Turn off Wifi when shooting<br> timelapse above 1 minute</label></td>
                        <td><label for="checkboxWifiOff">Turn off Wi-Fi when shooting<br> timelapse above 1 minute</label></td>
                        <td style="padding-left: 15px;"><label class="switch">
                            <input id="checkboxWifiOff" type="checkbox" name="wifiOff" disabled><span class="slider"></span>
                            </label>
+5 −3
Original line number Diff line number Diff line
@@ -40,7 +40,6 @@ function getDateTime()




function wsConnect()
{
    if (!("WebSocket" in window))
@@ -103,6 +102,7 @@ function wsConnect()
    ws.onerror = function(error){};
}


function setState(newState)
{
    document.getElementById("buttonConnect").disabled = false;
@@ -163,7 +163,7 @@ function setState(newState)
            {
                //DISCONNECTED -> READY
                case State.DISCONNECTED:
                    notify("Connected!", false, 1000);
                    notify("Connected!", false, 900);
                    ws.send('{"cmd":"RTC_SYNC","param":"' + getDateTime() + '"}');
                    break;
                    
@@ -249,8 +249,10 @@ function powerOffClick()
}


async function notify(text, error = false, time = 1500)
async function notify(text, error = false, time = 0)
{
    if (time === 0)
        time = text.length * 25 + 700;
    if (error === true)
        console.error(text);
    else
+4 −0
Original line number Diff line number Diff line
@@ -229,6 +229,10 @@ table.wrapper {
    
    .box {
        padding: 4%;
        transform: translate(0, -50%);
        -webkit-transform: translate(0, -50%);
        left: 0;
        right: 0;
    }
    
    #wsFormTable1 > tbody > tr > td:nth-child(2) {
+1 −1
Original line number Diff line number Diff line
@@ -30,7 +30,7 @@ public:
        GetSetISO = 5172,
        GetSetBracketingBuiltIn = 4918,
        GetSetMode = 4611, //button press
        GetSetPhotoWB = 5168,//TODO
        GetSetPhotoWB = 5168,

        GetSetPhotoResolution = 4872,