blob: 01da5dc22d0d8795a20cc6fd290d6786e8106d36 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
|
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.1.0/jquery.min.js"></script>
{% for file in site.static_files %}
{% if file.path contains 'assets/screenshot/' %}
<script>
$(function() {
$(".iphoneScreen").attr('src', '{{ site.github.baseurl }}{{ file.path }}');
$(".iphoneScreen").removeClass("hidden");
console.log("{{ file.path }}");
});
</script>
{% elsif file.path contains 'assets/videos/' %}
{% unless file.path contains 'assets/videos/Place-video-files-here.txt' %}
<script>
$(function() {
$(".iphoneScreen").addClass("hidden");
console.log("remove screenshot");
});
</script>
{% endunless %}
{% if file.extname == ".mov" or file.extname == ".mp4" %}
<script>
$(function() {
$(".videoContainer").removeClass("hidden");
$(".screenvideo").append('<source src="{{ site.github.baseurl }}{{ file.path }}" type="video/mp4">');
console.log("{{ file.path }}");
});
</script>
{% elsif file.extname == ".ogg" %}
<script>
$(function() {
$(".videoContainer").removeClass("hidden");
$(".screenvideo").append('<source src="{{ site.github.baseurl }}{{ file.path }}" type="video/ogg">');
console.log("{{ file.path }}");
});
</script>
{% elsif file.extname == ".webm" %}
<script>
$(function() {
$(".videoContainer").removeClass("hidden");
$(".screenvideo").append('<source src="{{ site.github.baseurl }}{{ file.path }}" type="video/webm">');
console.log("{{ file.path }}");
});
</script>
{% endif %}
{% endif %}
{% endfor %}
|