Browse code

Adiciones de enlaces

NikaZhenya authored on 26/10/2018 09:32:12
Showing 3 changed files
... ...
@@ -18,7 +18,14 @@ def build_list
18 18
     $htmls.each do |h|
19 19
       html.push((space * 5) + '<li>')
20 20
       html.push((space * 6) + '<p>' + h[1] + '</p>')
21
-      html.push((space * 6) + '<p class="sin-sangria"><a href="src/presentations/html/' + h[0] + '">HTML</a><a href="src/presentations/pdf/' + h[0].gsub('.html', '.pdf') + '">PDF</a></p>')
21
+      html.push((space * 6) + '<p class="sin-sangria">')
22
+      html.push((space * 7) + '<a href="src/presentations/html/' + h[0] + '">HTML</a>')
23
+      html.push((space * 7) + '<a href="src/presentations/pdf/' + h[0].gsub('.html', '.pdf') + '">PDF</a>')
24
+      if h[2] != nil
25
+        html.push((space * 7) + '<a href="' + h[2] + '.mp4">MP4</a>')
26
+        html.push((space * 7) + '<a href="' + h[2] + '.webm">WEBM</a>')
27
+      end
28
+      html.push((space * 6) + '</p>')
22 29
       html.push((space * 5) + '</li>')
23 30
     end
24 31
     html.push((space * 4) + '</ol>')
... ...
@@ -36,11 +43,13 @@ Dir.chdir(File.dirname(__FILE__) + '/../src/presentations/html')
36 43
 
37 44
 # Manda a crear cada publicación
38 45
 Dir.glob('*.html').each do |file|
39
-  title = File.read(file)
40
-              .gsub("\n",'')
41
-              .gsub(/^.*?<title>(.*?)<\/title>.*$/, '\1')
46
+  html  = File.read(file).gsub("\n",'')
47
+  title = html.gsub(/^.*?<title>(.*?)<\/title>.*$/, '\1')
48
+  video = html.gsub(/^.*?<!--\s+video:(\S*?)\s+-->.*$/, '\1')
42 49
 
43
-  $htmls.push([File.basename(file), title])
50
+  if video =~ /\s/ then video = nil end
51
+
52
+  $htmls.push([File.basename(file), title, video])
44 53
 end
45 54
 
46 55
 # Ordena alfabéticamente
... ...
@@ -22,11 +22,19 @@
22 22
                 <ol>
23 23
                     <li>
24 24
                         <p>Edición estandarizada, automatizada y multiformato</p>
25
-                        <p class="sin-sangria"><a href="src/presentations/html/01_edicion-estandar.html">HTML</a><a href="src/presentations/pdf/01_edicion-estandar.pdf">PDF</a></p>
25
+                        <p class="sin-sangria">
26
+                            <a href="src/presentations/html/01_edicion-estandar.html">HTML</a>
27
+                            <a href="src/presentations/pdf/01_edicion-estandar.pdf">PDF</a>
28
+                            <a href="https://ia601500.us.archive.org/0/items/tied_orbilibro/sesion04.mp4">MP4</a>
29
+                            <a href="https://ia601500.us.archive.org/0/items/tied_orbilibro/sesion04.webm">WEBM</a>
30
+                        </p>
26 31
                     </li>
27 32
                     <li>
28 33
                         <p>Automated and multiformat standardized publishing</p>
29
-                        <p class="sin-sangria"><a href="src/presentations/html/02_standard_publishing.html">HTML</a><a href="src/presentations/pdf/02_standard_publishing.pdf">PDF</a></p>
34
+                        <p class="sin-sangria">
35
+                            <a href="src/presentations/html/02_standard_publishing.html">HTML</a>
36
+                            <a href="src/presentations/pdf/02_standard_publishing.pdf">PDF</a>
37
+                        </p>
30 38
                     </li>
31 39
                 </ol>
32 40
                 <!-- presentations -->
... ...
@@ -12,6 +12,7 @@
12 12
     <script src="../js/functions.js"></script>
13 13
   </head>
14 14
   <body>
15
+    <!-- video:https://ia601500.us.archive.org/0/items/tied_orbilibro/sesion04 -->
15 16
     <div class="reveal">
16 17
       <div class="slides">
17 18
         <section>