grey_filter fixed
This commit is contained in:
parent
f5b27ba23a
commit
8157a6006f
@ -152,12 +152,12 @@
|
|||||||
<script>
|
<script>
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: "GET",
|
type: "GET",
|
||||||
url: "https://open.geh.ink/gray_filter",
|
url: "https://open.geh.ink/grey_filter",
|
||||||
dataType: "json",
|
dataType: "json",
|
||||||
success: function(data, textStatus){
|
success: function(data, textStatus){
|
||||||
for (let i=0;i<data["accurate_slot"].length;i++) {
|
for (let i=0;i<data["content"]["accurate_slot"].length;i++) {
|
||||||
// Accurate Slot
|
// Accurate Slot
|
||||||
if (Date.now()/1000 >= data["accurate_slot"][i][0] && Date.now()/1000 <= data["accurate_slot"][i][1]) {
|
if (Date.now()/1000 >= data["content"]["accurate_slot"][i][0] && Date.now()/1000 <= data["content"]["accurate_slot"][i][1]) {
|
||||||
$("html").css({
|
$("html").css({
|
||||||
'-webkit-filter': 'grayscale(100%)',
|
'-webkit-filter': 'grayscale(100%)',
|
||||||
'-moz-filter': 'grayscale(100%)',
|
'-moz-filter': 'grayscale(100%)',
|
||||||
@ -169,23 +169,23 @@
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
for (let i=0;i<data["day_slot"].length;i++) {
|
for (let i=0;i<data["content"]["day_slot"].length;i++) {
|
||||||
// Day Slot
|
// Day Slot
|
||||||
let begin = new Date(
|
let begin = new Date(
|
||||||
date.getFullYear().toString() + "-" +
|
date.getFullYear().toString() + "-" +
|
||||||
data["day_slot"][i][0][0].toString() + "-" +
|
data["content"]["day_slot"][i][0][0].toString() + "-" +
|
||||||
data["day_slot"][i][0][1].toString() + " " +
|
data["content"]["day_slot"][i][0][1].toString() + " " +
|
||||||
data["day_slot"][i][0][2].toString() + ":" +
|
data["content"]["day_slot"][i][0][2].toString() + ":" +
|
||||||
data["day_slot"][i][0][3].toString() + ":" +
|
data["content"]["day_slot"][i][0][3].toString() + ":" +
|
||||||
data["day_slot"][i][0][4].toString()
|
data["content"]["day_slot"][i][0][4].toString()
|
||||||
)
|
)
|
||||||
let end = new Date(
|
let end = new Date(
|
||||||
date.getFullYear().toString() + "-" +
|
date.getFullYear().toString() + "-" +
|
||||||
data["day_slot"][i][1][0].toString() + "-" +
|
data["content"]["day_slot"][i][1][0].toString() + "-" +
|
||||||
data["day_slot"][i][1][1].toString() + " " +
|
data["content"]["day_slot"][i][1][1].toString() + " " +
|
||||||
data["day_slot"][i][1][2].toString() + ":" +
|
data["content"]["day_slot"][i][1][2].toString() + ":" +
|
||||||
data["day_slot"][i][1][3].toString() + ":" +
|
data["content"]["day_slot"][i][1][3].toString() + ":" +
|
||||||
data["day_slot"][i][1][4].toString()
|
data["content"]["day_slot"][i][1][4].toString()
|
||||||
)
|
)
|
||||||
if (Date.now() >= begin.getTime() && Date.now() <= end.getTime()) {
|
if (Date.now() >= begin.getTime() && Date.now() <= end.getTime()) {
|
||||||
$("html").css({
|
$("html").css({
|
||||||
|
@ -152,12 +152,12 @@
|
|||||||
<script>
|
<script>
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: "GET",
|
type: "GET",
|
||||||
url: "https://open.geh.ink/gray_filter",
|
url: "https://open.geh.ink/grey_filter",
|
||||||
dataType: "json",
|
dataType: "json",
|
||||||
success: function(data, textStatus){
|
success: function(data, textStatus){
|
||||||
for (let i=0;i<data["accurate_slot"].length;i++) {
|
for (let i=0;i<data["content"]["accurate_slot"].length;i++) {
|
||||||
// Accurate Slot
|
// Accurate Slot
|
||||||
if (Date.now()/1000 >= data["accurate_slot"][i][0] && Date.now()/1000 <= data["accurate_slot"][i][1]) {
|
if (Date.now()/1000 >= data["content"]["accurate_slot"][i][0] && Date.now()/1000 <= data["content"]["accurate_slot"][i][1]) {
|
||||||
$("html").css({
|
$("html").css({
|
||||||
'-webkit-filter': 'grayscale(100%)',
|
'-webkit-filter': 'grayscale(100%)',
|
||||||
'-moz-filter': 'grayscale(100%)',
|
'-moz-filter': 'grayscale(100%)',
|
||||||
@ -169,23 +169,23 @@
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
for (let i=0;i<data["day_slot"].length;i++) {
|
for (let i=0;i<data["content"]["day_slot"].length;i++) {
|
||||||
// Day Slot
|
// Day Slot
|
||||||
let begin = new Date(
|
let begin = new Date(
|
||||||
date.getFullYear().toString() + "-" +
|
date.getFullYear().toString() + "-" +
|
||||||
data["day_slot"][i][0][0].toString() + "-" +
|
data["content"]["day_slot"][i][0][0].toString() + "-" +
|
||||||
data["day_slot"][i][0][1].toString() + " " +
|
data["content"]["day_slot"][i][0][1].toString() + " " +
|
||||||
data["day_slot"][i][0][2].toString() + ":" +
|
data["content"]["day_slot"][i][0][2].toString() + ":" +
|
||||||
data["day_slot"][i][0][3].toString() + ":" +
|
data["content"]["day_slot"][i][0][3].toString() + ":" +
|
||||||
data["day_slot"][i][0][4].toString()
|
data["content"]["day_slot"][i][0][4].toString()
|
||||||
)
|
)
|
||||||
let end = new Date(
|
let end = new Date(
|
||||||
date.getFullYear().toString() + "-" +
|
date.getFullYear().toString() + "-" +
|
||||||
data["day_slot"][i][1][0].toString() + "-" +
|
data["content"]["day_slot"][i][1][0].toString() + "-" +
|
||||||
data["day_slot"][i][1][1].toString() + " " +
|
data["content"]["day_slot"][i][1][1].toString() + " " +
|
||||||
data["day_slot"][i][1][2].toString() + ":" +
|
data["content"]["day_slot"][i][1][2].toString() + ":" +
|
||||||
data["day_slot"][i][1][3].toString() + ":" +
|
data["content"]["day_slot"][i][1][3].toString() + ":" +
|
||||||
data["day_slot"][i][1][4].toString()
|
data["content"]["day_slot"][i][1][4].toString()
|
||||||
)
|
)
|
||||||
if (Date.now() >= begin.getTime() && Date.now() <= end.getTime()) {
|
if (Date.now() >= begin.getTime() && Date.now() <= end.getTime()) {
|
||||||
$("html").css({
|
$("html").css({
|
||||||
|
@ -297,12 +297,12 @@
|
|||||||
<script>
|
<script>
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: "GET",
|
type: "GET",
|
||||||
url: "https://open.geh.ink/gray_filter",
|
url: "https://open.geh.ink/grey_filter",
|
||||||
dataType: "json",
|
dataType: "json",
|
||||||
success: function(data, textStatus){
|
success: function(data, textStatus){
|
||||||
for (let i=0;i<data["accurate_slot"].length;i++) {
|
for (let i=0;i<data["content"]["accurate_slot"].length;i++) {
|
||||||
// Accurate Slot
|
// Accurate Slot
|
||||||
if (Date.now()/1000 >= data["accurate_slot"][i][0] && Date.now()/1000 <= data["accurate_slot"][i][1]) {
|
if (Date.now()/1000 >= data["content"]["accurate_slot"][i][0] && Date.now()/1000 <= data["content"]["accurate_slot"][i][1]) {
|
||||||
$("html").css({
|
$("html").css({
|
||||||
'-webkit-filter': 'grayscale(100%)',
|
'-webkit-filter': 'grayscale(100%)',
|
||||||
'-moz-filter': 'grayscale(100%)',
|
'-moz-filter': 'grayscale(100%)',
|
||||||
@ -314,23 +314,23 @@
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
for (let i=0;i<data["day_slot"].length;i++) {
|
for (let i=0;i<data["content"]["day_slot"].length;i++) {
|
||||||
// Day Slot
|
// Day Slot
|
||||||
let begin = new Date(
|
let begin = new Date(
|
||||||
date.getFullYear().toString() + "-" +
|
date.getFullYear().toString() + "-" +
|
||||||
data["day_slot"][i][0][0].toString() + "-" +
|
data["content"]["day_slot"][i][0][0].toString() + "-" +
|
||||||
data["day_slot"][i][0][1].toString() + " " +
|
data["content"]["day_slot"][i][0][1].toString() + " " +
|
||||||
data["day_slot"][i][0][2].toString() + ":" +
|
data["content"]["day_slot"][i][0][2].toString() + ":" +
|
||||||
data["day_slot"][i][0][3].toString() + ":" +
|
data["content"]["day_slot"][i][0][3].toString() + ":" +
|
||||||
data["day_slot"][i][0][4].toString()
|
data["content"]["day_slot"][i][0][4].toString()
|
||||||
)
|
)
|
||||||
let end = new Date(
|
let end = new Date(
|
||||||
date.getFullYear().toString() + "-" +
|
date.getFullYear().toString() + "-" +
|
||||||
data["day_slot"][i][1][0].toString() + "-" +
|
data["content"]["day_slot"][i][1][0].toString() + "-" +
|
||||||
data["day_slot"][i][1][1].toString() + " " +
|
data["content"]["day_slot"][i][1][1].toString() + " " +
|
||||||
data["day_slot"][i][1][2].toString() + ":" +
|
data["content"]["day_slot"][i][1][2].toString() + ":" +
|
||||||
data["day_slot"][i][1][3].toString() + ":" +
|
data["content"]["day_slot"][i][1][3].toString() + ":" +
|
||||||
data["day_slot"][i][1][4].toString()
|
data["content"]["day_slot"][i][1][4].toString()
|
||||||
)
|
)
|
||||||
if (Date.now() >= begin.getTime() && Date.now() <= end.getTime()) {
|
if (Date.now() >= begin.getTime() && Date.now() <= end.getTime()) {
|
||||||
$("html").css({
|
$("html").css({
|
||||||
|
@ -297,12 +297,12 @@
|
|||||||
<script>
|
<script>
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: "GET",
|
type: "GET",
|
||||||
url: "https://open.geh.ink/gray_filter",
|
url: "https://open.geh.ink/grey_filter",
|
||||||
dataType: "json",
|
dataType: "json",
|
||||||
success: function(data, textStatus){
|
success: function(data, textStatus){
|
||||||
for (let i=0;i<data["accurate_slot"].length;i++) {
|
for (let i=0;i<data["content"]["accurate_slot"].length;i++) {
|
||||||
// Accurate Slot
|
// Accurate Slot
|
||||||
if (Date.now()/1000 >= data["accurate_slot"][i][0] && Date.now()/1000 <= data["accurate_slot"][i][1]) {
|
if (Date.now()/1000 >= data["content"]["accurate_slot"][i][0] && Date.now()/1000 <= data["content"]["accurate_slot"][i][1]) {
|
||||||
$("html").css({
|
$("html").css({
|
||||||
'-webkit-filter': 'grayscale(100%)',
|
'-webkit-filter': 'grayscale(100%)',
|
||||||
'-moz-filter': 'grayscale(100%)',
|
'-moz-filter': 'grayscale(100%)',
|
||||||
@ -314,23 +314,23 @@
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
for (let i=0;i<data["day_slot"].length;i++) {
|
for (let i=0;i<data["content"]["day_slot"].length;i++) {
|
||||||
// Day Slot
|
// Day Slot
|
||||||
let begin = new Date(
|
let begin = new Date(
|
||||||
date.getFullYear().toString() + "-" +
|
date.getFullYear().toString() + "-" +
|
||||||
data["day_slot"][i][0][0].toString() + "-" +
|
data["content"]["day_slot"][i][0][0].toString() + "-" +
|
||||||
data["day_slot"][i][0][1].toString() + " " +
|
data["content"]["day_slot"][i][0][1].toString() + " " +
|
||||||
data["day_slot"][i][0][2].toString() + ":" +
|
data["content"]["day_slot"][i][0][2].toString() + ":" +
|
||||||
data["day_slot"][i][0][3].toString() + ":" +
|
data["content"]["day_slot"][i][0][3].toString() + ":" +
|
||||||
data["day_slot"][i][0][4].toString()
|
data["content"]["day_slot"][i][0][4].toString()
|
||||||
)
|
)
|
||||||
let end = new Date(
|
let end = new Date(
|
||||||
date.getFullYear().toString() + "-" +
|
date.getFullYear().toString() + "-" +
|
||||||
data["day_slot"][i][1][0].toString() + "-" +
|
data["content"]["day_slot"][i][1][0].toString() + "-" +
|
||||||
data["day_slot"][i][1][1].toString() + " " +
|
data["content"]["day_slot"][i][1][1].toString() + " " +
|
||||||
data["day_slot"][i][1][2].toString() + ":" +
|
data["content"]["day_slot"][i][1][2].toString() + ":" +
|
||||||
data["day_slot"][i][1][3].toString() + ":" +
|
data["content"]["day_slot"][i][1][3].toString() + ":" +
|
||||||
data["day_slot"][i][1][4].toString()
|
data["content"]["day_slot"][i][1][4].toString()
|
||||||
)
|
)
|
||||||
if (Date.now() >= begin.getTime() && Date.now() <= end.getTime()) {
|
if (Date.now() >= begin.getTime() && Date.now() <= end.getTime()) {
|
||||||
$("html").css({
|
$("html").css({
|
||||||
|
@ -237,12 +237,12 @@
|
|||||||
<script>
|
<script>
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: "GET",
|
type: "GET",
|
||||||
url: "https://open.geh.ink/gray_filter",
|
url: "https://open.geh.ink/grey_filter",
|
||||||
dataType: "json",
|
dataType: "json",
|
||||||
success: function(data, textStatus){
|
success: function(data, textStatus){
|
||||||
for (let i=0;i<data["accurate_slot"].length;i++) {
|
for (let i=0;i<data["content"]["accurate_slot"].length;i++) {
|
||||||
// Accurate Slot
|
// Accurate Slot
|
||||||
if (Date.now()/1000 >= data["accurate_slot"][i][0] && Date.now()/1000 <= data["accurate_slot"][i][1]) {
|
if (Date.now()/1000 >= data["content"]["accurate_slot"][i][0] && Date.now()/1000 <= data["content"]["accurate_slot"][i][1]) {
|
||||||
$("html").css({
|
$("html").css({
|
||||||
'-webkit-filter': 'grayscale(100%)',
|
'-webkit-filter': 'grayscale(100%)',
|
||||||
'-moz-filter': 'grayscale(100%)',
|
'-moz-filter': 'grayscale(100%)',
|
||||||
@ -254,23 +254,23 @@
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
for (let i=0;i<data["day_slot"].length;i++) {
|
for (let i=0;i<data["content"]["day_slot"].length;i++) {
|
||||||
// Day Slot
|
// Day Slot
|
||||||
let begin = new Date(
|
let begin = new Date(
|
||||||
date.getFullYear().toString() + "-" +
|
date.getFullYear().toString() + "-" +
|
||||||
data["day_slot"][i][0][0].toString() + "-" +
|
data["content"]["day_slot"][i][0][0].toString() + "-" +
|
||||||
data["day_slot"][i][0][1].toString() + " " +
|
data["content"]["day_slot"][i][0][1].toString() + " " +
|
||||||
data["day_slot"][i][0][2].toString() + ":" +
|
data["content"]["day_slot"][i][0][2].toString() + ":" +
|
||||||
data["day_slot"][i][0][3].toString() + ":" +
|
data["content"]["day_slot"][i][0][3].toString() + ":" +
|
||||||
data["day_slot"][i][0][4].toString()
|
data["content"]["day_slot"][i][0][4].toString()
|
||||||
)
|
)
|
||||||
let end = new Date(
|
let end = new Date(
|
||||||
date.getFullYear().toString() + "-" +
|
date.getFullYear().toString() + "-" +
|
||||||
data["day_slot"][i][1][0].toString() + "-" +
|
data["content"]["day_slot"][i][1][0].toString() + "-" +
|
||||||
data["day_slot"][i][1][1].toString() + " " +
|
data["content"]["day_slot"][i][1][1].toString() + " " +
|
||||||
data["day_slot"][i][1][2].toString() + ":" +
|
data["content"]["day_slot"][i][1][2].toString() + ":" +
|
||||||
data["day_slot"][i][1][3].toString() + ":" +
|
data["content"]["day_slot"][i][1][3].toString() + ":" +
|
||||||
data["day_slot"][i][1][4].toString()
|
data["content"]["day_slot"][i][1][4].toString()
|
||||||
)
|
)
|
||||||
if (Date.now() >= begin.getTime() && Date.now() <= end.getTime()) {
|
if (Date.now() >= begin.getTime() && Date.now() <= end.getTime()) {
|
||||||
$("html").css({
|
$("html").css({
|
||||||
|
@ -237,12 +237,12 @@
|
|||||||
<script>
|
<script>
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: "GET",
|
type: "GET",
|
||||||
url: "https://open.geh.ink/gray_filter",
|
url: "https://open.geh.ink/grey_filter",
|
||||||
dataType: "json",
|
dataType: "json",
|
||||||
success: function(data, textStatus){
|
success: function(data, textStatus){
|
||||||
for (let i=0;i<data["accurate_slot"].length;i++) {
|
for (let i=0;i<data["content"]["accurate_slot"].length;i++) {
|
||||||
// Accurate Slot
|
// Accurate Slot
|
||||||
if (Date.now()/1000 >= data["accurate_slot"][i][0] && Date.now()/1000 <= data["accurate_slot"][i][1]) {
|
if (Date.now()/1000 >= data["content"]["accurate_slot"][i][0] && Date.now()/1000 <= data["content"]["accurate_slot"][i][1]) {
|
||||||
$("html").css({
|
$("html").css({
|
||||||
'-webkit-filter': 'grayscale(100%)',
|
'-webkit-filter': 'grayscale(100%)',
|
||||||
'-moz-filter': 'grayscale(100%)',
|
'-moz-filter': 'grayscale(100%)',
|
||||||
@ -254,23 +254,23 @@
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
for (let i=0;i<data["day_slot"].length;i++) {
|
for (let i=0;i<data["content"]["day_slot"].length;i++) {
|
||||||
// Day Slot
|
// Day Slot
|
||||||
let begin = new Date(
|
let begin = new Date(
|
||||||
date.getFullYear().toString() + "-" +
|
date.getFullYear().toString() + "-" +
|
||||||
data["day_slot"][i][0][0].toString() + "-" +
|
data["content"]["day_slot"][i][0][0].toString() + "-" +
|
||||||
data["day_slot"][i][0][1].toString() + " " +
|
data["content"]["day_slot"][i][0][1].toString() + " " +
|
||||||
data["day_slot"][i][0][2].toString() + ":" +
|
data["content"]["day_slot"][i][0][2].toString() + ":" +
|
||||||
data["day_slot"][i][0][3].toString() + ":" +
|
data["content"]["day_slot"][i][0][3].toString() + ":" +
|
||||||
data["day_slot"][i][0][4].toString()
|
data["content"]["day_slot"][i][0][4].toString()
|
||||||
)
|
)
|
||||||
let end = new Date(
|
let end = new Date(
|
||||||
date.getFullYear().toString() + "-" +
|
date.getFullYear().toString() + "-" +
|
||||||
data["day_slot"][i][1][0].toString() + "-" +
|
data["content"]["day_slot"][i][1][0].toString() + "-" +
|
||||||
data["day_slot"][i][1][1].toString() + " " +
|
data["content"]["day_slot"][i][1][1].toString() + " " +
|
||||||
data["day_slot"][i][1][2].toString() + ":" +
|
data["content"]["day_slot"][i][1][2].toString() + ":" +
|
||||||
data["day_slot"][i][1][3].toString() + ":" +
|
data["content"]["day_slot"][i][1][3].toString() + ":" +
|
||||||
data["day_slot"][i][1][4].toString()
|
data["content"]["day_slot"][i][1][4].toString()
|
||||||
)
|
)
|
||||||
if (Date.now() >= begin.getTime() && Date.now() <= end.getTime()) {
|
if (Date.now() >= begin.getTime() && Date.now() <= end.getTime()) {
|
||||||
$("html").css({
|
$("html").css({
|
||||||
|
28
en_US.html
28
en_US.html
@ -118,12 +118,12 @@
|
|||||||
<script>
|
<script>
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: "GET",
|
type: "GET",
|
||||||
url: "https://open.geh.ink/gray_filter",
|
url: "https://open.geh.ink/grey_filter",
|
||||||
dataType: "json",
|
dataType: "json",
|
||||||
success: function(data, textStatus){
|
success: function(data, textStatus){
|
||||||
for (let i=0;i<data["accurate_slot"].length;i++) {
|
for (let i=0;i<data["content"]["accurate_slot"].length;i++) {
|
||||||
// Accurate Slot
|
// Accurate Slot
|
||||||
if (Date.now()/1000 >= data["accurate_slot"][i][0] && Date.now()/1000 <= data["accurate_slot"][i][1]) {
|
if (Date.now()/1000 >= data["content"]["accurate_slot"][i][0] && Date.now()/1000 <= data["content"]["accurate_slot"][i][1]) {
|
||||||
$("html").css({
|
$("html").css({
|
||||||
'-webkit-filter': 'grayscale(100%)',
|
'-webkit-filter': 'grayscale(100%)',
|
||||||
'-moz-filter': 'grayscale(100%)',
|
'-moz-filter': 'grayscale(100%)',
|
||||||
@ -135,23 +135,23 @@
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
for (let i=0;i<data["day_slot"].length;i++) {
|
for (let i=0;i<data["content"]["day_slot"].length;i++) {
|
||||||
// Day Slot
|
// Day Slot
|
||||||
let begin = new Date(
|
let begin = new Date(
|
||||||
date.getFullYear().toString() + "-" +
|
date.getFullYear().toString() + "-" +
|
||||||
data["day_slot"][i][0][0].toString() + "-" +
|
data["content"]["day_slot"][i][0][0].toString() + "-" +
|
||||||
data["day_slot"][i][0][1].toString() + " " +
|
data["content"]["day_slot"][i][0][1].toString() + " " +
|
||||||
data["day_slot"][i][0][2].toString() + ":" +
|
data["content"]["day_slot"][i][0][2].toString() + ":" +
|
||||||
data["day_slot"][i][0][3].toString() + ":" +
|
data["content"]["day_slot"][i][0][3].toString() + ":" +
|
||||||
data["day_slot"][i][0][4].toString()
|
data["content"]["day_slot"][i][0][4].toString()
|
||||||
)
|
)
|
||||||
let end = new Date(
|
let end = new Date(
|
||||||
date.getFullYear().toString() + "-" +
|
date.getFullYear().toString() + "-" +
|
||||||
data["day_slot"][i][1][0].toString() + "-" +
|
data["content"]["day_slot"][i][1][0].toString() + "-" +
|
||||||
data["day_slot"][i][1][1].toString() + " " +
|
data["content"]["day_slot"][i][1][1].toString() + " " +
|
||||||
data["day_slot"][i][1][2].toString() + ":" +
|
data["content"]["day_slot"][i][1][2].toString() + ":" +
|
||||||
data["day_slot"][i][1][3].toString() + ":" +
|
data["content"]["day_slot"][i][1][3].toString() + ":" +
|
||||||
data["day_slot"][i][1][4].toString()
|
data["content"]["day_slot"][i][1][4].toString()
|
||||||
)
|
)
|
||||||
if (Date.now() >= begin.getTime() && Date.now() <= end.getTime()) {
|
if (Date.now() >= begin.getTime() && Date.now() <= end.getTime()) {
|
||||||
$("html").css({
|
$("html").css({
|
||||||
|
@ -172,12 +172,12 @@
|
|||||||
<script>
|
<script>
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: "GET",
|
type: "GET",
|
||||||
url: "https://open.geh.ink/gray_filter",
|
url: "https://open.geh.ink/grey_filter",
|
||||||
dataType: "json",
|
dataType: "json",
|
||||||
success: function(data, textStatus){
|
success: function(data, textStatus){
|
||||||
for (let i=0;i<data["accurate_slot"].length;i++) {
|
for (let i=0;i<data["content"]["accurate_slot"].length;i++) {
|
||||||
// Accurate Slot
|
// Accurate Slot
|
||||||
if (Date.now()/1000 >= data["accurate_slot"][i][0] && Date.now()/1000 <= data["accurate_slot"][i][1]) {
|
if (Date.now()/1000 >= data["content"]["accurate_slot"][i][0] && Date.now()/1000 <= data["content"]["accurate_slot"][i][1]) {
|
||||||
$("html").css({
|
$("html").css({
|
||||||
'-webkit-filter': 'grayscale(100%)',
|
'-webkit-filter': 'grayscale(100%)',
|
||||||
'-moz-filter': 'grayscale(100%)',
|
'-moz-filter': 'grayscale(100%)',
|
||||||
@ -189,23 +189,23 @@
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
for (let i=0;i<data["day_slot"].length;i++) {
|
for (let i=0;i<data["content"]["day_slot"].length;i++) {
|
||||||
// Day Slot
|
// Day Slot
|
||||||
let begin = new Date(
|
let begin = new Date(
|
||||||
date.getFullYear().toString() + "-" +
|
date.getFullYear().toString() + "-" +
|
||||||
data["day_slot"][i][0][0].toString() + "-" +
|
data["content"]["day_slot"][i][0][0].toString() + "-" +
|
||||||
data["day_slot"][i][0][1].toString() + " " +
|
data["content"]["day_slot"][i][0][1].toString() + " " +
|
||||||
data["day_slot"][i][0][2].toString() + ":" +
|
data["content"]["day_slot"][i][0][2].toString() + ":" +
|
||||||
data["day_slot"][i][0][3].toString() + ":" +
|
data["content"]["day_slot"][i][0][3].toString() + ":" +
|
||||||
data["day_slot"][i][0][4].toString()
|
data["content"]["day_slot"][i][0][4].toString()
|
||||||
)
|
)
|
||||||
let end = new Date(
|
let end = new Date(
|
||||||
date.getFullYear().toString() + "-" +
|
date.getFullYear().toString() + "-" +
|
||||||
data["day_slot"][i][1][0].toString() + "-" +
|
data["content"]["day_slot"][i][1][0].toString() + "-" +
|
||||||
data["day_slot"][i][1][1].toString() + " " +
|
data["content"]["day_slot"][i][1][1].toString() + " " +
|
||||||
data["day_slot"][i][1][2].toString() + ":" +
|
data["content"]["day_slot"][i][1][2].toString() + ":" +
|
||||||
data["day_slot"][i][1][3].toString() + ":" +
|
data["content"]["day_slot"][i][1][3].toString() + ":" +
|
||||||
data["day_slot"][i][1][4].toString()
|
data["content"]["day_slot"][i][1][4].toString()
|
||||||
)
|
)
|
||||||
if (Date.now() >= begin.getTime() && Date.now() <= end.getTime()) {
|
if (Date.now() >= begin.getTime() && Date.now() <= end.getTime()) {
|
||||||
$("html").css({
|
$("html").css({
|
||||||
|
@ -172,12 +172,12 @@
|
|||||||
<script>
|
<script>
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: "GET",
|
type: "GET",
|
||||||
url: "https://open.geh.ink/gray_filter",
|
url: "https://open.geh.ink/grey_filter",
|
||||||
dataType: "json",
|
dataType: "json",
|
||||||
success: function(data, textStatus){
|
success: function(data, textStatus){
|
||||||
for (let i=0;i<data["accurate_slot"].length;i++) {
|
for (let i=0;i<data["content"]["accurate_slot"].length;i++) {
|
||||||
// Accurate Slot
|
// Accurate Slot
|
||||||
if (Date.now()/1000 >= data["accurate_slot"][i][0] && Date.now()/1000 <= data["accurate_slot"][i][1]) {
|
if (Date.now()/1000 >= data["content"]["accurate_slot"][i][0] && Date.now()/1000 <= data["content"]["accurate_slot"][i][1]) {
|
||||||
$("html").css({
|
$("html").css({
|
||||||
'-webkit-filter': 'grayscale(100%)',
|
'-webkit-filter': 'grayscale(100%)',
|
||||||
'-moz-filter': 'grayscale(100%)',
|
'-moz-filter': 'grayscale(100%)',
|
||||||
@ -189,23 +189,23 @@
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
for (let i=0;i<data["day_slot"].length;i++) {
|
for (let i=0;i<data["content"]["day_slot"].length;i++) {
|
||||||
// Day Slot
|
// Day Slot
|
||||||
let begin = new Date(
|
let begin = new Date(
|
||||||
date.getFullYear().toString() + "-" +
|
date.getFullYear().toString() + "-" +
|
||||||
data["day_slot"][i][0][0].toString() + "-" +
|
data["content"]["day_slot"][i][0][0].toString() + "-" +
|
||||||
data["day_slot"][i][0][1].toString() + " " +
|
data["content"]["day_slot"][i][0][1].toString() + " " +
|
||||||
data["day_slot"][i][0][2].toString() + ":" +
|
data["content"]["day_slot"][i][0][2].toString() + ":" +
|
||||||
data["day_slot"][i][0][3].toString() + ":" +
|
data["content"]["day_slot"][i][0][3].toString() + ":" +
|
||||||
data["day_slot"][i][0][4].toString()
|
data["content"]["day_slot"][i][0][4].toString()
|
||||||
)
|
)
|
||||||
let end = new Date(
|
let end = new Date(
|
||||||
date.getFullYear().toString() + "-" +
|
date.getFullYear().toString() + "-" +
|
||||||
data["day_slot"][i][1][0].toString() + "-" +
|
data["content"]["day_slot"][i][1][0].toString() + "-" +
|
||||||
data["day_slot"][i][1][1].toString() + " " +
|
data["content"]["day_slot"][i][1][1].toString() + " " +
|
||||||
data["day_slot"][i][1][2].toString() + ":" +
|
data["content"]["day_slot"][i][1][2].toString() + ":" +
|
||||||
data["day_slot"][i][1][3].toString() + ":" +
|
data["content"]["day_slot"][i][1][3].toString() + ":" +
|
||||||
data["day_slot"][i][1][4].toString()
|
data["content"]["day_slot"][i][1][4].toString()
|
||||||
)
|
)
|
||||||
if (Date.now() >= begin.getTime() && Date.now() <= end.getTime()) {
|
if (Date.now() >= begin.getTime() && Date.now() <= end.getTime()) {
|
||||||
$("html").css({
|
$("html").css({
|
||||||
|
@ -182,12 +182,12 @@
|
|||||||
<script>
|
<script>
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: "GET",
|
type: "GET",
|
||||||
url: "https://open.geh.ink/gray_filter",
|
url: "https://open.geh.ink/grey_filter",
|
||||||
dataType: "json",
|
dataType: "json",
|
||||||
success: function(data, textStatus){
|
success: function(data, textStatus){
|
||||||
for (let i=0;i<data["accurate_slot"].length;i++) {
|
for (let i=0;i<data["content"]["accurate_slot"].length;i++) {
|
||||||
// Accurate Slot
|
// Accurate Slot
|
||||||
if (Date.now()/1000 >= data["accurate_slot"][i][0] && Date.now()/1000 <= data["accurate_slot"][i][1]) {
|
if (Date.now()/1000 >= data["content"]["accurate_slot"][i][0] && Date.now()/1000 <= data["content"]["accurate_slot"][i][1]) {
|
||||||
$("html").css({
|
$("html").css({
|
||||||
'-webkit-filter': 'grayscale(100%)',
|
'-webkit-filter': 'grayscale(100%)',
|
||||||
'-moz-filter': 'grayscale(100%)',
|
'-moz-filter': 'grayscale(100%)',
|
||||||
@ -199,23 +199,23 @@
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
for (let i=0;i<data["day_slot"].length;i++) {
|
for (let i=0;i<data["content"]["day_slot"].length;i++) {
|
||||||
// Day Slot
|
// Day Slot
|
||||||
let begin = new Date(
|
let begin = new Date(
|
||||||
date.getFullYear().toString() + "-" +
|
date.getFullYear().toString() + "-" +
|
||||||
data["day_slot"][i][0][0].toString() + "-" +
|
data["content"]["day_slot"][i][0][0].toString() + "-" +
|
||||||
data["day_slot"][i][0][1].toString() + " " +
|
data["content"]["day_slot"][i][0][1].toString() + " " +
|
||||||
data["day_slot"][i][0][2].toString() + ":" +
|
data["content"]["day_slot"][i][0][2].toString() + ":" +
|
||||||
data["day_slot"][i][0][3].toString() + ":" +
|
data["content"]["day_slot"][i][0][3].toString() + ":" +
|
||||||
data["day_slot"][i][0][4].toString()
|
data["content"]["day_slot"][i][0][4].toString()
|
||||||
)
|
)
|
||||||
let end = new Date(
|
let end = new Date(
|
||||||
date.getFullYear().toString() + "-" +
|
date.getFullYear().toString() + "-" +
|
||||||
data["day_slot"][i][1][0].toString() + "-" +
|
data["content"]["day_slot"][i][1][0].toString() + "-" +
|
||||||
data["day_slot"][i][1][1].toString() + " " +
|
data["content"]["day_slot"][i][1][1].toString() + " " +
|
||||||
data["day_slot"][i][1][2].toString() + ":" +
|
data["content"]["day_slot"][i][1][2].toString() + ":" +
|
||||||
data["day_slot"][i][1][3].toString() + ":" +
|
data["content"]["day_slot"][i][1][3].toString() + ":" +
|
||||||
data["day_slot"][i][1][4].toString()
|
data["content"]["day_slot"][i][1][4].toString()
|
||||||
)
|
)
|
||||||
if (Date.now() >= begin.getTime() && Date.now() <= end.getTime()) {
|
if (Date.now() >= begin.getTime() && Date.now() <= end.getTime()) {
|
||||||
$("html").css({
|
$("html").css({
|
||||||
|
@ -182,12 +182,12 @@
|
|||||||
<script>
|
<script>
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: "GET",
|
type: "GET",
|
||||||
url: "https://open.geh.ink/gray_filter",
|
url: "https://open.geh.ink/grey_filter",
|
||||||
dataType: "json",
|
dataType: "json",
|
||||||
success: function(data, textStatus){
|
success: function(data, textStatus){
|
||||||
for (let i=0;i<data["accurate_slot"].length;i++) {
|
for (let i=0;i<data["content"]["accurate_slot"].length;i++) {
|
||||||
// Accurate Slot
|
// Accurate Slot
|
||||||
if (Date.now()/1000 >= data["accurate_slot"][i][0] && Date.now()/1000 <= data["accurate_slot"][i][1]) {
|
if (Date.now()/1000 >= data["content"]["accurate_slot"][i][0] && Date.now()/1000 <= data["content"]["accurate_slot"][i][1]) {
|
||||||
$("html").css({
|
$("html").css({
|
||||||
'-webkit-filter': 'grayscale(100%)',
|
'-webkit-filter': 'grayscale(100%)',
|
||||||
'-moz-filter': 'grayscale(100%)',
|
'-moz-filter': 'grayscale(100%)',
|
||||||
@ -199,23 +199,23 @@
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
for (let i=0;i<data["day_slot"].length;i++) {
|
for (let i=0;i<data["content"]["day_slot"].length;i++) {
|
||||||
// Day Slot
|
// Day Slot
|
||||||
let begin = new Date(
|
let begin = new Date(
|
||||||
date.getFullYear().toString() + "-" +
|
date.getFullYear().toString() + "-" +
|
||||||
data["day_slot"][i][0][0].toString() + "-" +
|
data["content"]["day_slot"][i][0][0].toString() + "-" +
|
||||||
data["day_slot"][i][0][1].toString() + " " +
|
data["content"]["day_slot"][i][0][1].toString() + " " +
|
||||||
data["day_slot"][i][0][2].toString() + ":" +
|
data["content"]["day_slot"][i][0][2].toString() + ":" +
|
||||||
data["day_slot"][i][0][3].toString() + ":" +
|
data["content"]["day_slot"][i][0][3].toString() + ":" +
|
||||||
data["day_slot"][i][0][4].toString()
|
data["content"]["day_slot"][i][0][4].toString()
|
||||||
)
|
)
|
||||||
let end = new Date(
|
let end = new Date(
|
||||||
date.getFullYear().toString() + "-" +
|
date.getFullYear().toString() + "-" +
|
||||||
data["day_slot"][i][1][0].toString() + "-" +
|
data["content"]["day_slot"][i][1][0].toString() + "-" +
|
||||||
data["day_slot"][i][1][1].toString() + " " +
|
data["content"]["day_slot"][i][1][1].toString() + " " +
|
||||||
data["day_slot"][i][1][2].toString() + ":" +
|
data["content"]["day_slot"][i][1][2].toString() + ":" +
|
||||||
data["day_slot"][i][1][3].toString() + ":" +
|
data["content"]["day_slot"][i][1][3].toString() + ":" +
|
||||||
data["day_slot"][i][1][4].toString()
|
data["content"]["day_slot"][i][1][4].toString()
|
||||||
)
|
)
|
||||||
if (Date.now() >= begin.getTime() && Date.now() <= end.getTime()) {
|
if (Date.now() >= begin.getTime() && Date.now() <= end.getTime()) {
|
||||||
$("html").css({
|
$("html").css({
|
||||||
|
@ -182,12 +182,12 @@
|
|||||||
<script>
|
<script>
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: "GET",
|
type: "GET",
|
||||||
url: "https://open.geh.ink/gray_filter",
|
url: "https://open.geh.ink/grey_filter",
|
||||||
dataType: "json",
|
dataType: "json",
|
||||||
success: function(data, textStatus){
|
success: function(data, textStatus){
|
||||||
for (let i=0;i<data["accurate_slot"].length;i++) {
|
for (let i=0;i<data["content"]["accurate_slot"].length;i++) {
|
||||||
// Accurate Slot
|
// Accurate Slot
|
||||||
if (Date.now()/1000 >= data["accurate_slot"][i][0] && Date.now()/1000 <= data["accurate_slot"][i][1]) {
|
if (Date.now()/1000 >= data["content"]["accurate_slot"][i][0] && Date.now()/1000 <= data["content"]["accurate_slot"][i][1]) {
|
||||||
$("html").css({
|
$("html").css({
|
||||||
'-webkit-filter': 'grayscale(100%)',
|
'-webkit-filter': 'grayscale(100%)',
|
||||||
'-moz-filter': 'grayscale(100%)',
|
'-moz-filter': 'grayscale(100%)',
|
||||||
@ -199,23 +199,23 @@
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
for (let i=0;i<data["day_slot"].length;i++) {
|
for (let i=0;i<data["content"]["day_slot"].length;i++) {
|
||||||
// Day Slot
|
// Day Slot
|
||||||
let begin = new Date(
|
let begin = new Date(
|
||||||
date.getFullYear().toString() + "-" +
|
date.getFullYear().toString() + "-" +
|
||||||
data["day_slot"][i][0][0].toString() + "-" +
|
data["content"]["day_slot"][i][0][0].toString() + "-" +
|
||||||
data["day_slot"][i][0][1].toString() + " " +
|
data["content"]["day_slot"][i][0][1].toString() + " " +
|
||||||
data["day_slot"][i][0][2].toString() + ":" +
|
data["content"]["day_slot"][i][0][2].toString() + ":" +
|
||||||
data["day_slot"][i][0][3].toString() + ":" +
|
data["content"]["day_slot"][i][0][3].toString() + ":" +
|
||||||
data["day_slot"][i][0][4].toString()
|
data["content"]["day_slot"][i][0][4].toString()
|
||||||
)
|
)
|
||||||
let end = new Date(
|
let end = new Date(
|
||||||
date.getFullYear().toString() + "-" +
|
date.getFullYear().toString() + "-" +
|
||||||
data["day_slot"][i][1][0].toString() + "-" +
|
data["content"]["day_slot"][i][1][0].toString() + "-" +
|
||||||
data["day_slot"][i][1][1].toString() + " " +
|
data["content"]["day_slot"][i][1][1].toString() + " " +
|
||||||
data["day_slot"][i][1][2].toString() + ":" +
|
data["content"]["day_slot"][i][1][2].toString() + ":" +
|
||||||
data["day_slot"][i][1][3].toString() + ":" +
|
data["content"]["day_slot"][i][1][3].toString() + ":" +
|
||||||
data["day_slot"][i][1][4].toString()
|
data["content"]["day_slot"][i][1][4].toString()
|
||||||
)
|
)
|
||||||
if (Date.now() >= begin.getTime() && Date.now() <= end.getTime()) {
|
if (Date.now() >= begin.getTime() && Date.now() <= end.getTime()) {
|
||||||
$("html").css({
|
$("html").css({
|
||||||
|
@ -182,12 +182,12 @@
|
|||||||
<script>
|
<script>
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: "GET",
|
type: "GET",
|
||||||
url: "https://open.geh.ink/gray_filter",
|
url: "https://open.geh.ink/grey_filter",
|
||||||
dataType: "json",
|
dataType: "json",
|
||||||
success: function(data, textStatus){
|
success: function(data, textStatus){
|
||||||
for (let i=0;i<data["accurate_slot"].length;i++) {
|
for (let i=0;i<data["content"]["accurate_slot"].length;i++) {
|
||||||
// Accurate Slot
|
// Accurate Slot
|
||||||
if (Date.now()/1000 >= data["accurate_slot"][i][0] && Date.now()/1000 <= data["accurate_slot"][i][1]) {
|
if (Date.now()/1000 >= data["content"]["accurate_slot"][i][0] && Date.now()/1000 <= data["content"]["accurate_slot"][i][1]) {
|
||||||
$("html").css({
|
$("html").css({
|
||||||
'-webkit-filter': 'grayscale(100%)',
|
'-webkit-filter': 'grayscale(100%)',
|
||||||
'-moz-filter': 'grayscale(100%)',
|
'-moz-filter': 'grayscale(100%)',
|
||||||
@ -199,23 +199,23 @@
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
for (let i=0;i<data["day_slot"].length;i++) {
|
for (let i=0;i<data["content"]["day_slot"].length;i++) {
|
||||||
// Day Slot
|
// Day Slot
|
||||||
let begin = new Date(
|
let begin = new Date(
|
||||||
date.getFullYear().toString() + "-" +
|
date.getFullYear().toString() + "-" +
|
||||||
data["day_slot"][i][0][0].toString() + "-" +
|
data["content"]["day_slot"][i][0][0].toString() + "-" +
|
||||||
data["day_slot"][i][0][1].toString() + " " +
|
data["content"]["day_slot"][i][0][1].toString() + " " +
|
||||||
data["day_slot"][i][0][2].toString() + ":" +
|
data["content"]["day_slot"][i][0][2].toString() + ":" +
|
||||||
data["day_slot"][i][0][3].toString() + ":" +
|
data["content"]["day_slot"][i][0][3].toString() + ":" +
|
||||||
data["day_slot"][i][0][4].toString()
|
data["content"]["day_slot"][i][0][4].toString()
|
||||||
)
|
)
|
||||||
let end = new Date(
|
let end = new Date(
|
||||||
date.getFullYear().toString() + "-" +
|
date.getFullYear().toString() + "-" +
|
||||||
data["day_slot"][i][1][0].toString() + "-" +
|
data["content"]["day_slot"][i][1][0].toString() + "-" +
|
||||||
data["day_slot"][i][1][1].toString() + " " +
|
data["content"]["day_slot"][i][1][1].toString() + " " +
|
||||||
data["day_slot"][i][1][2].toString() + ":" +
|
data["content"]["day_slot"][i][1][2].toString() + ":" +
|
||||||
data["day_slot"][i][1][3].toString() + ":" +
|
data["content"]["day_slot"][i][1][3].toString() + ":" +
|
||||||
data["day_slot"][i][1][4].toString()
|
data["content"]["day_slot"][i][1][4].toString()
|
||||||
)
|
)
|
||||||
if (Date.now() >= begin.getTime() && Date.now() <= end.getTime()) {
|
if (Date.now() >= begin.getTime() && Date.now() <= end.getTime()) {
|
||||||
$("html").css({
|
$("html").css({
|
||||||
|
@ -119,12 +119,12 @@
|
|||||||
<script>
|
<script>
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: "GET",
|
type: "GET",
|
||||||
url: "https://open.geh.ink/gray_filter",
|
url: "https://open.geh.ink/grey_filter",
|
||||||
dataType: "json",
|
dataType: "json",
|
||||||
success: function(data, textStatus){
|
success: function(data, textStatus){
|
||||||
for (let i=0;i<data["accurate_slot"].length;i++) {
|
for (let i=0;i<data["content"]["accurate_slot"].length;i++) {
|
||||||
// Accurate Slot
|
// Accurate Slot
|
||||||
if (Date.now()/1000 >= data["accurate_slot"][i][0] && Date.now()/1000 <= data["accurate_slot"][i][1]) {
|
if (Date.now()/1000 >= data["content"]["accurate_slot"][i][0] && Date.now()/1000 <= data["content"]["accurate_slot"][i][1]) {
|
||||||
$("html").css({
|
$("html").css({
|
||||||
'-webkit-filter': 'grayscale(100%)',
|
'-webkit-filter': 'grayscale(100%)',
|
||||||
'-moz-filter': 'grayscale(100%)',
|
'-moz-filter': 'grayscale(100%)',
|
||||||
@ -136,23 +136,23 @@
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
for (let i=0;i<data["day_slot"].length;i++) {
|
for (let i=0;i<data["content"]["day_slot"].length;i++) {
|
||||||
// Day Slot
|
// Day Slot
|
||||||
let begin = new Date(
|
let begin = new Date(
|
||||||
date.getFullYear().toString() + "-" +
|
date.getFullYear().toString() + "-" +
|
||||||
data["day_slot"][i][0][0].toString() + "-" +
|
data["content"]["day_slot"][i][0][0].toString() + "-" +
|
||||||
data["day_slot"][i][0][1].toString() + " " +
|
data["content"]["day_slot"][i][0][1].toString() + " " +
|
||||||
data["day_slot"][i][0][2].toString() + ":" +
|
data["content"]["day_slot"][i][0][2].toString() + ":" +
|
||||||
data["day_slot"][i][0][3].toString() + ":" +
|
data["content"]["day_slot"][i][0][3].toString() + ":" +
|
||||||
data["day_slot"][i][0][4].toString()
|
data["content"]["day_slot"][i][0][4].toString()
|
||||||
)
|
)
|
||||||
let end = new Date(
|
let end = new Date(
|
||||||
date.getFullYear().toString() + "-" +
|
date.getFullYear().toString() + "-" +
|
||||||
data["day_slot"][i][1][0].toString() + "-" +
|
data["content"]["day_slot"][i][1][0].toString() + "-" +
|
||||||
data["day_slot"][i][1][1].toString() + " " +
|
data["content"]["day_slot"][i][1][1].toString() + " " +
|
||||||
data["day_slot"][i][1][2].toString() + ":" +
|
data["content"]["day_slot"][i][1][2].toString() + ":" +
|
||||||
data["day_slot"][i][1][3].toString() + ":" +
|
data["content"]["day_slot"][i][1][3].toString() + ":" +
|
||||||
data["day_slot"][i][1][4].toString()
|
data["content"]["day_slot"][i][1][4].toString()
|
||||||
)
|
)
|
||||||
if (Date.now() >= begin.getTime() && Date.now() <= end.getTime()) {
|
if (Date.now() >= begin.getTime() && Date.now() <= end.getTime()) {
|
||||||
$("html").css({
|
$("html").css({
|
||||||
|
@ -119,12 +119,12 @@
|
|||||||
<script>
|
<script>
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: "GET",
|
type: "GET",
|
||||||
url: "https://open.geh.ink/gray_filter",
|
url: "https://open.geh.ink/grey_filter",
|
||||||
dataType: "json",
|
dataType: "json",
|
||||||
success: function(data, textStatus){
|
success: function(data, textStatus){
|
||||||
for (let i=0;i<data["accurate_slot"].length;i++) {
|
for (let i=0;i<data["content"]["accurate_slot"].length;i++) {
|
||||||
// Accurate Slot
|
// Accurate Slot
|
||||||
if (Date.now()/1000 >= data["accurate_slot"][i][0] && Date.now()/1000 <= data["accurate_slot"][i][1]) {
|
if (Date.now()/1000 >= data["content"]["accurate_slot"][i][0] && Date.now()/1000 <= data["content"]["accurate_slot"][i][1]) {
|
||||||
$("html").css({
|
$("html").css({
|
||||||
'-webkit-filter': 'grayscale(100%)',
|
'-webkit-filter': 'grayscale(100%)',
|
||||||
'-moz-filter': 'grayscale(100%)',
|
'-moz-filter': 'grayscale(100%)',
|
||||||
@ -136,23 +136,23 @@
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
for (let i=0;i<data["day_slot"].length;i++) {
|
for (let i=0;i<data["content"]["day_slot"].length;i++) {
|
||||||
// Day Slot
|
// Day Slot
|
||||||
let begin = new Date(
|
let begin = new Date(
|
||||||
date.getFullYear().toString() + "-" +
|
date.getFullYear().toString() + "-" +
|
||||||
data["day_slot"][i][0][0].toString() + "-" +
|
data["content"]["day_slot"][i][0][0].toString() + "-" +
|
||||||
data["day_slot"][i][0][1].toString() + " " +
|
data["content"]["day_slot"][i][0][1].toString() + " " +
|
||||||
data["day_slot"][i][0][2].toString() + ":" +
|
data["content"]["day_slot"][i][0][2].toString() + ":" +
|
||||||
data["day_slot"][i][0][3].toString() + ":" +
|
data["content"]["day_slot"][i][0][3].toString() + ":" +
|
||||||
data["day_slot"][i][0][4].toString()
|
data["content"]["day_slot"][i][0][4].toString()
|
||||||
)
|
)
|
||||||
let end = new Date(
|
let end = new Date(
|
||||||
date.getFullYear().toString() + "-" +
|
date.getFullYear().toString() + "-" +
|
||||||
data["day_slot"][i][1][0].toString() + "-" +
|
data["content"]["day_slot"][i][1][0].toString() + "-" +
|
||||||
data["day_slot"][i][1][1].toString() + " " +
|
data["content"]["day_slot"][i][1][1].toString() + " " +
|
||||||
data["day_slot"][i][1][2].toString() + ":" +
|
data["content"]["day_slot"][i][1][2].toString() + ":" +
|
||||||
data["day_slot"][i][1][3].toString() + ":" +
|
data["content"]["day_slot"][i][1][3].toString() + ":" +
|
||||||
data["day_slot"][i][1][4].toString()
|
data["content"]["day_slot"][i][1][4].toString()
|
||||||
)
|
)
|
||||||
if (Date.now() >= begin.getTime() && Date.now() <= end.getTime()) {
|
if (Date.now() >= begin.getTime() && Date.now() <= end.getTime()) {
|
||||||
$("html").css({
|
$("html").css({
|
||||||
|
@ -177,12 +177,12 @@
|
|||||||
<script>
|
<script>
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: "GET",
|
type: "GET",
|
||||||
url: "https://open.geh.ink/gray_filter",
|
url: "https://open.geh.ink/grey_filter",
|
||||||
dataType: "json",
|
dataType: "json",
|
||||||
success: function(data, textStatus){
|
success: function(data, textStatus){
|
||||||
for (let i=0;i<data["accurate_slot"].length;i++) {
|
for (let i=0;i<data["content"]["accurate_slot"].length;i++) {
|
||||||
// Accurate Slot
|
// Accurate Slot
|
||||||
if (Date.now()/1000 >= data["accurate_slot"][i][0] && Date.now()/1000 <= data["accurate_slot"][i][1]) {
|
if (Date.now()/1000 >= data["content"]["accurate_slot"][i][0] && Date.now()/1000 <= data["content"]["accurate_slot"][i][1]) {
|
||||||
$("html").css({
|
$("html").css({
|
||||||
'-webkit-filter': 'grayscale(100%)',
|
'-webkit-filter': 'grayscale(100%)',
|
||||||
'-moz-filter': 'grayscale(100%)',
|
'-moz-filter': 'grayscale(100%)',
|
||||||
@ -194,23 +194,23 @@
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
for (let i=0;i<data["day_slot"].length;i++) {
|
for (let i=0;i<data["content"]["day_slot"].length;i++) {
|
||||||
// Day Slot
|
// Day Slot
|
||||||
let begin = new Date(
|
let begin = new Date(
|
||||||
date.getFullYear().toString() + "-" +
|
date.getFullYear().toString() + "-" +
|
||||||
data["day_slot"][i][0][0].toString() + "-" +
|
data["content"]["day_slot"][i][0][0].toString() + "-" +
|
||||||
data["day_slot"][i][0][1].toString() + " " +
|
data["content"]["day_slot"][i][0][1].toString() + " " +
|
||||||
data["day_slot"][i][0][2].toString() + ":" +
|
data["content"]["day_slot"][i][0][2].toString() + ":" +
|
||||||
data["day_slot"][i][0][3].toString() + ":" +
|
data["content"]["day_slot"][i][0][3].toString() + ":" +
|
||||||
data["day_slot"][i][0][4].toString()
|
data["content"]["day_slot"][i][0][4].toString()
|
||||||
)
|
)
|
||||||
let end = new Date(
|
let end = new Date(
|
||||||
date.getFullYear().toString() + "-" +
|
date.getFullYear().toString() + "-" +
|
||||||
data["day_slot"][i][1][0].toString() + "-" +
|
data["content"]["day_slot"][i][1][0].toString() + "-" +
|
||||||
data["day_slot"][i][1][1].toString() + " " +
|
data["content"]["day_slot"][i][1][1].toString() + " " +
|
||||||
data["day_slot"][i][1][2].toString() + ":" +
|
data["content"]["day_slot"][i][1][2].toString() + ":" +
|
||||||
data["day_slot"][i][1][3].toString() + ":" +
|
data["content"]["day_slot"][i][1][3].toString() + ":" +
|
||||||
data["day_slot"][i][1][4].toString()
|
data["content"]["day_slot"][i][1][4].toString()
|
||||||
)
|
)
|
||||||
if (Date.now() >= begin.getTime() && Date.now() <= end.getTime()) {
|
if (Date.now() >= begin.getTime() && Date.now() <= end.getTime()) {
|
||||||
$("html").css({
|
$("html").css({
|
||||||
|
@ -177,12 +177,12 @@
|
|||||||
<script>
|
<script>
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: "GET",
|
type: "GET",
|
||||||
url: "https://open.geh.ink/gray_filter",
|
url: "https://open.geh.ink/grey_filter",
|
||||||
dataType: "json",
|
dataType: "json",
|
||||||
success: function(data, textStatus){
|
success: function(data, textStatus){
|
||||||
for (let i=0;i<data["accurate_slot"].length;i++) {
|
for (let i=0;i<data["content"]["accurate_slot"].length;i++) {
|
||||||
// Accurate Slot
|
// Accurate Slot
|
||||||
if (Date.now()/1000 >= data["accurate_slot"][i][0] && Date.now()/1000 <= data["accurate_slot"][i][1]) {
|
if (Date.now()/1000 >= data["content"]["accurate_slot"][i][0] && Date.now()/1000 <= data["content"]["accurate_slot"][i][1]) {
|
||||||
$("html").css({
|
$("html").css({
|
||||||
'-webkit-filter': 'grayscale(100%)',
|
'-webkit-filter': 'grayscale(100%)',
|
||||||
'-moz-filter': 'grayscale(100%)',
|
'-moz-filter': 'grayscale(100%)',
|
||||||
@ -194,23 +194,23 @@
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
for (let i=0;i<data["day_slot"].length;i++) {
|
for (let i=0;i<data["content"]["day_slot"].length;i++) {
|
||||||
// Day Slot
|
// Day Slot
|
||||||
let begin = new Date(
|
let begin = new Date(
|
||||||
date.getFullYear().toString() + "-" +
|
date.getFullYear().toString() + "-" +
|
||||||
data["day_slot"][i][0][0].toString() + "-" +
|
data["content"]["day_slot"][i][0][0].toString() + "-" +
|
||||||
data["day_slot"][i][0][1].toString() + " " +
|
data["content"]["day_slot"][i][0][1].toString() + " " +
|
||||||
data["day_slot"][i][0][2].toString() + ":" +
|
data["content"]["day_slot"][i][0][2].toString() + ":" +
|
||||||
data["day_slot"][i][0][3].toString() + ":" +
|
data["content"]["day_slot"][i][0][3].toString() + ":" +
|
||||||
data["day_slot"][i][0][4].toString()
|
data["content"]["day_slot"][i][0][4].toString()
|
||||||
)
|
)
|
||||||
let end = new Date(
|
let end = new Date(
|
||||||
date.getFullYear().toString() + "-" +
|
date.getFullYear().toString() + "-" +
|
||||||
data["day_slot"][i][1][0].toString() + "-" +
|
data["content"]["day_slot"][i][1][0].toString() + "-" +
|
||||||
data["day_slot"][i][1][1].toString() + " " +
|
data["content"]["day_slot"][i][1][1].toString() + " " +
|
||||||
data["day_slot"][i][1][2].toString() + ":" +
|
data["content"]["day_slot"][i][1][2].toString() + ":" +
|
||||||
data["day_slot"][i][1][3].toString() + ":" +
|
data["content"]["day_slot"][i][1][3].toString() + ":" +
|
||||||
data["day_slot"][i][1][4].toString()
|
data["content"]["day_slot"][i][1][4].toString()
|
||||||
)
|
)
|
||||||
if (Date.now() >= begin.getTime() && Date.now() <= end.getTime()) {
|
if (Date.now() >= begin.getTime() && Date.now() <= end.getTime()) {
|
||||||
$("html").css({
|
$("html").css({
|
||||||
|
28
zh_CN.html
28
zh_CN.html
@ -118,12 +118,12 @@
|
|||||||
<script>
|
<script>
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: "GET",
|
type: "GET",
|
||||||
url: "https://open.geh.ink/gray_filter",
|
url: "https://open.geh.ink/grey_filter",
|
||||||
dataType: "json",
|
dataType: "json",
|
||||||
success: function(data, textStatus){
|
success: function(data, textStatus){
|
||||||
for (let i=0;i<data["accurate_slot"].length;i++) {
|
for (let i=0;i<data["content"]["accurate_slot"].length;i++) {
|
||||||
// Accurate Slot
|
// Accurate Slot
|
||||||
if (Date.now()/1000 >= data["accurate_slot"][i][0] && Date.now()/1000 <= data["accurate_slot"][i][1]) {
|
if (Date.now()/1000 >= data["content"]["accurate_slot"][i][0] && Date.now()/1000 <= data["content"]["accurate_slot"][i][1]) {
|
||||||
$("html").css({
|
$("html").css({
|
||||||
'-webkit-filter': 'grayscale(100%)',
|
'-webkit-filter': 'grayscale(100%)',
|
||||||
'-moz-filter': 'grayscale(100%)',
|
'-moz-filter': 'grayscale(100%)',
|
||||||
@ -135,23 +135,23 @@
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
for (let i=0;i<data["day_slot"].length;i++) {
|
for (let i=0;i<data["content"]["day_slot"].length;i++) {
|
||||||
// Day Slot
|
// Day Slot
|
||||||
let begin = new Date(
|
let begin = new Date(
|
||||||
date.getFullYear().toString() + "-" +
|
date.getFullYear().toString() + "-" +
|
||||||
data["day_slot"][i][0][0].toString() + "-" +
|
data["content"]["day_slot"][i][0][0].toString() + "-" +
|
||||||
data["day_slot"][i][0][1].toString() + " " +
|
data["content"]["day_slot"][i][0][1].toString() + " " +
|
||||||
data["day_slot"][i][0][2].toString() + ":" +
|
data["content"]["day_slot"][i][0][2].toString() + ":" +
|
||||||
data["day_slot"][i][0][3].toString() + ":" +
|
data["content"]["day_slot"][i][0][3].toString() + ":" +
|
||||||
data["day_slot"][i][0][4].toString()
|
data["content"]["day_slot"][i][0][4].toString()
|
||||||
)
|
)
|
||||||
let end = new Date(
|
let end = new Date(
|
||||||
date.getFullYear().toString() + "-" +
|
date.getFullYear().toString() + "-" +
|
||||||
data["day_slot"][i][1][0].toString() + "-" +
|
data["content"]["day_slot"][i][1][0].toString() + "-" +
|
||||||
data["day_slot"][i][1][1].toString() + " " +
|
data["content"]["day_slot"][i][1][1].toString() + " " +
|
||||||
data["day_slot"][i][1][2].toString() + ":" +
|
data["content"]["day_slot"][i][1][2].toString() + ":" +
|
||||||
data["day_slot"][i][1][3].toString() + ":" +
|
data["content"]["day_slot"][i][1][3].toString() + ":" +
|
||||||
data["day_slot"][i][1][4].toString()
|
data["content"]["day_slot"][i][1][4].toString()
|
||||||
)
|
)
|
||||||
if (Date.now() >= begin.getTime() && Date.now() <= end.getTime()) {
|
if (Date.now() >= begin.getTime() && Date.now() <= end.getTime()) {
|
||||||
$("html").css({
|
$("html").css({
|
||||||
|
Loading…
Reference in New Issue
Block a user