Amazon mturk更改了HIT布局模板

时间:2018-11-07 23:29:55

标签: mechanicalturk

我最近对HIT的布局模板进行了更改。最初,我只有一个下拉菜单,现在有一个下拉菜单和一个注释框。但是,当我在沙箱中创建HIT并自行处理时,结果不会作为输出传递给我。即我只从下拉列表中获得选择的值作为答案,并且省略了注释。请就这里可能发生的情况提供建议。

编辑:添加以下代码:

    <!-- HIT template: WebsiteDataCollection-v3.0 --><!-- The following snippet enables the 'responsive' behavior on smaller screens -->
<meta content="width=device-width,initial-scale=1" name="viewport" />
<section class="container" id="WebsiteDataCollection"><!-- Instructions -->
<div class="row">
<div class="col-xs-12 col-md-12">
<div class="panel panel-primary"><!-- WARNING: the ids "collapseTrigger" and "instructionBody" are being used to enable expand/collapse feature --><a class="panel-heading" href="javascript:void(0);" id="collapseTrigger"><strong>Instructions</strong> <span class="collapse-text">(Click to expand)</span> </a>
<div class="panel-body" id="instructionBody">
<p>Look at the sentences below. Please classify it based on instructions below</p>

<ul>
    <li>Instruction 1</li>
    <li>Instruction 2</li>
    <li>Instruction 3</li>
</ul>
</div>
</div>
</div>
</div>
<!-- End Instructions --><!-- Layout -->

<div class="row">
<div class="col-xs-12 col-md-8 col-md-offset-2 image"><label>Word or Phrase to Categorize:</label>

<div class="well">${chunk}</div>
</div>
</div>

<div class="form-group col-margin"><label class="sr-only" for="country">Category:</label> <select class="form-control" id="category" name="category"><option selected="selected" value="">(Select a category)</option><option value="1">Yes</option><option value="0">No</option> </select><text< div="">
<div>&nbsp;</div>

<div class="form-group"><label for="comment-box">Please add your comments here, if any:</label><textarea class="form-control" id="comment-box" rows="3"></textarea></div>
<!-- End Layout --><!-- Please note that Bootstrap CSS/JS and JQuery are 3rd party libraries that may update their url/code at any time. Amazon Mechanical Turk (MTurk) is including these libraries as a default option for you, but is not responsible for any changes to the external libraries --></text<></div>
</section>
<link crossorigin="anonymous" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.0.3/css/bootstrap.min.css" integrity="sha384-IS73LIqjtYesmURkDE9MXKbXqYA8rvKEp/ghicjem7Vc3mGRdQRptJSz60tvrB6+" rel="stylesheet" /><!-- Open internal style sheet -->
<style type="text/css">.form-inline select.form-control{
  width: 100%;
}
input.form-control{
  width: 100%;  
}
#collapseTrigger{
  color:#fff;
  display: block;
  text-decoration: none;
}
#submitButton{
  white-space: normal;
}
.image{
  margin-bottom: 15px; 
}
.group-label{
  display: block;
}
.radio-inline>label{
  font-weight: normal;
}
.col-margin{
  padding: 0 2px 0 0;
  margin-bottom: 5px;
}
.col-margin:last-child{
  padding-right: 0;
}
.form-group, .form-group.col-margin{
  width: 100%;
  margin-bottom: 5px;
}
.form-group.fieldset, .fieldset{
  margin-bottom: 15px;
}
.hour-label{
  margin-top: 5px;
  font-weight: normal;
}
/* CSS for breaking long words/urls */
.dont-break-out {
  overflow-wrap: break-word;
  word-wrap: break-word;
  -ms-word-break: break-all;
  word-break: break-all;
  word-break: break-word;
  -ms-hyphens: auto;
  -moz-hyphens: auto;
  -webkit-hyphens: auto;
  hyphens: auto;
}
</style>
<!-- Close internal style sheet --><script src="https://code.jquery.com/jquery-3.1.0.min.js"   integrity="sha256-cCueBR6CsyA4/9szpPfrX3s49M9vUU5BgtiJj06wt/s="   crossorigin="anonymous"></script><script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.0.3/js/bootstrap.min.js" integrity="sha384-s1ITto93iSMDxlp/79qhWHi+LsIi9Gx6yL+cOKDuymvihkfol83TYbLbOw+W/wv4" crossorigin="anonymous"></script><script>
  $(document).ready(function() {
    // Instructions expand/collapse
    var content = $('#instructionBody');
    var trigger = $('#collapseTrigger');
    content.hide();
    $('.collapse-text').text('(Click to expand)');
    trigger.click(function(){
      content.toggle();
      var isVisible = content.is(':visible');
      if(isVisible){
        $('.collapse-text').text('(Click to collapse)');
      }else{
        $('.collapse-text').text('(Click to expand)');
      }
    });
    // end expand/collapse
  });
</script>

感谢任何潜在客户。谢谢。

0 个答案:

没有答案