Compare commits

...

2 Commits

2 changed files with 6 additions and 5 deletions

View File

@ -1,3 +1,7 @@
<?php
header("Cache-Control: no-cache, no-store, must-revalidate");
?>
<!DOCTYPE html>
<?php
@ -13,9 +17,6 @@ function get_color_from_ip($ip) {
return $css;
}
//header("refresh: 28");
header("Cache-Control: no-cache, no-store, must-revalidate");
if (!is_dir("data")) {
// initialize everything
mkdir("data", 0755);

4
owe.js
View File

@ -31,8 +31,8 @@ function loadSentences(alertIfNew = false, increaseUnread = true) {
// color
var spans = document.querySelector(".sentences").getElementsByTagName("span");
// we expect this to be from the user who's turn it is now (3 users)
var histurnspan = spans[spans.length - 3];
// we expect this to be from the user who's turn it is now
var histurnspan = spans[spans.length - config_data.users.length];
//console.log(histurnspan.getAttribute("style"));
document.getElementById("wordinput").setAttribute("style", histurnspan.getAttribute("style"));