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.
<script type='text/javascript'>!function(b,c){b.saloniqid='d7ffe7bb-6b43-4659-b952-4654342b8f61',b.saloniqsite='https://bookings.saloniq.co.uk';var d,g,e='onlinebookingwidget-loader',f=c.getElementsByTagName('script')[0];c.getElementById(e)||(d=c.createElement('script'),d.id=e,d.async=!0,d.src=b.saloniqsite+'/scripts/onlinebookingwidget-loader.js?d='+Date.now(),g=f?f.parentNode:c.getElementsByTagName('head')[0],g.insertBefore(d,f))}(window,document);</script>
I suppose my questions are:
1. Can this be achieved?
2. How do I achieve this?
Thanks in advance!
Brett
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.
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").