Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
R
RealTimeChess
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Gaurav Arora (gaa721)
RealTimeChess
Commits
1ba91d3a
Commit
1ba91d3a
authored
8 years ago
by
Gaurav Arora (gaa721)
Browse files
Options
Downloads
Patches
Plain Diff
made paint smart with server name
parent
d6b43441
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
WebAbstraction/db.sqlite3
+0
-0
0 additions, 0 deletions
WebAbstraction/db.sqlite3
WebAbstraction/rtcWeb/templates/rtcWeb/paint.html
+19
-4
19 additions, 4 deletions
WebAbstraction/rtcWeb/templates/rtcWeb/paint.html
with
19 additions
and
4 deletions
WebAbstraction/db.sqlite3
+
0
−
0
View file @
1ba91d3a
No preview for this file type
This diff is collapsed.
Click to expand it.
WebAbstraction/rtcWeb/templates/rtcWeb/paint.html
+
19
−
4
View file @
1ba91d3a
...
...
@@ -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>
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment