forked from kenshin54/popline
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex.html
86 lines (82 loc) · 4.42 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>popline - An HTML5 Rich-Text-Editor Toolbar</title>
<link rel="stylesheet" type="text/css" href="css/normalize.css" />
<link rel="stylesheet" type="text/css" href="css/toggle-switch.css" />
<link rel="stylesheet" type="text/css" href="font-awesome/css/font-awesome.min.css" />
<link rel="stylesheet" type="text/css" href="themes/default.css" />
<link rel="stylesheet" type="text/css" href="css/page.css" />
<script type="text/javascript" src="scripts/jquery.min.js"></script>
<script type="text/javascript" src="build/jquery.popline.min.js"></script>
<script type="text/javascript">
$(function(){
document.execCommand('defaultParagraphSeparator', false, 'p');
$(".editor").popline();
$("body").data("mode", "edit");
$("input[name='mode']").click(function(){
if (this.id !== $("body").data("mode")) {
$(".editor").popline("destroy");
$(".editor").attr("contenteditable", this.id === "edit");
$(".editor").popline({mode: this.id});
$("body").data("mode", this.id);
}
});
});
</script>
</head>
<body>
<div id="fb-root"></div>
<script>(function(d, s, id) {
var js, fjs = d.getElementsByTagName(s)[0];
if (d.getElementById(id)) return;
js = d.createElement(s); js.id = id;
js.src = "//connect.facebook.net/en_US/all.js#xfbml=1&appId=138812102872297";
fjs.parentNode.insertBefore(js, fjs);
}(document, 'script', 'facebook-jssdk'));</script>
<div class="mode switch candy blue">
<input id="edit" name="mode" type="radio" checked="">
<label for="edit">Edit</label>
<input id="view" name="mode" type="radio">
<label for="view">View</label>
<span class="slide-button"></span>
</div>
<section class="container">
<div class="g-plusone" data-size="medium" data-href="http://kenshin54.github.io/popline/"></div>
<a href="https://twitter.com/share" class="twitter-share-button" data-url="http://kenshin54.github.io/popline/" data-via="kenshin54">Tweet</a>
<div class="fb-like" data-href="http://kenshin54.github.io/popline/" data-send="false" data-layout="button_count" data-width="450" data-show-faces="true"></div>
<article class="content">
<div class="editor" contenteditable="true">
<p><a href="https://github.com/kenshin54/popline">Popline</a> is an HTML5 Rich-Text-Editor Toolbar.</p>
<p>Inspired by <a href="http://pilotmoon.com/popclip/" target="_blank">popclip</a>. Compared to traditional RTE, popline will float around the selected text.</p>
<p>It provides commonly used editing features <b>out-of-the-box</b>.</p>
<blockquote>Easy to extend, Easy to customize.</blockquote>
<p>Two modes supported, <i>Edit mode</i> and <i>View mode</i>.</p>
<p>
The default theme popline used is designed by <a target="_blank" href="https://twitter.com/PepsinY">@Pepsin</a>, Thanks.
</p>
<p style="text-align: right;">happy to use <i class="icon-smile"></i></p>
<p style="text-align: right;"><a target="_blank" href="https://twitter.com/kenshin54">@kenshin54</a></p>
</div>
</article>
</section>
<script>!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0],p=/^http:/.test(d.location)?'http':'https';if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src=p+'://platform.twitter.com/widgets.js';fjs.parentNode.insertBefore(js,fjs);}}(document, 'script', 'twitter-wjs');</script>
<script type="text/javascript">
(function() {
var po = document.createElement('script'); po.type = 'text/javascript'; po.async = true;
po.src = 'https://apis.google.com/js/plusone.js';
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(po, s);
})();
</script>
<a href="https://github.com/kenshin54/popline"><img style="position: absolute; top: 0; right: 0; border: 0;" src="https://s3.amazonaws.com/github/ribbons/forkme_right_darkblue_121621.png" alt="Fork me on GitHub"></a>
<script>
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','//www.google-analytics.com/analytics.js','ga');
ga('create', 'UA-41540602-1', 'kenshin54.github.io');
ga('send', 'pageview');
</script>
</body>
</html>