diff --git a/index.html b/index.html index 0f148b9..146c653 100644 --- a/index.html +++ b/index.html @@ -14,11 +14,21 @@ + + + +

OnlineWebFonts Font Demo

+

+Menlo Regular Font More Format Downloads

+
+
Instructions:
+ +
+
+
+
+OnlineWebFonts.Com features an amazing collection of free fonts,
+premium fonts and free dingbats. With over 8,000,000 freeware fonts, 
+you've come to the best place to download fonts! 
+
+OnlineWebFonts.Com Some fonts provided are trial versions of full versions and may not allow embedding 
+unless a commercial license is purchased or may contain a limited character set. 
+Please review any files included with your download, 
+which will usually include information on the usage and licenses of the fonts. 
+If no information is provided, 
+please use at your own discretion or contact the author directly. 
+
+0123456789  /*-+~!@#$%^&*()-=_+{}[]:;"'|\<>.?
+
+
+
+ +
+
License and attribution:
+
You must credit the author Copy this link ( oNlineWebFonts.Com ) on your web
Copy the Attribution License:
+ +
+ + + \ No newline at end of file diff --git a/web/OnlineWebFonts_COM_cb7eb796ae7de7195a34c485cacebad1/License.txt b/web/OnlineWebFonts_COM_cb7eb796ae7de7195a34c485cacebad1/License.txt new file mode 100644 index 0000000..11c98a1 --- /dev/null +++ b/web/OnlineWebFonts_COM_cb7eb796ae7de7195a34c485cacebad1/License.txt @@ -0,0 +1,37 @@ + + +X------------------------------------------------------[ + + FREE FONT : http://www.OnlineWebFonts.Com + +^------------------------------------------------------a + +You must credit the author +Copy this link on your web + +
Font made from oNline Web Fonts is licensed by CC BY 3.0
+ + OR + +oNline Web Fonts + + +======================================================================================================= + +OnlineWebFonts.Com features an amazing collection of free fonts, +premium fonts and free dingbats. With over 8,000,000 freeware fonts, +you've come to the best place to download fonts! + + +======================================================================================================= + + +OnlineWebFonts.Com Some fonts provided are trial versions of full versions and may not allow embedding +unless a commercial license is purchased or may contain a limited character set. +Please review any files included with your download, +which will usually include information on the usage and licenses of the fonts. +If no information is provided, +please use at your own discretion or contact the author directly. + + +======================================================================================================= \ No newline at end of file diff --git a/web/OnlineWebFonts_COM_cb7eb796ae7de7195a34c485cacebad1/Menlo Regular/Menlo Regular.eot b/web/OnlineWebFonts_COM_cb7eb796ae7de7195a34c485cacebad1/Menlo Regular/Menlo Regular.eot new file mode 100644 index 0000000..076f541 Binary files /dev/null and b/web/OnlineWebFonts_COM_cb7eb796ae7de7195a34c485cacebad1/Menlo Regular/Menlo Regular.eot differ diff --git a/web/OnlineWebFonts_COM_cb7eb796ae7de7195a34c485cacebad1/Menlo Regular/Menlo Regular.svg b/web/OnlineWebFonts_COM_cb7eb796ae7de7195a34c485cacebad1/Menlo Regular/Menlo Regular.svg new file mode 100644 index 0000000..14ee015 --- /dev/null +++ b/web/OnlineWebFonts_COM_cb7eb796ae7de7195a34c485cacebad1/Menlo Regular/Menlo Regular.svg @@ -0,0 +1,7947 @@ + + + + +Created by FontForge 20120731 at Sun Jun 30 00:13:02 2019 + By www +Copyright (c) 2009 Apple Inc. Copyright (c) 2006 by Tavmjong Bah. Copyright (c) 2003 by Bitstream, Inc. All Rights Reserved. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/web/OnlineWebFonts_COM_cb7eb796ae7de7195a34c485cacebad1/Menlo Regular/Menlo Regular.ttf b/web/OnlineWebFonts_COM_cb7eb796ae7de7195a34c485cacebad1/Menlo Regular/Menlo Regular.ttf new file mode 100644 index 0000000..033dc6d Binary files /dev/null and b/web/OnlineWebFonts_COM_cb7eb796ae7de7195a34c485cacebad1/Menlo Regular/Menlo Regular.ttf differ diff --git a/web/OnlineWebFonts_COM_cb7eb796ae7de7195a34c485cacebad1/Menlo Regular/Menlo Regular.woff b/web/OnlineWebFonts_COM_cb7eb796ae7de7195a34c485cacebad1/Menlo Regular/Menlo Regular.woff new file mode 100644 index 0000000..b241916 Binary files /dev/null and b/web/OnlineWebFonts_COM_cb7eb796ae7de7195a34c485cacebad1/Menlo Regular/Menlo Regular.woff differ diff --git a/web/OnlineWebFonts_COM_cb7eb796ae7de7195a34c485cacebad1/Menlo Regular/Menlo Regular.woff2 b/web/OnlineWebFonts_COM_cb7eb796ae7de7195a34c485cacebad1/Menlo Regular/Menlo Regular.woff2 new file mode 100644 index 0000000..0b927c2 Binary files /dev/null and b/web/OnlineWebFonts_COM_cb7eb796ae7de7195a34c485cacebad1/Menlo Regular/Menlo Regular.woff2 differ diff --git a/web/OnlineWebFonts_COM_cb7eb796ae7de7195a34c485cacebad1/Online_Web_Fonts.url b/web/OnlineWebFonts_COM_cb7eb796ae7de7195a34c485cacebad1/Online_Web_Fonts.url new file mode 100644 index 0000000..71ff3d5 --- /dev/null +++ b/web/OnlineWebFonts_COM_cb7eb796ae7de7195a34c485cacebad1/Online_Web_Fonts.url @@ -0,0 +1,8 @@ +[{000214A0-0000-0000-C000-000000000046}] +Prop3=19,2 +[InternetShortcut] +URL=http://www.onlinewebfonts.com/ +IDList= +IconFile=http://www.fontfree.org/favicon.ico +IconIndex=1 +HotKey=0 diff --git a/web/script_2.js b/web/script_2.js index 7a33ab9..a35eef1 100644 --- a/web/script_2.js +++ b/web/script_2.js @@ -38,233 +38,6 @@ const TOC_MOBILE = ' Image, Audio, Pygame]\n' + '}\n'; -const DIAGRAM_1_A = - '+-------------+-------------+\n' + - '| Classes | Metaclasses |\n' + - '+-------------+-------------|\n' + - '| MyClass --> MyMetaClass |\n'; - -const DIAGRAM_1_B = - '┏━━━━━━━━━━━━━┯━━━━━━━━━━━━━┓\n' + - '┃ Classes │ Metaclasses ┃\n' + - '┠─────────────┼─────────────┨\n' + - '┃ MyClass ──→ MyMetaClass ┃\n' + - '┃ │ ↓ ┃\n' + - '┃ object ─────→ type ←╮ ┃\n' + - '┃ │ ↑ ╰──╯ ┃\n' + - '┃ str ──────────╯ ┃\n' + - '┗━━━━━━━━━━━━━┷━━━━━━━━━━━━━┛\n'; - -const DIAGRAM_2_A = - '+-------------+-------------+\n' + - '| Classes | Metaclasses |\n' + - '+-------------+-------------|\n' + - '| MyClass | MyMetaClass |\n'; - -const DIAGRAM_2_B = - '┏━━━━━━━━━━━━━┯━━━━━━━━━━━━━┓\n' + - '┃ Classes │ Metaclasses ┃\n' + - '┠─────────────┼─────────────┨\n' + - '┃ MyClass │ MyMetaClass ┃\n' + - '┃ ↓ │ ↓ ┃\n' + - '┃ object ←───── type ┃\n' + - '┃ ↑ │ ┃\n' + - '┃ str │ ┃\n' + - '┗━━━━━━━━━━━━━┷━━━━━━━━━━━━━┛\n'; - -const DIAGRAM_3_A = - '+------------------+------------+------------+------------+\n' + - '| | Sequence | Collection | Iterable |\n' + - '+------------------+------------+------------+------------+\n'; - -const DIAGRAM_3_B = - '┏━━━━━━━━━━━━━━━━━━┯━━━━━━━━━━━━┯━━━━━━━━━━━━┯━━━━━━━━━━━━┓\n' + - '┃ │ Sequence │ Collection │ Iterable ┃\n' + - '┠──────────────────┼────────────┼────────────┼────────────┨\n' + - '┃ list, range, str │ ✓ │ ✓ │ ✓ ┃\n' + - '┃ dict, set │ │ ✓ │ ✓ ┃\n' + - '┃ iter │ │ │ ✓ ┃\n' + - '┗━━━━━━━━━━━━━━━━━━┷━━━━━━━━━━━━┷━━━━━━━━━━━━┷━━━━━━━━━━━━┛\n'; - -const DIAGRAM_4_A = - '+--------------------+----------+----------+----------+----------+----------+\n' + - '| | Integral | Rational | Real | Complex | Number |\n' + - '+--------------------+----------+----------+----------+----------+----------+\n'; - -const DIAGRAM_4_B = - '┏━━━━━━━━━━━━━━━━━━━━┯━━━━━━━━━━┯━━━━━━━━━━┯━━━━━━━━━━┯━━━━━━━━━━┯━━━━━━━━━━┓\n' + - '┃ │ Integral │ Rational │ Real │ Complex │ Number ┃\n' + - '┠────────────────────┼──────────┼──────────┼──────────┼──────────┼──────────┨\n' + - '┃ int │ ✓ │ ✓ │ ✓ │ ✓ │ ✓ ┃\n' + - '┃ fractions.Fraction │ │ ✓ │ ✓ │ ✓ │ ✓ ┃\n' + - '┃ float │ │ │ ✓ │ ✓ │ ✓ ┃\n' + - '┃ complex │ │ │ │ ✓ │ ✓ ┃\n' + - '┃ decimal.Decimal │ │ │ │ │ ✓ ┃\n' + - '┗━━━━━━━━━━━━━━━━━━━━┷━━━━━━━━━━┷━━━━━━━━━━┷━━━━━━━━━━┷━━━━━━━━━━┷━━━━━━━━━━┛\n'; - -const DIAGRAM_5_A = - "+---------------+-----------------+-----------------+-----------------+-----------------+\n" + - "| | {} | {:f} | {:e} | {:%} |\n" + - "+---------------+-----------------+-----------------+-----------------+-----------------+\n"; - -const DIAGRAM_5_B = - "┏━━━━━━━━━━━━━━━┯━━━━━━━━━━━━━━━━━┯━━━━━━━━━━━━━━━━━┯━━━━━━━━━━━━━━━━━┯━━━━━━━━━━━━━━━━━┓\n" + - "┃ │ {<float>} │ {<float>:f} │ {<float>:e} │ {<float>:%} ┃\n" + - "┠───────────────┼─────────────────┼─────────────────┼─────────────────┼─────────────────┨\n" + - "┃ 0.000056789 │ '5.6789e-05' │ '0.000057' │ '5.678900e-05' │ '0.005679%' ┃\n" + - "┃ 0.00056789 │ '0.00056789' │ '0.000568' │ '5.678900e-04' │ '0.056789%' ┃\n" + - "┃ 0.0056789 │ '0.0056789' │ '0.005679' │ '5.678900e-03' │ '0.567890%' ┃\n" + - "┃ 0.056789 │ '0.056789' │ '0.056789' │ '5.678900e-02' │ '5.678900%' ┃\n" + - "┃ 0.56789 │ '0.56789' │ '0.567890' │ '5.678900e-01' │ '56.789000%' ┃\n" + - "┃ 5.6789 │ '5.6789' │ '5.678900' │ '5.678900e+00' │ '567.890000%' ┃\n" + - "┃ 56.789 │ '56.789' │ '56.789000' │ '5.678900e+01' │ '5678.900000%' ┃\n" + - "┃ 567.89 │ '567.89' │ '567.890000' │ '5.678900e+02' │ '56789.000000%' ┃\n" + - "┗━━━━━━━━━━━━━━━┷━━━━━━━━━━━━━━━━━┷━━━━━━━━━━━━━━━━━┷━━━━━━━━━━━━━━━━━┷━━━━━━━━━━━━━━━━━┛\n"; - -const DIAGRAM_6_A = - "+---------------+-----------------+-----------------+-----------------+-----------------+\n" + - "| | {:.2} | {:.2f} | {:.2e} | {:.2%} |\n" + - "+---------------+-----------------+-----------------+-----------------+-----------------+\n"; - -const DIAGRAM_6_B = - "┏━━━━━━━━━━━━━━━┯━━━━━━━━━━━━━━━━━┯━━━━━━━━━━━━━━━━━┯━━━━━━━━━━━━━━━━━┯━━━━━━━━━━━━━━━━━┓\n" + - "┃ │ {<float>:.2} │ {<float>:.2f} │ {<float>:.2e} │ {<float>:.2%} ┃\n" + - "┠───────────────┼─────────────────┼─────────────────┼─────────────────┼─────────────────┨\n" + - "┃ 0.000056789 │ '5.7e-05' │ '0.00' │ '5.68e-05' │ '0.01%' ┃\n" + - "┃ 0.00056789 │ '0.00057' │ '0.00' │ '5.68e-04' │ '0.06%' ┃\n" + - "┃ 0.0056789 │ '0.0057' │ '0.01' │ '5.68e-03' │ '0.57%' ┃\n" + - "┃ 0.056789 │ '0.057' │ '0.06' │ '5.68e-02' │ '5.68%' ┃\n" + - "┃ 0.56789 │ '0.57' │ '0.57' │ '5.68e-01' │ '56.79%' ┃\n" + - "┃ 5.6789 │ '5.7' │ '5.68' │ '5.68e+00' │ '567.89%' ┃\n" + - "┃ 56.789 │ '5.7e+01' │ '56.79' │ '5.68e+01' │ '5678.90%' ┃\n" + - "┃ 567.89 │ '5.7e+02' │ '567.89' │ '5.68e+02' │ '56789.00%' ┃\n" + - "┗━━━━━━━━━━━━━━━┷━━━━━━━━━━━━━━━━━┷━━━━━━━━━━━━━━━━━┷━━━━━━━━━━━━━━━━━┷━━━━━━━━━━━━━━━━━┛\n"; - -const DIAGRAM_7_A = - '+------------+------------+------------+------------+--------------+\n' + - '| | Iterable | Collection | Sequence | abc.Sequence |\n' + - '+------------+------------+------------+------------+--------------+\n'; - -const DIAGRAM_7_B = - '┏━━━━━━━━━━━━┯━━━━━━━━━━━━┯━━━━━━━━━━━━┯━━━━━━━━━━━━┯━━━━━━━━━━━━━━┓\n' + - '┃ │ Iterable │ Collection │ Sequence │ abc.Sequence ┃\n' + - '┠────────────┼────────────┼────────────┼────────────┼──────────────┨\n' + - '┃ iter() │ ! │ ! │ ✓ │ ✓ ┃\n' + - '┃ contains() │ ✓ │ ✓ │ ✓ │ ✓ ┃\n' + - '┃ len() │ │ ! │ ! │ ! ┃\n' + - '┃ getitem() │ │ │ ! │ ! ┃\n' + - '┃ reversed() │ │ │ ✓ │ ✓ ┃\n' + - '┃ index() │ │ │ │ ✓ ┃\n' + - '┃ count() │ │ │ │ ✓ ┃\n' + - '┗━━━━━━━━━━━━┷━━━━━━━━━━━━┷━━━━━━━━━━━━┷━━━━━━━━━━━━┷━━━━━━━━━━━━━━┛\n'; - -const DIAGRAM_8_A = - 'BaseException\n' + - ' +-- SystemExit'; - -const DIAGRAM_8_B = - "BaseException\n" + - " ├── SystemExit # Raised by the sys.exit() function.\n" + - " ├── KeyboardInterrupt # Raised when the user hits the interrupt key (ctrl-c).\n" + - " └── Exception # User-defined exceptions should be derived from this class.\n" + - " ├── ArithmeticError # Base class for arithmetic errors.\n" + - " │ └── ZeroDivisionError # Raised when dividing by zero.\n" + - " ├── AttributeError # Raised when an attribute is missing.\n" + - " ├── EOFError # Raised by input() when it hits end-of-file condition.\n" + - " ├── LookupError # Raised when a look-up on a collection fails.\n" + - " │ ├── IndexError # Raised when a sequence index is out of range.\n" + - " │ └── KeyError # Raised when a dictionary key or set element is not found.\n" + - " ├── NameError # Raised when a variable name is not found.\n" + - " ├── OSError # Failures such as “file not found” or “disk full”.\n" + - " │ └── FileNotFoundError # When a file or directory is requested but doesn't exist.\n" + - " ├── RuntimeError # Raised by errors that don't fall in other categories.\n" + - " │ └── RecursionError # Raised when the maximum recursion depth is exceeded.\n" + - " ├── StopIteration # Raised by next() when run on an empty iterator.\n" + - " ├── TypeError # Raised when an argument is of wrong type.\n" + - " └── ValueError # When an argument is of right type but inappropriate value.\n" + - " └── UnicodeError # Raised when encoding/decoding strings to/from bytes fails.\n"; - -const DIAGRAM_9_A = - '+------------------+--------------+--------------+--------------+\n' + - '| | excel | excel-tab | unix |\n' + - '+------------------+--------------+--------------+--------------+\n'; - -const DIAGRAM_9_B = - "┏━━━━━━━━━━━━━━━━━━┯━━━━━━━━━━━━━━┯━━━━━━━━━━━━━━┯━━━━━━━━━━━━━━┓\n" + - "┃ │ excel │ excel-tab │ unix ┃\n" + - "┠──────────────────┼──────────────┼──────────────┼──────────────┨\n" + - "┃ delimiter │ ',' │ '\\t' │ ',' ┃\n" + - "┃ quotechar │ '\"' │ '\"' │ '\"' ┃\n" + - "┃ doublequote │ True │ True │ True ┃\n" + - "┃ skipinitialspace │ False │ False │ False ┃\n" + - "┃ lineterminator │ '\\r\\n' │ '\\r\\n' │ '\\n' ┃\n" + - "┃ quoting │ 0 │ 0 │ 1 ┃\n" + - "┃ escapechar │ None │ None │ None ┃\n" + - "┗━━━━━━━━━━━━━━━━━━┷━━━━━━━━━━━━━━┷━━━━━━━━━━━━━━┷━━━━━━━━━━━━━━┛\n"; - -const DIAGRAM_10_A = - '+-----------+------------+------------+------------+\n' + - '| | list | dict | set |\n' + - '+-----------+------------+------------+------------+\n'; - -const DIAGRAM_10_B = - '┏━━━━━━━━━━━┯━━━━━━━━━━━━┯━━━━━━━━━━━━┯━━━━━━━━━━━━┓\n' + - '┃ │ list │ dict │ set ┃\n' + - '┠───────────┼────────────┼────────────┼────────────┨\n' + - '┃ getitem() │ IndexError │ KeyError │ ┃\n' + - '┃ pop() │ IndexError │ KeyError │ KeyError ┃\n' + - '┃ remove() │ ValueError │ │ KeyError ┃\n' + - '┃ index() │ ValueError │ │ ┃\n' + - '┗━━━━━━━━━━━┷━━━━━━━━━━━━┷━━━━━━━━━━━━┷━━━━━━━━━━━━┛\n'; - -const DIAGRAM_11_A = - '+-----------+-------------+------+-------------+\n' + - '| sampwidth | min | zero | max |\n' + - '+-----------+-------------+------+-------------+\n'; - -const DIAGRAM_11_B = - '┏━━━━━━━━━━━┯━━━━━━━━━━━━━┯━━━━━━┯━━━━━━━━━━━━━┓\n' + - '┃ sampwidth │ min │ zero │ max ┃\n' + - '┠───────────┼─────────────┼──────┼─────────────┨\n' + - '┃ 1 │ 0 │ 128 │ 255 ┃\n' + - '┃ 2 │ -32768 │ 0 │ 32767 ┃\n' + - '┃ 3 │ -8388608 │ 0 │ 8388607 ┃\n' + - '┃ 4 │ -2147483648 │ 0 │ 2147483647 ┃\n' + - '┗━━━━━━━━━━━┷━━━━━━━━━━━━━┷━━━━━━┷━━━━━━━━━━━━━┛\n'; - -const DIAGRAM_12_A = - '+---------------+----------+----------+----------+----------+----------+\n'; - -const DIAGRAM_12_B = - '┏━━━━━━━━━━━━━━━┯━━━━━━━━━━┯━━━━━━━━━━┯━━━━━━━━━━┯━━━━━━━━━━┯━━━━━━━━━━┓\n' + - '┃ │ [ !#$%…] │ [a-zA-Z] │ [¼½¾] │ [²³¹] │ [0-9] ┃\n' + - '┠───────────────┼──────────┼──────────┼──────────┼──────────┼──────────┨\n' + - '┃ isprintable() │ ✓ │ ✓ │ ✓ │ ✓ │ ✓ ┃\n' + - '┃ isalnum() │ │ ✓ │ ✓ │ ✓ │ ✓ ┃\n' + - '┃ isnumeric() │ │ │ ✓ │ ✓ │ ✓ ┃\n' + - '┃ isdigit() │ │ │ │ ✓ │ ✓ ┃\n' + - '┃ isdecimal() │ │ │ │ │ ✓ ┃\n' + - '┗━━━━━━━━━━━━━━━┷━━━━━━━━━━┷━━━━━━━━━━┷━━━━━━━━━━┷━━━━━━━━━━┷━━━━━━━━━━┛\n'; - - -// isFontAvailable: -(function(d){function c(c){b.style.fontFamily=c;e.appendChild(b);f=b.clientWidth;e.removeChild(b);return f}var f,e=d.body,b=d.createElement("span");b.innerHTML=Array(100).join("wi");b.style.cssText=["position:absolute","width:auto","font-size:128px","left:-99999px"].join(" !important;");var g=c("monospace"),h=c("serif"),k=c("sans-serif");window.isFontAvailable=function(b){return g!==c(b+",monospace")||k!==c(b+",sans-serif")||h!==c(b+",serif")}})(document); - -if (isFontAvailable('Menlo')) { - $(`code:contains(${DIAGRAM_1_A})`).html(DIAGRAM_1_B); - $(`code:contains(${DIAGRAM_2_A})`).html(DIAGRAM_2_B); - $(`code:contains(${DIAGRAM_3_A})`).html(DIAGRAM_3_B); - $(`code:contains(${DIAGRAM_4_A})`).html(DIAGRAM_4_B); - $(`code:contains(${DIAGRAM_5_A})`).html(DIAGRAM_5_B); - $(`code:contains(${DIAGRAM_6_A})`).html(DIAGRAM_6_B); - $(`code:contains(${DIAGRAM_7_A})`).html(DIAGRAM_7_B); - $(`code:contains(${DIAGRAM_8_A})`).html(DIAGRAM_8_B); - $(`code:contains(${DIAGRAM_9_A})`).html(DIAGRAM_9_B); - $(`code:contains(${DIAGRAM_10_A})`).html(DIAGRAM_10_B); - $(`code:contains(${DIAGRAM_11_A})`).html(DIAGRAM_11_B); - $(`code:contains(${DIAGRAM_12_A})`).html(DIAGRAM_12_B); -} - var isMobile = false; // Device detection: if(/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|ipad|iris|kindle|Android|Silk|lge |maemo|midp|mmp|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows (ce|phone)|xda|xiino/i.test(navigator.userAgent) diff --git a/web/style.css b/web/style.css index 672e6f0..639b078 100644 --- a/web/style.css +++ b/web/style.css @@ -129,7 +129,7 @@ a:not(:hover) { pre, code, textarea { - font-family: "Menlo", monospace; + font-family: "Menlo", "Menlo Regular", monospace; } code { diff --git a/web/template.html b/web/template.html index 5fedd5c..afc132c 100644 --- a/web/template.html +++ b/web/template.html @@ -14,11 +14,21 @@ +