added word break to output view, removed custome validation messages on
formpull/6/head
parent
3e6500ae1c
commit
097645cd71
|
|
@ -1,2 +1,2 @@
|
|||
<h2><a href="/" style="color: #555555;">Home</a></h2>
|
||||
<h2><a href="<%= @new_link %>" target="_blank" style="color: #555555;"><%= @new_link %></a></h2>
|
||||
<h3 style="overflow-wrap: break-word; word-wrap: break-word;"><a href="<%= @new_link %>" target="_blank" style="color: #555555;"><%= @new_link %></a></h3>
|
||||
|
|
|
|||
|
|
@ -2,10 +2,8 @@
|
|||
<input type="url"
|
||||
name="url"
|
||||
pattern="https?://.+"
|
||||
required
|
||||
oninvalid="setCustomValidity('Enter a valid URL')"
|
||||
onvalid="setCustomValidity('')"
|
||||
placeholder="http://www.example.com/"
|
||||
style="padding: 0.5rem;" />
|
||||
style="padding: 0.5rem;"
|
||||
required />
|
||||
<input type="submit" value="Submit" style="padding: 0.5rem;" />
|
||||
</form>
|
||||
|
|
|
|||
Loading…
Reference in New Issue