- Timestamp:
- 12/06/08 01:49:51 (4 years ago)
- Files:
-
- 1 modified
-
websites/twicli/twicli.html (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
websites/twicli/twicli.html
r25360 r25974 188 188 <!--発言フォーム--> 189 189 <form name="frm" action="http://twitter.com/statuses/update.xml" method="POST" target="tx"> 190 <textarea id="fst" name="status" onkeyup="if ( this.value.indexOf('\n') >= 0) return press(1)" onkeypress="return press(event)"></textarea>190 <textarea id="fst" name="status" onkeyup="if (!key_press_detected && this.value.indexOf('\n') >= 0) return press(1)" onkeypress="return press(event)"></textarea> 191 191 <input type="hidden" name="source" value="twicli"> 192 192 <a id="go" href="javascript:void press(1)"><img src="go.png"></a> … … 256 256 var get_next_func; 257 257 var update_timer = null; 258 var key_press_detected = false; 258 259 259 260 // enterキーで発言 260 261 function press(e) { 261 if (e != 1 && e.keyCode != 13) return true; 262 document.frm.status.value = document.frm.status.value.replace(/\n/g, ""); 262 if (e != 1) key_press_detected = true; 263 if (e != 1 && e.keyCode != 13 && e.keyCode != 10 || e.ctrlKey || e.shiftKey) return true; 264 if (!key_press_detected) document.frm.status.value = document.frm.status.value.replace(/\n/g, ""); 263 265 if (document.frm.status.value == '') { // 空欄であればTimeline更新のみ 264 266 $("loading").style.display = "block";
![(please configure the [header_logo] section in trac.ini)](/share/chrome/site/your_project_logo.png)