I don’t really mind about people being able to access the code on my account, it’s just this big, obvious button on the embeds that’s the issue as this is where I think most people could very easily locate the solution code - do you think there’s a way to make it smaller somehow / remove it?
If it is not public, then users will not be able to access the iframe. There is no way (that I know of) to alter the CSS of the button within an iframe.
yes, lite means to show a simplified version, instead of the full blown cover page of the repl. outputonly defaults to showing the output of the program instead of the code alongside of the output.
Exciting… please do let me know what way this is so I can try it!
I’m using React so here’s the component that the iframe is in. Please let me know if you need any more code.
import React from "react";
function Project(props) {
return (
<div className="project">
<div className="project_text">
<h3>{props.title}</h3>
<p>{props.description}</p>
</div>
<div className="replit_embed">
{/* An example of the replit_link would be "https://replit.com/@MissionEncode/Python-Level-9-Quiz-Game-Solution-Code?embed=true" */}
<iframe frameBorder="0" width="90%" height="300px" src={props.replit_link}></iframe>
</div>
</div>
)
}
export default Project;