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
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
|
|
10
style.css
10
style.css
|
@ -174,10 +174,12 @@ margin-top:8px;
|
||||||
font-size:24px;
|
font-size:24px;
|
||||||
font-weight:800;
|
font-weight:800;
|
||||||
cursor:pointer;
|
cursor:pointer;
|
||||||
-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