Added sketch pages.
This commit is contained in:
@@ -20,3 +20,19 @@
|
||||
</div>
|
||||
</div>
|
||||
{% endmacro %}
|
||||
|
||||
|
||||
{% macro LiveCodeEditorJS(name, code) %}
|
||||
<script type="text/javascript" src="{{ livecode_url }}/static/livecode.js"></script>
|
||||
<script type="text/javascript">
|
||||
$(function() {
|
||||
$(".canvas-editor").each((i, e) => {
|
||||
var editor = new LiveCodeEditor(e, {
|
||||
runtime: "python-canvas",
|
||||
base_url: "{{ livecode_url }}",
|
||||
codemirror: true
|
||||
})
|
||||
})
|
||||
})
|
||||
</script>
|
||||
{% endmacro %}
|
||||
|
||||
Reference in New Issue
Block a user