You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
33 lines
745 B
HTML
33 lines
745 B
HTML
<!DOCTYPE html>
|
|
<html>
|
|
<head>
|
|
<meta charset="utf-8">
|
|
<title>Home</title>
|
|
<script src="https://code.jquery.com/jquery-1.12.4.js"></script>
|
|
<script type="text/javascript" src="./setPage.js"></script>
|
|
<style type="text/css">
|
|
body {font-family: mono;
|
|
position: relative;
|
|
}
|
|
|
|
iframe{width: 490px;
|
|
height: 340px;}
|
|
</style>
|
|
</head>
|
|
<body>
|
|
<a href=""><img id="img1" style="width: 640px;" src="" ></a>
|
|
<iframe id="vid" src=""></iframe>
|
|
<script type="text/javascript">
|
|
setPageM();
|
|
setvideo();
|
|
|
|
var room = ["kitchen.html", "bathroom.html","short_corridor.html"];
|
|
|
|
function randomInt2(){ return Math.ceil(Math.random() * 3); }
|
|
|
|
$('a').each(function(){
|
|
$(this).attr("href", room[randomInt2()] );
|
|
});
|
|
</script>
|
|
</body>
|
|
</html> |