From 5637e81910fc44dd9f3cb361f0d505c80ac0f766 Mon Sep 17 00:00:00 2001 From: quoije Date: Wed, 14 Sep 2022 01:04:29 -0400 Subject: [PATCH] add blackjack login/register front --- public/assets/css/oof.css | 30 ++++++++++++++++++++++++ public/assets/css/xp.css | 34 ++++++--------------------- public/assets/js/site.js | 48 +++++++++++++++++++++++---------------- public/index.html | 27 ++++++++++++++++++++-- 4 files changed, 90 insertions(+), 49 deletions(-) diff --git a/public/assets/css/oof.css b/public/assets/css/oof.css index 99dc093..12839d2 100644 --- a/public/assets/css/oof.css +++ b/public/assets/css/oof.css @@ -58,6 +58,11 @@ body { text-shadow: 4px 0px var(--teal); } +.typebox { + margin-top: 2%; + margin-bottom: 2%; +} + #sbody { font-size: 15px; margin-left: 5px; @@ -103,6 +108,31 @@ body { } +#bjlogin { + margin: 0 auto; + margin-left: auto; + margin-right: auto; + text-align:center; +} + +#bjmenu { + margin-bottom: -2px; +} + +#tab1bj { + margin-right: 2px; +} + +.bjbuttons { + margin: 2px; +} + +#mainbj { + padding-bottom: 2%; + border: 1px solid black; + background-color: #F3F3EF; +} + #ws:link { text-decoration: none; color: inherit; diff --git a/public/assets/css/xp.css b/public/assets/css/xp.css index f78a60e..2d8a2db 100644 --- a/public/assets/css/xp.css +++ b/public/assets/css/xp.css @@ -549,7 +549,7 @@ legend { menu[role=tablist] { position: relative; - margin: 0 0 -2px; + margin: 0 0 0; text-indent: 0; list-style-type: none; display: flex; @@ -557,6 +557,7 @@ menu[role=tablist] { } menu[role=tablist] button { + background: #d0d0bf; z-index: 1; display: block; color: #222; @@ -565,19 +566,10 @@ menu[role=tablist] button { } menu[role=tablist] button[aria-selected=true] { - padding-bottom: 2px; - margin-top: -2px; - background-color: #ece9d8; position: relative; z-index: 8; - margin-left: -3px; - margin-bottom: 1px } -menu[role=tablist] button:focus { - outline: 1px dotted #222; - outline-offset: -4px -} menu[role=tablist].justified button { flex-grow: 1; @@ -1004,14 +996,8 @@ legend { } menu[role=tablist] button { - background: linear-gradient(180deg, #fff, #fafaf9 26%, #f0f0ea 95%, #ecebe5); - margin-left: -1px; - margin-right: 2px; - border-radius: 0; - border-color: #91a7b4; - border-top-right-radius: 3px; - border-top-left-radius: 3px; - padding: 0 12px 3px + padding: 0 12px 3px; + border-bottom: 1px solid #F3F3EF; } menu[role=tablist] button:hover { @@ -1021,23 +1007,17 @@ menu[role=tablist] button:hover { } menu[role=tablist] button[aria-selected=true] { - border-color: #919b9c; - margin-right: -1px; - border-bottom: 1px solid transparent; + background: #F3F3EF; border-top: 1px solid #e68b2c; - box-shadow: inset 0 2px #ffc73c + box-shadow: inset 0 2px #ffc73c; + border-bottom: 1px solid #F3F3EF; } menu[role=tablist] button[aria-selected=true]:first-of-type:before { content: ""; display: block; position: absolute; - z-index: -1; - top: 100%; - left: -1px; - height: 2px; width: 0; - border-left: 1px solid #919b9c } ul.tree-view { diff --git a/public/assets/js/site.js b/public/assets/js/site.js index 7047111..170b179 100644 --- a/public/assets/js/site.js +++ b/public/assets/js/site.js @@ -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 += "
" + nomdesc[0] + "
Meaculpa.mpeg
" + nomdesc[2] + "
"; 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 = "" + " é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 = "
" + } + + function registerTab(){ + console.log("registerTab"); + tab1bj.setAttribute("aria-selected", "false"); + tab2bj.setAttribute("aria-selected", "true"); + mainbj.innerHTML = "
" + } + + // other scripts + function switchTab() { $('[href="#ep"]').tab('show'); } diff --git a/public/index.html b/public/index.html index 144da86..34177cd 100644 --- a/public/index.html +++ b/public/index.html @@ -19,7 +19,6 @@ - @@ -105,7 +104,30 @@
-

ayy lmao --

+

+ blackjack tes bazou coins LOL

+
+
+
+ connexion +
+
+
+
+
+ + + + +
+
+
+
+
+

bazous$:

+

wallet:

+
+
@@ -141,6 +163,7 @@ +