forked from CollectionBuilder/collectionbuilder-csv
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #4 from CollectionBuilder/mamgrinnell-pr
Mamgrinnell pr
- Loading branch information
Showing
22 changed files
with
108 additions
and
58 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,45 +1,46 @@ | ||
<!-- cb: _includes/transcript/item/filters.html --> | ||
<div class="row my-3 sticky-top bg-white border-bottom border-left border-right d-print-none py-3 w-md-75" id="filters-search" > | ||
<div class="col {% unless site.data.filters %}d-none{% endunless %}"> | ||
<select id="filters" title="Filter by Topic" aria-label="Topic filtering dropdown select option" class="filters py-1 form-select border border-primary" onchange="filterLines(this.value)"> | ||
<option value="all" class="reset" selected="selected reset">Filter by Topic</option> | ||
{% assign filters = site.data.filters %} | ||
{% for filter in filters %} | ||
{% assign tag = filter.tag | slugify %} | ||
{%if uniqueSubjects contains tag %}<option value="{{ tag }}">{{filter.description | capitalize}} | ||
({{filter.tag}})</option>{%endif%} | ||
{% endfor %} | ||
</select> | ||
</div> | ||
<div class="col"> | ||
<div id="transcriptsearch" class="bg-lightr"> | ||
<div class="row"> | ||
<div class="col-md-6"> | ||
<div class="input-group fs-5 mt-0 mt-md-0"> | ||
<input type="text" class="form-control border border-primary py-1" placeholder="Search..." aria-label="Search" | ||
aria-describedby="goButton" id="quicksearch"> | ||
<div class="input-group-append"> | ||
<button class=" rounded-right border border-primary btn btn-primary p-1" type="submit" | ||
title="Search" alt="Search" id="goButton" | ||
onclick="var searchval = document.getElementById('quicksearch').value; searchLines(searchval);">Go</button> | ||
</div> | ||
<div class="col {% unless site.data.filters %}d-none{% endunless %}"> | ||
<select id="filters" title="Filter by Topic" aria-label="Topic filtering dropdown select option" class="filters py-1 form-select border border-primary" onchange="filterLines(this.value)"> | ||
<option value="all" class="reset" selected="selected reset">Filter by Topic</option> | ||
{% assign filters = site.data.filters %} | ||
{% for filter in filters %} | ||
{% assign tag = filter.tag | slugify %} | ||
{%if uniqueSubjects contains tag %}<option value="{{ tag }}">{{filter.description | capitalize}} | ||
({{filter.tag}})</option>{%endif%} | ||
{% endfor %} | ||
</select> | ||
</div> | ||
<div class="col"> | ||
<div id="transcriptsearch" class="bg-lightr"> | ||
<div class="row"> | ||
<div class="col-md-6"> | ||
<div class="input-group fs-5 mt-0 mt-md-0"> | ||
<input type="text" class="form-control border border-primary py-1" placeholder="Search..." aria-label="Search" | ||
aria-describedby="goButton" id="quicksearch"> | ||
<div class="input-group-append"> | ||
<button class=" rounded-right border border-primary btn btn-primary p-1" type="submit" | ||
title="Search" alt="Search" id="goButton" | ||
onclick="var searchval = document.getElementById('quicksearch').value; searchLines(searchval);">Go</button> | ||
</div> | ||
</div> | ||
<div class="col-md-6"> | ||
<button class="reset btn btn-sm btn-primary input-group-text float-end float-md-none mt-2 mt-md-0" onclick="vizFilter('all');">Reset | ||
Filters</button> | ||
</div> | ||
</div> | ||
<div class="col-md-6"> | ||
<button class="reset btn btn-sm btn-primary input-group-text float-end float-md-none mt-2 mt-md-0" onclick="vizFilter('all');">Reset | ||
Filters</button> | ||
</div> | ||
</div> | ||
</div> | ||
<div id="filtersearch" class="col-12 d-none mt-3"> | ||
<h5 id="linecount" class="d-none small ms-3"><span id="numberof"></span></h5> | ||
</div> | ||
<div id="filtersearch" class="col-12 d-none mt-3"> | ||
<h5 id="linecount" class="d-none small ms-3"><span id="numberof"></span></h5> | ||
|
||
<select class="w-100 col-md-8 mb-2 form-select p-2 border border-primary" id="searchResults" onchange="scrollToLine(this.value);"> | ||
<select class="w-100 col-md-8 mb-2 form-select p-2 border border-primary" id="searchResults" onchange="scrollToLine(this.value);"> | ||
|
||
</select> | ||
</div> | ||
<div id="filter-tab" class="d-none filter-tab col-4 col-lg-2 text-center justify-content-end bg-primary text-white small px-1 py-1"> | ||
<span id="hide-filters-text">Hide Filters ▲</span> | ||
<span id="show-filters-text">Show Filters ▼</span> | ||
</div> | ||
</div> | ||
</select> | ||
</div> | ||
<div id="filter-tab" class="d-none filter-tab col-4 col-lg-2 text-center justify-content-end bg-primary text-white small px-1 py-1"> | ||
<span id="hide-filters-text">Hide Filters ▲</span> | ||
<span id="show-filters-text">Show Filters ▼</span> | ||
</div> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,11 @@ | ||
<!-- note that I (dcnb) got rid of most of the vimeo options as their api / player got more locked down. | ||
The below code is not used anywhere currently in OHD, but I kept it in there in case it became useful for someone. | ||
Previously, this is how I built the call to a vimeo video in the page: | ||
{% assign timestamp = item.timestamp | remove: '[' | remove: ']' %}https://player.vimeo.com/video/{{ vimeo_id }}#t={{timestamp | date: '%H'}}h{{timestamp | date: '%M'}}m{{timestamp | date: '%S'}}s" target="_blank | ||
But I deleted that timestamp include command when I got rid of the vimeo options more generally. | ||
--> | ||
<div class="ratio ratio-16x9"> | ||
<iframe title="video embed {{ page.title | escape }}" src="https://player.vimeo.com/video/{{ vimeo_id }}" allowfullscreen></iframe> | ||
</div> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
{% assign timestamp = item.timestamp | remove: '[' | remove: ']' | strip %}{%if timestamp.size == 7 or timestamp.size == 4 or timestamp.size == 1 %}{% assign timestamp = timestamp | prepend: "0" %}{% endif %}{%if timestamp.size == 5 %}{% assign timestamp = timestamp | prepend: "00:" %}{% endif %}{%if timestamp.size == 2 %}{% assign timestamp = timestamp | prepend: "00:00" %}{% endif %}{%capture hours_to_sec %}{{timestamp | date: '%H' | times: 3600 | default: 0 }}{% endcapture %}{%capture min_to_sec %}{{timestamp | date: '%M' | times: 60 | default: 0}}{% endcapture %}{%capture total_sec %}{{timestamp | date: '%S' | plus: min_to_sec | plus: hours_to_sec}}{% endcapture %} |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.