svnno****@sourc*****
svnno****@sourc*****
2010年 8月 17日 (火) 04:50:30 JST
Revision: 882 http://sourceforge.jp/projects/p2-php/svn/view?view=rev&revision=882 Author: rsk Date: 2010-08-17 04:50:30 +0900 (Tue, 17 Aug 2010) Log Message: ----------- expack: - iPhoneã®ã¬ã¹ãããã¢ããåé¡å¯¾çã¨ãã¦read.phpã¸ã®ãªã³ã¯ã«ã¯ ããã·ã¥ãå«ããªãããã«ãã¦ã¿ãã - iPhoneã®ã¬ã¹ãããã¢ããã®å¹ ãå°ãã ã大ããããã Modified Paths: -------------- p2ex/trunk/css/iphone.css p2ex/trunk/js/iphone.js p2ex/trunk/lib/read_footer_i.inc.php p2ex/trunk/post.php p2ex/trunk/read_new_k.php -------------- next part -------------- Modified: p2ex/trunk/css/iphone.css =================================================================== --- p2ex/trunk/css/iphone.css 2010-08-16 15:07:08 UTC (rev 881) +++ p2ex/trunk/css/iphone.css 2010-08-16 19:50:30 UTC (rev 882) @@ -293,15 +293,15 @@ top: 0; left: 0; margin: 0; - padding: 12px 6px 0 14px; + padding: 12px 0 0 14px; } div.respop > div.res { margin: 0 0 8px 0 !important; background-color: rgba(255, 255, 250, 0.95) !important; border: rgba(108, 108, 108, 0.8) solid 1px !important; - -webkit-border-radius: 8px; - border-radius: 8px; + -webkit-border-bottom-left-radius: 8px; + border-bottom-left-radius: 8px; -webkit-box-shadow: rgba(0, 0, 0, 0.7) 0 2px 5px; box-shadow: rgba(0, 0, 0, 0.7) 0 2px 5px; } Modified: p2ex/trunk/js/iphone.js =================================================================== --- p2ex/trunk/js/iphone.js 2010-08-16 15:07:08 UTC (rev 881) +++ p2ex/trunk/js/iphone.js 2010-08-16 19:50:30 UTC (rev 882) @@ -1414,10 +1414,10 @@ document.removeEventListener(event.type, arguments.callee, false); if (typeof window.iphone_js_no_modification === 'undefined' || !window.iphone_js_no_modification) { - // NÉCxgnhðo^·é + // ONÉCxgnhðo^·é iutil.modifyExternalLink(document.body); - // labelÉCxgnhðo^·é + // xâ{^ÉCxgnhðo^·é if (iutil.iphone) { iutil.setLabelAction(document.body); //iutil.setHashScrool(document.body); @@ -1440,9 +1440,20 @@ // P[Vo[ðB· if (typeof window.iui !== 'undefined') { window.scrollTo(0, 1); - } else if (!window.location.hash.length && iutil.getScrollX() < 1) { + } else if (!window.location.hash.length && iutil.getScrollY() < 1) { window.scrollTo(0, 1); } + + // location.hashÌãíèÉp2s2=idÅWv·é + // p2s2 Í re[p2] [s]croll[To] ̪ + // ǤµÄàXN[³¹½¢ê¾¯g¤ + var m = window.location.href.match(/[&?]p2s2=([\w\-].+)/); + if (m) { + var t = document.getElementById(m[1]); + if (t) { + window.setTimeout(window.scrollTo, 100, 0, t.offsetTop + 1); + } + } }, false); // }}} Modified: p2ex/trunk/lib/read_footer_i.inc.php =================================================================== --- p2ex/trunk/lib/read_footer_i.inc.php 2010-08-16 15:07:08 UTC (rev 881) +++ p2ex/trunk/lib/read_footer_i.inc.php 2010-08-16 19:50:30 UTC (rev 882) @@ -63,7 +63,7 @@ // V echo '<td>'; if (!$aThread->diedat) { - $escaped_url = "{$_conf['read_php']}?{$host_bbs_key_q}&ls={$aThread->rescount}-n&nt={$newtime}{$_conf['k_at_a']}#r{$aThread->rescount}"; + $escaped_url = "{$_conf['read_php']}?{$host_bbs_key_q}&ls={$aThread->rescount}-n&nt={$newtime}{$_conf['k_at_a']}"; echo toolbar_i_standard_button('img/glyphish/icons2/01-refresh.png', 'V ', $escaped_url); } else { echo toolbar_i_disabled_button('img/glyphish/icons2/01-refresh.png', 'V '); Modified: p2ex/trunk/post.php =================================================================== --- p2ex/trunk/post.php 2010-08-16 15:07:08 UTC (rev 881) +++ p2ex/trunk/post.php 2010-08-16 19:50:30 UTC (rev 882) @@ -123,7 +123,10 @@ $location_ht = "{$_conf['subject_php']}?host={$host}&bbs={$bbs}{$_conf['k_at_a']}"; } else { unset($post[$subject_k]); - $location_ht = "{$_conf['read_php']}?host={$host}&bbs={$bbs}&key={$key}&ls={$rescount}-&refresh=1&nt={$newtime}{$_conf['k_at_a']}#r{$rescount}"; + $location_ht = "{$_conf['read_php']}?host={$host}&bbs={$bbs}&key={$key}&ls={$rescount}-&refresh=1&nt={$newtime}{$_conf['k_at_a']}"; + if (!$_conf['iphone']) { + $location_ht .= "#r{$rescount}"; + } } if (P2Util::isHostJbbsShitaraba($host)) { Modified: p2ex/trunk/read_new_k.php =================================================================== --- p2ex/trunk/read_new_k.php 2010-08-16 15:07:08 UTC (rev 881) +++ p2ex/trunk/read_new_k.php 2010-08-16 19:50:30 UTC (rev 882) @@ -534,7 +534,7 @@ // ^Cg $read_footer_ht .= <<<EOP </tr></tbody></table> -<div class="ttitle"><a href="{$_conf['read_php']}?{$host_bbs_key_q}&offline=1&rescount={$aThread->rescount}{$_conf['k_at_a']}#r{$aThread->rescount}" target="_blank">{$aThread->ttitle_hd}</a> {$toolbar_itaj_ht}</div> +<div class="ttitle"><a href="{$_conf['read_php']}?{$host_bbs_key_q}&offline=1&rescount={$aThread->rescount}{$_conf['k_at_a']}" target="_blank">{$aThread->ttitle_hd}</a> {$toolbar_itaj_ht}</div> <div class="mover"> EOP; $read_footer_ht .= toolbar_i_standard_button('img/gp1-up.png', '', "#ntt{$newthre_num}");