Skip to content

Commit

Permalink
Add Dropdown Reset
Browse files Browse the repository at this point in the history
  • Loading branch information
smashedr committed Oct 26, 2024
1 parent 64d1b43 commit d473894
Showing 1 changed file with 11 additions and 6 deletions.
17 changes: 11 additions & 6 deletions src/html/options.html
Original file line number Diff line number Diff line change
Expand Up @@ -301,15 +301,20 @@ <h5 class="mt-3">
</div>
<div class="ms-0 ms-sm-3">
<div id="bgPictureInput" class="input-group">
<span class="input-group-text" id="picture-addon" data-bs-toggle="tooltip" data-bs-title="URL to a Web Image or empty for default.">
<span class="input-group-text" id="picture-addon" data-bs-toggle="tooltip" data-bs-title="URL to a Web Image.">
<i class="fa-solid fa-circle-info"></i></span>
<input id="pictureURL" name="pictureURL" aria-describedby="picture-addon" type="text" class="form-control"
placeholder="Background Picture URL" aria-label="Background Picture URL">
<span class="input-group-text text-warning-emphasis" role="button"
data-bs-title="Reset Background Picture URL to Default." data-bs-toggle="tooltip"
data-reset-input="pictureURL" data-value="https://images.cssnr.com/aviation">
<i class="fa-solid fa-rotate-left"></i>
</span>

<button class="btn btn-outline-secondary dropdown-toggle" type="button" data-bs-toggle="dropdown" aria-expanded="false">Presets</button>
<ul class="dropdown-menu dropdown-menu-end">
<li><a class="dropdown-item" role="button"
data-reset-input="pictureURL" data-value="https://images.cssnr.com/aviation">
https://images.cssnr.com/aviation</a></li>
<li><a class="dropdown-item" role="button"
data-reset-input="pictureURL" data-value="https://picsum.photos/1920/1280">
https://picsum.photos/1920/1280</a></li>
</ul>
</div>
</div>
</form>
Expand Down

0 comments on commit d473894

Please sign in to comment.