Please Help! Code is NOT Executing nor erroring out. bug?

Please click on Criminal Defense and see how the box that is supposedly there DOES NOT SHOW UP. my mouse hover indicates there is icons and text and links under it, but the box just does not show up. Can someone please fix this right away? I need to send this site for final review in just a couple hours…

This aint working ANYMORE, it used to work perfectly until last time I had checked…

export function crimlogo_click() {
	$w("#crimbox").expand();
	$w("#crimhover").hide();
	$w("#pihover").hide();
	$w("#lithover").hide();
	$w("#bigtitle").hide("fadeout");
	$w("#tinytitle").show("floatin");
	$w("#crmbtn").show("flipin");
	$w("#pibtn").show("flipin");
	$w("#litbtn").show("flipin");
	$w("#crmbtn").disable();
	$w("#pibtn").enable();
	$w("#litbtn").enable();
	$w("#violentbox1").show("floatin");
	$w("#sexbox1").show("floatin");
	$w("#drugbox1").show("floatin");
	$w("#theftbox1").show("floatin");
	$w("#whitecollarbox1").show("floatin");
	$w("#weaponsbox1").show("floatin");
	$w("#drivingbox1").show("floatin");
	$w("#cyberbox1").show("floatin");
	$w("#juvenilebox1").show("floatin");
	$w("#otherbox1").show("floatin");
}

export function crimtext_click() {
	$w("#crimbox").expand();
	$w("#crimhover").hide();
	$w("#pihover").hide();
	$w("#lithover").hide();
	$w("#bigtitle").hide("fadeout");
	$w("#tinytitle").show("floatin");
	$w("#crmbtn").show("flipin");
	$w("#pibtn").show("flipin");
	$w("#litbtn").show("flipin");
	$w("#crmbtn").disable();
	$w("#pibtn").enable();
	$w("#litbtn").enable();
	$w("#violentbox1").show("floatin");
	$w("#sexbox1").show("floatin");
	$w("#drugbox1").show("floatin");
	$w("#theftbox1").show("floatin");
	$w("#whitecollarbox1").show("floatin");
	$w("#weaponsbox1").show("floatin");
	$w("#drivingbox1").show("floatin");
	$w("#cyberbox1").show("floatin");
	$w("#juvenilebox1").show("floatin");
	$w("#otherbox1").show("floatin");

Similarly my GREEN hoverbox on the right has also stopped working correctly upon click.

They are both supposed to work llike the center one which is the only one that is working correctly.

Thanks

Additionally, once you click on any of these main 3 options, you get smaller buttons for them, those buttons’ code also seems to work just fine on all 3 buttons and ends up showing the correct elements each subsequent attempt.

I have examined the code pieces side by side, and nothing seems out of ordinary, please help!

Hi Omid,

Just to let you know, this is being investigated right now.

Update to come.
Liran.

HI Omid,
A fix was deployed, please check :slight_smile:

Liran.

Um, I hope this deployed fix was not what broke the stuff earlier globally lol jk

Thanks for the fix and sorry for the freak out, this is a hemorrhaging project at this point and I need to sleep… 40 hours on and up and trying to wrap up this and other affairs, and I keep running into random nasty crap the last day!!! But appreciate the help, it is now working.

Liran

This issue has returned! I made some edits to that page (linked some of those images and text boxes to my PI page) and when I did a preview in editor it was there and it was already published to live view as well.

I have a remote meeting as my final walk through with the client in 3 hours 50 minutes from now. Can a permanent fix please be deployed or even the same fix, I have no more edits to this specific page (i hope other changes do not screw this up again)

Thanks!

Right now criminal works… but the other two seem to have issues from default view of that page.

Hi Omid,
Can you please elaborate about what currently isn’t working?

Liran.

Certainly Liran,

The far right tab currently does not seem to be working correctly, as you can see in this gif. Nothing shows up again for that one on initial click on hoverbox.

But secondary button and behavior seem to work ok and the proper box for that tab shows up.

What gif? :slight_smile:
Any chance you’re adding a video capture?

for some reason my gif refuses to post… so here it is

it was 26MB, so for some reason this forum thingy seems to not like the size

it’s short, trust me :slight_smile:

I let the mouse pointer do all the screaming :))

One more question… what’s the id of the click area?

I was not sure if a hover box itself was actionable to a click…

Please see bold below for names of the two HOVERBOX nested elements that are supposed to trigger the LITBOX container to expand.

export function litilogo_click() {
	$w("#litbox").expand();
	$w("#crimhover").hide();
	$w("#pihover").hide();
	$w("#lithover").hide();
	$w("#bigtitle").hide("fadeout");
	$w("#tinytitle").show("floatin");
	$w("#littitle").show("floatin");
	$w("#littext").show("floatin");
	$w("#litcontact").show("floatin");
	$w("#crmbtn").show("flipin");
	$w("#pibtn").show("flipin");
	$w("#litbtn").show("flipin");
	$w("#crmbtn").enable();
	$w("#pibtn").enable();
	$w("#litbtn").disable();
}

export function lititext_click() {
	$w("#litbox").expand();
	$w("#crimhover").hide();
	$w("#pihover").hide();
	$w("#lithover").hide();
	$w("#bigtitle").hide("fadeout");
	$w("#tinytitle").show("floatin");
	$w("#littitle").show("floatin");
	$w("#littext").show("floatin");
	$w("#litcontact").show("floatin");
	$w("#crmbtn").show("flipin");
	$w("#pibtn").show("flipin");
	$w("#litbtn").show("flipin");
	$w("#crmbtn").enable();
	$w("#pibtn").enable();
	$w("#litbtn").disable();
}

The above does not happen however.

But, the below somehow keeps working ok, I have an EXTRA SHOW in there because I want the animation upon expand… not sure if that is the difference. Box is only collapsed on load though, nothing is actually hidden as far as my checks go.

export function litbtn_click() {
	$w("#crimbox").hide("fadeout");
	$w("#crimbox").collapse();
	$w("#pibox").hide("fadeout");
	$w("#pibox").collapse();
	$w("#litbox").expand();
	$w("#litbox").show("floatin");
	$w("#littitle").show("floatin");
	$w("#littext").show("floatin");
	$w("#litcontact").show("floatin");
	$w("#crmbtn").enable();
	$w("#pibtn").enable();
	$w("#litbtn").disable();
}

Well, they do go hidden AFTER initial set of clicks… when boxes are switched bteween using secondary smaller top 3 buttons.

When I compare the code again after taking out topical-specific items to show WITHIN each container for animation purposes only, this is what I end up with as comparison again of the RED criminal hoverbox vs. the FAR RIGHT one that is not working correctly.

OK… could be an issue from our end, we’ll further investigate tomorrow. Thanks for the patience.
Liran.