Skip to content

Commit

Permalink
adds remaining some Misc Tools and cleanup status/completion data
Browse files Browse the repository at this point in the history
  • Loading branch information
digarok committed Sep 12, 2024
1 parent 677709f commit d92158e
Show file tree
Hide file tree
Showing 3 changed files with 138 additions and 41 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,5 @@ This repository contains information about the API calls of the Apple IIgs Toolb
The Toolbox is a set of (patchable) firmware calls you can make to do things like allocate memory, draw desktop UI controls, handle events, open files, and so much more.

In fact you can create your own toolset and release it as a new Tool, and this has recently been done with things like MOD music players and TCPIP libraries.

View the published reference here: [https://a2infinitum.github.io/appleiigs-toolbox](https://a2infinitum.github.io/appleiigs-toolbox) !!!
40 changes: 30 additions & 10 deletions toolbox-ref/apple-iigs-toolbox-website/layouts/_default/list.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,27 +5,24 @@
</head>
<script> function changeBg(color) { document.body.style.background = color; } </script>
<body>
<h1>Apple IIgs Toolbox Reference</h1>
Display Mode:
<button onclick="changeBg('#e5eaf5')">Freeze Purple</button>
<button onclick="changeBg('lightgrey')">Light Grey</button>
<button onclick="changeBg('#edf7f6')">Dusty White</button>
<button onclick="changeBg('white')">White</button>

<ul>
<li>Additional project information at: <a href="https://github.com/a2infinitum/appleiigs-toolbox">https://github.com/a2infinitum/appleiigs-toolbox</a> </li>
<li><em>Status:</em> {{ $tooldata.datastatus }}</li>
</ul>

{{ $toolcalls := $tooldata.toolcalls }}
{{ $errors := $tooldata.errors }}

<!-- I MADE A SUPER COMPLICATED TOC RENDERER BECAUSE I DON'T KNOW WHAT I'M DOING -->
<!-- Create an empty map to store unique values -->
{{ $uniqueTools := dict }}
{{ $uniqueToolCnt := 0 }}
{{ $documentedToolCnt := 0 }}

<!-- Iterate over toolcalls and store unique toolname and toolnum in the map -->
{{ range $toolcalls }}
{{ $uniqueToolCnt = add $uniqueToolCnt 1 }}
{{ if .docs }}
{{ $documentedToolCnt = add $documentedToolCnt 1 }}
{{ end }}

{{ $key := printf "%s-%s" .toolname .toolnum }}
{{ if not (index $uniqueTools $key) }}
{{ $uniqueTools = merge $uniqueTools (dict $key (dict "toolname" .toolname "toolnum" .toolnum)) }}
Expand All @@ -43,6 +40,29 @@ <h1>Apple IIgs Toolbox Reference</h1>
{{ $total := len $uniqueToolsSlice }}
{{ $midpoint := div (add $total 1) 2 }}


<h1>Apple IIgs Toolbox Reference</h1>

<h3>Documented Parameters Status: {{div (mul $documentedToolCnt 100) $uniqueToolCnt }}% ({{$documentedToolCnt}}/{{$uniqueToolCnt}}) </h3>
<ul>
<li>Additional project information at: <a href="https://github.com/a2infinitum/appleiigs-toolbox">https://github.com/a2infinitum/appleiigs-toolbox</a> </li>
<li><em>Status:</em></li>
{{ range $tooldata.datastatus }}
<ul><li>{{ . }}</li></ul>
{{ end }}

</ul>

Display Mode:
<button onclick="changeBg('#e5eaf5')">Freeze Purple</button>
<button onclick="changeBg('lightgrey')">Light Grey</button>
<button onclick="changeBg('#edf7f6')">Dusty White</button>
<button onclick="changeBg('white')">White</button>




<hr/>
<h2>Contents - By Tool Set </h2>

{{ $currentToolName := "" }}
Expand Down
Loading

0 comments on commit d92158e

Please sign in to comment.