diff --git a/app.py b/app.py index 3950ec2..1f396f8 100644 --- a/app.py +++ b/app.py @@ -11,6 +11,9 @@ DEBUG = 0 """ To-do: Styles +Bible Reading Plan +Bible Viewer +fix Multiple Reference resolving /show """ def dbg(message): @@ -189,7 +192,9 @@ def return_dict_rich(ref, defs): @app.get("/show") def show(): - ref = request.args.get("kw", "John 3:16") + ref = request.args.get("kw", None) + if ref is None: + return send_file("html/show.html") dbg("show({})".format(ref)) ref = ref_input_cleaning(ref) if not ref: diff --git a/html/dictionary.html b/html/dictionary.html index 2a49758..6323ec6 100644 --- a/html/dictionary.html +++ b/html/dictionary.html @@ -4,7 +4,7 @@ View - Rich + Rich Plain JSON diff --git a/html/search.html b/html/search.html index ba737de..e9df840 100644 --- a/html/search.html +++ b/html/search.html @@ -4,7 +4,7 @@ View - Rich + Rich Plain JSON diff --git a/html/show.html b/html/show.html new file mode 100644 index 0000000..f18c6d6 --- /dev/null +++ b/html/show.html @@ -0,0 +1,17 @@ +Show Verse + + Key Words + + + View + Rich + Plain + JSON + + + + + +You can try to search a Bible reference in this box, such as "1 John 5:7". +You can use abbreviations, but you may not get the result you are looking for. +Use a dash for the verse to get the entire chapter, eg. "John 3:-"
You can try to search a Bible reference in this box, such as "1 John 5:7".
You can use abbreviations, but you may not get the result you are looking for.
Use a dash for the verse to get the entire chapter, eg. "John 3:-"