1 / 1
+ ${v.name} +0 / 1
+ ${v.name} +' + + $('#phone-new-box-main-playername').append(AddOption2); + }); +}); + +$(document).on('click', '#jobcenter-leave-grouped', function(e){ + e.preventDefault(); + var CSN = QB.Phone.Data.PlayerData.citizenid; + var id = $(this).data('id') + $.post('https://slrn_groups/jobcenter_leave_grouped', JSON.stringify({ + id: id, + csn: CSN, + })); +}); + +var buttonStart = document.getElementById('button-start'); +var buttonStop = document.getElementById('button-stop'); +var buttonReset = document.getElementById('button-reset'); + +onSettingsChange((settings) => { + let theme = settings.display.theme; + document.getElementsByClassName('app')[0].dataset.theme = theme; +}); + +getSettings().then((settings) => { + let theme = settings.display.theme; + document.getElementsByClassName('app')[0].dataset.theme = theme; +}); + + +$.post('https://slrn_groups/onStartup'); diff --git a/ui/styles.css b/ui/styles.css new file mode 100644 index 0000000..43557ee --- /dev/null +++ b/ui/styles.css @@ -0,0 +1,443 @@ +* { + margin: 0; + padding: 0; + box-sizing: border-box; +} + +@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@200&display=swap'); + + +@font-face { + font-family: 'password'; + font-style: normal; + src: url(https://jsbin-user-assets.s3.amazonaws.com/rafaelcastrocouto/password.ttf); +} + +input.jobcenter-input-password, input.jobcenter-input-password2 { + font-family: 'password'; +} + +#phone-menu-icon{ + position: relative; + top: 0.2vh; + right: 26.2vh; + font-size: 1.4vh; + color: white; +} + +html, +body { + margin: 0; + padding: 0; + + box-sizing: border-box; + visibility: hidden; + + font-family: 'Poppins', sans-serif; +} + +.app { + width: 100%; + height: 100%; + + display: flex; + align-items: center; + justify-content: center; + flex-wrap: wrap; + + background-color: var(--background-primary); +} + +.app-wrapper { + width: 100%; + height: 100%; + + display: flex; + flex-direction: column; + align-items: start; + justify-content: center; + gap: 3rem; +} + +.header { + position: absolute; + width: 90%; + height: 10%; + /* top: 8%; */ + top: 8%; + left: 6%; + right: 0; + color: white; + /* font-family: 'Poppins', sans-serif; */ + font-size: 1.3vh; + /* margin: 0 auto; */ +} + +.jobcenter-header { + position: absolute; + width: 90%; + height: 10%; + /* top: 8%; */ + top: 19%; + left: 6%; + right: 0; + color: white; + /* font-family: 'Poppins', sans-serif; */ + font-size: 2.0vh; + /* margin: 0 auto; */ +} + +.jobcenter-btn-create-group{ + display: inline; + background: #8ee074; + padding: 2% 4%; + transition: 0.2s; + border-radius: 4px; + color: black; + cursor: pointer; +} +.jobcenter-btn-create-group:hover{ + background: #6cac59; +} + +.button-wrapper { + display: flex; + flex-direction: column; + text-align: center; + gap: 0.2rem; +} + +.button-wrapper { + gap: 1rem; +} + +.title { + font-size: 20px; + font-weight: 700; + color: var(--text-primary); +} + +/* Do not edit, this allows you to view changes easily in your browser */ +#phone-wrapper { + display: none; + + position: absolute; + bottom: 0; + top: 0; + left: 0; + right: 0; + + margin: auto; + + width: 29rem; + height: 58.5rem; +} + +.phone-menu-text{ + position: relative; + margin-left: 10%; + margin-bottom: -10%; + width: 80%; + border: none; + background: none; + outline: none; + text-indent: 3vh; + text-align: left; + line-height: 3.0vh; + font-size: 1.75vh; + overflow: hidden; + color: white; + border-bottom: .1vh solid #fff; + transition: 0.25s; +} + +.phone-menu-main{ + position: absolute; + transform: translate(-50%, -50%); + top: 50%; + left: 50%; + padding-top: 10%; + padding-bottom: 5%; + width: 73%; + background-color: rgb(59, 59, 59); +} + +.phone-menu-title{ + position: relative; + left: 3.3vh; + font-size: 1.2vh; + color: white; +} + +.phone-menu-body{ + display: none; + position: absolute; + transform: translate(-50%, -50%); + top: 50%; + left: 50%; + width: 100%; + height: 100%; + background-color: rgba(0, 0, 0, 0.624); + z-index: 700; +} + +.phone-menu-button{ + display: inline; + transition: 0.25s; + padding: 2%; + border-radius: 5px; + color: black; + font-family: 'Roboto', sans-serif; + font-size: 1.4vh; + margin-bottom: 4%; +} + +.phone-menu-accept{ + background:#90e278; + margin-left: 25%; + padding: 4.0%; + cursor: pointer; +} +.phone-menu-accept:hover{ + background: #6cac59; +} + +.phone-menu-cancel{ + background:#f6a167; + margin-left: 15%; + padding: 4.0%; + cursor: pointer; +} +.phone-menu-cancel:hover{ + background: #c27e47; +} + +.phone-new-box-main input::-webkit-inner-spin-button { + -webkit-appearance: none; +} + +#phone-new-box-main-playername { + width: 86.3%; + margin-left: 6.5%; +} + +.jobcenter-playerlist { + width: 100%; + height: 100%; + background-color: #242833; + bottom: 0%; + position: absolute; + overflow: hidden; +} + +.casino-text-clear{ + text-align: center; + color: whitesmoke; +} + +.jobcenter-playerlist2 { + width: 100%; + height: 60.5%; + background-color: #242833; + bottom: 0; + position: relative; +} + +.jobcenter-div-active-stagee { + width: 100%; + padding: 10px; + display: flex; + align-items: center; + gap: 10px; + color: white; + font-size: 1.5vh; + position: relative; + height: auto; + word-break: break-word; + } + +.jobcenter-playerlist-list { + height: 4vh; + font-size: 2vh; + border-bottom: 1px white solid; + background: #3D6285; +} + +.jobcenter-playerlist-name { + color: white; + /* background-color: black; */ + height: 100%; + font-size: 1.55vh; + text-align: left; + position: absolute; + left: 27%; + margin-top: 5px; +} + +.jobcenter-playerlist-header { + color: white; + margin-left: 6%; + margin-top: 14%; + font-size: 1.7vh; + margin-bottom: 5%; +} + +.jobcenter-playerlist-leave { + background: #95EF77; + margin-left: 36.5%; + padding: 2.8% 5%; + /* font-weight: 700; */ + bottom: 7.5%; + position: absolute; + cursor: pointer; + /* top: 0; */ +} + +.jobcenter-playerlist-leave:hover { + background: #629e4e; +} + +.isDone { + text-decoration: line-through; + background: #2c465f !important; + position: relative; + } + + .isDone::after { + height: 30px; + background: #008685 !important; + } + +.jobcenter-div-active-stagee::after { + content: ''; + height: 12px; + background: #4155C0; + left: -23px; + top: -3px; + width: 12px; + position: absolute; + border-radius: 100%; + } + + .jobcenter-div-active-stagee::before { + content: ''; + height: 90%; + background: white; + left: -18px; + top: 15px; + width: 2px; + position: absolute; + } + +.jobcenter-div-job-group{ + /* display: inline; */ + width: 98%; + margin-left: 1%; + margin-bottom: 2%; + padding-left: 5%; + background-color: #2c465f; + transition: 0.2s; + color: whitesmoke; + border-bottom: 2px solid #f5f5f5ad; + border-radius: 2px; +} + +.jobcenter-div-active-stage{ + width: 100%; + padding: 10px; + display: flex; + align-items: center; + gap: 10px; + color: white; + font-size: 1.5vh; + position: relative; + height: auto; + font: -webkit-control; +} + +.jobcenter-Groupjob { + margin-top: 16%; + width: 99%; + display: flex; + flex-direction: column; + gap: 23px; + padding-left: 9%; + margin-top: 47%; + border-top: 2px solid #7d7d7d; + width: 87%; + display: flex; + padding-top: 10px; + align-content: center; + align-items: center; + margin-left: 6%; + height: 70%; + overflow: auto; +} + +.jobcenter-groupjob-timer { + display: none; + width: 100%; + font-size: 25px; + top: 0px; + position: absolute; + color: white; + margin-top: 30px; + margin-left: 190px; +} + +.jobcenter-Groupjob::-webkit-scrollbar { + display: none; +} + +.jobcenter-Groupjob-background { + background: black; + width: 100%; + height: 100%; +} + +.jobcenter-div-job-group:hover{ + background-color: #2e4d6a; +} + +.jobcenter-div-job-group-image{ + font-size: 250%; + display: inline-block; +} + +.jobcenter-option-class-body{ + text-align: right; +} + +.jobcenter-div-job-group-body-main{ + display: inline-block; + position: absolute; + /* background: black; */ + width: 70%; + max-width: 70%; + margin-top: 4%; + margin-left: 4%; +} + +#jobcenter-list-group:hover{ + color: #8ee074; +} + +#jobcenter-delete-group:hover{ + color: #dc3333; +} + +.jobcenter-list { + position: absolute; + width: 88.8%; + margin: 0 auto; + left: -1%; + right: 0; + border-radius: .5vh; + overflow-y: scroll; + bottom: 0%; + height: 76%; +} + +.jobcenter-list::-webkit-scrollbar { + display: none; +} \ No newline at end of file