Skip to content
This repository has been archived by the owner on Mar 13, 2018. It is now read-only.

Commit

Permalink
Merge pull request #1 from borismus/master
Browse files Browse the repository at this point in the history
Update demo.html
  • Loading branch information
ebidel committed May 13, 2014
2 parents a891239 + 89eea5e commit f980c08
Showing 1 changed file with 43 additions and 43 deletions.
86 changes: 43 additions & 43 deletions demo.html
Original file line number Diff line number Diff line change
@@ -1,50 +1,50 @@
<!doctype html>
<html>
<head>

<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">

<title>core-pages</title>

<script src="../platform/platform.js"></script>

<link rel="import" href="core-pages.html">

<style>

<!doctype html>
<html>
<head>

<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">

<title>core-pages</title>

<script src="../platform/platform.js"></script>

<link rel="import" href="core-pages.html">

<style>

body {
font-family: sans-serif;
}

}

core-pages {
width: 300px;
height: 300px;
}

}

div {
border: 1px solid lightblue;
}

</style>

</head>
<body unresolved>

<core-pages selected="0">
<div>One</div>
<div>Two</div>
<div>Three</div>
<div>Four</div>
<div>Five</div>
</core-pages>

<script>
onclick = function(e) {
var p = document.querySelector('core-pages');
p.selected = (p.selected + 1) % 5;
}
</script>

</body>
</html>
}

</style>

</head>
<body unresolved>

<core-pages selected="0">
<div>One</div>
<div>Two</div>
<div>Three</div>
<div>Four</div>
<div>Five</div>
</core-pages>

<script>
onclick = function(e) {
var p = document.querySelector('core-pages');
p.selected = (p.selected + 1) % p.children.length;
}
</script>

</body>
</html>

0 comments on commit f980c08

Please sign in to comment.