Added the scrolling editor
This commit is contained in:
@ -311,6 +311,10 @@ $(document).ready(function() {
|
|||||||
|
|
||||||
$('#story-submit').on('click', storySubmitButtonHandler);
|
$('#story-submit').on('click', storySubmitButtonHandler);
|
||||||
|
|
||||||
|
if($('.editorScrollDiv').html() !== 'undefined'){
|
||||||
|
$('.editorScrollDiv').css("height",$(window).height()-($('.navbar').height()+$('.footer').height()+100) + "px");
|
||||||
|
}
|
||||||
|
|
||||||
//fakeiphone positioning hotfix
|
//fakeiphone positioning hotfix
|
||||||
if($('.iphone-position').html() !==undefined || $('.iphone').html() !== undefined){
|
if($('.iphone-position').html() !==undefined || $('.iphone').html() !== undefined){
|
||||||
var startIphonePosition = parseInt($('.iphone-position').css('top').replace('px', ''));
|
var startIphonePosition = parseInt($('.iphone-position').css('top').replace('px', ''));
|
||||||
|
@ -65,6 +65,7 @@ block content
|
|||||||
var challengeType = !{JSON.stringify(challengeType)};
|
var challengeType = !{JSON.stringify(challengeType)};
|
||||||
var started = Math.floor(Date.now());
|
var started = Math.floor(Date.now());
|
||||||
.col-xs-12.col-sm-12.col-md-5.col-lg-6
|
.col-xs-12.col-sm-12.col-md-5.col-lg-6
|
||||||
|
.editorScrollDiv(style = "overflow-y: scroll; overflow-x: hidden;")
|
||||||
#mainEditorPanel
|
#mainEditorPanel
|
||||||
form.code
|
form.code
|
||||||
.form-group.codeMirrorView
|
.form-group.codeMirrorView
|
||||||
|
@ -66,9 +66,10 @@ block content
|
|||||||
var _ = R;
|
var _ = R;
|
||||||
var dashed = !{JSON.stringify(dashedName)};
|
var dashed = !{JSON.stringify(dashedName)};
|
||||||
.col-xs-12.col-sm-12.col-md-8
|
.col-xs-12.col-sm-12.col-md-8
|
||||||
|
.editorScrollDiv(style = "overflow-y: scroll; overflow-x: hidden;")
|
||||||
#mainEditorPanel
|
#mainEditorPanel
|
||||||
form.code
|
form.code
|
||||||
.form-group.codeMirrorView
|
.codeMirrorView
|
||||||
textarea#codeEditor(autofocus=true, style='display: none;')
|
textarea#codeEditor(autofocus=true, style='display: none;')
|
||||||
script(src='/js/lib/coursewares/coursewaresJSFramework_0.0.6.js')
|
script(src='/js/lib/coursewares/coursewaresJSFramework_0.0.6.js')
|
||||||
#complete-courseware-dialog.modal(tabindex='-1')
|
#complete-courseware-dialog.modal(tabindex='-1')
|
||||||
|
Reference in New Issue
Block a user