GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Merge branch 'p2ex-sf' · unpush/p2-php@d2a7f8b

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • aas.php
  • conf
    • conf.inc.php
  • css
    • iphone.css
    • menu_i.css
  • js
    • iphone.js
    • menu_i.js
    • sb_iphone.js
  • lib
    • Login.php
    • P2Util.php
    • ShowThread.php
    • expack/ic2
      • Thumbnailer.php
      • Thumbnailer
        • Imagemagick.php
        • Imagick.php
  • post.php
  • read_rss.php
  • subject_rss.php
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎aas.php‎

Copy file name to clipboardExpand all lines: aas.php
+2-2Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -353,10 +353,10 @@
353353
if ($bold) {
354354
imagettftext($image, $fontsize, 0, $x_pos + 1, $y_pos, $fgcolor, $font, $line);
355355
}
356-
$y_pos += $y_adjust;
357-
if (!$overflow && $y_pos >= $height) {
356+
if ($overflow && $y_pos >= $height) {
358357
break;
359358
}
359+
$y_pos += $y_adjust;
360360
}
361361

362362
// リサイズ
Collapse file

‎conf/conf.inc.php‎

Copy file name to clipboardExpand all lines: conf/conf.inc.php
+8-6Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
// バージョン情報
88
$_conf = array(
99
'p2version' => '1.7.29+1.8.x', // rep2のバージョン
10-
'p2expack' => '090601.1845', // 拡張パックのバージョン
10+
'p2expack' => '090710.2130', // 拡張パックのバージョン
1111
'p2name' => 'expack', // rep2の名前
1212
);
1313

@@ -63,9 +63,11 @@ function p2configure()
6363
global $conf_user_def, $conf_user_rules, $conf_user_rad, $conf_user_sel;
6464

6565
// エラー出力設定
66-
//error_reporting(E_ALL & ~E_STRICT);
67-
error_reporting(E_ALL & ~(E_NOTICE | E_STRICT));
68-
//error_reporting(E_ALL & ~(E_NOTICE | E_STRICT | E_DEPRECATED));
66+
if (defined('E_DEPRECATED')) {
67+
error_reporting(E_ALL & ~(E_NOTICE | E_STRICT | E_DEPRECATED));
68+
} else {
69+
error_reporting(E_ALL & ~(E_NOTICE | E_STRICT));
70+
}
6971

7072
// {{{ 基本変数
7173

@@ -1019,8 +1021,8 @@ function p2checkenv($check_recommended)
10191021
global $_info_msg_ht;
10201022

10211023
$php_version = phpversion();
1022-
$required_version = '5.2.3';
1023-
$recommended_version = '5.2.9';
1024+
$required_version = '5.2.8';
1025+
$recommended_version = '5.2.10';
10241026

10251027
// PHPのバージョン
10261028
if (version_compare($php_version, $required_version, '<')) {
Collapse file

‎css/iphone.css‎

Copy file name to clipboardExpand all lines: css/iphone.css
+1Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -381,6 +381,7 @@ ul.subject > li > a:visited {
381381
ul.subject > li > a:active {
382382
color: #ffffff;
383383
background-color: #194fdb;
384+
-webkit-tap-highlight-color: transparent;
384385
}
385386

386387
ul.subject > li > a:link > span.new {
Collapse file

‎css/menu_i.css‎

Copy file name to clipboardExpand all lines: css/menu_i.css
+4Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,10 @@ body > div > ul {
2626
padding-left: 1.5em;
2727
}
2828

29+
ul > li > a[target="_self"] {
30+
-webkit-tap-highlight-color: transparent;
31+
}
32+
2933
ul.tgrep-result > li > a, div#tgrep_info > ul > li > a {
3034
word-break: break-all;
3135
}
Collapse file

‎js/iphone.js‎

Copy file name to clipboardExpand all lines: js/iphone.js
+95-74Lines changed: 95 additions & 74 deletions
Original file line numberDiff line numberDiff line change
@@ -21,12 +21,16 @@ var iutil = {
2121
*/
2222
'externalLinkPattern': /^https?:\/\/([^\/]+?@)?([^:\/]+)/,
2323
/**
24-
* リンクホールドのための変数コンテナ
24+
* リンクスライディングのための変数コンテナ
2525
* @type {Object}
2626
*/
27-
'hold': {
28-
'duration': 1000,
29-
'timeoutId': -1,
27+
'sliding': {
28+
'start': -1,
29+
'startX': -1,
30+
'startY': -1,
31+
'endX': -1,
32+
'endY': -1,
33+
'target': null,
3034
'callbacks': {},
3135
'dialogs': {},
3236
'dialog': null,
@@ -406,17 +410,17 @@ iutil.stopEvent = function(event) {
406410
};
407411

408412
// }}}
409-
// {{{ hold.onTouchStart()
413+
// {{{ sliding.onTouchStart()
410414

411415
/**
412-
* リンクホールド・タッチ/マウス押し下げ時のイベントハンドラ
416+
* リンクスライド・タッチ/マウス押し下げ時のイベントハンドラ
413417
* ダイアログ表示タイマーをセットする
414418
*
415419
* @param {Event} event
416420
* @param {Element} target
417421
* @return void
418422
*/
419-
iutil.hold.onTouchStart = function(event, target) {
423+
iutil.sliding.onTouchStart = function(event, target) {
420424
var x, y;
421425

422426
event = event || window.event;
@@ -450,55 +454,71 @@ iutil.hold.onTouchStart = function(event, target) {
450454
}
451455
}
452456

453-
if (iutil.hold.timeoutId != -1) {
454-
window.clearTimeout(iutil.hold.timeoutId);
455-
}
456-
457-
iutil.hold.timeoutId = window.setTimeout(iutil.hold.showDialog,
458-
iutil.hold.duration,
459-
target, x, y);
457+
iutil.sliding.start = event.timeStamp;
458+
iutil.sliding.startX = x;
459+
iutil.sliding.startY = y;
460+
iutil.sliding.target = target;
460461
};
461462

462463
// }}}
463-
// {{{ hold.onTouchMove()
464+
// {{{ sliding.onTouchMove()
464465

465466
/**
466-
* リンクホールド・ムーブ/ドラッグ時のイベントハンドラ
467+
* リンクスライド・ムーブ/ドラッグ時のイベントハンドラ
467468
* タッチ/カーソルが移動したならダイアログ表示タイマーをキャンセルする
468469
*
469470
* @param {Event} event
470471
* @return void
471472
*/
472-
iutil.hold.onTouchMove = function(event) {
473-
if (iutil.hold.timeoutId != -1) {
474-
window.clearTimeout(iutil.hold.timeoutId);
475-
iutil.hold.timeoutId = -1;
473+
iutil.sliding.onTouchMove = function(event) {
474+
var x, y;
475+
476+
event = event || window.event;
477+
478+
//iutil.stopEvent(event);
479+
480+
if (event.targetTouches) {
481+
if (!event.targetTouches.length) {
482+
return;
483+
}
484+
x = event.targetTouches[0].pageX;
485+
y = event.targetTouches[0].pageY;
486+
} else {
487+
x = iutil.getPageX(event);
488+
y = iutil.getPageY(event);
476489
}
490+
491+
iutil.sliding.endX = x;
492+
iutil.sliding.endY = y;
477493
};
478494

479495
// }}}
480-
// {{{ hold.onClick()
496+
// {{{ sliding.onTouchEnd()
481497

482498
/**
483-
* リンクホールド・クリック時のイベントハンドラ
499+
* リンクスライド・リリース時のイベントハンドラ
484500
* ダイアログが表示されたならクリックをキャンセルする
485501
*
486502
* @param {Event} event
487503
* @return void
488504
*/
489-
iutil.hold.onClick = function(event) {
490-
if (iutil.hold.timeoutId != -1) {
491-
window.clearTimeout(iutil.hold.timeoutId);
492-
iutil.hold.timeoutId = -1;
493-
return true;
494-
} else {
495-
iutil.stopEvent(event || window.event);
505+
iutil.sliding.onTouchEnd = function(event) {
506+
event = event || window.event;
507+
508+
if (Math.abs(iutil.sliding.endX - iutil.sliding.startX) > 160 &&
509+
Math.abs(iutil.sliding.endY - iutil.sliding.startY) < 16 &&
510+
event.timeStamp < iutil.sliding.start + 1000)
511+
{
512+
iutil.sliding.showDialog(iutil.sliding.target, iutil.sliding.startX, iutil.sliding.startY);
513+
iutil.stopEvent(event);
496514
return false;
515+
} else {
516+
return true;
497517
}
498518
};
499519

500520
// }}}
501-
// {{{ hold.showDialog()
521+
// {{{ sliding.showDialog()
502522

503523
/**
504524
* ダイアログを表示する
@@ -508,36 +528,36 @@ iutil.hold.onClick = function(event) {
508528
* @param {Number} y
509529
* @return void
510530
*/
511-
iutil.hold.showDialog = function(anchor, x, y) {
512-
var hold, dialog, div, text, button, m, p, left;
531+
iutil.sliding.showDialog = function(anchor, x, y) {
532+
var sliding, dialog, div, text, button, m, p, left;
513533

514-
hold = iutil.hold;
515-
hold.timeoutId = -1;
516-
hold.anchor = anchor;
517-
hold.href = anchor.getAttribute('href');
518-
hold.uri = anchor.href;
534+
sliding = iutil.sliding;
535+
sliding.timeoutId = -1;
536+
sliding.anchor = anchor;
537+
sliding.href = anchor.getAttribute('href');
538+
sliding.uri = anchor.href;
519539

520-
hold.hideDialog();
540+
sliding.hideDialog();
521541

522542
m = iutil.internalLinkPattern.exec(anchor.getAttribute('href'));
523543
if (m === null) {
524544
return;
525545
}
526546

527-
hold.query = hold.href.substring(m[0].length);
528-
p = hold.query.indexOf('#');
547+
sliding.query = sliding.href.substring(m[0].length);
548+
p = sliding.query.indexOf('#');
529549
if (p !== -1) {
530-
hold.query = hold.query.substring(0, p);
550+
sliding.query = sliding.query.substring(0, p);
531551
}
532552

533553
// 特定のコールバック関数があるとき
534-
if (typeof hold.callbacks[m[1]] === 'function') {
535-
hold.callbacks[m[1]](anchor, event);
554+
if (typeof sliding.callbacks[m[1]] === 'function') {
555+
sliding.callbacks[m[1]](anchor, event);
536556
return;
537557
}
538558

539559
// デフォルトのダイアログを表示する
540-
if (typeof hold.dialogs._default === 'undefined') {
560+
if (typeof sliding.dialogs._default === 'undefined') {
541561
dialog = document.createElement('div');
542562
dialog.className = 'popup-dialog';
543563

@@ -553,26 +573,26 @@ iutil.hold.showDialog = function(anchor, x, y) {
553573
button = div.appendChild(document.createElement('input'));
554574
button.setAttribute('type', 'button');
555575
button.value = 'リンクを開く';
556-
button.onclick = hold.openUri;
576+
button.onclick = sliding.openUri;
557577

558578
div.appendChild(document.createTextNode('\u3000'));
559579

560580
button = div.appendChild(document.createElement('input'));
561581
button.setAttribute('type', 'button');
562582
button.value = 'タブで開く';
563-
button.onclick = hold.openUriInTab;
583+
button.onclick = sliding.openUriInTab;
564584

565585
// 「閉じる」ボタン
566586
button = dialog.appendChild(document.createElement('img'));
567587
button.className = 'close-button';
568588
button.setAttribute('src', 'img/iphone/close.png');
569-
button.onclick = hold.hideDialog;
589+
button.onclick = sliding.hideDialog;
570590

571-
hold.dialogs._default = document.body.appendChild(dialog);
591+
sliding.dialogs._default = document.body.appendChild(dialog);
572592
} else {
573-
dialog = hold.dialogs._default;
593+
dialog = sliding.dialogs._default;
574594
}
575-
hold.setActiveDialog(dialog);
595+
sliding.setActiveDialog(dialog);
576596

577597
text = dialog.firstChild.firstChild;
578598
text.nodeValue = iutil.getTextNodes(anchor, true).join('').replace(/\s+/g, ' ')
@@ -585,80 +605,81 @@ iutil.hold.showDialog = function(anchor, x, y) {
585605
};
586606

587607
// }}}
588-
// {{{ hold.hideDialog()
608+
// {{{ sliding.hideDialog()
589609

590610
/**
591611
* アクティブなダイアログを隠す
592612
*
593613
* @param void
594614
* @return void
595615
*/
596-
iutil.hold.hideDialog = function() {
597-
if (iutil.hold.dialog) {
598-
iutil.hold.dialog.style.display = 'none';
599-
iutil.hold.setActiveDialog(null);
616+
iutil.sliding.hideDialog = function() {
617+
if (iutil.sliding.dialog) {
618+
iutil.sliding.dialog.style.display = 'none';
619+
iutil.sliding.setActiveDialog(null);
600620
}
601621
};
602622

603623
// }}}
604-
// {{{ hold.setActiveDialog()
624+
// {{{ sliding.setActiveDialog()
605625

606626
/**
607627
* アクティブなダイアログを設定する
608628
*
609629
* @param {Element|null} element
610630
* @return void
611631
*/
612-
iutil.hold.setActiveDialog = function(element) {
613-
iutil.hold.dialog = element;
632+
iutil.sliding.setActiveDialog = function(element) {
633+
iutil.sliding.dialog = element;
614634
};
615635

616636
// }}}
617-
// {{{ hold.openUri()
637+
// {{{ sliding.openUri()
618638

619639
/**
620640
* リンクを開く
621641
*
622642
* @param void
623643
* @return void
624644
*/
625-
iutil.hold.openUri = function() {
626-
window.location.href = iutil.hold.uri;
645+
iutil.sliding.openUri = function() {
646+
window.location.href = iutil.sliding.uri;
627647
};
628648

629649
// }}}
630-
// {{{ hold.openUriInTab()
650+
// {{{ sliding.openUriInTab()
631651

632652
/**
633653
* 新しいタブでリンクを開く
634654
*
635655
* @param void
636656
* @return void
637657
*/
638-
iutil.hold.openUriInTab = function() {
639-
window.open(iutil.hold.uri, null);
658+
iutil.sliding.openUriInTab = function() {
659+
window.open(iutil.sliding.uri, null);
640660
};
641661

642662
// }}}
643-
// {{{ hold.bind()
663+
// {{{ sliding.bind()
644664

645665
/**
646-
* リンクにホールドイベントハンドラを登録する
666+
* リンクにスライドイベントハンドラを登録する
647667
*
648668
* @param {Element} anchor
649669
* @return void
650670
*/
651671
if (iutil.iphone) {
652-
iutil.hold.bind = function(anchor) {
653-
anchor.addEventListener('touchstart', iutil.hold.onTouchStart, false);
654-
anchor.addEventListener('touchmove', iutil.hold.onTouchMove, false);
655-
anchor.addEventListener('click', iutil.hold.onClick, false);
672+
iutil.sliding.bind = function(anchor) {
673+
anchor.addEventListener('touchstart', iutil.sliding.onTouchStart, false);
674+
anchor.addEventListener('touchmove', iutil.sliding.onTouchMove, false);
675+
anchor.addEventListener('touchend', iutil.sliding.onTouchEnd, false);
676+
anchor.addEventListener('touchcancel', iutil.sliding.onTouchEnd, false);
656677
};
657678
} else {
658-
iutil.hold.bind = function(anchor) {
659-
anchor.addEventListener('mousedown', iutil.hold.onTouchStart, false);
660-
anchor.addEventListener('drag', iutil.hold.onTouchMove, false);
661-
anchor.addEventListener('click', iutil.hold.onClick, false);
679+
iutil.sliding.bind = function(anchor) {
680+
anchor.addEventListener('mousedown', iutil.sliding.onTouchStart, false);
681+
anchor.addEventListener('drag', iutil.sliding.onTouchMove, false);
682+
anchor.addEventListener('mosueup', iutil.sliding.onTouchEnd, false);
662683
};
663684
}
664685

0 commit comments

Comments
0 (0)
You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.