forked from yuku/textoverlay
-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.html
55 lines (50 loc) · 1.66 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
<!DOCTYPE html>
<html>
<head>
<title>jQuery.overlay</title>
<link href="media/stylesheets/bootstrap.css" rel="stylesheet"/>
<link href="media/stylesheets/font-awesome.css" rel="stylesheet"/>
<link href="media/stylesheets/main.css" rel="stylesheet"/>
<link href="media/stylesheets/shCoreDefault.css" rel="stylesheet"/>
<script src="media/javascripts/jquery-1.10.2.js"></script>
<!-- <script src="media/javascripts/zepto-1.0.js"></script> -->
<script src="jquery.overlay.js"></script>
<script src="media/javascripts/shCore.js"></script>
<script src="media/javascripts/shBrushJScript.js"></script>
<script src="media/javascripts/main.js"></script>
</head>
<body>
<div class="container">
<div class="page-header">
<h1>
jQuery.overlay
<small>Simple Decorator for Textarea</small>
</h1>
</div>
<a href="https://github.com/yuku-t/jquery-overlay" class="btn btn-default btn-large">
<i class="icon-github"></i>
Fork me on GitHub.
</a>
<h2>Demo</h2>
<div>
<div>
<textarea id="textarea1" class="input-xxlarge" rows="4">Hey @guys,
All words start with @ are emphasized like @this.</textarea></div>
<pre class="brush: js; script">
$('textarea').overlay([
{
match: /\B@\w+/g,
css: {
'background-color': '#d8dfea'
}
}
]);
</pre>
</div>
<h2>License</h2>
<p>
MIT
</p>
</div>
</body>
</html>