@talyaro – I apologize for coming back with this problem. It looked like it would be straightforward to install the code you provided. I have gotten errors which I am including in code block here.
static.parastorage.com/services/wix-code-code-editor/1.120.0/static/js/codeEditor.js:1
Uncaught (in promise) TypeError: Cannot read property ‘getValue’ of undefined
at r (worker.js:1)
at worker.js:1
at b (worker.js:1)
at Generator._invoke (worker.js:1)
at Generator.e. [as next] (worker.js:1)
at r (worker.js:1)
at worker.js:1
at new Promise ()
at Object. (worker.js:1)
at Object.getTypeAtPosition (worker.js:1)
wixcode-worker.js:17
public/pages/ma5m6.js: ‘import’ and ‘export’ may only appear at the top level (5:1)
3 | $w.onReady(function () {
4 | //TODO: write your page related code here…
5 | export function button9_click(event) {
| ^
6 | $w(‘#googleEventCalendar1’).show();
7 | $w(‘#googleEventCalendar2’).hide();
8 | // $w(‘#googleEventCalendar3’).hide();
e. @ wixcode-worker.js:17
wixcode-worker.js:17
Loading the code for the CALENDARS page. To debug this code, open ma5m6.js in Developer Tools.
console.js:35 public/pages/ma5m6.js: ‘import’ and ‘export’ may only appear at the top level (5:1)
3 | $w.onReady(function () {
4 | //TODO: write your page related code here…
5 | export function button9_click(event) {
| ^
6 | $w(‘#googleEventCalendar1’).show();
7 | $w(‘#googleEventCalendar2’).hide();
8 | // $w(‘#googleEventCalendar3’).hide();
e. @ console.js:35
console.js:35 Loading the code for the CALENDARS page. To debug this code, open ma5m6.js in Developer Tools.
75[Intervention] Unable to preventDefault inside passive event listener due to target being treated as passive. See
As you can probably see, I copy/pasted the code you provided twice (one each for two buttons) and renamed the buttons to 9 and 10 per what I inserted. I then added the event handlers in Properties for the two buttons I added.
The error(s) occurred when I went to Preview mode.
The site–Dems–is unpublished.
I will very much appreciate any guidance you can provide regarding this.
Thanks!