Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
B
Brookes Template 2020
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Package Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Wakefield Morys-Carter
Brookes Template 2020
Commits
2843faa6
Commit
2843faa6
authored
4 years ago
by
Wakefield Morys-Carter
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
remove round defiintion
parent
b7f282a4
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
1 addition
and
11 deletions
+1
-11
html/template-legacy-browsers.js
html/template-legacy-browsers.js
+0
-5
html/template.js
html/template.js
+0
-5
template.psyexp
template.psyexp
+1
-1
No files found.
html/template-legacy-browsers.js
View file @
2843faa6
...
...
@@ -118,7 +118,6 @@ var thisExp;
var
win
;
var
event
;
var
shuffle
;
var
round
;
var
items
;
var
consent_question
;
var
key_resp
;
...
...
@@ -197,10 +196,6 @@ function experimentInit() {
event
=
psychoJS
.
eventManager
;
Array
.
prototype
.
append
=
[].
push
;
shuffle
=
util
.
shuffle
;
round
=
function
(
num
,
n
=
0
)
{
return
+
(
Math
.
round
(
num
+
(
"
e+
"
+
n
))
+
(
"
e-
"
+
n
));
}
!
function
(
a
,
b
,
c
,
d
,
e
,
f
,
g
,
h
,
i
){
function
j
(
a
){
var
b
,
c
=
a
.
length
,
e
=
this
,
f
=
0
,
g
=
e
.
i
=
e
.
j
=
0
,
h
=
e
.
S
=
[];
for
(
c
||
(
a
=
[
c
++
]);
d
>
f
;)
h
[
f
]
=
f
++
;
for
(
f
=
0
;
d
>
f
;
f
++
)
h
[
f
]
=
h
[
g
=
s
&
g
+
a
[
f
%
c
]
+
(
b
=
h
[
f
])],
h
[
g
]
=
b
;(
e
.
g
=
function
(
a
){
for
(
var
b
,
c
=
0
,
f
=
e
.
i
,
g
=
e
.
j
,
h
=
e
.
S
;
a
--
;)
b
=
h
[
f
=
s
&
f
+
1
],
c
=
c
*
d
+
h
[
s
&
(
h
[
f
]
=
h
[
g
=
s
&
g
+
b
])
+
(
h
[
g
]
=
b
)];
return
e
.
i
=
f
,
e
.
j
=
g
,
c
})(
d
)}
function
k
(
a
,
b
){
var
c
,
d
=
[],
e
=
typeof
a
;
if
(
b
&&
"
object
"
==
e
)
for
(
c
in
a
)
try
{
d
.
push
(
k
(
a
[
c
],
b
-
1
))}
catch
(
f
){}
return
d
.
length
?
d
:
"
string
"
==
e
?
a
:
a
+
"
\
0
"
}
function
l
(
a
,
b
){
for
(
var
c
,
d
=
a
+
""
,
e
=
0
;
e
<
d
.
length
;)
b
[
s
&
e
]
=
s
&
(
c
^=
19
*
b
[
s
&
e
])
+
d
.
charCodeAt
(
e
++
);
return
n
(
b
)}
function
m
(
c
){
try
{
return
o
?
n
(
o
.
randomBytes
(
d
)):(
a
.
crypto
.
getRandomValues
(
c
=
new
Uint8Array
(
d
)),
n
(
c
))}
catch
(
e
){
return
[
+
new
Date
,
a
,(
c
=
a
.
navigator
)
&&
c
.
plugins
,
a
.
screen
,
n
(
b
)]}}
function
n
(
a
){
return
String
.
fromCharCode
.
apply
(
0
,
a
)}
var
o
,
p
=
c
.
pow
(
d
,
e
),
q
=
c
.
pow
(
2
,
f
),
r
=
2
*
q
,
s
=
d
-
1
,
t
=
c
[
"
seed
"
+
i
]
=
function
(
a
,
f
,
g
){
var
h
=
[];
f
=
1
==
f
?{
entropy
:
!
0
}:
f
||
{};
var
o
=
l
(
k
(
f
.
entropy
?[
a
,
n
(
b
)]:
null
==
a
?
m
():
a
,
3
),
h
),
s
=
new
j
(
h
);
return
l
(
n
(
s
.
S
),
b
),(
f
.
pass
||
g
||
function
(
a
,
b
,
d
){
return
d
?(
c
[
i
]
=
a
,
b
):
a
})(
function
(){
for
(
var
a
=
s
.
g
(
e
),
b
=
p
,
c
=
0
;
q
>
a
;)
a
=
(
a
+
c
)
*
d
,
b
*=
d
,
c
=
s
.
g
(
1
);
for
(;
a
>=
r
;)
a
/=
2
,
b
/=
2
,
c
>>>=
1
;
return
(
a
+
c
)
/
b
},
o
,
"
global
"
in
f
?
f
.
global
:
this
==
c
)};
if
(
l
(
c
[
i
](),
b
),
g
&&
g
.
exports
){
g
.
exports
=
t
;
try
{
o
=
require
(
"
crypto
"
)}
catch
(
u
){}}
else
h
&&
h
.
amd
&&
h
(
function
(){
return
t
})}(
this
,[],
Math
,
256
,
6
,
52
,
"
object
"
==
typeof
module
&&
module
,
"
function
"
==
typeof
define
&&
define
,
"
random
"
);
items
=
[];
...
...
This diff is collapsed.
Click to expand it.
html/template.js
View file @
2843faa6
...
...
@@ -129,7 +129,6 @@ var thisExp;
var
win
;
var
event
;
var
shuffle
;
var
round
;
var
items
;
var
consent_question
;
var
key_resp
;
...
...
@@ -208,10 +207,6 @@ function experimentInit() {
event
=
psychoJS
.
eventManager
;
Array
.
prototype
.
append
=
[].
push
;
shuffle
=
util
.
shuffle
;
round
=
function
(
num
,
n
=
0
)
{
return
+
(
Math
.
round
(
num
+
(
"
e+
"
+
n
))
+
(
"
e-
"
+
n
));
}
!
function
(
a
,
b
,
c
,
d
,
e
,
f
,
g
,
h
,
i
){
function
j
(
a
){
var
b
,
c
=
a
.
length
,
e
=
this
,
f
=
0
,
g
=
e
.
i
=
e
.
j
=
0
,
h
=
e
.
S
=
[];
for
(
c
||
(
a
=
[
c
++
]);
d
>
f
;)
h
[
f
]
=
f
++
;
for
(
f
=
0
;
d
>
f
;
f
++
)
h
[
f
]
=
h
[
g
=
s
&
g
+
a
[
f
%
c
]
+
(
b
=
h
[
f
])],
h
[
g
]
=
b
;(
e
.
g
=
function
(
a
){
for
(
var
b
,
c
=
0
,
f
=
e
.
i
,
g
=
e
.
j
,
h
=
e
.
S
;
a
--
;)
b
=
h
[
f
=
s
&
f
+
1
],
c
=
c
*
d
+
h
[
s
&
(
h
[
f
]
=
h
[
g
=
s
&
g
+
b
])
+
(
h
[
g
]
=
b
)];
return
e
.
i
=
f
,
e
.
j
=
g
,
c
})(
d
)}
function
k
(
a
,
b
){
var
c
,
d
=
[],
e
=
typeof
a
;
if
(
b
&&
"
object
"
==
e
)
for
(
c
in
a
)
try
{
d
.
push
(
k
(
a
[
c
],
b
-
1
))}
catch
(
f
){}
return
d
.
length
?
d
:
"
string
"
==
e
?
a
:
a
+
"
\
0
"
}
function
l
(
a
,
b
){
for
(
var
c
,
d
=
a
+
""
,
e
=
0
;
e
<
d
.
length
;)
b
[
s
&
e
]
=
s
&
(
c
^=
19
*
b
[
s
&
e
])
+
d
.
charCodeAt
(
e
++
);
return
n
(
b
)}
function
m
(
c
){
try
{
return
o
?
n
(
o
.
randomBytes
(
d
)):(
a
.
crypto
.
getRandomValues
(
c
=
new
Uint8Array
(
d
)),
n
(
c
))}
catch
(
e
){
return
[
+
new
Date
,
a
,(
c
=
a
.
navigator
)
&&
c
.
plugins
,
a
.
screen
,
n
(
b
)]}}
function
n
(
a
){
return
String
.
fromCharCode
.
apply
(
0
,
a
)}
var
o
,
p
=
c
.
pow
(
d
,
e
),
q
=
c
.
pow
(
2
,
f
),
r
=
2
*
q
,
s
=
d
-
1
,
t
=
c
[
"
seed
"
+
i
]
=
function
(
a
,
f
,
g
){
var
h
=
[];
f
=
1
==
f
?{
entropy
:
!
0
}:
f
||
{};
var
o
=
l
(
k
(
f
.
entropy
?[
a
,
n
(
b
)]:
null
==
a
?
m
():
a
,
3
),
h
),
s
=
new
j
(
h
);
return
l
(
n
(
s
.
S
),
b
),(
f
.
pass
||
g
||
function
(
a
,
b
,
d
){
return
d
?(
c
[
i
]
=
a
,
b
):
a
})(
function
(){
for
(
var
a
=
s
.
g
(
e
),
b
=
p
,
c
=
0
;
q
>
a
;)
a
=
(
a
+
c
)
*
d
,
b
*=
d
,
c
=
s
.
g
(
1
);
for
(;
a
>=
r
;)
a
/=
2
,
b
/=
2
,
c
>>>=
1
;
return
(
a
+
c
)
/
b
},
o
,
"
global
"
in
f
?
f
.
global
:
this
==
c
)};
if
(
l
(
c
[
i
](),
b
),
g
&&
g
.
exports
){
g
.
exports
=
t
;
try
{
o
=
require
(
"
crypto
"
)}
catch
(
u
){}}
else
h
&&
h
.
amd
&&
h
(
function
(){
return
t
})}(
this
,[],
Math
,
256
,
6
,
52
,
"
object
"
==
typeof
module
&&
module
,
"
function
"
==
typeof
define
&&
define
,
"
random
"
);
items
=
[];
...
...
This diff is collapsed.
Click to expand it.
template.psyexp
View file @
2843faa6
...
...
@@ -535,7 +535,7 @@
<Param
name=
"Before Experiment"
updates=
"constant"
val=
""
valType=
"extendedCode"
/>
<Param
name=
"Before JS Experiment"
updates=
"constant"
val=
""
valType=
"extendedCode"
/>
<Param
name=
"Begin Experiment"
updates=
"constant"
val=
""
valType=
"extendedCode"
/>
<Param
name=
"Begin JS Experiment"
updates=
"constant"
val=
"thisExp=psychoJS.experiment;&#10;win=psychoJS.window;&#10;event=psychoJS.eventManager;&#10;Array.prototype.append = [].push;&#10;shuffle = util.shuffle;&#10;
round = function(num, n=0) { &#10; return +(Math.round(num + ("e+" + n)) + ("e-" + n));&#10;}&#10;&#10;
"
valType=
"extendedCode"
/>
<Param
name=
"Begin JS Experiment"
updates=
"constant"
val=
"thisExp=psychoJS.experiment;&#10;win=psychoJS.window;&#10;event=psychoJS.eventManager;&#10;Array.prototype.append = [].push;&#10;shuffle = util.shuffle;&#10;"
valType=
"extendedCode"
/>
<Param
name=
"Begin JS Routine"
updates=
"constant"
val=
""
valType=
"extendedCode"
/>
<Param
name=
"Begin Routine"
updates=
"constant"
val=
""
valType=
"extendedCode"
/>
<Param
name=
"Code Type"
updates=
"None"
val=
"JS"
valType=
"str"
/>
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment