diff --git a/BookAStar/BookAStar.Droid/Assets/snow.html b/BookAStar/BookAStar.Droid/Assets/snow.html index 21029dab..dde70d66 100644 --- a/BookAStar/BookAStar.Droid/Assets/snow.html +++ b/BookAStar/BookAStar.Droid/Assets/snow.html @@ -1,57 +1,85 @@ - Snow Theme - Quill - - - - + Quill + - + - + + #bubble-container { + height: 100%; + } + #bubble-container div.ql-editor { + margin-top:3em; + } + + .hidden { + display: none; + } + - -
-
-
- - - - - - - +
+
+
+
+ +
+
+ - - + quill.on('text-change', function (delta, oldDelta, source) + { + if (source === "user") { + $('#md').val(getMD()); + $('#btnSubmit').removeClass('hidden'); + } + }); +$( document ).ready(function() { + $('#btnSubmit').on('click', function () { + $.get("hybrid:validate?md=" + encodeURIComponent(getMD()), + function(data,stat,jqXHR) { $('#result').html("Okay") }) + }) +}); + +