- Make a classic iframe:
<iframe src="file.html">
Sorry! Your browser does not support iframe tag!
</iframe>
- Make the right url adress:
- we start with
https://zahadneokurkycz.github.io/copy-api/
-
Add
?theme=
to the url and choose one from options (light
ordark
) -
Add
&text=
and text that you want to be copied to the url -
And finnaly add
&outline=
and choose one from options:true
(if you want button to be in outline style) orfalse
if you want classic style. -
The final address should look like this:
https://zahadneokurkycz.github.io/copy-api/?theme=dark&text=Text-to-copy&outline=true
-
Replace
file.html
in thesrc
attribute with your url adress -
The final code should look like this:
<iframe src="https://zahadneokurkycz.github.io/copy-api/?theme=dark&text=Text-to-copy&outline=true">
Sorry! Your browser does not support iframe tag!
</iframe>