Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
vesta
iot-gateway-setup
Commits
39cbf52e
Commit
39cbf52e
authored
Aug 18, 2017
by
David Mondou
Browse files
exit.html now shows exit message after setup.
parent
77a8c9fe
Changes
4
Hide whitespace changes
Inline
Side-by-side
public/exit.html
View file @
39cbf52e
...
...
@@ -25,19 +25,9 @@
<h1>
Leaving Setup
</h1>
<div
class=
'section'
>
<div
class=
"content"
style=
"padding: 30px; padding-bottom: 0px"
>
Please wait while we setup your device. Note that if WiFi is being setup,
<b>
the device will disconnect
momentarily. When that happens, please reconnect by joining
<i>
this
</i>
machine to the 'params_new_wifi'
network
</b>
and wait while we try to reach your device at
<a
href=
"http://params_hostname"
>
http://params_hostname
</a>
.
Please wait while we setup your device. Once the setup is complete the user LED on the Rigado Gateway will turn solid green.
<b>
When that happens, please reconnect by joining
<i>
this
</i>
machine to the 'params_new_wifi'
network
</b>
<br><br>
<hr
class=
"progressbar"
id=
"progressbar"
align=
"left"
>
<textarea
class=
"progresstext"
id=
"progresstext"
readonly
rows=
"1"
cols=
"200"
></textarea><br><br>
<textarea
class=
"cmdout"
id=
"cmdout"
readonly
rows=
"10"
></textarea>
</div>
</div>
<div
class=
'section'
>
<div
class=
"content"
id=
"errbox"
style=
"padding: 30px; padding-bottom: 0px; padding-top: 0px; display: none"
>
</div>
</div>
</body>
...
...
public/index.html
View file @
39cbf52e
...
...
@@ -228,8 +228,6 @@
</table>
</td>
<td
class=
"right"
>
<button
type=
"button"
class=
"linkbutton"
id=
"backToAutomatic"
style=
"visibility: hidden"
Ghost User
@ghost
·
Jan 24, 2018
Removing this button causes the manual SSID entry to fail
Removing this button causes the manual SSID entry to fail
Please
register
or
sign in
to reply
onclick=
"switchToAutomaticSetup();"
>
Back to automatic setup
</button>
<input
type=
"text"
id=
"newwifi"
name=
"newwifi"
class=
"textbox"
style=
"display: none"
>
<select
id=
"newwifis"
name=
"newwifis"
class=
"selector"
onchange=
"setSsidsRelatedFields()"
style=
"display: inline-block"
>
...
...
public/rigado-logo.png
100644 → 100755
View file @
39cbf52e
File mode changed from 100644 to 100755
server.js
View file @
39cbf52e
...
...
@@ -73,10 +73,10 @@ function injectStatus(in_text, statusmsg, iserr) {
if
(
statusmsg
)
{
if
(
iserr
){
status
=
'
<div id="statusarea" name="statusarea" class="status errmsg">
'
+
'
</div>
'
;
status
=
'
<div id="statusarea" name="statusarea" class="status errmsg">
'
+
statusmsg
+
'
</div>
'
;
//console.log("status errmsg");
}
else
{
status
=
'
<div id="statusarea" name="statusarea" class="status">
'
+
'
</div>
'
;
status
=
'
<div id="statusarea" name="statusarea" class="status">
'
+
statusmsg
+
'
</div>
'
;
//console.log("status good");
}
}
...
...
@@ -227,14 +227,11 @@ function submitForm(params, res, req) {
res
.
end
(
injectStatus
(
getStateBasedIndexPage
(),
result
.
failure
,
true
));
return
;
}
else
{
res
.
end
(
injectStatus
(
getStateBasedIndexPage
(),
params
,
true
));
}
if
(
result
.
cmd
){
console
.
log
(
result
);
commands
.
push
(
result
);
}
}
}
// no errors occurred. Do success response.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment