Skip to content

Commit

Permalink
Resize video and remove console.log
Browse files Browse the repository at this point in the history
  • Loading branch information
HotPizzaYT authored Jul 19, 2021
1 parent c089538 commit ef9c04d
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions view.php
Original file line number Diff line number Diff line change
Expand Up @@ -41,15 +41,17 @@ function search() {
x = document.getElementById("sch").value;

// Do something with X.
console.log(x);
// Disable logging in search for the sake of old browsers.
// console.log(x);
}
function x(){
<?php
if(isset($_GET["s"])){
echo 'document.getElementsByTagName("video")[0].currentTime = "' . $_GET["s"] . '";';

} else {
echo "console.log('No time.');";
// Comment that out for the sake of old browsers.
echo "// console.log('No time.');";
}
?>

Expand Down Expand Up @@ -196,7 +198,7 @@ function loadTime(){



$htmlcontent = "<h1>" . htmlspecialchars($vt) . "</h1><div style='text-align: center;'><video style='width: 50%; text-align: center;' src='" . $src . "' controls='' uk-video=''>Whoops! Your browser doesn't support video files.</video></div><br /><br /><br /><div style='float: right; text-align: right;'>Likes: " . $likes . ", Dislikes: " . $dislikes . "<br />" . $likeBar . "<br />"
$htmlcontent = "<h1>" . htmlspecialchars($vt) . "</h1><div style='text-align: center;'><video style='width: 50%; height: 50%; text-align: center;' src='" . $src . "' controls='' uk-video=''>Whoops! Your browser doesn't support video files.</video></div><br /><br /><br /><div style='float: right; text-align: right;'>Likes: " . $likes . ", Dislikes: " . $dislikes . "<br />" . $likeBar . "<br />"

. $views . " views<br /><button onclick='" . $lfun . "'>Like</button> - <button onclick='" . $dlfun . "'>Dislike</button></div><b>Location:</b> " . $loc . "<br /><b>Description:</b> <br />" . $vd;
echo $htmlcontent;
Expand Down

0 comments on commit ef9c04d

Please sign in to comment.