+ 1

How are static html pages produced?

I want to create different webpages using HTML and I want the HTML to be static on each page instead of having to copy the head and footer codes all over.

20th Sep 2017, 12:51 PM
Juliana
6 Antworten
+ 7
If you want something more advanced for Single Page Web Application you should definitely take a look at AngularJS or ReactJS.
21st Sep 2017, 8:58 AM
Developer
+ 7
For example ng-view in AngularJS is very nice.
21st Sep 2017, 8:59 AM
Developer
+ 2
wrap each separate page in its own div and use JavaScript to toggle the visibility of each one. I do that in this code with a tabbed menu. https://code.sololearn.com/W1VJwfXFJ9fG/?ref=app
20th Sep 2017, 1:00 PM
Nope
Nope - avatar
+ 1
I'm not really familiar with JavaScript though, but I'll study your code
20th Sep 2017, 1:06 PM
Juliana
+ 1
I just added some comments to hopefully help you understand what's going on. if you need more help let me know
20th Sep 2017, 1:16 PM
Nope
Nope - avatar
0
slm aziz man b yek hacker niaz daram shoma soragh nadarid @var12410 id telegram
4th Oct 2017, 11:15 AM
vahid mohseni