fixed #8
This commit is contained in:
parent
3000ccbba0
commit
786e4a6259
22
js/main.js
22
js/main.js
@ -51,28 +51,6 @@ $(function() {
|
|||||||
|
|
||||||
var isEdited = false;
|
var isEdited = false;
|
||||||
|
|
||||||
$(window).scroll(function() {
|
|
||||||
var scrollTop = $(window).scrollTop();
|
|
||||||
scrollTops[currentMode] = scrollTop;
|
|
||||||
if ((scrollTop > titleHeight)) {
|
|
||||||
header.css({
|
|
||||||
'position' : 'fixed',
|
|
||||||
'top' : fixedTop + 'px',
|
|
||||||
'z-index' : '100'
|
|
||||||
});
|
|
||||||
|
|
||||||
container.css({
|
|
||||||
'margin-top' : headerHeight + 'px'
|
|
||||||
});
|
|
||||||
|
|
||||||
} else {
|
|
||||||
header.css('position', 'static');
|
|
||||||
container.css({
|
|
||||||
'margin-top' : 0
|
|
||||||
});
|
|
||||||
}
|
|
||||||
});
|
|
||||||
|
|
||||||
$('#markdown').val(example);
|
$('#markdown').val(example);
|
||||||
$('#output').html(markdown.toHTML(example));
|
$('#output').html(markdown.toHTML(example));
|
||||||
$('#markdown').bind('keyup', function() {
|
$('#markdown').bind('keyup', function() {
|
||||||
|
Loading…
Reference in New Issue
Block a user