-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
118 lines (95 loc) · 4.16 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
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
<!doctype html>
<html ng-app="WhoApp">
<head>
<meta charset="utf-8">
<title>Кто из нас?</title>
<link rel="stylesheet" href="css/app.css"/>
<link rel="stylesheet" href="lib/bootstrap/bootstrap.min.css"/>
<link rel="stylesheet" href="lib/jscrollpane/jquery.jscrollpane.css"/>
<script src="lib/jquery.min.js"></script>
<script src="lib/jquery-ui.min.js"></script>
<script src="lib/bootstrap/bootstrap.min.js"></script>
<script src="lib/underscore-min.js"></script>
<script src="lib/angular/angular.js"></script>
<script src="//vk.com/js/api/xd_connection.js?2"></script>
<script src="js/app.js"></script>
<script src="js/services.js"></script>
<script src="js/controllers/WhoController.js"></script>
<script src="lib/jscrollpane/jquery.mousewheel.js"></script>
<script src="lib/jscrollpane/jquery.jscrollpane.min.js"></script>
<script src="js/swfobject.js"></script>
<script>
$(function(){
// $('.panel').jScrollPane();
// var params = {
// menu: "false",
// scale: "Scale",
// allowScriptAccess: "always",
// bgcolor: "",
// wmode: "opaque",
// flashvars: "autostart=false",
// play: "false"
// };
// var attributes = {
// id: "preloader"
// };
// swfobject.embedSWF(
// "img/hypnotoad.swf",
// "hypnotoad", "200", "200", "10.0.0", null,
// null,
// params,
// attributes
// );
// swfobject.getObjectById('hypnotoad').stopVideo();
});
</script>
</head>
<body>
<div class="container" ng-controller="WhoController" ng-cloak>
<div class="panel panel-default panel-friends pull-left">
<div class="panel-heading">Друзья</div>
<div class="panel-body">
<div class="statistics">
<span class="label label-default">Всех: {{friends.length}}</span>
<span class="label label-info">Онлайн: {{friends_online.length}}</span>
<span class="label label-success">Играют: {{friends_checked.length}}</span>
</div>
<div class="filter">
<input type="search" ng-model="name" placeholder="Поиск" />
<label>
<span class="filter-title">Онлайн</span>
<input type="checkbox" ng-model="online" ng-false-value="" />
</label>
</div>
<div class="friend-list">
<div class="friend" ng-repeat="friend in friends | orderBy:'name' | filter: {'online': online, 'name': name}">
<label>
<input type="checkbox" ng-model="friend.is_checked" ng-click="check_friend(friend)">
<img src="{{friend.photo}}" width="25" height="25" class="img-rounded">
<span class="name">{{friend.name}}</span>
</label>
<div class="online" ng-show="friend.online"></div>
</div>
</div>
</div>
</div>
<div class="panel panel-default pull-right">
<div class="panel-heading">Играть</div>
<div class="panel-body">
<div class="winner">
<button type="button button-play" class="btn btn-success" ng-click="play(friends)" ng-disabled="friends_checked.length < 2">
<span class="glyphicon glyphicon-play"></span> Запустить
</button>
<div class="name">
{{winner.name}}
</div>
<img src="{{winner.photo_big}}" class="img-rounded">
<div id="hypnotoad-container">
<div id="hypnotoad"></div>
</div>
</div>
</div>
</div>
</div>
</body>
</html>