Added LMS Settings.
The `livecode_url` is now part of LMS settings and not hardcoded in the code.
This commit is contained in:
@@ -67,13 +67,13 @@
|
||||
|
||||
{%- block script %}
|
||||
{{ super() }}
|
||||
<script type="text/javascript" src="http://livecode.dev.fossunited.org/static/livecode.js"></script>
|
||||
<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: "http://livecode.dev.fossunited.org"
|
||||
base_url: "{{ livecode_url }}"
|
||||
})
|
||||
})
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user