-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathindex.html
118 lines (98 loc) · 5.5 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
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="initial-scale=1">
<title>PuppyPaste - extract HTML or markdown from web copied text</title>
<link rel="stylesheet" href="normalize.css"></link>
<link rel="stylesheet" href="lib/redactor/redactor.css" />
<link rel="stylesheet" href="lib/font-awesome/css/font-awesome.min.css" />
<link rel="stylesheet" href="htmlpaste.css"></link>
<script src="lib/marked/marked.js"></script>
<script src="lib/md.js"></script>
<script src="lib/textile.js"></script>
<script src="lib/jquery.min.js"></script>
<script src="lib/redactor/redactor.min.js"></script>
<script src="lib/clipboard.min.js"></script>
<script src="htmlpaste.js"></script>
<script src="lib/j2m.js"></script>
<script src="lib/markdown-browser-0.6.0-beta1/markdown.js"></script>
</head>
<body>
<header>
<a class="menu-item right" target="_blank" href="https://github.com/dergachev/puppypaste"> <i class="fa fa-github"></i> Source on GitHub</a>
<a class="menu-item right" target="_blank" href="https://github.com/dergachev/puppypaste"><i class="fa fa-question-circle"></i> Help</a>
<div>
<div class="header-logo"><img id="logo" class="left" src="puppypaste-logotype-600.gif" /></div>
<div class="subtitle" ><strong>Paste your content</strong> without losing formatting and <strong>get back Markdown</strong> or Source HTML. Great for bug trackers, wikis, and <a href="https://gist.github.com" target="_blank">gists</a>.</div>
</div>
</header>
<div class="row cf">
<div class="col">
<div class="col-container">
<h2>Paste your styled content here...</h2>
<p><em>From another webpage, MS Word, etc. </em></p>
<div contenteditable="true" id="input" cols="100" rows="10">
Hello world!
<p>Paste some <b>HTML</b> into this box and the markdown will appear on the right.</p>
<p>Some things that work:</p>
<ul>
<li><a href="http://google.com">Links to Google</a></li>
<li>Nested lists of cool animals: <ul><li>shifty snakes</li><li><em>cool cats</em></li></ul> </li>
<li>Funky gifs!</li>
<li><img src="giphy.gif"/></li>
</ul>
<p>Enjoy!</p>
</div>
</div>
</div>
<div class="col">
<div class="col-container">
<h2>Get it back as...</h2>
<div id="output-header">
<a id="output-header-markdown" class="active" href="#">Markdown</a>
<a id="output-header-html" href="#">HTML</a>
<a id="output-header-textile" href="#">Textile</a>
<a id="output-header-jira" href="#">Jira</a>
</div>
<div id="output-container" class="redactor_box">
<ul id="output-toolbar-markdown" class="active redactor_toolbar output-toolbar">
<li><button class="copy-clipboard" data-clipboard-action="copy" data-clipboard-target="#output" ><i class="fa fa-files-o"></i> <span>Copy to clipboard</span></button></li>
</ul>
<ul id="output-toolbar-html" class="redactor_toolbar output-toolbar">
<li><div id="setting-html-tidy-wrapper"><input type="checkbox" id="setting-html-tidy" name="html-tidy" value="1"/ >Clean HTML</div></li>
<li class="redactor_separator"></li>
<li><button class="copy-clipboard" data-clipboard-action="copy" data-clipboard-target="#output" ><i class="fa fa-files-o"></i> <span>Copy to clipboard</span></button></li>
</ul>
<ul id="output-toolbar-textile" class="redactor_toolbar output-toolbar">
<li><button class="copy-clipboard" data-clipboard-action="copy" data-clipboard-target="#output" ><i class="fa fa-files-o"></i> <span>Copy to clipboard</span></button></li>
</ul>
<ul id="output-toolbar-jira" class="redactor_toolbar output-toolbar">
<li><button class="copy-clipboard" data-clipboard-action="copy" data-clipboard-target="#output" ><i class="fa fa-files-o"></i> <span>Copy to clipboard</span></button></li>
</ul>
<textarea readonly id="output"></textarea>
</div>
</div>
</div>
</div>
<footer>
<p>PuppyPaste is a side-project of <a href="https://github.com/dergachev/">Alex Dergachev</a> who's currently using it to copy meeting notes from Gmail to Redmine as part of his work at <a href="http://evolvingweb.ca">Evolving Web</a>, a Drupal consultancy in Montreal, Canada.</p>
<div class="social">
<a href="http://evolvingweb.ca" target="_blank"><img class="avatar" src="https://www.gravatar.com/avatar/0bceeea1c7179c102b50812a1d2c74c3.png" alt="Me" /></a>
<ul>
<li><a href="http://github.com/dergachev" target="_blank"><i class="fa fa-github"></i></a></li>
<li><a href="http://twitter.com/dergachev" target="_blank"><i class="fa fa-twitter"></i></a></li>
<li><a href="https://www.linkedin.com/in/alexdergachev" target="_blank"><i class="fa fa-linkedin"></i></a></li>
</ul>
</div>
</footer>
<script type="text/javascript">
(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-37659053-3', 'auto');
ga('send', 'pageview');
</script>
</body>
</html>