From ae2d81d6b1b5f4d24fec59b6bb236bb860dad9b0 Mon Sep 17 00:00:00 2001 From: MoskalykA <100430077+MoskalykA@users.noreply.github.com> Date: Mon, 6 Feb 2023 13:44:10 +0100 Subject: [PATCH] style(esx_multicharacter): run prettier --- [core]/esx_multicharacter/html/css/main.css | 100 ++++++++++---------- [core]/esx_multicharacter/html/js/app.js | 89 +++++++++++------ [core]/esx_multicharacter/html/ui.html | 47 +++++---- 3 files changed, 137 insertions(+), 99 deletions(-) diff --git a/[core]/esx_multicharacter/html/css/main.css b/[core]/esx_multicharacter/html/css/main.css index c8b969f1..11c38dff 100644 --- a/[core]/esx_multicharacter/html/css/main.css +++ b/[core]/esx_multicharacter/html/css/main.css @@ -1,76 +1,76 @@ -@import url('https://fonts.googleapis.com/css2?family=Raleway:wght@300;600&display=swap'); -@import url('https://fonts.googleapis.com/css2?family=Oswald&display=swap'); +@import url("https://fonts.googleapis.com/css2?family=Raleway:wght@300;600&display=swap"); +@import url("https://fonts.googleapis.com/css2?family=Oswald&display=swap"); * { - margin: 0; - padding: 0; - user-select: none; - color: rgb(255, 255, 255); - border-radius: 15px; - font-weight: 300; - font-size: 1.6vh; - font-family: Calibri, "Helvetica", san-serif; + margin: 0; + padding: 0; + user-select: none; + color: rgb(255, 255, 255); + border-radius: 15px; + font-weight: 300; + font-size: 1.6vh; + font-family: Calibri, "Helvetica", san-serif; } html { - overflow: hidden; + overflow: hidden; } p { - margin: 0 !important; + margin: 0 !important; } body { - background: transparent; + background: transparent; } .main-container { - display:none; - position: absolute; - top: 50%; - right: 150; - transform: translate(0, -50%); - border-radius: 15px; - background: rgba(15,15,15, 0.9); + display: none; + position: absolute; + top: 50%; + right: 150; + transform: translate(0, -50%); + border-radius: 15px; + background: rgba(15, 15, 15, 0.9); } .header { - font-family: 'Oswald', sans-serif; - position: absolute; - background: rgba(10, 10, 10, 0.9); - border-radius: 15px 15px 0px 0px; - height: 10%; - width: 100%; - left: 50%; - text-align: center; - transform: translate(-50%); - font-weight: 700; - padding-bottom: 5px; - font-size: 1.6rem; + font-family: "Oswald", sans-serif; + position: absolute; + background: rgba(10, 10, 10, 0.9); + border-radius: 15px 15px 0px 0px; + height: 10%; + width: 100%; + left: 50%; + text-align: center; + transform: translate(-50%); + font-weight: 700; + padding-bottom: 5px; + font-size: 1.6rem; } .footer { - position: absolute; - font-size: 0rem; + position: absolute; + font-size: 0rem; } .character-box { - display: flex; - right: 0; - flex-direction: column; - justify-content: center; - align-items: center; - text-align: center; - line-height: 1.4rem; - height: calc(30rem); - width: 17rem; - border: 1px rgba(10,10,10,0.7) solid; - box-shadow: 2px 1px 9px 3px rgba(10,10,10,0.7); + display: flex; + right: 0; + flex-direction: column; + justify-content: center; + align-items: center; + text-align: center; + line-height: 1.4rem; + height: calc(30rem); + width: 17rem; + border: 1px rgba(10, 10, 10, 0.7) solid; + box-shadow: 2px 1px 9px 3px rgba(10, 10, 10, 0.7); } h1 { - font-family: 'Oswald', sans-serif; - font-size: 22px; - padding-top: 1.3rem; - display: block; - font-weight: 0; + font-family: "Oswald", sans-serif; + font-size: 22px; + padding-top: 1.3rem; + display: block; + font-weight: 0; } diff --git a/[core]/esx_multicharacter/html/js/app.js b/[core]/esx_multicharacter/html/js/app.js index 22b5c92c..20b2a0b9 100644 --- a/[core]/esx_multicharacter/html/js/app.js +++ b/[core]/esx_multicharacter/html/js/app.js @@ -1,35 +1,68 @@ -var money = Intl.NumberFormat('en-US', { - style: 'currency', - currency: 'USD', - minimumFractionDigits: 0 +var money = Intl.NumberFormat("en-US", { + style: "currency", + currency: "USD", + minimumFractionDigits: 0, }); (() => { - Kashacter = {}; + Kashacter = {}; - Kashacter.ShowUI = function(data) { - $('body').css({"display":"block"}); - $('.main-container').css({"display":"block"}); - $('[data-charid=1]').html('