Skip to content

Latest commit

History

12 Commits

Folders and files

NameName
Last commit message
Last commit date

Repository files navigation

importer

Just a simple javascript/jQuery thingy which can import/include other html files

How to use

Don't forget to read the file itself for more documentation on each function!

<!-- first import jquery and this file (order doesn't matter) --><scripttype="text/javascript" src="js/importer.js"></script><scripttype="text/javascript" src="js/jquery.min.js"></script><script>// Next, initialize importer$(document).ready(function(){importer.initialize("#container",{"index":"index.html","about":"about.html","contact":"contact.html",},function(){console.log("I'm alive!");},"index");});// Next, when the user clicks a button, load a page$("#someButton").click(function(){importer.load("#container","about.html",function(){console.log("the about page just loaded!");},"about");});// And we're done.</script>

About

Just a simple javascript/jQuery thingy which can import/include other html files

Resources

Stars

1 star

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages