Skip to content

Commit

Permalink
basic embed
Browse files Browse the repository at this point in the history
  • Loading branch information
SH20RAJ committed Feb 13, 2024
1 parent cf23f24 commit 2451d4a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion script.js
Original file line number Diff line number Diff line change
Expand Up @@ -293,5 +293,5 @@ let embed = document.getElementById('embed');

embed.addEventListener("click", () => {

prompt('Copy the iframe CODE','<iframe width="560" height="315" src="'+ location.href +'" title="Codes20 code player" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share" allowfullscreen></iframe>')
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>')
})

0 comments on commit 2451d4a

Please sign in to comment.