main.html 1.17 KB
<?xml version="1.0" encoding="iso-8859-1"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
	<head>
		<title>My own little Web-App</title>
		<link rel="stylesheet" type="text/css" href="/assets/style/common">
		<script type="text/javascript" src="/assets/js/jquery"></script>
		<script type="text/javascript" src="/assets/js/serverval"></script>
		<script>
			//<![CDATA[
			$(document).ready(function() {
				var sval = new ServerVal("#randval");

				$("ul#menu li:eq(0)").click(function() {
					sval.start();
				});

				$("#randval").click(function() {
					sval.stop();
				});
			});
			//]]>
		</script>
	</head>
	<body> 
		<ul id="menu">
			<li>random Value</li>
		</ul>
		<div id="randval" class="hide">
			<span class=\"small">
				Value created at: <br />
				<span></span><br>
				Next value in: <span></span><br />
			</span>
			Value: <span></span>
		</div>
		<div id="main">
			<h1>Testpage</h1>
			Welcome You!!!<br />
			<img src="/image/me" />
		</div>
		<hr />
		<div id="msg"></div>
	</body>
</html>

<!-- vim: set ts=4 sw=4: -->