added experimental combined normalize/copy-button

This commit is contained in:
Thelonius Kort
2020-08-31 17:58:12 +02:00
parent 2a43868956
commit eeb200bd98
5 changed files with 47 additions and 11 deletions

View File

@ -11,7 +11,7 @@ defmodule ClipWeb.BoardLive do
<textarea type="text" name="snippet" data-updated-val="<%= @snippet %>" phx-hook="SnippetInput" autocomplete="off"><%= @snippet %></textarea>
</form>
<!-- Current content: < %= @snippet %><br> -->
<button phx-click="normalize">+4930112 -> 0004930112#</button> <button id="copy-button">copy</button>
<button phx-click="normalize">+4930112 -> 0004930112#</button> <button id="copy-button">copy</button> <button id="normcop" phx-click="normalize">+4930112 -> 0004930112# + copy (experimental)</button>
"""
end