make editor page responsive to smaller screens

This commit is contained in:
Matthew Scragg 2014-09-25 18:17:38 -05:00
parent f1c675973d
commit 8f6823676a
5 changed files with 191 additions and 27 deletions

View file

@ -12,6 +12,21 @@ $(function () {
, $wordcounter = $('#wordcounter')
, $pagename = $("#page-name");
var $entry_markdown_header = $("#entry-markdown-header");
var $entry_preview_header = $("#entry-preview-header");
// Tabs
$entry_markdown_header.click(function(){
$("section.entry-markdown").addClass('active');
$("section.entry-preview").removeClass('active');
});
$entry_preview_header.click(function(){
$("section.entry-preview").addClass('active');
$("section.entry-markdown").removeClass('active');
});
var editor
, autoInterval
, profile =