-
Notifications
You must be signed in to change notification settings - Fork 147
/
index.html
119 lines (113 loc) · 6.03 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
<!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 href="//netdna.bootstrapcdn.com/font-awesome/4.0.3/css/font-awesome.css" rel="stylesheet">
<link rel="stylesheet" type="text/css" href="themes/default.css" />
<link rel="stylesheet" type="text/css" href="css/page.css" />
<!--[if lt IE 9]>
<script type="text/javascript" src="scripts/html5shiv.min.js"></script>
<![endif]-->
<script type="text/javascript" src="scripts/jquery.min.js"></script>
<script type="text/javascript" src="scripts/jquery.popline.js"></script>
<script type="text/javascript" src="scripts/plugins/jquery.popline.link.js"></script>
<script type="text/javascript" src="scripts/plugins/jquery.popline.blockquote.js"></script>
<script type="text/javascript" src="scripts/plugins/jquery.popline.decoration.js"></script>
<script type="text/javascript" src="scripts/plugins/jquery.popline.list.js"></script>
<script type="text/javascript" src="scripts/plugins/jquery.popline.justify.js"></script>
<script type="text/javascript" src="scripts/plugins/jquery.popline.blockformat.js"></script>
<script type="text/javascript" src="scripts/plugins/jquery.popline.social.js"></script>
<script type="text/javascript" src="scripts/plugins/jquery.popline.backcolor.js"></script>
<script type="text/javascript">
$(function(){
if ($.popline.utils.browser.ie) {
if ($.popline.utils.browser.ieVersion() < 9) {
$.popline.utils.fixIE8();
} else {
$(".switcher").show();
}
} else {
$(".switcher").show();
document.execCommand('defaultParagraphSeparator', false, 'p');
}
$(".editor").popline({position: "fixed"});
$("input[name='mode']").click(function(){
$(".editor").popline("destroy");
$(".editor").attr("contenteditable", this.id === "edit");
$(".editor").popline({mode: this.id, position: $("input[name='position']:checked").attr("id")});
});
$("input[name='position']").click(function(){
$(".editor").popline("setPosition", 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="switcher hide">
<div class="switch-toggle switch-2 switch-ios">
<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>
<a></a>
</div>
<div class="switch-toggle switch-2 switch-ios">
<input id="fixed" name="position" type="radio" checked="">
<label for="fixed">Fixed</label>
<input id="relative" name="position" type="radio">
<label for="relative">Relative</label>
<a></a>
</div>
</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 a non-intrusive <font color="#00ae52">WYSIWYG</font> editor.</p>
<p>It shows up only after selecting a piece of text on the page.</p>
<p>Inspired by <a href="http://pilotmoon.com/popclip/" target="_blank">popclip</a>.</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>Two popup ways supported, <u>Fixed</u> and <u>Relative</u>.</p>
<p>Compatible with Chrome, Safari, Firefox, Opera 15.0+, IE 8+</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="fa fa-smile-o"></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>