Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- const app = Sammy('#main',function(){
- this.get('#/home',()=>{
- this.swap('<h1>Hello from the home page</h1>');
- });
- this.get('#/about',()=>{
- this.swap('<h1>Hello from the about page</h1>');
- });
- this.get('#/contact',()=>{
- this.swap('<h1>Hello from the contact page</h1>');
- });
- });
- $(()=> app.run());
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement