mirror of
https://github.com/2009scape/2009scape.github.io.git
synced 2024-11-25 20:33:18 +01:00
Funorb 0 Update Game.html title and description based on which game is being played
This commit is contained in:
parent
47916d124f
commit
1962845ee7
@ -4,42 +4,49 @@
|
||||
"image": "./img/ageofwar.avif",
|
||||
"swf": "./swfs/ageofwar.swf",
|
||||
"forum": "https://forum.2009scape.org/viewtopic.php?t=383-age-of-war",
|
||||
"description": "Battle of the ages!",
|
||||
"warn": "Warning: This game is very LOUD"
|
||||
},
|
||||
"bloonstd1": {
|
||||
"name": "Bloons TD 1",
|
||||
"image": "./img/bloonstd1.avif",
|
||||
"swf": "./swfs/bloonstd1.swf",
|
||||
"description": "Use monkeys to stop the balloons from escaping!",
|
||||
"forum": "https://forum.2009scape.org/viewtopic.php?t=384-bloons-tower-defense-1"
|
||||
},
|
||||
"bloonstd2": {
|
||||
"name": "Bloons TD 2",
|
||||
"image": "./img/bloonstd2.avif",
|
||||
"swf": "./swfs/bloonstd2.swf",
|
||||
"description": "Use monkeys to stop the balloons from escaping, version 2!",
|
||||
"forum": "https://forum.2009scape.org/viewtopic.php?t=391-bloons-tower-defense-2"
|
||||
},
|
||||
"bloonstd3": {
|
||||
"name": "Bloons TD 3",
|
||||
"image": "./img/bloonstd3.avif",
|
||||
"swf": "./swfs/bloonstd3.swf",
|
||||
"description": "Use monkeys to stop the balloons from escaping, version 3!",
|
||||
"forum": "https://forum.2009scape.org/viewtopic.php?t=436-bloons-tower-defense-3"
|
||||
},
|
||||
"flashsonic": {
|
||||
"name": "Flash Sonic",
|
||||
"image": "./img/flashsonic.avif",
|
||||
"swf": "./swfs/flashsonic.swf",
|
||||
"description": "Run through the levels as Sonic the Hedgehog!",
|
||||
"forum": "https://forum.2009scape.org/viewtopic.php?t=385-flash-sonic"
|
||||
},
|
||||
"learntofly2": {
|
||||
"name": "Learn to Fly 2",
|
||||
"image": "./img/learntofly2.avif",
|
||||
"swf": "./swfs/learntofly2.swf",
|
||||
"description": "Help a poor penguin learn to fly!",
|
||||
"forum": "https://forum.2009scape.org/viewtopic.php?t=437-learn-to-fly-2"
|
||||
},
|
||||
"worldshardestgame": {
|
||||
"name": "World's Hardest Game",
|
||||
"image": "./img/worldshardestgame.avif",
|
||||
"swf": "./swfs/worldshardestgame.swf",
|
||||
"description": "A game that's actually hard!",
|
||||
"forum": "https://forum.2009scape.org/viewtopic.php?t=386-world-s-hardest-game"
|
||||
}
|
||||
}
|
||||
|
@ -10,8 +10,8 @@ en">
|
||||
<meta http-equiv="CACHE-CONTROL" content="NO-CACHE">
|
||||
<meta name="keywords"
|
||||
content="Action, Play Free Online Games, puzzle games, platform games, arcade games, shooter games, action games, java games, casual games, racing games, word games, retro games, classic games, browser games, strategy games, multiplayer games, arcanists, Jagex">
|
||||
<meta name="description" content="How long can you last in this platform-filled fun fest?">
|
||||
<meta name="title" content="Bouncedown">
|
||||
<meta name="description" content="Play Flash Games!">
|
||||
<meta name="title" content="Funorb - Game Loading..">
|
||||
<meta name="Author" content="2009scape.org">
|
||||
<meta name="Copyright" content="Copyright 2009scape">
|
||||
<meta name="ROBOTS" content="INDEX, FOLLOW">
|
||||
@ -22,7 +22,7 @@ en">
|
||||
<link rel="icon" type="image/vnd.microsoft.icon" href="/favicon.ico">
|
||||
<link rel="SHORTCUT ICON" href="/favicon.ico">
|
||||
<link rel="image_src" href="img/images/game/bouncedown/small.jpg">
|
||||
<title>Bouncedown</title>
|
||||
<title>Funorb - Game Loading..</title>
|
||||
<style type="text/css" media="screen">
|
||||
/*\*/
|
||||
@import url(css/global-44.css);
|
||||
@ -184,6 +184,11 @@ en">
|
||||
|
||||
if (gameData.warn) document.getElementById('warning').innerHTML = gameData.warn;
|
||||
|
||||
// Update meta tags
|
||||
document.title = `${gameData.name} - 2009Scape Funorb`;
|
||||
document.head.querySelector('meta[name="title"]').content = `${gameData.name} - 2009Scape Funorb`;
|
||||
document.head.querySelector('meta[name="description"]').content = gameData.description;
|
||||
|
||||
window.RufflePlayer = window.RufflePlayer || {};
|
||||
console.log("Loading Ruffle...");
|
||||
const ruffle = window.RufflePlayer.newest();
|
||||
|
Loading…
Reference in New Issue
Block a user