File tree Expand file tree Collapse file tree 6 files changed +55
-49
lines changed Expand file tree Collapse file tree 6 files changed +55
-49
lines changed Original file line number Diff line number Diff line change
1
+ < script src ="https://ajax.googleapis.com/ajax/libs/jquery/3.1.0/jquery.min.js "> </ script >
2
+
3
+ {% for file in site.static_files %}
4
+ {% if file.path contains 'assets/videos' %}
5
+ {% if file.extname == ".mov" %}
6
+ < script >
7
+ $ ( function ( ) {
8
+ $ ( ".videoContainer" ) . removeClass ( "hidden" ) ;
9
+ $ ( ".screenvideo" ) . append ( '<source src="{{ file.path }}" type="video/mp4">' ) ;
10
+ console . log ( "{{ file.path }}" ) ;
11
+ } ) ;
12
+ </ script >
13
+ {% elsif file.extname == ".ogg" %}
14
+ < script >
15
+ $ ( function ( ) {
16
+ $ ( ".videoContainer" ) . removeClass ( "hidden" ) ;
17
+ $ ( ".screenvideo" ) . append ( '<source src="{{ file.path }}" type="video/ogg">' ) ;
18
+ console . log ( "{{ file.path }}" ) ;
19
+ } ) ;
20
+ </ script >
21
+ {% endif %}
22
+ {% else %}
23
+ {% if file.path contains 'assets/screenshot' %}
24
+ < script >
25
+ ( ".iphoneScreen" ) . removeClass ( "hidden" ) ;
26
+ </ script >
27
+ {% endif %}
28
+ {% endif %}
29
+ {% endfor %}
30
+
31
+
32
+
33
+
34
+
35
+ <!--
36
+ <div class="videoContainer">
37
+ <video autoplay="autoplay" controls="controls">
38
+ {% if video.extname == ".ogg" %}
39
+ <source src="{{ video.path }}" type="video/ogg">
40
+ {% endif %}
41
+
42
+ {% if video.extname == ".mov" %}
43
+ <source src="{{ video.path }}" type="video/mp4">
44
+ {% endif %}
45
+ </video>
46
+ </div>
47
+
48
+ -->
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 16
16
</ clipPath >
17
17
</ svg >
18
18
19
- < div class ="videoContainer hide ">
20
- < video autoplay ="autoplay " controls ="controls ">
21
- < source src ="" type ="video/ogg ">
22
- < source src ="" type ="video/mp4 ">
19
+ < div class ="videoContainer hidden ">
20
+ < video class =" screenvideo " autoplay ="autoplay " controls ="controls ">
21
+ <!--< source src="assets/videos/yourvideo.ogg " type="video/ogg">
22
+ <source src="assets/videos/yourvideo.mov " type="video/mp4">-- >
23
23
</ video >
24
24
</ div >
25
25
26
- < img class ="iphoneScreen hide " src ="{{ image.path }} " alt ="">
26
+ < img class ="iphoneScreen hidden " src ="{{ image.path }} " alt ="">
27
27
28
- {% include videoembed .html %}
28
+ {% include screencontent .html %}
29
29
30
30
</ div >
31
31
< div class ="appInfo ">
Original file line number Diff line number Diff line change @@ -454,6 +454,6 @@ footer {
454
454
display : flex ;
455
455
}
456
456
457
- .hide {
457
+ .hidden {
458
458
visibility : hidden ;
459
459
}
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments