Category : single-page-application

imageI am trying to change the innerHTML of a page twice, more explanation, I am trying to make a single page like app, I’m a newbie, please assist me, I want to change the inner HTML content of the section after one click then get the classList of the changed inner HTML then change it ..

Read more

var router = new Router({ mode: ‘history’, page404: function (path) { console.log(‘"/’ + path + ‘" Page not found’); } }); router.add(”, function () { console.log(‘Home page’); }); router.add(‘hello/(:any)’, function (name) { console.log(‘Hello, ‘ + name); }); router.add(‘about’, function () { console.log(‘About Page’); }); I have this example for a vanilla javascript router. vanilla-router As ..

Read more