-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added more to my side of the experiments
- Loading branch information
Showing
12 changed files
with
187 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -15,25 +15,31 @@ | |
.isa_info { | ||
color: #00529B; | ||
background-color: #BDE5F8; | ||
background-image: url('/experiments/info.png'); | ||
background-image: url("/experiment_assets/info.png"); | ||
} | ||
.isa_success { | ||
color: #4F8A10; | ||
background-color: #DFF2BF; | ||
background-image:url('/experiments/success.png'); | ||
background-image:url("/experiment_assets/success.png"); | ||
} | ||
.isa_warning { | ||
color: #9F6000; | ||
background-color: #FEEFB3; | ||
background-image: url('/experiments/warning.png'); | ||
background-image: url("/experiment_assets/warning.png"); | ||
} | ||
.isa_error { | ||
color: #D8000C; | ||
background-color: #FFBABA; | ||
background-image: url('/experiments/error.png'); | ||
background-image: url("/experiment_assets/error.png"); | ||
} | ||
|
||
|
||
.progress { | ||
position: relative; | ||
float: right; | ||
top: 0; | ||
right: 0; | ||
margin-top: -75px; | ||
} | ||
|
||
|
||
</style> | ||
|
@@ -95,7 +101,7 @@ <h3>Instructions</h3> | |
</div> | ||
<div id="experimentBody" ng-show="stage == EXPERIMENT_STAGE"> | ||
<h2>Main experiment</h2> | ||
<div> | ||
<div class="progress"> | ||
Progress: {{step}}/{{spec.experimentSteps.length}} <meter value="{{step}}" max="{{spec.experimentSteps.length}}"></meter> | ||
</div> | ||
<div ng-include src="getPath()"></div> | ||
|
@@ -120,7 +126,7 @@ <h2>Done!</h2> | |
We'd still really like your experiment data, could please email the information you see below? | ||
<br/> | ||
Copy this data: | ||
<textarea readonly> {{results}} </textarea> | ||
<textarea readonly> {{prettyResults()}} </textarea> | ||
<p> | ||
and send to: <a href="mailto:[email protected]">[email protected]</a> | ||
</p> | ||
|
@@ -130,7 +136,7 @@ <h2>Done!</h2> | |
|
||
<p>Below is a copy of the data we have saved</p> | ||
|
||
<textarea readonly > {{results}} </textarea> | ||
<textarea readonly > {{prettyResults()}} </textarea> | ||
|
||
<div id="summary"></div> | ||
</div> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,42 @@ | ||
<h1>BLA BLAH BLAH</h1> | ||
<div ng-controller="RapidScanCtrl"> | ||
|
||
<style type="text/css"> | ||
.experimentContainer { | ||
width: 100%; | ||
text-align: center; | ||
} | ||
|
||
</style> | ||
|
||
<div class="experimentContainer"> | ||
|
||
<div id="translateTest" ng-show="bigScope.step == 1"> | ||
<div id="instructions" > | ||
<div> | ||
<img src="/experiment_assets/Instructions.jpg"> | ||
</div> | ||
</div> | ||
<div> | ||
<ul> | ||
<li ng-repeat="segment in flashes()"> | ||
<p> | ||
{{segment.start}}, {{segment.end}} | ||
</p> | ||
<img src="http://sail.usc.edu/Peter/mystery/mystery.jpg"></li> | ||
</ul> | ||
</div> | ||
</div> | ||
|
||
<!--<div id="flashTest" ng-show="bigScope.step == 2">--> | ||
<!--<div id="instructions2" >--> | ||
<!--<div>--> | ||
<!--<img src="/experiment_assets/Instructions.jpg">--> | ||
<!--</div>--> | ||
<!--</div>--> | ||
<!--<div>--> | ||
<!--<img src="http://sail.usc.edu/Peter/mystery/mystery.jpg">--> | ||
<!--</div>--> | ||
|
||
<!--</div>--> | ||
</div> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
require 'FileUtils' | ||
require 'modules/JSON_patch' | ||
|
||
class ExperimentsController < ApplicationController | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
{ | ||
"experiment": "Virtual bird tour", | ||
"instructions": [ | ||
"This is a timed expersssssssssssssiment. You are encouraged to balance accurate work with finishing quickly.", | ||
"This experiment is dessaaaaaaaaaaaasigned to measure how quickly acoustic events of interest can be detected", | ||
"There are 3 parts asssssssssssof this experiment to complete", | ||
"In total the expaaaaaaaaaaaaaaaaeriment should take no longer than 30 minutes", | ||
"You may use externaaaaaaaaaaaaaaaal resources to assist you. We recommend preparing them before the experiment." | ||
], | ||
"experimentSteps": [ | ||
{ | ||
"template": "/assets/tour_experiment.html" | ||
}, | ||
{ | ||
"template": "/assets/tour_experiment.html" | ||
}, | ||
{ | ||
"template": "/assets/tour_experiment.html" | ||
} | ||
], | ||
"experimentResultsPostUri": "/experiments" | ||
} |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
{ | ||
"experiment": "Rapid Spectrogram Scanning", | ||
"instructions": [ | ||
"This is a timed experiment. You are encouraged to balance accurate work with finishing quickly.", | ||
"This experiment is designed to measure how quickly acoustic events of interest can be detected", | ||
"There are 3 parts of this experiment to complete", | ||
"In total the experiment should take no longer than 30 minutes", | ||
"You may use external resources to assist you. We recommend preparing them before the experiment." | ||
], | ||
"experimentSteps": [ | ||
{ | ||
"template": "/assets/rapid_scanning_experiment.html", | ||
"name": "ff-koala", | ||
"type": "fast-forward", | ||
"audioId": "some-guid", | ||
"startTime": 1800, | ||
"endTime": 2400, | ||
"compression": 1 | ||
}, | ||
{ | ||
"template": "/assets/rapid_scanning_experiment.html", | ||
"name": "flashing-koala", | ||
"type": "flashing", | ||
"startTime": 1800, | ||
"endTime": 2400, | ||
"compression": 1 | ||
}, | ||
{ | ||
"template": "/assets/rapid_scanning_experiment.html", | ||
"name": "ff-night", | ||
"type": "fast-forward", | ||
"audioId": "some-guid", | ||
"startTime": 1800, | ||
"endTime": 2400, | ||
"compression": 1 | ||
}, | ||
{ | ||
"template": "/assets/rapid_scanning_experiment.html", | ||
"name": "flashing-night", | ||
"type": "flashing", | ||
"startTime": 1800, | ||
"endTime": 2400, | ||
"compression": 1 | ||
} | ||
], | ||
"experimentResultsPostUri": "/experiments" | ||
} |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.