Changeset 16700
- Timestamp:
- 06/04/13 21:53:51 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
schedule/js/chart.js
r16699 r16700 109 109 for(T=0;T<Temp.length;T++) 110 110 { 111 rowHour=Temp[T].split('T');112 111 rowMin=Temp[T].split(':'); 113 //Min.push(parseInt(rowMin[1]/60*100)||parseFloat('0')); 114 //Hour.push(parseFloat(rowHour[1])); 115 if(rowHour[1]==0) 112 Min.push(parseInt(rowMin[1])); 113 } 114 for(T1=0;T1<Temp.length;T1++) 115 { 116 rowHour = Temp[T1].split('T'); 117 Hour.push(parseFloat(rowHour[1])); 118 } 119 for(merge=0;merge<Temp.length;merge++) 120 { 121 if(Hour[merge]==0) 116 122 { 117 if(rowMin[1]==8) 118 119 HourMin.push(parseFloat(rowHour[1]+24+'.08')); 120 123 if(Min[merge]==8) 124 HourMin.push(Hour[merge]+24+'.08'); 121 125 else 122 HourMin.push( parseFloat(rowHour[1]+24+'.'+rowMin[1]/60*100));126 HourMin.push(Hour[merge]+24+Min[merge]); 123 127 } 124 else if( rowHour[1]==1)128 else if(Hour[merge]==1) 125 129 { 126 if(rowMin[1]==8) 127 128 HourMin.push(parseFloat(rowHour[1]+24+'.08')); 129 130 if(Min[merge]==8) 131 HourMin.push(Hour[merge]+24+'.08'); 130 132 else 131 HourMin.push( parseFloat(rowHour[1]+24+'.'+rowMin[1]/60*100));133 HourMin.push(Hour[merge]+24+Min[merge]); 132 134 } 133 else if( rowHour[1]==2)135 else if(Hour[merge]==2) 134 136 { 135 if(rowMin[1]==8) 136 137 HourMin.push(parseFloat(rowHour[1]+24+'.08')); 138 137 if(Min[merge]==8) 138 HourMin.push(Hour[merge]+24+'.08'); 139 139 else 140 HourMin.push( parseFloat(rowHour[1]+24+'.'+rowMin[1]/60*100));140 HourMin.push(Hour[merge]+24+Min[merge]); 141 141 } 142 else if( rowHour[1]==3)142 else if(Hour[merge]==3) 143 143 { 144 if(rowMin[1]==8) 145 146 HourMin.push(parseFloat(rowHour[1]+24+'.08')); 147 144 if(Min[merge]==8) 145 HourMin.push(Hour[merge]+24+'.08'); 148 146 else 149 HourMin.push( parseFloat(rowHour[1]+24+'.'+rowMin[1]/60*100));147 HourMin.push(Hour[merge]+24+Min[merge]); 150 148 } 151 else if( rowHour[1]==4)149 else if(Hour[merge]==4) 152 150 { 153 if(rowMin[1]==8) 154 155 HourMin.push(parseFloat(rowHour[1]+24+'.08')); 156 151 if(Min[merge]==8) 152 HourMin.push(Hour[merge]+24+'.08'); 157 153 else 158 HourMin.push( parseFloat(rowHour[1]+24+'.'+rowMin[1]/60*100));154 HourMin.push(Hour[merge]+24+Min[merge]); 159 155 } 160 else if( rowHour[1]==5)156 else if(Hour[merge]==5) 161 157 { 162 if(rowMin[1]==8) 163 164 HourMin.push(parseFloat(rowHour[1]+24+'.08')); 165 158 if(Min[merge]==8) 159 HourMin.push(Hour[merge]+24+'.08'); 166 160 else 167 HourMin.push( parseFloat(rowHour[1]+24+'.'+rowMin[1]/60*100));161 HourMin.push(Hour[merge]+24+Min[merge]); 168 162 } 169 else if( rowMin[1]==8)163 else if(Hour[merge]==6) 170 164 { 171 HourMin.push(parseFloat(rowHour[1]+'.08')); 165 if(Min[merge]==8) 166 HourMin.push(Hour[merge]+24+'.08'); 167 else 168 HourMin.push(Hour[merge]+24+Min[merge]); 169 } 170 else if(Min[merge]==8) 171 { 172 HourMin.push(Hour[merge]+'.08'); 172 173 } 173 174 else 174 HourMin.push(parseFloat(rowHour[1]+'.'+rowMin[1])); 175 HourMin.push(Hour[merge]+'.'+Min[merge]); 176 175 177 } 176 178 Time[i].push(HourMin[row]);
Note:
See TracChangeset
for help on using the changeset viewer.