Improve menu how-to in index, add to FAQ menus

The index.html file (from index.md) now links to the no JavaScript menu
for those who either wish to use a plaintext menu or for those who the
menu does not work (like I discovered with my iPhone 8 Plus - iOS 16
Safari, a bug that was fixed in iOS 17). It also links to a new FAQ
about the menus: how they work and also what to do if they don't work.
By 'how they work' this refers to on desktop/laptops, on mobile devices:
without JavaScript enabled and also on mobile phones and tablets in
portrait and also landscape mode plus on mobile devices wider than 1024
pixels and also the browser bug I referred to above.

This includes three new png files, screenshots of how it looks on an
iPhone 14 Pro Max (which should be like other mobile phones), one which
shows the iOS 16 Safari bug and one which shows desktops. These are of
course used in the FAQ.

Although not every html file has a link to the plaintext (i.e. the menu
for those with JavaScript disabled), it is hoped that these two changes
will help people navigate if they have a problem with the menus.
This commit is contained in:
Cody Boone Ferguson committed 2024-06-18 07:10:46 -07:00
1 parent 2f20376435
commit 960a3503d7
7 files changed
+218 -6

No files matched your search

+87 -2
View File
@@ -473,6 +473,7 @@ other inconsistencies with the original entry?</a></li>
<li><a href="#faq6_12">6.12 - What is Mastodon and why does IOCCC use it?</a></li>
<li><a href="#faq6_13">6.13 - How may I find my author handle?</a></li>
<li><a href="#faq6_14">6.14 - How do I set certain tabstops for viewing source code in vi(m)?</a></li>
<li><a href="#faq6_15">6.15 - How do the menus on the website work and what can I do if they don’t work?</a></li>
</ul>
<h1 id="the-ioccc-faq">The IOCCC FAQ</h1>
<div id="faq0">
@@ -657,7 +658,7 @@ as found in the <a href="https://github.com/ioccc-src/mkiocccentry">mkiocccentry
entry’s <code>Makefile</code>.</p>
<p>The <code>Makefile</code> is a file used by the <code>make(1)</code> command that contains
rules and UNIX shell-style commands.</p>
<p>The first and default rule should be the “all” rule and should build your entry’s executable file.</p>
<p>The first and default rule should be the <code>all</code> rule and should build your entry’s executable file.</p>
<p>If your entry depends on a particular source file name during compilation or execution,
your <code>Makefile</code> should copy <code>prog.c</code> into the desired filename. For example:</p>
<p>If you are not familiar <code>Makefile</code>s, you might consider the following tutorials:</p>
@@ -2295,7 +2296,7 @@ then <strong>please <a href="faq.html#pull_request">submit a pull request</a></s
or at least <a href="contact.html">inform the IOCCC judges</a>.</p>
<p>Authors of IOCCC winning entries are kept in JSON files of the form:</p>
<pre><code> author/author_handle.json</code></pre>
<p>where <em>author_handle</em> is an author handle.</p>
<p>where <code>author_handle</code> is an author handle.</p>
<p>See <a href="#author_handle_faq">FAQ 6.5</a> for more information about author handles.</p>
<p>See <a href="#author_json">FAQ 6.6</a> for information about the contents of these JSON file and
how they are used.</p>
@@ -3142,6 +3143,90 @@ mode you can do this easily: make sure you’re in command mode (in most cases y
can hit ESC to do this) and then type the command:</p>
<pre><code> :set tabstop=4</code></pre>
<p>where <code>4</code> is the value you wish to set the tabstop to.</p>
<div id="faq6_15">
<div id="menus">
<h3 id="faq-6.15---how-do-the-menus-on-the-website-work-and-what-can-i-do-if-they-dont-work">FAQ 6.15 - How do the menus on the website work and what can I do if they don’t work?</h3>
</div>
</div>
<div id="desktop_menu">
<h4 id="menu-on-desktops-or-laptop-computers">Menu on desktops or laptop computers</h4>
</div>
<p>The way the menu works on desktops or laptops is that you should simply see the
menu directly without the need of JavaScript or any intervention on your part.
It should look something like:</p>
<p><img src="png/ioccc-menu-desktop.png"
alt="screenshot of IOCCC menu on desktops"
width=912 height=160></p>
<p>Simply move your mouse cursor over the category you want and then click on the
item you wish to view that drops down from the category.</p>
<p>This is likely how it will appear with a <a href="faq.html#tablet_menu">tablet device in landscape
mode</a>, too, unless <a href="faq.html#no_javascript_menu">JavaScript is
disabled</a>.</p>
<div id="mobile_menus">
<h4 id="mobile-menus">Mobile menus</h4>
</div>
<p>If, however, you’re on a mobile device, it can vary, depending on the dimensions
and whether or not you have JavaScript enabled.</p>
<div id="mobile_phone_menu">
<h5 id="menus-on-mobile-phones">Menus on mobile phones</h5>
</div>
<p>For instance, on an iPhone 14
Pro Max or similar device (in dimensions), you should see at the top right of
every page, something that looks like:</p>
<p><img src="png/ioccc-menu-mobile-phone.png"
alt="screenshot of IOCCC menu on iPhone 14 Pro Max"
width=1290 height=527></p>
<p>In this case click on the icon at the top right corner that looks like:</p>
<p><img src="png/hamburger-icon-open.png"
alt="menu open icon"
width=24 height=24></p>
<p>to activate the menu.</p>
<div id="no_javascript_menu">
<h5 id="menu-on-mobile-devices-if-javascript-is-disabled">Menu on mobile devices if JavaScript is disabled</h5>
</div>
<p>If JavaScript is disabled on any mobile device, tablet or phone, you should see
the words:</p>
<pre><code> Please Enable JavaScript</code></pre>
<p>at the top right corner; clicking on this will take you to the <a href="nojs-menu.html">no JavaScript
menu</a> which is a plaintext menu. You of course can use this if
you like, even if you do not have JavaScript enabled, by pointing your browser
to <a href="https://ioccc-src.github.io/temp-test-ioccc/nojs-menu.html" class="uri">https://ioccc-src.github.io/temp-test-ioccc/nojs-menu.html</a>.</p>
<div id="tablet_menu">
<h5 id="menus-on-tablet-devices-e.g.-ipads">Menus on tablet devices (e.g. iPads)</h5>
</div>
<p>With tablets, it likely depends on the orientation you have your device in. If it’s
in portrait mode you likely will see the <a href="faq.html#mobile_phone_menu">menu that one will get on a mobile
phone</a>.</p>
<p>If, on the other hand, you are using landscape mode, say on an iPad Pro 11 inch
4th generation, then you will likely see the <a href="faq.html#desktop_menu">menu as you would on a desktop or
laptop</a>.</p>
<div id="1024px_menu">
<h5 id="menus-on-mobile-devices-wider-than-1024-pixels">Menus on mobile devices wider than 1024 pixels</h5>
</div>
<p>Finally, if you’re on a mobile device that is wider than 1024 pixels, you will
very possibly have to <strong>press and hold</strong> the menu icon:</p>
<p><img src="png/hamburger-icon-open.png"
alt="menu open icon"
width=24 height=24></p>
<p>to activate it. You can then use it <a href="faq.html#mobile_phone_menu">as you would on a mobile
phone</a>.</p>
<div id="browser_bug_menu">
<h5 id="browsing-the-website-on-mobile-devices-with-a-browser-bug">Browsing the website on mobile devices with a browser bug</h5>
</div>
<p>It was noticed that in iOS 16 Safari (both on an iPhone 8 Plus and in simulation
mode in macOS) the menu does not work at all. That is to say one might see:</p>
<p><img src="png/ioccc-menu-browser-bug.png"
alt="browser bug where menu icon does not show up"
width=1242 height=531></p>
<p>Notice how the menu icon is not even there! This happens in both portrait mode
and landscape mode.</p>
<p>In this case one will have to use the <a href="faq.html#no_javascript_menu">no JavaScript
menu</a>. If you have a fix for this that <strong>does NOT
affect the usability of desktops, laptops or other mobile devices</strong>, please
consider fixing it and <a href="faq.html#pull_request">opening a pull request</a> or at
least <a href="https://github.com/ioccc-src/temp-test-ioccc/issues/new/choose">report it as an
issue</a> (choose
the category <em>Website issue</em>).</p>
<hr style="width:10%;text-align:left;margin-left:0">
<p>Jump to: <a href="#">top</a></p>
<!--
+125 -2
View File
@@ -90,6 +90,7 @@ other inconsistencies with the original entry?](#faq4_3)
- [6.12 - What is Mastodon and why does IOCCC use it?](#faq6_12)
- [6.13 - How may I find my author handle?](#faq6_13)
- [6.14 - How do I set certain tabstops for viewing source code in vi&#x28;m&#x29;?](#faq6_14)
- [6.15 - How do the menus on the website work and what can I do if they don't work?](#faq6_15)
# The IOCCC FAQ
@@ -364,7 +365,7 @@ entry's `Makefile`.
The `Makefile` is a file used by the `make(1)` command that contains
rules and UNIX shell-style commands.
The first and default rule should be the "all" rule and should build your entry's executable file.
The first and default rule should be the `all` rule and should build your entry's executable file.
If your entry depends on a particular source file name during compilation or execution,
your `Makefile` should copy `prog.c` into the desired filename. For example:
@@ -2781,7 +2782,7 @@ Authors of IOCCC winning entries are kept in JSON files of the form:
author/author_handle.json
```
where _author_handle_ is an author handle.
where `author_handle` is an author handle.
See [FAQ 6.5](#author_handle_faq) for more information about author handles.
@@ -4114,6 +4115,128 @@ can hit ESC to do this) and then type the command:
where `4` is the value you wish to set the tabstop to.
<div id="faq6_15">
<div id="menus">
### FAQ 6.15 - How do the menus on the website work and what can I do if they don't work?
</div>
</div>
<div id="desktop_menu">
#### Menu on desktops or laptop computers
</div>
The way the menu works on desktops or laptops is that you should simply see the
menu directly without the need of JavaScript or any intervention on your part.
It should look something like:
<img src="png/ioccc-menu-desktop.png"
alt="screenshot of IOCCC menu on desktops"
width=912 height=160>
Simply move your mouse cursor over the category you want and then click on the
item you wish to view that drops down from the category.
This is likely how it will appear with a [tablet device in landscape
mode](faq.html#tablet_menu), too, unless [JavaScript is
disabled](faq.html#no_javascript_menu).
<div id="mobile_menus">
#### Mobile menus
</div>
If, however, you're on a mobile device, it can vary, depending on the dimensions
and whether or not you have JavaScript enabled.
<div id="mobile_phone_menu">
##### Menus on mobile phones
</div>
For instance, on an iPhone 14
Pro Max or similar device (in dimensions), you should see at the top right of
every page, something that looks like:
<img src="png/ioccc-menu-mobile-phone.png"
alt="screenshot of IOCCC menu on iPhone 14 Pro Max"
width=1290 height=527>
In this case click on the icon at the top right corner that looks like:
<img src="png/hamburger-icon-open.png"
alt="menu open icon"
width=24 height=24>
to activate the menu.
<div id="no_javascript_menu">
##### Menu on mobile devices if JavaScript is disabled
</div>
If JavaScript is disabled on any mobile device, tablet or phone, you should see
the words:
```
Please Enable JavaScript
```
at the top right corner; clicking on this will take you to the [no JavaScript
menu](nojs-menu.html) which is a plaintext menu. You of course can use this if
you like, even if you do not have JavaScript enabled, by pointing your browser
to <https://ioccc-src.github.io/temp-test-ioccc/nojs-menu.html>.
<div id="tablet_menu">
##### Menus on tablet devices (e.g. iPads)
</div>
With tablets, it likely depends on the orientation you have your device in. If it's
in portrait mode you likely will see the [menu that one will get on a mobile
phone](faq.html#mobile_phone_menu).
If, on the other hand, you are using landscape mode, say on an iPad Pro 11 inch
4th generation, then you will likely see the [menu as you would on a desktop or
laptop](faq.html#desktop_menu).
<div id="1024px_menu">
##### Menus on mobile devices wider than 1024 pixels
</div>
Finally, if you're on a mobile device that is wider than 1024 pixels, you will
very possibly have to **press and hold** the menu icon:
<img src="png/hamburger-icon-open.png"
alt="menu open icon"
width=24 height=24>
to activate it. You can then use it [as you would on a mobile
phone](faq.html#mobile_phone_menu).
<div id="browser_bug_menu">
##### Browsing the website on mobile devices with a browser bug
</div>
It was noticed that in iOS 16 Safari (both on an iPhone 8 Plus and in simulation
mode in macOS) the menu does not work at all. That is to say one might see:
<img src="png/ioccc-menu-browser-bug.png"
alt="browser bug where menu icon does not show up"
width=1242 height=531>
Notice how the menu icon is not even there! This happens in both portrait mode
and landscape mode.
In this case one will have to use the [no JavaScript
menu](faq.html#no_javascript_menu). If you have a fix for this that **does NOT
affect the usability of desktops, laptops or other mobile devices**, please
consider fixing it and [opening a pull request](faq.html#pull_request) or at
least [report it as an
issue](https://github.com/ioccc-src/temp-test-ioccc/issues/new/choose) (choose
the category _Website issue_).
<hr style="width:10%;text-align:left;margin-left:0">
Jump to: [top](#)
+3 -1
View File
@@ -405,7 +405,9 @@ then consider making pull requests against the <a href="https://github.com/ioccc
width=24 height=24></a> in the upper right corner, click on it to display the menu.</p>
<p>On a <strong>touchscreen mobile device</strong> browser <strong>wider than 1024 pixels</strong>,
<strong>press and hold</strong> the menu you wish to activate (in the upper right corner) in
order to activate the pull-down.</p>
order to activate the pull-down. If this does not work or you prefer to use a
plaintext menu even with JavaScript enabled, you can do so
<a href="nojs-menu.html">here</a>. See also the <a href="faq.html#menus">FAQ on menus</a>.</p>
<h1 id="obfuscate-defined">Obfuscate defined:</h1>
<p>tr.v. -cated, -cating, -cates.
<BR><BR>
+3 -1
View File
@@ -32,7 +32,9 @@ If you see this icon <a href="nojs-menu.html"> <img src="png/hamburger-icon-open
On a **touchscreen mobile device** browser **wider than 1024 pixels**,
**press and hold** the menu you wish to activate (in the upper right corner) in
order to activate the pull-down.
order to activate the pull-down. If this does not work or you prefer to use a
plaintext menu even with JavaScript enabled, you can do so
[here](nojs-menu.html). See also the [FAQ on menus](faq.html#menus).
# Obfuscate defined:
Binary file not shown.

After

Width:  |  Height:  |  Size: 70 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 41 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 71 KiB