Skip to content

Instantly share code, notes, and snippets.

@ljmotta

ljmotta/embed.html

Last active Jan 12, 2021
Embed
What would you like to do?
Embed model with GitHubGist
<iframe width="100%" height="100%" srcdoc="<!DOCTYPE html> <html lang=&quot;en&quot;> <head> <script
src=&quot;https://kiegroup.github.io/kogito-online/standalone/bpmn/index.js&quot;></script> <title></title> <style>
html, body, iframe { margin: 0; border: 0; padding: 0; height: 100%;
width: 100%; } </style> </head> <body> <script>
fetch(&quot;https://gist.githubusercontent.com/ljmotta/9323333a2e5c64a4c78bf96c8487bd9c/raw/mygist.bpmn&quot;)
.then(response => response.text()) .then(content => BpmnEditor.open({container: document.body, readOnly: true,
initialContent: content, origin: &quot;*&quot; })) </script> </body> </html>"></iframe>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment