Advertisement
Guest User

Untitled

a guest
May 27th, 2018
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.54 KB | None | 0 0
  1. <HTMLQuestion xmlns="http://mechanicalturk.amazonaws.com/AWSMechanicalTurkDataSchemas/2011-11-11/HTMLQuestion.xsd">
  2. <HTMLContent><![CDATA[
  3. <!-- YOUR HTML BEGINS -->
  4. <!DOCTYPE html>
  5. <html>
  6. <head>
  7. <meta http-equiv='Content-Type' content='text/html; charset=UTF-8'/>
  8. <script type='text/javascript' src='https://s3.amazonaws.com/mturk-public/externalHIT_v1.js'></script>
  9. <script>
  10. function test(){
  11. document.getElementById('txt-field').value = "1";
  12. }
  13. </script>
  14. </head>
  15. <body>
  16. <form name='mturk_form' method='post' id='mturk_form' action='https://www.mturk.com/mturk/externalSubmit'><input type='hidden' value='' name='assignmentId' id='assignmentId'/>
  17. <span>
  18. <INPUT TYPE="text" NAME="link_click" id='txt-field' value="0" style="display: none">
  19. <div><h3><a href="www.google.com" target="_blank" id='report420' onclick="test()" >link</a></h3>
  20. Instructions</div>
  21. <div><table border="1" style="height: 258px;" width="196"><tbody>Table</tbody></table></div>
  22. </span>
  23. <!--I think the relevant part starts here-->
  24. <script>
  25.  
  26. document.write("Miscellaneous question");
  27.  
  28. var i = localStorage.getItem('i') || Math.floor(3*Math.random());
  29. localStorage.setItem('i',i);
  30.  
  31. if (i==0){
  32. document.write("Version 1");
  33. }
  34. if (i==1){
  35. document.write("Version 2");
  36. }
  37. if (i==2){
  38. document.write("Version 3");
  39. }
  40. document.write("Miscellaneous question");
  41.  
  42. </script>
  43. <p><input type='submit' id='submitButton' value='Submit' /></p></form>
  44. <script language='Javascript'>turkSetAssignmentID();</script>
  45. </body></html>
  46. <!-- YOUR HTML ENDS -->
  47. ]]>
  48. </HTMLContent>
  49. <FrameHeight>600</FrameHeight>
  50. </HTMLQuestion>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement