Link instead of button
This commit is contained in:
parent
245d46c164
commit
49793ff54e
2 changed files with 7 additions and 5 deletions
2
api.php
2
api.php
|
@ -68,7 +68,7 @@ if (isset($_GET["url"])) {
|
||||||
}
|
}
|
||||||
if (!isset($video->formats)) {
|
if (!isset($video->formats)) {
|
||||||
?>
|
?>
|
||||||
<input class="downloadBtn" type="submit" value="Download" /><br/>
|
<a class="downloadBtn" href="<?php echo $video->url; ?>">Download</a><br/>
|
||||||
<?php
|
<?php
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
|
|
|
@ -177,7 +177,9 @@ margin-top:8px;
|
||||||
-webkit-transition: all 0.1s ease-in;
|
-webkit-transition: all 0.1s ease-in;
|
||||||
-moz-transition: all 0.1s ease-in;
|
-moz-transition: all 0.1s ease-in;
|
||||||
-o-transition: all 0.1s ease-in;
|
-o-transition: all 0.1s ease-in;
|
||||||
}
|
text-decoration:none;
|
||||||
|
display:inline-block;
|
||||||
|
}
|
||||||
|
|
||||||
.downloadBtn:focus,
|
.downloadBtn:focus,
|
||||||
.downloadBtn:hover
|
.downloadBtn:hover
|
||||||
|
|
Loading…
Reference in a new issue