diff --git a/examples/index.js b/examples/index.js index f6d2c2efde..1c0d754434 100644 --- a/examples/index.js +++ b/examples/index.js @@ -43,15 +43,15 @@ } }; words.forEach(function (word) { - const dict = info.index[word]; + const dict = info.wordIndex[word]; if (dict) { updateScores(dict, word); } else { const r = new RegExp(word); // eslint-disable-next-line prefer-const - for (let idx in info.index) { + for (let idx in info.wordIndex) { if (r.test(idx)) { - updateScores(info.index[idx], word); + updateScores(info.wordIndex[idx], word); } } } diff --git a/examples/resources/layout.css b/examples/resources/layout.css index 4913023f77..e81ce5c2a8 100644 --- a/examples/resources/layout.css +++ b/examples/resources/layout.css @@ -64,6 +64,35 @@ a:hover, a:focus, footer a:hover, footer a:focus { margin-top: 0; } +.badge-group { + display: inline-block; +} +.badge-group > .badge:not(:last-child) { + border-top-right-radius: 0; + border-bottom-right-radius: 0; +} +.badge-group > .badge:not(:first-child) { + border-top-left-radius: 0; + border-bottom-left-radius: 0; +} +.tag-modal-toggle { + cursor: pointer; +} +.modal-tag-example .modal-body { + padding: 0; +} +.modal-tag-example .list-group-item:focus, +.modal-tag-example .list-group-item:hover, +.modal-tag-example .list-group-item:active { + background-color: rgba(31, 107, 117, .6875); + border-color: #1F6B75; + color: white; +} +.modal-tag-example .list-group-item.active { + background-color: #1F6B75; + color: white; +} + #docs { margin-top: 1em; } diff --git a/examples/templates/example.html b/examples/templates/example.html index 29c3e7463d..5c25af781f 100644 --- a/examples/templates/example.html +++ b/examples/templates/example.html @@ -113,9 +113,36 @@

{{#each tags}} - {{.}} + + {{ ./tag }}{{ ./examples.length }} + {{/each}}

+ {{{ contents }}}
@@ -186,6 +213,16 @@ {{{ js.tag }}} +