function cf_wd_loadbox(t_id) { if(typeof cogfun_widget != "undefined") { // return; } cogfun_widget.p(t_id); } cogfun_widget = { IEnoyaro: function() { return (typeof(window.innerWidth)!='number') ; }, fetch: function() { this.$("cf_wd_point").appendChild(this.$("cf_bx_sidebar_160")); }, p: function(t_id) { var d=document.createElement('div'); var h=540, bxlh='50px'; var bxclose = '
click anywhere in this bar to close
'; var p = 'fixed', t = this.wsz()[1]; if(this.IEnoyaro()) { p = 'absolute'; t = t-h-100; } else { t = t/2-h/2-60; } LT=['0px',t+'px']; this.sty(d, {textAlign:'center',width:'100%',height:h+'px',position:p,left:LT[0],top:LT[1],zIndex:9999}); d.innerHTML+=bxclose; d.innerHTML+='
'; d.innerHTML+=bxclose; var dbd=document.body; dbd.insertBefore(d, dbd.lastChild); }, oLT: function(o) {o=this.$(o); var ar = [0,0]; if(o.offsetParent) { do { ar[0]+=o.offsetLeft; ar[1]+=o.offsetTop; } while (o = o.offsetParent); } return ar; }, wsz: function() { return this.IEnoyaro() ? [document.body.clientWidth,document.body.clientHeight] : [window.innerWidth,window.innerHeight]; }, hai: function(n) { var o = this.$('cf_bx_desc_'+n); var s = this.oLT(o.parentNode); var d = parseInt(o.style.width); if(!d) d = 180; if(s[0] > 300) { d = -d - 40; } this.sty(o, {display:"",marginLeft:d+'px'}); }, bai: function(n) { this.$('cf_bx_desc_'+n).style.display="none"; }, dai: function(n) { this.$(n).parentNode.removeChild(this.$(n)); }, sty: function(t_o, s_o) { for(var i in s_o) { t_o.style[i] = s_o[i]; } }, $: function(n){ return (typeof n == "string") ? document.getElementById(n) : n; } } function cf_wd_init() { cogfun_widget.$("cf_wd_point_6").innerHTML = "
The flanker test is another interference task where different inputs compete with the target, slowing down the response speed. This is a basic variant using arrows: identify the direction of the CENTER arrow as fast as you can. Estimated completion time: less than 1 minute per session. (test added following suggestion from an anonymous user).
Test your mind: Eriksen flanker test
"; } if(cogfun_widget.$("cf_wd_point_6")) { cf_wd_init(); } else { if(typeof window.onload == 'object') { var ol = window.onload; window.onload = function() { if(ol) ol(); cf_wd_init(); }} else { window.addEventListener('load', cf_wd_init, false); } }