text: var setRange=function(a,b){"use strict";$("#js-range-"+a).attr("value",b),$("#js-range-result-"+a).text(b)};setRange("static-1",80),setRange("static-2",50),setRange("static-3",75),$(function(){"use strict";var a=function(){$(".icon-menu_atom--top").toggleClass("icon-menu_atom--rotatedown"),$(".icon-menu_atom--middle").toggleClass("icon-menu_atom--hide-middle"),$(".icon-menu_atom--bottom").toggleClass("icon-menu_atom--rotateup")};$("#js-nav-trigger, .site-overlay").on("click",function(){a()});var b=$("#js-header").height();$(".pushy, .site-overlay").css("top",b);var c=function(a,b,c){var d='<div class="task-item wow bounceInLeft" id="js-task-item-'+a+'"><div class="row"><article class="col-xs-12"><h2 class="txt-title">'+b+'</h2><div class="row"><div class="col-xs-5 col-sm-8 progress-block"><div class="row"><div class="col-sm-8"><div class="task-progress-bar task-progress-bar--sec"><input type="range" min="0" max="100" step="1" id="js-range-'+a+'" value="0" disabled></div><!-- /. progress --></div><!-- /. col --><div class="col-sm-4"><p class="task-progress-score"><span id="js-range-result-'+a+'" class="color--sec">0</span> of <span class="color--sec">100</span></p></div><!-- /. col --></div><!-- /. row --></div><!-- /. progress-block --><div class="col-xs-7 col-sm-4 task-deadline [ text-uppercase text-right ] js-task-deadline">Due tomorrow</div><!-- /. task-deadline --></div><!-- /. row --><p class="name text-capitalize"><img src="media/images/avatar-small.png" alt="Avator" class="mr-sm">'+c+"</p></article></div><!-- /. row --><hr></div><!-- /. task-item -->";return d};!function(){$.getJSON("./scripts/tasks.json",function(a){$("#js-loading-tasks").hide("slow").remove();for(var b=0,d=a.length;d>b;b++){var e=a[b].id,f=a[b].title,g=a[b].owner,h=c(e,f,g);$("#js-main").append(h),setRange(e,0)}}).fail(function(){$("#js-loading-tasks").hide("slow").remove();var a='<div class="task-item wow bounceInLeft"><div class="row"><article class="col-xs-12"><h2 class="txt-title text-center">Failed to get data</h2><div class="row"><div class="col-xs-12 progress-block"><p class="text-center">Make sure your loading the correct external file and your on a server</p></div><!-- /. progress-block --></div><!-- /. row --></article></div><!-- /. row --><hr></div><!-- /. task-item -->';$("#js-main").append(a)})}(),(new WOW).init(),$("#js-header").headroom({tolerance:{up:5,down:0}})});