Page 1 of 1

integrate a css or js file inside HTML with ESP in AP

Posted: Sun May 22, 2022 5:31 pm
by giants
Hi there !
here i'm for ask again your help. I'm gonna to work a one project for my self and mabye for a couple of friends. I use one ESP32 when run the first time start in AP and show to me from a web page all router him found, and that work . My problem is that i create my webpage and i save inside the ESP and i use f=open(nameMyFile.html) . Now i create my css file and i save inside a ESP so how i can say at my html file import css file ?

Thank a lot

Sergio

Re: integrate a css or js file inside HTML with ESP in AP

Posted: Mon May 23, 2022 11:20 am
by karfas
See any HTML introduction how to reference a CSS from a HTML file.

Re: integrate a css or js file inside HTML with ESP in AP

Posted: Mon May 23, 2022 1:14 pm
by giants
I did, but the problem is the file is inside ESP32 and use script or link dosen't work. I think i need the give a path but i don't have idea how to do

Re: integrate a css or js file inside HTML with ESP in AP

Posted: Mon May 23, 2022 4:04 pm
by karfas
giants wrote:
Mon May 23, 2022 1:14 pm
I did, but the problem is the file is inside ESP32 and use script or link dosen't work. I think i need the give a path but i don't have idea how to do
A "file" is nothing else than any other file served by a webserver. "It does not work" doesn't count as analysis of your problem.