-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpopovers-js.html
159 lines (153 loc) · 6.6 KB
/
popovers-js.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
158
159
<!doctype html>
<!--[if lt IE 7]> <html class="no-js lt-ie9 lt-ie8 lt-ie7"> <![endif]-->
<!--[if IE 7]> <html class="no-js lt-ie9 lt-ie8"> <![endif]-->
<!--[if IE 8]> <html class="no-js lt-ie9"> <![endif]-->
<!--[if gt IE 8]><!--> <html class="no-js"> <!--<![endif]-->
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="viewport" content="width=device-width, initial-scale=1, minimum-scale=1, maximum-scale=1">
<title>Groundwork CSS ♥ Responsive Popover Bubbles</title>
<!-- Modernizr -->
<script src="./js/libs/modernizr-2.6.2.min.js"></script>
<!-- jQuery -->
<script type="text/javascript" src="//ajax.googleapis.com/ajax/libs/jquery/1.8.2/jquery.min.js"></script>
<script type="text/javascript">window.jQuery || document.write('<script src="./js/libs/jquery-1.8.2.min.js"><\/script>')</script>
<!-- Groundwork CSS -->
<link type="text/css" rel="stylesheet" href="./css/groundwork.css">
<!-- Groundy theme files -->
<link type="text/css" rel="stylesheet" href="./css/groundy/groundy.css">
<!--[if IE]>
<link type="text/css" rel="stylesheet" href="./css/groundwork-ie.css">
<![endif]-->
<!--[if lt IE 9]>
<script type="text/javascript" src="./js/libs/html5shiv.js"></script>
<script>
/* polyfill custom tags for code samples */
customTags = ['tag','content','function','string','class','val','comment','arg','prop'];
for (var i = 0; i < customTags.length; i++) {
document.createElement(customTags[i]);
}
</script>
<![endif]-->
<!--[if IE 7]>
<link type="text/css" rel="stylesheet" href="./css/font-awesome-ie7.min.css">
<![endif]-->
<script type="text/javascript">
// (function(){
// var datauri = new Image();
// datauri.onerror = function() {
// Modernizr.addTest('datauri', function () { return false; });
// };
// datauri.onload = function() {
// Modernizr.addTest('datauri', function () { return (datauri.width == 1 && datauri.height == 1); });
// Modernizr.load({
// test: Modernizr.datauri,
// nope: './css/no-datauri.css'
// });
// };
// datauri.src = "data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///ywAAAAAAQABAAACAUwAOw==";
// })();
// fallback if SVG unsupported
Modernizr.load({
test: Modernizr.svg,
nope: './css/no-svg.css'
});
Modernizr.load({
test: Modernizr.svg,
nope: './css/groundy/no-svg.css'
});
// polyfill for HTML5 placeholders
Modernizr.load({
test: Modernizr.input.placeholder,
nope: [
'./css/placeholder_polyfill.css',
'./js/libs/placeholder_polyfill.jquery.js'
]
});
</script>
</head>
<body>
<header class="white band padded">
<div class="container">
<div class="row">
<div class="one half">
<h1 class="big responsive heading" data-compression="6.95" data-min="20" data-max="120" style="font-size:86px;"><a href="./home"><span class="logo"></span> Groundwork<sup>Beta</sup></a></h1>
</div>
<div class="one half double pad-top">
<nav class="inline pull-right">
<ul>
<li><a href="./home">Home</a></li
><li class="menu"><a href="./components">Components</a>
<ul>
<li><a href="./grid">Grid</a></li>
<li><a href="./media-queries">Media Queries</a></li>
<li><a href="./typography">Typography</a></li>
<li><a href="./buttons">Buttons</a></li>
<li><a href="./forms">Forms</a></li>
<li><a href="./navigation">Navigation</a></li>
<li><a href="./tabs">Tabs</a></li>
<li><a href="./ui-elements">UI Elements</a></li>
<li><a href="./tables">Tables</a></li>
<li><a href="./icons">Icons</a></li>
<li><a href="./social-icons">Social Icons</a></li>
<li><a href="./responsiveText-js">ResponsiveText</a></li>
<li><a href="./modals-js">Modals</a></li>
<li><a href="./tooltips-js">Tooltips</a></li>
<li><a href="./orbit-js">Orbit</a></li>
<!-- <li><a href="./popovers-js">Popovers</a></li> -->
</ul>
</li
><li><a href="./templates">Templates</a></li
><!-- <li><a href="http://github.com/groundworkcss/groundwork" target="_blank"><i class="icon-github-alt"></i></a></li
><li><a href="http://twitter.com/groundworkcss" target="_blank"><i class="icon-twitter"></i></a></li
> --><li><a href="https://github.com/groundworkcss/groundwork/archive/master.zip"><i class="icon-download-alt"></i></a></li>
</ul>
</nav>
</div>
</div>
</div>
</header>
<div class="container">
<div class="row">
<div class="one whole padded">
<ul class="breadcrumbs">
<li><a href="./home.html">Home</a></li>
<li><a href="./components.html">Components</a></li>
<li><a href="./popovers-js.html">Popovers</a></li>
</ul>
</div>
</div>
</div>
<div class="container">
<div class="row">
<div class="one third padded">
<h1><i class="icon-comment-alt"></i> Popovers</h1>
<p>Responsive popover bubbles with smart positioning, resizing with window resize and smart repositioning on window scroll.</p>
</div>
<div class="two thirds padded">
<h2>Popovers</h2>
<p></p>
<h2>Example Usage:</h2>
<code>
<pre><<tag>a</tag> href="<span>#</span>" class="<span>popover</span>"><content>A link</content></<tag>a</tag>></pre>
</code>
<hr/>
<h2>Result:</h2>
<a href="#" class="popover">A link</a>
<!-- scripts -->
<script type="text/javascript" src="./js/plugins/jquery.orbit-1.4.0.js"></script>
<script type="text/javascript" src="./js/groundwork.js"></script>
<!-- google analytics -->
<script type="text/javascript">
var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-17121602-5']);
_gaq.push(['_trackPageview']);
(function() {
var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
})();
</script>
</body>
</html>