OldViking013
Show PDF on my page
Does anyone know of a good way to have an interactable/live preview of PDF files and a good way to go about them?
I'm trying to provide multiple research docs on my site and would like to showcase them trough PDF's (it is also a requirement to provide PDFs so why not show them as well?)
I tried adding the pdfsclick library for Solid but it wouldn't show the PDFs (the examples also look a bit broken) and there was not a lot of documentation for it.
Does anyone know about another good library to use with solid (maybe also Tailwind) or a way that I can implement it myself without a library?
6 replies
addEventListener not working?
Hey there, I'm kinda new working with SolidJS, I've worked with React before and have a lot of experience in plain HTML + CSS + JS without framework. But I was trying to create a hovering effect on my cards by adding a JavaScript function to rotate it in '3D'.
The problem is that when I add an event listener, it never fires off even when meeting the condition to trigger it.
Here's the code:
as you can see I tried checking to see if the cards were not registered by using the console but they all show up, the problem lies when I move my mouse over the item nothing seems to happen, I also tried adding a consol.log to the hover function to see if it at least went in there, but nothing happened.
Does anybody know what I might be doing wrong?
Or if anything is unclear, please ask!
5 replies