~didrocks/+junk/face-detection-15.04

« back to all changes in this revision

Viewing changes to facedetection/www/bower_components/marked-element/demo/index.html

  • Committer: Didier Roche
  • Date: 2016-05-10 23:09:11 UTC
  • Revision ID: didier.roche@canonical.com-20160510230911-c7xr490zrj3yrzxd
New version

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
<!doctype html>
 
2
<!--
 
3
@license
 
4
Copyright (c) 2015 The Polymer Project Authors. All rights reserved.
 
5
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
 
6
The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
 
7
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
 
8
Code distributed by Google as part of the polymer project is also
 
9
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
 
10
-->
 
11
<html>
 
12
<head>
 
13
  <meta charset="UTF-8">
 
14
  <title>marked-element demo</title>
 
15
 
 
16
  <script src="../../webcomponentsjs/webcomponents-lite.js"></script>
 
17
 
 
18
  <link rel="import" href="../../paper-styles/demo-pages.html">
 
19
  <link rel="import" href="../marked-element.html">
 
20
 
 
21
  <style is="custom-style">
 
22
 
 
23
    .centered {
 
24
      max-width: 550px;
 
25
      padding: 0;
 
26
      overflow: auto;
 
27
    }
 
28
 
 
29
    h1 {
 
30
      margin-left: 30px;
 
31
    }
 
32
 
 
33
    h3 {
 
34
      color: var(--google-grey-700);
 
35
      margin-left: 30px;
 
36
    }
 
37
 
 
38
    marked-element {
 
39
      display: block;
 
40
      background-color: var(--google-grey-100);
 
41
      padding: 10px 30px;
 
42
      margin-bottom: 10px;
 
43
    }
 
44
 
 
45
    .markdown-html.custom p {
 
46
      padding-left: 24px;
 
47
    }
 
48
 
 
49
  </style>
 
50
</head>
 
51
 
 
52
<body unresolved>
 
53
 
 
54
  <div class="vertical-section vertical-section-container centered">
 
55
    <h1>&lt;marked-element&gt;</h1>
 
56
 
 
57
    <section>
 
58
      <h3>Inline Text</h3>
 
59
      <marked-element>
 
60
        <div class="markdown-html"></div>
 
61
        <script type="text/markdown">
 
62
          ## Markdown Renderer
 
63
 
 
64
          Example:
 
65
 
 
66
          ```html
 
67
          <paper-toolbar>
 
68
            <paper-icon-button icon="menu"></paper-icon-button>
 
69
            <div class="title">Title</div>
 
70
            <paper-icon-button icon="more"></paper-icon-button>
 
71
          </paper-toolbar>
 
72
          ```
 
73
 
 
74
          _Nifty_ features.
 
75
        </script>
 
76
      </marked-element>
 
77
    </section>
 
78
 
 
79
    <section>
 
80
      <h3>Text via Attribute, with custom styling</h3>
 
81
      <marked-element markdown="***Bold and italic***">
 
82
        <div class="markdown-html custom"></div>
 
83
      </marked-element>
 
84
    </section>
 
85
 
 
86
  </div>
 
87
 
 
88
</body>
 
89
</html>