日記
bigpresenのBloglines対応Edit

Bloglinesだとbigpresenで出力している部分が読めないんで、JavaScriptなしだと内容をホワイトスクリーンに初めから表示しておくようにしてみた(ついでにちょっとだけメッセージも変えてある)。

Index: bigpresen/trunk/bigpresen.rb
===================================================================
--- bigpresen/trunk/bigpresen.rb (revision 1)
+++ bigpresen/trunk/bigpresen.rb (revision 2)
@@ -48,5 +48,5 @@
else {
t#{scriptID} = 0;
-       document.getElementById("#{scriptID}").innerHTML="《REPLAY》";
+       document.getElementById("#{scriptID}").innerHTML="《CLICK to REPLAY》";
document.getElementById("#{scriptID}").style.fontSize='100%';
}
@@ -69,8 +69,13 @@
<tr>
<td width="#{width}" height="#{height}" onClick="#{scriptID}()" valign="middle" align="center" bgcolor="#ffffff">
-<span id="#{scriptID}" style="line-height:100%; color:black;">《START》</span>
+<span id="#{scriptID}" style="line-height:100%; color:black;">#{str.tr('/', ' ').split(/\|/).join('<br>')}</span>
</td>
</tr>
</table>
+<script type="text/javascript">
+<!--
+document.getElementById("#{scriptID}").innerHTML = "《CLICK to START》";
+-->
+</script>
HTML
end

なんで

splitしてjoinしているんだろう? tr("|", "<br>")でいいのに。何をやろうとしていたんだっけ。

Published At2006-02-11 00:00Updated At2006-02-11 00:00