summivox / thucal2

Tsinghua University curriculum -> iCalendar format (.ics) -> Google Calendar, etc.
http://userscripts.org/scripts/show/159785
22 stars 9 forks source link

update re for new list #14

Closed wuuuuuud closed 9 years ago

wuuuuuud commented 9 years ago

the new format is [star]yyyy-mm-dd... tested with my courses and seems fine

summivox commented 9 years ago

有yyyy-mm-dd就不必转换mmdd日期到yyyymmdd了,是不是可以进一步简化

chenxiaoqino commented 9 years ago

光改日期匹配不够啊,需要改所有从html界面提取信息的代码。

没有旧版的界面对着看,我有点一时看不懂代码逻辑…除了日期匹配之外,基本上所有的find()都要改。

我贴一下我整体课表和List的结果: http://jsfiddle.net/j66184fn/ http://jsfiddle.net/6fow9ufj/ summivox有时间的话,指点一下原来的 find('> table.data_list_table') 对应什么

summivox commented 9 years ago

大家先都切到list-fix这个branch上,我等会儿回来

wuuuuuud commented 9 years ago

就是一堆表格啊...

<table width="100%" border="0" align="center"  class="data_list_table" style="TABLE-LAYOUT:fixed">
  <tr class="data_list_title">
    <td width="70">开始时间</td>
    <td width="70">结束时间</td>
    <td width="60">分类</td>
    <td width="200">内容</td>
    <td width="90">地点</td>
    <td>说明</td>
  </tr>

  <tr>
    <td>08:00</td>
    <td>09:35</td>
    <td>上课</td>
    <td style="text-align:left;">数字电子技术基础B</td>
    <td id="a_0_253">六教6A207</td>
    <td style="text-align:left;" id="a_1_253"></td>
  </tr>

  <tr>
    <td>13:30</td>
    <td>15:05</td>
    <td>上课</td>
    <td style="text-align:left;">高等计算机图形学</td>
    <td id="a_0_254">清华学堂112</td>
    <td style="text-align:left;" id="a_1_254"></td>
  </tr>

  <tr>
    <td>17:05</td>
    <td>18:40</td>
    <td>上课</td>
    <td style="text-align:left;">大学物理(2)(英)</td>
    <td id="a_0_255">三教2101</td>
    <td style="text-align:left;" id="a_1_255"></td>
  </tr>

  <tr>
    <td>19:20</td>
    <td>21:45</td>
    <td>上课</td>
    <td style="text-align:left;">环境与资源经济学</td>
    <td id="a_0_256">三教2101</td>
    <td style="text-align:left;" id="a_1_256"></td>
  </tr>
    </table>
chenxiaoqino commented 9 years ago

导出成功,待校验

发自我的 iPad

在 2014-9-21,下午10:50,summivox notifications@github.com 写道:

大家先都切到list-fix这个branch上,我等会儿回来

— Reply to this email directly or view it on GitHub https://github.com/summivox/thucal2/pull/14#issuecomment-56300988.

summivox commented 9 years ago

这个PR关了,后续的patch先放在list-fix上。

chenxiaoqino commented 9 years ago

找老用户同学chrome下测试通过,准备merge? firefox下无法list,也不会提示"list失败",可能是greasymonkey限制方面的问题。

发自我的 iPad

在 2014-9-21,下午11:08,summivox notifications@github.com 写道:

这个PR关了,后续的patch先放在list-fix上。

— Reply to this email directly or view it on GitHub https://github.com/summivox/thucal2/pull/14#issuecomment-56301537.