add embeds support
This commit is contained in:
parent
e86d4f4212
commit
21476e6e43
3 changed files with 63 additions and 6 deletions
|
@ -3,8 +3,15 @@
|
|||
<a class='link' href='<%= contentN[1] %>'>
|
||||
<% if (['gif','png','jpg'].indexOf(contentN[2]) != -1) { %>
|
||||
<img class='art' src='<%= contentN[1] %>'>
|
||||
<% } else if (['!neoboxels'].indexOf(contentN[2]) != -1) { %>
|
||||
</a>
|
||||
<iframe src="https://sand.dervland.net/?only=true&embed=https://com.dervland.net/uploads/<%= contentN[1] %>"></iframe>
|
||||
<a>
|
||||
<% } else if (['txt','json'].indexOf(contentN[2]) != -1) { %>
|
||||
<%= contentN[1] %>
|
||||
</a>
|
||||
<textarea class="form-input big-text"> <%= contentN[3] %> </textarea>
|
||||
<a>
|
||||
<% } else if (['mp4','mp3','webm','wav'].indexOf(contentN[2]) != -1) { %>
|
||||
<video class='art' controls>
|
||||
<source src='<%= contentN[1] %>'>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue