Permalink
Browse files

Merge pull request #2 from mjsobrep/qualtrics

add an implementation for Qualtrics
  • Loading branch information...
albertobeta committed Aug 30, 2017
2 parents d427071 + 6a2956f commit 5ef02fbef6465a2bd23d0ec2438af6a774920e1a
View
@@ -0,0 +1,21 @@
# The Affective Slider on Qualtrics
This folder has the necessary code to implement the Affective Slider in Qualtrics.
I would share the questions directly, but can't find a way to do that (if you
know how, let me know -mjsobrep).
You should end up with this: ![](instruction_images/qualtrics_demo.png)
## Setup:
- Create a new slider element: ![](instruction_images/make_slider.png)
- Set to 1 choice and 0 grid marks: ![](instruction_images/choices_grid.png)
- Position the slider at 50: ![](instruction_images/set_slider.png)
- Hide the value and force a response: ![](instruction_images/hideVal_forceResp.png)
- Add JS: ![](instruction_images/add_js.png)
- Copy in JS from [arousal.js](arousal.js) and save: ![](instruction_images/copy_js.png)
- Copy the question: ![](instruction_images/copyQ.png)
- Open JS for second question: ![](instruction_images/second_js.png)
- Copy in JS from [pleasure.js](pleasure.js) and save: ![](instruction_images/copyjs2.png)
- Randomize the block of questions:
- ![](instruction_images/randomize.png)
- ![](instruction_images/randomize2.png)
View

Some generated files are not rendered by default. Learn more.

Oops, something went wrong.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
View

Some generated files are not rendered by default. Learn more.

Oops, something went wrong.
@@ -0,0 +1 @@
<svg version="1.1" viewBox="0 0 77.952756 77.952756" xmlns="http://www.w3.org/2000/svg"><g transform="translate(0 -974.41)"><g transform="matrix(1.25 0 0 -1.25 -959.57 1121.7)"><g transform="translate(816.73 96.748)"><path d="m0 0-3.463 0.331c0.221 2.298-1.26 4.326-3.297 4.521-2.029 0.196-3.875-1.52-4.095-3.82l-3.461 0.333c0.404 4.209 3.955 7.327 7.886 6.95 3.948-0.377 6.832-4.107 6.43-8.315" fill="#505050"/></g><g transform="translate(820.83 86.867)"><path d="m0 0c0-12.312-9.797-22.297-21.881-22.297-12.085 0-21.882 9.985-21.882 22.297 8.835 0.256 9.797 0 21.882 0h21.881z" fill="#68696b"/></g><path d="m777.07 86.867h43.419v-4.921h-43.419v4.921z" fill="#fff"/><g transform="translate(778.09 85.867)"><path d="m0 0c0.514-11.28 9.674-20.297 20.859-20.297 11.184 0 20.344 9.017 20.858 20.297h-41.717zm20.859-22.297c-12.617 0-22.881 10.451-22.881 23.297v1h45.762v-1c0-12.846-10.265-23.297-22.881-23.297" fill="#505050"/></g><g transform="translate(779.74 96.648)"><path d="m0 0c-0.465 4.201 2.332 7.971 6.233 8.405 3.898 0.439 7.456-2.637 7.921-6.839l-3.457-0.382c-0.254 2.296-2.082 3.982-4.081 3.764-1.995-0.222-3.413-2.271-3.159-4.566l-3.457-0.382z" fill="#505050"/></g><g transform="translate(798.95 114.2)"><path d="m0 0c-15.271 0-27.694-12.423-27.694-27.693 0-15.271 12.423-27.694 27.694-27.694 15.27 0 27.693 12.423 27.693 27.694 0 15.27-12.423 27.693-27.693 27.693m0-57.887c-16.649 0-30.194 13.545-30.194 30.194 0 16.648 13.545 30.193 30.194 30.193 16.648 0 30.193-13.545 30.193-30.193 0-16.649-13.545-30.194-30.193-30.194" fill="#505050"/></g></g></g></svg>
@@ -0,0 +1 @@
<svg width="227.5mm" height="15mm" version="1.1" viewBox="0 0 806.10233 53.149605" xmlns="http://www.w3.org/2000/svg"><defs><linearGradient id="b" x2="1" gradientTransform="matrix(322.55 0 0 -322.55 432.61 66.842)" gradientUnits="userSpaceOnUse"><stop stop-color="#fff" offset="0"/><stop stop-color="#231f20" offset="1"/></linearGradient><linearGradient id="a" x2="1" gradientTransform="matrix(-322.55 0 0 322.55 432.61 65.842)" gradientUnits="userSpaceOnUse"><stop stop-color="#fff" offset="0"/><stop stop-color="#231f20" offset="1"/></linearGradient></defs><g transform="translate(0 -999.21)"><g transform="matrix(1.25 0 0 -1.25 -137.4 1109.4)"><path d="m593.88 76.923-161.27-10.585 161.27-10.081 161.27-10.082v20.667 20.667l-161.27-10.586z" fill="url(#b)"/><path d="m110.06 65.842v-20.666l161.27 10.585 161.27 10.584-161.27 10.082-161.27 10.082v-20.667z" fill="url(#a)"/></g></g></svg>
@@ -0,0 +1 @@
<svg version="1.1" viewBox="0 0 77.952755 77.952756" xmlns="http://www.w3.org/2000/svg"><defs><clipPath id="clipPath214"><path d="m0 338h861v-338h-861v338z"/></clipPath></defs><g transform="translate(0 -974.41)"><g transform="matrix(1.25 0 0 -1.25 -45.213 1336.2)"><g clip-path="url(#clipPath214)"><g transform="translate(67.542 285.34)"><path d="m0 0c-15.27 0-27.693-12.424-27.693-27.693 0-15.272 12.423-27.694 27.693-27.694 15.271 0 27.693 12.422 27.693 27.694 0 15.269-12.422 27.693-27.693 27.693m0-57.887c-16.648 0-30.193 13.545-30.193 30.194 0 16.648 13.545 30.193 30.193 30.193s30.193-13.545 30.193-30.193c0-16.649-13.545-30.194-30.193-30.194" fill="#505050"/></g><g transform="translate(52.681 249.31)"><path d="m0 0c-0.37 0-0.744 0.014-1.123 0.043-2.326 0.176-5.145 1.019-6.076 2.853l2.997 1.258c0.136-0.265 1.292-0.965 3.354-1.123 1.13-0.084 4.965-0.146 7.085 2.672l2.726-1.693c-1.92-2.553-5.215-4.01-8.963-4.01" fill="#505050"/></g><g transform="translate(80.698 249.67)"><path d="m0 0c-0.92 0-1.867 0.107-2.82 0.328-2.134 0.494-4.621 1.715-5.201 3.656l2.98 0.832c0.084-0.281 1.051-1.132 2.943-1.57 1.03-0.238 4.586-0.824 6.994 1.668l2.267-2.047c-1.804-1.867-4.364-2.867-7.163-2.867" fill="#505050"/></g><g transform="translate(45.801 257.62)"><path d="M 0,0 -2.032,0.734 C -2.007,0.807 0.659,7.945 8.917,7.752 L 8.866,5.59 C 2.163,5.727 0.021,0.057 0,0" fill="#505050"/></g><g transform="translate(88.595 257.73)"><path d="m0 0c-3.889 6.34-9.369 4.979-9.602 4.916l-0.524 1.93c0.071 0.019 7.138 1.853 11.831-5.799l-1.705-1.047z" fill="#505050"/></g><g transform="translate(68.542 237.84)"><path d="m0 0c3.582 0 6.485-0.896 6.485-2s-2.903-2-6.485-2c-3.581 0-6.484 0.896-6.484 2s2.903 2 6.484 2" fill="#505050"/></g><g transform="translate(68.542 237.84)"><path d="m0 0c3.582 0 6.485-0.896 6.485-2s-2.903-2-6.485-2c-3.581 0-6.484 0.896-6.484 2s2.903 2 6.484 2z" fill="none" stroke="#505050" stroke-miterlimit="10"/></g></g></g></g></svg>
@@ -0,0 +1 @@
<svg version="1.1" viewBox="0 0 77.952756 77.952756" xmlns="http://www.w3.org/2000/svg"><g transform="translate(0 -974.41)"><g transform="matrix(1.25 0 0 -1.25 -45.703 1123.2)"><g transform="translate(67.543 115.56)"><path d="m0 0c-15.27 0-27.693-12.423-27.693-27.693 0-15.271 12.423-27.694 27.693-27.694 15.271 0 27.693 12.423 27.693 27.694 0 15.27-12.422 27.693-27.693 27.693m0-57.887c-16.648 0-30.193 13.545-30.193 30.194 0 16.648 13.545 30.193 30.193 30.193s30.193-13.545 30.193-30.193c0-16.649-13.545-30.194-30.193-30.194" fill="#505050"/></g><g transform="translate(78.027 68.261)"><path d="m0 0c-4.293 6.925-10.559 6.659-13.053 6.224-3.937-0.688-7.086-3.083-7.489-5.697l-3.983 0.518c0.648 4.194 5.056 7.815 10.719 8.805 6.97 1.214 13.435-1.785 17.302-8.026l-3.496-1.824z" fill="#505050"/></g><g transform="translate(87.981 99.373)"><path d="m0 0c-0.36 0.041-8.901 1.063-13.741 5.736l1.222 1.449c4.405-4.253 12.63-5.235 12.713-5.245l-0.194-1.94z" fill="#505050"/></g><g transform="translate(78.889 99.763)"><path d="m0 0c2.08 0 3.767-2.177 3.767-4.862 0-2.686-1.687-4.863-3.767-4.863s-3.766 2.177-3.766 4.863c0 2.685 1.686 4.862 3.766 4.862" fill="#505050"/></g><g transform="translate(54.722 99.763)"><path d="m0 0c2.08 0 3.767-2.177 3.767-4.862 0-2.686-1.687-4.863-3.767-4.863s-3.766 2.177-3.766 4.863c0 2.685 1.686 4.862 3.766 4.862" fill="#505050"/></g><g transform="translate(47.394 98.815)"><path d="M 0,0 -0.669,1.937 C 2.982,3.121 9.254,5.684 10.537,7.519 L 12.283,6.374 C 10.182,3.366 1.036,0.335 0,0" fill="#505050"/></g></g></g></svg>
@@ -0,0 +1 @@
<svg version="1.1" viewBox="0 0 77.952756 77.952756" xmlns="http://www.w3.org/2000/svg"><g transform="translate(0 -974.41)"><g transform="matrix(1.25 0 0 -1.25 -959.62 1333.9)"><g transform="translate(798.95 283.74)"><path d="m0 0c-15.271 0-27.693-12.424-27.693-27.693 0-15.272 12.422-27.694 27.693-27.694 15.27 0 27.693 12.422 27.693 27.694 0 15.269-12.423 27.693-27.693 27.693m0-57.887c-16.648 0-30.193 13.545-30.193 30.194 0 16.648 13.545 30.193 30.193 30.193s30.193-13.545 30.193-30.193c0-16.649-13.545-30.194-30.193-30.194" fill="#505050"/></g><g transform="translate(786.58 273.04)"><path d="m0 0c4.699 0 8.509-3.81 8.509-8.508 0-4.699-3.81-8.509-8.509-8.509-4.698 0-8.508 3.81-8.508 8.509 0 4.698 3.81 8.508 8.508 8.508" fill="#fff"/></g><g transform="translate(786.58 272.29)"><path d="m0 0c-4.278 0-7.759-3.48-7.759-7.758 0-4.277 3.481-7.758 7.759-7.758s7.758 3.481 7.758 7.758c0 4.278-3.48 7.758-7.758 7.758m0-17.016c-5.104 0-9.259 4.154-9.259 9.258 0 5.106 4.155 9.258 9.259 9.258s9.258-4.152 9.258-9.258c0-5.104-4.154-9.258-9.258-9.258" fill="#505050"/></g><g transform="translate(786.58 268.48)"><path d="m0 0c2.182 0 3.951-1.768 3.951-3.949 0-2.182-1.769-3.95-3.951-3.95-2.181 0-3.949 1.768-3.949 3.95 0 2.181 1.768 3.949 3.949 3.949" fill="#505050"/></g><g transform="translate(785.97 239.72)"><path d="m0 0h24.271" fill="#505050" stroke="#505050" stroke-miterlimit="10" stroke-width="3"/></g><g transform="translate(811.24 273.03)"><path d="m0 0c4.699 0 8.509-3.81 8.509-8.509 0-4.698-3.81-8.508-8.509-8.508-4.698 0-8.508 3.81-8.508 8.508 0 4.699 3.81 8.509 8.508 8.509" fill="#fff"/></g><g transform="translate(811.24 272.29)"><path d="m0 0c-4.278 0-7.759-3.48-7.759-7.76 0-4.277 3.481-7.756 7.759-7.756s7.758 3.479 7.758 7.756c0 4.28-3.48 7.76-7.758 7.76m0-17.016c-5.104 0-9.259 4.153-9.259 9.256 0 5.106 4.155 9.26 9.259 9.26s9.258-4.154 9.258-9.26c0-5.103-4.154-9.256-9.258-9.256" fill="#505050"/></g><g transform="translate(811.24 268.48)"><path d="m0 0c2.182 0 3.951-1.769 3.951-3.95 0-2.182-1.769-3.949-3.951-3.949-2.181 0-3.949 1.767-3.949 3.949 0 2.181 1.768 3.95 3.949 3.95" fill="#505050"/></g></g></g></svg>

0 comments on commit 5ef02fb

Please sign in to comment.