build: xhr implementation and mobile optimizations

This commit is contained in:
Benjamin Wegener
2021-10-10 20:22:02 +02:00
parent 5b93a984c0
commit b34642cd5e
7 changed files with 810 additions and 58 deletions

8
dist/example.html vendored
View File

@@ -48,10 +48,10 @@
<div id="wrapper">
<h1>🚀 <em>simplecomplete</em> becomes a <u>simple👌</u> yet <u>powerful 💪</u> and <u>versatile 🦄</u> js library for search elements</h1>
<h2>Just a search... but cool.</h2>
<input type="text" data-sc="http://google.de" placeholder="" />
<input type="text" data-sc="https://gorest.co.in/public/v1/users" data-param="name" />
<h2>I just found out i don't know shit about animes</h2>
<select data-sc="http">
<h2>A fake User Search just add the endpoint and the param name</h2>
<select data-sc="https://gorest.co.in/public/v1/users" data-param="name">
<option value="ajin" selected>Ajin</option>
<option value="slump">Dr. Slump</option>
<option value="chobits">Chobits</option>
@@ -65,7 +65,7 @@
</select>
<h2>Hello World...</h2>
<select multiple="true" id="multiple-select" data-sc>
<select multiple="true" id="multiple-select" data-sc="https://gorest.co.in/public/v1/users" data-param="name">
<option>Option A</option>
<option selected>Option B</option>
<option selected>Option C</option>