0
0
mirror of https://github.com/Doodle3D/doodle3d-connect.git synced 2024-12-25 01:53:48 +01:00

Also display ethernet cable connected box (192.168.5.1)

This commit is contained in:
peteruithoven 2013-10-18 13:19:36 +02:00
parent 4a8af79661
commit b524906723
2 changed files with 7 additions and 2 deletions

View File

@ -33,8 +33,8 @@
<p id="intro"></p>
<ul id="list"></ul>
<small id="hint">
Can't find your device? Make sure your on the same wifi network. <br/>
You can always use an ethernet cable and go to <a href="http://192.168.5.1">192.168.5.1</a>.
Can't find your box? Make sure your on the same wifi network. <br/>
You can always connect your box to your computer using an ethernet cable.
</small>
<div id="preloader"></div>
</div>

View File

@ -6,6 +6,8 @@ var boxTimeoutTime = 500;
var numBoxesChecking = 0; // count how many boxes we are checking
var numBoxesFound = 0; // count how many boxes responded
var connectedBox = {localip:"192.168.5.1",wifiboxid:"Connected WiFi box"};
var $list;
var $intro;
var $hint;
@ -68,6 +70,8 @@ function updateList(boxes) {
numBoxesChecking = 0;
numBoxesFound = 0;
boxes.push(connectedBox);
// remove displayed, but unlisted boxes
$list.find("a").each(function(index, element) {
var localip = $(element).attr("id");
@ -82,6 +86,7 @@ function updateList(boxes) {
jQuery.each(boxes, function (index,box) {
checkBox(box);
});
//checkBox(connectedBox);
updateIntro();
}
function checkBox(box) {