add blackjack login/register front
This commit is contained in:
+28
-20
@@ -37,10 +37,6 @@ jQuery(function($) {
|
||||
const jmTXT = "Allons-nous-en, dit le postillon, de ses moeurs que pour les gens de génie. Donnez-la-moi pour que je me contiens plus. Veuillez écouter, je force ceux qui veulent mourir, me dit mon oncle, c'est infaillible, mon cher... Perdue, la pauvre malheureuse se débattit contre la crise qui venait d'avoir un papa absent. Point du tout : je ne suis rien. ";
|
||||
|
||||
// debug
|
||||
console.log("testing function")
|
||||
console.log(chckGender());
|
||||
|
||||
|
||||
loadapi();
|
||||
function getData(gender) {
|
||||
let malecnt = chckGender()[0];
|
||||
@@ -68,7 +64,6 @@ jQuery(function($) {
|
||||
{
|
||||
console.log("already loaded");
|
||||
}
|
||||
console.log(equLoaded);
|
||||
}
|
||||
|
||||
$("#rss-feeds").rss("https://anchor.fm/s/af11b98/podcast/rss", {
|
||||
@@ -138,8 +133,6 @@ jQuery(function($) {
|
||||
countMale = -1;
|
||||
countFemale = -1;
|
||||
let body = "";
|
||||
console.log("ayyyy");
|
||||
|
||||
nomsEqu.forEach(equipeTable);
|
||||
document.getElementById("equtbbody").innerHTML = body;
|
||||
function equipeTable(item, index) {
|
||||
@@ -147,12 +140,9 @@ jQuery(function($) {
|
||||
let picurl;
|
||||
let count;
|
||||
nomdesc = equipeText(item);
|
||||
console.log(nomdesc[0]);
|
||||
console.log(nomdesc[1]);
|
||||
if (nomdesc[1]){picurl = getData('female');countFemale++;count = countFemale;console.log(countFemale);}
|
||||
else{picurl = getData('male');countMale++;count = countMale;console.log(countMale);};
|
||||
if (nomdesc[1]){picurl = getData('female');countFemale++;count = countFemale;}
|
||||
else{picurl = getData('male');countMale++;count = countMale;};
|
||||
try {
|
||||
console.log(picurl);
|
||||
body += "<tr><td><div id='playerwindow' class='window' style='margin: auto;'><div class='title-bar' style='padding-top: 15px; padding-bottom: 15px;'><div id='title-bar-xp'class='title-bar-text'> " + nomdesc[0] + "</div></div><div class='window-body'><img src='" + picurl.toString() + "'></div></div></td><td style='padding-top: 3%;'><div id='playerwindow' class='window'><div class='title-bar'style='padding-top: 15px; padding-bottom: 15px;'><div id='title-bar-xp'class='title-bar-text'>Meaculpa.mpeg</div><div class='title-bar-controls'><button aria-label='Close'></button></div></div><div class='window-body'>" + nomdesc[2] + "</td></div></div></tr>";
|
||||
apiLoaded = 1;
|
||||
equLoaded = 1;
|
||||
@@ -230,7 +220,6 @@ jQuery(function($) {
|
||||
}
|
||||
|
||||
var audio = document.getElementById('player');
|
||||
console.log(audio.src);
|
||||
|
||||
// check if ep is in cache
|
||||
|
||||
@@ -238,7 +227,6 @@ jQuery(function($) {
|
||||
|
||||
// cookie last playback
|
||||
if (Cookies.get("lastep-title")) {
|
||||
console.log("playback function")
|
||||
document.getElementById("lienep").innerHTML= Cookies.get("lastep-title");
|
||||
document.getElementById("sbody").innerHTML= Cookies.get("lastep-body") + "....";
|
||||
document.getElementById("player").setAttribute('src', Cookies.get("lastep-src"));
|
||||
@@ -256,7 +244,6 @@ jQuery(function($) {
|
||||
|
||||
function checkepcache(){
|
||||
if (Cookies.get("lastep-src")){
|
||||
console.log("yahh");
|
||||
const epstab = document.getElementById("epstab");
|
||||
playicon();
|
||||
};
|
||||
@@ -283,7 +270,6 @@ jQuery(function($) {
|
||||
epstab.innerHTML = "épisodes";
|
||||
}
|
||||
else {
|
||||
console.log("ayyyy");
|
||||
epstab.innerHTML = "<img id='playicon' src='assets/img/spek.icon.svg' width='20px'></img>" + " épisodes";
|
||||
}
|
||||
|
||||
@@ -292,16 +278,13 @@ jQuery(function($) {
|
||||
function stopplayer(){
|
||||
document.getElementById("lienep").innerHTML= title;
|
||||
document.getElementById("sbody").innerHTML= body + "....";
|
||||
document.getElementById("lienep").href= linkdec;
|
||||
document.getElementById("lienep").href= linkdec;login
|
||||
}
|
||||
|
||||
function play(src, title, date, body) {
|
||||
var audio = document.getElementById('player');
|
||||
console.log(src);
|
||||
console.log(title);
|
||||
var linkenc = src.substring(src.lastIndexOf('/')+1);
|
||||
var linkdec = decodeURIComponent(linkenc);
|
||||
console.log(linkdec)
|
||||
document.getElementById("lienep").innerHTML= title;
|
||||
document.getElementById("sbody").innerHTML= body + "....";
|
||||
document.getElementById("lienep").href= linkdec;
|
||||
@@ -318,6 +301,31 @@ jQuery(function($) {
|
||||
checkepcache();
|
||||
}
|
||||
|
||||
|
||||
//blackjack
|
||||
|
||||
/// switch tab
|
||||
|
||||
let mainbj = document.getElementById("mainbj");
|
||||
let tab1bj = document.getElementById("tab1bj");
|
||||
let tab2bj = document.getElementById("tab2bj");
|
||||
|
||||
function loginTab(){
|
||||
console.log("loginTab");
|
||||
tab1bj.setAttribute("aria-selected", "true");
|
||||
tab2bj.setAttribute("aria-selected", "false");
|
||||
mainbj.innerHTML = "<div id='logininput' class='typebox'><input id='login' type='text' placeholder='nom d" + "'" + "utilisateur'/><input id='pass' type='password' placeholder='mot de passe'/></div><div><button class='bjbuttons'>se connecter</button><button class='bjbuttons' disabled>logout</button></div>"
|
||||
}
|
||||
|
||||
function registerTab(){
|
||||
console.log("registerTab");
|
||||
tab1bj.setAttribute("aria-selected", "false");
|
||||
tab2bj.setAttribute("aria-selected", "true");
|
||||
mainbj.innerHTML = "<div id='logininput' class='typebox'><input id='login' type='text' placeholder='nom d" + "'" + "utilisateur'/><input id='pass' type='password' placeholder='mot de passe'/><input id='email' type='text' placeholder='email'/><input id='conf_pass' type='password' placeholder='confirmer mot de passe'/></div><div id='bjbuttons'><button disabled>s'enregistrer</button></div>"
|
||||
}
|
||||
|
||||
// other scripts
|
||||
|
||||
function switchTab() {
|
||||
$('[href="#ep"]').tab('show');
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user