-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
34 lines (34 loc) · 999 Bytes
/
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
<!DOCTYPE HTML>
<html lang="en-US">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Prevent Text Orphans</title>
<link rel="stylesheet" href="css/base.css" />
<script src="lib/jquery.min.js"></script>
<script src="lib/jquery.preventTextOrphans.min.js"></script>
<script>
$(document).ready(function() {
$(".enabled").preventTextOrphans();
$(".minimum").preventTextOrphans({ minimum: 3 });
});
</script>
</head>
<body>
<div id="header">
<div class="content">
<h1>Prevent Text Orphans Demo</h1>
</div>
</div>
<div class="content">
<p>Default text:</p>
<h2>Let Us Know What You Think</h2>
<hr />
<p>With <code>preventTextOrphans()</code> enabled, default options:</p>
<h2 class="enabled">Let Us Know What You Think</h2>
<hr />
<p>With <code>preventTextOrphans()</code> enabled, passing <code>{ minimum: 3 }</code>:</p>
<h2 class="minimum">Let Us Know What You Think</h2>
</div>
</body>
</html>