Last active
January 28, 2019 15:22
-
-
Save Moinax/2010d8bf992c46f36c0f44f7a30838a0 to your computer and use it in GitHub Desktop.
Provide config for application TMLW
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"status": "error", | |
"lives": 3, | |
"message": "" | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"gameId": 123456, | |
"typedValue": "david guetta" | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8" /> | |
<title>Proximus - TomorrowLand Winter Contest</title> | |
<meta | |
name="viewport" | |
content="user-scalable=no, width=device-width, initial-scale=1, maximum-scale=1" | |
/> | |
<link rel="stylesheet" href="{{index.css}}"> | |
</head> | |
<body> | |
<div id="root">Loading...</div> | |
<script> | |
window.config = { | |
total: 15, | |
lives: 3, | |
translations: {{...}}, | |
url: { | |
base: '{{baseUrl}}', | |
visual: '{{visualUrl}}', | |
video: '{{videoUrl}}', | |
objects:'{{objectsUrl}}', | |
ambience: '{{ambienceUrl}}', | |
music: '{{musicUrl}}', | |
loser: '{{loserUrl}}', | |
winnerVideo: '{{winnerVideoUrl}}', | |
winnerMusic: '{{winnerMusicUrl}}', | |
button: '{{buttonUrl}}', | |
twitter: | |
"{{https://twitter.com/intent/tweet?url=https://prx.ms/2D8d80K&text=Proximus Music - Vivez l'expérience Tomorrowland Winter à l'Alpe d’Huez !}}", | |
finder: '{{finderUrl}}', | |
subsidiary: '{{subsidiaryUrl}}' | |
} | |
}; | |
</script> | |
<script> | |
window.fbAsyncInit = function() { | |
FB.init({ | |
appId: "{{2033801956727622}}", | |
cookie: true, | |
xfbml: true, | |
version: "v3.2" | |
}); | |
FB.AppEvents.logPageView(); | |
}; | |
window.fbShare = function(e) { | |
e.preventDefault(); | |
FB.ui( | |
{ | |
method: "share_open_graph", | |
action_type: "og.likes", | |
action_properties: JSON.stringify({ | |
object: { | |
"og:url": | |
"{{https://www.proximus.be/music/nl/wedstrijden/tomorrowland-winter}}", | |
"og:title": "{{Proximus Music}}", | |
"og:description": | |
"{{Vivez l'expérience Tomorrowland Winter à l'Alpe d’Huez !}}", | |
"og:image": "{{https://ptmlcontest.be/Content/img/share.jpg}}" | |
} | |
}) | |
}, | |
function(response) { | |
if (response && !response.error_message) { | |
console.log("share OK"); | |
} | |
} | |
); | |
}; | |
(function(d, s, id) { | |
let js, | |
fjs = d.getElementsByTagName(s)[0]; | |
if (d.getElementById(id)) { | |
return; | |
} | |
js = d.createElement(s); | |
js.id = id; | |
js.src = "https://connect.facebook.net/{{fr_FR}}/sdk.js"; | |
fjs.parentNode.insertBefore(js, fjs); | |
})(document, "script", "facebook-jssdk"); | |
</script> | |
<script src="{{index.js}}"></script> | |
</body> | |
</html> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"gameId": 123456, | |
"kilo": 2, | |
"grams": 5 | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"status": "success", | |
"lives": 3, | |
"answer": { | |
"name": "David Guetta", | |
"picture": | |
"https://upload.wikimedia.org/wikipedia/commons/thumb/3/33/David_Guetta_2013-04-12_001.jpg/1200px-David_Guetta_2013-04-12_001.jpg", | |
"slogan": | |
"Son slogan F*** Me I'm Famous a été collé sur les plus grands billboards d'Ibiza, juste en sortant de l'aéroport. C'est un homme pas particulièrement sexy mais tout le monde connait son visage.", | |
"sound": "" | |
} | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
window.config = { | |
lives: 3, | |
total: 15, | |
gameId: 123456, | |
customer: false, | |
url: { | |
base: 'base_url', | |
visual: 'visual_url', | |
video: 'video_url', | |
music: 'music_url', | |
ambience: 'ambience_url', | |
button: 'button_url', | |
loser: 'loser_url', | |
finder: 'finder_url', | |
winnerVideo: 'winnerVideo_url', | |
winnerMusic: 'winnerMusic_url', | |
subsidiary: 'subsidiary_url', | |
objects: 'objects_url', | |
customer: 'customer_url', | |
twitter: 'twitter_url' | |
} | |
translations: { | |
loading: "Chargement", | |
page: { | |
start: { | |
title: "The Cottage of Tomorrow", | |
text1: | |
"Parmi les références présentes dans le chalet, retrouve <strong>15 noms de DJ</strong> ayant participé à l’un des festivals Tomorrowland.", | |
text2: | |
"Quand tu penses avoir trouvé une référence à un DJ, tape simplement son nom.", | |
text3: | |
"<strong>à gagner : 7 jours de folie pour 4 personnes à l’Alpe d'Huez du 9 au 16 mars 2019 avec un accès de 3 jours au festival Tomorrowland Winter ! Avion, hôtel, ski & lift pass compris.</strong>", | |
text4: | |
"Attention, <strong>après 3 erreurs</strong>, la partie est finie.", | |
text5: | |
"Mais la route ne s’arrête pas pour autant, tu pourras retenter ta chance...", | |
button: "Chercher les références" | |
}, | |
finder: { | |
question: { | |
title: "Tape le nom du DJ dont tu as trouvé la référence", | |
close: "Fermer", | |
validation: { | |
"repeated": "Vous avez déjà trouvé cette référence", | |
"exceeding": "Vous avez déjà consommez toutes vos vies" | |
} | |
}, | |
error: { | |
title: "Mauvaise réponse", | |
text1: | |
"Chaque mauvaise réponse te fais perdre un Lotus. <br /> Au bout de <strong>3 erreurs</strong> la partie s’arrête.", | |
button: "Continue" | |
} | |
}, | |
references: { | |
title: "Références trouvées", | |
anonymous: "Non trouvé", | |
close: "Fermer" | |
}, | |
subsidiary: { | |
title: | |
"Combien pèse au total le pack du DJ Proximus présent sur cette photo ?", | |
text: "Contenu du pack : une platine, un casque audio, un ordinateur portable, un disque USB, une casquette, un déguisement de lapin, des lunettes de ski.", | |
kilo: "kilo", | |
grams: "gramme", | |
button: "Valider ma participation", | |
validation: { | |
"required": "Veuillez remplir tous les champs" | |
} | |
}, | |
thanks: { | |
success: { | |
title: "Merci pour ta participation", | |
text1: | |
"Nous te tiendrons personnellement informé si tu fais partie des gagnants.", | |
text2: | |
"<strong>N’hésite pas à revenir demain pour multiplier tes chances de gagner.</strong>", | |
text3: | |
"Tu as trouvé cette action incroyable ? <strong>Partage là à tes amis.</strong>" | |
}, | |
fail: { | |
title: "La partie est finie", | |
text1: "", | |
text2: | |
"<strong>N’hésite pas à revenir demain pour multiplier tes chances de gagner.</strong>", | |
text3: | |
"Tu as trouvé cette action incroyable ? <strong>Partage là à tes amis.</strong>" | |
}, | |
customer: { | |
text1: "<strong>En attendant, deviens client Proximus Epic pour avoir une chance de gagner :</strong>", | |
text2: "7 jours de folie au festival Tomorrowland à l'Alpe d'Huez du 9 au 16 mars 2019 avec un accès de 3 jours au festival Tomorrowland Winter ! Avion, hôtel, ski & lift pass compris.", | |
button: "Devenir client Proximus" | |
} | |
} | |
}, | |
components: { | |
counter: { | |
text1: "références trouvées" | |
}, | |
lives: { | |
title: "Chances restantes" | |
}, | |
references: { | |
button: "Références" | |
} | |
} | |
} | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment