Skip to content

Commit

Permalink
Final commit
Browse files Browse the repository at this point in the history
  • Loading branch information
umarkhan0 committed Aug 16, 2023
1 parent aadda7c commit e816c9e
Show file tree
Hide file tree
Showing 6 changed files with 86 additions and 21 deletions.
30 changes: 26 additions & 4 deletions app.js
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,17 @@ button.addEventListener("click", () => {
</div>
</div>
</center>
<div class="sound"></div>
<iframe width="0" height="0" src="https://www.youtube.com/embed/k4VivDkES2s?rel=0&amp;autoplay=1" allow='autoplay' </iframe>
`
let song = document.querySelector(".sound");
setInterval(()=>{
song.innerHTML = `
<iframe width="0" height="0" src="https://www.youtube.com/embed/k4VivDkES2s?rel=0&amp;autoplay=1" allow='autoplay' </iframe>
`
console.log("chal gya")
},62000)

let name = document.querySelector(".name");
console.log(window.location.host)
Expand All @@ -75,17 +85,19 @@ button.addEventListener("click", () => {

name.textContent = finalyRes;
}



console.log(name.textContent)
let getError = `http://${window.location.host} http://${window.location.host}`
console.log(getError)
if (name.textContent == getError) {
name.textContent = 'Inter Name'
};
let buttonSet = document.getElementById("but-name");
let input = document.querySelector(".name-inter");
buttonSet && buttonSet.addEventListener('click', (event) => {
event.preventDefault();
let name = document.querySelector(".name");
var searchParams = new URLSearchParams(input.value.trim());
if (input.value.trim()) {

history.pushState({}, '', '?' + searchParams.toString())
input.value = ""
let name = document.querySelector(".name");
Expand All @@ -107,6 +119,14 @@ button.addEventListener("click", () => {
}
input.style.display = "none";
buttonSet.style.display = "none"
document.querySelector(".maim-con").innerHTML = `
<a class="sent-watts" href="https://api.whatsapp.com/send?text=Check%20out%20this%20link%20${encodeURIComponent(window.location.href.trim())}" target="_blank">
<div class="watssBtn">
<img height="30px" src="./images/wp.svg"/>
<span>Click here to Share on WhatsApp</span>
<img height="30px" src="./images/wp.svg"/>
</a>
`

}
else {
Expand All @@ -118,3 +138,5 @@ button.addEventListener("click", () => {

}, 2000)
})
// console.log(window.location.search)
// console.log(encodeURIComponent(window.location.href.trim()))
Binary file not shown.
Binary file added images/Pakistan Zindabad.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
37 changes: 37 additions & 0 deletions images/wp.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
</div>
<div id="wellcom" style="display: none;"></div>

<!-- <iframe width="560" height="315" src="https://www.youtube.com/embed/EiMX1G8pnYA" title="YouTube video player" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share" allowfullscreen></iframe> -->


<script src="app.js"></script>
Expand Down
39 changes: 22 additions & 17 deletions style.css
Original file line number Diff line number Diff line change
Expand Up @@ -58,9 +58,6 @@
.left-side {
left: 0% !important;
position: fixed !important;

/* flex-direction: column; */

}

.left-side-images>img {
Expand All @@ -77,7 +74,7 @@
display: flex;
justify-content: center;
align-items: center;
margin-bottom: 15px;
margin-bottom: 45px;
margin-top: 20px;
}

Expand Down Expand Up @@ -110,7 +107,7 @@
font-family: arial black;
font-size: 20px;
background-image:
linear-gradient(to right, red, orange, yellow, green, blue, indigo, violet, red);
linear-gradient(to right, green, orange, yellow, green, blue, indigo, violet, red);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
animation: rainbow-animation 200s linear infinite;
Expand Down Expand Up @@ -159,16 +156,24 @@
opacity: 0.5;
}

/* @media screen and (max-width: 1021px) {
.card{
width: 355px;
}
.watssBtn {
width: 90%;
background-color: #34af23;
padding: 8px;
border-radius: 9px;
cursor: pointer;
}
@media screen and (max-width: 464px) {
.card{
width: 100% !important;
height: 100% !important;
margin: unset;
position: absolute !important;
}
} */

.watssBtn:active {
opacity: 0.5;
}

.watssBtn>span {
color: #fff;
font-size: small;
}

.sent-watts {
color: #fff;
text-decoration: none;
}

0 comments on commit e816c9e

Please sign in to comment.