Location: PHPKode > projects > ezStats Serverviewer > ezServer/templates/scoretable.html
<script type="text/javascript">
	(function($) {
		$(document).ready(function(){
			$('#ezScore table').tablesorter({
				sortList: [[5,1]],
				textExtraction: function(node) { return node.getAttribute("sort") }
			});
			$('#ezScore [title]').tooltip(); 
			
			// Refresh-Button initialisieren
			$('#ezScore .ezReload').on({
				mouseover: function() {
					var steps = [0, 20, 40, 60, 0]; // Das Verschieben der Textur pro Animationsschritt in Pixeln
					var index = -1;
					
					var interval = setTimeout(function() {
						index++;
						// if(index == 4) index = 0; // Animation Endlosschleife
						
						$('#ezScore .ezReload span').css('backgroundPosition', '0px -' + steps[index] + 'px');
						setTimeout(arguments.callee, 100);
					}, 25);
				},
				click: function() {
					$.loadHTML({ id: $id, action: "scoretable",  target: "#ezScore" });
				}
			});
		});
	})(jQuery);
</script>

<div class="ezReload"><span title="%reload%"></span></div>

<div class="lcol">
	<hgroup>
		<h1>$team1</h1>
		<h2>$round[ticketsUS] %tickets%</h2>
	</hgroup>
	<table team="1" class="sort">
		<thead>
			<tr>
				<th>&nbsp;&nbsp;&nbsp;</th>
				<th>%name%</th>
				<th title="%kills%"><div class="ezTexture" style="background-position: 0 -32px"></div></th>
				<th title="%deaths%"><div class="ezTexture" style="background-position: 0 -96px"></div></th>
				<th title="%kdr%"><div class="ezTexture" style="background-position: 0 -80px"></div></th>
				<th title="%score%"><div class="ezTexture" style="background-position: 0 -144px"></div></th>
				<th style="$show"></th>
			</tr>
		</thead>
		<tbody></tbody>
	</table>
</div>
<div class="rcol">
	<hgroup>
		<h1>$team2</h1>
		<h2>$round[ticketsRU] %tickets%</h2>
	</hgroup>
	<table team="2" class="sort">
		<thead>
			<tr>
				<th>&nbsp;&nbsp;&nbsp;</th>
				<th>%name%</th>
				<th title="%kills%"><div class="ezTexture" style="background-position: 0 -32px"></div></th>
				<th title="%deaths%"><div class="ezTexture" style="background-position: 0 -96px"></div></th>
				<th title="%kdr%"><div class="ezTexture" style="background-position: 0 -80px"></div></th>
				<th title="%score%"><div class="ezTexture" style="background-position: 0 -144px"></div></th>
				<th style="$show"></th>
			</tr>
		</thead>
		<tbody></tbody>
	</table>
</div>
<div class="clear tright">$roundinfo</div>
Return current item: ezStats Serverviewer