diff --git a/public/js/script.js b/public/js/script.js index 50496d3..f6f3a48 100644 --- a/public/js/script.js +++ b/public/js/script.js @@ -39,3 +39,11 @@ $(function(){ }); }) + +function auto_prefix_url_field(field) { + var str = field.value; + if(!/^https?:\/\//.test(str)) { + str = "http://" + str; + } + field.value = str; +} diff --git a/views/index.php b/views/index.php index 3ed34c2..b06f097 100644 --- a/views/index.php +++ b/views/index.php @@ -8,7 +8,7 @@

To use Quill, sign in with your domain. Your website will need to support Micropub for creating new posts.

- +