-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathindex.html
40 lines (36 loc) · 2.2 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
<html>
<head>
<title>JQuery Matchcenter Example</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link href="css/matchcenter.css" media="screen,projection" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.6.0/jquery.min.js"></script>
<script type="text/javascript" src="js/jquery.matchcenter.js"></script>
</head>
<body>
<div id="matchfield"></div>
<h2>Aufstellung ändern</h2>
<input type="button" onclick="$('#matchfield').matchcenter('setPlayingSystem', '4-4-1-1');" value="4-4-1-1" />
<input type="button" onclick="$('#matchfield').matchcenter('setPlayingSystem', '4-4-2');" value="4-4-2" />
<input type="button" onclick="$('#matchfield').matchcenter('setPlayingSystem', '4-3-3');" value="4-3-3" />
<input type="button" onclick="$('#matchfield').matchcenter('setPlayingSystem', '4-1-2-1-2');" value="4-1-2-1-2" />
<h2>Weitere Aktionen</h2>
<input type="button" onclick="$('#matchfield').matchcenter('highlightPlayer', 7);" value="Spieler hervorheben" /><br />
<input type="button" onclick="$('#matchfield').matchcenter('addYellowCard' , 10)" value="Gelbe Karte" /><br />
<input type="button" onclick="$('#matchfield').matchcenter('addRedCard', 10)" value="Rote Karte" /><br />
<input type="button" onclick="$('#matchfield').matchcenter('substitutePlayer', 5, 12, 3, 'Fernando')" value="Auswechslung" />
<script type="text/javascript">
var matchcenter = $('#matchfield').matchcenter({system: '4-4-2'});
$('#matchfield').matchcenter("addPlayer", 1, 1, 30, "Vailati");
$('#matchfield').matchcenter("addPlayer", 2, 2, 28, "Dunst");
$('#matchfield').matchcenter("addPlayer", 3, 3, 5, "Schenkel");
$('#matchfield').matchcenter("addPlayer", 4, 4, 16, "Conçalves");
$('#matchfield').matchcenter("addPlayer", 5, 5, 24, "Hämmerli");
$('#matchfield').matchcenter("addPlayer", 6, 6, 25, "Winter");
$('#matchfield').matchcenter("addPlayer", 7, 7, 14, "Frei");
$('#matchfield').matchcenter("addPlayer", 8, 8, 15, "Muntwiler");
$('#matchfield').matchcenter("addPlayer", 9, 9, 32, "Regazzoni");
$('#matchfield').matchcenter("addPlayer", 10, 10, 10, "Scarione");
$('#matchfield').matchcenter("addPlayer", 11, 11, 26, "Abegglen");
</script>
</body>
</html>