diff --git a/dist/www/index.html b/dist/www/index.html index f9409d1..d7982cc 100644 --- a/dist/www/index.html +++ b/dist/www/index.html @@ -5,7 +5,7 @@ - + @@ -22,6 +22,20 @@ height: 60%; } + .toggle-collapse-closed::after { + font-family: 'FontAwesome'; + content: "\f077"; + float: right; + cursor: pointer; + } + + .toggle-collapse-opened::after { + font-family: 'FontAwesome'; + content: "\f078"; + float: right; + cursor: pointer; + } + .modal-mask { position: fixed; z-index: 9998; @@ -96,23 +110,24 @@

{{ state.title }}

{{ state.text }}

- +

My header

Some body text

- + - + diff --git a/dist/www/p4wnp1.css b/dist/www/p4wnp1.css index 1bac4e7..ecbd5c2 100644 --- a/dist/www/p4wnp1.css +++ b/dist/www/p4wnp1.css @@ -82,7 +82,7 @@ button { .toggle-switch { position: relative; - display: block; + display: inline-block; width: 80px; height: 30px; background-color: gray; @@ -91,6 +91,7 @@ button { /* box-shadow: h-offset v-offset blur spread color inset initial inherit */ box-shadow: 1px 1px 1px 0 #3f3f3f, -1px -1px 1px 0 #ffffff; /* 2px offset gray to top, white to bottom */ cursor: pointer; + vertical-align: middle; } diff --git a/web_client/hvueCompUSBSettings.go b/web_client/hvueCompUSBSettings.go index 96ed6e5..51acd5e 100644 --- a/web_client/hvueCompUSBSettings.go +++ b/web_client/hvueCompUSBSettings.go @@ -61,7 +61,7 @@ func newCompUSBSettingsData(vm *hvue.VM) interface{} { const ( compUSBSettingsTemplate = `
- +
- + - - - + + - - + + - - + + diff --git a/web_client/mvuexGlobalState.go b/web_client/mvuexGlobalState.go index 66c6a7c..a4d570c 100644 --- a/web_client/mvuexGlobalState.go +++ b/web_client/mvuexGlobalState.go @@ -62,7 +62,7 @@ func createGlobalStateStruct() GlobalState { state.CurrentGadgetSettings = NewUSBGadgetSettings() //UpdateGadgetSettingsFromDeployed(state.CurrentGadgetSettings) state.EventLog = NewLogger(maxLogEntries) - state.IsModalEnabled = true + state.IsModalEnabled = false state.Counter = 1337 state.Text = "Hi there says MaMe82" diff --git a/web_client/rbuild.sh b/web_client/rbuild.sh index 047543f..1ffa2ba 100755 --- a/web_client/rbuild.sh +++ b/web_client/rbuild.sh @@ -2,6 +2,9 @@ # dependencies for the web app gopherjs build -o ../build/webapp.js #main.go -scp ../build/webapp* pi@raspberrypi.local:~/P4wnP1_go/dist/www/ -scp ../dist/www/index.html pi@raspberrypi.local:~/P4wnP1_go/dist/www/ -scp ../dist/www/p4wnp1.css pi@raspberrypi.local:~/P4wnP1_go/dist/www/ +#scp ../build/webapp* pi@raspberrypi.local:/usr/local/P4wnP1/www/ +#scp ../dist/www/index.html pi@raspberrypi.local:/usr/local/P4wnP1/www/ +#scp ../dist/www/p4wnp1.css pi@raspberrypi.local:/usr/local/P4wnP1/www +scp ../build/webapp* root@raspberrypi.local:/usr/local/P4wnP1/www/ +scp ../dist/www/index.html root@raspberrypi.local:/usr/local/P4wnP1/www/ +scp ../dist/www/p4wnp1.css root@raspberrypi.local:/usr/local/P4wnP1/www/
USB gadget settings @@ -93,21 +93,26 @@ const (
CDC ECM + + +
RNDIS + + +
HID Keyboard