searchUnicode.fsp - Frink Server Pages highlighter

[Try searchUnicode.fsp]

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
            "http://www.w3.org/TR/html4/strict.dtd">
<HTML LANG="en">
 <HEAD>
  <TITLE>Unicode Character Search</TITLE>
  <META HTTP-EQUIV="Default-Style" CONTENT="APE Airy">
  <META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=utf-8"> 
  <META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=utf-8">
  <LINK REL="StyleSheet" HREF="/frinkdocs/apeairy.css" TYPE="text/css"
        TITLE="APE Airy"> 
  <LINK REL="Alternate StyleSheet" HREF="/frinkdocs/spaceship.css"
        TYPE="text/css" TITLE="Spaceship">
  <LINK REL="Alternate StyleSheet" HREF="/frinkdocs/style.css" TYPE="text/css"
        TITLE="APE Classic">
  <LINK REL="Alternate StyleSheet" HREF="/frinkdocs/style2.css" TYPE="text/css"
        TITLE="Compact"> 
  <LINK REL="icon" HREF="/images/futureboyicon.png" TYPE="image/png">
  <META NAME="viewport" CONTENT="width=device-width, initial-scale=1.0">
 </HEAD>

  <BODY onLoad="document.f1.q.focus()">
  <H1>Unicode Character Search</H1>
  <FORM ACTION="searchUnicode.fsp" METHOD="GET" NAME="f1">
   <P CLASS="CENTER">Search:
    <INPUT TYPE="TEXT" NAME="q" VALUE="<%= q ? HTMLEncode[q] : "" %>" SPELLCHECK="false">
    <INPUT TYPE="SUBMIT" VALUE="Search">
   </P>
  </FORM>
  
  <%
   use ../Unicode.frink
   use ../HTMLUtils.frink
   
   if isVariableDefined["q"] and trim[q] != ""
   {
      pat = regex[q, "i"]
      println["""<TABLE BORDER="0">"""]
   
      for [dec, char, name] = Unicode.searchNames[pat]
         println[" <TR><TD CLASS=\"lit\" STYLE=\"vertical-align:middle\">" + toASCIIHigh[char[dec]] + "<TD STYLE=\"font-size:2.5em; text-align:center\">" + HTMLEncode[char] + "<TD>" + HTMLEncode[name]]

      println["</TABLE>"]
   }
  %>
  <HR>
  <P>
   <I><A HREF="mailto:eliasen@mindspring.com">Alan Eliasen</A></I> was born
   <%= round[now[] - #1969-08-19 04:54 PM Mountain#, minute] -> ["days", "hours", "minutes"] %> ago.
  </P>

  <P>
   Back to <A HREF="/frinkdocs/fspdocs.html">Frink Server Pages
    documentation.</A>
  </P>  
 </BODY>
</HTML>

[Try searchUnicode.fsp]


Alan Eliasen was born 19394 days, 2 hours, 12 minutes ago.

Back to Frink Server Pages documentation.