I have developed a chart diagram which shows the temperature of a public bath. I want to host the HTML, CSS and JS code on my website.
I want that foreign websites can embed this diagram into their website with just one line of code.
I know these solutions:
Use
<script src="..."></script>
Use
<object type="text/html" data="..."></object>
Use
<iframe src="..."></iframe>
These are the problems with each solution:
- The CSS of the foreign website does make my diagram look bad. Also I have access to the cookies of the foreign website (but this would be acceptable).
- The height of my diagram changes when the user interacts and I don't want a scrollbar to appear.
- Same problems as object tag.
So what is the best (cleanest) way to do this?