2020-10-01 23:10:41 +03:00
|
|
|
<!DOCTYPE html>
|
|
|
|
<html lang="en">
|
|
|
|
<head>
|
|
|
|
<meta charset="UTF-8">
|
|
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
|
|
<title><%= filename %></title>
|
|
|
|
|
|
|
|
<% if (fileType !== 'file') { %>
|
2020-10-02 21:44:38 +03:00
|
|
|
<% if (fileType === 'video') { %>
|
2020-10-02 21:27:32 +03:00
|
|
|
<meta name="twitter:card" content="player" />
|
|
|
|
<meta name="twitter:site" content="@harry" />
|
|
|
|
<meta name="twitter:title" content="<%= filename %>" />
|
|
|
|
<meta name="twitter:description" content="File uploaded to hippoz.xyz" />
|
|
|
|
<meta name="twitter:player" content="<%= fileUrl %>" />
|
|
|
|
<meta name="twitter:player:width" content="320" />
|
|
|
|
<meta name="twitter:player:height" content="180" />
|
|
|
|
<meta name="twitter:player:stream" content="<%= fileUrl %>" />
|
|
|
|
<meta name="twitter:player:stream:content_type" content="<%= mimeType %>" />
|
2020-10-02 21:19:59 +03:00
|
|
|
<% } %>
|
2020-10-02 21:29:17 +03:00
|
|
|
<meta property="og:<%= fileType %>:url" content="<%= fileUrl %>" />
|
|
|
|
<meta property="og:<%= fileType %>:secure_url" content="<%= fileUrl %>" />
|
2020-10-02 21:07:57 +03:00
|
|
|
<meta property="og:<%= fileType %>:type" content="<%= mimeType %>" />
|
2020-10-02 21:50:31 +03:00
|
|
|
<% if (fileType === 'video' || fileType === 'image') { %>
|
|
|
|
<meta property="og:<%= fileType %>:width" content="320" />
|
|
|
|
<meta property="og:<%= fileType %>:height" content="180" />
|
|
|
|
<% } %>
|
2020-10-01 23:10:41 +03:00
|
|
|
<% } %>
|
|
|
|
</head>
|
|
|
|
<body>
|
2020-10-02 21:33:03 +03:00
|
|
|
<% if (fileType === 'audio' || fileType === 'video') { %>
|
2020-10-01 23:10:41 +03:00
|
|
|
<<%= fileType %> controls name="media" />
|
|
|
|
<source src="<%= fileUrl %>" type="<%= mimeType %>">
|
|
|
|
</<%= fileType %>>
|
|
|
|
<% } %>
|
2020-10-02 21:33:03 +03:00
|
|
|
|
|
|
|
<% if (fileType === 'image') { %>
|
|
|
|
<img src="<%= fileUrl %>" name="media"></img>
|
|
|
|
<% } %>
|
2020-10-01 23:10:41 +03:00
|
|
|
</body>
|
|
|
|
</html>
|