Streaming live at 10am (PST)

Custom javascript only affecting to active tab


#1

I have moments.js which localizes the date on all my pages, and I just realized that the script only works on the primary tab of a tabbed section


#2

Please provide both share link, and website URL.


#3

https://preview.webflow.com/preview/cdl?preview=1212c20efbeacb7236cc2560566003db

http://cdl.webflow.io/fr/media

In this link, not only does the moments Js break, but also the masonry Js is breaking the 3rd tab content. Jquery is working fine in the main tab but not in the other hidden tabs.


#4

Second and third tabs have different date format, that is why it is unable to parse the date.

First tab: Saturday, October 17, 2015

Second tab: January 6, 2016


#5

oh ok, How about the masonry js? why is it causing the tab to act weirdly?


#6

My guess is that the content needs to be displayed on page load and not hidden in a tab, so that the script can calculate the positioning.


#7

:disappointed: ok thx


#8

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.