Skip to content

Commit 3957750

Browse files
committed
added text field for specifying server
1 parent f9078a5 commit 3957750

File tree

2 files changed

+13
-1
lines changed

2 files changed

+13
-1
lines changed

index.html

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -364,7 +364,14 @@ <h4 class="panel-title">
364364
<button type="button" class="btn btn-default"
365365
data-open-link="https://github.com/MDPvis/MDPvis.github.io/issues/new?title=Add%20Simulator%20to%20List">
366366
<span class="glyphicon glyphicon-share-alt" aria-hidden="true"></span>
367-
Your Server Here
367+
Open an Issue to be Included
368+
</button>
369+
<div class="form-group">
370+
<label for="customServer">Custom Server</label>
371+
<input type="text" class="form-control" id="customServer" placeholder="http://example.com:80">
372+
</div>
373+
<button id="customServerSubmit" type="submit" class="btn btn-default" data-dismiss="modal">
374+
Open Connection
368375
</button>
369376
</p>
370377
</div>

js/index.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -705,6 +705,11 @@ var MDPVis = {
705705
MDPVis.server.dataEndpoint = simulatorPath;
706706
MDPVis.initialize();
707707
});
708+
$("#customServerSubmit").click(function(elem){
709+
$(".post-modal-show").show();
710+
MDPVis.server.dataEndpoint = $("#customServer").val();
711+
MDPVis.initialize();
712+
});
708713
$('#serverSelectionModal').modal();
709714
}
710715

0 commit comments

Comments
 (0)