New nodeeditor html for video node type and update css to make the video fit the popup
authorrougeronj
Tue, 16 Jun 2015 11:37:20 +0200
changeset 483 9bb08a2c2449
parent 482 a55c33989404
child 484 cfe440ade6d6
New nodeeditor html for video node type and update css to make the video fit the popup
client/css/renkan.css
client/templates/nodeeditor_video.html
--- a/client/css/renkan.css	Tue Jun 16 11:36:09 2015 +0200
+++ b/client/css/renkan.css	Tue Jun 16 11:37:20 2015 +0200
@@ -366,6 +366,15 @@
     font-size: 16px; font-weight: bold;
 }
 
+.Rk-Editor video {
+    max-height: 100%;
+    max-width: 100%;
+}
+.Rk-Editor audio {
+    max-height: 100%;
+    max-width: 100%;
+}
+
 .Rk-Editor p, .Rk-Editor-p, .Rk-Editor-p > div {
     margin: 5px 0; font-size: 12px; clear: both;
 }
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/client/templates/nodeeditor_video.html	Tue Jun 16 11:37:20 2015 +0200
@@ -0,0 +1,19 @@
+<h2>
+    <span class="Rk-CloseX">&times;</span>
+    <% if (options.show_node_tooltip_color) { %>
+        <span class="Rk-UserColor" style="background: <%-node.color%>;"></span>
+    <% } %>
+    <span class="Rk-Display-Title">
+        <% if (node.uri) { %>
+            <a href="<%-node.uri%>" target="_blank">
+        <% } %>
+        <%-node.title%>
+        <% if (node.uri) { %></a><% } %>
+    </span>
+</h2>
+<% if (node.uri && options.show_node_tooltip_uri) { %>
+     <video width="320" height="240" controls>
+        <source src="<%-node.uri%>" type="video/mp4">
+     </video> 
+<% } %>
+    <a href="#?idnode=<%-node._id%>"><%-renkan.translate("Link to the node")%></a>