From aeea1440f0fd1aea8475657d8a937a01998b3416 Mon Sep 17 00:00:00 2001 From: Jeff Parsons Date: Sat, 2 Apr 2016 12:04:09 -0700 Subject: [PATCH] Added breadcrumbs, and UI for saving a local copy of a hard disk --- .gitattributes | 3 + _includes/breadcrumbs.html | 11 + _includes/header.html | 4 + _includes/page-scripts.html | 2 +- .../rev3/debugger/backtrack/machine.xml | 2 +- .../5170/ega/1152kb/rev3/debugger/machine.xml | 2 +- .../machine/5170/ega/1152kb/rev3/machine.xml | 2 +- .../rev3/debugger/backtrack/machine.xml | 2 +- .../5170/ega/2048kb/rev3/debugger/machine.xml | 2 +- .../machine/5170/ega/2048kb/rev3/machine.xml | 2 +- .../5170/vga/2048kb/debugger/machine.xml | 2 +- .../pc/machine/5170/vga/2048kb/machine.xml | 2 +- .../5170/vga/4096kb/debugger/machine.xml | 2 +- .../pc/machine/5170/vga/4096kb/machine.xml | 2 +- .../ega/2048kb/debugger/machine.xml | 2 +- .../compaq/deskpro386/ega/2048kb/machine.xml | 2 +- .../ega/4096kb/debugger/machine.xml | 2 +- .../compaq/deskpro386/ega/4096kb/machine.xml | 2 +- .../vga/2048kb/debugger/machine.xml | 2 +- .../compaq/deskpro386/vga/2048kb/machine.xml | 2 +- .../vga/4096kb/debugger/machine.xml | 2 +- .../compaq/deskpro386/vga/4096kb/machine.xml | 2 +- devices/pc/rom/README.md | 2 +- disks/pc/fixed/20mb/pcdos330-empty.xml | 4 + docs/pcjs/examples/pc-dbg.js | 669 ++++++++--------- docs/pcjs/examples/pc.js | 511 ++++++------- modules/pcjs/lib/fdc.js | 25 +- modules/pcjs/lib/hdc.js | 37 +- versions/c1pjs/1.21.5/c1p-dbg.js | 4 +- versions/c1pjs/1.21.5/c1p.js | 4 +- versions/pcjs/1.21.5/pc-dbg.js | 703 +++++++++--------- versions/pcjs/1.21.5/pc.js | 545 +++++++------- 32 files changed, 1311 insertions(+), 1249 deletions(-) create mode 100644 .gitattributes create mode 100644 _includes/breadcrumbs.html create mode 100644 disks/pc/fixed/20mb/pcdos330-empty.xml diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 000000000..db597ddb7 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,3 @@ +versions/c1pjs/* linguist-vendored +versions/pcjs/* linguist-vendored +_includes/google-analytics.html merge=ours diff --git a/_includes/breadcrumbs.html b/_includes/breadcrumbs.html new file mode 100644 index 000000000..522446d67 --- /dev/null +++ b/_includes/breadcrumbs.html @@ -0,0 +1,11 @@ +{% capture page_url_without_index_html %}{{ page.url | remove: "/index.html" | remove: "/404.html" }}{% endcapture %} +{% assign splitted_url_parts = page_url_without_index_html | split: '/' %} +{% capture forLoopMaxInt %}{{ splitted_url_parts.size | minus:1 }}{% endcapture %} +{% for i in (1..forLoopMaxInt) %} + {% capture url %}{{ url }}{{ splitted_url_parts[i] }}/{% endcapture %} + {% capture path %}{{ path }}\{{ splitted_url_parts[i] | upcase }}{% endcapture %} + {% if splitted_url_parts[i] == "blog" %} + {% break %} + {% endif %} +{% endfor %} +

Directory of C:\PCJS.ORG{{ path }}

diff --git a/_includes/header.html b/_includes/header.html index 7658aa0e8..78e86eeec 100644 --- a/_includes/header.html +++ b/_includes/header.html @@ -24,5 +24,9 @@ + +
+ {% include breadcrumbs.html %} +
diff --git a/_includes/page-scripts.html b/_includes/page-scripts.html index a0043cb24..e6d675b08 100644 --- a/_includes/page-scripts.html +++ b/_includes/page-scripts.html @@ -1,6 +1,6 @@ {% comment %} -Used by pages like the one in /api/v1/dump/ to implement a client-side API. +Used by pages like the one in /api/v1/dump/ to simulate a client-side API. {% endcomment %} {% for script in page.scripts %} diff --git a/devices/pc/machine/5170/ega/1152kb/rev3/debugger/backtrack/machine.xml b/devices/pc/machine/5170/ega/1152kb/rev3/debugger/backtrack/machine.xml index f3f0f23a9..47d58561e 100644 --- a/devices/pc/machine/5170/ega/1152kb/rev3/debugger/backtrack/machine.xml +++ b/devices/pc/machine/5170/ega/1152kb/rev3/debugger/backtrack/machine.xml @@ -12,7 +12,7 @@ - + diff --git a/devices/pc/machine/5170/ega/1152kb/rev3/debugger/machine.xml b/devices/pc/machine/5170/ega/1152kb/rev3/debugger/machine.xml index 73911ea25..4da644b1c 100644 --- a/devices/pc/machine/5170/ega/1152kb/rev3/debugger/machine.xml +++ b/devices/pc/machine/5170/ega/1152kb/rev3/debugger/machine.xml @@ -12,7 +12,7 @@ - + diff --git a/devices/pc/machine/5170/ega/1152kb/rev3/machine.xml b/devices/pc/machine/5170/ega/1152kb/rev3/machine.xml index 2c5110f26..5dc39dc11 100644 --- a/devices/pc/machine/5170/ega/1152kb/rev3/machine.xml +++ b/devices/pc/machine/5170/ega/1152kb/rev3/machine.xml @@ -14,7 +14,7 @@ Reset Speed - + diff --git a/devices/pc/machine/5170/ega/2048kb/rev3/debugger/backtrack/machine.xml b/devices/pc/machine/5170/ega/2048kb/rev3/debugger/backtrack/machine.xml index baf95b0f8..8683a5c6c 100644 --- a/devices/pc/machine/5170/ega/2048kb/rev3/debugger/backtrack/machine.xml +++ b/devices/pc/machine/5170/ega/2048kb/rev3/debugger/backtrack/machine.xml @@ -12,7 +12,7 @@ - + diff --git a/devices/pc/machine/5170/ega/2048kb/rev3/debugger/machine.xml b/devices/pc/machine/5170/ega/2048kb/rev3/debugger/machine.xml index 50f9ce946..a7d6afb8a 100644 --- a/devices/pc/machine/5170/ega/2048kb/rev3/debugger/machine.xml +++ b/devices/pc/machine/5170/ega/2048kb/rev3/debugger/machine.xml @@ -12,7 +12,7 @@ - + diff --git a/devices/pc/machine/5170/ega/2048kb/rev3/machine.xml b/devices/pc/machine/5170/ega/2048kb/rev3/machine.xml index d7ae86acb..0a19cfbc0 100644 --- a/devices/pc/machine/5170/ega/2048kb/rev3/machine.xml +++ b/devices/pc/machine/5170/ega/2048kb/rev3/machine.xml @@ -10,7 +10,7 @@