Skip to content
← Back to Community
Access Repl file from HTML website
Profile icon
h
has Hacker Plan
BenjaminPS

Hi all, I am trying to create a very basic HTML website including only one of my Repl (embedded into the webpage) and an image generated by the Repl when it's run (Graph.png).

I am a beginner in HTML and i do not know whether this would be easily possible ?

Ideally, every time the Repl is run, I would like the image to be updated.

Thanks for any suggestion :)
Ben

Voters
Profile icon
YashviPatel12
Profile icon
BenjaminPS
Comments
hotnewtop
Profile icon
k9chelsea2

wait so you want help with what my reading skills are badd

Profile icon
Coder100

Hello. Click
image

image

Profile icon
BenjaminPS

Hi @Coder100 thank you very much for your answer !
However I would like the rest of the files to remain hidden. I would love to have it as simple as possible :

  • The command console
  • The Figure below being updated every time the script is run

In python it would be straight forward to access the "fig" but in HTML I guess it is not that simple. I tried copying the whole figure address but it is specific to a single graph which is not being updated every time.

Profile icon
Coder100

ah, you can have: outputonly=1 @BenjaminPS

Profile icon
Coder100

example:
https://repl.it/@HahaYes/Dark-Clock-UI?lite=true&outputonly=1 (i just took a random person's repl lol) @BenjaminPS

Profile icon
BenjaminPS

Hi @Coder100 thank you again ! I'm afraid this person does not have an embedded Repl. He just uploaded a png file to his HTML folder :(

I'm afraid that What I'm trying to do is gonna be harder (his stuff looks awesome though !)

Profile icon
VulcanWM

Yep it is possible. You will need to know a bit of HTML and JavaScript

Profile icon
BenjaminPS

Hi @VulcanWM thank you very much for your answer !
Could you give me a hit on how to begin ?

Profile icon
VulcanWM

Umm... I don't know Javascript, but you can use the embed tag to put one of your repls. Look at this for more information @BenjaminPS