Dear Sam, thank you for your comment!
Unfortunatelly that code did not work.
Fortunatelly I found one more similar discussion here: JS on-click on element class . Using the sample from it and a little bit of shamanism I got code that now works well (at least at my site).
Here is it:
import wixLocation from 'wix-location';
$w.onReady(function(){
$w('#box1').onClick(function(){
wixLocation.to("/rooms");
});
});
$w.onReady(function(){
$w('#column1').onClick(function(){
wixLocation.to("/facilities");
});
});
Thank you guys for your help! Since I’m not a programmer this simple stuff is a real miracle for me!