-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
93 lines (72 loc) · 2.55 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<!-- The above 3 meta tags *must* come first in the head; any other head content must come *after* these tags -->
<meta name="description" content="">
<meta name="author" content="">
<link rel="icon" href="../../favicon.ico">
<title>Entorns de Comunicacio Virtual</title>
<!-- Bootstrap core CSS -->
<link href="css/bootstrap.min.css" rel="stylesheet">
<!-- Custom styles for this template -->
<link href="css/cover.css" rel="stylesheet">
<link href="css/bootstrap-switch.min.css" rel="stylesheet">
<link href="css/style.css" rel="stylesheet">
</head>
<body>
<div class="site-wrapper">
<div class="site-wrapper-inner">
<div class="row">
<div id="alert_placeholder">
<div id="alert_placeholder_inner" class="row">
</div>
</div>
</div>
<div id="app-content">
</div>
</div>
</div>
<!-- Bootstrap core JavaScript
================================================== -->
<!-- Placed at the end of the document so the pages load faster -->
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.2/jquery.min.js"></script>
<script>
$(window).resize(function(e)
{
if($('#lienzo').length > 0 && $('#chat-content-row').length > 0){
console.log($('#chat-content-row').height());
console.log($('#lienzo').height());
$('#chat-content-row').height($('#lienzo').height()-49); //minus input height
}
});
$(window).resize();
$('#app-content').load('views/home.html',
function()
{
/*
function resizeCanvas(){
if($('canvas-wrapper')===undefined)
return;
$('canvas').height($('canvas').width()/1.41414141414141);
}*/
$( "form" ).submit(
function( event ) {
event.preventDefault();
var form = getFormData(this);
myApp.join(form['user'], form['room']);
}
);
});
</script>
<script src="js/bootstrap.min.js"></script>
<script src="js/simpleserver.js"></script>
<script src="js/bootstrap-switch.js"></script>
<!--<script src="js/code.js"></script>-->
<script src="js/tools.js"></script>
<script src="js/lienzo.js"></script>
<script src="js/game.js"></script>
</body>
</html>