Skip to content

Commit

Permalink
submit
Browse files Browse the repository at this point in the history
  • Loading branch information
GO-viper7 committed Sep 27, 2022
1 parent 2b7d561 commit 3cda97a
Show file tree
Hide file tree
Showing 5 changed files with 79 additions and 4 deletions.
3 changes: 2 additions & 1 deletion admins.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,6 @@
{"userId": "384185988336844802"},
{"userId": "788603786452664332"},
{"userId": "888393926527029258"},
{"userId": "984547457851617300"}
{"userId": "984547457851617300"},
{"userId": "485238399138004995"}
]
62 changes: 62 additions & 0 deletions public/css/settings.css
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,68 @@
border-bottom-left-radius: 20px;
}


.buyPanel {
background: #eaecf7;
padding: 30px 0px;
border-radius: 20px;
text-align: start;
display: none; /* */
flex-direction: column;
margin-right: 50px;
position: fixed;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
color: #1c213e;
font-size: 1.05rem;
z-index: 10;

}

.buyPanel p{
padding: 0px 30px;
}

.buyPanel p:nth-child(1){
font-size: 1.6rem;
}

.buyPanel p:nth-child(3){
margin-top: 20px;
margin-bottom: 15px;
font-size: .95rem;
}

.buyPanel p:nth-child(7){
margin-top: 20px;
margin-bottom: 15px;
}

.buyPanel p span{
color: #8392FF;
}

.buyButtons {
margin-left: 350px;
margin-top: 30px;
padding-right: 20px;
display: flex;
}

.buyButtons button{
border: none;
color: white;
font-size: 1.1rem;
background: #8392FF;
border-radius: 5px;
padding: 4px 10px;
cursor: pointer;
}

.buyButtons button:nth-child(1){
margin-right: 7px;
}
.icons svg {
fill: #fff;
margin: 0 7px;
Expand Down
10 changes: 10 additions & 0 deletions routes/test.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
async function f() {
const promise = new Promise((resolve,reject) => {
setTimeout(() => {
console.log('Hello')
}, 1000)
})
console.log(await promise)
}

f()
4 changes: 3 additions & 1 deletion views/settings.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
<title>Limbo Settings</title>
<link rel="stylesheet" href="/css/settings.css">
<link rel="stylesheet" href="/css/global.css">

</head>
<body>
<!-- hamburger -->
Expand Down Expand Up @@ -135,7 +136,7 @@
<a href="/inventory">
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="M10 19.5c0 .829-.672 1.5-1.5 1.5s-1.5-.671-1.5-1.5c0-.828.672-1.5 1.5-1.5s1.5.672 1.5 1.5zm3.5-1.5c-.828 0-1.5.671-1.5 1.5s.672 1.5 1.5 1.5 1.5-.671 1.5-1.5c0-.828-.672-1.5-1.5-1.5zm6.305-15l-3.432 12h-10.428l-2.937-7h11.162l-1.412 5h2.078l1.977-7h-16.813l4.615 11h13.239l3.474-12h1.929l.743-2h-4.195z"/></svg>
</a>
<svg width="24" height="24" xmlns="http://www.w3.org/2000/svg" fill-rule="evenodd" clip-rule="evenodd"><path d="M1 20v-2.946c1.993-.656 2.575-2.158 3.668-6.077.897-3.218 1.891-6.784 4.873-8.023-.027-.147-.041-.299-.041-.454 0-1.38 1.12-2.5 2.5-2.5s2.5 1.12 2.5 2.5c0 .156-.014.309-.042.458 2.987 1.244 3.984 4.813 4.884 8.033 1.103 3.95 1.697 5.423 3.658 6.062v2.947h-7c0 2.208-1.792 4-4 4s-4-1.792-4-4h-7zm14 0h-6c0 1.656 1.344 3 3 3s3-1.344 3-3zm-13-1h20v-1.241c-2.062-.918-2.82-3.633-3.621-6.498-1.066-3.814-2.167-7.758-6.379-7.761-4.21 0-5.308 3.937-6.369 7.745-.8 2.872-1.559 5.593-3.631 6.514v1.241zm11.492-16.345l.008-.155c0-.828-.672-1.5-1.5-1.5s-1.5.672-1.5 1.5l.008.152c.455-.099.949-.152 1.487-.152.542 0 1.039.054 1.497.155z"/></svg>
<svg style="cursor: pointer" id="notif" width="24" height="24" xmlns="http://www.w3.org/2000/svg" fill-rule="evenodd" clip-rule="evenodd"><path d="M1 20v-2.946c1.993-.656 2.575-2.158 3.668-6.077.897-3.218 1.891-6.784 4.873-8.023-.027-.147-.041-.299-.041-.454 0-1.38 1.12-2.5 2.5-2.5s2.5 1.12 2.5 2.5c0 .156-.014.309-.042.458 2.987 1.244 3.984 4.813 4.884 8.033 1.103 3.95 1.697 5.423 3.658 6.062v2.947h-7c0 2.208-1.792 4-4 4s-4-1.792-4-4h-7zm14 0h-6c0 1.656 1.344 3 3 3s3-1.344 3-3zm-13-1h20v-1.241c-2.062-.918-2.82-3.633-3.621-6.498-1.066-3.814-2.167-7.758-6.379-7.761-4.21 0-5.308 3.937-6.369 7.745-.8 2.872-1.559 5.593-3.631 6.514v1.241zm11.492-16.345l.008-.155c0-.828-.672-1.5-1.5-1.5s-1.5.672-1.5 1.5l.008.152c.455-.099.949-.152 1.487-.152.542 0 1.039.054 1.497.155z"/></svg>
<a href="#">
<img src="https://cdn.discordapp.com/avatars/<%= user.id %>/<%= user.avatar %>.png" class="img-profile"/>
</a>
Expand Down Expand Up @@ -179,6 +180,7 @@
</div>
</div>
<script>
const backg = document.querySelector(".addon");
document.getElementById('notif').addEventListener("click", () => {
backg.style.display = "block";
Expand Down
4 changes: 2 additions & 2 deletions views/shop.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -695,7 +695,7 @@
}, 1000)
}
else if (Number(a) >= q) {
if (profCheck.name && profCheck.gender && profCheck.country && profCheck.zipCode && profCheck.houseNumber && profCheck.city && profCheck.streetName) {
if (profCheck.wallet && profCheck.name && profCheck.gender && profCheck.country && profCheck.zipCode && profCheck.houseNumber && profCheck.city && profCheck.streetName) {
const glob = Number(`<%- prod.length %>`)
let products = JSON.parse(`<%- products %>`)
let prodFlag = 0
Expand Down Expand Up @@ -756,7 +756,7 @@
document.getElementById("panel"+t).style.display = "none";
backg.style.display = "none";
document.getElementById('alertS').style.display = "block"
document.getElementById('alertS').innerText = "Profile Incomplete!"
document.getElementById('alertS').innerText = "Wallet Address Incomplete!"
setTimeout(() => {
document.getElementById("panel"+t).style.display = "block";
backg.style.display = "block";
Expand Down

0 comments on commit 3cda97a

Please sign in to comment.