Skip to content
Snippets Groups Projects
Commit 1ba91d3a authored by Gaurav Arora (gaa721)'s avatar Gaurav Arora (gaa721)
Browse files

made paint smart with server name

parent d6b43441
No related branches found
No related tags found
No related merge requests found
No preview for this file type
......@@ -4,8 +4,8 @@
<title>
WebAbstraction
</title>
<script src="http://gaurav-hci.usask.ca:4000/socket.io/socket.io.js"></script>
<script type="text/javascript" src="http://gaurav-hci.usask.ca:4000/easyrtc/easyrtc.js"></script>
<!--<script src="http://domain_name:4000/socket.io/socket.io.js"></script>-->
<!--<script type="text/javascript" src="http://domain_name:4000/easyrtc/easyrtc.js"></script>-->
<script type="text/javascript" src="{%static 'rtcWeb/js/debugout.js'%}"></script>
<link rel="stylesheet" href="http://www.w3schools.com/lib/w3.css"/>
<script language="javascript" type="text/javascript" src="{%static 'rtcWeb/js/libraries/p5.js'%}"></script>
......@@ -22,9 +22,24 @@
<script src="https://cdnjs.cloudflare.com/ajax/libs/fingerprintjs2/1.3.0/fingerprint2.min.js"></script>
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.8.2/jquery.min.js" type="text/javascript"></script>
<script>
var domain_name="gaurav-hci.usask.ca"
$(document).ready(function () {
console.log("connecting");
easyrtc.setSocketUrl("//gaurav-hci.usask.ca:4000");
$.getScript( "http://"+domain_name+":4000/socket.io/socket.io.js", function( data, textStatus, jqxhr ) {
console.log( data ); // Data returned
console.log( textStatus ); // Success
console.log( jqxhr.status ); // 200
console.log( "Load was performed." );
});
$.getScript( "http://"+domain_name+":4000/easyrtc/easyrtc.js", function( data, textStatus, jqxhr ) {
console.log( data ); // Data returned
console.log( textStatus ); // Success
console.log( jqxhr.status ); // 200
console.log( "Load was performed." );
console.log("connecting");
easyrtc.setSocketUrl("//"+domain_name+":4000");
});
});
</script>
<script>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment