script.js
À propos du fichier
- Type de fichier
- Fichier JS de 5 Ko (text/plain)
- Confidentialité
- Fichier public, envoyé le 21 mai 2017 à 21:42, depuis l'adresse IP 78.211.x.x (France)
- Sécurité
- Ne contient aucun Virus ou Malware connus - Dernière vérification: hier
- Statistiques
- La présente page de téléchargement a été vue 646 fois depuis l'envoi du fichier
- Page de téléchargement
-
Aperçu du fichier
//2014
var musiques2014 = [
"C'est Pour",
"Par toutatis",
"Shoot un ministre",
"Autiste",
"Corleone",
"Mon Glock te mettre à genoux",
"Oz",
"Tout le monde veut des Lovés",
"Pré",
"Cosmo",
"Ils Nous Nonnaissent Pas",
"Clown",
"Sullyvan",
"Flowjob",
"Vie De Cochon",
"Pronto",
"Barbade",
"On fait pas ça",
"Fresh Prince",
"Hello",
"Justice"
];
var artistes2014 = [
"Vald",
"Vald",
"Vald",
"Vald",
"Lacrim",
"Lacrim",
"Lacrim",
"Lacrim",
"Soprano",
"Soprano",
"Soprano",
"Soprano",
"Vald",
"Vald",
"Vald",
"Lacrim",
"Lacrim",
"Lacrim",
"Soprano",
"Soprano",
"Soprano"
];
//2015
var musiques2015 = [
"Martin Eden",
"Mon âme",
"Le Horla",
"Nique les clones part.II",
"John Lennon",
"A7",
"Solides",
"Gedeon",
"Walabok",
"Talion",
"Zer",
"92i Veyron",
"Rêve d'avoir des rêves",
"Tempête",
"Égérie",
"Rêves de Gosse",
"Genny et Ciro",
"Gommorra",
"Validée",
"Attila",
"Charbon"
];
var artistes2015 = [
"Nekfeu",
"Nekfeu",
"Nekfeu",
"Nekfeu",
"SCH",
"SCH",
"SCH",
"SCH",
"Booba",
"Booba",
"Booba",
"Booba",
"Nekfeu",
"Nekfeu",
"Nekfeu",
"SCH",
"SCH",
"SCH",
"Booba",
"Booba",
"Booba"
];
//2016
var musiques2016 = [
"Humanoïde",
"Mauvaise graine",
"Réalité augmentée",
"Avant tu riais",
"DA",
"Naha",
"Dans La Légende",
"Mira",
"Périscope",
"Débrouillard",
"Exutoire",
"Quotidien de baisé",
"Esquimaux",
"O.D.",
"Vinyle",
"J'Suis QLF",
"La Vie Est Belle",
"Kratos",
"Sombre",
"QuedelaVie",
"Amnésie"
];
var artistes2016 = [
"Nekfeu",
"Nekfeu",
"Nekfeu",
"Nekfeu",
"PNL",
"PNL",
"PNL",
"PNL",
"Damso",
"Damso",
"Damso",
"Damso",
"Nekfeu",
"Nekfeu",
"Nekfeu",
"PNL",
"PNL",
"PNL",
"Damso",
"Damso",
"Damso"
];
//2017
var musiques2017 = [
"Acacia",
"Mégadose",
"Si j'arrètais",
"Je t'aime",
"Fireworks",
"Enfants Terribles",
"Rémi",
"College Rules",
"Nwaar is the new black",
"#QuedusaalVie",
"Mosaïque Solitaie",
"Dieu ne ment jamais",
"Totem",
"L.D.S",
"Ma meilleure amie",
"Woohoo",
"Talkie Walkie",
"Été Triste",
"Signaler",
"Kiétu",
"Gova"
];
var artistes2017 = [
"Vald",
"Vald",
"Vald",
"Vald",
"Columbine",
"Columbine",
"Columbine",
"Columbine",
"Damso",
"Damso",
"Damso",
"Damso",
"Vald",
"Vald",
"Vald",
"Columbine",
"Columbine",
"Columbine",
"Damso",
"Damso",
"Damso"
];
//Choix
var musiquesChoix = [
"Saleté de Rap",
"Pitbull",
"Temps Mort 2.0",
"ComDab",
"Andale"
];
var artistesChoix = [
"Georgio ft Hologram Lo'",
"Booba",
"Booba ft Lino",
"Niro",
"Sadek ft Gradur",
];
function createPlaylist(f) {
if (!(f.nbMusique.value > 0 && f.nbMusique.value < 21)) {
alert('Pas bien');
return false;
}
if (!($(f.a2014).prop('checked') || $(f.a2015).prop('checked') || $(f.a2016).prop('checked') || $(f.a2017).prop('checked'))) {
alert('Rien');
return false;
}
var html = '';
var i = 0;
while (i < f.nbMusique.value) {
var provenance = Math.floor((Math.random() * 5) + 1);
if (provenance == 1 && $(f.a2014).prop('checked')) {
var rand = Math.floor((Math.random() * musiques2014.length));
html += '<li>' + artistes2014[rand] + ' - ' + musiques2014[rand] + '</li>';
i++;
}
else if (provenance == 2 && $(f.a2015).prop('checked')) {
var rand = Math.floor((Math.random() * musiques2015.length));
html += '<li>' + artistes2015[rand] + ' - ' + musiques2015[rand] + '</li>';
i++;
}
else if (provenance == 3 && $(f.a2016).prop('checked')) {
var rand = Math.floor((Math.random() * musiques2016.length));
html += '<li>' + artistes2016[rand] + ' - ' + musiques2016[rand] + '</li>';
i++;
}
else if (provenance == 4 && $(f.a2017).prop('checked')) {
var rand = Math.floor((Math.random() * musiques2017.length));
html += '<li>' + artistes2017[rand] + ' - ' + musiques2017[rand] + '</li>';
i++;
}
else if (provenance == 5 && $("#oui").prop('checked')) {
var rand = Math.floor((Math.random() * musiquesChoix.length));
html += '<li>' + artistesChoix[rand] + ' - ' + musiquesChoix[rand] + '</li>';
i++;
}
}
$('#affichage').html(html);
return false;
}
Partager le fichier script.js sur le Web et les réseaux sociaux:
Télécharger le fichier script.js