Blame view

bower_components/iron-collapse/demo/index.html 5.06 KB
73bcce88   luigser   COMPONENTS
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
  <!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>
  
      <title>iron-collapse demo</title>
  
      <meta charset="utf-8">
      <meta name="viewport" content="width=device-width, initial-scale=1.0">
  
      <script src="../../webcomponentsjs/webcomponents-lite.js"></script>
      <link rel="import" href="../iron-collapse.html">
      <link rel="stylesheet" href="../../paper-styles/demo.css">
  
      <style>
        .heading {
          padding: 10px 15px;
          margin-top: 20px;
          background-color: #f3f3f3;
          border: 1px solid #dedede;
          border-top-left-radius: 5px;
          border-top-right-radius: 5px;
          font-size: 18px;
          cursor: pointer;
          -webkit-tap-highlight-color: rgba(0,0,0,0);
          width: 100%;
          text-align: left;
        }
  
        .content {
          padding: 15px;
          border: 1px solid #dedede;
          border-top: none;
          border-bottom-left-radius: 5px;
          border-bottom-right-radius: 5px;
        }
  
73bcce88   luigser   COMPONENTS
47
48
49
50
      </style>
  
    </head>
    <body unresolved>
eb240478   Luigi Serra   public room cards...
51
    <template is="dom-bind">
c5169e0e   Renato De Donato   a new hope
52
      
eb240478   Luigi Serra   public room cards...
53
      <button class="heading" aria-expanded$="[[isExpanded(opened1)]]" aria-controls="collapse1" onclick="toggle('#collapse1')">Collapse #1</button>
73bcce88   luigser   COMPONENTS
54
  
eb240478   Luigi Serra   public room cards...
55
      <iron-collapse id="collapse1" tabindex="0" opened="{{opened1}}">
73bcce88   luigser   COMPONENTS
56
57
58
59
60
        <div class="content">
          <div>Lorem ipsum dolor sit amet, per in nusquam nominavi periculis, sit elit oportere ea, id minim maiestatis incorrupte duo. Dolorum verterem ad ius, his et nullam verterem. Eu alia debet usu, an doming tritani est. Vix ad ponderum petentium suavitate, eum eu tempor populo, graece sententiae constituam vim ex. Cu torquatos reprimique neglegentur nec, voluptua periculis has ut, at eos discere deleniti sensibus. Lorem ipsum dolor sit amet, per in nusquam nominavi periculis, sit elit oportere ea, id minim maiestatis incorrupte duo. Dolorum verterem ad ius, his et nullam verterem. Eu alia debet usu, an doming tritani est. Vix ad ponderum petentium suavitate, eum eu tempor populo, graece sententiae constituam vim ex. Cu torquatos reprimique neglegentur nec, voluptua periculis has ut, at eos discere deleniti sensibus.</div>
        </div>
      </iron-collapse>
  
eb240478   Luigi Serra   public room cards...
61
62
63
      <button class="heading" aria-expanded$="[[isExpanded(opened2)]]" aria-controls="collapse2" onclick="toggle('#collapse2')">Collapse #2</button>
  
      <iron-collapse id="collapse2" tabindex="0" opened="{{opened2}}">
73bcce88   luigser   COMPONENTS
64
65
66
        <div class="content">
          <div>Pro saepe pertinax ei, ad pri animal labores suscipiantur. Modus commodo minimum eum te, vero utinam assueverit per eu, zril oportere suscipiantur pri te. Partem percipitur deterruisset ad sea, at eam suas luptatum dissentiunt. No error alienum pro, erant senserit ex mei, pri semper alterum no. Ut habemus menandri vulputate mea. Feugiat verterem ut sed. Dolores maiestatis id per. Pro saepe pertinax ei, ad pri animal labores suscipiantur. Modus commodo minimum eum te, vero utinam assueverit per eu, zril oportere suscipiantur pri te. Partem percipitur deterruisset ad sea, at eam suas luptatum dissentiunt. No error alienum pro, erant senserit ex mei, pri semper alterum no. Ut habemus menandri vulputate mea. Feugiat verterem ut sed. Dolores maiestatis id per.</div>
  
c5169e0e   Renato De Donato   a new hope
67
          <button class="heading" aria-expanded$="[[isExpanded(opened3)]]" aria-controls="collapse3"  onclick="toggle('#collapse3')">Collapse #3</button>
eb240478   Luigi Serra   public room cards...
68
  
c5169e0e   Renato De Donato   a new hope
69
          <iron-collapse id="collapse3" tabindex="0" opened="{{opened3}}">
73bcce88   luigser   COMPONENTS
70
71
72
73
            <div class="content">
              <div>Iisque perfecto dissentiet cum et, sit ut quot mandamus, ut vim tibique splendide instructior. Id nam odio natum malorum, tibique copiosae expetenda mel ea. Mea melius malorum ut. Ut nec tollit vocent timeam. Facer nonumy numquam id his, munere salutatus consequuntur eum et, eum cotidieque definitionem signiferumque id. Ei oblique graecis patrioque vis, et probatus dignissim inciderint vel. Sed id paulo erroribus, autem semper accusamus in mel. Iisque perfecto dissentiet cum et, sit ut quot mandamus, ut vim tibique splendide instructior. Id nam odio natum malorum, tibique copiosae expetenda mel ea. Mea melius malorum ut. Ut nec tollit vocent timeam. Facer nonumy numquam id his, munere salutatus consequuntur eum et, eum cotidieque definitionem signiferumque id. Ei oblique graecis patrioque vis, et probatus dignissim inciderint vel. Sed id paulo erroribus, autem semper accusamus in mel.</div>
            </div>
          </iron-collapse>
73bcce88   luigser   COMPONENTS
74
75
        </div>
      </iron-collapse>
eb240478   Luigi Serra   public room cards...
76
77
78
79
80
81
82
83
84
85
86
  </template>
  
  <script>
  
    function toggle(selector) {
      document.querySelector(selector).toggle();
    }
  
    document.querySelector('template[is=dom-bind]').isExpanded = function(opened) {
      return String(opened);
    };
73bcce88   luigser   COMPONENTS
87
  
eb240478   Luigi Serra   public room cards...
88
  </script>
73bcce88   luigser   COMPONENTS
89
90
    </body>
  </html>