diff options
author | Aaron Parecki <aaron@parecki.com> | 2015-09-08 22:55:56 -0700 |
---|---|---|
committer | Aaron Parecki <aaron@parecki.com> | 2015-09-08 22:55:56 -0700 |
commit | 2bb18a66be585384acd5a4068a4311a976e28c57 (patch) | |
tree | 1f2dc711454a24d76f8004836419ed035f4e22f8 /public/editor | |
parent | 881550cac72bfcc2e7551fe13288ea8a1d27ca34 (diff) |
add banner to opt in to html content change
Diffstat (limited to 'public/editor')
-rw-r--r-- | public/editor/editor.js | 12 | ||||
-rw-r--r-- | public/editor/style.css | 26 |
2 files changed, 38 insertions, 0 deletions
diff --git a/public/editor/editor.js b/public/editor/editor.js index 526a444..f0e9519 100644 --- a/public/editor/editor.js +++ b/public/editor/editor.js @@ -89,6 +89,18 @@ $(function() { }); }); + $("#micropub-html-btn").click(function(){ + $.post('/settings/html-content', { + html: 1 + }, function(data){ + }); + }); + + $.getJSON('/settings/html-content', function(data){ + if(data.html == '0') { + $('.micropub-html-warning').show(); + } + }); }); function reset_page() { diff --git a/public/editor/style.css b/public/editor/style.css index 8ae753a..6d02615 100644 --- a/public/editor/style.css +++ b/public/editor/style.css @@ -22,6 +22,32 @@ h1, h2, h3, h4, h5, h6, th, td, caption { font-weight:normal; } img { border: 0; } +.micropub-html-warning { + max-width: 600px; + margin-left: auto; + margin-right: auto; + margin-top: 68px; + margin-bottom: -80px; + font-size: 12px; + font-family: sans-serif; + line-height: 16px; + background: #fcf8e3; + border: 1px #faebcc solid; +} +.micropub-html-warning div { + padding: 10px 20px; +} +.micropub-html-warning button { + display: block; +} +#micropub-html-btn { + border-radius: 6px; + padding: 0 12px; + height: 28px; + background: #e4f8fa; + float: right; +} + /* ************************************** */ /* Toolbar */ |