28 lines
No EOL
1.2 KiB
Text
28 lines
No EOL
1.2 KiB
Text
<% for (let contentN of content) { %>
|
|
<% if (contentN.type == 'file') { %>
|
|
<a class='link' href='<%= contentN.path %>'>
|
|
<% if (['gif','png','jpg'].indexOf(contentN.ext) != -1) { %>
|
|
<img class='art' src='<%= contentN.path %>'>
|
|
<% } else if (contentN.ext == '!neoboxels') { %>
|
|
</a>
|
|
<a class='link' href='https://sand.dervland.net/?embed=https://com.dervland.net<%= contentN.path %>'>
|
|
https://sand.dervland.net/?embed=https://com.dervland.net<%= contentN.path %>
|
|
</a>
|
|
<iframe width="<%= contentN.width %>" height="<%= contentN.height %>" src="https://sand.dervland.net/?only=true&embed=https://com.dervland.net<%= contentN.path %>"></iframe>
|
|
<a>
|
|
<% } else if (['txt','json'].indexOf(contentN.ext) != -1) { %>
|
|
<%= contentN.href %>
|
|
</a>
|
|
<textarea class="form-input big-text"> <%= contentN.content %> </textarea>
|
|
<a>
|
|
<% } else if (['mp4','mp3','webm','wav'].indexOf(contentN.ext) != -1) { %>
|
|
<video class='art' controls>
|
|
<source src='<%= contentN.ext %>'>
|
|
</video>
|
|
<% } %>
|
|
</a>
|
|
<% } else if (contentN.type == 'link') { %>
|
|
<a class='link' href='<%= contentN.href %>'><%= contentN.name %></a>
|
|
<% } else if (contentN.type.replaceAll(' ','').length > 0) { %>
|
|
<span class='commentbox'><%= contentN.data %></span>
|
|
<% } } %> |