Skip to content
This repository has been archived by the owner on Apr 22, 2023. It is now read-only.

Commit

Permalink
Add link to best format at the top of the list
Browse files Browse the repository at this point in the history
  • Loading branch information
Rudloff committed Nov 18, 2014
1 parent 0757efc commit 187d382
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions api.php
Expand Up @@ -51,6 +51,10 @@
<p>(You might have to do a <i>Right click > Save as</i>)</p>
<ul id="format" class="format">
<?php
echo '<li class="best" itemprop="encoding" itemscope itemtype="http://schema.org/VideoObject">';
echo '<a itemprop="contentUrl" href="', $video->url ,'">';
echo '<b>Best</b> (<span itemprop="encodingFormat">', $video->ext, '</span>)';
echo '</a></li>';
foreach ($video->formats as $format) {
echo '<li itemprop="encoding" itemscope itemtype="http://schema.org/VideoObject">';
echo '<a itemprop="contentUrl" href="', $format->url ,'">';
Expand Down
4 changes: 4 additions & 0 deletions style.css
Expand Up @@ -544,6 +544,10 @@ h1 {
text-align:left;
}

.best {
margin-bottom: 1em;
}

@media (max-width: 640px) {
.thumb {
width:90%;
Expand Down

0 comments on commit 187d382

Please sign in to comment.