index.html 2.03 KB
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">

<head>
<link type="text/css" rel="stylesheet"
	href="/MoyaWeb/javax.faces.resource/theme.css.jsf?ln=primefaces-aristo" />

<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>Default event - Adduser</title>
<meta name="description" content="Lippukauppa" />
<meta name="author" content="CodeCrew ry" />
<meta http-equiv="Content-Language" content="fi" />

<link rel="stylesheet" type="text/css"
	href="/MoyaWeb/resources/templates/adduser/css/style.css" />
<link rel="stylesheet" type="text/css"
	href="/MoyaWeb/resources/templates/adduser/css/general.css" />
</head>

<body>
	<script type="text/javascript"
		src="/MoyaWeb/javax.faces.resource/jquery/jquery.js.jsf?ln=primefaces&amp;v=5.0"></script>
	<script type="text/javascript"
		src="/MoyaWeb/javax.faces.resource/script/jquery.cookie.js.jsf"></script>
	<div class="container top"></div>

	<div class="container clearfix">

		<div id="content" class="boxcenter">

			<div>
				<table>
					<tbody>
						<tr>
							<td>
								<h1>Welcome</h1>
							</td>
							<td>
								<div style="width: 300px; margin: 0 auto;">
									<a href="/MoyaWeb/admin/adduser/newuser.jsf" class="touchItem">
										<div>Create new user</div>
									</a> <span style="width: 6em;"> </span><a
										href="/MoyaWeb/admin/adduser/login.jsf" class="touchItem">
										<div>Update profile picture</div>
									</a>
								</div>
							</td>
						</tr>
					</tbody>
				</table>

			</div>

		</div>

	</div>

	<script>
		$(document).ready(
				function() {

					$(window).resize(function() {
						onResize();
					});

					function onResize() {
						$('.boxcenter').css(
								{
									position : 'absolute',
									left : ($(window).width() - $('.boxcenter')
											.outerWidth()) / 2,
									top : ($(window).height() - $('.boxcenter')
											.outerHeight()) / 2
								});

					}

					// To initially run the function:
					onResize();
				});
	</script>
</body>
</html>