Advertisement
Guest User

Untitled

a guest
Apr 23rd, 2019
96
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.31 KB | None | 0 0
  1. <script>
  2. $(function () {
  3. var includes = $('[data-include]');
  4. jQuery.each(includes, function () {
  5. var file = 'components/' + $(this).data('include') + '.html';
  6. $(this).load(file);
  7. });
  8. });
  9. </script>
  10.  
  11. <div data-include="header"></div>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement