File manager - Edit - /home/web/vm-3fadc827.na4u.ru/www/bitrix/modules/sender/preset/template_toloka/leaflets.min.js
Back
exports.Task=extend(TolokaHandlebarsTask,function(e){TolokaHandlebarsTask.call(this,e)},{validate:function(e){if(!this.getTask().videoPlayed){return{task_id:this.getTask().id,errors:{__TASK__:{message:"You didn't complete task"}}}}else{return TolokaHandlebarsTask.prototype.validate.apply(this,arguments)}},onRender:function(){var e=this.getDOMElement().querySelectorAll("button");this.getTask().videoPlayed=false;for(var t=0,a=e.length;t<a;t++){this.getTask().href=e[t].getAttribute("data-href");e[t].addEventListener("click",function(){window.open(this.getTask().href,"_blank");this.getTask().videoPlayed=true}.bind(this))}}});function extend(e,t,a){t=t||function(){};a=a||{};if(e){t.prototype=Object.create(e.prototype)}for(var o in a){t.prototype[o]=a[o]}return t} //# sourceMappingURL=leaflets.map.js
| ver. 1.4 |
Github
|
.
| PHP 7.4.33 | Generation time: 0.29 |
proxy
|
phpinfo
|
Settings