Saturday 15 September 2012

javascript - Zurb foundation fire event when changing orientation? -



javascript - Zurb foundation fire event when changing orientation? -

is there anyway observe when orientation of user's screen changes?

i'd fire javascript functions when happens update various bits of content.

for example, have set of divs displayed accordion. each div displays +/- icons show / hide content.

when page loads in landscape, content in each div displayed default, when loads in portrait content hidden.

i need reset +/- icons when orientation of screen changes.

are there events can hook accomplish this?

any advice appreciated.

thanks.

javascript zurb-foundation

No comments:

Post a Comment