var __SINA_SURVEY_DATA={"survey":{"id":"458","creator":"taoran1","title":"\u4f60\u8ba4\u4e3a\u5de5\u4e1a\u5bcc\u8054\u4e0a\u5e02\u540e\u4f1a\u6709\u51e0\u4e2a\u6da8\u505c\u677f\uff1f","description":"6\u67088\u65e5\uff0c\u5de5\u4e1a\u5bcc\u8054\u4e0a\u4ea4\u6240\u4e0a\u5e02\u3002\u53d1\u884c\u4ef713.77\u5143\uff0c\u53d1\u884c\u5e02\u76c8\u738717.09\u500d\u3002\u5982\u679c\u4e0a\u5e02\u9996\u65e5\u8fbe\u523044%\u7684\u6da8\u5e45\u4e0a\u9650\uff0c\u5176\u5e02\u503c\u5c06\u8fbe\u52303905\u4ebf\uff0c\u8d85\u8fc7\u6d77\u5eb7\u5a01\u89c6\uff0c\u6210\u4e3aA\u80a1\u5e02\u503c\u6700\u9ad8\u7684\u79d1\u6280\u4f01\u4e1a\u3002","keyword":"\u5de5\u4e1a\u5bcc\u8054,\u6da8\u505c","start_time":"1528419840","end_time":"1530320640","type":"1","channel":"8","status":"2","anti_cheat_strategy":"1","qr_code":"data:image\/png;base64,iVBORw0KGgoAAAANSUhEUgAAAKIAAACiAQMAAAD4PIRYAAAABlBMVEX\/\/\/8AAABVwtN+AAAA+0lEQVRIic2XUQ7EIAhEJ+EAHsmreyQPYMLCYNtN939cYo19\/SEwgAX+wMzTjMtnz5cpp\/GgB4qdi0RNezgU+yJNF09RH6vF+0lKaaRzhygzNBHisPnKm4qWUpkke+tXRLe1wTC9CldEQx8sFRQKrZS\/Yuq5nKEZKVnIaSVmImQau9NLNc2+Oby6RquDmqLtvhk00rMzpKVXrcIZI8swqSlQHTxzsxgsHKDpypbIzGpZclqDfDUWLQ1yujsVo2NXExdT296Ec4PTdBygzyTL\/XeaSui+2dzZKs\/0NCVSh6trnKE0Vo6e4rlcotcHNa2bjd\/zo3\/\/B2joH9gH+RixdNQO2D0AAAAASUVORK5CYII=","others":{"result_show":"1","result_save":"0","result_order":"0","true_result":"1","vote_show":"1","vote_login":"1","share_img":"\/\/n.sinaimg.cn\/vote\/796\/w500h296\/20180608\/7957-hcscwxa1887034.jpg","comment":"1","survey_summary":"\u6295\u7968\u6210\u529f\uff0c\u611f\u8c22\u60a8\u7684\u53c2\u4e0e\uff01","redirect_url":"http:\/\/www.sina.com.cn","display_type":"3","text_detail":"","text_detail_url":"","repetition_attr":"0","repetition_user_cookie_device":"1","repetition_interval":"1","result_interval_show":"0","repetition_interval_did":"0","repetition_freq_did":"0","final_result_show":1},"created_time":"1528419912","modified_time":"1530320644"},"content":{"question":[{"id":"8388","survey_id":"458","type":"1","parent_id":"458","sort_id":"1","status":"1","description":"\u4f60\u8ba4\u4e3a\u5de5\u4e1a\u5bcc\u8054\u4e0a\u5e02\u540e\u4f1a\u6709\u51e0\u4e2a\u6da8\u505c\u677f\uff1f","others":{"question_selection":"1","question_type":"1","question_img":"","checkbox_num_least":0,"checkbox_num_most":0,"score_display_type":0,"score_num_least":0,"score_num_most":0,"standard_point":0},"created_time":"1528420128","modified_time":"1528420792","r_aids":[],"answers":[8389,8390,8391,8392,8393],"number":"360"}],"answer":{"8388":[{"id":"8389","survey_id":"458","type":"2","parent_id":"8388","sort_id":"1","status":"1","description":"5\u4e2a\uff0c\u5e02\u503c\u7a81\u78345000\u4ebf","others":{"next_question":0,"answer_img":"","answer_img_width":"undefined","answer_img_height":"undefined","answer_type_blank":0,"standard_point":0,"next_question_id":null},"created_time":"1528420128","modified_time":"1528420792","number":"109"},{"id":"8393","survey_id":"458","type":"2","parent_id":"8388","sort_id":"5","status":"1","description":"15\u4e2a\uff0c\u5e02\u503c\u78341.4\u4e07\u4ebf\uff0c\u8d85\u8fc7\u4e2d\u77f3\u6cb9","others":{"next_question":0,"answer_img":"","answer_img_width":"undefined","answer_img_height":"undefined","answer_type_blank":0,"standard_point":0,"next_question_id":null},"created_time":"1528420348","modified_time":"1528420792","number":"96"},{"id":"8390","survey_id":"458","type":"2","parent_id":"8388","sort_id":"2","status":"1","description":"7\u4e2a\uff0c\u5e02\u503c\u6da8\u81f36800\u4ebf\uff0c\u63a5\u8fd1\u4e2d\u56fd\u4eba\u5bff","others":{"next_question":0,"answer_img":"","answer_img_width":"undefined","answer_img_height":"undefined","answer_type_blank":0,"standard_point":0,"next_question_id":null},"created_time":"1528420128","modified_time":"1528420792","number":"63"},{"id":"8391","survey_id":"458","type":"2","parent_id":"8388","sort_id":"3","status":"1","description":"10\u4e2a\uff0c\u5e02\u503c\u78348000\u4ebf\uff0c\u76f8\u5f53\u4e8e\u4e2d\u56fd\u77f3\u5316","others":{"next_question":0,"answer_img":"","answer_img_width":"undefined","answer_img_height":"undefined","answer_type_blank":0,"standard_point":0,"next_question_id":null},"created_time":"1528420128","modified_time":"1528420792","number":"59"},{"id":"8392","survey_id":"458","type":"2","parent_id":"8388","sort_id":"4","status":"1","description":"11\u4e2a\uff0c\u5e02\u503c\u7834\u4e07\u4ebf\uff0c\u8d85\u8fc7\u8d35\u5dde\u8305\u53f0","others":{"next_question":0,"answer_img":"","answer_img_width":"undefined","answer_img_height":"undefined","answer_type_blank":0,"standard_point":0,"next_question_id":null},"created_time":"1528420128","modified_time":"1528420792","number":"33"}]},"point":[],"group":[],"a_q":{"8389":8388,"8390":8388,"8391":8388,"8392":8388,"8393":8388},"question_obj":{"8388":{"id":"8388","survey_id":"458","type":"1","parent_id":"458","sort_id":"1","status":"1","description":"\u4f60\u8ba4\u4e3a\u5de5\u4e1a\u5bcc\u8054\u4e0a\u5e02\u540e\u4f1a\u6709\u51e0\u4e2a\u6da8\u505c\u677f\uff1f","others":{"question_selection":"1","question_type":"1","question_img":"","checkbox_num_least":0,"checkbox_num_most":0,"score_display_type":0,"score_num_least":0,"score_num_most":0,"standard_point":0},"created_time":"1528420128","modified_time":"1528420792","r_aids":[],"answers":[8389,8390,8391,8392,8393],"number":"360","rank_id":1}},"question_rank":{"8388":1},"answer_rank":{"8389":1,"8393":2,"8390":3,"8391":4,"8392":5}},"total":{"true":{"survey":"360","modified_time":"1528658421","question":{"8388":"360"},"answer":{"8389":{"number":"109","score":0,"percent":30.28},"8390":{"number":"63","score":0,"percent":17.5},"8391":{"number":"59","score":0,"percent":16.39},"8392":{"number":"33","score":0,"percent":9.17},"8393":{"number":"96","score":0,"percent":26.67}}},"fake":{"survey":"360","modified_time":"1528658421","question":{"8388":"360"},"answer":{"8389":{"number":"109","score":0,"percent":30.28},"8390":{"number":"63","score":0,"percent":17.5},"8391":{"number":"59","score":0,"percent":16.39},"8392":{"number":"33","score":0,"percent":9.17},"8393":{"number":"96","score":0,"percent":26.67}}}},"records":null}; (function(){var g=__SINA_SURVEY_DATA,k=g&&g.survey.id,y=g&&g.survey.others.display_type,z=[],p={},r=document.getElementById("sina_survey_js_"+k),q="",t="";window.sina_survey_records?(z=window.sina_survey_records[k].answer_ids,p=window.sina_survey_records[k].score):g&&g.records&&(z=g.records.answer_ids,p=g.records.score);var h={addEvent:function(a,b,c){a.attachEvent?a.attachEvent("on"+b,c):a.addEventListener(b,c,!1)},getByClass:function(a,b){a=a.getElementsByTagName("*");b=new RegExp("\\b"+b+"\\b", "i");for(var c=[],d=0;d=c?Math.round(.45*(c-25)):320=c?Math.round(.3*(c-25)):Math.round(.23*(c-25)),d=Math.round(b/a*c)):"sina"==e&&(r?g=r.parentNode:t&&(g=t),c=Math.round(h.getWidth(g)),d=h.getStyle(document.getElementsByTagName("html")[0],"fontSize").split("px")[0],c=Math.round((c-.8*d-.6*d-.1*d)/2),d=Math.round(b/a*c)));return{width:c,height:d}},getPos:function(a){for(var b= a.offsetTop,c=a.offsetLeft;a.offsetParent;)a=a.offsetParent,b+=a.offsetTop+a.clientTop,c+=a.offsetLeft+a.clientLeft;return{left:c,top:b}},getDom:function(a){var b=null;-1!=a.indexOf(".")&&(b=h.getByClass(document,a.split(".")[1])[0]);-1!=a.indexOf("#")&&(b=document.getElementById(a.split("#")[1]));return b},animate:function(a,b){function c(){d==b?clearTimeout(a.timer):(d=b-5>=d?d+5:b,a.timer=setTimeout(function(){a.style.width=d+"%";clearTimeout(a.timer);c()},25))}var d=a.offsetWidth;c()},tranNumber:function(a){a= a.toString();var b;1E4\u8fdb\u884c\u4e2d': '\u5df2\u7ed3\u675f';2!=y&&(e.innerHTML+=''+h.survey+"\u4eba\u53c2\u4e0e");f.className="clearfix";if(1==a.type)for(h=0;h\u5df2\u9009',k="line_active");1==y?w='
'+h.tranNumber(f.number)+"\u7968
":(2==y?r="line_wrap_on": w='
'+h.tranNumber(f.number)+"\u7968
",p='
'+f.percent+"%
");if(""!=b[e].others.answer_img){var t=b[e].others.answer_img_width,A=b[e].others.answer_img_height,x=a.imgInfo||h.getImgWidthHeight(t,A);a.imgInfo=x;var x=a.imgInfo.width,B=a.imgInfo.height,u=b[e].others.answer_img;"pc"==v?320>=this.parentWidth?(q="opt_img_box_max",0==e%2?(n='
',m=""):1==e%2&&(n="",m="
")):320=this.parentWidth?(q="opt_img_box_min", 0==e%3?(n='
',m=""):2==e%3&&(n="",m="
")):0==e%4?(n='
',m=""):3==e%4&&(n="",m="
"):0==e%2?(n='
',m=""):1==e%2&&(n="",m="
");e==b.length-1&&(m="");-1==u.indexOf("http")&&(u=l+u);f='
'+p+"
";c+=n+'
  • '+b[e].description+"

    "+f+w+g+"
  • "+m}else f='
    '+p,c+='
  • '+b[e].description+"

    "+f+w+g+"
  • "}return'

    '+ a.sort_id+"\u3001"+a.description+'

      '+c+"
    "},score:function(a,b){var c="",d=this.getData(),e=d.answer[b[0].id].score.average_score,d=d.answer[b[0].id].score.value,f;for(f in d){var g="",h="";p[b[0].id]&&p[b[0].id]==d[f].val&&(g='
    \u5df2\u9009
    ',h="line_active");c+='
  • '+d[f].val+'\u5206

    '+d[f].percent+"%
    "+g;"
  • "}return'

    '+a.sort_id+"\u3001"+a.description+'

    \u5e73\u5747\u5206\uff1a'+e+'\u5206
      '+c+"
    "},percentEvent:function(){function a(){for(var a=h.getByClass(document,"survey_result_body_"+k)[0],a=h.getByClass(a,"line_box"),c=document.documentElement.clientHeight||document.body.clientHeight, d=document.documentElement.scrollTop||document.body.scrollTop,e=0;e=Number(b[d].others.min_point)&&a<=Number(e)){c=b[d].description;break}}return'

    '+ c.replace(/\[score\]/gim,''+a+"").replace(/<br>/gim,"
    ")+"

    "}}).init()})();