comparison s4-blog.sh @ 946:420ad90116e6 draft

MathJax preview initial version
author HIROSE Yuuji <yuuji@gentei.org>
date Tue, 26 Oct 2021 13:16:29 +0900
parents 5d70fa029f8d
children b8ce08814228
comparison
equal deleted inserted replaced
945:29342754a2d0 946:420ad90116e6
268 ;; 268 ;;
269 esac 269 esac
270 ;; 270 ;;
271 esac 271 esac
272 fi 272 fi
273 href4="${blog_math:+Math} <a href=\"#bottom\" accesskey=\"b\" title=\"Shortcut: B${nl}to the Bottom\"> 末尾へ</a>" 273 href4="${blog_math:+<span id=\"mathjax\">Math</span>} <a href=\"#bottom\" accesskey=\"b\" title=\"Shortcut: B${nl}to the Bottom\"> 末尾へ</a>"
274 $isgrpadmin && 274 $isgrpadmin &&
275 href5="<a href=\"?blogseen+$rowid\" accesskey=\"s\" title=\"Shortcut: S${nl}State of Accesses\"> 読刻</a>" 275 href5="<a href=\"?blogseen+$rowid\" accesskey=\"s\" title=\"Shortcut: S${nl}State of Accesses\"> 読刻</a>"
276 quizmodefile=$tmpd/quiz; rm -f "$quizmodefile" # XXX: Global state 276 quizmodefile=$tmpd/quiz; rm -f "$quizmodefile" # XXX: Global state
277 midfile=$tmpd/midfile 277 midfile=$tmpd/midfile
278 278
415 EOF 415 EOF
416 if [ $? -ne 0 -a ! -s $midfile ]; then 416 if [ $? -ne 0 -a ! -s $midfile ]; then
417 echo "時間をおいてください(Visit later please)." | html p 417 echo "時間をおいてください(Visit later please)." | html p
418 return 418 return
419 fi 419 fi
420 echo "${blog_math:+$mathjax}" 420 printf '%s' "${blog_math:+$mathjax}"
421 echo '<table class="blog_replies"> <!-- blog:blog_showentry() main table -->' 421 echo '<table class="blog_replies"> <!-- blog:blog_showentry() main table -->'
422 # If, nLimit = 50 422 # If, nLimit = 50
423 # show article:1, hide(2, 3), show(4, ...) 423 # show article:1, hide(2, 3), show(4, ...)
424 # Therefore hide 2 or more article when narts>53 424 # Therefore hide 2 or more article when narts>53
425 narts=`wc -l < $midfile` 425 narts=`wc -l < $midfile`

yatex.org