$w.onReady(function () {
//TODO: write your page related code here…
export function coverHoustonButton_click(event, $w) {
//Add your code for this event here:
$w(“#leafArrow”).show(“SlideIn”);
$w(“#houstonOasisSite”).show(“FadeIn”, 2000);
export function coverHoustonButton_mouseOut(event, $w) {
//Add your code for this event here:
$w(“#leafArrow”).hide(“FadeOut”);
$w(“#houstonOasisSite”).hide();
});
Output:
Loading the code for the Home page. To debug this code, open c1dmp.js in Developer Tools. There was an error in your scriptType Error: n is not a function
‘export function’ should not be declared within the scope of ‘$w.onReady(function ()’
$w.onReady is called once the page is loaded to allow you to run customised code right after the page is loaded
$w.onReady(function () {
//TODO: write your page related code here…
});
export function coverHoustonButton_click(event, $w) {
//Add your code for this event here:
$w(“#leafArrow”).show(“SlideIn”);
$w(“#houstonOasisSite”).show(“FadeIn”, 2000);
}
export function coverHoustonButton_mouseOut(event, $w) {
//Add your code for this event here:
$w(“#leafArrow”).hide(“FadeOut”);
$w(“#houstonOasisSite”).hide();