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 — GitHub - dgg712/p2-php: ServerSide 2ch viewer

BranchesTags
Open more actions menu
 
 

Latest commit

 

History

1,246 Commits
1,246 Commits

Folders and files

NameName
Last commit message
Last commit date
build
build
 
 
conf
conf
 
 
data
data
 
 
doc
doc
 
 
lib
lib
 
 
rep2
rep2
 
 
scripts
scripts
 
 
style
style
 
 
.gitignore
.gitignore
 
 
.gitmodules
.gitmodules
 
 
LICENSE.txt
LICENSE.txt
 
 
README.md
README.md
 
 
composer.json
composer.json
 
 
init.php
init.php
 
 

Repository files navigation

rep2 expack 全部入り by 2ch774版+スマフォRetinaアイコン

2ch772氏のrep2の、スマフォページアイコンをRetina(2x、3x)に対応させたものです。 基本それ以外、本家の更新は気付いた時に取り込んでいく方針です。

##やったこと HTML5で既定されたimgタグのsrcset属性を使い、2倍解像度と3倍解像度のアイコンファイルを利用するよう、一部の関数を書き換えてあります。 2倍解像度ファイル:iPhone4以降のiPhoneや多くのAndroid端末 3倍解像度ファイル:iPhone6Plusや、フルHDクラスのAndroid端末など

srcsetの指定は、hoge.pngに対し、[email protected]、[email protected]といった高解像度ファイルを用意し、

<img src="hoge.pne" srcset="[email protected] 2x,[email protected] 3x" />

といった感じで指定します。srcset非対応ブラウザなら今まで通りsrc属性で指定したファイルを使うので問題ありません。 ただ、srcsetで指定したファイルが存在しないと、対応ブラウザでは画像が表示されなくなってしまうので、関数内でファイルが実在するかどうかチェックしてから指定するようにしています。これにより、段階的に高解像度ファイルを追加していくことができます。

##対応済みアイコン スマフォ用ページで基本的なところはほぼ網羅できていると思います。IC2周りは使っていないので未着手です。

About

ServerSide 2ch viewer

sourceforge.jp/projects/p2-php/

Resources

Readme
MIT license
Activity

Stars

0 stars

Watchers

1 watching

Forks

0 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402775 — 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.