hello! im really sorry if the title doesnt make sense, i too dont know how should i word it >//<
the stuff im having trouble with, ill explain my usecase, so its easier to understand! so yu guys can help me out accordingly!
*( also i forgot to mention that im new to webstudio and im still learning stuff, i'm not that knowledgeble when it comes to css stuff but currently learning it! ) *
Use Case:
I'm making a livestream redirect page. since i do multistreams on multiple platforms. so basicially i wanted to showcase my livestream's embed ( iframe) only when im live! ( im opting to this method for now, i might be switching to a different service which lets me directly stream to website so i can embed it in the future )
so i do a api call to the streaming platform to check about my live status. if i am live , i just want to control the "show" property of html embed and also have a text block - mention the following . for example
- if im live - Joqnix is live
- if im not live - No Active Livestreams or something
or alternatively i could just have the text premade and control it via the "show" property? if live - show the text block, if not, hide it.
what i need help with!
- how can i input variables as string? on a text content ( i wasn't able to do it. since some variables weren't strings )
- how can i - let's say if a variable = 0, i want it to change or control a certain element? ( for example - the show property of a html embed) if -
live_status = 0
- then hide. if Live_status = 1
then show?
for now its just this. i hope its okie if i can keep adding on to this thread. as there would be more issues i might face. since i would be playing around with api based stuff on my website. to dynamically change stuff within the site. ( not cms content! )
if its not okie i can always make new help thread, do lmk!
thank you!!