From f970d451222a08247d43c1b8fb70e48f4dd793bf Mon Sep 17 00:00:00 2001 From: IIJIMA Hiromitsu Date: Sat, 10 Sep 2022 04:55:44 +0900 Subject: [PATCH] se enter the commit message for your changes. Lines starting * Fixed security warning issue when you post a 'man on WWW' query from 'https'://linuxjm.osdn.jp/. * Mobile device support ( and CSS fix). * Commented out '_PLUG' and '_MIRROR_LIST' macros; they are not used anymore and the URLs are all dead. * Some minor fixes. --- www/contrib.css | 4 ++-- www/jm.css | 10 +++++++--- www/jm_www.m4 | 45 ++++++++++++++++++++++++++------------------- www/jmpod.css | 2 +- 4 files changed, 36 insertions(+), 25 deletions(-) diff --git a/www/contrib.css b/www/contrib.css index 004286a2..091ce798 100644 --- a/www/contrib.css +++ b/www/contrib.css @@ -5,7 +5,7 @@ div.mirror-navigator { div.copyright { text-align: right; - font-family: helvetica, sans-serif; + font-family: Helvetica, Arial, sans-serif; font-size: smaller; color: rgb(40%,40%,40%) } @@ -55,7 +55,7 @@ ul li { padding-bottom: 0.3em; } -/* as of now, @import has not impremented in NN4 nor IE3-4 */ +/* Local configs for browsing locally downloaded files */ @import url(local.css) /* EOF */ diff --git a/www/jm.css b/www/jm.css index bf998020..7384f448 100644 --- a/www/jm.css +++ b/www/jm.css @@ -5,7 +5,7 @@ div.mirror-navigator { div.copyright { text-align: right; - font-family: helvetica, sans-serif; + font-family: Helvetica, Arial, sans-serif; font-size: smaller; color: rgb(40%,40%,40%) } @@ -31,6 +31,11 @@ div#googlesearch { width: 30em; } +/* for narrower devices */ +@media (max-width:30em) { + div#googlesearch { width: 100%;} +} + body { background: lightcyan; /* BEIGE; */ color: black; @@ -95,8 +100,7 @@ pre { padding: 0em !important; } -/* as of now, @import has not implemented in NN4 nor IE3-4 */ +/* Local configs for browsing locally downloaded files */ @import url(local.css) /* EOF */ - diff --git a/www/jm_www.m4 b/www/jm_www.m4 index 2519912b..f2e3cfb2 100644 --- a/www/jm_www.m4 +++ b/www/jm_www.m4 @@ -47,9 +47,15 @@ m4_define(`_EDIT_WARNING',` ==================================================================== -->') +m4_dnl ------------------------- +m4_dnl URLを //linuxjm.osdn.jp/cgi-bin/man.cgi などとするとドコモの +m4_dnl ガラケーが正しく認識してくれない。少なくともガラケーのサポート期限 +m4_dnl (ドコモ2026年3月末、ソフトバンク2024年1月半ば)まではこの形で +m4_dnl 維持すべきかと。 +m4_dnl ------------------------- -m4_define(`_MANCGI',`http://linuxjm.osdn.jp/cgi-bin/man.cgi') -m4_define(`_NAMAZU',`http://linuxjm.osdn.jp/cgi-bin/namazu.cgi') +m4_define(`_MANCGI',`/cgi-bin/man.cgi') +m4_define(`_NAMAZU',`/cgi-bin/namazu.cgi') m4_define(`_EMAIL_ADDRESS',linuxjm-discuss@lists.osdn.me) @@ -112,25 +118,26 @@ m4_define(`_LABEL',

$1

) m4_define(`_LINK_TO_LABEL', _LOCALLINK($1,$1)) -m4_define(`_PLUG', - _LINK(http://www.ssc.com/linux/, - _IMAGE(_HOMEPAGE/powered.gif,196,49))
-`If you are wondering, Linux is a free, non-commercial -operating system for computers. It happens to be a hobby of -mine and might well interest other hackers. Click on the logo -to learn more...') +m4_dnl m4_define(`_PLUG', +m4_dnl _LINK(http://www.ssc.com/linux/, +m4_dnl _IMAGE(_HOMEPAGE/powered.gif,196,49))
+m4_dnl `If you are wondering, Linux is a free, non-commercial +m4_dnl operating system for computers. It happens to be a hobby of +m4_dnl mine and might well interest other hackers. Click on the logo +m4_dnl to learn more...') m4_define(`_HEADER', ` + $1 (Japanese) - - - + + + @@ -140,13 +147,13 @@ m4_define(`_HEADER', `

$1

') -m4_define(`_MIRROR_LIST',` -
mirror server: [ - primary | - ktarn | - osaka-sandai - ]
-') +m4_dnl m4_define(`_MIRROR_LIST',` +m4_dnl
mirror server: [ +m4_dnl primary | +m4_dnl ktarn | +m4_dnl osaka-sandai +m4_dnl ]
+m4_dnl ') m4_define(`_CREDITS',`
diff --git a/www/jmpod.css b/www/jmpod.css index 34cb3f3c..eae45d6c 100644 --- a/www/jmpod.css +++ b/www/jmpod.css @@ -54,7 +54,7 @@ ul li { padding-bottom: 0.3em; } -/* as of now, @import has not impremented in NN4 nor IE3-4 */ +/* Local configs for browsing locally downloaded files */ @import url(local.css) /* EOF */ -- 2.11.0