Deactivated scroll locking

This commit is contained in:
benmcmahon100
2015-08-22 00:59:21 +01:00
parent cd511ad314
commit 38a73e392f
3 changed files with 188 additions and 188 deletions

View File

@ -18,104 +18,104 @@ block content
.row(ng-controller="pairedWithController") .row(ng-controller="pairedWithController")
.col-xs-12.col-sm-12.col-md-4.col-lg-3 .col-xs-12.col-sm-12.col-md-4.col-lg-3
.scroll-locker(id = "scroll-locker") //.scroll-locker(id = "scroll-locker")
#testCreatePanel.well #testCreatePanel.well
h3.text-center.negative-10= name h3.text-center.negative-10= name
.positive-15.positive-15-bottom .positive-15.positive-15-bottom
h4.text-center.bonfire-flames Difficulty:  h4.text-center.bonfire-flames Difficulty: 
if (difficulty == "0") if (difficulty == "0")
i.ion-ios-flame-outline i.ion-ios-flame-outline
i.ion-ios-flame-outline i.ion-ios-flame-outline
i.ion-ios-flame-outline i.ion-ios-flame-outline
i.ion-ios-flame-outline i.ion-ios-flame-outline
i.ion-ios-flame-outline i.ion-ios-flame-outline
if (difficulty == "1") if (difficulty == "1")
i.ion-ios-flame i.ion-ios-flame
i.ion-ios-flame-outline i.ion-ios-flame-outline
i.ion-ios-flame-outline i.ion-ios-flame-outline
i.ion-ios-flame-outline i.ion-ios-flame-outline
i.ion-ios-flame-outline i.ion-ios-flame-outline
if (difficulty == "2") if (difficulty == "2")
i.ion-ios-flame i.ion-ios-flame
i.ion-ios-flame i.ion-ios-flame
i.ion-ios-flame-outline i.ion-ios-flame-outline
i.ion-ios-flame-outline i.ion-ios-flame-outline
i.ion-ios-flame-outline i.ion-ios-flame-outline
if (difficulty == "3") if (difficulty == "3")
i.ion-ios-flame i.ion-ios-flame
i.ion-ios-flame i.ion-ios-flame
i.ion-ios-flame i.ion-ios-flame
i.ion-ios-flame-outline i.ion-ios-flame-outline
i.ion-ios-flame-outline i.ion-ios-flame-outline
if (difficulty == "4") if (difficulty == "4")
i.ion-ios-flame i.ion-ios-flame
i.ion-ios-flame i.ion-ios-flame
i.ion-ios-flame i.ion-ios-flame
i.ion-ios-flame i.ion-ios-flame
i.ion-ios-flame-outline i.ion-ios-flame-outline
if (difficulty == "5") if (difficulty == "5")
i.ion-ios-flame i.ion-ios-flame
i.ion-ios-flame i.ion-ios-flame
i.ion-ios-flame i.ion-ios-flame
i.ion-ios-flame i.ion-ios-flame
i.ion-ios-flame i.ion-ios-flame
.row .row
.col-xs-12
.bonfire-instructions
for sentence in details
p.wrappable.negative-10!= sentence
.negative-bottom-margin-30
#MDN-links
p.negative-10 Here are some helpful links:
for link, index in MDNlinks
.negative-10
ul: li: a(href=""+link, target="_blank") !{MDNkeys[index]}
if (user)
form.form-horizontal(novalidate='novalidate', name='completedWithForm')
.form-group.text-center.negative-10
.col-xs-12 .col-xs-12
.bonfire-instructions // extra field to distract password tools like lastpass from injecting css into our username field
for sentence in details input.form-control(ng-show="false")
p.wrappable.negative-10!= sentence input.form-control#completed-with(name="existingUser", placeholder="Your pair's username if pairing", existing-username='', ng-model="existingUser")
.negative-bottom-margin-30 .col-xs-12(ng-cloak, ng-show="completedWithForm.$error.exists && !completedWithForm.existingUser.$pristine && existingUser.length > 0")
#MDN-links alert(type='danger')
p.negative-10 Here are some helpful links: span.ion-close-circled
for link, index in MDNlinks | Username not found
.negative-10 label.negative-10.btn.btn-primary.btn-block#submitButton
ul: li: a(href=""+link, target="_blank") !{MDNkeys[index]} i.fa.fa-play
|   Run code (ctrl + enter)
.button-spacer
.btn-group.input-group.btn-group-justified
label.btn.btn-success#trigger-reset-modal
i.fa.fa-refresh
|   Reset
label.btn.btn-success#trigger-help-modal
i.fa.fa-medkit
|   Help
label.btn.btn-success#trigger-pair-modal
i.fa.fa-user-plus
|   Pair
label.btn.btn-success#trigger-issue-modal
i.fa.fa-bug
|   Bug
.button-spacer
if (user) form.code
form.form-horizontal(novalidate='novalidate', name='completedWithForm') .form-group.codeMirrorView
.form-group.text-center.negative-10 textarea#codeOutput(style='display: none;')
.col-xs-12 br
// extra field to distract password tools like lastpass from injecting css into our username field #testSuite.negative-10
input.form-control(ng-show="false") br
input.form-control#completed-with(name="existingUser", placeholder="Your pair's username if pairing", existing-username='', ng-model="existingUser") script(type="text/javascript").
.col-xs-12(ng-cloak, ng-show="completedWithForm.$error.exists && !completedWithForm.existingUser.$pristine && existingUser.length > 0") var tests = !{JSON.stringify(tests)};
alert(type='danger') var challengeSeed = !{JSON.stringify(challengeSeed)};
span.ion-close-circled var challenge_Id = !{JSON.stringify(challengeId)};
| Username not found var challenge_Name = !{JSON.stringify(name)};
label.negative-10.btn.btn-primary.btn-block#submitButton var started = Math.floor(Date.now());
i.fa.fa-play var challengeType = !{JSON.stringify(challengeType)};
|   Run code (ctrl + enter) var _ = R;
.button-spacer var dashed = !{JSON.stringify(dashedName)};
.btn-group.input-group.btn-group-justified
label.btn.btn-success#trigger-reset-modal
i.fa.fa-refresh
|   Reset
label.btn.btn-success#trigger-help-modal
i.fa.fa-medkit
|   Help
label.btn.btn-success#trigger-pair-modal
i.fa.fa-user-plus
|   Pair
label.btn.btn-success#trigger-issue-modal
i.fa.fa-bug
|   Bug
.button-spacer
form.code
.form-group.codeMirrorView
textarea#codeOutput(style='display: none;')
br
#testSuite.negative-10
br
script(type="text/javascript").
var tests = !{JSON.stringify(tests)};
var challengeSeed = !{JSON.stringify(challengeSeed)};
var challenge_Id = !{JSON.stringify(challengeId)};
var challenge_Name = !{JSON.stringify(name)};
var started = Math.floor(Date.now());
var challengeType = !{JSON.stringify(challengeType)};
var _ = R;
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: auto; overflow-x: hidden;") .editorScrollDiv(style = "overflow-y: auto; overflow-x: hidden;")

View File

@ -21,50 +21,50 @@ block content
script(src='/js/lib/codemirror/addon/emmet/emmet.js') script(src='/js/lib/codemirror/addon/emmet/emmet.js')
.row.courseware-height .row.courseware-height
.col-xs-12.col-sm-12.col-md-3.col-lg-3 .col-xs-12.col-sm-12.col-md-3.col-lg-3
.scroll-locker(id = "scroll-locker") //.scroll-locker(id = "scroll-locker")
.innerMarginFix(style = "width: 99%;") .innerMarginFix(style = "width: 99%;")
.well .well
.row .row
.col-xs-12 .col-xs-12
h3.text-center.negative-10= name h3.text-center.negative-10= name
.bonfire-instructions .bonfire-instructions
for sentence in details for sentence in details
p.wrappable.negative-10!= sentence p.wrappable.negative-10!= sentence
.negative-bottom-margin-30 .negative-bottom-margin-30
if (user) if (user)
label.btn.btn-primary.btn-block.negative-10#next-courseware-button label.btn.btn-primary.btn-block.negative-10#next-courseware-button
.ion-checkmark-circled .ion-checkmark-circled
|   Go to my next challenge (ctrl + enter) |   Go to my next challenge (ctrl + enter)
.button-spacer
.btn-group.input-group.btn-group-justified
label.btn.btn-success#trigger-reset-modal
i.fa.fa-refresh
|   Reset
label.btn.btn-success#trigger-help-modal
i.fa.fa-medkit
|   Help
label.btn.btn-success#trigger-issue-modal
i.fa.fa-bug
|   Bug
script.
var userLoggedIn = true;
else
.button-spacer
a.btn.signup-btn.btn-block.btn-block.negative-15(href='/login') Sign in so you can save your progress
script.
var userLoggedIn = false;
.button-spacer .button-spacer
ul#testSuite.list-group .btn-group.input-group.btn-group-justified
br label.btn.btn-success#trigger-reset-modal
script(type="text/javascript"). i.fa.fa-refresh
$('#next-courseware-button').attr('disabled', 'disabled'); |   Reset
var tests = !{JSON.stringify(tests)}; label.btn.btn-success#trigger-help-modal
var challengeSeed = !{JSON.stringify(challengeSeed)}; i.fa.fa-medkit
var challenge_Id = !{JSON.stringify(challengeId)}; |   Help
var challenge_Name = !{JSON.stringify(name)}; label.btn.btn-success#trigger-issue-modal
var prodOrDev = !{JSON.stringify(environment)}; i.fa.fa-bug
var challengeType = !{JSON.stringify(challengeType)}; |   Bug
var started = Math.floor(Date.now()); script.
var userLoggedIn = true;
else
.button-spacer
a.btn.signup-btn.btn-block.btn-block.negative-15(href='/login') Sign in so you can save your progress
script.
var userLoggedIn = false;
.button-spacer
ul#testSuite.list-group
br
script(type="text/javascript").
$('#next-courseware-button').attr('disabled', 'disabled');
var tests = !{JSON.stringify(tests)};
var challengeSeed = !{JSON.stringify(challengeSeed)};
var challenge_Id = !{JSON.stringify(challengeId)};
var challenge_Name = !{JSON.stringify(name)};
var prodOrDev = !{JSON.stringify(environment)};
var challengeType = !{JSON.stringify(challengeType)};
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: auto; overflow-x: hidden;") .editorScrollDiv(style = "overflow-y: auto; overflow-x: hidden;")
#mainEditorPanel #mainEditorPanel

View File

@ -16,56 +16,56 @@ block content
script(type='text/javascript', src='/js/lib/coursewares/sandbox.js') script(type='text/javascript', src='/js/lib/coursewares/sandbox.js')
.row(ng-controller="pairedWithController") .row(ng-controller="pairedWithController")
.col-xs-12.col-sm-12.col-md-4.col-lg-3 .col-xs-12.col-sm-12.col-md-4.col-lg-3
.scroll-locker(id = "scroll-locker") //.scroll-locker(id = "scroll-locker")
.innerMarginFix(style = "width: 99%;") .innerMarginFix(style = "width: 99%;")
#testCreatePanel.well #testCreatePanel.well
h3.text-center.negative-10= name h3.text-center.negative-10= name
.row .row
.col-xs-12
.bonfire-instructions
for sentence in details
p.wrappable.negative-10!= sentence
.negative-bottom-margin-30
#MDN-links
p.negative-10 Here are some helpful links:
for link, index in MDNlinks
.negative-10
ul: li: a(href="" + link, target="_blank") !{MDNkeys[index]}
if (user)
form.form-horizontal(novalidate='novalidate', name='completedWithForm')
.form-group.text-center.negative-10
.col-xs-12 .col-xs-12
.bonfire-instructions // extra field to distract password tools like lastpass from injecting css into our username field
for sentence in details label.negative-10.btn.btn-primary.btn-block#submitButton
p.wrappable.negative-10!= sentence i.fa.fa-play
.negative-bottom-margin-30 |   Run code (ctrl + enter)
#MDN-links .button-spacer
p.negative-10 Here are some helpful links: .btn-group.input-group.btn-group-justified
for link, index in MDNlinks label.btn.btn-success#trigger-reset-modal
.negative-10 i.fa.fa-refresh
ul: li: a(href="" + link, target="_blank") !{MDNkeys[index]} |   Reset
if (user) label.btn.btn-success#trigger-help-modal
form.form-horizontal(novalidate='novalidate', name='completedWithForm') i.fa.fa-medkit
.form-group.text-center.negative-10 |   Help
.col-xs-12 label.btn.btn-success#trigger-issue-modal
// extra field to distract password tools like lastpass from injecting css into our username field i.fa.fa-bug
label.negative-10.btn.btn-primary.btn-block#submitButton |   Bug
i.fa.fa-play .button-spacer
|   Run code (ctrl + enter) form.code
.button-spacer .form-group.codeMirrorView
.btn-group.input-group.btn-group-justified textarea#codeOutput(style='display: none;')
label.btn.btn-success#trigger-reset-modal br
i.fa.fa-refresh #testSuite.negative-10
|   Reset br
label.btn.btn-success#trigger-help-modal script(type="text/javascript").
i.fa.fa-medkit var tests = !{JSON.stringify(tests)};
|   Help var challengeSeed = !{JSON.stringify(challengeSeed)};
label.btn.btn-success#trigger-issue-modal var challenge_Id = !{JSON.stringify(challengeId)};
i.fa.fa-bug var challenge_Name = !{JSON.stringify(name)};
|   Bug var started = Math.floor(Date.now());
.button-spacer var challengeType = !{JSON.stringify(challengeType)};
form.code var _ = R;
.form-group.codeMirrorView var dashed = !{JSON.stringify(dashedName)};
textarea#codeOutput(style='display: none;')
br
#testSuite.negative-10
br
script(type="text/javascript").
var tests = !{JSON.stringify(tests)};
var challengeSeed = !{JSON.stringify(challengeSeed)};
var challenge_Id = !{JSON.stringify(challengeId)};
var challenge_Name = !{JSON.stringify(name)};
var started = Math.floor(Date.now());
var challengeType = !{JSON.stringify(challengeType)};
var _ = R;
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: auto; overflow-x: hidden;") .editorScrollDiv(style = "overflow-y: auto; overflow-x: hidden;")
#mainEditorPanel #mainEditorPanel