mirror of
https://github.com/jspsych/jsPsych.git
synced 2025-05-11 16:18:11 +00:00
fixes circle drawing problem
This commit is contained in:
parent
b146037af3
commit
6006293416
@ -127,7 +127,7 @@ jsPsych.plugins["webgazer-validate"] = (function() {
|
||||
|
||||
function drawCircle(target_x, target_y, dx, dy,r){
|
||||
var html = `
|
||||
<div class="validation-centroid" style="width:${r*2}px; height:${r*2}px; border: 2px solid red; border-radius: ${r}px; background-color: transparent; position: absolute; left:calc(${target_x}% + ${dx}px); top:calc(${target_y}% + ${dy}px);"></div>
|
||||
<div class="validation-centroid" style="width:${r*2}px; height:${r*2}px; border: 2px solid red; border-radius: ${r}px; background-color: transparent; position: absolute; left:calc(${target_x}% + ${dx-r}px); top:calc(${target_y}% + ${dy-r}px);"></div>
|
||||
`
|
||||
return html;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user