-
Notifications
You must be signed in to change notification settings - Fork 43
/
Copy pathblog_data.js
87 lines (82 loc) · 17.2 KB
/
blog_data.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
let lastUpdate = "8/16/2022"
let data = [
// {
// title: "Terms of Service",
// date: "9/00/22",
// time: "May update from time to time.",
// id: "tos",
// text: "<b>AGREEMENT TO TERMS</b><br><br>These Terms of Service constitute a legally binding agreement made between you, whether personally or on behalf of Syce's Media LLC and Syce's Game Shack, concerning your access to and use of Syce's Game Shack as well as any other media form, media channel, mobile website or mobile application related, linked, or otherwise connected thereto.<br><br>You agree that by accessing the Site, you have read, understood, and agree to be bound by all of these Terms of Service. If you do not agree with all of these Terms of Service, then you are expressly prohibited from using the Site and you must discontinue use immediately.<br><br>Supplemental Terms of Service or documents that may be posted on the Site from time to time are hereby expressly incorporated herein by reference. We reserve the right, in our sole discretion, to make changes or modifications to these Terms of Service at any time and for any reason.<br><br>We will alert you about any changes by updating the “Last updated” date of these Terms of Service, and you waive any right to receive specific notice of each such change.<br><br>It is your responsibility to periodically review these Terms of Service to stay informed of updates. You will be subject to, and will be deemed to have been made aware of and to have accepted, the changes in any revised Terms of Service by your continued use of the Site after the date such revised Terms of Service are posted.<br><br>The information provided on the Site is not intended for distribution to or use by any person or entity in any jurisdiction or country where such distribution or use would be contrary to law or regulation or which would subject us to any registration requirement within such jurisdiction or country.<br><br>Accordingly, those persons who choose to access the Site from other locations do so on their own initiative and are solely responsible for compliance with local laws, if and to the extent local laws are applicable.<br><br>The Site is intended for users who are at least 13 years of age. All users who are minors in the jurisdiction in which they reside (generally under the age of 13) must have the permission of, and be directly supervised by, their parent or guardian to use the Site. If you are a minor, you must have your parent or guardian read and agree to these Terms of Service prior to you using the Site.<br><br><br><b>INTELLECTUAL PROPERTY RIGHTS</b><br><br>The Site is mainly our proprietary property and almost all source code, functionality, software, website designs, text on the Site and the trademarks, service marks, and logos are owned or controlled by us or licensed to us, and are protected by copyright and trademark laws and various other intellectual property rights and unfair competition laws of the United States, foreign jurisdictions, and international conventions.<br><br>The Site does contain a lot of content from other 3rd-party sources, including but not limited to: the games, graphic designs, and other website designs. Any content not from Syce's Media LLC or the Site is expected to be used properly according to its use. We have no right or control on how 3rd-party sources are used.<br><br>Provided that you are eligible to use the Site, you are granted a limited license to access and use the Site and to download or print a copy of any portion of the Content to which you have properly gained access solely for your personal, non-commercial use. We reserve all rights not expressly granted to you in and to the Site, the Content and the Marks.<br><br><b>USER REPRESENTATIONS</b><br><br>By using the Site, you represent and warrant that:<br><br>(1) you have the legal capacity and you agree to comply with these Terms of Service;<br><br>(2) you are not under the age of 13;<br><br>(3) not a minor in the jurisdiction in which you reside [, or if a minor, you have received parental permission to use the Site];<br><br>(4) you will not access the Site through automated or non-human means, whether through a bot, script, or otherwise;<br><br>(5) you will not use the Site for any illegal or unauthorized purpose;<br><br>(6) your use of the Site will not violate any applicable law or regulation.<br><br>",
// hidden: true,
// },
{
title: "Changelog of v4.1.2",
date: "9/28/22",
time: "< 1 min read",
id: "6",
text: "This update includes some new games and other fixes. Read below for more details:<br><br><b>Changes</b><br>• Fixed a typo in the settings.<br><br><b>New Games</b><br>• Age of War<br>• Death Run 3D<br>• Gun Mayhem 2 & Redux (finally, sorry for the wait)<br>• Jetboy<br>• Papa's Pizzaria & Scooperia<br>• Retro Bowl<br><br><b>Other</b><br>• Removed Fishington.io because it got blocked.<br>• Removed Powerline.io because it got blocked.<br><br><b>Known Issues</b><br>• Scaling may be a problem with certain elements on bigger/smaller resolution devices. (34482888)<br>ㅤ◦ <b>Workaround:</b> Scale up/down the page using zoom. Not available on mobile.<br>• Sometimes when clicking off the game splash screen thing, you would end up viewing a different game's splash screen. (44939979)<br>ㅤ◦ <b>Workaround:</b> Scale the page down. Not available on mobile.<br>• None of the site icons, including the cloak icons, show up. (52999265)<br>• 1v1.lol is not loading all the way. (91155718)<br>• Can't fullscreen on phones<br>• Some games' title text might be too long and cause it to look weird<br>• Connect 4 randomly broke its style (idk how lol)",
},
{
title: "Changelog of v4.1.1",
date: "9/21/22",
time: "1 - 2 min read",
id: "5",
text: "This update includes some needed changes and bug fixes. Read below for more details:<br><br><b>Changes</b><br>• Moved the settings tab down on the sidebar to the bottom<br>• New focus screen for when you go out of focus during a game (like when you're not clicked on it)<br>• New message when you play a game that may be experiencing issues<br><br><b>New Games</b><br>• Basketbros.io (Re-added)<br>• Death Chase 3<br>• Powerline.io<br>• Shell Shocker<br>ㅤ◦ This game was previously removed after some security issues but seems to have been resolved<br>• Solitaire<br><br><b>Other</b><br>• Removed Betrayal.io because it got blocked.<br>• Fixed Friday Night Funkin'<br>• Fixed Sort the Court.<br>• Fixed the World's Hardest Game<br><br><b>Known Issues</b><br>• Scaling may be a problem with certain elements on bigger/smaller resolution devices. (34482888)<br>ㅤ◦ <b>Workaround:</b> Scale up/down the page using zoom. Not available on mobile.<br>• Sometimes when clicking off the game splash screen thing, you would end up viewing a different game's splash screen. (44939979)<br>ㅤ◦ <b>Workaround:</b> Scale the page down. Not available on mobile.<br>• None of the site icons, including the cloak icons, show up. (52999265)<br>• 1v1.lol is not loading all the way. (91155718)<br><br><b>Resolved Issues</b><br>• On some devices, game descriptions might be too long that they get cut off, and/or the play button, at the bottom of the page. (79099003)<br>ㅤ◦ <b>Solution:</b> Turned on the y-overflow for the div element so it adds a scrollbar if it goes beyond a certain height.<br>• On some devices, a weird glitch would occur where if you scroll down on the gamepage and you play a game the page would be scrolled down too far somehow.<br>ㅤ◦ <b>Solution:</b> Every time the user plays a game it will scroll up to the top of the page.",
},
{
title: "Changelog of v4.1.0",
date: "9/15/22",
time: "2 min read",
id: "4",
text: "This update includes some cool new changes and features. Read below for more details:<br><br><b>Changes</b><br>• In the settings, you can now change the theme of the website to a few different colors. (More will be added and maybe even a custom option)<br>• New dark themed mode! Dark themed is basically dark mode but with the theme color. (Few things might need some improvements)<br>ㅤ◦ New option in the settings to change the mode of the site between light and dark mode, now with dark themed.<br>ㅤ◦ Removed the switch on the sidebar because of this.<br>• Added a new banner on the games page to inform users about updates and other important things.<br><br><b>New Games (Now over 100!)</b><br>• Asteroids<br>• Bounce Back<br>• BreakLock<br>• Cubefield<br>• Doodle Jump<br>• Evil Glitch<br>• Fishington.io<br>• Flappy Bird<br>• Hextris<br>• Pac-Man<br>• Radius Raid<br>• Retrohaunt<br>• Space Company<br>• Weaver Unlimited<br><br><b>Other</b><br>• Working on fixing crossy road. (Temporarily removed it)<br>• Blogs are now shown from newest to oldest instead of the other way around.<br>• Fixed a minor height error on the game splash screen.<br>• Adjusted the loading screen even more by making it fixed on the screen.<br>• You can no longer scroll while on a game's splash screen.<br>• Fixed Pokémon Emerald.<br><br><b>Known Issues</b><br>• Scaling may be a problem with certain elements on bigger/smaller resolution devices. (34482888)<br>ㅤ◦ <b>Workaround:</b> Scale up/down the page using zoom. Not available on mobile.<br>• Sometimes when clicking off the game splash screen thing, you would end up viewing a different game's splash screen. (44939979)<br>• On some devices, game descriptions might be too long that they get cut off, and/or the play button, at the bottom of the page. (79099003)<br>ㅤ◦ <b>Workaround:</b> Scale the page down. Not available on mobile.<br>• None of the site icons, including the cloak icons, show up. (52999265)<br>• 1v1.lol is not loading all the way. (91155718)",
},
{
title: "Changelog of v4.0.2",
date: "8/24/22",
time: "< 1 min read",
id: "3",
text: "This update includes some minor changes and small bug fixes. Read below for more details:<br><br><b>Changes</b><br>• Added a <b>X</b> on the game splash screen at the top left corner as another way to close it. (You can still click anywhere on the screen)<br><br><b>Known Issues</b><br>• Scaling may be a problem with certain elements on bigger/smaller resolution devices. (34482888)<br>ㅤ◦ <b>Workaround:</b> Scale up/down the page using zoom. Not available on mobile.<br>• Sometimes when clicking off the game splash screen thing, you would end up viewing a different game's splash screen. (44939979)<br>• On some devices, game descriptions might be too long that they get cut off, and/or the play button, at the bottom of the page. (79099003)<br>ㅤ◦ <b>Workaround:</b> Scale the page down. Not available on mobile.<br>• None of the site icons, including the cloak icons, show up. (52999265)<br><br><b>Resolved Issues</b><br>• If you scroll down and reload, the loading screen doesn't fade out and is seen fading out at the top of the page. (49867091)<br>ㅤ◦ <b>Solution:</b> Make it scroll to the top of the page upon reload.<br>• When loading the site, you may see the site glitch before completely loading with no loading screen. (26911389)<br>ㅤ◦ <b>Solution:</b> Hide the site by default and then re-show it once it loads the javascript.",
},
{
title: "Changelog of v4.0.1",
date: "8/23/22",
time: "< 1 min read",
id: "2",
text: "This update includes some small changes such as minor bug fixes and security updates. Read below for more details:<br><br><b>Security Updates</b><br>• Removed Adventure Capitalist as GitHub's Dependabot found <b>61 vulnerable dependencies</b> with some being critical.<br>ㅤ◦ I'm aware that this may of been actively exploited.<br><br><b>Changes</b><br>• Changed the scaling on the home page, should look better on smaller/bigger resolution devices.<br>• Fixed a few grammar and spelling errors, but there's still probably a lot more.<br>• Experimenting with a few other scaling things, the site should look a lot better on some devices.<br><br><b>Performance</b><br>• Increased the performance when playing games. This was mainly noticeable on mobile cause it was literal garbage before the update.<br><br><b>Known Issues</b><br>• When loading the site, you may see the site glitch before completely loading with no loading screen. (26911389)<br>• Scaling may be a problem with certain elements on bigger/smaller resolution devices. (34482888)<br>ㅤ◦ <b>Workaround:</b> Scale up/down the page using zoom. Not available on mobile.<br>• If you scroll down and reload, the loading screen doesn't fade out and is seen fading out at the top of the page. (49867091)<br>• Sometimes when clicking off the game splash screen thing, you would end up viewing a different game's splash screen. (44939979)<br>• On some devices, game descriptions might be too long that they get cut off, and/or the play button, at the bottom of the page. (79099003)<br>ㅤ◦ <b>Workaround:</b> Scale the page down. Not available on mobile.<br>• None of the site icons, including the cloak icons, show up. (52999265)<br><br><b>Resolved Issues</b><br>• Most noticeably on mobile, when you switch to the gamepage after being focused on the iframe, it would not re-show the scrollbar sometimes.(73980552)<br>ㅤ◦ <b>Solution:</b> Make it re-show in the script for going back to the gamepage.",
},
{
title: "Changelog of version 4!",
date: "8/22/2022",
time: "2 min read",
id: "1",
text: `<b>What's new?</b><br>• Completely rewritten the website to fit a better design and functionality<br>ㅤ◦ New aesthetic home screen, to show version 4 at a quick glance.<br>ㅤ◦ New sidebar on the left to switch to the different pages, now including two new ones.<br>ㅤ◦ Added light mode, turn it on at the bottom of the sidebar.<br>ㅤ◦ New view before you enter a game, shows you the description of the game, as well as the genre and publisher.<br>ㅤ◦ New loading screen for the site with a new animation.<br>ㅤ◦ Plus many other small design changes.<br><br>Everything was rewritten in a way to work better than before which makes it easier for other things in the future to be added on.<br><br><b>Performance</b><br>• This update includes many things to help performance. With the new ways the site works, some stuff like the loading might be a bit slower because of how I did it, but there's some things that I've improved in this update that will definitely help with that and other things.<br>ㅤ◦ Firstly, to better improve loading times I've realized the site takes the longest to load all the icons, so why not just show them? That's why I've included a new settings to disable the game icons from showing which definitely makes the site load much quicker. Would recommend it if you have a slow laptop/computer and/or a slow internet connection.<br>ㅤ◦ Probably one of the biggest changes in this update is that games now run on the same page with the gamepage meaning there's no loading between launching a game or going back to the gamepage. Unlike before where it would have to load the entire gamepage after you exited out of a game.<br><br><b>Known Issues</b><br>• When loading the site, you may see the site glitch before completely loading with no loading screen. (26911389)<br>• Scaling may be a problem with certain elements on bigger/smaller resolution devices. (34482888)<br>ㅤ◦ <b>Workaround:</b> Scale up/down the page using zoom. Not available on mobile.<br>• If you scroll down and reload, the loading screen doesn't fade out and is seen fading out at the top of the page. (49867091)<br>• Sometimes when clicking off the game splash screen thing, you would end up viewing a different game's splash screen. (44939979)<br>• On some devices, game descriptions might be too long that they get cut off, and/or the play button, at the bottom of the page.<br>ㅤ◦ <b>Workaround:</b> Scale the page down. Not available on mobile.<br><br><b>Resolved Issues</b><br>• Webpage might scroll while pressing the up or down arrow keys during a game. (63383629)<br>ㅤ◦ <b>Solution:</b> Hide the scroll bar while focused on a game that disables scrolling outside of the iframe.`
},
// {
// title: "",
// date: "",
// time: "",
// id: "",
// text: "",
// },
]
let count = 0
data.forEach(blog => {
let box = document.getElementsByClassName(`blogBox`)
let title = document.getElementsByClassName(`blogTitle`)
let date = document.getElementsByClassName(`blogDate`)
box[count].onclick = function(){ viewBlog(blog.id) }
title[count].innerText = blog.title
date[count].innerText = blog.date
count++;
})
function viewBlog(blogID){
console.log("hi")
for(let i = 0; i < data.length; i++){
if(data[i].id === blogID){
document.getElementById("blogPage").style.display = "block"
document.getElementById("blog").style.display = "none"
document.getElementById("blog_title").innerText = data[i].title
document.getElementById("blog_date").innerText = `${data[i].date} • ${data[i].time}`
document.getElementById("blog_text").innerHTML = data[i].text
}
}
}