I’m trying to create an webapp and searched around to find tutorials… I found “jquery” and noticed as I looked at the code, that there aren’t single websites, only some divs that created the single sites… How is that done? When I create a website with divs they are on one website.
Thanks
What you’ll want to do is identify what text is coming after the hash tag in the url and show/hide certain divs accordingly.
You can do this easily with jQuery. Below is an extremely rough example I wrote up, but should give you an idea of what I’m talking about.
index.html#home will display “Content from page 1”
index.html#about will display “Content from page 2”