Code Monkey home page Code Monkey logo

onlinetestforcolorvision's Introduction

onlineTestForColorVision

This is a self contained script that will run a test for color blindness.

In your direcory you will need to have the files colorBlindnessTest.js and colorBlindness.css as well as the folder "IshiharaPlates" which contains the images used for the test. An answer key for these images can be found in the file "IshiharaAnswerKey.txt" located in the folder. These images were taken from: https://www.challengetb.org/publications/tools/country/Ishihara_Tests.pdf

You will need to include the following in your html document:

<head>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"></script>
<script src = "colorBlindnessTestScript.js"></script>
<link rel="stylesheet" type="text/css" href="colorBlindness.css"/>
</head>

<body>
  <div id = "colorBlindnessTestinstruc"></div>
  <div id = "colorBlindnessTest">
    <div id = "colorBlindnessTestText">
    </div>
    <div id = "colorBlindnessResponse" >
    <textarea name="response" id="response" autofocus ></textarea><br><br>
    <div id = "submitText">Press 'Enter' to continue.</div><br><br><br>
    <div id = 'enterNumberError'></div>
    </div>
  </div>
</body>

To include the test in your experiment you will need to call the "ShowColorBlindnessTestInstruc()" function. To exit the test you should add code specific to your exoeriment in the "ToMainExperiment()" function.

onlinetestforcolorvision's People

Contributors

isabelladestefano avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.