Source code that accompanies this article: Creating Embeddable Widgets in HTML and JS
- Pure HTML, Javascript, and CSS
- No 3rd party libraries required as dependencies
- Generating widgets using two different methods: using same-page DOM and using
iframe
s - Seelctively allowing cross domain requests
- Modular APIs for each widget platform