View Single Post
Old 04-05-2023, 12:29 PM   #4
differentj
Member
differentj began at the beginning.
 
Posts: 12
Karma: 10
Join Date: Apr 2023
Device: Mac
Quote:
Originally Posted by KevinH View Post
Those are not links. Those are "data-" extra custom attributes being applied to a div tag. These are meant to be read only by an underlying javascript or in css. These are not pure urls either as they are not properly url encoded (using a name full of spaces is generally not a good idea across multiple readers). Sigil will not auto update any of these custom attributes when you use Sigil to rename a file as they are just a set of custom data being passed to something else (in this case a javascript) and there is no way for Sigil to know what those custom attribute values represent.

A div can not actually directly html link out according to the spec. Instead to create an html link you must use a anchor ("a") tag with href or an object tag, or iframe or ....
Are you actually trying to create an html link?

Have you linked the javascript properly inside the head tag?
Thank you for the Reply! I haven't done web coding in 24 years and a lot has changed and the help is needed and appreciated.

I'm using the HTML based off of https://github.com/umd-mith/webvtt-player and I know enough to change some of the stuff listed but the javascript is beyond me.

Currently I create a local HTML file based on the web player and import it into Sigil. I change some of the wording and I import into Sigil the audio file and the VTT which are from my computer that I generate. Then I am trying to link the audio and video files which are in Sigil into the html so when it compiles an ebook the div elements are pointing to the audio and video files that were within sigil.

No HTML linking at all.

I was thinking maybe I could just declare variables to the audio and video file then assign them to the DIV parts the existing code is looking for but I'm in the trap where I didn't write the code so I am definitely fumbling through this but learning as I go
differentj is offline   Reply With Quote