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 1616 </ clipPath >
1717 </ svg >
1818
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">-- >
2323 </ video >
2424 </ div >
2525
26- < img class ="iphoneScreen hide " src ="{{ image.path }} " alt ="">
26+ < img class ="iphoneScreen hidden " src ="{{ image.path }} " alt ="">
2727
28- {% include videoembed .html %}
28+ {% include screencontent .html %}
2929
3030 </ div >
3131 < div class ="appInfo ">
Original file line number Diff line number Diff line change @@ -454,6 +454,6 @@ footer {
454454 display : flex ;
455455}
456456
457- .hide {
457+ .hidden {
458458 visibility : hidden ;
459459}
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments