Skip to content

Commit

Permalink
update folder name for saving
Browse files Browse the repository at this point in the history
  • Loading branch information
hanayik committed May 8, 2017
1 parent dbe9a01 commit 13ce565
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 10 deletions.
8 changes: 4 additions & 4 deletions app.html
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,10 @@
<label for="assessmentID">Assessment</label>
<select id="assessmentID" name="assessmentType">
<option value=""></option>
<option value="brokenWindow">Broken Window</option>
<option value="picnicScene">Picnic Scene</option>
<option value="pbj">Making a PBJ</option>
<option value="cinderellaStory">Cinderella Story</option>
<option value="BrokenWindow">Broken Window</option>
<option value="PicD">Picnic Scene</option>
<option value="PBJ">Making a PBJ</option>
<option value="Cinderella">Cinderella Story</option>
</select>

<button type="button" onclick="getStarted()">Start</button>
Expand Down
13 changes: 7 additions & 6 deletions core.js
Original file line number Diff line number Diff line change
Expand Up @@ -193,6 +193,7 @@ function ff() {
console.log ('assessment field is blank')
alert('Assessment field is blank!')
} else {
console.log("assessment is: ", assessmentType)
return assessmentType
}
},
Expand Down Expand Up @@ -627,7 +628,7 @@ function updateKeys() {
keys.rt = 0
console.log("key: " + keys.key)
if (keys.key === 'ArrowRight') {
if (assessment === 'cinderellaStory') {
if (assessment === 'Cinderella') {
if (!cinderellaRecordingHasStarted) {
cinderellaImgIdx += 1
if (cinderellaImgIdx > maxNumCinderellaImgs) {
Expand All @@ -638,7 +639,7 @@ function updateKeys() {
}
}
if (keys.key === 'ArrowLeft') {
if (assessment === 'cinderellaStory') {
if (assessment === 'Cinderella') {
if (!cinderellaRecordingHasStarted) {
cinderellaImgIdx -= 1
if (cinderellaImgIdx < 0) {
Expand Down Expand Up @@ -722,13 +723,13 @@ function getStarted() {
console.log('session is: ', sessID)
stopWebCamPreview()
closeNav()
if (assessment === 'brokenWindow') {
if (assessment === 'BrokenWindow') {
showBrokenWindowInstructions(brokenWindowInstructions)
} else if (assessment === 'picnicScene') {
} else if (assessment === 'PicD') {
showPicnicSceneInstructions(picnicSceneInstructions)
} else if (assessment === 'pbj') {
} else if (assessment === 'PBJ') {
showPbjInstructions(pbjInstructions)
} else if (assessment === 'cinderellaStory') {
} else if (assessment === 'Cinderella') {
showCinderellaStoryInstructions(cinderellaStoryInstructions)
}
//showInstructions(instructions)
Expand Down

0 comments on commit 13ce565

Please sign in to comment.