summaryrefslogtreecommitdiff
path: root/views/partials/search.ejs
diff options
context:
space:
mode:
authorroot <root@vagrantz.xyz>2021-04-06 10:57:50 +0000
committerroot <root@vagrantz.xyz>2021-04-06 10:57:50 +0000
commit8170d5bc0544fbc02155b8b57751cd1dec33dd69 (patch)
treed5cffb086fe6d5585c1e00ea5d5d2d907e6d2cd6 /views/partials/search.ejs
initial public commitHEADmaster
Diffstat (limited to 'views/partials/search.ejs')
-rw-r--r--views/partials/search.ejs18
1 files changed, 18 insertions, 0 deletions
diff --git a/views/partials/search.ejs b/views/partials/search.ejs
new file mode 100644
index 0000000..f838b4c
--- /dev/null
+++ b/views/partials/search.ejs
@@ -0,0 +1,18 @@
+<div class='searchbox'>
+ <h2>Search Recipes</h2>
+ <form id='searchForm'>
+ <% if(page === 'search') { %>
+ <input id='srchInpt' type="text" value='<%= query %>'>
+ <button id='srchBtn' type='submit'>
+ <i class='fas fa-search'></i>
+ </button>
+ <% } else {%>
+ <input id='srchInpt' type="text">
+ <button id='srchBtn' type='submit'>
+ <i class='fas fa-search'></i>
+ </button>
+ <% } %>
+ </form>
+</div>
+
+<script type='text/javascript' src="/libs/search.js"></script> \ No newline at end of file