-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
merge http_ttl high non-zero fix w/extra wait
- Loading branch information
Showing
16 changed files
with
904 additions
and
596 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
#!/usr/bin/env bash | ||
trap '[ -n "$psiclj" ] && kill $psiclj && echo killed psiclj; test -n "$foxpid" && kill $_ && echo killed firefox;' EXIT SIGKILL | ||
cd "$(dirname "$(readlink -f "$0")")" || exit | ||
#./psiclj & # TODO: maybe launch in separate terminal? | ||
java -cp psiclj.jar clojure.main -m psiclj & | ||
psiclj=$! | ||
echo "sleeping while java launches" | ||
sleep 1 | ||
|
||
echo "$(tput setaf 10)manually fullscreen browser (F11, or alt+v f) and ensure zoom 120% $(tput sgr0)" | ||
firefox http://127.0.0.1:3001/seeg.html & | ||
foxpid=$! | ||
|
||
echo "# launching buttonbox/keyboard bridge" | ||
python ./http_ttl.py -v seeg | ||
|
||
# done with everything. dont keep psiclj around | ||
# kills run by trap | ||
#kill $psiclj | ||
#kill $foxpid |
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 |
---|---|---|
@@ -0,0 +1,56 @@ | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
<head> | ||
<meta charset="utf-8"/> | ||
<title>Landscape Choice Loeffler sEEG</title> | ||
<script src="tweaks.js"> </script> | ||
<!-- // qs, yyyymmdd, get_anchor, add_timing_choices --> | ||
|
||
<script> | ||
|
||
|
||
function make_url(){ | ||
let id = qs("id"); | ||
let runnum = qs("runnum"); | ||
/* important trailing slash */ | ||
return("/" + id + "/seeg_habit/" + yyyymmdd() +"/" + runnum +"/"); | ||
} | ||
|
||
function go_url(){ | ||
let url = make_url() + get_anchor() + "&ttl=local&where=seeg&nocaptcha" | ||
//window.location.assign(url); | ||
popup = window.open(url,"Popup", | ||
"toolbar=no,location=no,status=no,menubar=no,"+ | ||
"scrollbars=no,width=1920,height=1080");//,resizable=no | ||
return(false); | ||
} | ||
|
||
|
||
function add_choices(){ | ||
// reorder preferend landscapes | ||
landscapes = ['wellcoin', 'ocean', 'desert','mountain'] | ||
add_landscape_choices(); | ||
timing_choices = ['randomA','randomB'] | ||
add_timing_choices(); | ||
} | ||
</script> | ||
</head> | ||
<body onload="add_choices()"> | ||
<h1> Task specifications </h1> | ||
<form onsubmit="go_url(); return false"> <!-- return false supresses form action --> | ||
<table id="task_setting_tweaks"> | ||
<tr><td><label for="id">ID:</label></td> | ||
<td><input name=id type="text" size=5> </td></tr> | ||
<tr><td><label for="run">run number:</label></td> | ||
<td><input name="runnum" type="text" size=1 value=1> </td></tr> | ||
|
||
</table> | ||
<input type="submit" value="Go!"> | ||
</form> | ||
|
||
<small style="position:absolute; bottom:0px"> redirect to | ||
<span id="urltxt">/id/mr_habit/timepoint/run/ </span> | ||
<a href="/">more options</a> | ||
</small> | ||
</body> | ||
</html> |
Oops, something went wrong.