Skip to content

Commit 3d30f7f

Browse files
authored
Merge pull request #59 from microbit-carlos/flag_experimental
Add additional flag to easily identify experimental versions
2 parents 1fd4987 + 7108bd6 commit 3d30f7f

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

editor.html

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -339,7 +339,8 @@ <h2><i class="fa fa-unlock-alt"></i> <strong>{{ title }}</strong></h2>
339339
'flags': {
340340
'blocks': true,
341341
'snippets': true,
342-
'share': true
342+
'share': true,
343+
'experimental': false
343344
},
344345
});
345346
</script>

python-main.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -337,6 +337,10 @@ function web_editor(config) {
337337
EDITOR.setCode(config.translate.code.start);
338338
}
339339
EDITOR.ACE.gotoLine(EDITOR.ACE.session.getLength());
340+
// If configured as experimental update editor background to indicate it
341+
if(config.flags.experimental) {
342+
EDITOR.ACE.renderer.scroller.style.backgroundImage = "url('static/img/experimental.png')"
343+
}
340344
// Configure the zoom related buttons.
341345
$("#zoom-in").click(function (e) {
342346
e.stopPropagation();

0 commit comments

Comments
 (0)