implement side by side view
This commit is contained in:
parent
fd782c3822
commit
3000ccbba0
@ -30,6 +30,7 @@ see [Wikipedia](http://en.wikipedia.org/wiki/Markdown)
|
|||||||
|
|
||||||
----
|
----
|
||||||
## changelog
|
## changelog
|
||||||
|
* 13-Jan-2015 re-design
|
||||||
* 17-Feb-2013 re-design
|
* 17-Feb-2013 re-design
|
||||||
* 19-May-2011 launch
|
* 19-May-2011 launch
|
||||||
|
|
||||||
|
@ -42,10 +42,12 @@ img {
|
|||||||
|
|
||||||
#header h1 {
|
#header h1 {
|
||||||
color: #fff;
|
color: #fff;
|
||||||
padding-bottom: 10px;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
ul#menu {
|
ul#menu {
|
||||||
|
/*v2.*/
|
||||||
|
display: none;
|
||||||
|
|
||||||
margin: 0;
|
margin: 0;
|
||||||
padding: 0;
|
padding: 0;
|
||||||
list-style: none;
|
list-style: none;
|
||||||
@ -111,9 +113,13 @@ ul#menu a.active li {
|
|||||||
#content .mode {
|
#content .mode {
|
||||||
border: 1px solid #ddd;
|
border: 1px solid #ddd;
|
||||||
border-radius: 3px;
|
border-radius: 3px;
|
||||||
|
width: 465px;
|
||||||
|
display: inline-block;
|
||||||
|
vertical-align: top;
|
||||||
}
|
}
|
||||||
|
|
||||||
#content .mode ul.submenu {
|
#content .mode ul.submenu {
|
||||||
|
display: none;
|
||||||
list-style: none;
|
list-style: none;
|
||||||
margin: 0;
|
margin: 0;
|
||||||
padding: 5px;
|
padding: 5px;
|
||||||
@ -140,7 +146,7 @@ ul#menu a.active li {
|
|||||||
}
|
}
|
||||||
|
|
||||||
#preview {
|
#preview {
|
||||||
display: none;
|
margin-left: 20px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -69,7 +69,7 @@
|
|||||||
<script>!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0];if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src="//platform.twitter.com/widgets.js";fjs.parentNode.insertBefore(js,fjs);}}(document,"script","twitter-wjs");</script></li>
|
<script>!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0];if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src="//platform.twitter.com/widgets.js";fjs.parentNode.insertBefore(js,fjs);}}(document,"script","twitter-wjs");</script></li>
|
||||||
<li class="facebook"><iframe src="//www.facebook.com/plugins/like.php?href=http%3A%2F%2Fmarkdownlivepreview.com&send=false&layout=standard&width=450&show_faces=false&font=tahoma&colorscheme=dark&action=like&height=35" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:450px; height:35px;" allowTransparency="true"></iframe></li>
|
<li class="facebook"><iframe src="//www.facebook.com/plugins/like.php?href=http%3A%2F%2Fmarkdownlivepreview.com&send=false&layout=standard&width=450&show_faces=false&font=tahoma&colorscheme=dark&action=like&height=35" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:450px; height:35px;" allowTransparency="true"></iframe></li>
|
||||||
</ul>
|
</ul>
|
||||||
<div id="copyright">Copyright 2013 <a href="https://twitter.com/tanabe">tanabe</a>.</div>
|
<div id="copyright">Copyright 2015 <a href="https://twitter.com/tanabe">tanabe</a>.</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
|
@ -110,14 +110,13 @@ $(function() {
|
|||||||
event.preventDefault();
|
event.preventDefault();
|
||||||
if (window.confirm('Are you sure you want to delete?')) {
|
if (window.confirm('Are you sure you want to delete?')) {
|
||||||
$('#markdown').val('');
|
$('#markdown').val('');
|
||||||
|
$('#output').html('');
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
//autoresize
|
//autoresize
|
||||||
$('textarea').autosize();
|
$('textarea').autosize();
|
||||||
|
|
||||||
//$('#markdown').focus();
|
|
||||||
|
|
||||||
//leave
|
//leave
|
||||||
$(window).bind('beforeunload', function() {
|
$(window).bind('beforeunload', function() {
|
||||||
if (isEdited) {
|
if (isEdited) {
|
||||||
|
Loading…
Reference in New Issue
Block a user