define("class/chapter/index",["require","exports","module"],function(){var r=function(r){var e,a={blueArr:["CSS3","jquery","sassless","python","mysql","大数据","cloudcomputing","photoshop"],orangeArr:["html","html5","webapp","fetool"],greenArr:["nodejs","vuejs","C","C#","android","mongodb","test"],cyanArr:["bootstrap","Reactjs","C puls puls","Go","ios","Unity 3D","Cocos2d-x","maya"],purpleArr:["javascript","php","linux","premiere","ZBrush"],redArr:["angularjs","java","ruby","Oracle","SQL Server"]};return $.each(a,function(s){$.each(a[s],function(l){r==a[s][l]&&(e=s)})}),"blueArr"==e?"blue":"orangeArr"==e?"orange":"greenArr"==e?"green":"cyanArr"==e?"cyan":"purpleArr"==e?"purple":"redArr"==e?"red":"red"},e=function(e){for(var a='<h3 class="box-tit box-class-tit padbottom0">课前必学</h3>                <div class="free-course-list clearfix">                    <ul>',s=0;s<e.length;s++){var l=e[s];a+='<li class="clearfix">                    <a href="https://www.imooc.com/learn/'+l.id+'" class="clearfix" target="_blank">';var o="";if(o="undefined"!=typeof l.background_pic&&null!=l.background_pic?'<div class="l course-img" style="background-image: url(https://www.imooc.com/courseimg/s/'+l.background_pic+'_s.jpg);">':'<div class="l course-img" style="background-image: url(https://www.imooc.com/courseimg/s/cover015_s.jpg);">',a+=o,"undefinded"!=typeof l.skill&&0!=l.skill.length){var t=l.skill,i=t[0],n=i.marking;if(t){var c=r(n);a+='<div class="cart-color '+c+'"></div></div>'}}var u='<div class="l content-box">                            <p class="smalle-title">'+l.name+'</p>                            <p class="content-text" title="'+l.short_description+'">'+l.short_description+'</p>                            <div class="clearfix learn-detail">                                '+l.easy_name+"<span>·</span>"+l.numbers+"人在学                            </div>                        </div>                    </a>                </li>";a+=u}a+="</ul>            </div>",$(".js-prelearn-evalution").html(a)},a=function(){$.ajax({url:"/class/ajaxprelearn",dataType:"json",data:{cid:$(".js-prelearn-evalution").data("id")}}).done(function(r){"0"==r.result&&r.data.length>0&&e(r.data)})};a()});