var arrLength=0; var Request = new Object(); Request = GetRequest(); var brand = Request['sor']; function ShowBar(brand){ var axisNum=document.getElementsByClassName('ratioLineHeight'); var axisNumLength=axisNum.length-1; var ubound=720; var maxStep=ubound/100; var step=ubound/axisNumLength; var stepAxis=0; for(i=0;i'+arr[socNum][1]+''+ '
 '+arr[socNum][4]+'mAh('+arr[socNum][5]+'Wh) '+arr[socNum][3]+''+ ''+ '
'); }else{ document.write( ''+arr[socNum][1]+''+ '
 '+arr[socNum][4]+'mAh('+arr[socNum][5]+'Wh) '+arr[socNum][3]+''+ ''+ '
'); } arrLength=arrLength+1; } } function GetRequest() { var url = location.search; var theRequest = new Object(); if (url.indexOf("?") != -1) { var str = url.substr(1); strs = str.split("&"); for(var i = 0; i < strs.length; i ++) { theRequest[strs[i].split("=")[0]]=decodeURI(strs[i].split("=")[1]); } } return theRequest; } function ChangeView(brand){ if (brand=='home'){ window.location.href='../'; } else{ window.location.href='?sor='+brand; } } function DrawRatio(){ var viewHeight=document.getElementsByClassName('ratioLineHeight'); var i; for(i=0;i { const link = document.createElement('a'); const event = new MouseEvent('click'); link.download = fileName+'.png'; link.href = canvas.toDataURL(); link.dispatchEvent(event); }); } function MinToHor(min) { const hours = Math.floor(min / 60); const minutes = min % 60; const parts = []; if (hours > 0) { parts.push(hours+'h'); } if (minutes > 0 || min === 0) { parts.push(minutes+'min'); } return parts.join(''); } function ShowAlert(){ alert('该机型录像还在上传中,请稍后再试'); }