/
index.html
157 lines (135 loc) · 7.28 KB
/
index.html
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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="description" content="Material 4 Dart (M4D) is a library of components for web developers based on Google's Material Design, ported to Dart.">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>NOTIFICATION</title>
<!-- Add to homescreen for Chrome on Android -->
<meta name="mobile-web-app-capable" content="yes">
<link rel="icon" sizes="192x192" href="packages/mdl/assets/images/touch/chrome-touch-icon-192x192.png">
<!-- Add to homescreen for Safari on iOS -->
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-status-bar-style" content="black">
<meta name="apple-mobile-web-app-title" content="Material Design Lite">
<link rel="apple-touch-icon-precomposed" href="packages/mdl/assets/images/touch/apple-touch-icon.png">
<!-- Tile icon for Win8 (144x144 + tile color) -->
<meta name="msapplication-TileImage" content="packages/mdl/assets/images/ms-touch-icon-144x144-precomposed.png">
<meta name="msapplication-TileColor" content="#3372DF">
<!-- SEO: If your mobile URL is different from the desktop URL, add a canonical link to the desktop page https://developers.google.com/webmasters/smartphone-sites/feature-phones -->
<!--
<link rel="canonical" href="http://www.example.com/">
-->
<link href='//fonts.googleapis.com/css?family=Roboto:regular,bold,italic,thin,light,bolditalic,black,medium&lang=en' rel='stylesheet' type='text/css'>
<link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet">
<link rel="stylesheet" href="demo.css">
<style>
div.loading { display: none; }
body.mdl-upgrading > * { display: none; }
body.mdl-upgrading div.loading { display: block; }
header, body { padding: 0; margin: 0; }
</style>
</head>
<body class="demo-page demo-page--notification mdl-upgrading" > <div class="loading">Loading...</div>
<div class="mdl-layout mdl-layout--fixed-header mdl-color--grey-100">
<header class="mdl-layout__header mdl-layout__header--scroll mdl-color--grey-100 mdl-color-text--grey-800">
<div class="mdl-layout__header-row">
<span class="mdl-layout-title">NOTIFICATION-Sample</span>
<div class="mdl-layout-spacer"></div>
</div>
</header>
<div class="ribbon mdl-color--primary"></div>
<main class="mdl-layout__content">
<div class="container mdl-grid">
<div class="mdl-cell mdl-cell--2-col mdl-cell--hide-tablet mdl-cell--hide-phone"></div>
<div class="content mdl-color--white mdl-shadow--4dp content mdl-color-text--grey-800 mdl-cell mdl-cell--8-col">
<section class="demo-section demo-section--notification">
<div class="demo-preview-block">
<div class="form">
<div class="mdl-textfield mdl-textfield--floating-label">
<input class="mdl-textfield__input" type="text" id="notification-title"/>
<label class="mdl-textfield__label" for="notification-title">Title</label>
</div>
<div class="mdl-textfield mdl-textfield--floating-label">
<input class="mdl-textfield__input" type="text" id="notification-subtitle" />
<label class="mdl-textfield__label" for="notification-subtitle">Subtitle</label>
</div>
<div class="mdl-textfield mdl-textfield--floating-label">
<textarea class="mdl-textfield__input" type="text" rows="2" id="notification-content" ></textarea>
<label class="mdl-textfield__label" for="notification-content">Content</label>
</div>
<div id="notification-type" class="mdl-radio-group">
<label class="mdl-radio mdl-ripple-effect" for="type-debug">
<input type="radio" id="type-debug" class="mdl-radio__button" name="type[]" value="debug" />
<span class="mdl-radio__label">Debug</span>
</label>
<label class="mdl-radio mdl-ripple-effect" for="type-info">
<input type="radio" id="type-info" class="mdl-radio__button" name="type[]" value="info" checked/>
<span class="mdl-radio__label">Info</span>
</label>
<label class="mdl-radio mdl-ripple-effect" for="type-warning">
<input type="radio" id="type-warning" class="mdl-radio__button" name="type[]" value="warning" />
<span class="mdl-radio__label">Warning</span>
</label>
<label class="mdl-radio mdl-ripple-effect" for="type-error">
<input type="radio" id="type-error" class="mdl-radio__button" name="type[]" value="error" />
<span class="mdl-radio__label">Error</span>
</label>
</div>
<div class="buttons">
<button id="notification"
class="mdl-button mdl-button--raised mdl-button--colored mdl-ripple-effect" disabled>
Add notification
</button>
<button id="dialog"
class="mdl-button mdl-button--raised mdl-ripple-effect">
Sample dialog
</button>
</div>
<label class="mdl-switch mdl-ripple-effect" for="auto-close">
<input type="checkbox" id="auto-close" class="mdl-switch__input" >
<span class="mdl-switch__label">Auto-Close</span>
</label>
<p class="info">
Auto-Close is enabled by default but if it makes sense for you - turn it off<br>
Warning + Error have a delay of 10secs, Debug + Info have a delay of 6.5secs.
</p>
<p class="info">
<strong>Sample Dialog</strong> only makes sense here for testing the the UI behavior.
</p>
</div>
</div>
</section>
</div>
</div>
</main>
<footer class="mdl-mini-footer">
<div class="mdl-mini-footer--left-section">
<div>Sample for pub-package:
<a href="https://pub.dartlang.org/packages/m4d_dialog" target="_blank">m4d_dialog</a>
<span class="published">/ published: <span class="pubdate">2018-09-19 / 14:09:52</span></span>
</div>
</div>
<div class="mdl-mini-footer--right-section">
<p class="mm-link">Brought to you by:
<a href="http://www.mikemitterer.at/" target="_blank">Mike Mitterer, IT-Consulting and Development Ltd.</a>
</p>
</div>
</footer>
</div>
<a href="https://github.com/MikeMitterer/m4d_dialog/tree/master/samples/m4d_notification/web" target="_blank" id="view-source">
<button class="mdl-button mdl-button--fab mdl-ripple-effect mdl-button--accent"><i class="material-icons">pageview</i></button>
</a>
<script defer src="main.dart.js"></script>
<!-- Analytics -->
<script>
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','//www.google-analytics.com/analytics.js','ga');
ga('create', 'UA-64837522-2', 'auto');
ga('send', 'pageview');
</script>
</body>
</html>