summaryrefslogtreecommitdiffstats
path: root/views
diff options
context:
space:
mode:
authorOmar Roth <omarroth@hotmail.com>2017-11-23 01:48:55 -0600
committerOmar Roth <omarroth@hotmail.com>2017-11-23 01:48:55 -0600
commit26959020b732b5d729432294df6246307819e32f (patch)
tree0d9ff22c2c1ef8f3ead9950be54dea1d809c21f5 /views
downloadinvidious-26959020b732b5d729432294df6246307819e32f.tar.gz
invidious-26959020b732b5d729432294df6246307819e32f.tar.bz2
invidious-26959020b732b5d729432294df6246307819e32f.zip
Initial commit
Diffstat (limited to 'views')
-rw-r--r--views/index.ecr0
-rw-r--r--views/layout.ecr23
-rw-r--r--views/listen.ecr16
-rw-r--r--views/watch.ecr15
4 files changed, 54 insertions, 0 deletions
diff --git a/views/index.ecr b/views/index.ecr
new file mode 100644
index 00000000..e69de29b
--- /dev/null
+++ b/views/index.ecr
diff --git a/views/layout.ecr b/views/layout.ecr
new file mode 100644
index 00000000..a0b9813d
--- /dev/null
+++ b/views/layout.ecr
@@ -0,0 +1,23 @@
+<!DOCTYPE html>
+<html>
+
+<head>
+ <meta charset="utf-8">
+ <meta name="viewport" content="width=device-width, initial-scale=1">
+ <title>Visor</title>
+ <meta content="">
+ <link rel="stylesheet" href="/css/pure-min.css">
+ <link rel="stylesheet" href="/css/grids-responsive-min.css">
+</head>
+
+<body>
+ <div class="pure-g">
+ <div class="pure-u-1 pure-u-md-1-5"></div>
+ <div class="pure-u-1 pure-u-md-3-5">
+ <%= content %>
+ </div>
+ <div class="pure-u-1 pure-u-md-1-5"></div>
+ </div>
+</body>
+
+</html> \ No newline at end of file
diff --git a/views/listen.ecr b/views/listen.ecr
new file mode 100644
index 00000000..13f03805
--- /dev/null
+++ b/views/listen.ecr
@@ -0,0 +1,16 @@
+<h1><%= URI.unescape(video_info["title"].to_s,true) %></h1>
+<video style="width: 100%" poster="<%= video_info["iurlmq"] %>" controls>
+<% adaptive_fmt.each do |fmt| %>
+ <% fmt_type = fmt["type"].to_s.split(";")[0] %>
+ <% if fmt_type.starts_with?("audio") %>
+ <source src="<%= fmt["url"] %>" type="<%= fmt_type %>">
+ <% end %>
+<% end %>
+</video>
+
+
+<div class="pure-g">
+<div class="pure-u-1 pure-u-md-1-5"></div>
+<div class="pure-u-1 pure-u-md-3-5"></div>
+<div class="pure-u-1 pure-u-md-1-5"></div>
+</div> \ No newline at end of file
diff --git a/views/watch.ecr b/views/watch.ecr
new file mode 100644
index 00000000..e46cf77c
--- /dev/null
+++ b/views/watch.ecr
@@ -0,0 +1,15 @@
+<h1><%= URI.unescape(video_info["title"].to_s,true) %></h1>
+<video style="width: 100%" poster="<%= video_info["iurlmq"] %>" controls>
+ <% fmt_stream.each do |fmt| %>
+ <source src="<%= fmt["url"] %>" type="<%= fmt["type"].to_s.split(";")[0] %>">
+ <% end %>
+</video>
+<div class="pure-g">
+<div class="pure-u-1 pure-u-md-1-5"></div>
+<div class="pure-u-1 pure-u-md-3-5">
+<% fmt_stream.each do |fmt| %>
+<p><%= fmt["quality"] %></p>
+<% end %>
+</div>
+<div class="pure-u-1 pure-u-md-1-5"></div>
+</div> \ No newline at end of file