Implementing offline online all toggling feature in TwitchTV project

Please give me an advice on how can i implement toggling in my project. I have tried many options but have failed so far. This is link of my project

You can use $("<selector>").toggle() as well as hide() and show(), to hide or show an element or several elements.