Adding Custom Javascript

Hi all,

I’m looking for some guidance (I’m a complete amateur).

I’m looking to add some java code to my wix website that would display an online booking widget. I was advised this can be achieved through corvid.

I suppose my questions are:

  1. Can this be achieved?
  2. How do I achieve this?

Thanks in advance!

Brett

Hi, Brett.

It would be easier to read your code if you edited your code, highlit all the JavaScript code and clicked on the rightmost button in the resultant toolbar (viz., “Code Block”).

What aberg said, but right off the bat I can see the code won’t work as is. Wix doesn’t allow DOM functions like createElement.

Thanks David,

Is there any way to edit this code to allow it to work with Wix? The supplier of the code isn’t being very helpful. Forgive my cluelessness I’m by no means competent with this.

@brettsharpbs Where did you get this widget from brett?

@skmedia It was from a salon software provider (SalonIQ). They provide the code to add an online booking widget to our website