Skip to content
This repository has been archived by the owner on Jul 31, 2018. It is now read-only.

Commit

Permalink
Merge pull request #37 from otlet/dev
Browse files Browse the repository at this point in the history
Dev
  • Loading branch information
Paweł Otlewski authored Dec 2, 2016
2 parents 4739227 + 51105eb commit 39be593
Show file tree
Hide file tree
Showing 7 changed files with 148 additions and 89 deletions.
13 changes: 11 additions & 2 deletions app/Resources/views/default/index.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -110,10 +110,13 @@
</div>
{% if meme.url | slice(-4) == '.mp4' or meme.url | slice(-5) == '.webm' %}
<div class="embed-responsive embed-responsive-16by9">
<video controls>
<video id="promotedMemes" class="video-js embed-responsive-item" controls preload="auto"
data-setup="{}">
<source src="{{ asset('assets/mem/') ~ meme.url }}" type="video/mp4"
class="embed-responsive-item">
Masz kiepską przeglądarkę! Użyj GOOGLE CHROME!
<p class="vjs-no-js">
Masz kiepską przeglądarkę! Użyj GOOGLE CHROME!
</p>
</video>
</div>
{% else %}
Expand Down Expand Up @@ -200,10 +203,16 @@
</div>
{% endblock %}

{% block stylesheets %}
{{ parent() }}
<link href="http://vjs.zencdn.net/5.12.6/video-js.css" rel="stylesheet">
{% endblock %}

{% block javascripts %}
{{ parent() }}
<script src="{{ asset('assets/js/stream.js') }}"></script>
<script src="{{ asset('assets/js/ads.js') }}"></script>
<script src="http://vjs.zencdn.net/5.12.6/video.js"></script>
<script src="https://apis.google.com/js/platform.js"></script>
<script>
var stream = new Stream('{{ url("api.stream") }}', 'dd80eugsisvxdq2h689e6m8e3tqqzuw');
Expand Down
17 changes: 15 additions & 2 deletions app/Resources/views/meme/index.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -58,10 +58,13 @@
</div>
<div class="m-img gif">
<div class="embed-responsive embed-responsive-16by9 shadow">
<video controls>
<video id="promotedMemes" class="video-js embed-responsive-item" controls preload="auto"
data-setup="{}">
<source src="{{ asset('assets/mem/') ~ mem.url }}" type="video/mp4"
class="embed-responsive-item">
Masz kiepską przeglądarkę! Użyj GOOGLE CHROME!
<p class="vjs-no-js">
Masz kiepską przeglądarkę! Użyj GOOGLE CHROME!
</p>
</video>
</div>
</div>
Expand Down Expand Up @@ -135,4 +138,14 @@
</div>
</div>
</div>
{% endblock %}

{% block stylesheets %}
{{ parent() }}
<link href="http://vjs.zencdn.net/5.12.6/video-js.css" rel="stylesheet">
{% endblock %}

{% block javascripts %}
{{ parent() }}
<script src="http://vjs.zencdn.net/5.12.6/video.js"></script>
{% endblock %}
17 changes: 15 additions & 2 deletions app/Resources/views/meme/mem.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,13 @@
</div>
{% if mem.url | slice(-4) == '.mp4' or mem.url | slice(-5) == '.webm' %}
<div class="embed-responsive embed-responsive-16by9 shadow">
<video controls>
<video id="promotedMemes" class="video-js embed-responsive-item" controls preload="auto"
data-setup="{}">
<source src="{{ asset('assets/mem/') ~ mem.url }}" type="video/mp4"
class="embed-responsive-item">
Masz kiepską przeglądarkę! Użyj GOOGLE CHROME!
<p class="vjs-no-js">
Masz kiepską przeglądarkę! Użyj GOOGLE CHROME!
</p>
</video>
</div>
{% else %}
Expand Down Expand Up @@ -60,4 +63,14 @@
</div>
</div>
</div>
{% endblock %}

{% block stylesheets %}
{{ parent() }}
<link href="http://vjs.zencdn.net/5.12.6/video-js.css" rel="stylesheet">
{% endblock %}

{% block javascripts %}
{{ parent() }}
<script src="http://vjs.zencdn.net/5.12.6/video.js"></script>
{% endblock %}
17 changes: 15 additions & 2 deletions app/Resources/views/meme/wait.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -51,10 +51,13 @@
</div>
<div class="m-img gif">
<div class="embed-responsive embed-responsive-16by9 shadow">
<video controls>
<video id="promotedMemes" class="video-js embed-responsive-item" controls preload="auto"
data-setup="{}">
<source src="{{ asset('assets/mem/') ~ mem.url }}" type="video/mp4"
class="embed-responsive-item">
Masz kiepską przeglądarkę! Użyj GOOGLE CHROME!
<p class="vjs-no-js">
Masz kiepską przeglądarkę! Użyj GOOGLE CHROME!
</p>
</video>
</div>
</div>
Expand Down Expand Up @@ -114,4 +117,14 @@
</div>
</div>
</div>
{% endblock %}

{% block stylesheets %}
{{ parent() }}
<link href="http://vjs.zencdn.net/5.12.6/video-js.css" rel="stylesheet">
{% endblock %}

{% block javascripts %}
{{ parent() }}
<script src="http://vjs.zencdn.net/5.12.6/video.js"></script>
{% endblock %}
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
},
"require": {
"php": ">=5.5.9",
"symfony/symfony": "3.1.*",
"symfony/symfony": "3.2.*",
"doctrine/orm": "^2.5",
"doctrine/doctrine-bundle": "^1.6",
"doctrine/doctrine-cache-bundle": "^1.2",
Expand Down
Loading

0 comments on commit 39be593

Please sign in to comment.