{"size": 899, "ext": "js", "max_stars_repo_path": "CheckboxBinario.min.js", "max_stars_repo_name": "nelsonlpco/checkbox_binario_angular", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "CheckboxBinario.min.js", "max_issues_repo_name": "nelsonlpco/checkbox_binario_angular", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "CheckboxBinario.min.js", "max_forks_repo_name": "nelsonlpco/checkbox_binario_angular", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": null, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 128.4285714286, "max_line_length": 804, "alphanum_fraction": 0.6740823137}
/*
 AngularJS v1.5.0-beta.2
 (c) 2010-2015 Google, Inc. http://angularjs.org
 License: MIT
*/
!function(){var a=function(a,b,c){for(var d=a.modelo.toString(2).split("").reverse(),e=a.opcoes.split(";"),f=e.length,g=0,h=1,i=d.length,j=!1;f>g;g++){i>g&&"1"===d[g]&&(j=!0);var l=document.createElement("input");l.setAttribute("type","checkbox"),l.setAttribute("name","tipo"),l.setAttribute("value",h),l.setAttribute("id",a.identificador+h),j&&l.setAttribute("checked","checked"),l.addEventListener("click",function(b){b.target.checked?a.modelo+=parseInt(b.target.value):a.modelo-=parseInt(b.target.value),a.$apply()}),b.append(l),b.append('<label for="'+a.identificador+h+'">'+e[g]+"</label>"),j=!1,h*=2}},b=function(){return{restrict:"E",link:a,template:'<div class="row"></div>',scope:{opcoes:"@",modelo:"=",identificador:"@"}}};angular.module("checkboxBinario",[]).directive("checkboxBinario",b)}();
