Skip to content

Commit

Permalink
update list of resolved options
Browse files Browse the repository at this point in the history
  • Loading branch information
ryzokuken committed Aug 4, 2021
1 parent 8cb03b5 commit b941a11
Show file tree
Hide file tree
Showing 2 changed files with 157 additions and 37 deletions.
114 changes: 79 additions & 35 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -1024,37 +1024,6 @@
return (targetSec === 'index' ? './' : targetSec + '.html') + hash;
}
function doShortcut(e) {
if (!(e.target instanceof HTMLElement)) {
return;
}
let target = e.target;
let name = target.nodeName.toLowerCase();
if (name === 'textarea' || name === 'input' || name === 'select' || target.isContentEditable) {
return;
}
if (e.key === 'm' && !e.altKey && !e.ctrlKey && !e.metaKey && !e.shiftKey && usesMultipage) {
let pathParts = location.pathname.split('/');
let hash = location.hash;
if (pathParts[pathParts.length - 2] === 'multipage') {
if (hash === '') {
let sectionName = pathParts[pathParts.length - 1];
if (sectionName.endsWith('.html')) {
sectionName = sectionName.slice(0, -5);
}
if (idToSection['sec-' + sectionName] !== undefined) {
hash = '#sec-' + sectionName;
}
}
location = pathParts.slice(0, -2).join('/') + '/' + hash;
} else {
location = 'multipage/' + hash;
}
}
}
document.addEventListener('keypress', doShortcut);
document.addEventListener('DOMContentLoaded', () => {
Toolbox.init();
referencePane.init();
Expand Down Expand Up @@ -1092,8 +1061,7 @@
});
let sdoMap = JSON.parse(`{}`);
let biblio = JSON.parse(`{"refsByClause":{"sec-partitiondurationformatpattern":["_ref_0","_ref_1","_ref_5"],"sec-Intl.DurationFormat":["_ref_2","_ref_3","_ref_6","_ref_7","_ref_8","_ref_9","_ref_10","_ref_11","_ref_12","_ref_13","_ref_14","_ref_15","_ref_16","_ref_17"],"sec-Intl.DurationFormat.prototype.resolvedOptions":["_ref_4","_ref_31","_ref_32","_ref_33"],"sec-Intl.DurationFormat.prototype":["_ref_18"],"sec-Intl.DurationFormat.supportedLocalesOf":["_ref_19"],"sec-Intl.DurationFormat.prototype.constructor":["_ref_20"],"sec-Intl.DurationFormat.prototype.format":["_ref_21","_ref_22"],"sec-Intl.DurationFormat.prototype.formatToParts":["_ref_23","_ref_24","_ref_25","_ref_26","_ref_27","_ref_28","_ref_29","_ref_30"],"sec-properties-of-intl-durationformat-instances":["_ref_34"]},"entries":[{"type":"table","id":"table-duration-components","node":{},"number":1,"caption":"Table 1: Components of Duration Instances","referencingIds":["_ref_0","_ref_1","_ref_2","_ref_3"],"key":"Table 1: Components of Duration Instances"},{"type":"op","aoid":"PartitionDurationFormatPattern","refId":"sec-partitiondurationformatpattern","referencingIds":[],"key":"PartitionDurationFormatPattern"},{"type":"clause","id":"sec-partitiondurationformatpattern","aoid":"PartitionDurationFormatPattern","titleHTML":"PartitionDurationFormatPattern ( <var>durationFormat</var>, <var>duration</var> )","number":"1.1.1","referencingIds":["_ref_22","_ref_24"],"key":"PartitionDurationFormatPattern ( durationFormat, duration )"},{"type":"clause","id":"sec-intl-durationformat-abstracts","aoid":null,"titleHTML":"Abstract Operations for DurationFormat Objects","number":"1.1","referencingIds":[],"key":"Abstract Operations for DurationFormat Objects"},{"type":"term","term":"%DurationFormat%","refId":"sec-intl-durationformat-constructor","referencingIds":[],"key":"%DurationFormat%"},{"type":"clause","id":"sec-Intl.DurationFormat","aoid":null,"titleHTML":"Intl.DurationFormat ( [ <var>locales</var> [ , <var>options</var> ] ] )","number":"1.2.1","referencingIds":[],"key":"Intl.DurationFormat ( [ locales [ , options ] ] )"},{"type":"clause","id":"sec-intl-durationformat-constructor","aoid":null,"titleHTML":"The Intl.DurationFormat Constructor","number":"1.2","referencingIds":["_ref_5","_ref_9","_ref_10","_ref_11","_ref_19","_ref_20"],"key":"The Intl.DurationFormat Constructor"},{"type":"clause","id":"sec-Intl.DurationFormat.prototype","aoid":null,"titleHTML":"Intl.DurationFormat.prototype","number":"1.3.1","referencingIds":[],"key":"Intl.DurationFormat.prototype"},{"type":"clause","id":"sec-Intl.DurationFormat.supportedLocalesOf","aoid":null,"titleHTML":"Intl.DurationFormat.supportedLocalesOf ( <var>locales</var> [ , <var>options</var> ] )","number":"1.3.2","referencingIds":[],"key":"Intl.DurationFormat.supportedLocalesOf ( locales [ , options ] )"},{"type":"clause","id":"sec-Intl.DurationFormat-internal-slots","aoid":null,"titleHTML":"Internal slots","number":"1.3.3","referencingIds":[],"key":"Internal slots"},{"type":"clause","id":"sec-properties-of-intl-durationformat-constructor","aoid":null,"titleHTML":"Properties of the Intl.DurationFormat Constructor","number":"1.3","referencingIds":[],"key":"Properties of the Intl.DurationFormat Constructor"},{"type":"term","term":"%DurationFormatPrototype%","refId":"sec-properties-of-intl-durationformat-prototype-object","referencingIds":[],"key":"%DurationFormatPrototype%"},{"type":"clause","id":"sec-Intl.DurationFormat.prototype.constructor","aoid":null,"titleHTML":"Intl.DurationFormat.prototype.constructor","number":"1.4.1","referencingIds":[],"key":"Intl.DurationFormat.prototype.constructor"},{"type":"clause","id":"sec-Intl.DurationFormat.prototype-@@tostringtag","aoid":null,"titleHTML":"Intl.DurationFormat.prototype [ @@toStringTag ]","number":"1.4.2","referencingIds":[],"key":"Intl.DurationFormat.prototype [ @@toStringTag ]"},{"type":"clause","id":"sec-Intl.DurationFormat.prototype.format","aoid":null,"titleHTML":"Intl.DurationFormat.prototype.format ( <var>duration</var> )","number":"1.4.3","referencingIds":[],"key":"Intl.DurationFormat.prototype.format ( duration )"},{"type":"clause","id":"sec-Intl.DurationFormat.prototype.formatToParts","aoid":null,"titleHTML":"Intl.DurationFormat.prototype.formatToParts ( <var>duration</var> )","number":"1.4.4","referencingIds":[],"key":"Intl.DurationFormat.prototype.formatToParts ( duration )"},{"type":"table","id":"table-durationformat-resolvedoptions-properties","node":{},"number":2,"caption":"Table 2: Resolved Options of DurationFormat Instances","referencingIds":["_ref_4"],"key":"Table 2: Resolved Options of DurationFormat Instances"},{"type":"clause","id":"sec-Intl.DurationFormat.prototype.resolvedOptions","aoid":null,"titleHTML":"Intl.DurationFormat.prototype.resolvedOptions ( )","number":"1.4.5","referencingIds":[],"key":"Intl.DurationFormat.prototype.resolvedOptions ( )"},{"type":"clause","id":"sec-properties-of-intl-durationformat-prototype-object","aoid":null,"titleHTML":"Properties of the Intl.DurationFormat Prototype Object","number":"1.4","referencingIds":["_ref_18","_ref_34"],"key":"Properties of the Intl.DurationFormat Prototype Object"},{"type":"clause","id":"sec-properties-of-intl-durationformat-instances","aoid":null,"titleHTML":"Properties of Intl.DurationFormat Instances","number":"1.5","referencingIds":[],"key":"Properties of Intl.DurationFormat Instances"},{"type":"clause","id":"durationformat-objects","aoid":null,"titleHTML":"DurationFormat Objects","number":"1","referencingIds":[],"key":"DurationFormat Objects"},{"type":"clause","id":"sec-copyright-and-software-license","aoid":null,"titleHTML":"Copyright &amp; Software License","number":"A","referencingIds":[],"key":"Copyright & Software License"}]}`);
;let usesMultipage = false</script><style>body {
let biblio = JSON.parse(`{"refsByClause":{"sec-partitiondurationformatpattern":["_ref_0","_ref_1","_ref_5"],"sec-Intl.DurationFormat":["_ref_2","_ref_3","_ref_6","_ref_7","_ref_8","_ref_9","_ref_10","_ref_11","_ref_12","_ref_13","_ref_14","_ref_15","_ref_16","_ref_17"],"sec-Intl.DurationFormat.prototype.resolvedOptions":["_ref_4","_ref_31","_ref_32","_ref_33"],"sec-Intl.DurationFormat.prototype":["_ref_18"],"sec-Intl.DurationFormat.supportedLocalesOf":["_ref_19"],"sec-Intl.DurationFormat.prototype.constructor":["_ref_20"],"sec-Intl.DurationFormat.prototype.format":["_ref_21","_ref_22"],"sec-Intl.DurationFormat.prototype.formatToParts":["_ref_23","_ref_24","_ref_25","_ref_26","_ref_27","_ref_28","_ref_29","_ref_30"],"sec-properties-of-intl-durationformat-instances":["_ref_34"]},"entries":[{"type":"table","id":"table-duration-components","node":{},"number":1,"caption":"Table 1: Components of Duration Instances","referencingIds":["_ref_0","_ref_1","_ref_2","_ref_3"],"key":"Table 1: Components of Duration Instances"},{"type":"op","aoid":"PartitionDurationFormatPattern","refId":"sec-partitiondurationformatpattern","referencingIds":[],"key":"PartitionDurationFormatPattern"},{"type":"clause","id":"sec-partitiondurationformatpattern","aoid":"PartitionDurationFormatPattern","titleHTML":"PartitionDurationFormatPattern ( <var>durationFormat</var>, <var>duration</var> )","number":"1.1.1","referencingIds":["_ref_22","_ref_24"],"key":"PartitionDurationFormatPattern ( durationFormat, duration )"},{"type":"clause","id":"sec-intl-durationformat-abstracts","aoid":null,"titleHTML":"Abstract Operations for DurationFormat Objects","number":"1.1","referencingIds":[],"key":"Abstract Operations for DurationFormat Objects"},{"type":"term","term":"%DurationFormat%","refId":"sec-intl-durationformat-constructor","referencingIds":[],"key":"%DurationFormat%"},{"type":"clause","id":"sec-Intl.DurationFormat","aoid":null,"titleHTML":"Intl.DurationFormat ( [ <var>locales</var> [ , <var>options</var> ] ] )","number":"1.2.1","referencingIds":[],"key":"Intl.DurationFormat ( [ locales [ , options ] ] )"},{"type":"clause","id":"sec-intl-durationformat-constructor","aoid":null,"titleHTML":"The Intl.DurationFormat Constructor","number":"1.2","referencingIds":["_ref_5","_ref_9","_ref_10","_ref_11","_ref_19","_ref_20"],"key":"The Intl.DurationFormat Constructor"},{"type":"clause","id":"sec-Intl.DurationFormat.prototype","aoid":null,"titleHTML":"Intl.DurationFormat.prototype","number":"1.3.1","referencingIds":[],"key":"Intl.DurationFormat.prototype"},{"type":"clause","id":"sec-Intl.DurationFormat.supportedLocalesOf","aoid":null,"titleHTML":"Intl.DurationFormat.supportedLocalesOf ( <var>locales</var> [ , <var>options</var> ] )","number":"1.3.2","referencingIds":[],"key":"Intl.DurationFormat.supportedLocalesOf ( locales [ , options ] )"},{"type":"clause","id":"sec-Intl.DurationFormat-internal-slots","aoid":null,"titleHTML":"Internal slots","number":"1.3.3","referencingIds":[],"key":"Internal slots"},{"type":"clause","id":"sec-properties-of-intl-durationformat-constructor","aoid":null,"titleHTML":"Properties of the Intl.DurationFormat Constructor","number":"1.3","referencingIds":[],"key":"Properties of the Intl.DurationFormat Constructor"},{"type":"term","term":"%DurationFormatPrototype%","refId":"sec-properties-of-intl-durationformat-prototype-object","referencingIds":[],"key":"%DurationFormatPrototype%"},{"type":"clause","id":"sec-Intl.DurationFormat.prototype.constructor","aoid":null,"titleHTML":"Intl.DurationFormat.prototype.constructor","number":"1.4.1","referencingIds":[],"key":"Intl.DurationFormat.prototype.constructor"},{"type":"clause","id":"sec-Intl.DurationFormat.prototype-@@tostringtag","aoid":null,"titleHTML":"Intl.DurationFormat.prototype [ @@toStringTag ]","number":"1.4.2","referencingIds":[],"key":"Intl.DurationFormat.prototype [ @@toStringTag ]"},{"type":"clause","id":"sec-Intl.DurationFormat.prototype.format","aoid":null,"titleHTML":"Intl.DurationFormat.prototype.format ( <var>duration</var> )","number":"1.4.3","referencingIds":[],"key":"Intl.DurationFormat.prototype.format ( duration )"},{"type":"clause","id":"sec-Intl.DurationFormat.prototype.formatToParts","aoid":null,"titleHTML":"Intl.DurationFormat.prototype.formatToParts ( <var>duration</var> )","number":"1.4.4","referencingIds":[],"key":"Intl.DurationFormat.prototype.formatToParts ( duration )"},{"type":"table","id":"table-durationformat-resolvedoptions-properties","node":{},"number":2,"caption":"Table 2: Resolved Options of DurationFormat Instances","referencingIds":["_ref_4"],"key":"Table 2: Resolved Options of DurationFormat Instances"},{"type":"clause","id":"sec-Intl.DurationFormat.prototype.resolvedOptions","aoid":null,"titleHTML":"Intl.DurationFormat.prototype.resolvedOptions ( )","number":"1.4.5","referencingIds":[],"key":"Intl.DurationFormat.prototype.resolvedOptions ( )"},{"type":"clause","id":"sec-properties-of-intl-durationformat-prototype-object","aoid":null,"titleHTML":"Properties of the Intl.DurationFormat Prototype Object","number":"1.4","referencingIds":["_ref_18","_ref_34"],"key":"Properties of the Intl.DurationFormat Prototype Object"},{"type":"clause","id":"sec-properties-of-intl-durationformat-instances","aoid":null,"titleHTML":"Properties of Intl.DurationFormat Instances","number":"1.5","referencingIds":[],"key":"Properties of Intl.DurationFormat Instances"},{"type":"clause","id":"durationformat-objects","aoid":null,"titleHTML":"DurationFormat Objects","number":"1","referencingIds":[],"key":"DurationFormat Objects"},{"type":"clause","id":"sec-copyright-and-software-license","aoid":null,"titleHTML":"Copyright &amp; Software License","number":"A","referencingIds":[],"key":"Copyright & Software License"}]}`);</script><style>body {
display: flex;
font-size: 18px;
line-height: 1.5;
Expand Down Expand Up @@ -2427,8 +2395,84 @@ <h1><span class="secnum">1.4.5</span> Intl.DurationFormat.prototype.resolvedOpti
<td><code>"style"</code></td>
</tr>
<tr>
<td>[[Fields]]</td>
<td><code>"fields"</code></td>
<td>[[Years]]</td>
<td><code>"years"</code></td>
</tr>
<tr>
<td>[[YearsDisplay]]</td>
<td><code>"yearsDisplay"</code></td>
</tr>
<tr>
<td>[[Months]]</td>
<td><code>"months"</code></td>
</tr>
<tr>
<td>[[MonthsDisplay]]</td>
<td><code>"monthsDisplay"</code></td>
</tr>
<tr>
<td>[[Weeks]]</td>
<td><code>"weeks"</code></td>
</tr>
<tr>
<td>[[WeeksDisplay]]</td>
<td><code>"weeksDisplay"</code></td>
</tr>
<tr>
<td>[[Days]]</td>
<td><code>"days"</code></td>
</tr>
<tr>
<td>[[DaysDisplay]]</td>
<td><code>"daysDisplay"</code></td>
</tr>
<tr>
<td>[[Hours]]</td>
<td><code>"hours"</code></td>
</tr>
<tr>
<td>[[HoursDisplay]]</td>
<td><code>"hoursDisplay"</code></td>
</tr>
<tr>
<td>[[Minutes]]</td>
<td><code>"minutes"</code></td>
</tr>
<tr>
<td>[[MinutesDisplay]]</td>
<td><code>"minutesDisplay"</code></td>
</tr>
<tr>
<td>[[Seconds]]</td>
<td><code>"seconds"</code></td>
</tr>
<tr>
<td>[[SecondsDisplay]]</td>
<td><code>"secondsDisplay"</code></td>
</tr>
<tr>
<td>[[Milliseconds]]</td>
<td><code>"milliseconds"</code></td>
</tr>
<tr>
<td>[[MillisecondsDisplay]]</td>
<td><code>"millisecondsDisplay"</code></td>
</tr>
<tr>
<td>[[Microseconds]]</td>
<td><code>"microseconds"</code></td>
</tr>
<tr>
<td>[[MicrosecondsDisplay]]</td>
<td><code>"microsecondsDisplay"</code></td>
</tr>
<tr>
<td>[[Nanoseconds]]</td>
<td><code>"nanoseconds"</code></td>
</tr>
<tr>
<td>[[NanosecondsDisplay]]</td>
<td><code>"nanosecondsDisplay"</code></td>
</tr>
</tbody></table>
</figure></emu-table>
Expand Down
80 changes: 78 additions & 2 deletions spec.emu
Original file line number Diff line number Diff line change
Expand Up @@ -307,8 +307,84 @@ contributors: Ujjwal Sharma, Younies Mahmoud
<td>`"style"`</td>
</tr>
<tr>
<td>[[Fields]]</td>
<td>`"fields"`</td>
<td>[[Years]]</td>
<td>`"years"`</td>
</tr>
<tr>
<td>[[YearsDisplay]]</td>
<td>`"yearsDisplay"`</td>
</tr>
<tr>
<td>[[Months]]</td>
<td>`"months"`</td>
</tr>
<tr>
<td>[[MonthsDisplay]]</td>
<td>`"monthsDisplay"`</td>
</tr>
<tr>
<td>[[Weeks]]</td>
<td>`"weeks"`</td>
</tr>
<tr>
<td>[[WeeksDisplay]]</td>
<td>`"weeksDisplay"`</td>
</tr>
<tr>
<td>[[Days]]</td>
<td>`"days"`</td>
</tr>
<tr>
<td>[[DaysDisplay]]</td>
<td>`"daysDisplay"`</td>
</tr>
<tr>
<td>[[Hours]]</td>
<td>`"hours"`</td>
</tr>
<tr>
<td>[[HoursDisplay]]</td>
<td>`"hoursDisplay"`</td>
</tr>
<tr>
<td>[[Minutes]]</td>
<td>`"minutes"`</td>
</tr>
<tr>
<td>[[MinutesDisplay]]</td>
<td>`"minutesDisplay"`</td>
</tr>
<tr>
<td>[[Seconds]]</td>
<td>`"seconds"`</td>
</tr>
<tr>
<td>[[SecondsDisplay]]</td>
<td>`"secondsDisplay"`</td>
</tr>
<tr>
<td>[[Milliseconds]]</td>
<td>`"milliseconds"`</td>
</tr>
<tr>
<td>[[MillisecondsDisplay]]</td>
<td>`"millisecondsDisplay"`</td>
</tr>
<tr>
<td>[[Microseconds]]</td>
<td>`"microseconds"`</td>
</tr>
<tr>
<td>[[MicrosecondsDisplay]]</td>
<td>`"microsecondsDisplay"`</td>
</tr>
<tr>
<td>[[Nanoseconds]]</td>
<td>`"nanoseconds"`</td>
</tr>
<tr>
<td>[[NanosecondsDisplay]]</td>
<td>`"nanosecondsDisplay"`</td>
</tr>
</table>
</emu-table>
Expand Down

0 comments on commit b941a11

Please sign in to comment.