2
Copyright (C) 2013 Adnane Belmadiaf <daker@ubuntu.com>
3
License granted by Canonical Limited
5
This file is part of ubuntu-html5-theme.
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
11
(at your option) any later version.
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.
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/>.
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: ListItems</title>
30
<link href="../../../0.1/ambiance/css/appTemplate.css" rel="stylesheet" type="text/css" />
31
<!-- Ubuntu UI javascript imports - Ambiance theme -->
32
<script src="../../../0.1/ambiance/js/option-selector.js"></script>
33
<script src="../../../0.1/ambiance/js/fast-buttons.js"></script>
34
<script src="../../../0.1/ambiance/js/core.js"></script>
35
<script src="../../../0.1/ambiance/js/pagestacks.js"></script>
37
var UI = new UbuntuUI();
38
window.onload = function() {
40
os1 = UI.optionselector('os1');
42
os1.onClicked(function (e) {
43
console.log("optionselector1 values: " + e.values);
46
os2 = UI.optionselector('os2', expanded=false, multiSelection=true);
48
os2.onClicked(function (e) {
49
console.log("optionselector2 values: " + e.values);
52
os3 = UI.optionselector('os3', expanded=true, multiSelection=false);
54
os3.onClicked(function (e) {
55
console.log("optionselector3 values: " + e.values);
61
<div data-role="page">
62
<header data-role="header">
63
<nav data-role="navbar" class="tabs">
64
<div class="tabs-inner">
66
<li class="active" data-role="tab">
67
<a href="#item1">Tab 1</a>
69
<li class="inactive" data-role="tab">
70
<a href="#item2">Tab 2</a>
72
<li class="inactive" data-role="tab">
73
<a href="#item3">Tab 3</a>
80
<div data-role="content">
81
<div class="inset" style="margin: 15px;">
83
<section data-role="option-selector" id="os1">
87
<img alt="placeholder" src="../../../0.1/ambiance/img/avatar_contacts_list@8.png"></aside>
92
<img alt="placeholder" src="../../../0.1/ambiance/img/avatar_contacts_list@8.png"></aside>
97
<img alt="placeholder" src="../../../0.1/ambiance/img/avatar_contacts_list@8.png"></aside>
102
<img alt="placeholder" src="../../../0.1/ambiance/img/avatar_contacts_list@8.png"></aside>
107
<img alt="placeholder" src="../../../0.1/ambiance/img/avatar_contacts_list@8.png"></aside>
113
<div class="inset" style="margin: 15px;">
114
<h1>Expanded with a multiple selections</h1>
115
<section data-role="option-selector" id="os2">
140
<div class="inset" style="margin: 15px;">
141
<h1>Expanded with a unique selection</h1>
142
<section data-role="option-selector" id="os3">
b'\\ No newline at end of file'