-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathall.js
94 lines (80 loc) · 4.72 KB
/
all.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
88
89
90
91
92
93
94
var gameList = ["Minecraft", "Splatoon", "Roblox", "Fortnite", "Portal", "Overwatch"];
var gameDesc = [];
gameDesc["Minecraft"] = "Minecraft is a sandbox video game created and designed by Swedish game designer Markus 'Notch' Persson, and later fully developed and published by Mojang. The creative and building aspects of Minecraft allow players to build with a variety of different cubes in a 3D procedurally generated world. Other activities in the game include exploration, resource gathering, crafting, and combat.";
gameDesc["Roblox"] = "Roblox is the world's largest social platform for play. Every month, over 60 million active players imagine, build, and play together within immersive 3D worlds.";
gameDesc["Splatoon"] = "Splatoon is a third-person shooter video game developed and published by Nintendo for the Wii U, which was released worldwide in May 2015. The game centers around characters known as Inklings—beings that can transform between humanoid and squid forms, and hide or swim through colored ink sprayed on surfaces using gun, bucket, or brush-based weaponry. Splatoon features several game modes, including 4-on-4 online multiplayer, and a single player campaign.";
gameDesc["Fortnite"] = "Fortnite is a co-op sandbox survival game developed by Epic Games and People Can Fly, with Epic Games also publishing the game. The game was released as a paid early access title for Microsoft Windows, macOS, PlayStation 4 and Xbox One on July 25, 2017, with a full free-to-play release expected in 2018.";
gameDesc["Portal"] = "Portal is a puzzle-platform video game developed and published by Valve Corporation. It was released in a bundle package called The Orange Box for Microsoft Windows, Xbox 360 and PlayStation 3 in 2007. The game has since been ported to other systems, including OS X, Linux, and Android."
gameDesc["Overwatch"] = "Overwatch is a team-based multiplayer online first-person shooter video game developed and published by Blizzard Entertainment. It was released in May 2016 for Windows, PlayStation 4, and Xbox One. Overwatch assigns players into two teams of six, with each player selecting from a roster of over 20 characters, known in-game as "heroes", each with a unique style of play, whose roles are divided into four general categories: Offense, Defense, Tank, and Support." + " Players on a team work together to secure and defend control points on a map or escort a payload across the map in a limited amount of time. Players gain cosmetic rewards that do not affect gameplay, such as character skins and victory poses, as they play the game. The game was initially launched with casual play, with a competitive ranked mode, various 'arcade' game modes, and a player-customizable server browser subsequently included following its release. Additionally, Blizzard has" + " developed and added new characters, maps, and game modes post-release, while stating that all Overwatch updates will remain free, with the only additional cost to players being microtransactions to earn additional cosmetic rewards."
var gameIcon = [];
gameIcon["Minecraft"] = "media/MinecraftJpg.jpg";
gameIcon["Roblox"] = "media/RobloxPng.png";
gameIcon["Splatoon"] = "media/SplatoonPng.png";
gameIcon["Fortnite"] = "media/fortniteJpg.jpg";
gameIcon["Portal"] = "media/portalJpg.jpg";
gameIcon["Overwatch"] = "media/overwatchJpg.jpg"
function langArabic() {
}
function langChinese() {
}
function langDutch() {
$("#video-games").text("Videospellen")
$("#home").text("Hoofdpagina")
}
function langEnglish() {
}
function langHindi() {
}
function langJapanese() {
}
function langUrdu() {
}
function search() {
swal({
text: "Search for a game eg. Minecraft",
closeOnClickOutside: false,
closeOnEsc: false,
content: {
element: "input",
attributes: {
placeholder: "Search!"
}
},
buttons: ["Dismiss", true],
}).then((gameSearch) => {
//Checking if gamesearch is in the gameList
var isInList = gameList.indexOf(gameSearch)
if (isInList !== -1) {
//If isInList does not equal one, the game searched is in the list
swal({
closeOnClickOutside: false,
closeOnEsc: false,
title: gameSearch,
text: gameDesc[gameSearch],
icon: gameIcon[gameSearch]
}).then((gameInfo) => {
if (isInList !== -1 && gameInfo) {
window.location.href = "Games.htm"
}
})
}
else if (gameSearch == "") {
swal({
text: "Hey! Please fill in some info!",
title: "Input=Nothing",
icon: "info",
})
}
else if (!gameSearch) {
swal.close()
} else {
swal({
closeOnClickOutside: false,
closeOnEsc: false,
title: "Error 404",
text: "Sorry, we couldn't get what you asked for! Remember, this site is CAPS SENSITIVE!",
icon: "error"
})
}
})
}