Home » Education » Two Pages One Script

Two Pages One Script

Written By Steve Griffith - Prof3ssorSt3v3 on Wednesday, May 08, 2019 | 11:56 AM

 
Having trouble making one JavaScript file work with multiple HTML files? This tutorial talks about how to approach this problem in an effective and scalable way,. Page one html GIST: https://gist.github.com/prof3ssorSt3v3/07c9d44cc2a4b4e6932f3b1d545e18bd Page two html GIST: https://gist.github.com/prof3ssorSt3v3/90fc8b815bda22b3468f0a610c6dca64 Common JS GIST: https://gist.github.com/prof3ssorSt3v3/107ae3f419febfabb1dca89669e90bfc Common CSS GIST: https://gist.github.com/prof3ssorSt3v3/d6be6d8f03c63e4b706ae0ef45eafd7d