mirror of
https://github.com/Doodle3D/doodle3d-connect.git
synced 2024-12-25 18:13:48 +01:00
Also display ethernet cable connected box (192.168.5.1)
This commit is contained in:
parent
4a8af79661
commit
b524906723
@ -33,8 +33,8 @@
|
|||||||
<p id="intro"></p>
|
<p id="intro"></p>
|
||||||
<ul id="list"></ul>
|
<ul id="list"></ul>
|
||||||
<small id="hint">
|
<small id="hint">
|
||||||
Can't find your device? Make sure your on the same wifi network. <br/>
|
Can't find your box? 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>.
|
You can always connect your box to your computer using an ethernet cable.
|
||||||
</small>
|
</small>
|
||||||
<div id="preloader"></div>
|
<div id="preloader"></div>
|
||||||
</div>
|
</div>
|
||||||
|
@ -6,6 +6,8 @@ var boxTimeoutTime = 500;
|
|||||||
var numBoxesChecking = 0; // count how many boxes we are checking
|
var numBoxesChecking = 0; // count how many boxes we are checking
|
||||||
var numBoxesFound = 0; // count how many boxes responded
|
var numBoxesFound = 0; // count how many boxes responded
|
||||||
|
|
||||||
|
var connectedBox = {localip:"192.168.5.1",wifiboxid:"Connected WiFi box"};
|
||||||
|
|
||||||
var $list;
|
var $list;
|
||||||
var $intro;
|
var $intro;
|
||||||
var $hint;
|
var $hint;
|
||||||
@ -68,6 +70,8 @@ function updateList(boxes) {
|
|||||||
numBoxesChecking = 0;
|
numBoxesChecking = 0;
|
||||||
numBoxesFound = 0;
|
numBoxesFound = 0;
|
||||||
|
|
||||||
|
boxes.push(connectedBox);
|
||||||
|
|
||||||
// remove displayed, but unlisted boxes
|
// remove displayed, but unlisted boxes
|
||||||
$list.find("a").each(function(index, element) {
|
$list.find("a").each(function(index, element) {
|
||||||
var localip = $(element).attr("id");
|
var localip = $(element).attr("id");
|
||||||
@ -82,6 +86,7 @@ function updateList(boxes) {
|
|||||||
jQuery.each(boxes, function (index,box) {
|
jQuery.each(boxes, function (index,box) {
|
||||||
checkBox(box);
|
checkBox(box);
|
||||||
});
|
});
|
||||||
|
//checkBox(connectedBox);
|
||||||
updateIntro();
|
updateIntro();
|
||||||
}
|
}
|
||||||
function checkBox(box) {
|
function checkBox(box) {
|
||||||
|
Loading…
Reference in New Issue
Block a user