Skip to content

Commit

Permalink
hiding nav
Browse files Browse the repository at this point in the history
  • Loading branch information
SH20RAJ committed Feb 13, 2024
1 parent 2451d4a commit 5c09921
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion script.js
Original file line number Diff line number Diff line change
Expand Up @@ -294,4 +294,5 @@ let embed = document.getElementById('embed');
embed.addEventListener("click", () => {

prompt('Copy the iframe CODE','<iframe width="560" height="315" src="'+ location.href +'?embed=true" title="Codes20 code player" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share" allowfullscreen></iframe>')
})
})
(getParameterByName(embed)) ?document.querySelector('nav').style.display = "hidden":null;

0 comments on commit 5c09921

Please sign in to comment.