33 lines
No EOL
1.4 KiB
Text
33 lines
No EOL
1.4 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='form-button' href='https://sand.dervland.net/?embed=https://com.dervland.net<%= contentN.encoded %>'>
|
|
Play my Neoboxels map!
|
|
<% } else if (contentN.ext == 'pmp') { %>
|
|
</a>
|
|
<a class='form-button' href='https://studio.penguinmod.com/fullscreen.html?project_url=https://com.dervland.net<%= contentN.encoded %>'>
|
|
Play my PenguinMod project!
|
|
<% } else if (contentN.ext == 'sb3') { %>
|
|
</a>
|
|
<a class='form-button' href='https://turbowarp.org/fullscreen.html?project_url=https://com.dervland.net<%= contentN.encoded %>'>
|
|
Play my Scratch project!
|
|
<% } 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.data && contentN.data.replaceAll(' ','').length > 0) { %>
|
|
<span class='commentbox'><%= contentN.data %></span>
|
|
<% } } %> |