~ubuntu-branches/ubuntu/trusty/ubuntu-html5-theme/trusty-proposed

« back to all changes in this revision

Viewing changes to 0.1/examples/widgets/Popovers.html

  • Committer: Package Import Robot
  • Author(s): Ubuntu daily release, Adnane Belmadiaf, daker, Kyle Nitzsche, Colin Watson, Alexandre Abreu, Ubuntu daily release
  • Date: 2014-01-07 23:46:53 UTC
  • mfrom: (1.1.7)
  • Revision ID: package-import@ubuntu.com-20140107234653-oagvm6guom4h9dvh
Tags: 0.1+14.04.20140107-0ubuntu1
[ Adnane Belmadiaf ]
* s/parentNode/parendNode Spaces instead of tabs. (LP: #1241215)
* Add option selector widget. (LP: #1232533)

[ daker ]
* Passe the UI variable name so we will not lock the variable. (LP:
  #1222878)
* Made variable declaration locale. (LP: #1222881)
* Fixed z-index for the list items aside. (LP: #1223973)
* s/parentNode/parendNode Spaces instead of tabs. (LP: #1241215)
* Space instead of tab. (LP: #1240682)
* Made list items with headers differentes. (LP: #1246446)
* Updated the progressbar component to match the design.
* Move tabs closer to what they should be, Expand API to match the QML
  one (at least at the Tabs level), .
* Add option selector widget. (LP: #1232533)

[ Kyle Nitzsche ]
* Add button id to "Invalid button ID" error message .
* This MR does three main things: 1) Implements yuidoc comments in all
  js files to support API doc generation, and provides yuidoc assets
  (theme dir and json file) needed to build the API docs. Bug LP:
  #1241029 3) Provides JS classes for shape and page with
  corresponding UbuntuUI prototype constructor functions. Bug LP:
  #1243248 4) Adds a getEl(UbuntuUIObject) to return the element for
  any Ubuntu class. Also LP: #1243248. (LP: #1243248, #1241029)

[ Colin Watson ]
* Make ubuntu-html5-theme Multi-Arch: foreign.

[ Alexandre Abreu ]
* Fix exec path in app-gallery app desktop file. (LP: #1235321)
* Add convenient element() function to most widgets ... (we might want
  to factor those out in a second step).
* Move tabs closer to what they should be, Expand API to match the QML
  one (at least at the Tabs level), .
* Add HTML5 webapp container package.

[ Ubuntu daily release ]
* Automatic snapshot from revision 98

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
<!--
2
 
 Copyright (C) 2013 Adnane Belmadiaf <daker@ubuntu.com>
3
 
 License granted by Canonical Limited
4
 
 
5
 
 This file is part of ubuntu-html5-theme.
6
 
 
7
 
 This package is free software; you can redistribute it and/or modify
8
 
 it under the terms of the GNU Lesser General Public License as 
9
 
 published by the Free Software Foundation; either version 3 of the 
10
 
 License, or
11
 
 (at your option) any later version.
12
 
 
13
 
 This package is distributed in the hope that it will be useful,
14
 
 but WITHOUT ANY WARRANTY; without even the implied warranty of
15
 
 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
16
 
 GNU General Public License for more details.
17
 
 
18
 
 You should have received a copy of the GNU Lesser General Public 
19
 
 License along with this program. If not, see 
20
 
 <http://www.gnu.org/licenses/>.
21
 
-->
22
 
 
23
 
<!DOCTYPE html>
24
 
<html>
25
 
<head>
26
 
    <meta charset="utf-8" />
27
 
    <meta name="copyright" content="Adnane Belmadiaf <daker@ubuntu.com>">
28
 
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
29
 
    <title>Ubuntu UI HTML5 Theme: Popovers</title>
30
 
    <link href="../../ambiance/css/appTemplate.css" rel="stylesheet" type="text/css" />
31
 
    <script src="../../ambiance/js/core.js"></script>
32
 
    <script src="../../ambiance/js/fast-buttons.js"></script>
33
 
    <script src="../../ambiance/js/buttons.js"></script>
34
 
    <script src="../../ambiance/js/popovers.js"></script>
35
 
</head>
36
 
<body>
37
 
    <div data-role="page">
38
 
        <header data-role="header">
39
 
            <nav data-role="navbar" class="tabs">
40
 
                <div class="tabs-inner">
41
 
                    <ul data-role="tabs">
42
 
                        <li class="active" data-role="tab">
43
 
                            <a href="#item1">Tab 1</a>
44
 
                        </li>
45
 
                        <li class="inactive" data-role="tab">
46
 
                            <a href="#item2">Tab 2</a>
47
 
                        </li>
48
 
                        <li class="inactive" data-role="tab">
49
 
                            <a href="#item3">Tab 3</a>
50
 
                        </li>
51
 
                    </ul>
52
 
                </div>
53
 
            </nav>
54
 
        </header>
55
 
 
56
 
        <div data-role="content">
57
 
            <div class="inset" style="margin-top: 250px;text-align: center">
58
 
 
59
 
                <a data-role="button" id ="button1" href="#popover1">Open</a>
60
 
 
61
 
                <a data-role="button" id ="button2" href="#popover2">Open</a>
62
 
 
63
 
                <a data-role="button" id ="button3" href="#popover3">Open</a>
64
 
 
65
 
                <a data-role="button" id ="button4" href="#popover4">Open</a>
66
 
 
67
 
                <div id="popover1" class="popover" data-gravity="n" style="margin-bottom: 30px">
68
 
                    <ul class="list">
69
 
                        <li><a href="#">Item1</a></li>
70
 
                        <li class="active"><a href="#">Item2</a></li>
71
 
                        <li><a href="#">Item3</a></li>
72
 
                        <li><a href="#">Item4</a></li>
73
 
                        <li><a href="#">Item5</a></li>
74
 
                        <li><a href="#">Item6</a></li>
75
 
                    </ul>
76
 
                </div>
77
 
 
78
 
                <div id="popover2" class="popover" data-gravity="s" style="margin-bottom: 30px">
79
 
                    <ul class="list">
80
 
                        <li>Item1</li>
81
 
                        <li>Item2</li>
82
 
                        <li>Item3</li>
83
 
                        <li>Item4</li>
84
 
                    </ul>
85
 
                </div>
86
 
 
87
 
                <div id="popover3" class="popover" data-gravity="e" style="margin-bottom: 30px">
88
 
                    <ul class="list">
89
 
                        <li>Item1</li>
90
 
                        <li>Item2</li>
91
 
                        <li>Item3</li>
92
 
                        <li>Item4</li>
93
 
                    </ul>
94
 
                </div>
95
 
 
96
 
                <div id="popover4" class="popover" data-gravity="w" style="margin-bottom: 30px">
97
 
                    <ul class="list">
98
 
                        <li>Item1</li>
99
 
                        <li>Item2</li>
100
 
                        <li>Item3</li>
101
 
                        <li>Item4</li>
102
 
                    </ul>
103
 
                </div>
104
 
            </div>
105
 
        </div>
106
 
    </div>
107
 
    <script type="text/javascript">
108
 
        var UI = new UbuntuUI();
109
 
        UI.button('button1').click(function (e) {
110
 
            UI.popover(this, 'popover1').toggle();
111
 
        });
112
 
        UI.button('button2').click(function (e) {
113
 
            UI.popover(this, 'popover2').toggle();
114
 
        });
115
 
        UI.button('button3').click(function (e) {
116
 
            UI.popover(this, 'popover3').toggle();
117
 
        });
118
 
        UI.button('button4').click(function (e) {
119
 
            UI.popover(this, 'popover4').toggle();
120
 
        });
121
 
    </script>
122
 
</body>
123
 
</html>