-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
executable file
·145 lines (122 loc) · 7.02 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
<!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">
<title></title>
<meta name="description" content="">
<meta name="viewport" content="width=device-width">
<link rel="stylesheet" href="css/normalize.min.css">
<link rel="stylesheet" href="css/main.css">
<style>
/* https://developer.mozilla.org/en-US/docs/Web/CSS/hyphens */
.bb-section6 p {
-webkit-hyphens: none;
-moz-hyphens: none;
-ms-hyphens: none;
hyphens: none;
}
.bb-section7 p {
-webkit-hyphens: manual;
-moz-hyphens: manual;
-ms-hyphens: manual;
hyphens: manual;
}
.bb-section8 p {
-webkit-hyphens: auto;
-moz-hyphens: auto;
-ms-hyphens: auto;
hyphens: auto;
}
</style>
<script src="js/vendor/modernizr-2.6.2.min.js"></script>
<!-- google analytics -->
<script>
var _gaq=[['_setAccount','UA-XXXXX-X'],['_trackPageview']];
(function(d,t){var g=d.createElement(t),s=d.getElementsByTagName(t)[0];
g.src='//www.google-analytics.com/ga.js';
s.parentNode.insertBefore(g,s)}(document,'script'));
</script>
<!-- end google analytics -->
</head>
<body>
<!-- header -->
<div class="header-container">
<header class="wrapper clearfix">
<h1 class="title">Breakbuster <span style="display:block;font-size:16px;font-weight:normal;">Prevent Linebreaks on Hyphens and Dashes</span></h1>
<nav>
<ul>
<li><a href="https://github.com/shaekuronen/jquery.breakbuster">GITHUB</a></li>
<li><a href="http://plugins.jquery.com/breakbuster/">JQUERY</a></li>
<li><a href="#">NPM</a></li>
</ul>
</nav>
</header>
</div>
<!-- end header -->
<!-- main container -->
<div class="main-container">
<!-- main -->
<div class="main wrapper clearfix">
<article>
<section class="bb-section1">
<h2>No Breakbuster or CSS Hyphens</h2>
<p>Hyp-hen en–dash em—dash hyp-hen en–dash em—dash sit am-et, conse—ctetur adip–iscing el-it. Ali—quam sodales urna n-on od–io ege—stas tem–por. Nunc vel vehi-cula ante. Hyp-hen en–dash em—dash ti–am bibe-ndum iaculis libero, eget mole–stie nisl phar—etra in. Hyp-hen en–dash em—dash in sem-per conse-quat est, eu por–ta vel—it mol-lis nec.</p>
</section>
<section class="bb-section2">
<h2>Breakbuster - Default Options</h2>
<p>Hyp-hen en–dash em—dash hyp-hen en–dash em—dash sit am-et, conse—ctetur adip–iscing el-it. Ali—quam sodales urna n-on od–io ege—stas tem–por. Nunc vel vehi-cula ante. Hyp-hen en–dash em—dash ti–am bibe-ndum iaculis libero, eget mole–stie nisl phar—etra in. Hyp-hen en–dash em—dash in sem-per conse-quat est, eu por–ta vel—it mol-lis nec.</p>
</section>
<section class="bb-section3">
<h2>Breakbuster - Only Hyphens</h2>
<p>Hyp-hen en–dash em—dash hyp-hen en–dash em—dash sit am-et, conse—ctetur adip–iscing el-it. Ali—quam sodales urna n-on od–io ege—stas tem–por. Nunc vel vehi-cula ante. Hyp-hen en–dash em—dash ti–am bibe-ndum iaculis libero, eget mole–stie nisl phar—etra in. Hyp-hen en–dash em—dash in sem-per conse-quat est, eu por–ta vel—it mol-lis nec.</p>
</section>
<section class="bb-section4">
<h2>Breakbuster - Only En Dashes</h2>
<p>Hyp-hen en–dash em—dash hyp-hen en–dash em—dash sit am-et, conse—ctetur adip–iscing el-it. Ali—quam sodales urna n-on od–io ege—stas tem–por. Nunc vel vehi-cula ante. Hyp-hen en–dash em—dash ti–am bibe-ndum iaculis libero, eget mole–stie nisl phar—etra in. Hyp-hen en–dash em—dash in sem-per conse-quat est, eu por–ta vel—it mol-lis nec.</p>
</section>
<section class="bb-section5">
<h2>Breakbuster - Only Em Dashes</h2>
<p>Hyp-hen en–dash em—dash hyp-hen en–dash em—dash sit am-et, conse—ctetur adip–iscing el-it. Ali—quam sodales urna n-on od–io ege—stas tem–por. Nunc vel vehi-cula ante. Hyp-hen en–dash em—dash ti–am bibe-ndum iaculis libero, eget mole–stie nisl phar—etra in. Hyp-hen en–dash em—dash in sem-per conse-quat est, eu por–ta vel—it mol-lis nec.</p>
</section>
<section class="bb-section6">
<h2>CSS Hyphens - None</h2>
<p>Hyp-hen en–dash em—dash hyp-hen en–dash em—dash sit am-et, conse—ctetur adip–iscing el-it. Ali—quam sodales urna n-on od–io ege—stas tem–por. Nunc vel vehi-cula ante. Hyp-hen en–dash em—dash ti–am bibe-ndum iaculis libero, eget mole–stie nisl phar—etra in. Hyp-hen en–dash em—dash in sem-per conse-quat est, eu por–ta vel—it mol-lis nec.</p>
</section>
<section class="bb-section7">
<h2>CSS Hyphens - Manual</h2>
<p>Hyp-hen en–dash em—dash hyp-hen en–dash em—dash sit am-et, conse—ctetur adip–iscing el-it. Ali—quam sodales urna n-on od–io ege—stas tem–por. Nunc vel vehi-cula ante. Hyp-hen en–dash em—dash ti–am bibe-ndum iaculis libero, eget mole–stie nisl phar—etra in. Hyp-hen en–dash em—dash in sem-per conse-quat est, eu por–ta vel—it mol-lis nec.</p>
</section>
<section class="bb-section8">
<h2>CSS Hyphens - Auto</h2>
<p>Hyp-hen en–dash em—dash hyp-hen en–dash em—dash sit am-et, conse—ctetur adip–iscing el-it. Ali—quam sodales urna n-on od–io ege—stas tem–por. Nunc vel vehi-cula ante. Hyp-hen en–dash em—dash ti–am bibe-ndum iaculis libero, eget mole–stie nisl phar—etra in. Hyp-hen en–dash em—dash in sem-per conse-quat est, eu por–ta vel—it mol-lis nec.</p>
</section>
</article>
</div>
<!-- end main -->
</div>
<!-- end main container -->
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.10.1/jquery.min.js"></script>
<script>window.jQuery || document.write('<script src="js/vendor/jquery-1.10.1.min.js"><\/script>')</script>
<script src="dist/jquery.breakbuster.min.js"></script>
<!--
<script src="src/breakbuster.js"></script>
-->
<script>
$('.bb-section2 p').breakbuster();
$('.bb-section3 p').breakbuster({
characters: ['-']
});
$('.bb-section4 p').breakbuster({
characters: ['–']
});
$('.bb-section5 p').breakbuster({
characters: ['—']
});
</script>
<script src="js/main.js"></script>
</body>
</html>