aboutsummaryrefslogtreecommitdiff
path: root/node_modules/montage/examples/youtube-channel-example/index.html
blob: 132d0d5a9fbf465a11754ee54b01aea4e7bff814 (plain)
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
<!DOCTYPE html>
<!-- <copyright>
 This file contains proprietary software owned by Motorola Mobility, Inc.<br/>
 No rights, expressed or implied, whatsoever to this software are provided by Motorola Mobility, Inc. hereunder.<br/>
 (c) Copyright 2011 Motorola Mobility, Inc.  All Rights Reserved.
 </copyright> -->
<html>
<head>
    <title>Youtube Channel</title>
    <link rel="stylesheet" type="text/css" href="style.css">
    <script src="../../montage.js" type="text/javascript"></script>
    <script type="text/montage-serialization">
    {
        "player": {
            "prototype": "montage/ui/youtube-channel.reel",
            "properties": {
                "element": {"#": "player"},
                "channelUrl": "http://www.youtube.com/TEDEducation"
            }
        },

        "url": {
            "prototype": "montage/ui/textfield.reel",
            "properties": {
                "element": {"#": "url"},
                "value": "http://www.youtube.com/TEDEducation"
            },
            "bindings": {
                "value": {
                    "boundObject": {"@": "player"},
                    "boundObjectPropertyPath": "channelUrl"
                }
            }
        }
    }
    </script>
</head>
<body>
    <div class="youtube-channel-example">
        <div id="title">Youtube Channel</div>
        <input type="text" data-montage-id="url" placeholder="Channel URL" class="youtube-channel-example-url">
        <div data-montage-id="player"></div>
    </div>
</body>
</html>