Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
shubhiscoding committed Jan 27, 2024
1 parent 492a775 commit 409cd9b
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
2 changes: 2 additions & 0 deletions index.css
Original file line number Diff line number Diff line change
Expand Up @@ -82,12 +82,14 @@ a:hover{
color: #b2abff;
transform: scale(1.1);
transition: transform 0.4s ease-in-out;
cursor: pointer;
}
.logo span:hover,
.logo span:hover ~ img {
color: #b2abff;
transform: scale(1.1);
transition: transform 0.4s ease-in-out;
cursor: pointer;
}

.logo span:not(hover){
Expand Down
7 changes: 7 additions & 0 deletions script.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,13 @@
const artistname = document.querySelector('.artistname');
const artisturl = document.querySelector('.artisturl');
const search_btn = document.querySelector('.search_btn');
const logo = document.querySelector('.logo');
logo.querySelector('span').addEventListener('click', function(){
window.open(location.href, '_blank');
});
logo.querySelector('img').addEventListener('click', function(){
window.open(location.href, '_blank');
});
search_btn.addEventListener('click', function(){
if(artistname.value && artisturl.value){
window.alert("Fill Only One Field");
Expand Down

0 comments on commit 409cd9b

Please sign in to comment.