-
Notifications
You must be signed in to change notification settings - Fork 6
/
home.html
51 lines (49 loc) · 1.88 KB
/
home.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
<!DOCTYPE html>
<html>
<head>
<link rel="stylesheet" type="text/css" href="css/tooltipster.css">
<link rel="stylesheet" type="text/css" href="css/custom-highlight.css">
<script src="js/jquery-2.1.4.min.js"></script>
<script src="js/jquery.colourbrightness.min.js"></script>
<script src="js/jquery.tooltipster.min.js"></script>
<meta charset="utf-8">
<title>Custom Highlight</title>
<style type="text/css">
</style>
<script type="text/javascript">
function custom_function_1(span_id) {
alert("Hello everybody! " + span_id);
}
function custom_function_2(span_id) {
alert("Another custom function! " + span_id);
}
</script>
</head>
<body>
<h1>Go ahead and highlight some text below!</h1>
<p contenteditable>
Bacon ipsum dolor amet leberkas andouille frankfurter jerky strip steak, pastrami turkey biltong sirloin. Tur
<br>
key turducken bacon, chuck spare ribs porchetta ham shankle landjaeger bri
<br>
sket venison fatback short ribs pork loin biltong. Ball tip shoulder spare ribs, tenderloin strip steak ribeye biltong tongue ham ham hock leberkas. T-bone swine pork loin doner andouille, sausage venison spare ri
<br>
bs porchetta alcatra sirloin rump ribeye. Tenderloin turkey beef, beef ribs t-bone chicken pancetta cow landjaeger. Ball tip jerky shankle sirloin drumstick t-bone. Pancetta tongue rump shankle short loin pork ham sirl
<br>
oin chuck filet mignon flank picanha swine.
<br>
</p>
<!--<script src="custom-highlight.js"></script>-->
<script src="jquery.custom-highlight.js"></script>
<script type="text/javascript">
$( document ).ready(function() {
$('div,p').customHighlight({
actions: [{"custom_function_1":"Custom Function 1"}, {"custom_function_2":"Custom Function 2"}],
position: "left",
backgroundcolor: "on",
textcolor: "off"
});
});
</script>
</body>
</html>