var __SINA_SURVEY_DATA={"survey":{"id":"2535","creator":"hechang","title":"\u5728\u8fd9\u573a\u9488\u5bf9\u7f8e\u56e2\u7684\u201c\u8ba8\u4f10\u4e2d\u201d\uff0c\u4e00\u65b9\u662f\u7f8e\u56e2\uff0c\u4e00\u65b9\u662f\u9910\u996e\u534f\u4f1a\u53ca\u9910\u996e\u5546\u5bb6\uff0c\u4f60\u7ad9\u5728\u54ea\u4e00\u8fb9\uff1f","description":"\u8fd1\u65e5\uff0c\u6cb3\u5317\u7701\u996d\u70f9\u534f\u3001\u5e7f\u4e1c\u7701\u9910\u534f\u3001\u91cd\u5e86\u5e02\u5de5\u5546\u8054\u9910\u996e\u5546\u4f1a\u548c\u5357\u5145\u5e02\u706b\u9505\u534f\u4f1a\u7b49\u5df2\u76f8\u7ee7\u53d1\u58f0\uff0c\u96c6\u4f53\u547c\u5401\u7f8e\u56e2\u548c\u997f\u4e86\u4e48\u964d\u4f4e\u5916\u5356\u4f63\u91d1\u3002\u5e7f\u4e1c\u7701\u9910\u534f\u548c\u7f8e\u56e2\u5916\u5356\u7ecf\u8fc7\u9762\u5bf9\u9762\u6c9f\u901a\u540e\u8fbe\u6210\u9636\u6bb5\u6027\u5171\u8bc6\u3002","keyword":"\u7f8e\u56e2,\u5916\u5356","start_time":"1587267960","end_time":"1589817600","type":"1","channel":"7","status":"2","anti_cheat_strategy":"0","qr_code":"data:image\/png;base64,iVBORw0KGgoAAAANSUhEUgAAAKIAAACiAQMAAAD4PIRYAAAABlBMVEX\/\/\/8AAABVwtN+AAAA\/0lEQVRIic2W0QkEIQxEAxZgSWndkixAyGUmLtzCfU8uuIs+fwYziZr9QYxA2FyYb8diy2l+5iNWxDrmVkRNPbbbjEQ5T6FdlMqCEttoHVAfZYZ4QNy2BkqnIjccL\/+q6Ff4+VW8AgplFASzzoUhp7nIXy6yYgeK1vQ0s3JmdS5Mcq86l5JShh3alJVT3pXSyhDKNcXNqA01JWKdLEpcN0NSardtTZbukzcxpTOcfkXBjA5aFxjSE7eBiuntVDQHbIr7TE2fDm7llfHu6yJKl+Rgxdaent51OTXjWBPlC6\/msbsobzJcIT4a6O0aB44pfXIaT8PCC8\/e7x0R\/YP4AAG75Y7WJUziAAAAAElFTkSuQmCC","others":{"result_show":"1","user_result_show":"0","result_save":"0","result_order":"0","result_order_q":"0","true_result":"1","vote_show":"1","vote_submit":1,"vote_login":"1","voter_source":"0","share_img":"https:\/\/n.sinaimg.cn\/default\/46b60762\/20171013\/sinavotepic.png","comment":"1","survey_summary":"\u6295\u7968\u6210\u529f\uff0c\u611f\u8c22\u60a8\u7684\u53c2\u4e0e\uff01","redirect_url":"","display_type":"3","text_detail":"","text_detail_url":"","repetition_attr":"0","count_per_type":"1","repetition_user_cookie_device":"1","repetition_interval":"60m","repetition_freq":"","repetition_interval_did":"60m","repetition_freq_did":"","repetition_end_msg":"\u5df2\u7ecf\u6295\u8fc7\u7968\uff0c\u611f\u8c22\u60a8\u7684\u53c2\u4e0e","repetition_end_msg_did":"\u5df2\u7ecf\u6295\u8fc7\u7968\uff0c\u611f\u8c22\u60a8\u7684\u53c2\u4e0e","repetition_end_msg_cid":"\u5df2\u7ecf\u6295\u8fc7\u7968\uff0c\u611f\u8c22\u60a8\u7684\u53c2\u4e0e","button_status_uid":"0","button_status_did":"0","button_status_did_online":"0","button_status_cid":0,"result_interval_show":"0","result_address":"1","group":"2","vote_list_order":"1","vote_end_msg":"","survey_comment_type":"1","max_votes_per_cast":"1","ranking_list":"0","sub_channel_id":0,"max_voter":0,"final_result_show":1},"created_time":"1587268047","modified_time":"1589817604"},"content":{"question":[{"id":"46932","survey_id":"2535","type":"1","parent_id":"2535","sort_id":"1","status":"1","description":"\u5728\u8fd9\u573a\u9488\u5bf9\u7f8e\u56e2\u7684\u201c\u8ba8\u4f10\u4e2d\u201d\uff0c\u4e00\u65b9\u662f\u7f8e\u56e2\uff0c\u4e00\u65b9\u662f\u9910\u996e\u534f\u4f1a\u53ca\u9910\u996e\u5546\u5bb6\uff0c\u4f60\u7ad9\u5728\u54ea\u4e00\u8fb9\uff1f","others":{"question_selection":"1","question_type":"1","group_id":"","answer_order":"0","button_des":"","button_status_des":"","question_img":"","question_img_url":"","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":"1587268281","modified_time":"1587268281","r_aids":[],"answers":[46933,46934,46935],"number":"52"}],"answer":{"46932":[{"id":"46933","survey_id":"2535","type":"2","parent_id":"46932","sort_id":"1","status":"1","description":"\u9910\u996e\u534f\u4f1a\u53ca\u5546\u5bb6\uff0c\u4e8f\u635f\u4e0d\u662f\u538b\u69a8\u7684\u7406\u7531","others":{"next_question":0,"answer_img":"","answer_img_url":"","answer_img_width":"","answer_img_height":"","answer_type_blank":0,"standard_point":0,"video_id":"","route_id":"","answer_note":"","right_answer":"","next_question_id":null},"created_time":"1587268281","modified_time":"1587268281","number":"31"},{"id":"46935","survey_id":"2535","type":"2","parent_id":"46932","sort_id":"3","status":"1","description":"\u5176\u4ed6\uff0c\u5927\u5bb6\u90fd\u5f88\u8270\u96be\uff0c\u5e94\u62b1\u56e2\u53d6\u6696","others":{"next_question":0,"answer_img":"","answer_img_url":"","answer_img_width":"undefined","answer_img_height":"undefined","answer_type_blank":0,"standard_point":0,"video_id":"","route_id":"","answer_note":"","right_answer":"","next_question_id":null},"created_time":"1587268281","modified_time":"1587268281","number":"17"},{"id":"46934","survey_id":"2535","type":"2","parent_id":"46932","sort_id":"2","status":"1","description":"\u7f8e\u56e2\uff0c\u5e73\u53f0\u627f\u62c5\u5de8\u989d\u6210\u672c\uff0c\u4f63\u91d1\u9ad8\u53ef\u7406\u89e3","others":{"next_question":0,"answer_img":"","answer_img_url":"","answer_img_width":"undefined","answer_img_height":"undefined","answer_type_blank":0,"standard_point":0,"video_id":"","route_id":"","answer_note":"","right_answer":"","next_question_id":null},"created_time":"1587268281","modified_time":"1587268281","number":"4"}]},"point":[],"group":[],"a_q":{"46933":46932,"46934":46932,"46935":46932},"question_obj":{"46932":{"id":"46932","survey_id":"2535","type":"1","parent_id":"2535","sort_id":"1","status":"1","description":"\u5728\u8fd9\u573a\u9488\u5bf9\u7f8e\u56e2\u7684\u201c\u8ba8\u4f10\u4e2d\u201d\uff0c\u4e00\u65b9\u662f\u7f8e\u56e2\uff0c\u4e00\u65b9\u662f\u9910\u996e\u534f\u4f1a\u53ca\u9910\u996e\u5546\u5bb6\uff0c\u4f60\u7ad9\u5728\u54ea\u4e00\u8fb9\uff1f","others":{"question_selection":"1","question_type":"1","group_id":"","answer_order":"0","button_des":"","button_status_des":"","question_img":"","question_img_url":"","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":"1587268281","modified_time":"1587268281","r_aids":[],"answers":[46933,46934,46935],"number":"52","rank_id":1}},"question_rank":{"46932":1},"answer_rank":{"46933":1,"46935":2,"46934":3}},"total":{"true":{"survey":"52","modified_time":"1589121287","question":{"46932":"52"},"answer":{"46933":{"number":"31","score":0,"percent":59.62},"46934":{"number":"4","score":0,"percent":7.69},"46935":{"number":"17","score":0,"percent":32.69}}},"fake":{"survey":"52","modified_time":"1589121287","question":{"46932":"52"},"answer":{"46933":{"number":"31","score":0,"percent":59.62},"46934":{"number":"4","score":0,"percent":7.69},"46935":{"number":"17","score":0,"percent":32.69}}}},"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()})();