27 lines
520 B
HTML
27 lines
520 B
HTML
<!DOCTYPE html>
|
|
|
|
<html>
|
|
<head>
|
|
<style>
|
|
.container {
|
|
width: 700px;
|
|
height: 2000px;
|
|
margin: 0 auto;
|
|
background-color: silver;
|
|
}
|
|
</style>
|
|
<script>
|
|
function doTest()
|
|
{
|
|
window.scrollTo(0, 400);
|
|
window.resizeTo(1000, 600);
|
|
}
|
|
window.addEventListener('load', doTest, false);
|
|
</script>
|
|
</head>
|
|
<body>
|
|
<div class="container"></div>
|
|
<pre id="layers">Layer tree goes here</p>
|
|
</body>
|
|
</html>
|