Skip to content

Commit

Permalink
Fixed Update Time
Browse files Browse the repository at this point in the history
Fixed #4
  • Loading branch information
athuler committed Oct 28, 2023
1 parent d1eee95 commit 3b4339e
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions index.php
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@

if($time_difference_minutes >= 1) {
// If it's been more than 1 minute, cache video data
$date_last_query = new DateTime;

// Process videos in batches of 50
$all_ids = array_chunk(
Expand Down Expand Up @@ -391,8 +392,8 @@ function Scrolldown() {
console.log("Rect Right: " + rect.right);
console.log("Scroll Width: " + document.body.scrollWidth);
console.log("Screen Width: " + screen.width);
var scrollHorizDist = window.scrollX + rect.left - (rect.left + rect.right)/2;
var scrollHorizDist = window.scrollX + rect.left - rect.left;
//var scrollHorizDist = window.scrollX + rect.left - (rect.left + rect.right)/2;
//var scrollHorizDist = window.scrollX + rect.left - rect.left;
var scrollHorizDist = (document.body.scrollWidth - window.innerWidth) / 2;

console.log(scrollHorizDist);
Expand Down

0 comments on commit 3b4339e

Please sign in to comment.