jellyfin-web/dashboard-ui/bower_components/iron-pages/demo/index.html

75 lines
2.5 KiB
HTML
Raw Normal View History

2015-06-26 08:53:49 -07:00
<!doctype html>
<!--
@license
Copyright (c) 2015 The Polymer Project Authors. All rights reserved.
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
Code distributed by Google as part of the polymer project is also
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
-->
<html>
<head>
2016-02-02 19:12:02 -07:00
<title>iron-pages demo</title>
2015-06-26 08:53:49 -07:00
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, minimum-scale=1.0, initial-scale=1, user-scalable=yes">
2016-02-02 19:12:02 -07:00
<meta name="mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-capable" content="yes">
2015-06-26 08:53:49 -07:00
<script src="../../webcomponentsjs/webcomponents-lite.js"></script>
2015-12-14 08:43:03 -07:00
<link rel="import" href="../../paper-styles/color.html">
2016-02-02 19:12:02 -07:00
<link rel="import" href="../../iron-demo-helpers/demo-snippet.html">
<link rel="import" href="../../iron-demo-helpers/demo-pages-shared-styles.html">
2015-06-26 08:53:49 -07:00
<link rel="import" href="../iron-pages.html">
2016-02-02 19:12:02 -07:00
<style is="custom-style" include="demo-pages-shared-styles"></style>
2015-06-26 08:53:49 -07:00
</head>
2015-12-14 08:43:03 -07:00
<body unresolved>
2016-02-02 19:12:02 -07:00
<div class="vertical-section-container centered">
<h3>iron-pages shows only one of its children at a time.</h3>
<demo-snippet>
<template>
<style is="custom-style">
iron-pages {
width: 100%;
height: 200px;
font-size: 50px;
color: white;
text-align: center;
}
iron-pages div {
width: 100%;
height: 100%;
padding: 80px 0;
}
iron-pages div:nth-child(1) {
background-color: var(--google-blue-500);
}
iron-pages div:nth-child(2) {
background-color: var(--google-red-500);
}
iron-pages div:nth-child(3) {
background-color: var(--google-green-500);
}
</style>
<p>Click on a page to advance to the next one.</p>
<iron-pages selected="0">
<div>One</div>
<div>Two</div>
<div>Three</div>
</iron-pages>
<script>
document.addEventListener('click', function(e) {
var pages = document.querySelector('iron-pages');
pages.selectNext();
});
</script>
</template>
</demo-snippet>
</div>
2015-06-26 08:53:49 -07:00
</body>
</html>