From 40d19b9fa004749458369682c4503f818b0437c5 Mon Sep 17 00:00:00 2001 From: Neythen Date: Wed, 17 Nov 2021 18:30:13 +0000 Subject: [PATCH] new frontend added --- csv/crypto_settings.json | 2 +- csv/current_weather.json | 2 +- csv/daily_weather.json | 2 +- csv/forex_settings.json | 2 +- csv/last_updates.json | 1 - csv/live_games.json | 2 +- csv/past_games.json | 2 +- csv/stocks_settings.json | 2 +- csv/upcoming_games.json | 2 +- display_images/Current Weather.ppm | Bin 95054 -> 95054 bytes static/app.js | 779 +++++++++++++++++++----- static/style.css | 139 ++++- templates/index.html | 921 +++++++++++++++++++++++------ 13 files changed, 1472 insertions(+), 384 deletions(-) diff --git a/csv/crypto_settings.json b/csv/crypto_settings.json index 606e798..af0855e 100644 --- a/csv/crypto_settings.json +++ b/csv/crypto_settings.json @@ -1 +1 @@ -{"feature": "Stocks", "speed": "medium", "animation": "down", "percent": false, "point": false, "logos": true, "chart": false, "title": true, "symbols": {"NEO,USD": {"current": 43.45, "24hr_change": -8.868602959790408}, "BTC,USD": {"current": 60427, "24hr_change": -5.50343462209234}, "ETH,BTC": {"current": 0.07072443, "24hr_change": -7.189558281316787}, "ADA,GBP": {"current": 1.41, "24hr_change": -6.194047327868864}}} \ No newline at end of file +{"feature": "Stocks", "speed": "medium", "animation": "down", "percent": false, "point": false, "logos": true, "chart": false, "title": true, "symbols": {"NEO,USD": {"current": 43.15, "24hr_change": -1.600187916156379}, "BTC,USD": {"current": 60805, "24hr_change": -0.013075042984485738}, "ETH,BTC": {"current": 0.07031509, "24hr_change": -1.3369356155844327}, "ADA,GBP": {"current": 1.4, "24hr_change": -2.1414474393242457}}} \ No newline at end of file diff --git a/csv/current_weather.json b/csv/current_weather.json index 85c4090..35c87ef 100644 --- a/csv/current_weather.json +++ b/csv/current_weather.json @@ -1 +1 @@ -{"feature": "Current Weather", "speed": "medium", "animation": "down", "temp": "celsius", "wind_speed": "miles/sec", "colour": "white", "city_colour": "yellow", "title": true, "locations": {"Beijing": {"main_weather": "Clear", "description": "clear sky", "temp": 0.94, "min_temp": 0.94, "max_temp": 13.85, "feels_like": 0.94, "humidity": 72, "clouds": 0, "wind_speed": 0.6, "wind_direction": 307, "visibility": 10000, "uv": 0, "rain_chance": 0}, "London": {"main_weather": "Clouds", "description": "few clouds", "temp": 9.54, "min_temp": 7.43, "max_temp": 11.11, "feels_like": 8.23, "humidity": 88, "clouds": 20, "wind_speed": 2.57, "wind_direction": 230, "visibility": 10000, "uv": 0, "rain_chance": 0}, "Tokyo": {"main_weather": "Clouds", "description": "broken clouds", "temp": 12.24, "min_temp": 12.24, "max_temp": 15.91, "feels_like": 11.09, "humidity": 60, "clouds": 75, "wind_speed": 0.89, "wind_direction": 33, "visibility": 10000, "uv": 0, "rain_chance": 0.02}, "Moscow": {"main_weather": "Clear", "description": "clear sky", "temp": -2.25, "min_temp": -2.57, "max_temp": 0.29, "feels_like": -7.63, "humidity": 80, "clouds": 0, "wind_speed": 4.84, "wind_direction": 273, "visibility": 10000, "uv": 0, "rain_chance": 0}}, "current_weather": true} \ No newline at end of file +{"feature": "Current Weather", "speed": "medium", "animation": "down", "temp": "celsius", "wind_speed": "miles/sec", "colour": "white", "city_colour": "yellow", "title": true, "locations": {"Tokyo": {"main_weather": "Clouds", "description": "broken clouds", "temp": 10.83, "min_temp": 10.83, "max_temp": 16.51, "feels_like": 9.82, "humidity": 71, "clouds": 75, "wind_speed": 2.06, "wind_direction": 310, "visibility": 10000, "uv": 0, "rain_chance": 0.05}, "London": {"main_weather": "Clouds", "description": "overcast clouds", "temp": 7.5, "min_temp": 7.44, "max_temp": 11.01, "feels_like": 5.84, "humidity": 85, "clouds": 86, "wind_speed": 2.53, "wind_direction": 269, "visibility": 10000, "uv": 0, "rain_chance": 0}, "Moscow": {"main_weather": "Clouds", "description": "overcast clouds", "temp": 0.41, "min_temp": -2.12, "max_temp": 0.41, "feels_like": -2.13, "humidity": 83, "clouds": 100, "wind_speed": 2.13, "wind_direction": 230, "visibility": 10000, "uv": 0, "rain_chance": 0}, "Beijing": {"main_weather": "Clear", "description": "clear sky", "temp": -0.06, "min_temp": -0.06, "max_temp": 13.01, "feels_like": -0.06, "humidity": 49, "clouds": 0, "wind_speed": 0.31, "wind_direction": 4, "visibility": 10000, "uv": 0, "rain_chance": 0}}, "current_weather": true} \ No newline at end of file diff --git a/csv/daily_weather.json b/csv/daily_weather.json index b899940..38557f5 100644 --- a/csv/daily_weather.json +++ b/csv/daily_weather.json @@ -1 +1 @@ -{"feature": "Current Weather", "speed": "medium", "animation": "continuous", "temp": "celsius", "wind_speed": "miles/sec", "colour": "white", "city_colour": "yellow", "title": true, "locations": {"Beijing": [{"main_weather": "Clouds", "description": "scattered clouds", "min_temp": 0.94, "max_temp": 13.85}, {"main_weather": "Clouds", "description": "scattered clouds", "min_temp": 6.16, "max_temp": 13.29}, {"main_weather": "Clear", "description": "clear sky", "min_temp": 5.69, "max_temp": 9.87}, {"main_weather": "Clouds", "description": "broken clouds", "min_temp": 5.62, "max_temp": 9.94}, {"main_weather": "Clouds", "description": "broken clouds", "min_temp": 2.8, "max_temp": 9.15}, {"main_weather": "Clear", "description": "clear sky", "min_temp": -0.28, "max_temp": 3.8}, {"main_weather": "Clear", "description": "clear sky", "min_temp": -1.2, "max_temp": 3.28}, {"main_weather": "Clear", "description": "clear sky", "min_temp": -0.49, "max_temp": 5.87}], "London": [{"main_weather": "Clear", "description": "clear sky", "min_temp": 7.43, "max_temp": 11.11}, {"main_weather": "Clouds", "description": "overcast clouds", "min_temp": 7.51, "max_temp": 11}, {"main_weather": "Clouds", "description": "broken clouds", "min_temp": 7.05, "max_temp": 12.71}, {"main_weather": "Clouds", "description": "scattered clouds", "min_temp": 8.97, "max_temp": 12.83}, {"main_weather": "Clouds", "description": "few clouds", "min_temp": 8.1, "max_temp": 12.31}, {"main_weather": "Rain", "description": "light rain", "min_temp": 6.12, "max_temp": 10.84}, {"main_weather": "Rain", "description": "light rain", "min_temp": 4.61, "max_temp": 9.35}, {"main_weather": "Clouds", "description": "scattered clouds", "min_temp": 5.3, "max_temp": 8.62}], "Tokyo": [{"main_weather": "Clouds", "description": "overcast clouds", "min_temp": 12.24, "max_temp": 15.91}, {"main_weather": "Rain", "description": "light rain", "min_temp": 13.48, "max_temp": 14.39}, {"main_weather": "Clear", "description": "clear sky", "min_temp": 12.63, "max_temp": 17.46}, {"main_weather": "Clouds", "description": "scattered clouds", "min_temp": 12.47, "max_temp": 16.3}, {"main_weather": "Rain", "description": "light rain", "min_temp": 13.08, "max_temp": 14.47}, {"main_weather": "Rain", "description": "moderate rain", "min_temp": 11.16, "max_temp": 15.37}, {"main_weather": "Rain", "description": "moderate rain", "min_temp": 12.42, "max_temp": 14.94}, {"main_weather": "Clear", "description": "clear sky", "min_temp": 10.5, "max_temp": 14.7}], "Moscow": [{"main_weather": "Clouds", "description": "few clouds", "min_temp": -2.57, "max_temp": 0.29}, {"main_weather": "Clouds", "description": "overcast clouds", "min_temp": -1.92, "max_temp": 0.29}, {"main_weather": "Snow", "description": "light snow", "min_temp": -1.86, "max_temp": 0.44}, {"main_weather": "Snow", "description": "light snow", "min_temp": -1.68, "max_temp": 0.94}, {"main_weather": "Snow", "description": "rain and snow", "min_temp": -0.34, "max_temp": 3.57}, {"main_weather": "Snow", "description": "light snow", "min_temp": -0.52, "max_temp": 1.01}, {"main_weather": "Snow", "description": "light snow", "min_temp": -5.53, "max_temp": 0.3}, {"main_weather": "Snow", "description": "light snow", "min_temp": -5.31, "max_temp": -2.03}]}, "current_weather": true} \ No newline at end of file +{"feature": "Current Weather", "speed": "medium", "animation": "continuous", "temp": "celsius", "wind_speed": "miles/sec", "colour": "white", "city_colour": "yellow", "title": true, "locations": {"Tokyo": [{"main_weather": "Clouds", "description": "overcast clouds", "min_temp": 10.83, "max_temp": 16.51}, {"main_weather": "Clouds", "description": "overcast clouds", "min_temp": 12.8, "max_temp": 17.57}, {"main_weather": "Clouds", "description": "scattered clouds", "min_temp": 13.22, "max_temp": 15.53}, {"main_weather": "Rain", "description": "light rain", "min_temp": 13.76, "max_temp": 15.19}, {"main_weather": "Rain", "description": "moderate rain", "min_temp": 13.58, "max_temp": 15.32}, {"main_weather": "Clouds", "description": "broken clouds", "min_temp": 12.47, "max_temp": 16.75}, {"main_weather": "Clear", "description": "clear sky", "min_temp": 10.07, "max_temp": 14.43}, {"main_weather": "Clear", "description": "clear sky", "min_temp": 9.46, "max_temp": 14.2}], "London": [{"main_weather": "Clouds", "description": "overcast clouds", "min_temp": 7.44, "max_temp": 11.01}, {"main_weather": "Clouds", "description": "broken clouds", "min_temp": 6.86, "max_temp": 12.12}, {"main_weather": "Clouds", "description": "overcast clouds", "min_temp": 8.91, "max_temp": 13.56}, {"main_weather": "Clear", "description": "clear sky", "min_temp": 8.83, "max_temp": 12.04}, {"main_weather": "Clouds", "description": "scattered clouds", "min_temp": 4.98, "max_temp": 10}, {"main_weather": "Rain", "description": "light rain", "min_temp": 5.58, "max_temp": 8.88}, {"main_weather": "Rain", "description": "light rain", "min_temp": 5.59, "max_temp": 8.54}, {"main_weather": "Clouds", "description": "broken clouds", "min_temp": 4.17, "max_temp": 7.12}], "Moscow": [{"main_weather": "Clouds", "description": "overcast clouds", "min_temp": -2.12, "max_temp": 0.41}, {"main_weather": "Snow", "description": "light snow", "min_temp": -1.86, "max_temp": 0.22}, {"main_weather": "Snow", "description": "light snow", "min_temp": -1.12, "max_temp": 1.31}, {"main_weather": "Snow", "description": "rain and snow", "min_temp": 0.91, "max_temp": 4.36}, {"main_weather": "Snow", "description": "light snow", "min_temp": 0.48, "max_temp": 2.38}, {"main_weather": "Clouds", "description": "overcast clouds", "min_temp": -3.31, "max_temp": -0.3}, {"main_weather": "Snow", "description": "light snow", "min_temp": -5.11, "max_temp": -1.24}, {"main_weather": "Snow", "description": "snow", "min_temp": -5.1, "max_temp": 0.92}], "Beijing": [{"main_weather": "Clouds", "description": "few clouds", "min_temp": -0.06, "max_temp": 13.01}, {"main_weather": "Clouds", "description": "few clouds", "min_temp": 5.04, "max_temp": 9.55}, {"main_weather": "Clouds", "description": "overcast clouds", "min_temp": 6, "max_temp": 10.32}, {"main_weather": "Clouds", "description": "broken clouds", "min_temp": 2.93, "max_temp": 8.23}, {"main_weather": "Clear", "description": "clear sky", "min_temp": 0.5, "max_temp": 3.43}, {"main_weather": "Clear", "description": "clear sky", "min_temp": 0.02, "max_temp": 5.54}, {"main_weather": "Clouds", "description": "few clouds", "min_temp": -0.38, "max_temp": 5.35}, {"main_weather": "Clear", "description": "clear sky", "min_temp": 0.59, "max_temp": 8.15}]}, "current_weather": true} \ No newline at end of file diff --git a/csv/forex_settings.json b/csv/forex_settings.json index da83b48..ee02864 100644 --- a/csv/forex_settings.json +++ b/csv/forex_settings.json @@ -1 +1 @@ -{"feature": "Stocks", "speed": "medium", "animation": "down", "percent": false, "point": false, "logos": false, "chart": false, "title": true, "symbols": {"NZD,GBP": {"current": 1.9148, "24hr_change": 0.015700000000000047}, "CAD,USD": {"current": 1.2533, "24hr_change": 0.0008000000000001339}}} \ No newline at end of file +{"feature": "Stocks", "speed": "medium", "animation": "down", "percent": false, "point": false, "logos": false, "chart": false, "title": true, "symbols": {"NZD,GBP": {"current": 1.922, "24hr_change": 0.007199999999999873}, "CAD,USD": {"current": 1.2554, "24hr_change": 0.0020999999999999908}}} \ No newline at end of file diff --git a/csv/last_updates.json b/csv/last_updates.json index c704b5a..e69de29 100644 --- a/csv/last_updates.json +++ b/csv/last_updates.json @@ -1 +0,0 @@ -{"stocks": "16/11/2021 14:09:37", "crypto": "16/11/2021 14:07:15", "news": "16/11/2021 13:47:18", "weather": "16/11/2021 14:07:00", "forex": "16/11/2021 19:47:20", "sports": "16/11/2021 13:59:46"} \ No newline at end of file diff --git a/csv/live_games.json b/csv/live_games.json index 9662768..78db63a 100644 --- a/csv/live_games.json +++ b/csv/live_games.json @@ -1 +1 @@ -{"feature": "Sports (Live Games)", "speed": "medium", "animation": "down", "title": true, "leagues": {"NFL": [{"date": "2021-11-12", "time": "22:07", "progess": "Final", "status": null, "home_team": "Miami Dolphins", "home_score": "22", "away_team": "Baltimore Ravens", "away_score": "10"}, {"date": "2021-11-14", "time": "22:07", "progess": "Final", "status": null, "home_team": "Dallas Cowboys", "home_score": "43", "away_team": "Atlanta Falcons", "away_score": "3"}, {"date": "2021-11-14", "time": "22:07", "progess": "Final", "status": null, "home_team": "Tennessee Titans", "home_score": "23", "away_team": "New Orleans Saints", "away_score": "21"}, {"date": "2021-11-14", "time": "22:07", "progess": "Final", "status": null, "home_team": "Indianapolis Colts", "home_score": "23", "away_team": "Jacksonville Jaguars", "away_score": "17"}, {"date": "2021-11-14", "time": "22:07", "progess": "Final", "status": null, "home_team": "New England Patriots", "home_score": "45", "away_team": "Cleveland Browns", "away_score": "7"}, {"date": "2021-11-14", "time": "22:07", "progess": "Final", "status": null, "home_team": "New York Jets", "home_score": "17", "away_team": "Buffalo Bills", "away_score": "45"}, {"date": "2021-11-14", "time": "22:07", "progess": "Final/OT", "status": null, "home_team": "Pittsburgh Steelers", "home_score": "16", "away_team": "Detroit Lions", "away_score": "16"}, {"date": "2021-11-14", "time": "22:07", "progess": "Final", "status": null, "home_team": "Washington", "home_score": "29", "away_team": "Tampa Bay Buccaneers", "away_score": "19"}, {"date": "2021-11-14", "time": "22:07", "progess": "Final", "status": null, "home_team": "Arizona Cardinals", "home_score": "10", "away_team": "Carolina Panthers", "away_score": "34"}, {"date": "2021-11-14", "time": "22:07", "progess": "Final", "status": null, "home_team": "Los Angeles Chargers", "home_score": "20", "away_team": "Minnesota Vikings", "away_score": "27"}, {"date": "2021-11-14", "time": "22:07", "progess": "Final", "status": null, "home_team": "Denver Broncos", "home_score": "13", "away_team": "Philadelphia Eagles", "away_score": "30"}, {"date": "2021-11-14", "time": "22:07", "progess": "Final", "status": null, "home_team": "Green Bay Packers", "home_score": "17", "away_team": "Seattle Seahawks", "away_score": "0"}, {"date": "2021-11-15", "time": "22:07", "progess": "Final", "status": null, "home_team": "Las Vegas Raiders", "home_score": "14", "away_team": "Kansas City Chiefs", "away_score": "41"}, {"date": "2021-11-16", "time": "22:07", "progess": "Final", "status": null, "home_team": "San Francisco 49ers", "home_score": "31", "away_team": "Los Angeles Rams", "away_score": "10"}], "NBA": [{"date": "2021-11-12", "time": "22:07", "progess": "Final", "status": null, "home_team": "Miami Dolphins", "home_score": "22", "away_team": "Baltimore Ravens", "away_score": "10"}, {"date": "2021-11-14", "time": "22:07", "progess": "Final", "status": null, "home_team": "Dallas Cowboys", "home_score": "43", "away_team": "Atlanta Falcons", "away_score": "3"}, {"date": "2021-11-14", "time": "22:07", "progess": "Final", "status": null, "home_team": "Tennessee Titans", "home_score": "23", "away_team": "New Orleans Saints", "away_score": "21"}, {"date": "2021-11-14", "time": "22:07", "progess": "Final", "status": null, "home_team": "Indianapolis Colts", "home_score": "23", "away_team": "Jacksonville Jaguars", "away_score": "17"}, {"date": "2021-11-14", "time": "22:07", "progess": "Final", "status": null, "home_team": "New England Patriots", "home_score": "45", "away_team": "Cleveland Browns", "away_score": "7"}, {"date": "2021-11-14", "time": "22:07", "progess": "Final", "status": null, "home_team": "New York Jets", "home_score": "17", "away_team": "Buffalo Bills", "away_score": "45"}, {"date": "2021-11-14", "time": "22:07", "progess": "Final/OT", "status": null, "home_team": "Pittsburgh Steelers", "home_score": "16", "away_team": "Detroit Lions", "away_score": "16"}, {"date": "2021-11-14", "time": "22:07", "progess": "Final", "status": null, "home_team": "Washington", "home_score": "29", "away_team": "Tampa Bay Buccaneers", "away_score": "19"}, {"date": "2021-11-14", "time": "22:07", "progess": "Final", "status": null, "home_team": "Arizona Cardinals", "home_score": "10", "away_team": "Carolina Panthers", "away_score": "34"}, {"date": "2021-11-14", "time": "22:07", "progess": "Final", "status": null, "home_team": "Los Angeles Chargers", "home_score": "20", "away_team": "Minnesota Vikings", "away_score": "27"}, {"date": "2021-11-14", "time": "22:07", "progess": "Final", "status": null, "home_team": "Denver Broncos", "home_score": "13", "away_team": "Philadelphia Eagles", "away_score": "30"}, {"date": "2021-11-14", "time": "22:07", "progess": "Final", "status": null, "home_team": "Green Bay Packers", "home_score": "17", "away_team": "Seattle Seahawks", "away_score": "0"}, {"date": "2021-11-15", "time": "22:07", "progess": "Final", "status": null, "home_team": "Las Vegas Raiders", "home_score": "14", "away_team": "Kansas City Chiefs", "away_score": "41"}, {"date": "2021-11-16", "time": "22:07", "progess": "Final", "status": null, "home_team": "San Francisco 49ers", "home_score": "31", "away_team": "Los Angeles Rams", "away_score": "10"}], "Premier League": [{"date": "2021-11-12", "time": "22:07", "progess": "Final", "status": null, "home_team": "Miami Dolphins", "home_score": "22", "away_team": "Baltimore Ravens", "away_score": "10"}, {"date": "2021-11-14", "time": "22:07", "progess": "Final", "status": null, "home_team": "Dallas Cowboys", "home_score": "43", "away_team": "Atlanta Falcons", "away_score": "3"}, {"date": "2021-11-14", "time": "22:07", "progess": "Final", "status": null, "home_team": "Tennessee Titans", "home_score": "23", "away_team": "New Orleans Saints", "away_score": "21"}, {"date": "2021-11-14", "time": "22:07", "progess": "Final", "status": null, "home_team": "Indianapolis Colts", "home_score": "23", "away_team": "Jacksonville Jaguars", "away_score": "17"}, {"date": "2021-11-14", "time": "22:07", "progess": "Final", "status": null, "home_team": "New England Patriots", "home_score": "45", "away_team": "Cleveland Browns", "away_score": "7"}, {"date": "2021-11-14", "time": "22:07", "progess": "Final", "status": null, "home_team": "New York Jets", "home_score": "17", "away_team": "Buffalo Bills", "away_score": "45"}, {"date": "2021-11-14", "time": "22:07", "progess": "Final/OT", "status": null, "home_team": "Pittsburgh Steelers", "home_score": "16", "away_team": "Detroit Lions", "away_score": "16"}, {"date": "2021-11-14", "time": "22:07", "progess": "Final", "status": null, "home_team": "Washington", "home_score": "29", "away_team": "Tampa Bay Buccaneers", "away_score": "19"}, {"date": "2021-11-14", "time": "22:07", "progess": "Final", "status": null, "home_team": "Arizona Cardinals", "home_score": "10", "away_team": "Carolina Panthers", "away_score": "34"}, {"date": "2021-11-14", "time": "22:07", "progess": "Final", "status": null, "home_team": "Los Angeles Chargers", "home_score": "20", "away_team": "Minnesota Vikings", "away_score": "27"}, {"date": "2021-11-14", "time": "22:07", "progess": "Final", "status": null, "home_team": "Denver Broncos", "home_score": "13", "away_team": "Philadelphia Eagles", "away_score": "30"}, {"date": "2021-11-14", "time": "22:07", "progess": "Final", "status": null, "home_team": "Green Bay Packers", "home_score": "17", "away_team": "Seattle Seahawks", "away_score": "0"}, {"date": "2021-11-15", "time": "22:07", "progess": "Final", "status": null, "home_team": "Las Vegas Raiders", "home_score": "14", "away_team": "Kansas City Chiefs", "away_score": "41"}, {"date": "2021-11-16", "time": "22:07", "progess": "Final", "status": null, "home_team": "San Francisco 49ers", "home_score": "31", "away_team": "Los Angeles Rams", "away_score": "10"}]}} \ No newline at end of file +{"feature": "Sports (Live Games)", "speed": "medium", "animation": "down", "title": true, "leagues": {"NFL": [{"date": "2021-11-19", "time": "22:07", "progess": "pre", "status": null, "home_team": "Atlanta Falcons", "home_score": "0", "away_team": "New England Patriots", "away_score": "0"}, {"date": "2021-11-21", "time": "22:07", "progess": "pre", "status": null, "home_team": "Buffalo Bills", "home_score": "0", "away_team": "Indianapolis Colts", "away_score": "0"}, {"date": "2021-11-21", "time": "22:07", "progess": "pre", "status": null, "home_team": "Chicago Bears", "home_score": "0", "away_team": "Baltimore Ravens", "away_score": "0"}, {"date": "2021-11-21", "time": "22:07", "progess": "pre", "status": null, "home_team": "Cleveland Browns", "home_score": "0", "away_team": "Detroit Lions", "away_score": "0"}, {"date": "2021-11-21", "time": "22:07", "progess": "pre", "status": null, "home_team": "Tennessee Titans", "home_score": "0", "away_team": "Houston Texans", "away_score": "0"}, {"date": "2021-11-21", "time": "22:07", "progess": "pre", "status": null, "home_team": "Minnesota Vikings", "home_score": "0", "away_team": "Green Bay Packers", "away_score": "0"}, {"date": "2021-11-21", "time": "22:07", "progess": "pre", "status": null, "home_team": "New York Jets", "home_score": "0", "away_team": "Miami Dolphins", "away_score": "0"}, {"date": "2021-11-21", "time": "22:07", "progess": "pre", "status": null, "home_team": "Philadelphia Eagles", "home_score": "0", "away_team": "New Orleans Saints", "away_score": "0"}, {"date": "2021-11-21", "time": "22:07", "progess": "pre", "status": null, "home_team": "Carolina Panthers", "home_score": "0", "away_team": "Washington", "away_score": "0"}, {"date": "2021-11-21", "time": "22:07", "progess": "pre", "status": null, "home_team": "Jacksonville Jaguars", "home_score": "0", "away_team": "San Francisco 49ers", "away_score": "0"}, {"date": "2021-11-21", "time": "22:07", "progess": "pre", "status": null, "home_team": "Las Vegas Raiders", "home_score": "0", "away_team": "Cincinnati Bengals", "away_score": "0"}, {"date": "2021-11-21", "time": "22:07", "progess": "pre", "status": null, "home_team": "Kansas City Chiefs", "home_score": "0", "away_team": "Dallas Cowboys", "away_score": "0"}, {"date": "2021-11-21", "time": "22:07", "progess": "pre", "status": null, "home_team": "Seattle Seahawks", "home_score": "0", "away_team": "Arizona Cardinals", "away_score": "0"}, {"date": "2021-11-22", "time": "22:07", "progess": "pre", "status": null, "home_team": "Los Angeles Chargers", "home_score": "0", "away_team": "Pittsburgh Steelers", "away_score": "0"}, {"date": "2021-11-23", "time": "22:07", "progess": "pre", "status": null, "home_team": "Tampa Bay Buccaneers", "home_score": "0", "away_team": "New York Giants", "away_score": "0"}], "NBA": [{"date": "2021-11-19", "time": "22:07", "progess": "pre", "status": null, "home_team": "Atlanta Falcons", "home_score": "0", "away_team": "New England Patriots", "away_score": "0"}, {"date": "2021-11-21", "time": "22:07", "progess": "pre", "status": null, "home_team": "Buffalo Bills", "home_score": "0", "away_team": "Indianapolis Colts", "away_score": "0"}, {"date": "2021-11-21", "time": "22:07", "progess": "pre", "status": null, "home_team": "Chicago Bears", "home_score": "0", "away_team": "Baltimore Ravens", "away_score": "0"}, {"date": "2021-11-21", "time": "22:07", "progess": "pre", "status": null, "home_team": "Cleveland Browns", "home_score": "0", "away_team": "Detroit Lions", "away_score": "0"}, {"date": "2021-11-21", "time": "22:07", "progess": "pre", "status": null, "home_team": "Tennessee Titans", "home_score": "0", "away_team": "Houston Texans", "away_score": "0"}, {"date": "2021-11-21", "time": "22:07", "progess": "pre", "status": null, "home_team": "Minnesota Vikings", "home_score": "0", "away_team": "Green Bay Packers", "away_score": "0"}, {"date": "2021-11-21", "time": "22:07", "progess": "pre", "status": null, "home_team": "New York Jets", "home_score": "0", "away_team": "Miami Dolphins", "away_score": "0"}, {"date": "2021-11-21", "time": "22:07", "progess": "pre", "status": null, "home_team": "Philadelphia Eagles", "home_score": "0", "away_team": "New Orleans Saints", "away_score": "0"}, {"date": "2021-11-21", "time": "22:07", "progess": "pre", "status": null, "home_team": "Carolina Panthers", "home_score": "0", "away_team": "Washington", "away_score": "0"}, {"date": "2021-11-21", "time": "22:07", "progess": "pre", "status": null, "home_team": "Jacksonville Jaguars", "home_score": "0", "away_team": "San Francisco 49ers", "away_score": "0"}, {"date": "2021-11-21", "time": "22:07", "progess": "pre", "status": null, "home_team": "Las Vegas Raiders", "home_score": "0", "away_team": "Cincinnati Bengals", "away_score": "0"}, {"date": "2021-11-21", "time": "22:07", "progess": "pre", "status": null, "home_team": "Kansas City Chiefs", "home_score": "0", "away_team": "Dallas Cowboys", "away_score": "0"}, {"date": "2021-11-21", "time": "22:07", "progess": "pre", "status": null, "home_team": "Seattle Seahawks", "home_score": "0", "away_team": "Arizona Cardinals", "away_score": "0"}, {"date": "2021-11-22", "time": "22:07", "progess": "pre", "status": null, "home_team": "Los Angeles Chargers", "home_score": "0", "away_team": "Pittsburgh Steelers", "away_score": "0"}, {"date": "2021-11-23", "time": "22:07", "progess": "pre", "status": null, "home_team": "Tampa Bay Buccaneers", "home_score": "0", "away_team": "New York Giants", "away_score": "0"}], "Premier League": [{"date": "2021-11-19", "time": "22:07", "progess": "pre", "status": null, "home_team": "Atlanta Falcons", "home_score": "0", "away_team": "New England Patriots", "away_score": "0"}, {"date": "2021-11-21", "time": "22:07", "progess": "pre", "status": null, "home_team": "Buffalo Bills", "home_score": "0", "away_team": "Indianapolis Colts", "away_score": "0"}, {"date": "2021-11-21", "time": "22:07", "progess": "pre", "status": null, "home_team": "Chicago Bears", "home_score": "0", "away_team": "Baltimore Ravens", "away_score": "0"}, {"date": "2021-11-21", "time": "22:07", "progess": "pre", "status": null, "home_team": "Cleveland Browns", "home_score": "0", "away_team": "Detroit Lions", "away_score": "0"}, {"date": "2021-11-21", "time": "22:07", "progess": "pre", "status": null, "home_team": "Tennessee Titans", "home_score": "0", "away_team": "Houston Texans", "away_score": "0"}, {"date": "2021-11-21", "time": "22:07", "progess": "pre", "status": null, "home_team": "Minnesota Vikings", "home_score": "0", "away_team": "Green Bay Packers", "away_score": "0"}, {"date": "2021-11-21", "time": "22:07", "progess": "pre", "status": null, "home_team": "New York Jets", "home_score": "0", "away_team": "Miami Dolphins", "away_score": "0"}, {"date": "2021-11-21", "time": "22:07", "progess": "pre", "status": null, "home_team": "Philadelphia Eagles", "home_score": "0", "away_team": "New Orleans Saints", "away_score": "0"}, {"date": "2021-11-21", "time": "22:07", "progess": "pre", "status": null, "home_team": "Carolina Panthers", "home_score": "0", "away_team": "Washington", "away_score": "0"}, {"date": "2021-11-21", "time": "22:07", "progess": "pre", "status": null, "home_team": "Jacksonville Jaguars", "home_score": "0", "away_team": "San Francisco 49ers", "away_score": "0"}, {"date": "2021-11-21", "time": "22:07", "progess": "pre", "status": null, "home_team": "Las Vegas Raiders", "home_score": "0", "away_team": "Cincinnati Bengals", "away_score": "0"}, {"date": "2021-11-21", "time": "22:07", "progess": "pre", "status": null, "home_team": "Kansas City Chiefs", "home_score": "0", "away_team": "Dallas Cowboys", "away_score": "0"}, {"date": "2021-11-21", "time": "22:07", "progess": "pre", "status": null, "home_team": "Seattle Seahawks", "home_score": "0", "away_team": "Arizona Cardinals", "away_score": "0"}, {"date": "2021-11-22", "time": "22:07", "progess": "pre", "status": null, "home_team": "Los Angeles Chargers", "home_score": "0", "away_team": "Pittsburgh Steelers", "away_score": "0"}, {"date": "2021-11-23", "time": "22:07", "progess": "pre", "status": null, "home_team": "Tampa Bay Buccaneers", "home_score": "0", "away_team": "New York Giants", "away_score": "0"}]}} \ No newline at end of file diff --git a/csv/past_games.json b/csv/past_games.json index bb28d43..f756b5e 100644 --- a/csv/past_games.json +++ b/csv/past_games.json @@ -1 +1 @@ -{"feature": "Sports (Past Games)", "speed": "medium", "animation": "down", "title": true, "leagues": {"NFL": [{"date": "2021-11-15", "time": "01:20:00", "round": "10", "home_team": "Las Vegas Raiders", "home_score": "14", "away_team": "Kansas City Chiefs", "away_score": "41"}, {"date": "2021-11-14", "time": "21:25:00", "round": "10", "home_team": "Green Bay Packers", "home_score": "17", "away_team": "Seattle Seahawks", "away_score": "0"}, {"date": "2021-11-14", "time": "21:25:00", "round": "10", "home_team": "Denver Broncos", "home_score": "13", "away_team": "Philadelphia Eagles", "away_score": "30"}, {"date": "2021-11-14", "time": "21:05:00", "round": "10", "home_team": "Los Angeles Chargers", "home_score": "20", "away_team": "Minnesota Vikings", "away_score": "27"}, {"date": "2021-11-14", "time": "21:05:00", "round": "10", "home_team": "Arizona Cardinals", "home_score": "10", "away_team": "Carolina Panthers", "away_score": "34"}, {"date": "2021-11-14", "time": "18:00:00", "round": "10", "home_team": "Washington", "home_score": "29", "away_team": "Tampa Bay Buccaneers", "away_score": "19"}, {"date": "2021-11-14", "time": "18:00:00", "round": "10", "home_team": "Tennessee Titans", "home_score": "23", "away_team": "New Orleans Saints", "away_score": "21"}, {"date": "2021-11-14", "time": "18:00:00", "round": "10", "home_team": "Pittsburgh Steelers", "home_score": "16", "away_team": "Detroit Lions", "away_score": "16"}, {"date": "2021-11-14", "time": "18:00:00", "round": "10", "home_team": "New York Jets", "home_score": "17", "away_team": "Buffalo Bills", "away_score": "45"}, {"date": "2021-11-14", "time": "18:00:00", "round": "10", "home_team": "New England Patriots", "home_score": "45", "away_team": "Cleveland Browns", "away_score": "7"}, {"date": "2021-11-14", "time": "18:00:00", "round": "10", "home_team": "Indianapolis Colts", "home_score": "23", "away_team": "Jacksonville Jaguars", "away_score": "17"}, {"date": "2021-11-14", "time": "18:00:00", "round": "10", "home_team": "Dallas Cowboys", "home_score": "43", "away_team": "Atlanta Falcons", "away_score": "3"}, {"date": "2021-11-12", "time": "01:20:00", "round": "10", "home_team": "Miami Dolphins", "home_score": "22", "away_team": "Baltimore Ravens", "away_score": "10"}, {"date": "2021-11-09", "time": "01:15:00", "round": "9", "home_team": "Pittsburgh Steelers", "home_score": "29", "away_team": "Chicago Bears", "away_score": "27"}, {"date": "2021-11-08", "time": "01:20:00", "round": "9", "home_team": "Los Angeles Rams", "home_score": "16", "away_team": "Tennessee Titans", "away_score": "28"}], "NBA": [{"date": "2021-11-15", "time": "01:20:00", "round": "10", "home_team": "Las Vegas Raiders", "home_score": "14", "away_team": "Kansas City Chiefs", "away_score": "41"}, {"date": "2021-11-14", "time": "21:25:00", "round": "10", "home_team": "Green Bay Packers", "home_score": "17", "away_team": "Seattle Seahawks", "away_score": "0"}, {"date": "2021-11-14", "time": "21:25:00", "round": "10", "home_team": "Denver Broncos", "home_score": "13", "away_team": "Philadelphia Eagles", "away_score": "30"}, {"date": "2021-11-14", "time": "21:05:00", "round": "10", "home_team": "Los Angeles Chargers", "home_score": "20", "away_team": "Minnesota Vikings", "away_score": "27"}, {"date": "2021-11-14", "time": "21:05:00", "round": "10", "home_team": "Arizona Cardinals", "home_score": "10", "away_team": "Carolina Panthers", "away_score": "34"}, {"date": "2021-11-14", "time": "18:00:00", "round": "10", "home_team": "Washington", "home_score": "29", "away_team": "Tampa Bay Buccaneers", "away_score": "19"}, {"date": "2021-11-14", "time": "18:00:00", "round": "10", "home_team": "Tennessee Titans", "home_score": "23", "away_team": "New Orleans Saints", "away_score": "21"}, {"date": "2021-11-14", "time": "18:00:00", "round": "10", "home_team": "Pittsburgh Steelers", "home_score": "16", "away_team": "Detroit Lions", "away_score": "16"}, {"date": "2021-11-14", "time": "18:00:00", "round": "10", "home_team": "New York Jets", "home_score": "17", "away_team": "Buffalo Bills", "away_score": "45"}, {"date": "2021-11-14", "time": "18:00:00", "round": "10", "home_team": "New England Patriots", "home_score": "45", "away_team": "Cleveland Browns", "away_score": "7"}, {"date": "2021-11-14", "time": "18:00:00", "round": "10", "home_team": "Indianapolis Colts", "home_score": "23", "away_team": "Jacksonville Jaguars", "away_score": "17"}, {"date": "2021-11-14", "time": "18:00:00", "round": "10", "home_team": "Dallas Cowboys", "home_score": "43", "away_team": "Atlanta Falcons", "away_score": "3"}, {"date": "2021-11-12", "time": "01:20:00", "round": "10", "home_team": "Miami Dolphins", "home_score": "22", "away_team": "Baltimore Ravens", "away_score": "10"}, {"date": "2021-11-09", "time": "01:15:00", "round": "9", "home_team": "Pittsburgh Steelers", "home_score": "29", "away_team": "Chicago Bears", "away_score": "27"}, {"date": "2021-11-08", "time": "01:20:00", "round": "9", "home_team": "Los Angeles Rams", "home_score": "16", "away_team": "Tennessee Titans", "away_score": "28"}], "Premier League": [{"date": "2021-11-15", "time": "01:20:00", "round": "10", "home_team": "Las Vegas Raiders", "home_score": "14", "away_team": "Kansas City Chiefs", "away_score": "41"}, {"date": "2021-11-14", "time": "21:25:00", "round": "10", "home_team": "Green Bay Packers", "home_score": "17", "away_team": "Seattle Seahawks", "away_score": "0"}, {"date": "2021-11-14", "time": "21:25:00", "round": "10", "home_team": "Denver Broncos", "home_score": "13", "away_team": "Philadelphia Eagles", "away_score": "30"}, {"date": "2021-11-14", "time": "21:05:00", "round": "10", "home_team": "Los Angeles Chargers", "home_score": "20", "away_team": "Minnesota Vikings", "away_score": "27"}, {"date": "2021-11-14", "time": "21:05:00", "round": "10", "home_team": "Arizona Cardinals", "home_score": "10", "away_team": "Carolina Panthers", "away_score": "34"}, {"date": "2021-11-14", "time": "18:00:00", "round": "10", "home_team": "Washington", "home_score": "29", "away_team": "Tampa Bay Buccaneers", "away_score": "19"}, {"date": "2021-11-14", "time": "18:00:00", "round": "10", "home_team": "Tennessee Titans", "home_score": "23", "away_team": "New Orleans Saints", "away_score": "21"}, {"date": "2021-11-14", "time": "18:00:00", "round": "10", "home_team": "Pittsburgh Steelers", "home_score": "16", "away_team": "Detroit Lions", "away_score": "16"}, {"date": "2021-11-14", "time": "18:00:00", "round": "10", "home_team": "New York Jets", "home_score": "17", "away_team": "Buffalo Bills", "away_score": "45"}, {"date": "2021-11-14", "time": "18:00:00", "round": "10", "home_team": "New England Patriots", "home_score": "45", "away_team": "Cleveland Browns", "away_score": "7"}, {"date": "2021-11-14", "time": "18:00:00", "round": "10", "home_team": "Indianapolis Colts", "home_score": "23", "away_team": "Jacksonville Jaguars", "away_score": "17"}, {"date": "2021-11-14", "time": "18:00:00", "round": "10", "home_team": "Dallas Cowboys", "home_score": "43", "away_team": "Atlanta Falcons", "away_score": "3"}, {"date": "2021-11-12", "time": "01:20:00", "round": "10", "home_team": "Miami Dolphins", "home_score": "22", "away_team": "Baltimore Ravens", "away_score": "10"}, {"date": "2021-11-09", "time": "01:15:00", "round": "9", "home_team": "Pittsburgh Steelers", "home_score": "29", "away_team": "Chicago Bears", "away_score": "27"}, {"date": "2021-11-08", "time": "01:20:00", "round": "9", "home_team": "Los Angeles Rams", "home_score": "16", "away_team": "Tennessee Titans", "away_score": "28"}]}} \ No newline at end of file +{"feature": "Sports (Past Games)", "speed": "medium", "animation": "down", "title": true, "leagues": {"NFL": [{"date": "2021-11-16", "time": "01:15:00", "round": "10", "home_team": "San Francisco 49ers", "home_score": "31", "away_team": "Los Angeles Rams", "away_score": "10"}, {"date": "2021-11-15", "time": "01:20:00", "round": "10", "home_team": "Las Vegas Raiders", "home_score": "14", "away_team": "Kansas City Chiefs", "away_score": "41"}, {"date": "2021-11-14", "time": "21:25:00", "round": "10", "home_team": "Green Bay Packers", "home_score": "17", "away_team": "Seattle Seahawks", "away_score": "0"}, {"date": "2021-11-14", "time": "21:25:00", "round": "10", "home_team": "Denver Broncos", "home_score": "13", "away_team": "Philadelphia Eagles", "away_score": "30"}, {"date": "2021-11-14", "time": "21:05:00", "round": "10", "home_team": "Los Angeles Chargers", "home_score": "20", "away_team": "Minnesota Vikings", "away_score": "27"}, {"date": "2021-11-14", "time": "21:05:00", "round": "10", "home_team": "Arizona Cardinals", "home_score": "10", "away_team": "Carolina Panthers", "away_score": "34"}, {"date": "2021-11-14", "time": "18:00:00", "round": "10", "home_team": "Washington", "home_score": "29", "away_team": "Tampa Bay Buccaneers", "away_score": "19"}, {"date": "2021-11-14", "time": "18:00:00", "round": "10", "home_team": "Tennessee Titans", "home_score": "23", "away_team": "New Orleans Saints", "away_score": "21"}, {"date": "2021-11-14", "time": "18:00:00", "round": "10", "home_team": "Pittsburgh Steelers", "home_score": "16", "away_team": "Detroit Lions", "away_score": "16"}, {"date": "2021-11-14", "time": "18:00:00", "round": "10", "home_team": "New York Jets", "home_score": "17", "away_team": "Buffalo Bills", "away_score": "45"}, {"date": "2021-11-14", "time": "18:00:00", "round": "10", "home_team": "New England Patriots", "home_score": "45", "away_team": "Cleveland Browns", "away_score": "7"}, {"date": "2021-11-14", "time": "18:00:00", "round": "10", "home_team": "Indianapolis Colts", "home_score": "23", "away_team": "Jacksonville Jaguars", "away_score": "17"}, {"date": "2021-11-14", "time": "18:00:00", "round": "10", "home_team": "Dallas Cowboys", "home_score": "43", "away_team": "Atlanta Falcons", "away_score": "3"}, {"date": "2021-11-12", "time": "01:20:00", "round": "10", "home_team": "Miami Dolphins", "home_score": "22", "away_team": "Baltimore Ravens", "away_score": "10"}, {"date": "2021-11-09", "time": "01:15:00", "round": "9", "home_team": "Pittsburgh Steelers", "home_score": "29", "away_team": "Chicago Bears", "away_score": "27"}], "NBA": [{"date": "2021-11-16", "time": "01:15:00", "round": "10", "home_team": "San Francisco 49ers", "home_score": "31", "away_team": "Los Angeles Rams", "away_score": "10"}, {"date": "2021-11-15", "time": "01:20:00", "round": "10", "home_team": "Las Vegas Raiders", "home_score": "14", "away_team": "Kansas City Chiefs", "away_score": "41"}, {"date": "2021-11-14", "time": "21:25:00", "round": "10", "home_team": "Green Bay Packers", "home_score": "17", "away_team": "Seattle Seahawks", "away_score": "0"}, {"date": "2021-11-14", "time": "21:25:00", "round": "10", "home_team": "Denver Broncos", "home_score": "13", "away_team": "Philadelphia Eagles", "away_score": "30"}, {"date": "2021-11-14", "time": "21:05:00", "round": "10", "home_team": "Los Angeles Chargers", "home_score": "20", "away_team": "Minnesota Vikings", "away_score": "27"}, {"date": "2021-11-14", "time": "21:05:00", "round": "10", "home_team": "Arizona Cardinals", "home_score": "10", "away_team": "Carolina Panthers", "away_score": "34"}, {"date": "2021-11-14", "time": "18:00:00", "round": "10", "home_team": "Washington", "home_score": "29", "away_team": "Tampa Bay Buccaneers", "away_score": "19"}, {"date": "2021-11-14", "time": "18:00:00", "round": "10", "home_team": "Tennessee Titans", "home_score": "23", "away_team": "New Orleans Saints", "away_score": "21"}, {"date": "2021-11-14", "time": "18:00:00", "round": "10", "home_team": "Pittsburgh Steelers", "home_score": "16", "away_team": "Detroit Lions", "away_score": "16"}, {"date": "2021-11-14", "time": "18:00:00", "round": "10", "home_team": "New York Jets", "home_score": "17", "away_team": "Buffalo Bills", "away_score": "45"}, {"date": "2021-11-14", "time": "18:00:00", "round": "10", "home_team": "New England Patriots", "home_score": "45", "away_team": "Cleveland Browns", "away_score": "7"}, {"date": "2021-11-14", "time": "18:00:00", "round": "10", "home_team": "Indianapolis Colts", "home_score": "23", "away_team": "Jacksonville Jaguars", "away_score": "17"}, {"date": "2021-11-14", "time": "18:00:00", "round": "10", "home_team": "Dallas Cowboys", "home_score": "43", "away_team": "Atlanta Falcons", "away_score": "3"}, {"date": "2021-11-12", "time": "01:20:00", "round": "10", "home_team": "Miami Dolphins", "home_score": "22", "away_team": "Baltimore Ravens", "away_score": "10"}, {"date": "2021-11-09", "time": "01:15:00", "round": "9", "home_team": "Pittsburgh Steelers", "home_score": "29", "away_team": "Chicago Bears", "away_score": "27"}], "Premier League": [{"date": "2021-11-16", "time": "01:15:00", "round": "10", "home_team": "San Francisco 49ers", "home_score": "31", "away_team": "Los Angeles Rams", "away_score": "10"}, {"date": "2021-11-15", "time": "01:20:00", "round": "10", "home_team": "Las Vegas Raiders", "home_score": "14", "away_team": "Kansas City Chiefs", "away_score": "41"}, {"date": "2021-11-14", "time": "21:25:00", "round": "10", "home_team": "Green Bay Packers", "home_score": "17", "away_team": "Seattle Seahawks", "away_score": "0"}, {"date": "2021-11-14", "time": "21:25:00", "round": "10", "home_team": "Denver Broncos", "home_score": "13", "away_team": "Philadelphia Eagles", "away_score": "30"}, {"date": "2021-11-14", "time": "21:05:00", "round": "10", "home_team": "Los Angeles Chargers", "home_score": "20", "away_team": "Minnesota Vikings", "away_score": "27"}, {"date": "2021-11-14", "time": "21:05:00", "round": "10", "home_team": "Arizona Cardinals", "home_score": "10", "away_team": "Carolina Panthers", "away_score": "34"}, {"date": "2021-11-14", "time": "18:00:00", "round": "10", "home_team": "Washington", "home_score": "29", "away_team": "Tampa Bay Buccaneers", "away_score": "19"}, {"date": "2021-11-14", "time": "18:00:00", "round": "10", "home_team": "Tennessee Titans", "home_score": "23", "away_team": "New Orleans Saints", "away_score": "21"}, {"date": "2021-11-14", "time": "18:00:00", "round": "10", "home_team": "Pittsburgh Steelers", "home_score": "16", "away_team": "Detroit Lions", "away_score": "16"}, {"date": "2021-11-14", "time": "18:00:00", "round": "10", "home_team": "New York Jets", "home_score": "17", "away_team": "Buffalo Bills", "away_score": "45"}, {"date": "2021-11-14", "time": "18:00:00", "round": "10", "home_team": "New England Patriots", "home_score": "45", "away_team": "Cleveland Browns", "away_score": "7"}, {"date": "2021-11-14", "time": "18:00:00", "round": "10", "home_team": "Indianapolis Colts", "home_score": "23", "away_team": "Jacksonville Jaguars", "away_score": "17"}, {"date": "2021-11-14", "time": "18:00:00", "round": "10", "home_team": "Dallas Cowboys", "home_score": "43", "away_team": "Atlanta Falcons", "away_score": "3"}, {"date": "2021-11-12", "time": "01:20:00", "round": "10", "home_team": "Miami Dolphins", "home_score": "22", "away_team": "Baltimore Ravens", "away_score": "10"}, {"date": "2021-11-09", "time": "01:15:00", "round": "9", "home_team": "Pittsburgh Steelers", "home_score": "29", "away_team": "Chicago Bears", "away_score": "27"}]}} \ No newline at end of file diff --git a/csv/stocks_settings.json b/csv/stocks_settings.json index 52d720e..a1f881e 100644 --- a/csv/stocks_settings.json +++ b/csv/stocks_settings.json @@ -1 +1 @@ -{"feature": "Stocks", "speed": "medium", "animation": "down", "percent": true, "point": true, "logos": false, "chart": false, "title": true, "symbols": {"MSFT": {"current": 340.32, "opening": 335.665}, "GOOG": {"current": 2987.62, "opening": 2983.36}}} \ No newline at end of file +{"feature": "Stocks", "speed": "medium", "animation": "down", "percent": true, "point": true, "logos": false, "chart": false, "title": true, "symbols": {"MSFT": {"current": 340.11, "opening": 339.29}, "GOOG": {"current": 2982.49, "opening": 2984.38}}} \ No newline at end of file diff --git a/csv/upcoming_games.json b/csv/upcoming_games.json index e6b0f1d..7359e6f 100644 --- a/csv/upcoming_games.json +++ b/csv/upcoming_games.json @@ -1 +1 @@ -{"feature": "Sports (Upcoming Games)", "speed": "medium", "animation": "down", "title": true, "leagues": {"NFL": [{"date": "2021-11-16", "time": "01:15:00", "round": "10", "home_team": "San Francisco 49ers", "home_score": "31", "away_team": "Los Angeles Rams", "away_score": "10"}, {"date": "2021-11-19", "time": "01:20:00", "round": "11", "home_team": "Atlanta Falcons", "home_score": null, "away_team": "New England Patriots", "away_score": null}, {"date": "2021-11-21", "time": "18:00:00", "round": "11", "home_team": "Buffalo Bills", "home_score": null, "away_team": "Indianapolis Colts", "away_score": null}, {"date": "2021-11-21", "time": "18:00:00", "round": "11", "home_team": "Carolina Panthers", "home_score": null, "away_team": "Washington", "away_score": null}, {"date": "2021-11-21", "time": "18:00:00", "round": "11", "home_team": "Chicago Bears", "home_score": null, "away_team": "Baltimore Ravens", "away_score": null}, {"date": "2021-11-21", "time": "18:00:00", "round": "11", "home_team": "Cleveland Browns", "home_score": null, "away_team": "Detroit Lions", "away_score": null}, {"date": "2021-11-21", "time": "18:00:00", "round": "11", "home_team": "Jacksonville Jaguars", "home_score": null, "away_team": "San Francisco 49ers", "away_score": null}, {"date": "2021-11-21", "time": "18:00:00", "round": "11", "home_team": "Minnesota Vikings", "home_score": null, "away_team": "Green Bay Packers", "away_score": null}, {"date": "2021-11-21", "time": "18:00:00", "round": "11", "home_team": "New York Jets", "home_score": null, "away_team": "Miami Dolphins", "away_score": null}, {"date": "2021-11-21", "time": "18:00:00", "round": "11", "home_team": "Philadelphia Eagles", "home_score": null, "away_team": "New Orleans Saints", "away_score": null}, {"date": "2021-11-21", "time": "18:00:00", "round": "11", "home_team": "Tennessee Titans", "home_score": null, "away_team": "Houston Texans", "away_score": null}, {"date": "2021-11-21", "time": "21:05:00", "round": "11", "home_team": "Las Vegas Raiders", "home_score": null, "away_team": "Cincinnati Bengals", "away_score": null}, {"date": "2021-11-21", "time": "21:25:00", "round": "11", "home_team": "Kansas City Chiefs", "home_score": null, "away_team": "Dallas Cowboys", "away_score": null}, {"date": "2021-11-21", "time": "21:25:00", "round": "11", "home_team": "Seattle Seahawks", "home_score": null, "away_team": "Arizona Cardinals", "away_score": null}, {"date": "2021-11-22", "time": "01:20:00", "round": "11", "home_team": "Los Angeles Chargers", "home_score": null, "away_team": "Pittsburgh Steelers", "away_score": null}], "NBA": [{"date": "2021-11-16", "time": "01:15:00", "round": "10", "home_team": "San Francisco 49ers", "home_score": "31", "away_team": "Los Angeles Rams", "away_score": "10"}, {"date": "2021-11-19", "time": "01:20:00", "round": "11", "home_team": "Atlanta Falcons", "home_score": null, "away_team": "New England Patriots", "away_score": null}, {"date": "2021-11-21", "time": "18:00:00", "round": "11", "home_team": "Buffalo Bills", "home_score": null, "away_team": "Indianapolis Colts", "away_score": null}, {"date": "2021-11-21", "time": "18:00:00", "round": "11", "home_team": "Carolina Panthers", "home_score": null, "away_team": "Washington", "away_score": null}, {"date": "2021-11-21", "time": "18:00:00", "round": "11", "home_team": "Chicago Bears", "home_score": null, "away_team": "Baltimore Ravens", "away_score": null}, {"date": "2021-11-21", "time": "18:00:00", "round": "11", "home_team": "Cleveland Browns", "home_score": null, "away_team": "Detroit Lions", "away_score": null}, {"date": "2021-11-21", "time": "18:00:00", "round": "11", "home_team": "Jacksonville Jaguars", "home_score": null, "away_team": "San Francisco 49ers", "away_score": null}, {"date": "2021-11-21", "time": "18:00:00", "round": "11", "home_team": "Minnesota Vikings", "home_score": null, "away_team": "Green Bay Packers", "away_score": null}, {"date": "2021-11-21", "time": "18:00:00", "round": "11", "home_team": "New York Jets", "home_score": null, "away_team": "Miami Dolphins", "away_score": null}, {"date": "2021-11-21", "time": "18:00:00", "round": "11", "home_team": "Philadelphia Eagles", "home_score": null, "away_team": "New Orleans Saints", "away_score": null}, {"date": "2021-11-21", "time": "18:00:00", "round": "11", "home_team": "Tennessee Titans", "home_score": null, "away_team": "Houston Texans", "away_score": null}, {"date": "2021-11-21", "time": "21:05:00", "round": "11", "home_team": "Las Vegas Raiders", "home_score": null, "away_team": "Cincinnati Bengals", "away_score": null}, {"date": "2021-11-21", "time": "21:25:00", "round": "11", "home_team": "Kansas City Chiefs", "home_score": null, "away_team": "Dallas Cowboys", "away_score": null}, {"date": "2021-11-21", "time": "21:25:00", "round": "11", "home_team": "Seattle Seahawks", "home_score": null, "away_team": "Arizona Cardinals", "away_score": null}, {"date": "2021-11-22", "time": "01:20:00", "round": "11", "home_team": "Los Angeles Chargers", "home_score": null, "away_team": "Pittsburgh Steelers", "away_score": null}]}} \ No newline at end of file +{"feature": "Sports (Upcoming Games)", "speed": "medium", "animation": "down", "title": true, "leagues": {"NFL": [{"date": "2021-11-19", "time": "01:20:00", "round": "11", "home_team": "Atlanta Falcons", "home_score": "0", "away_team": "New England Patriots", "away_score": "0"}, {"date": "2021-11-21", "time": "18:00:00", "round": "11", "home_team": "Buffalo Bills", "home_score": "0", "away_team": "Indianapolis Colts", "away_score": "0"}, {"date": "2021-11-21", "time": "18:00:00", "round": "11", "home_team": "Carolina Panthers", "home_score": "0", "away_team": "Washington", "away_score": "0"}, {"date": "2021-11-21", "time": "18:00:00", "round": "11", "home_team": "Chicago Bears", "home_score": "0", "away_team": "Baltimore Ravens", "away_score": "0"}, {"date": "2021-11-21", "time": "18:00:00", "round": "11", "home_team": "Cleveland Browns", "home_score": "0", "away_team": "Detroit Lions", "away_score": "0"}, {"date": "2021-11-21", "time": "18:00:00", "round": "11", "home_team": "Jacksonville Jaguars", "home_score": "0", "away_team": "San Francisco 49ers", "away_score": "0"}, {"date": "2021-11-21", "time": "18:00:00", "round": "11", "home_team": "Minnesota Vikings", "home_score": "0", "away_team": "Green Bay Packers", "away_score": "0"}, {"date": "2021-11-21", "time": "18:00:00", "round": "11", "home_team": "New York Jets", "home_score": "0", "away_team": "Miami Dolphins", "away_score": "0"}, {"date": "2021-11-21", "time": "18:00:00", "round": "11", "home_team": "Philadelphia Eagles", "home_score": "0", "away_team": "New Orleans Saints", "away_score": "0"}, {"date": "2021-11-21", "time": "18:00:00", "round": "11", "home_team": "Tennessee Titans", "home_score": "0", "away_team": "Houston Texans", "away_score": "0"}, {"date": "2021-11-21", "time": "21:05:00", "round": "11", "home_team": "Las Vegas Raiders", "home_score": "0", "away_team": "Cincinnati Bengals", "away_score": "0"}, {"date": "2021-11-21", "time": "21:25:00", "round": "11", "home_team": "Kansas City Chiefs", "home_score": "0", "away_team": "Dallas Cowboys", "away_score": "0"}, {"date": "2021-11-21", "time": "21:25:00", "round": "11", "home_team": "Seattle Seahawks", "home_score": "0", "away_team": "Arizona Cardinals", "away_score": "0"}, {"date": "2021-11-22", "time": "01:20:00", "round": "11", "home_team": "Los Angeles Chargers", "home_score": "0", "away_team": "Pittsburgh Steelers", "away_score": "0"}, {"date": "2021-11-23", "time": "01:15:00", "round": "11", "home_team": "Tampa Bay Buccaneers", "home_score": "0", "away_team": "New York Giants", "away_score": "0"}], "NBA": [{"date": "2021-11-19", "time": "01:20:00", "round": "11", "home_team": "Atlanta Falcons", "home_score": "0", "away_team": "New England Patriots", "away_score": "0"}, {"date": "2021-11-21", "time": "18:00:00", "round": "11", "home_team": "Buffalo Bills", "home_score": "0", "away_team": "Indianapolis Colts", "away_score": "0"}, {"date": "2021-11-21", "time": "18:00:00", "round": "11", "home_team": "Carolina Panthers", "home_score": "0", "away_team": "Washington", "away_score": "0"}, {"date": "2021-11-21", "time": "18:00:00", "round": "11", "home_team": "Chicago Bears", "home_score": "0", "away_team": "Baltimore Ravens", "away_score": "0"}, {"date": "2021-11-21", "time": "18:00:00", "round": "11", "home_team": "Cleveland Browns", "home_score": "0", "away_team": "Detroit Lions", "away_score": "0"}, {"date": "2021-11-21", "time": "18:00:00", "round": "11", "home_team": "Jacksonville Jaguars", "home_score": "0", "away_team": "San Francisco 49ers", "away_score": "0"}, {"date": "2021-11-21", "time": "18:00:00", "round": "11", "home_team": "Minnesota Vikings", "home_score": "0", "away_team": "Green Bay Packers", "away_score": "0"}, {"date": "2021-11-21", "time": "18:00:00", "round": "11", "home_team": "New York Jets", "home_score": "0", "away_team": "Miami Dolphins", "away_score": "0"}, {"date": "2021-11-21", "time": "18:00:00", "round": "11", "home_team": "Philadelphia Eagles", "home_score": "0", "away_team": "New Orleans Saints", "away_score": "0"}, {"date": "2021-11-21", "time": "18:00:00", "round": "11", "home_team": "Tennessee Titans", "home_score": "0", "away_team": "Houston Texans", "away_score": "0"}, {"date": "2021-11-21", "time": "21:05:00", "round": "11", "home_team": "Las Vegas Raiders", "home_score": "0", "away_team": "Cincinnati Bengals", "away_score": "0"}, {"date": "2021-11-21", "time": "21:25:00", "round": "11", "home_team": "Kansas City Chiefs", "home_score": "0", "away_team": "Dallas Cowboys", "away_score": "0"}, {"date": "2021-11-21", "time": "21:25:00", "round": "11", "home_team": "Seattle Seahawks", "home_score": "0", "away_team": "Arizona Cardinals", "away_score": "0"}, {"date": "2021-11-22", "time": "01:20:00", "round": "11", "home_team": "Los Angeles Chargers", "home_score": "0", "away_team": "Pittsburgh Steelers", "away_score": "0"}, {"date": "2021-11-23", "time": "01:15:00", "round": "11", "home_team": "Tampa Bay Buccaneers", "home_score": "0", "away_team": "New York Giants", "away_score": "0"}]}} \ No newline at end of file diff --git a/display_images/Current Weather.ppm b/display_images/Current Weather.ppm index db57f9fa2678d8104ea38fc054b7a220084ab30a..29c9201200569f4b4168df985d1170f9117b2938 100755 GIT binary patch delta 6008 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 delta 6000 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 diff --git a/static/app.js b/static/app.js index 6a1282c..93c90cc 100644 --- a/static/app.js +++ b/static/app.js @@ -1,11 +1,28 @@ var availableFeatures = document.querySelectorAll("#available-features li"); +var availableFeatures2 = document.querySelectorAll("#available-features-2 li"); + var displayFormat = document.querySelector("#display-format"); +var displayFormat2 = document.querySelector("#display-format-2"); + var featureToDisplay = document.querySelector("#feature-to-display"); +var featureToDisplay2 = document.querySelector("#feature-to-display-2"); + var displayToFeature = document.querySelector("#display-to-feature"); +var displayToFeature2 = document.querySelector("#display-to-feature-2"); + var displayToFormat = document.querySelectorAll("#display-format li"); +var displayToFormat2 = document.querySelectorAll("#display-format-2 li"); + var availableToDisplay = document.querySelector("#available-features"); +var availableToDisplay2 = document.querySelector("#available-features-2"); + var displayincreaseBtn = document.getElementById("display-increase-btn"); +var displayincreaseBtn2 = document.getElementById("display-increase-btn-2"); + var displayDecreaseBtn = document.getElementById("display-decrease-btn"); +var displayDecreaseBtn2 = document.getElementById("display-decrease-btn-2"); + +var secondRow = document.getElementById("second-row"); // features lists var stocksFeatures = document.querySelectorAll("#stocks-features li"); @@ -207,6 +224,20 @@ const addEventOnList = () => { } }); } + // for available feature 2 + for (let i = 0; i < availableFeatures2.length; i++) { + const availableFeature = availableFeatures2[i]; + availableFeature.addEventListener("click", () => { + for (let i = 0; i < availableFeatures2.length; i++) { + availableFeatures2[i].setAttribute("class", ""); + } + if (availableFeature.getAttribute("class") == "active") { + availableFeature.setAttribute("class", ""); + } else { + availableFeature.setAttribute("class", "active"); + } + }); + } // for display format for (let i = 0; i < displayToFormat.length; i++) { const display_format = displayToFormat[i]; @@ -221,6 +252,20 @@ const addEventOnList = () => { } }); } + // for display format 2 + for (let i = 0; i < displayToFormat2.length; i++) { + const display_format = displayToFormat2[i]; + display_format.addEventListener("click", () => { + for (let i = 0; i < displayToFormat2.length; i++) { + displayToFormat2[i].setAttribute("class", ""); + } + if (display_format.getAttribute("class") == "active") { + display_format.setAttribute("class", ""); + } else { + display_format.setAttribute("class", "active"); + } + }); + } }; const addEventonBtns = () => { @@ -251,6 +296,38 @@ const addEventonBtns = () => { } } }); + + featureToDisplay2.addEventListener("click", () => { + for (let i = 0; i < availableFeatures2.length; i++) { + const availableFeature = availableFeatures2[i]; + if (availableFeature.getAttribute("class") == "active") { + availableFeature.remove(); + availableFeature.setAttribute("class", ""); + displayFormat2.appendChild(availableFeature); + availableFeatures2 = document.querySelectorAll( + "#available-features-2 li" + ); + displayToFormat2 = document.querySelectorAll("#display-format-2 li"); + addEventOnList(); + } + } + }); + + displayToFeature2.addEventListener("click", () => { + for (let i = 0; i < displayToFormat2.length; i++) { + const availableFormat = displayToFormat2[i]; + if (availableFormat.getAttribute("class") == "active") { + availableFormat.remove(); + availableFormat.setAttribute("class", ""); + availableToDisplay2.appendChild(availableFormat); + availableFeatures2 = document.querySelectorAll( + "#available-features-2 li" + ); + displayToFormat2 = document.querySelectorAll("#display-format-2 li"); + addEventOnList(); + } + } + }); }; addEventOnList(); @@ -268,6 +345,64 @@ const addEventOnFeaturesList = () => { availableFeature.setAttribute("class", ""); } else { availableFeature.setAttribute("class", "active"); + let getCustomImages = JSON.parse( + localStorage.getItem("customImages") + ); + let getCustomGifs = JSON.parse(localStorage.getItem("customGifs")); + let getCustomMsg = JSON.parse(localStorage.getItem("customMsg")); + + getCustomImages.map((value) => { + let scrollSpeed1 = document.getElementById("inputScrollSpeed11"); + let scrollSpeed2 = document.getElementById("inputScrollSpeedRow11"); + let inputTransition = document.getElementById("inputTransition11"); + let inputText12 = document.getElementById("inputText12"); + let displayCheck = document.getElementById("flexCheckChecked25"); + + if (value.fileName == availableFeature.innerText) { + scrollSpeed1.value = value.scrollSpeed; + scrollSpeed2.value = value.scrollSpeed2; + inputTransition.value = value.transition; + inputText12.value = value.pauseScreen; + displayCheck.checked = value.displayCheck; + } + }); + getCustomGifs.map((value) => { + let scrollSpeed1 = document.getElementById("inputScrollSpeed12"); + let scrollSpeed2 = document.getElementById("inputScrollSpeedRow12"); + let inputTransition = document.getElementById("inputTransition12"); + let inputText12 = document.getElementById("inputText112"); + let displayCheck = document.getElementById("flexCheckChecked28"); + + if (value.fileName == availableFeature.innerText) { + scrollSpeed1.value = value.scrollSpeed; + scrollSpeed2.value = value.scrollSpeed2; + inputTransition.value = value.transition; + inputText12.value = value.pauseScreen; + displayCheck.checked = value.displayCheck; + } + }); + + getCustomMsg.map((value) => { + let scrollSpeed1 = document.getElementById("inputScrollSpeed13"); + let scrollSpeed2 = document.getElementById("inputScrollSpeedRow13"); + let inputTransition = document.getElementById("inputTransition13"); + let inputMsg = document.getElementById("inputText14"); + let inputColor = document.getElementById("inputScrollSpeed16"); + let inputSize = document.getElementById("inputScrollSpeed17"); + let inputBg = document.getElementById("inputScrollSpeed19"); + let displayCheck = document.getElementById("flexCheckChecked29"); + + if (value.messageName == availableFeature.innerText) { + scrollSpeed1.value = value.scrollSpeed1; + scrollSpeed2.value = value.scrollSpeed2; + inputTransition.value = value.transition; + inputMsg.value = value.messageInput; + inputColor.value = value.colorInput; + inputSize.value = value.sizeInput; + inputBg.value = value.backgroundInput; + displayCheck.checked = value.displayCheck; + } + }); } }); } @@ -292,6 +427,23 @@ displayincreaseBtn.addEventListener("click", () => { } }); +// display increase 2 function +displayincreaseBtn2.addEventListener("click", () => { + for (let i = 0; i < displayToFormat2.length; i++) { + var displayItem = displayToFormat2[i]; + + if (displayItem.getAttribute("class") == "active") { + var prevElement = displayItem.previousElementSibling; + var currentText = displayItem.innerText; + + displayItem.innerText = prevElement.innerText; + prevElement.innerText = currentText; + prevElement.setAttribute("class", "active"); + displayItem.setAttribute("class", ""); + } + } +}); + // display decrease function displayDecreaseBtn.addEventListener("click", () => { for (let i = 0; i < displayToFormat.length; i++) { @@ -310,12 +462,53 @@ displayDecreaseBtn.addEventListener("click", () => { } }); +// display decrease 2 function +displayDecreaseBtn2.addEventListener("click", () => { + for (let i = 0; i < displayToFormat2.length; i++) { + var displayItem = displayToFormat2[i]; + + if (displayItem.getAttribute("class") == "active") { + var nextElement = displayItem.nextElementSibling; + var currentText = displayItem.innerText; + displayItem.innerText = nextElement.innerText; + nextElement.innerText = currentText; + nextElement.setAttribute("class", "active"); + displayItem.setAttribute("class", ""); + break; + } + } +}); + // feature remove function allFeaturesRemoveBtns.map((value, index) => { value.addEventListener("click", () => { for (let i = 0; i < allFeaturesList[index].length; i++) { var item = allFeaturesList[index][i]; if (item.getAttribute("class") == "active") { + if (item.parentElement.getAttribute("id") == "images-features") { + let getImages = JSON.parse(localStorage.getItem("customImages")); + + let filter = getImages.filter( + (value) => value.fileName !== item.innerText + ); + localStorage.setItem("customImages", JSON.stringify(filter)); + } else if (item.parentElement.getAttribute("id") == "gifs-features") { + let getGifs = JSON.parse(localStorage.getItem("customGifs")); + + let filter = getGifs.filter( + (value) => value.fileName !== item.innerText + ); + localStorage.setItem("customGifs", JSON.stringify(filter)); + } else if ( + item.parentElement.getAttribute("id") == "messages-features" + ) { + let getMsgs = JSON.parse(localStorage.getItem("customMsg")); + + let filter = getMsgs.filter( + (value) => value.messageName !== item.innerText + ); + localStorage.setItem("customMsg", JSON.stringify(filter)); + } item.remove(); } } @@ -486,11 +679,6 @@ var allFeaturesFileAddBtn = [ null, ]; - - - - - // features input text var stocksText = document.getElementById("inputText3"); var cryptoText = document.getElementById("inputText4"); @@ -542,60 +730,102 @@ var allFeaturesTextAddBtn = [ allFeaturesTextAddBtn.map((value, index) => { if (value !== null) { value.addEventListener("click", () => { - var tag = document.createElement("li"); - tag.innerHTML = allFeaturesText[index].value; - allFeatures[index].appendChild(tag); - changeVarValue(); - addEventOnFeaturesList(); + if (value == messagesTextAddBtn) { + // custom message + let messageName = document.getElementById("inputText13").value; + let scrollSpeed1 = document.getElementById("inputScrollSpeed13").value; + let scrollSpeed2 = document.getElementById( + "inputScrollSpeedRow13" + ).value; + let transition = document.getElementById("inputTransition13").value; + let messageInput = document.getElementById("inputText14").value; + let colorInput = document.getElementById("inputScrollSpeed16").value; + let sizeInput = document.getElementById("inputScrollSpeed17").value; + let backgroundInput = + document.getElementById("inputScrollSpeed19").value; + let displayCheck = + document.getElementById("flexCheckChecked29").checked; + let messagesWrapper = document.getElementById("messages-features"); + + let fileFound = false; + + for (let i = 0; i < messagesWrapper.children.length; i++) { + fileFound = + messagesWrapper.children[i]?.innerText == messageName && true; + } + if (!fileFound) { + let values = { + messageName, + scrollSpeed1, + scrollSpeed2, + transition, + messageInput, + colorInput, + sizeInput, + backgroundInput, + displayCheck, + }; + + let getCustomMsg = localStorage.getItem("customMsg"); + + let newValues = getCustomMsg && JSON.parse(getCustomMsg); + getCustomMsg && newValues.push(values); + + getCustomMsg + ? localStorage.setItem("customMsg", JSON.stringify(newValues)) + : localStorage.setItem("customMsg", JSON.stringify([values])); + var tag = document.createElement("li"); + tag.innerHTML = allFeaturesText[index].value; + allFeatures[index].appendChild(tag); + } + changeVarValue(); + addEventOnFeaturesList(); + } else { + var tag = document.createElement("li"); + tag.innerHTML = allFeaturesText[index].value; + allFeatures[index].appendChild(tag); + changeVarValue(); + addEventOnFeaturesList(); + } }); } }); - - - - var startButton = document.getElementById("start-btn"); // start the display startButton.addEventListener("click", () => { - var HTML = document.getElementById('display-format').innerHTML; + var HTML = document.getElementById("display-format").innerHTML; fetch("/start", { - method:"PUT", - body:JSON.stringify(HTML) + method: "PUT", + body: JSON.stringify(HTML), }); }); - var brightnessButton = document.getElementById("brightness-btn"); // start the display brightnessButton.addEventListener("click", () => { - - let brightness = document.querySelectorAll(".brightness-text")[0].value; - console.log(brightness); fetch("/brightness", { - method:"PUT", - body:JSON.stringify({'brightness':brightness}) + method: "PUT", + body: JSON.stringify({ brightness: brightness }), }); }); - var shutdownButton = document.getElementById("shutdown-btn"); shutdownButton.addEventListener("click", () => { fetch("/shutdown", { - method:"GET", + method: "GET", }); }); var stopButton = document.getElementById("stop-btn"); stopButton.addEventListener("click", () => { fetch("/stop", { - method:"GET", + method: "GET", }); }); - var dispFormatButton = document.getElementById("dispformat-btn"); var displayFormats = document.getElementById("inputDisplayFormat"); @@ -603,21 +833,21 @@ var displayFormats = document.getElementById("inputDisplayFormat"); // gets selected functions to display function getSelected(selector) { var opt; - for ( var i = 0, len = selector.options.length; i < len; i++ ) { - opt = selector.options[i]; - - if ( opt.selected === true ) { - break; - } + for (var i = 0, len = selector.options.length; i < len; i++) { + opt = selector.options[i]; + + if (opt.selected === true) { + break; + } } - + return opt.innerHTML; } function getListItems(list_el) { let symbols = list_el.getElementsByTagName("li"); - - let items = [] + + let items = []; for (var i = 0; i < symbols.length; ++i) { items.push(symbols[i].innerText); } @@ -626,172 +856,194 @@ function getListItems(list_el) { // toggle professional dispFormatButton.addEventListener("click", () => { - opt = getSelected(displayFormats); fetch("/display_format", { - method:"PUT", - body:JSON.stringify(opt) + method: "PUT", + body: JSON.stringify(opt), }); }); - -// saves the feature specific settings +// saves the feature specific settings function saveSettings() { let featureSelector = document.getElementById("drop"); feature = getSelected(featureSelector); - - let features = ["Stocks", "Crypto", "Forex", "Current Weather", "Daily Forecast", "News", "Sports (Upcoming Games)", "Sports (Past Games)", "Sports (Live Games)", "Sports (Team Stats)", "Custom Images", "Custom GIFs", "Custom Messages"]; + + let features = [ + "Stocks", + "Crypto", + "Forex", + "Current Weather", + "Daily Forecast", + "News", + "Sports (Upcoming Games)", + "Sports (Past Games)", + "Sports (Live Games)", + "Sports (Team Stats)", + "Custom Images", + "Custom GIFs", + "Custom Messages", + ]; let pageNum = features.indexOf(feature) + 1; let pageSelector = "Page" + pageNum.toString(); - + let page = document.getElementById(pageSelector); - - + // these common to all settings let speed = getSelected(page.querySelectorAll(".speed-select")[0]); let animation = getSelected(page.querySelectorAll(".animation-select")[0]); - - var settings = {'feature': feature, 'speed':speed, 'animation':animation}; // general settings - + + var settings = { feature: feature, speed: speed, animation: animation }; // general settings + var s; //function specific settings - switch(pageNum){ - case 1: case 2: case 3: + switch (pageNum) { + case 1: + case 2: + case 3: s = getTradingSettings(page); break; - case 4: case 5: + case 4: + case 5: s = getWeatherSettings(page); break; case 6: s = getNewsSettings(page); break; - case 7: case 8: case 9: case 10: + case 7: + case 8: + case 9: + case 10: s = getSportsSettings(page); break; - case 11: case 12: + case 11: + case 12: s = getImageSettings(page); break; case 13: s = getMessageSettings(page); break; - } - - settings = {...settings, ...s}; // merge both sets of settings - - console.log(settings); - - + + settings = { ...settings, ...s }; // merge both sets of settings + fetch("/feature_settings", { - method:"PUT", - body:JSON.stringify(settings) + method: "PUT", + body: JSON.stringify(settings), }); - + //send uploaded images and gifs - if (pageNum == 11){ + if (pageNum == 11) { var data = new FormData(); - - for ( var i = 0; i < uploaded_images.length; i++ ) { + + for (var i = 0; i < uploaded_images.length; i++) { data.append(uploaded_images[i].name, uploaded_images[i]); } - - - + fetch("/upload", { - method:"POST", - body:data + method: "POST", + body: data, }); - - } else if (pageNum == 12) { var data = new FormData(); - - for ( var i = 0; i < uploaded_GIFs.length; i++ ) { + + for (var i = 0; i < uploaded_GIFs.length; i++) { data.append(uploaded_GIFs[i].name, uploaded_GIFs[i]); } - + fetch("/upload", { - method:"POST", - body:data + method: "POST", + body: data, }); - } + } } -let saveSettingsButtons = document.querySelectorAll(".save-btn-div").forEach(button => - button.addEventListener("click", saveSettings) -) +let saveSettingsButtons = document + .querySelectorAll(".save-btn-div") + .forEach((button) => button.addEventListener("click", saveSettings)); -// gets the stock, crypto or forex specific settings +// gets the stock, crypto or forex specific settings function getTradingSettings(page) { - // get all the tick boxes let percent = page.querySelectorAll(".percent-select")[0].checked; let point = page.querySelectorAll(".point-select")[0].checked; let no_logos = page.querySelectorAll(".logo-select")[0].checked; let chart = page.querySelectorAll(".chart-select")[0].checked; let title = page.querySelectorAll(".title-select")[0].checked; - + let symbols_el = page.querySelectorAll(".symbol-list")[0]; let symbols = getListItems(symbols_el); - - let settings = {'percent': percent, 'point':point, 'logos':no_logos, 'chart':chart, 'title': title, 'symbols': symbols} - + + let settings = { + percent: percent, + point: point, + logos: no_logos, + chart: chart, + title: title, + symbols: symbols, + }; + return settings; } -// gets the current wether and forecast settings +// gets the current wether and forecast settings function getWeatherSettings(page) { let temp = getSelected(page.querySelectorAll(".temp-select")[0]); let speed = getSelected(page.querySelectorAll(".wind-speed-select")[0]); let colour = getSelected(page.querySelectorAll(".colour-select")[0]); - let city_colour = getSelected(page.querySelectorAll(".city-colour-select")[0]); + let city_colour = getSelected( + page.querySelectorAll(".city-colour-select")[0] + ); let title = page.querySelectorAll(".title-select")[0].checked; - - settings = {'temp':temp, 'wind_speed': speed, 'colour':colour, 'city_colour':city_colour, 'title': title} - - + + settings = { + temp: temp, + wind_speed: speed, + colour: colour, + city_colour: city_colour, + title: title, + }; + //only for daily weather try { - current_weather = page.querySelectorAll(".current-weather-select")[0].checked; - console.log(current_weather); - settings['current_weather'] = current_weather; - } catch { + current_weather = page.querySelectorAll(".current-weather-select")[0] + .checked; + settings["current_weather"] = current_weather; + } catch {} - } - - let locations_el = page.querySelectorAll(".location-list")[0]; let locations = getListItems(locations_el); - settings['locations'] = locations; - + settings["locations"] = locations; + return settings; } - -function getNewsSettings(page){ - +function getNewsSettings(page) { let country = getSelected(page.querySelectorAll(".country-select")[0]); let category = getSelected(page.querySelectorAll(".category-select")[0]); let title = page.querySelectorAll(".title-select")[0].checked; let use_sources = page.querySelectorAll(".sources-select")[0].checked; - + let sources_el = page.querySelectorAll(".sources-list")[0]; let sources = getListItems(sources_el); - settings = {'country':country, 'category': category, 'title':title, 'use_sources':use_sources, 'sources': sources}; + settings = { + country: country, + category: category, + title: title, + use_sources: use_sources, + sources: sources, + }; return settings; } - -function getSportsSettings(page){ +function getSportsSettings(page) { let title = page.querySelectorAll(".title-select")[0].checked; let leagues_el = page.querySelectorAll(".league-list")[0]; leagues = getListItems(leagues_el); - - settings = {'title':title, 'leagues':leagues}; + + settings = { title: title, leagues: leagues }; return settings; } - var uploaded_images = []; var uploaded_GIFs = []; @@ -801,76 +1053,299 @@ allFeaturesFileAddBtn.map((value, index) => { var tag = document.createElement("li"); tag.innerHTML = allFeaturesFile[index].files[0].name; if (index == 10) { - uploaded_images.push(allFeaturesFile[index].files[0]); + let getCustomImg = localStorage.getItem("customImages"); + let fileName = imagesFile.files[0].name; + let scrollSpeed = document.getElementById("inputScrollSpeed11").value; + let scrollSpeed2 = document.getElementById( + "inputScrollSpeedRow11" + ).value; + let transition = document.getElementById("inputTransition11").value; + let pauseScreen = document.getElementById("inputText12").value; + let displayCheck = + document.getElementById("flexCheckChecked25").checked; + + let fileFound = false; + + for (let i = 0; i < allFeatures[index].children.length; i++) { + fileFound = + allFeatures[index].children[i]?.innerText == fileName && true; + } + if (!fileFound) { + let values = { + fileName, + scrollSpeed, + scrollSpeed2, + transition, + pauseScreen, + displayCheck, + }; + + let newValues = getCustomImg && JSON.parse(getCustomImg); + getCustomImg && newValues.push(values); + + getCustomImg + ? localStorage.setItem("customImages", JSON.stringify(newValues)) + : localStorage.setItem("customImages", JSON.stringify([values])); + + uploaded_images.push(allFeaturesFile[index].files[0]); + allFeatures[index].appendChild(tag); + } } else if (index == 11) { - uploaded_GIFs.push(allFeaturesFile[index].files[0]); + let getCustomGifs = localStorage.getItem("customGifs"); + let fileName = allFeaturesFile[index].files[0].name; + let scrollSpeed = document.getElementById("inputScrollSpeed12").value; + let scrollSpeed2 = document.getElementById( + "inputScrollSpeedRow12" + ).value; + let transition = document.getElementById("inputTransition12").value; + let pauseScreen = document.getElementById("inputText112").value; + let displayCheck = + document.getElementById("flexCheckChecked28").checked; + + let fileFound = false; + + for (let i = 0; i < allFeatures[index].children.length; i++) { + fileFound = + allFeatures[index].children[i]?.innerText == fileName && true; + } + if (!fileFound) { + let values = { + fileName, + scrollSpeed, + scrollSpeed2, + transition, + pauseScreen, + displayCheck, + }; + + let newValues = getCustomGifs && JSON.parse(getCustomGifs); + getCustomGifs && newValues.push(values); + + getCustomGifs + ? localStorage.setItem("customGifs", JSON.stringify(newValues)) + : localStorage.setItem("customGifs", JSON.stringify([values])); + + uploaded_GIFs.push(allFeaturesFile[index].files[0]); + allFeatures[index].appendChild(tag); + } } - - allFeatures[index].appendChild(tag); + changeVarValue(); addEventOnFeaturesList(); }); } }); - //images and GIFs -function getImageSettings(page){ +function getImageSettings(page) { let pause = page.querySelectorAll(".pause-select")[0].value; let title = page.querySelectorAll(".title-select")[0].checked; - - + let images_el = page.querySelectorAll(".image-list")[0]; images = getListItems(images_el); - - settings = {'title':title, 'pause':pause, 'images':images}; + + settings = { title: title, pause: pause, images: images }; return settings; } - var messages = []; - messagesTextAddBtn.addEventListener("click", () => { - let pageSelector = "Page13"; - - let page = document.getElementById(pageSelector); - - - let msg_name = messagesText.value; - //let speed = getSelected(page.querySelectorAll(".speed-select")[0]); - //let animation = getSelected(page.querySelectorAll(".animation-select")[0]); - - let message_text = page.querySelectorAll(".message-input")[0].value; - let text_colour = getSelected(page.querySelectorAll(".text-colour")[0]); - let text_size = getSelected(page.querySelectorAll(".text-size")[0]); - let background_colour = getSelected(page.querySelectorAll(".back-colour")[0]); - - let message = {'name':msg_name, 'text':message_text, 'text_colour':text_colour, 'size':text_size, 'background_colour':background_colour}; - messages.push(message); + let pageSelector = "Page13"; - + let page = document.getElementById(pageSelector); + + let msg_name = messagesText.value; + //let speed = getSelected(page.querySelectorAll(".speed-select")[0]); + //let animation = getSelected(page.querySelectorAll(".animation-select")[0]); + + let message_text = page.querySelectorAll(".message-input")[0].value; + let text_colour = getSelected(page.querySelectorAll(".text-colour")[0]); + let text_size = getSelected(page.querySelectorAll(".text-size")[0]); + let background_colour = getSelected(page.querySelectorAll(".back-colour")[0]); + + let message = { + name: msg_name, + text: message_text, + text_colour: text_colour, + size: text_size, + background_colour: background_colour, + }; + messages.push(message); }); - - function getMessageSettings(page) { - let messages_el = page.querySelectorAll(".message-list")[0]; let message_names = getListItems(messages_el); - + //remove any messages that arent in the list let new_messages = []; - - for (let i = 0; i < messages.length; i++){ - if (message_names.includes(messages[i]['name'])) { + + for (let i = 0; i < messages.length; i++) { + if (message_names.includes(messages[i]["name"])) { new_messages.push(messages[i]); } } let title = page.querySelectorAll(".title-select")[0].checked; - return {'title':title, 'messages':new_messages}; + return { title: title, messages: new_messages }; } +// Join Network - +let wifiSsidInput = document.getElementById("wifi-ssid-input"); +let wifiPassInput = document.getElementById("wifi-pass-input"); +let countryCodeInput = document.getElementById("country-code-input"); +let joinNetworkBtn = document.querySelector("#join-network-btn"); +let connectedText = document.querySelector("#connected-text"); + +joinNetworkBtn.addEventListener("click", () => { + localStorage.setItem("wifiSsid", wifiSsidInput.value); + localStorage.setItem("wifiPass", wifiPassInput.value); + localStorage.setItem("countryCode", countryCodeInput.value); + + connectedText.style.display = "block"; + setTimeout(() => { + connectedText.style.display = "none"; + }, 2000); +}); + +// change display format +let displayFormatDropDown = document.querySelector("#inputDisplayFormat"); +let displayFormatBtn = document.querySelector("#dispformat-btn"); +let selectedDisplayText = document.querySelector("#selected-display-text"); +let topRowText = document.querySelector("#top-row-text"); +let bottomRowText = document.querySelector("#bottom-row-text"); + +displayFormatBtn.addEventListener("click", () => { + selectedDisplayText.innerText = displayFormatDropDown.value; + localStorage.setItem("displayFormat", displayFormatDropDown.value); + if (selectedDisplayText.innerText === "Professional two rows") { + topRowText.style.display = "inline"; + bottomRowText.style.display = "inline"; + secondRow.style.display = "flex"; + inputScrollSpeedRow.forEach((value) => { + value.parentElement.parentElement.style.display = "flex"; + }); + } else { + topRowText.style.display = "none"; + bottomRowText.style.display = "none"; + secondRow.style.display = "none"; + inputScrollSpeedRow.forEach((value) => { + value.parentElement.parentElement.style.display = "none"; + }); + } +}); + +// if selected display text = Professional two rows + +if (selectedDisplayText.innerText === "Professional two rows") { + topRowText.style.display = "inline"; +} + +// change host name + +let hostNameInput = document.getElementById("host-name-input"); +let hostNameBtn = document.getElementById("host-name-btn"); +let hostNameText = document.getElementById("host-name"); + +hostNameBtn.addEventListener("click", () => { + hostNameText.innerText = hostNameInput.value; + localStorage.setItem("hostName", hostNameText.innerText); +}); + +// change brightness + +let brightnessInput = document.getElementById("brightness-input"); +let brightnessBtn = document.getElementById("brightness-btn"); + +brightnessBtn.addEventListener("click", () => { + localStorage.setItem("brightness", brightnessInput.value); +}); + +// change input animation +let inputAnimation = document.getElementById("inputAnimation"); +let inputAnimationBtn = document.getElementById("input-animation-btn"); + +inputAnimationBtn.addEventListener("click", () => { + localStorage.setItem("inputAnimation", inputAnimation.value); +}); + +// scroll speed row two +let inputScrollSpeedRow = []; + +for (let i = 1; i <= 13; i++) { + inputScrollSpeedRow.push( + document.getElementById( + i === 1 ? "inputScrollSpeedRow" : `inputScrollSpeedRow${i}` + ) + ); +} + +window.onload = () => { + let getHostName = localStorage.getItem("hostName"); + let getBrightness = localStorage.getItem("brightness"); + let getWifiSsid = localStorage.getItem("wifiSsid"); + let getWifiPass = localStorage.getItem("wifiPass"); + let getCountryCode = localStorage.getItem("countryCode"); + let getInputAnimation = localStorage.getItem("inputAnimation"); + + getHostName && + (hostNameText.innerText = getHostName) && + (hostNameInput.value = getHostName); + + getBrightness && (brightnessInput.value = getBrightness); + getWifiSsid && (wifiSsidInput.value = getWifiSsid); + getWifiPass && (wifiPassInput.value = getWifiPass); + getCountryCode && (countryCodeInput.value = getCountryCode); + + let getDispayFormat = localStorage.getItem("displayFormat"); + getDispayFormat && (displayFormatDropDown.value = getDispayFormat); + selectedDisplayText.innerText = displayFormatDropDown.value; + + getInputAnimation && (inputAnimation.value = getInputAnimation); + + if (selectedDisplayText.innerText === "Professional two rows") { + topRowText.style.display = "inline"; + bottomRowText.style.display = "inline"; + secondRow.style.display = "flex"; + inputScrollSpeedRow.forEach((value) => { + value.parentElement.parentElement.style.display = "flex"; + }); + } else { + topRowText.style.display = "none"; + bottomRowText.style.display = "none"; + secondRow.style.display = "none"; + inputScrollSpeedRow.forEach((value) => { + value.parentElement.parentElement.style.display = "none"; + }); + } + + // custom images + let localCustomImages = JSON.parse(localStorage.getItem("customImages")); + localCustomImages?.map((value) => { + let tag = document.createElement("li"); + tag.innerText = value.fileName; + images.appendChild(tag); + }); + // custom gifs + let localCustomGifs = JSON.parse(localStorage.getItem("customGifs")); + localCustomGifs?.map((value) => { + let tag = document.createElement("li"); + tag.innerText = value.fileName; + gifs.appendChild(tag); + }); + // custom messages + let localCustomMsg = JSON.parse(localStorage.getItem("customMsg")); + localCustomMsg?.map((value) => { + let tag = document.createElement("li"); + tag.innerText = value.messageName; + var messagesWrapper = document.getElementById("messages-features"); + + messagesWrapper.appendChild(tag); + }); + addEventOnList(); + addEventonBtns(); + changeVarValue(); + addEventOnFeaturesList(); +}; diff --git a/static/style.css b/static/style.css index aa11d09..759a96f 100644 --- a/static/style.css +++ b/static/style.css @@ -16,22 +16,32 @@ body { /* Top logo bar */ header { - display: block; + display: flex; + justify-content: space-between; margin-top: 30px; border-bottom: 2px solid white; padding-bottom: 20px; + align-items: center; } .logo { width: 200px; height: 70px; } -.update-btn, -.update-btn:hover { +.update-btn { background-color: gray; - float: right; - margin-top: 20px; color: white; + transition: 0.25s; +} +.hostname-text { + margin: 0; + align-self: flex-end; + font-style: italic; + color: greenyellow; + font-size: 18px; + position: absolute; + left: 50%; + transform: translateX(-50%); } /* General Ticker */ @@ -40,15 +50,58 @@ header { justify-content: space-around; list-style-type: none; } -.btn-stop-display, -.btn-stop-display:hover { +.btn-stop-display { background-color: purple; color: white; + transition: 0.25s; } -.set-btn, -.set-btn:hover { +.btn-warning { + background-color: #ffc107; + color: white; + transition: 0.25s; +} +.btn-warning:hover { + background-color: greenyellow; + color: white; +} +.btn-warning:active { + background-color: #ffce45; + color: white; +} +.btn-stop-display:hover { + background-color: #b000b9; + color: white; +} +.btn-stop-display:active { + background-color: #3e065f; + color: white; +} +.set-btn { background-color: gray; color: white; + transition: 0.25s; +} +.set-btn:hover, +.fa-chevron-right:hover, +.fa-chevron-left:hover, +.fa-chevron-up:hover, +.fa-chevron-down:hover, +.fa-minus:hover, +.update-btn:hover, +.save-btn:hover { + background-color: #8ca1a5; + color: white; +} +.set-btn:active:active, +.fa-chevron-right:active, +.fa-chevron-left:active, +.fa-chevron-up:active, +.fa-chevron-down:active, +.fa-minus:active, +.update-btn:active, +.save-btn:active { + background-color: #6c4a4a; + color: white; } .row-2 { border-bottom: 2px solid white; @@ -79,6 +132,7 @@ header { .fa-minus { background-color: gray; padding: 10px; + transition: 0.25s; } .icons-list { margin-block: 70px; @@ -98,11 +152,11 @@ header { text-align: center; margin-top: 60px; } -.save-btn, -.save-btn:hover { +.save-btn { background-color: gray; color: white; padding-inline: 40px; + transition: 0.25s; } .footer { @@ -114,52 +168,79 @@ header { li.active { background-color: skyblue; } -.row-1, .row-3{ +.row-1, +.row-3 { margin-block: 50px; } +.w-115-px { + width: 115px; +} +.h-50-px { + height: 50px; +} +.text-right { + text-align: right; +} +.mr-5 { + margin-right: 1.25rem; +} +.font-6 { + font-size: 1.5rem; +} +#connected-text { + left: calc(100% + 1.25rem); + display: none; +} +#selected-display-text { + color: blue; +} +#top-row-text, +#bottom-row-text { + text-align: center; + text-decoration: underline; + padding-right: 150px; + display: none; +} +#second-row { + display: none; +} /* Responsiveness */ @media (max-width: 767px) { - - .buttons-list{ + .buttons-list { display: flex; flex-wrap: wrap; gap: 25px; position: relative; right: 20px; } - .row-1, .row-3{ + .row-1, + .row-3 { margin-block: 25px; } - .screen-saver{ + .screen-saver { margin-block: 25px; } - .display-none-div{ + .display-none-div { display: none; } - .icons-list{ + .icons-list { display: flex; justify-content: center; gap: 20px; } - .icons-list a{ + .icons-list a { margin-left: -120px; } - .remove{ + .remove { margin-right: -100px; margin-left: -100px; } - - - - } @media (min-width: 768px) and (max-width: 991px) { - - .icons-list a{ - position: relative; + .icons-list a { + position: relative; top: 10px; } - -} \ No newline at end of file +} diff --git a/templates/index.html b/templates/index.html index 19817ed..ae0362d 100644 --- a/templates/index.html +++ b/templates/index.html @@ -15,7 +15,8 @@ @@ -33,15 +34,21 @@ /> -
+
- +
+ +

Version 1.0

+
+

+ Hostname: fintic.local +

Check Updates
@@ -51,44 +58,42 @@
-
-
-
-
+
+
- Set +
-
-
-
-
- Set +
+
-
-
- -
-
- Set +
+
+
+
+
+ +
+
+ +
+
+
+
+ +
+
+ +
+
+
+
+ +
+
+ +
+
+
+ +

+ Connected +

+
+

Features to Display:

-

Selected Display format: Traditional Scrolling

- +

+ Selected Display format: + +

+

Top row

+
Available Features:
@@ -168,10 +241,19 @@ id="available-features" class="display-features-list text-dark" > - {% for f in not_displaying %} -
  • {{f}}
  • - {% endfor%} - +
  • Stocks
  • +
  • Crypto
  • +
  • Forex
  • +
  • Current Weather
  • +
  • Daily Forecast
  • +
  • News
  • +
  • Custom Images
  • +
  • Custom Messages
  • +
  • Cstom Gifs
  • +
  • Sports (Upcoming Games)
  • +
  • Sports (Live Games)
  • +
  • Sports (Past Games)
  • +
  • Sports (Team Stats)
  • @@ -194,11 +276,10 @@
    Display Format:
    -
      - {% for f in currently_displaying %} -
    • {{f}}
    • - {% endfor%} -
    +
      @@ -222,6 +303,78 @@
      +
      +

      Bottom row

      + +
      +
      Available Features:
      +
      +
        +
      • Stocks
      • +
      • Crypto
      • +
      • Forex
      • +
      • Current Weather
      • +
      • Daily Forecast
      • +
      • News
      • +
      • Custom Images
      • +
      • Custom Messages
      • +
      • Cstom Gifs
      • +
      • Sports (Upcoming Games)
      • +
      • Sports (Live Games)
      • +
      • Sports (Past Games)
      • +
      • Sports (Team Stats)
      • +
      +
      +
      +
      +
      + +
      +
      + +
      +
      +
      +
      Display Format:
      +
      +
        +
        +
        +
        +
        + +
        +
        + + Sort Order +
        +
        +
        +
        @@ -264,7 +417,28 @@
        - + + + + +
        +
        + +
        +
        + +
        +
        + +
        @@ -322,9 +496,10 @@ type="checkbox" value="" id="flexCheckChecked" - - {% if stocks_settings.percent%} - checked + {% + if + stocks_settings.percent%} + checked {%endif%} />
        @@ -342,8 +517,10 @@ type="checkbox" value="" id="flexCheckChecked2" - {% if stocks_settings.point%} - checked + {% + if + stocks_settings.point%} + checked {%endif%} /> @@ -351,7 +528,7 @@
        -
        @@ -361,8 +538,10 @@ type="checkbox" value="" id="flexCheckChecked3" - {% if stocks_settings.logos%} - checked + {% + if + stocks_settings.logos%} + checked {%endif%} />
        @@ -370,7 +549,7 @@
        -
        @@ -380,8 +559,10 @@ type="checkbox" value="" id="flexCheckChecked4" - {% if stocks_settings.chart%} - checked + {% + if + stocks_settings.chart%} + checked {%endif%} />
        @@ -399,8 +580,10 @@ type="checkbox" value="" id="flexCheckChecked5" - {% if stocks_settings.title%} - checked + {% + if + stocks_settings.title%} + checked {%endif%} /> @@ -413,7 +596,7 @@ id="stocks-features" class="display-features-list text-dark symbol-list" > - {% for f in stocks_settings.symbols %} + {% for f in stocks_settings.symbols %}
      • {{f}}
      • {% endfor%} @@ -445,7 +628,7 @@ aria-hidden="true" > - Remove @@ -463,12 +646,33 @@
        -
        - + + + + +
        +
        + +
        +
        + +
        +
        + +
        @@ -524,8 +730,10 @@ type="checkbox" value="" id="flexCheckChecked6" - {% if crypto_settings.percent%} - checked + {% + if + crypto_settings.percent%} + checked {%endif%} />
        @@ -543,8 +751,10 @@ type="checkbox" value="" id="flexCheckChecked7" - {% if crypto_settings.point%} - checked + {% + if + crypto_settings.point%} + checked {%endif%} /> @@ -562,8 +772,10 @@ type="checkbox" value="" id="flexCheckChecked8" - {% if crypto_settings.logos%} - checked + {% + if + crypto_settings.logos%} + checked {%endif%} /> @@ -581,8 +793,10 @@ type="checkbox" value="" id="flexCheckChecked9" - {% if crypto_settings.chart%} - checked + {% + if + crypto_settings.chart%} + checked {%endif%} /> @@ -600,8 +814,10 @@ type="checkbox" value="" id="flexCheckChecked10" - {% if crypto_settings.title%} - checked + {% + if + crypto_settings.title%} + checked {%endif%} /> @@ -614,7 +830,7 @@ id="crypto-features" class="display-features-list text-dark symbol-list" > - {% for f in crypto_settings.symbols %} + {% for f in crypto_settings.symbols %}
      • {{f}}
      • {% endfor%} @@ -663,12 +879,33 @@
        -
        - + + + + +
        +
        + +
        +
        + +
        +
        + + + +
        +
        + +
        +
        + +
        +
        + +
        @@ -907,8 +1179,7 @@
        - +
        @@ -919,7 +1190,10 @@
        - @@ -934,7 +1208,10 @@
        - @@ -950,7 +1227,10 @@
        - @@ -965,7 +1245,10 @@
        - @@ -985,8 +1268,10 @@ type="checkbox" value="" id="flexCheckChecked16" - {% if current_weather.title%} - checked + {% + if + current_weather.title%} + checked {%endif%} />
        @@ -999,7 +1284,7 @@ id="current-weather-features" class="display-features-list text-dark location-list" > - {% for f in current_weather.locations.keys() %} + {% for f in current_weather.locations.keys() %}
      • {{f}}
      • {% endfor%} @@ -1049,12 +1334,33 @@
        -
        - + + + + +
        +
        + +
        +
        + +
        +
        + +
        @@ -1092,8 +1400,7 @@
        - +
        @@ -1104,7 +1411,10 @@
        - @@ -1119,7 +1429,10 @@
        - @@ -1136,7 +1449,10 @@
        - @@ -1151,7 +1467,10 @@
        - @@ -1188,8 +1507,10 @@ type="checkbox" value="" id="flexCheckChecked18" - {% if daily_weather.title%} - checked + {% + if + daily_weather.title%} + checked {%endif%} />
        @@ -1202,7 +1523,7 @@ id="daily-forecast-features" class="display-features-list text-dark location-list" > - {% for f in daily_weather.locations.keys() %} + {% for f in daily_weather.locations.keys() %}
      • {{f}}
      • {% endfor%} @@ -1252,12 +1573,33 @@
        -
        - + + + + +
        +
        + +
        +
        + +
        +
        + +
        @@ -1288,7 +1632,10 @@
        - @@ -1303,7 +1650,10 @@
        - @@ -1322,8 +1672,10 @@ type="checkbox" value="" id="flexCheckChecked20" - {% if news_settings.use_sources%} - checked + {% + if + news_settings.use_sources%} + checked {%endif%} />
        @@ -1360,8 +1712,10 @@ type="checkbox" value="" id="flexCheckChecked19" - {% if news_settings.title%} - checked + {% + if + news_settings.title%} + checked {%endif%} /> @@ -1374,7 +1728,7 @@ id="news-features" class="display-features-list text-dark sources-list" > - {% for f in news_settings.sources %} + {% for f in news_settings.sources %}
      • {{f}}
      • {% endfor%} @@ -1424,12 +1778,33 @@
        -
        - + + + + +
        +
        + +
        +
        + +
        +
        + +
        @@ -1463,7 +1840,7 @@
        @@ -1486,8 +1863,10 @@ type="checkbox" value="" id="flexCheckChecked21" - {% if upcoming_games.title%} - checked + {% + if + upcoming_games.title%} + checked {%endif%} /> @@ -1500,7 +1879,7 @@ id="upcoming-games-features" class="display-features-list text-dark league-list" > - {% for f in upcoming_games.leagues.keys() %} + {% for f in upcoming_games.leagues.keys() %}
      • {{f}}
      • {% endfor%} @@ -1550,12 +1929,33 @@
        -
        - + + + + +
        +
        + +
        +
        + +
        +
        + +
        @@ -1589,7 +1991,7 @@
        @@ -1612,8 +2014,10 @@ type="checkbox" value="" id="flexCheckChecked22" - {% if past_games.title%} - checked + {% + if + past_games.title%} + checked {%endif%} /> @@ -1626,7 +2030,7 @@ id="past-games-features" class="display-features-list text-dark league-list" > - {% for f in past_games.leagues.keys() %} + {% for f in past_games.leagues.keys() %}
      • {{f}}
      • {% endfor%} @@ -1676,12 +2080,33 @@
        -
        - + + + + +
        +
        + +
        +
        + +
        +
        + +
        @@ -1715,7 +2142,7 @@
        @@ -1738,8 +2165,10 @@ type="checkbox" value="" id="flexCheckChecked23" - {% if live_games.title%} - checked + {% + if + live_games.title%} + checked {%endif%} /> @@ -1752,7 +2181,7 @@ id="live-games-features" class="display-features-list text-dark league-list" > - {% for f in live_games.leagues.keys() %} + {% for f in live_games.leagues.keys() %}
      • {{f}}
      • {% endfor%} @@ -1801,12 +2230,33 @@
        -
        - + + + + +
        +
        + +
        +
        + +
        +
        + +
        @@ -1840,7 +2292,7 @@
        @@ -1863,8 +2315,10 @@ type="checkbox" value="" id="flexCheckChecked24" - {% if team_stats.title%} - checked + {% + if + team_stats.title%} + checked {%endif%} /> @@ -1877,7 +2331,7 @@ id="team-stats-features" class="display-features-list text-dark league-list" > - {% for f in team_stats.leagues.keys() %} + {% for f in team_stats.leagues.keys() %}
      • {{f}}
      • {% endfor%} @@ -1952,7 +2406,28 @@
        - + + + + +
        + + +
        +
        + +
        +
        + +
        @@ -1988,10 +2465,10 @@ id="inputText12" class="form-control pause-select" aria-describedby="TextHelpInline" - value={{image_settings.pause}} + value="{{image_settings.pause}}" /> - +