diff --git a/.gitignore b/.gitignore index 1bbc9cb4..d96e5ac5 100644 --- a/.gitignore +++ b/.gitignore @@ -82,6 +82,8 @@ web/app/plugins/* !web/app/plugins/mitlib-post-events !web/app/plugins/mitlib-post-exhibits !web/app/plugins/mitlib-post-experts +!web/app/plugins/mitlib-post-interviewees +!web/app/plugins/mitlib-post-interviews !web/app/plugins/mitlib-post-locations !web/app/plugins/mitlib-post-site-news !web/app/plugins/mitlib-post-site-parent diff --git a/composer.json b/composer.json index f66b4cc2..bf397546 100644 --- a/composer.json +++ b/composer.json @@ -130,7 +130,6 @@ "wpackagist-plugin/redirection": "^5.3", "wpackagist-plugin/seamless-sticky-custom-post-types": "^1.4", "wpackagist-plugin/shortcode-variables": "^4.0", - "wpackagist-plugin/tablepress": "^1.14", "wpackagist-plugin/tinymce-advanced": "^5.6", "wpackagist-plugin/ultimate-posts-widget": "^2.2", "wpackagist-plugin/what-the-file": "^1.6", diff --git a/composer.lock b/composer.lock index cdcfb728..abb22d8d 100644 --- a/composer.lock +++ b/composer.lock @@ -4,7 +4,7 @@ "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies", "This file is @generated automatically" ], - "content-hash": "4de2d0be2427176ba20931cd2595f92f", + "content-hash": "bcde7db1616f5eef151f241c0b1f6d65", "packages": [ { "name": "ConnectThink/WP-SCSS", @@ -3150,24 +3150,6 @@ "type": "wordpress-plugin", "homepage": "https://wordpress.org/plugins/shortcode-variables/" }, - { - "name": "wpackagist-plugin/tablepress", - "version": "1.14", - "source": { - "type": "svn", - "url": "https://plugins.svn.wordpress.org/tablepress/", - "reference": "tags/1.14" - }, - "dist": { - "type": "zip", - "url": "https://downloads.wordpress.org/plugin/tablepress.1.14.zip" - }, - "require": { - "composer/installers": "^1.0 || ^2.0" - }, - "type": "wordpress-plugin", - "homepage": "https://wordpress.org/plugins/tablepress/" - }, { "name": "wpackagist-plugin/tinymce-advanced", "version": "5.6.0", diff --git a/phpcs.xml b/phpcs.xml index c0f1e42b..5b9bea47 100644 --- a/phpcs.xml +++ b/phpcs.xml @@ -77,7 +77,6 @@ web/app/plugins/seamless-sticky-custom-post-types web/app/plugins/shortcode-variables web/app/plugins/slideshow-gallery - web/app/plugins/tablepress web/app/plugins/tinymce-advanced web/app/plugins/types web/app/plugins/ultimate-posts-widget diff --git a/web/app/mu-plugins/mitlib-post/data/interview/group_643050c28b8ca.json b/web/app/mu-plugins/mitlib-post/data/interview/group_643050c28b8ca.json new file mode 100644 index 00000000..ee2db08d --- /dev/null +++ b/web/app/mu-plugins/mitlib-post/data/interview/group_643050c28b8ca.json @@ -0,0 +1,218 @@ +{ + "key": "group_643050c28b8ca", + "title": "Interview", + "fields": [ + { + "key": "field_6435b30eba933", + "label": "Interviewee", + "name": "interviewee", + "type": "relationship", + "instructions": "", + "required": 0, + "conditional_logic": 0, + "wrapper": { + "width": "", + "class": "", + "id": "" + }, + "post_type": [ + "interviewee" + ], + "taxonomy": "", + "filters": [ + "search", + "post_type", + "taxonomy" + ], + "elements": "", + "min": "", + "max": "", + "return_format": "object" + }, + { + "key": "field_643050f9aeb4e", + "label": "Audio (MP3)", + "name": "audio", + "type": "url", + "instructions": "The audio file in MP3 format.", + "required": 0, + "conditional_logic": 0, + "wrapper": { + "width": "", + "class": "", + "id": "" + }, + "default_value": "", + "placeholder": "" + }, + { + "key": "field_6430519832e29", + "label": "Transcript (PDF)", + "name": "transcript", + "type": "file", + "instructions": "The transcript of the audio file in PDF format.", + "required": 0, + "conditional_logic": 0, + "wrapper": { + "width": "", + "class": "", + "id": "" + }, + "return_format": "url", + "library": "all", + "min_size": "", + "max_size": "", + "mime_types": "pdf" + }, + { + "key": "field_643051ccc7d85", + "label": "CD available in library", + "name": "cd", + "type": "text", + "instructions": "Lets the user know that the CD is available in the MIT Libraries.", + "required": 0, + "conditional_logic": 0, + "wrapper": { + "width": "", + "class": "", + "id": "" + }, + "default_value": "", + "placeholder": "", + "prepend": "", + "append": "", + "maxlength": "" + }, + { + "key": "field_643051e4c7d86", + "label": "Print transcript available in library", + "name": "print", + "type": "text", + "instructions": "Lets the user know the transcript is available in the MIT Libraries.", + "required": 0, + "conditional_logic": 0, + "wrapper": { + "width": "", + "class": "", + "id": "" + }, + "default_value": "", + "placeholder": "", + "prepend": "", + "append": "", + "maxlength": "" + }, + { + "key": "field_64308ffa709e9", + "label": "YouTube Video ID", + "name": "youtube-id", + "type": "text", + "instructions": "The ID of the YouTube video to be used", + "required": 0, + "conditional_logic": 0, + "wrapper": { + "width": "", + "class": "", + "id": "" + }, + "default_value": "", + "placeholder": "", + "prepend": "", + "append": "", + "maxlength": "" + }, + { + "key": "field_64309010709ea", + "label": "3Play Transcript ID", + "name": "3play-id", + "type": "text", + "instructions": "The ID of the 3Play transcript that matches the video", + "required": 0, + "conditional_logic": 0, + "wrapper": { + "width": "", + "class": "", + "id": "" + }, + "default_value": "", + "placeholder": "", + "prepend": "", + "append": "", + "maxlength": "" + }, + { + "key": "field_64309034709eb", + "label": "Interview chapters", + "name": "chapters", + "type": "repeater", + "instructions": "", + "required": 0, + "conditional_logic": 0, + "wrapper": { + "width": "", + "class": "", + "id": "" + }, + "collapsed": "", + "min": 0, + "max": 0, + "layout": "table", + "button_label": "", + "sub_fields": [ + { + "key": "field_64309266beaba", + "label": "Chapter", + "name": "chapter", + "type": "text", + "instructions": "", + "required": 1, + "conditional_logic": 0, + "wrapper": { + "width": "", + "class": "", + "id": "" + }, + "default_value": "", + "placeholder": "", + "prepend": "", + "append": "", + "maxlength": "" + }, + { + "key": "field_643092abbeabb", + "label": "Time", + "name": "time", + "type": "time_picker", + "instructions": "", + "required": 0, + "conditional_logic": 0, + "wrapper": { + "width": "", + "class": "", + "id": "" + }, + "display_format": "g:i:s", + "return_format": "g:i:s" + } + ] + } + ], + "location": [ + [ + { + "param": "post_type", + "operator": "==", + "value": "interview" + } + ] + ], + "menu_order": 0, + "position": "normal", + "style": "default", + "label_placement": "top", + "instruction_placement": "label", + "hide_on_screen": "", + "active": true, + "description": "", + "show_in_rest": 0 +} diff --git a/web/app/mu-plugins/mitlib-post/data/interviewee/group_643063071d212.json b/web/app/mu-plugins/mitlib-post/data/interviewee/group_643063071d212.json new file mode 100644 index 00000000..391b521c --- /dev/null +++ b/web/app/mu-plugins/mitlib-post/data/interviewee/group_643063071d212.json @@ -0,0 +1,81 @@ +{ + "key": "group_643063071d212", + "title": "Interviewee", + "fields": [ + { + "key": "field_6430633a34d39", + "label": "Last Name", + "name": "sort-name", + "type": "text", + "instructions": "Put the last name of the Interviewee here. This enables the Index of Interviewees to be sorted by last name.", + "required": 1, + "conditional_logic": 0, + "wrapper": { + "width": "", + "class": "", + "id": "" + }, + "default_value": "", + "placeholder": "", + "prepend": "", + "append": "", + "maxlength": "" + }, + { + "key": "field_6430635234d3a", + "label": "MIT Affiliation", + "name": "mit-affiliation", + "type": "text", + "instructions": "e.g. Professor of Communications, 1947-1960", + "required": 0, + "conditional_logic": 0, + "wrapper": { + "width": "", + "class": "", + "id": "" + }, + "default_value": "", + "placeholder": "", + "prepend": "", + "append": "", + "maxlength": "" + }, + { + "key": "field_6430637134d3b", + "label": "Music\/Professional Work", + "name": "music-professional-work", + "type": "text", + "instructions": "e.g. Drummer", + "required": 0, + "conditional_logic": 0, + "wrapper": { + "width": "", + "class": "", + "id": "" + }, + "default_value": "", + "placeholder": "", + "prepend": "", + "append": "", + "maxlength": "" + } + ], + "location": [ + [ + { + "param": "post_type", + "operator": "==", + "value": "interviewee" + } + ] + ], + "menu_order": 0, + "position": "normal", + "style": "default", + "label_placement": "top", + "instruction_placement": "label", + "hide_on_screen": "", + "active": true, + "description": "", + "show_in_rest": 0 +} diff --git a/web/app/plugins/mitlib-post-interviewees/README.md b/web/app/plugins/mitlib-post-interviewees/README.md new file mode 100644 index 00000000..883ada24 --- /dev/null +++ b/web/app/plugins/mitlib-post-interviewees/README.md @@ -0,0 +1,12 @@ +# MITlib Post Interviewees + +This defines an Interviewee custom post type, extending the Base class provided +by Mitlib Post. The original content type was defined via CPT-onomies, with the +fields defined using Toolset Types. This setup was then migrated to Mitlib Post +and ACF in 2023. + +The Interviewee post type is referenced by the Interview post type, and also +includes a few controlled vocabularies to group Interviewee records. + +The fields for this post type are defined in a JSON file that can be found in +the Mitlib Post data folder. diff --git a/web/app/plugins/mitlib-post-interviewees/mitlib-post-interviewees.php b/web/app/plugins/mitlib-post-interviewees/mitlib-post-interviewees.php new file mode 100644 index 00000000..c1c73c57 --- /dev/null +++ b/web/app/plugins/mitlib-post-interviewees/mitlib-post-interviewees.php @@ -0,0 +1,26 @@ + __( 'Interviewees', 'custom-post-type-ui' ), + 'singular_name' => __( 'Interviewee', 'custom-post-type-ui' ), + ); + + $args = array( + 'label' => __( 'Interviewees', 'custom-post-type-ui' ), + 'labels' => $labels, + 'description' => '', + 'public' => true, + 'publicly_queryable' => false, + 'show_ui' => true, + 'show_in_rest' => false, + 'rest_base' => '', + 'rest_controller_class' => 'WP_REST_Posts_Controller', + 'rest_namespace' => 'wp/v2', + 'has_archive' => false, + 'show_in_menu' => true, + 'show_in_nav_menus' => true, + 'delete_with_user' => false, + 'exclude_from_search' => false, + 'capability_type' => 'post', + 'menu_icon' => 'dashicons-admin-users', + 'map_meta_cap' => true, + 'hierarchical' => false, + 'can_export' => true, + 'rewrite' => true, + 'query_var' => true, + 'supports' => array( 'title', 'editor', 'custom-fields', 'revisions', 'thumbnail' ), + 'taxonomies' => array( 'category', 'post_tag' ), + 'show_in_graphql' => false, + ); + + register_post_type( 'interviewee', $args ); + } +} diff --git a/web/app/plugins/mitlib-post-interviews/README.md b/web/app/plugins/mitlib-post-interviews/README.md new file mode 100644 index 00000000..5a65c211 --- /dev/null +++ b/web/app/plugins/mitlib-post-interviews/README.md @@ -0,0 +1,11 @@ +# MITlib Post Interviews + +This defines an Interview custom post type, extending the Base class provided by +Mitlib Post. The content type was defined initially using the CPT-onomies +plugin, with the fields created using Toolset Types. This setup was subsequently +migrated to Mitlib Post and ACF in 2023. + +The Interview post type includes a relationship to the Interviewee post type. + +The fields for this post type are defined in a JSON file that can be found in +the Mitlib Post data folder. diff --git a/web/app/plugins/mitlib-post-interviews/mitlib-post-interviews.php b/web/app/plugins/mitlib-post-interviews/mitlib-post-interviews.php new file mode 100644 index 00000000..fa690d94 --- /dev/null +++ b/web/app/plugins/mitlib-post-interviews/mitlib-post-interviews.php @@ -0,0 +1,26 @@ + __( 'Interviews', 'custom-post-type-ui' ), + 'singular_name' => __( 'Interview', 'custom-post-type-ui' ), + ); + + $args = array( + 'label' => __( 'Interviews', 'custom-post-type-ui' ), + 'labels' => $labels, + 'description' => '', + 'public' => true, + 'publicly_queryable' => true, + 'show_ui' => true, + 'show_in_rest' => false, + 'rest_base' => '', + 'rest_controller_class' => 'WP_REST_Posts_Controller', + 'rest_namespace' => 'wp/v2', + 'has_archive' => false, + 'show_in_menu' => true, + 'show_in_nav_menus' => true, + 'delete_with_user' => false, + 'exclude_from_search' => false, + 'capability_type' => 'post', + 'menu_icon' => 'dashicons-format-chat', + 'map_meta_cap' => true, + 'hierarchical' => false, + 'can_export' => true, + 'rewrite' => true, + 'query_var' => true, + 'supports' => array( 'title', 'custom-fields', 'revisions' ), + 'show_in_graphql' => false, + ); + + register_post_type( 'interview', $args ); + } +} diff --git a/web/app/themes/mitlib-child/single-interview.php b/web/app/themes/mitlib-child/single-interview.php new file mode 100644 index 00000000..bbc61440 --- /dev/null +++ b/web/app/themes/mitlib-child/single-interview.php @@ -0,0 +1,87 @@ + + +
+ + + +
+

+
+ +
+ +
+ + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
FieldValue
Audio
Transcript
CD
Print
YouTube
3Play
Chapters
+ +
+ + + +
+ +
+ +
+ + diff --git a/web/app/themes/mitlib-moh/css/build b/web/app/themes/mitlib-moh/css/build deleted file mode 120000 index 834eaf62..00000000 --- a/web/app/themes/mitlib-moh/css/build +++ /dev/null @@ -1 +0,0 @@ -../../../uploads/wp-scss/mitlib-moh-build \ No newline at end of file diff --git a/web/app/themes/mitlib-moh/css/cache b/web/app/themes/mitlib-moh/css/cache deleted file mode 120000 index dda633ec..00000000 --- a/web/app/themes/mitlib-moh/css/cache +++ /dev/null @@ -1 +0,0 @@ -../../../uploads/wp-scss/mitlib-moh-cache \ No newline at end of file diff --git a/web/app/themes/mitlib-moh/css/scss/_homepage.scss b/web/app/themes/mitlib-moh/css/scss/_homepage.scss deleted file mode 100644 index fb9c42c3..00000000 --- a/web/app/themes/mitlib-moh/css/scss/_homepage.scss +++ /dev/null @@ -1,25 +0,0 @@ -.page-template-page-moh-home-php .entry-content h2, -.page-template-page-moh-search-php .entry-content h2 { - line-height: 1.5; -} - -.page-template-page-moh-home-php .entry-content h3 { - line-height: 1.4; -} - -.page-template-page-moh-home-php .entry-content h3.heading { - margin: 8px 0 0; -} - -.page-template-page-moh-home-php .entry-content h3.heading i { - position: relative; top: 1px; -} - -.page-template-page-moh-home-php .entry-content h3.heading, -.page-template-page-moh-home-php .entry-content h3.heading a { - color: #424286; -} - -.page-template-page-moh-home-php .entry-content p:last-child { margin: 0; } - -.page-template-page-moh-home-php .caption { text-align: center; } \ No newline at end of file diff --git a/web/app/themes/mitlib-moh/css/scss/_interviews.scss b/web/app/themes/mitlib-moh/css/scss/_interviews.scss deleted file mode 100644 index 0fffbaa5..00000000 --- a/web/app/themes/mitlib-moh/css/scss/_interviews.scss +++ /dev/null @@ -1,294 +0,0 @@ -$segmentResult: #52b5e3; - -.playerWrap { - border: 1px solid #ccc; - margin: 0 auto; - max-width: 866px; - .p3-playlist-container { - .p3-playlist-suggested-results { - display: none; - } - } - .no-result { - display: none; - } - .p3-playlist-progress-summary { - line-height: 15px; /* Magic number, watch out */ - } -} - -.single-interviews { - .flexItem { - width: 50%; - padding: 0 2em; - } - .info-meta { - margin-bottom: $margin-bottom; - padding: 0 0 0 $margin-bottom; - .inline { - clear: left; - float: left; - &:first-of-type { - padding-top: 1em; - } - } - } - .expandable { - margin-bottom: $margin-bottom; - .heading { - margin: 0; - padding: 0; - } - } - .playerWrap { - border: none; - border-right: 1px solid #ccc; - } - .transcript { - clear: left; - } - - .wrap-interviewcontents .column-1 { - display: none; - } -} - -#collection, -#video, -#transcript, -iframe { - background: $loading; - max-width: 100%; -} - -#collection { - float: left; - width: 432px; -} - -#collection .mitlib input { - box-shadow: none; - transition: none; -} - -#collection input[type="text"]:focus { - border: none; - box-shadow: none; - outline: none; -} - -.mitlib .p3-playlist-searchterm { - background: #fff; - border: none; - border-radius: 0; - margin: 0; - min-height: 2em; -} - -.mitlib .p3-playlist-submit-search { - margin-left: 0; -} - -.mitlib .p3-playlist-results { - border-top: 1px solid #ccc; -} - -.mitlib ul.p3-playlist-ul li { - padding-bottom: 0; -} - -#collection .mitlib ul.p3-playlist-ul li:first-of-type { - border-top: none; -} - -#collection .p3-playlist-container.minimal.mitlib ul.p3-playlist-ul li:last-of-type { - border-bottom: none; -} - -#transcript, -#video { - float: left; - max-height: 200px; - width: 432px; -} - -#transcript { - height: 182px; -} - -.mitlib.p3-transcript-container .p3-timeline { - background: #ccc; -} - -.p3-transcript-container { - .p3-timeline { - span { - background: $segmentResult; - border-right: 1px solid $segmentResult; - border-left: 1px solid $segmentResult; - display: inline-block; - padding: 0 1px; - width: 5px; - } - } - .p3-transcript-search-inputs { - .p3-transcript-search-reset { - left: 184px; - } - } -} - -.mitlib .p3-transcript-main { - background: #f5f5f5; - box-shadow: inset 0 6px 6px -6px #ccc, - inset 0 -6px 6px -6px #ccc; -} - -#video iframe { - min-height: 200px; - width: 100%; -} - -.p3-playlist-container.minimal.mitlib { - border-right: none; - margin-left: 0; - background: none; -} -.p3-playlist-container.minimal.mitlib .p3-playlist-topbar { - background: none; - border: none; - margin-bottom: 0; -} -.p3-playlist-container.minimal.mitlib .p3-playlist-search-form { - background: #fff; - border: none; -} -.p3-playlist-container.minimal.mitlib .p3-playlist-suggested-results { - background-color: #fff; - border-right: none; - background-image: url("//p3.3playmedia.com/images/playlist/drop_up_444.png"); -} -.p3-playlist-container.minimal.mitlib .p3-playlist-suggested-results.drop_up { - background-image: url("//p3.3playmedia.com/images/playlist/drop_down_444.png"); -} -.p3-playlist-container.minimal.mitlib .p3-playlist-searchterm { - background: #fff; - color: #333; -} -.p3-playlist-container.minimal.mitlib .p3-playlist-search-reset { - background: url("//p3.3playmedia.com/images/playlist/close_444.png") center center no-repeat; -} -.p3-playlist-container.minimal.mitlib .p3-playlist-submit-search { - border-left: none; - border-right: none; - color: #333; - background: url("//p3.3playmedia.com/images/playlist/search_444.png") center center no-repeat; -} -.p3-playlist-container.minimal.mitlib .p3-playlist-submit-search:hover { - background-color: #f8f8f8; -} -.p3-playlist-container.minimal.mitlib .p3-playlist-suggested-search-terms { - color: #333; - background: none; - border-bottom: none; - border-right: none; -} -.p3-playlist-container.minimal.mitlib .p3-playlist-suggested-search-terms a { - color: #888; -} -.p3-playlist-container.minimal.mitlib .p3-playlist-suggested-search-terms a:hover { - color: #aaa; -} -.p3-playlist-container.minimal.mitlib .p3-playlist-bottombar { - background: none; - border: none; - border-top: 1px solid #ccc; - margin-top: 5px; -} -.p3-playlist-container.minimal.mitlib .p3-playlist-bottombar .video-control { -} -.p3-playlist-container.minimal.mitlib .p3-playlist-bottombar .p3-playlist-progress-summary { - color: #666; -} -.p3-playlist-container.minimal.mitlib .p3-playlist-bottombar .p3-playlist-next-video { - background: url("//p3.3playmedia.com/images/playlist/next_444.png") center center no-repeat; -} -.p3-playlist-container.minimal.mitlib .p3-playlist-bottombar .p3-playlist-prev-video { - background: url("//p3.3playmedia.com/images/playlist/prev_444.png") center center no-repeat; -} -.p3-playlist-container.minimal.mitlib .p3-playlist-results { - background: #f5f5f5; - border-right: none; - border-left: none; -} -.p3-playlist-container.minimal.mitlib p.no-results { - color: red; -} -.p3-playlist-container.minimal.mitlib ul.p3-playlist-ul { - border-top: none; -} -.p3-playlist-container.minimal.mitlib ul.p3-playlist-ul li { - background: #f5f5f5; - border-top: none; - border-bottom: 1px solid #ccc; -} -.p3-playlist-container.minimal.mitlib ul.p3-playlist-ul li:hover { - background: #f5f5f5; -} -.p3-playlist-container.minimal.mitlib ul.p3-playlist-ul li span.p3-playlist-video-info p.p3-playlist-video-title { - color: #333; - text-shadow: 0 0 0 #fff; -} -.p3-playlist-container.minimal.mitlib ul.p3-playlist-ul li span.p3-playlist-video-info p.p3-playlist-meta-field-one { - color: #999; - text-shadow: 0 0 0 #fff; -} -.p3-playlist-container.minimal.mitlib ul.p3-playlist-ul li.p3-playlist-currently-loading { - border-bottom: 1px solid #ccc; - background: #fff; -} -.p3-playlist-container.minimal.mitlib ul.p3-playlist-ul li.p3-playlist-currently-loading span.p3-playlist-play-button { - background-image: url("//p3.3playmedia.com/images/playlist/loading_white.gif"); -} -.p3-playlist-container.minimal.mitlib ul.p3-playlist-ul li.p3-playlist-currently-loading:hover span.p3-playlist-play-button { - background-image: url("//p3.3playmedia.com/images/playlist/loading_white.gif"); -} -.p3-playlist-container.minimal.mitlib ul.p3-playlist-ul li.p3-playlist-currently-playing { - border-top: 1px solid #fff; - border-bottom: 1px solid #ccc; - background: #fff; -} -.p3-playlist-container.minimal.mitlib ul.p3-playlist-ul li.p3-playlist-currently-playing:hover { -} -.p3-playlist-container.minimal.mitlib ul.p3-playlist-ul li.p3-playlist-currently-playing span.p3-playlist-play-button { - background-image: url("//p3.3playmedia.com/images/playlist/play_444.png"); -} -.p3-playlist-container.minimal.mitlib ul.p3-playlist-ul li:hover span.p3-playlist-play-button { - background-image: url("//p3.3playmedia.com/images/playlist/play_444.png"); -} -.p3-playlist-container.minimal.mitlib ul.p3-playlist-ul li.p3-playlist-currently-playing span.p3-playlist-video-info p.p3-playlist-video-title { - color: #52B5E3; -} -.p3-playlist-container.minimal.mitlib ul.p3-playlist-ul li.p3-playlist-currently-playing span.p3-playlist-video-info p.p3-playlist-meta-field-one { - color: #999; -} -.p3-playlist-container.minimal.mitlib .p3-playlist-segmentmap tbody tr td { - background: #333; - border-right: 1px solid #f1f1f1; -} -.p3-playlist-container.minimal.mitlib .p3-playlist-segmentmap tbody tr td.hit { - background: #52b5e3; -} -.p3-playlist-container.minimal.mitlib .p3-playlist-segmentmap tbody tr td.hit:hover { - opacity: .7; -} -.p3_floating_segment.minimal.mitlib { - background: #fff; - border: 1px solid #fff; - box-shadow: #ccc 0 0 1px 1px; - color: #333; -} -.p3_floating_segment.minimal.mitlib .p3-floating-segment-point { - background: url("//p3.3playmedia.com/images/playlist/pointer_bbb.png") center center no-repeat; - top: -11px; -} diff --git a/web/app/themes/mitlib-moh/css/scss/_tablepress.scss b/web/app/themes/mitlib-moh/css/scss/_tablepress.scss deleted file mode 100644 index 0fde1954..00000000 --- a/web/app/themes/mitlib-moh/css/scss/_tablepress.scss +++ /dev/null @@ -1,157 +0,0 @@ -table.tablepress { - border-top: 1px solid #ededed; - color: #666; - width: 100%; -} - -table.tablepress tr.even td, -table.tablepress tr.odd td { - background: none; -} - -table.tablepress tr:nth-child(odd), -tablepress { - background: #f5f5f5; -} - -table.tablepress tr:first-child { - border-top: 1px solid #ededed; -} - -table.tablepress tfoot th, -table.tablepress thead th { - background: #fff; - border: 0; - color: #333; - font-size: 12px; - font-weight: 700; - padding: 13px 20px; - text-transform: uppercase; - vertical-align: middle; -} - -table.tablepress tfoot th:first-child { - padding-left: 0; -} - -table.tablepress tbody td { - background: url(images/divider.gif) center right no-repeat; - line-height: 1.5; - min-height: 60px; - padding: 2%; - vertical-align: middle; -} - -table.tablepress .row-hover tr:hover td:last-child, -table.tablepress tbody td:last-child { - background-image: none; -} - -table.tablepress tbody td.nothing { - padding: 20px; -} - -table.tablepress tbody td.post-thumbnail { - background: 0 0; - line-height: 0; - padding: 0; -} - -table.tablepress tbody td.post-thumbnail img { - border-radius: 0; - box-shadow: none; - height: 97px; - width: 97px; -} - -table.tablepress tbody td h3 { - color: #444; - font-size: 18px; - line-height: 1.3; -} - -table.tablepress .row-hover tr:hover td { - background: #ddd url(images/divider.gif) center right no-repeat; - transition: background .25s ease-in-out; - -moz-transition: background .25s ease-in-out; - -webkit-transition: background .25s ease-in-out; -} - -.dataTables_wrapper .sorting:hover, -.dataTables_wrapper .sorting_asc, -.dataTables_wrapper .sorting_desc { - background: #fff !important; - color: #999; -} - -.dataTables_length, -.dataTables_filter { - color: #999; - position: relative; - top: -7px; -} - -.dataTables_filter { - top: -12px; -} - -.dataTables_wrapper label input { - margin-top: -3px !important; - width: 200px !important; -} - -.dataTables_wrapper label select { - margin-top: -2px !important; -} - -.dataTables_info, .dataTables_paginate { - margin-top: 10px !important; -} - -.dataTables_info { - color: #999; -} - -.dataTables_paginate { - padding: 0; -} - -.dataTables_paginate .paginate_disabled_previous:before, -.dataTables_paginate .paginate_enabled_previous:before, -.dataTables_paginate .paginate_disabled_next:after, -.dataTables_paginate .paginate_enabled_next:after { - font-size: 22px; - text-shadow: none; - top: -10px; -} - -.dataTables_paginate .paginate_disabled_previous:before, -.dataTables_paginate .paginate_enabled_previous:before { - content: "‹" !important; -} - -.dataTables_paginate .paginate_disabled_next:after, -.dataTables_paginate .paginate_enabled_next:after { - content: "›" !important; -} - -.dataTables_paginate a.paginate_enabled_previous, -.dataTables_paginate a.paginate_enabled_next { - text-decoration: underline; -} - -.dataTables_paginate a.paginate_enabled_previous, -.dataTables_paginate a.paginate_enabled_previous:before, -.dataTables_paginate a.paginate_enabled_next, -.dataTables_paginate a.paginate_enabled_next:after { - color: #3c3a79 !important; - text-decoration: none; -} - -.dataTables_paginate a.paginate_disabled_previous, -.dataTables_paginate a.paginate_disabled_previous:before, -.dataTables_paginate a.paginate_disabled_next, -.dataTables_paginate a.paginate_disabled_next:after { - color: #ccc !important; - text-decoration: none !important; -} \ No newline at end of file diff --git a/web/app/themes/mitlib-moh/css/scss/global.scss b/web/app/themes/mitlib-moh/css/scss/global.scss deleted file mode 100644 index 0486ac47..00000000 --- a/web/app/themes/mitlib-moh/css/scss/global.scss +++ /dev/null @@ -1,78 +0,0 @@ -$siteIndentIE: 20px; -$siteIndent: 1.25rem; -$sectionBreakIE: 32px; -$sectionBreak: 2rem; -$loading: url(../../../images/loading.gif) center no-repeat; - -* { - box-sizing: border-box; -} - -.childTheme .flexContainer .flexItem { - max-width: none; -} - -.hasSidebar { - float: left; - width: 72.9%; -} - -#content-main, -#content, -.content-main, -.entry-content { - a { - text-decoration: underline; - } -} - -.entry-content { - padding-left: $sectionBreakIE; - padding-left: $sectionBreak; -} - -.home { - .entry-content { - display: block; - padding-right: $sectionBreakIE; - padding-right: $sectionBreak; - float: left; - width: 50%; - } - .video { - float: left; - width: 50%; - } - .entry-content, - .video { - @media only screen - and (max-width: 480px) { - float: none; - padding-left: 0; - padding-right: 0; - width: 100%; - } - } -} - -.expandable { - clear: both; -} - -#footerHeader.footerHeader { - height: 92px; -} - -.no-flexbox { - .flexItem { - float: left; - margin: 0; - max-width: 50%; - } -} - -@import "modules/all.scss"; -@import "partials/base"; -@import "homepage"; -@import "tablepress"; -@import "interviews"; \ No newline at end of file diff --git a/web/app/themes/mitlib-moh/css/scss/modules/_all.scss b/web/app/themes/mitlib-moh/css/scss/modules/_all.scss deleted file mode 100644 index a5b72e8d..00000000 --- a/web/app/themes/mitlib-moh/css/scss/modules/_all.scss +++ /dev/null @@ -1 +0,0 @@ -@import "utility"; \ No newline at end of file diff --git a/web/app/themes/mitlib-moh/css/scss/modules/_utility.scss b/web/app/themes/mitlib-moh/css/scss/modules/_utility.scss deleted file mode 100644 index fd4e7c00..00000000 --- a/web/app/themes/mitlib-moh/css/scss/modules/_utility.scss +++ /dev/null @@ -1,14 +0,0 @@ -// Font Size -@function calculateRem($size) { - $remSize: $size / 16px; - @return $remSize * 1rem; -} - -@mixin font-size($size) { - font-size: $size; - font-size: calculateRem($size); -} - -// Layout Vars -$margin-bottom: calculateRem(20px); -$margin-left: calculateRem(20px); diff --git a/web/app/themes/mitlib-moh/css/scss/partials/_base.scss b/web/app/themes/mitlib-moh/css/scss/partials/_base.scss deleted file mode 100644 index eaf0f25f..00000000 --- a/web/app/themes/mitlib-moh/css/scss/partials/_base.scss +++ /dev/null @@ -1 +0,0 @@ -@import "header"; \ No newline at end of file diff --git a/web/app/themes/mitlib-moh/css/scss/partials/_header.scss b/web/app/themes/mitlib-moh/css/scss/partials/_header.scss deleted file mode 100644 index 20acb3c1..00000000 --- a/web/app/themes/mitlib-moh/css/scss/partials/_header.scss +++ /dev/null @@ -1,22 +0,0 @@ -.header-main { - margin-bottom: 0.5rem; -} - -.nav-main { - margin-left: 20px; - a { - color: #004cbd; - } - li { - display: inline-block; - font-weight: bold; - margin-right: 1.5rem; - } - @media screen and (max-width:480px) { - background: none; - margin-left: 0; - li { - display: block; - } - } -} \ No newline at end of file diff --git a/web/app/themes/mitlib-moh/functions.php b/web/app/themes/mitlib-moh/functions.php deleted file mode 100644 index dc7d8d5a..00000000 --- a/web/app/themes/mitlib-moh/functions.php +++ /dev/null @@ -1,50 +0,0 @@ -get( 'Version' ); - $parent_version = wp_get_theme()->parent()->get( 'Version' ); - - /* Register JS & CSS */ - wp_register_style( 'parent-style', get_template_directory_uri() . '/style.css', array(), $parent_version ); - wp_register_style( 'bootstrap', '//netdna.bootstrapcdn.com/bootstrap/3.0.0/css/bootstrap.min.css', array(), '3.0.0' ); - wp_register_style( 'moh-global', get_stylesheet_directory_uri() . '/css/build/global.css', array( 'parent-style', 'bootstrap' ), $theme_version ); - - wp_register_script( 'easyXDM', get_stylesheet_directory_uri() . '/js/libs/easyXDM.min.js', array( 'jquery' ), $theme_version, false ); - wp_register_script( '3play', get_stylesheet_directory_uri() . '/js/libs/3playmedia.js', array( 'jquery' ), '3.0', true, true ); - wp_register_script( '3play-player', get_stylesheet_directory_uri() . '/js/libs/3play.player.js', array( 'jquery' ), $theme_version, true ); - wp_register_script( '3play-hack', get_stylesheet_directory_uri() . '/js/3play.hack.js', array( 'jquery', '3play', '3play-player' ), $theme_version, true ); - wp_register_script( 'bootstrap-js', '//netdna.bootstrapcdn.com/bootstrap/3.0.0/js/bootstrap.min.js', array( 'jquery' ), true ); // All the bootstrap javascript goodness. - - /* Queue scripts and styles */ - wp_enqueue_script( 'bootstrap-js' ); - wp_enqueue_style( 'moh-global' ); - - /* Page-specific JS */ - if ( is_page( 'search-all-interviews' ) ) { - wp_enqueue_script( 'easyXDM' ); - wp_enqueue_script( '3play' ); - wp_enqueue_script( '3play-player' ); - wp_enqueue_script( '3play-hack' ); - } - - if ( is_single() ) { - wp_enqueue_script( 'easyXDM' ); - wp_enqueue_script( '3play' ); - } -} - -add_action( 'wp_enqueue_scripts', 'Mitlib\Moh\moh_scripts_styles' ); diff --git a/web/app/themes/mitlib-moh/images/divider-small.gif b/web/app/themes/mitlib-moh/images/divider-small.gif deleted file mode 100644 index e2139396..00000000 Binary files a/web/app/themes/mitlib-moh/images/divider-small.gif and /dev/null differ diff --git a/web/app/themes/mitlib-moh/images/divider.gif b/web/app/themes/mitlib-moh/images/divider.gif deleted file mode 100644 index e0615c64..00000000 Binary files a/web/app/themes/mitlib-moh/images/divider.gif and /dev/null differ diff --git a/web/app/themes/mitlib-moh/images/icon-cd.png b/web/app/themes/mitlib-moh/images/icon-cd.png deleted file mode 100644 index 643bf49b..00000000 Binary files a/web/app/themes/mitlib-moh/images/icon-cd.png and /dev/null differ diff --git a/web/app/themes/mitlib-moh/images/loading.gif b/web/app/themes/mitlib-moh/images/loading.gif deleted file mode 100644 index c69e9372..00000000 Binary files a/web/app/themes/mitlib-moh/images/loading.gif and /dev/null differ diff --git a/web/app/themes/mitlib-moh/images/no-photo.png b/web/app/themes/mitlib-moh/images/no-photo.png deleted file mode 100644 index be7cdafd..00000000 Binary files a/web/app/themes/mitlib-moh/images/no-photo.png and /dev/null differ diff --git a/web/app/themes/mitlib-moh/images/vi-shape7-tp.png b/web/app/themes/mitlib-moh/images/vi-shape7-tp.png deleted file mode 100644 index 6af234ed..00000000 Binary files a/web/app/themes/mitlib-moh/images/vi-shape7-tp.png and /dev/null differ diff --git a/web/app/themes/mitlib-moh/js/3play.hack.js b/web/app/themes/mitlib-moh/js/3play.hack.js deleted file mode 100644 index 01c0639e..00000000 --- a/web/app/themes/mitlib-moh/js/3play.hack.js +++ /dev/null @@ -1,19 +0,0 @@ -$(window).load(function(){ - // $('#collection form').on('submit', function(){ - // setTimeout(function(){ - // $('.p3-playlist-results li').addClass('no-result'); - // $('li').has('.hit').removeClass('no-result').addClass('has-result')}, 400); - // }); - // $('.p3-playlist-video-control').on('click', function(){ - // setTimeout(function(){ - // $('.p3-playlist-results li').addClass('no-result'); - // $('li').has('.hit').removeClass('no-result').addClass('has-result')}, 400); - // }); - - p3_listen(0,"Playlist.SearchResult",function(name,atts){ - setTimeout(function(){ - $('.p3-playlist-results li').addClass('no-result'); - $('li').has('.hit').removeClass('no-result').addClass('has-result')}, 400); - }); - -}); \ No newline at end of file diff --git a/web/app/themes/mitlib-moh/js/libs/3play.player.js b/web/app/themes/mitlib-moh/js/libs/3play.player.js deleted file mode 100644 index f5b8ef76..00000000 --- a/web/app/themes/mitlib-moh/js/libs/3play.player.js +++ /dev/null @@ -1,147 +0,0 @@ -var TECHTVID = 21824; -var rpc = new easyXDM.Rpc({ - remote: "http://techtv.mit.edu/embeds/"+TECHTVID, - container: "video", - props: { style: { width: 442, height: 200 } } - }, - { - local: { - play: function(successFn, errorFn) {}, - pause: function(successFn, errorFn) {}, - stop: function(successFn, errorFn) {}, - resume: function(successFn, errorFn) {}, - toggle: function(successFn, errorFn) {}, - seek: function(seconds, successFn, errorFn) {}, - isPlaying: function(successFn, errorFn) {}, - isPaused: function(successFn, errorFn) {}, - playState: function(successFn, errorFn) {}, - position: function(successFn, errorFn) {}, - duration: function(successFn, errorFn) {}, - videoId: function(md5, successFn, errorFn) {}, - playFile: function(id, successFn, errorFn) {} - }, - remote: { - play: {}, - pause: {}, - stop: {}, - resume: {}, - toggle: {}, - seek: {}, - isPlaying: {}, - isPaused: {}, - playState: {}, - position: {}, - duration: {}, - videoId: {}, - playFile: {} - } - } - ); - -window.p3_async_init = function(){ - - P3.PlayerInterface.techtv = function(id, instance) { - var parent = this; - parent.instance = instance; - - this.playState = "paused"; - this.playPosition = false; - this.playDuration = false; - this.playVideoId = TECHTVID; - - if (typeof rpc != "undefined" && rpc.play){ - this.play = function(){rpc.play();}; - this.pause = function(){rpc.pause();}; - this.play_state = function(){return parent.playState}; - this.position = function(){return parent.playPosition}; - this.video_id = function(){return parent.playVideoId}; - this.duration = function(){return parent.playDuration}; - this.seek = function(m){ - rpc.play(); - setTimeout(function(){ - var s = m / 1000; - rpc.seek(s); - },0); - }; - /*** - - TASK: THERE NEEDS TO BE SOME LOGIC HERE THAT ENABLES A NEW FILE AND TIMESTAMP - TO BE LOADED INTO THE PLAYER, AND FOR PLAYBACK TO BEGIN AUTOMATICALLY AND FROM THAT TIMESTAMP - RIGHT NOW IT IS TOO CLUNKY - - ***/ - this.play_file = function(obj){ - m = obj.m || 0; - if (obj.video_id == parent.playVideoId){ - parent.seek(m); - } else { - rpc.playFile(obj.video_id, m/1000); - } - }; - /*** - - TASK: THE UPDATE INTERVALS NEED TO BE OPTIMIZED, TRADING OFF USER EXPERIENCE AND PERFORMANCE - - ***/ - var SHORT_STAT_INTERVAL = 333; - var LONG_STAT_INTERVAL = 3000; - this.stat_interval = setInterval(function(){ - rpc.position(null,function(data){P3.get(0).player.interface.playPosition = data * 1000;}); - },SHORT_STAT_INTERVAL); - this.long_stat_interval = setInterval(function(){ - rpc.isPlaying(null,function(data){P3.get(0).player.interface.playState = (data ? "PLAYING" : "PAUSED")}); - rpc.duration(null,function(data){P3.get(0).player.interface.playDuration = data * 1000;}) - rpc.videoId(null,function(data){P3.get(0).player.interface.playVideoId = data}); - },LONG_STAT_INTERVAL); - } - } - - - P3.init({ - "video" : { - player_type: "techtv", - file_id: TECHTVID, - platform_integration: true, - transcript: { - target: "transcript", - skin: "minimal mitlib", - // template: "bottom_search", - width: 432, - height: 214, - can_print: true, - can_download: true, - can_collapse: true, - //search_transcript_stemming: false, - search_box_placeholder: "Search by name or keyword" - }, - playlist: { - folder_id: 8179, - target: "collection", - playlist_height: 315, - width: 432, - list_sort_by: "name", - search_sort_by: "name", - show_all_results: true, - skin: "minimal mitlib", - linked_account_id: 894, - project_id: 10129, - suggested_search_terms: [], - per_page: 50, - //search_transcript_stemming: false, - search_box_placeholder: "Search by name or keyword" - } - } - - },"h_RJzPyn1vwbLhFaDLRxJUoNvT_756xr"); -} - -$(document).ready(function(){ - - $("#transcriptskin").change(function(){ - P3.get(0).transcript.apply_skin($(this).val()); - }); - $("#playlistskin").change(function(){ - P3.get(0).playlist.apply_skin($(this).val()); - }); - -}); \ No newline at end of file diff --git a/web/app/themes/mitlib-moh/js/libs/3playmedia.js b/web/app/themes/mitlib-moh/js/libs/3playmedia.js deleted file mode 100644 index af0f31f9..00000000 --- a/web/app/themes/mitlib-moh/js/libs/3playmedia.js +++ /dev/null @@ -1,12 +0,0 @@ -/* Last Updated: Wed Apr 23 13:27:21 -0400 2014 */ -/* -* 3Play Media Plugin, v3.0 -* 3Play Media: Cambridge, MA, USA -* support@3playmedia.com -* ©2014 3Play Media, Inc. The following software is the sole and exclusive property of 3Play Media, Inc. and may not to be reproduced, modified, distributed or otherwise used, without the written approval of 3Play Media, Inc. We have granted approval to our paying customers while they are our customers to reproduce, modify and use (but not distribute) this software for their own internal use only. This means that if you are not a paying customer of 3Play Media, Inc., you may not reproduce, modify, distribute or otherwise use the code. -* Paying customers who are permitted and do use this software are hereby advised that this software is provided "as is" and any express or implied warranties, including but not limited to, an implied warranty of merchantability and fitness for a particular purpose are disclaimed. In no event shall 3Play Media, Inc. be liable for any direct, indirect, incidental, special, exemplary, or consequential damages (including but not limited to, procurement or substitute goods or services, loss of use, data or profits, or business interruption) however caused and on any theory of liability, whether in contract, strict liability, or tort (including negligence or otherwise) arising in any way out of the use of this software, even if advised of the possibility of such damage. -*/ -function run_p3(){if(!p3_window_loaded&&p3_window_wait||!p3_loader_complete)return!1;if(p3_already_loaded)return!1;p3_already_loaded=!0,typeof window.p3_async_before_init!="undefined"&&window.p3_async_before_init(),typeof window.p3_async_init!="undefined"&&window.p3_async_init(),typeof p3_instances!="undefined"&&typeof p3_api_key!="undefined"&&P3.init(p3_instances,p3_api_key),typeof window.p3_async_after_init!="undefined"&&window.p3_async_after_init()}function receiveOoyalaP3Event(a,b,c){switch(b){case"apiReady":p3_ooyala_initialized.push(a);break;case"playheadTimeChanged":var d=P3.find_instance_by_player_reference(a);d&&(d.player.interface.playhead_time=parseInt(parseFloat(c.playheadTime)*1e3));break;case"stateChanged":P3.Log.log("Ooyala state change: "+c.state);break;case"currentItemEmbedCodeChanged":break;case"embedCodeChanged":var e=c.embedCode,d=P3.find_instance_by_player_reference(e);d.player_reference=a,p3_ooyala_interfaces[a]=d.player.interface,P3.Log.info("Ooyala Current Embed Code Changed");break;case"totalTimeChanged":var d=P3.find_instance_by_player_reference(a);d&&(d.player.interface.total_time=parseInt(parseFloat(c.totalTime)*1e3))}}function html5_kaltura_play_handler(){P3.get(0).player.interface.player_state="PLAYING"}function html5_kaltura_pause_handler(){P3.get(0).player.interface.player_state="PAUSED"}function html5_kaltura_update_playhead(a){P3.get(0).player.interface.player_state="PLAYING",P3.get(0).player.interface.playhead_time=1e3*parseFloat(a)}function p3_listen(a,b,c){P3.JQuery(P3.get(a)).bind(b,c)}var P3={instances:[],init:function(a,b){if(!P3.is_compatible())return!1;P3.Settings.api_key=P3.Settings.api_key||b;var c=P3.instances.length,d=!1;for(i in a)a[i].debugger_ui&&(d=!0),P3.instances.push(new P3.create_instance(i,a[i],c)),c++;d&&(P3.debugger_ui=new P3.DebuggerUI)},is_compatible:function(){return!0},browser_invalid:function(){switch(!0){case P3.JQuery.browser.msie&&parseFloat(P3.JQuery.browser.version)<6:return!0}return!1},create_instance:function(a,b,c){this.instance_index=c,this.settings=b,b.api_version=="simple"&&b.project_id&&(P3.Settings.api_host=P3.Settings.api_host.replace(/\.com.*$/,".com")+"/p/projects/"+b.project_id,P3.Settings.static_host=P3.Settings.static_host.replace(/\.com.*$/,".com")+"/p/projects/"+b.project_id),this.player_reference=a,this.player=new P3.Player(this,a,b),this.event=new P3.Event(this),this.settings.transcript&&this.settings.transcript.target&&(this.transcript=new P3.Transcript(this,b)),this.settings.playlist&&this.settings.playlist.target&&(this.playlist=new P3.Playlist(this,b)),this.settings.captions&&(this.captions=new P3.Captions(this,b));if(this.settings.collection&&this.settings.collection.target){var d=this.instance_index;P3.Util.load_remote_script(P3.Settings.p3_host+"/javascripts/P3.Collection.js",function(){P3.get(d).collection=new P3.Collection(P3.get(d),P3.get(d).settings)})}if(this.settings.video_search&&this.settings.video_search.target){var d=this.instance_index;P3.Util.load_remote_script(P3.Settings.p3_host+"/javascripts/P3.VideoSearch.js",function(){P3.get(d).video_search=new P3.VideoSearch(P3.get(d),P3.get(d).settings)})}if(p3_extensions&&p3_extensions.length>0)for(var e=0;e2?parseInt(b[b.length-3],10):0;return 1e3*(3600*e+60*d+c)},player_type:function(a){var b=P3.JQuery("#"+a);b.length<1&&(b=P3.JQuery("[name="+a+"]"));var c=P3.JQuery(b).attr("name"),d=P3.JQuery(b).attr("class"),e=P3.JQuery(b).attr("src"),a=P3.JQuery(b).attr("id"),f=P3.JQuery(b).get(0).tagName.toLowerCase();if(f=="iframe")switch(!0){case/vimeo/i.test(d)||/vimeo/i.test(a)||/vimeo/i.test(e):return"vimeo_iframe";case/wistia/i.test(d)||/wistia/i.test(a):return"wistia_iframe"}else switch(!0){case typeof b.get(0).addModelListener!="undefined"&&b.get(0).sendEvent!="undefined":return"jw";case/(player\d*?\.swf|jw)/.test(e):return"jw";case/kaltura/i.test(e)||/kaltura/i.test(a)||/kalturai/.test(d):return"kaltura";case/brightcove/i.test(d)||/brightcove/i.test(a):return"brightcove";case/wistia/i.test(d)||/wistia/i.test(a):return"wistia";case/youtube/i.test(e):return"youtube"}},params:function(a){var b=location.href.split("#");if(b.length<2)return!1;var c=b.slice(-1)[0].split("&"),d={};for(i=0;ic-3?a.slice(0,c)+"..":a},tooltip:function(a,b,c,d){if(P3.Util.is_ipad())return!1;c=c||!1;var e=P3.JQuery("
");P3.JQuery(".p3-tooltip").fadeOut("fast",function(){P3.JQuery(this).remove()}),P3.JQuery(e).addClass("p3-tooltip"),c&&P3.JQuery(e).addClass(c),P3.JQuery(e).css({position:"absolute",zIndex:9999999999,top:Math.max(0,a.pageY+10),left:a.pageX+10}),P3.JQuery(e).html(b),P3.JQuery(document.body).append(e),P3.JQuery(a.target).mouseout(function(a){setTimeout(function(){P3.JQuery(e).remove()},50)});if(d){var f=$(a.target).parents(d+":first"),g=$(f).offset().left+$(f).outerWidth()-$(e).outerWidth();P3.JQuery(e).css("left",Math.min(a.pageX+10,g))}},load_remote_script:function(a,b){var c=document.createElement("script");c.src=a,c.type="text/javascript";if(b){c.onload=c.onreadystatechange=function(){if(typeof c.readyState!="undefined"&&c.readyState!="complete"&&c.readyState!="loaded")return!1;b()};var d=document.getElementsByTagName("script")[0];d.parentNode.insertBefore(c,d)}else P3.JQuery("script").get(0).parentNode.appendChild(c)},alert:function(a){P3.Log.error(a)},print:function(a,b){var c="toolbar=yes,location=no,directories=yes,menubar=yes,";c+="scrollbars=yes,width=750, height=600, left=100, top=25";var d=window.open("","",c);return d.document.open(),d.document.write("Print Preview"),d.document.write(''),d.document.write("

"),d.document.write(''),d.document.write("


"),d.document.write(a),d.document.write("
"),d.document.write("

"),d.document.write(''),d.document.write("

"),d.document.write(""),d.document.close(),b||d.print(),!1},selected_html:function(){try{var a;if(window.getSelection){a=window.getSelection();if(a.getRangeAt)var b=a.getRangeAt(0);else{var b=document.createRange();b.setStart(a.anchorNode,a.anchorOffset),b.setEnd(a.focusNode,a.focusOffset)}var c=b.cloneContents(),d=c.childNodes;for(i=0;i'},shorten_url:function(a,b,c){var d="3playmedia",e="R_586ba8f060b4fbccf2b5978d88f40fcc",f="http://api.bit.ly/v3/shorten?login="+d;f+="&apiKey="+e,f+="&longUrl="+encodeURIComponent(a),f+="&format=json&callback=?",P3.JQuery.getJSON(f,function(a){var d=a.data.url;c&&c(d,b)})},render_segment_map:function(a,b,c){var d=40,e=Math.min(a.total_num,d),f=Math.ceil(a.total_num/e),g=Math.ceil(a.total_num/f),h=b.video_id,j=b.file_id,k=P3.JQuery("
"),l=P3.JQuery(""),m=P3.JQuery("");P3.JQuery(l).append(m),P3.JQuery(k).append(l);var n={};P3.JQuery.each(a,function(a,b){n[b.number]=b.timestamp});for(i=0;i");P3.JQuery(o).attr("num",f*i+1),P3.JQuery(o).attr("segs_per",f),P3.JQuery(o).attr("video_id",h),P3.JQuery(o).attr("file_id",j),P3.JQuery(o).html(""+c+""),P3.JQuery(m).append(o)}return P3.JQuery(m).attr("video_id",h),P3.JQuery(m).attr("file_id",j),P3.JQuery.each(a.hits,function(b){var c=Math.floor((a.hits[b].number-1)/f);P3.JQuery(k).find("td:eq("+c+")").removeClass("*").addClass("hit")}),P3.JQuery(k).html()},mouse_coords:function(a){if(a.pageX||a.pageY)return{x:a.pageX,y:a.pageY};if(a.clientX||a.clientY)return{x:a.clientX+document.body.scrollLeft+document.documentElement.scrollLeft,y:a.clientY+document.body.scrollTop+document.documentElement.scrollTop}}};var p3_window_loaded=!1,p3_loader_complete=!1,p3_already_loaded=!1,p3_handled_dependencies=[];p3_window_wait=typeof p3_window_wait=="undefined"?!0:p3_window_wait,p3_jquery_ui=typeof p3_jquery_ui=="undefined"?!0:p3_jquery_ui,p3_external_stylesheet=typeof p3_external_stylesheet=="undefined"?!1:p3_external_stylesheet,p3_hosted_extensions=typeof p3_hosted_extensions=="undefined"?[]:p3_hosted_extensions,p3_extensions=typeof p3_extensions=="undefined"?[]:p3_extensions,function(a,b,c,d){var e,f=!1,g=this,h={},i=[];this.all_loaded=function(){for(var a=0;a0)for(var n=0;n0)for(var n=0;n=0){var q=j+"/javascripts/extensions/"+p3_hosted_extensions[n]+"/"+p3_hosted_extensions[n]+".js",r=j+"/javascripts/extensions/"+p3_hosted_extensions[n]+"/"+p3_hosted_extensions[n]+".css";k.push(q),m.push(r),p3_extensions.push(p3_hosted_extensions[n])}else console&&console.log&&console.log("Warning: P3 Hosted Extension '"+p3_hosted_extensions[n]+"' was not found.");for(var n=0;n0){d.player=e("#"+c.html5_container_id).find("video,audio:first"),d.player_id=e(d.player).attr("id");if(!d.player_id){var g="tpm_"+parseInt(1e8*Math.random());e(d.player).attr("id",g),d.player_id=g}d.instance.settings.player_type="html5",d.instance.player_reference=d.player_id}P3.Log.debug("Finding player with ID "+b+"..."),d.interface&&d.interface.position&&clearInterval(d.find_player_interval);if(!e("#"+b))return!1;var h=d.instance.settings.player_type||P3.Util.player_type(b);h=h.toLowerCase().replace(/^\s+|\s+$/,""),d.player_type=h;try{d.interface=new P3.PlayerInterface[h](d.instance.player_reference,d.instance),d.instance.event.trigger("Player.Ready",{player_id:b,player_type:h}),clearInterval(d.find_player_interval)}catch(f){P3.Log.error(f),d.interface=!1;var j=[];for(i in P3.PlayerInterface)j.push(i);if(P3.Util.in_array(h,j))return!1;P3.Util.alert("Player Type "+h+" is not supported.\nSupported Players: "+j.join(", "))}},250),this.start_tracking=function(){d.interval=setInterval(function(){if(d.interface&&d.interface.play_state&&d.interface.play_state()=="PLAYING"){var a=d.interface.position(),b=d.instance.settings.platform_integration?d.interface.video_id():!1;d.instance.event.trigger("Player.Progress",{m:a,video_id:b}),d.last_m=a}},P3.Settings.player_tracking_interval)},this.stop_tracking=function(){clearInterval(d.interval)},this.load_video=function(a){if(!a.video_id)return!1;d.interface.play_file(a),m=a.m||0,d.instance.settings.file_id=a.video_id,d.instance.event.trigger("Player.VideoLoad",{video_id:a.video_id,m:m})},e(a).bind("Player.Ready",function(a,b){!d.onload_seek_handled&&P3.Util.params("p3s")&&(!P3.Util.params("p3i")||P3.Util.params("p3i")==d.instance.instance_index)&&(d.ready_to=setInterval(function(){if(!d.interface||!d.interface.play)return!1;d.interface.play(),clearInterval(d.ready_to)},10))}),e(a).bind("Player.Progress",function(a,b){if(!d.onload_seek_handled&&P3.Util.params("p3s")&&(!P3.Util.params("p3i")||P3.Util.params("p3i")==d.instance.instance_index)){var c=parseInt(P3.Util.params("p3s"),10);d.onload_seek_handled=!0,d.interface.play(),d.play_video_id=P3.Util.params("p3v")||!1,d.seek_to_m=c,d.pause_at_m=P3.Util.params("p3e")||!1}else if(d.play_video_id)d.play_video_id!=d.interface.video_id()&&d.interface.play_file({video_id:d.play_video_id}),d.play_video_id=!1;else if(d.seek_to_m&&d.interface.play_state()=="PLAYING"){if(d.instance.player.seek_to_video_id){if(d.instance.player.seek_to_video_id!=d.instance.player.interface.video_id())return!1;d.instance.player.seek_to_video_id=!1}d.interface.seek(d.seek_to_m),d.seek_to_m=!1}else d.pause_at_m&&d.pause_at_m=0))return!1;var d=soundManager.getSoundById(a);this.play=function(){d.play()},this.pause=function(){d.pause()},this.play_state=function(){return d.playState==1&&d.paused==0?"PLAYING":"PAUSED"},this.position=function(){return d.position},this.duration=function(){return d.duration},this.video_id=function(){return d.url.split("/").slice(-1)[0]},this.seek=function(a){d.setPosition(a)}},sublime:function(a,b){var c=this;c.instance=b;if(typeof sublime=="undefined"||typeof sublime.player=="undefined")return!1;if(typeof sublime.player(a)=="undefined")return!1;c.player_id=a,c.player_state=!1,sublime.player(c.player_id).on({start:function(a){c.player_state="PLAYING"},end:function(a){c.player_state="PAUSED"},timeUpdate:function(a,b){c.player_state="PLAYING"},stop:function(a){c.player_state="PAUSED"},pause:function(a){c.player_state="PAUSED"},play:function(a){c.player_state="PLAYING"}}),this.play=function(){sublime.player(c.player_id).play()},this.pause=function(){sublime.player(c.player_id).pause()},this.play_state=function(){return c.player_state},this.position=function(){return sublime.player(c.player_id).playbackTime()*1e3},this.duration=function(){return parseInt(sublime.player(c.player_id).duration()*1e3,10)},this.video_id=function(){return!1},this.seek=function(a){var b=a/1e3;sublime.player(c.player_id).seekTo(b)}},html5:function(a,b){var c=this;c.instance=b;var d=P3.JQuery("#"+a);if(d.length==0)return!1;d.get(0).tagName.toLowerCase()!="video"&&(d=P3.JQuery(d).find("video,audio")),this.html5_player=d.get(0),typeof this.html5_player!="undefined"&&typeof this.html5_player.play!="undefined"&&(this.play=function(){this.html5_player.play()},this.pause=function(){this.html5_player.pause()},this.play_state=function(){return this.html5_player.paused?"PAUSED":"PLAYING"},this.position=function(){return parseInt(this.html5_player.currentTime*1e3,10)},this.duration=function(){return parseInt(this.html5_player.duration*1e3,10)},this.video_id=function(){return!1},this.seek=function(a){var a=parseInt(a,10)/1e3;a=Math.max(0,a-1),this.html5_player.currentTime=a})}};var p3_ooyala_interfaces={},p3_kaltura_interfaces={};PlayerInterfaceExtension_Kaltura=function(a){var b=this;this.player_interface=a,this.kaltura_player_id=a.kaltura_player.id,this.play_handler=function(){b.player_interface.player_state="PLAYING"},this.pause_handler=function(){b.player_interface.player_state="PAUSED"},this.playhead_handler=function(a){b.player_interface.playhead_time=1e3*parseFloat(a)}};var p3_jw_interfaces={};PlayerInterfaceExtension_JW=function(a){var b=this;this.player_interface=a,this.jw_player_id=a.jw_player.id,this.play_handler=function(a){b.player_interface.player_state=a.newstate=="PLAYING"?"PLAYING":"PAUSED"},this.playhead_handler=function(a){b.player_interface.playhead_time=parseFloat(a.position)*1e3}};var p3_vimeo_interfaces={};PlayerInterfaceExtension_Vimeo=function(a){var b=this;this.player_interface=a,this.vimeo_player_id=a.vimeo_player.id,this.play_handler=function(){b.player_interface.player_state="PLAYING"},this.pause_handler=function(){b.player_interface.player_state="PAUSED"},this.playhead_handler=function(a,c){b.player_interface.player_state="PLAYING",b.player_interface.playhead_time=1e3*parseFloat(a)}};var p3_vimeo_iframe_interfaces={};PlayerInterfaceExtension_VimeoIframe=function(a){var b=this;this.player_interface=a,this.vimeo_player_id=a.vimeo_player.id,this.play_handler=function(a){b.player_interface.player_state="PLAYING"},this.pause_handler=function(a){b.player_interface.player_state="PAUSED"},this.playhead_handler=function(a,c){b.player_interface.player_state="PLAYING",b.player_interface.playhead_time=1e3*parseFloat(a.seconds)}},P3.Transcript=function(instance,options){var $=P3.JQuery,parent=this;this.instance=instance,this.file={},this.cache_id=parseInt(1e6*Math.random()),this.transcript_cache={},this.stemmer=!1,this.skin_dependencies={hot_pink:"basic_color",blue_pro:"basic_color",cardinal_red:"basic_color",zesty_orange:"basic_color",darth_gecko:"gecko",sunburst:"basic_textured",wood:"basic_textured",metallic:"basic_textured",ice:"frost"},this.settings={skin:"frost",ie6_skin:"ice",width:"400px",height:"400px",file_id:!1,can_print:!1,can_download:!1,can_clip:!1,can_collapse:!1,collapse_label:"",expand_label:"",vertical_collapse:!1,scan_view:!1,scan_view_buffer:50,collapse_onload:!1,hide_onerror:!1,track_alt:!1,progressive_tracking:!1,track_highlighted_words:!1,keyup_search:!1,transcript_search_offset:3e3,transcript_versions:!1,transcript_url:!1,transcript_url_convention:!1,cross_domain_loader:!1,cross_domain_dynamic_callback:!1,search_transcript_stemming:!0,search_placeholder:"Search Video",download_format:"txt",transcript_offset:!1,transcript_start:!1,transcript_end:!1,locked:!0,global_unlock:!1,light_scroll:!1,template:"default",tooltips:!0,api_key:!1},this.init=function(){$.each(options.transcript,function(a){parent.settings[a]=options.transcript[a]});if(!parent.settings.target)return!1;parent.settings.file_id||(parent.settings.file_id=parent.instance.settings.file_id),parent.settings.api_key||(parent.settings.api_key=P3.Settings.api_key),P3.Util.is_ie6()&&parent.settings.ie6_skin&&(parent.settings.skin=parent.settings.ie6_skin),parent.settings.search_transcript_stemming&&P3.Util.load_remote_script("//p3.3playmedia.com/javascripts/vendor/Snowball.min.js"),this.render(),this.listen()},this.die=function(){$(this.transcript_container).find("span").die("click"),$(this.transcript_container).die("click"),$(this.container).find("a").die("click"),$(this.container).find(".print").die("click"),$(this.container).find(".download").die("click"),$(this.container).find(".scan-view").die("click"),$(this.container).find(".p3-timeline").die("click"),$(this.container).find(".pointer").die("click"),$(this.container).find(".pointer").die("mouseover"),$(this.container).find(".p3-transcript-button").die("click"),$(this.container).find(".p3-transcript-button").die("mouseover"),$(this.container).children().remove(),parent.instance.event.trigger("Transcript.Die")},this.container=$("#"+options.transcript.target),this.transcript_container={},this.render=function(){var a=parent.templates[parent.settings.template]?parent.settings.template:"default",b=(new EJS({text:parent.templates[a],type:"["})).render(parent.settings);$(this.container).html(b),parent.transcript_container=$(this.container).find(".p3-transcript-main"),parent.apply_skin(),P3.Util.is_ie()&&(parent.settings.width=parseInt(parent.settings.width,10)+2+"px",parent.settings.height=parseInt(parent.settings.height,10)+2+"px"),$(this.container).find(".p3-transcript-container").css({width:parent.settings.width,height:parent.settings.height}),$(this.container).find("input[type=text]").each(function(){var a=$(this).val();$(this).attr("oval",a)}),this.resolve_transcript_height(),this.transcript_request(),parent.settings.can_collapse&&parent.settings.collapse_label&&$(parent.container).find(".p3-transcript-button.collapse").addClass("visible-label"),parent.settings.can_collapse&&parent.settings.collapse_onload&&parent.collapse(),parent.instance.event.trigger("Transcript.TemplateRendered")},this.listen=function(){$(this.container).find("input[type=text]").live("click",function(a){$(this).val()==$(this).attr("oval")&&$(this).val("")}),$(this.container).find(".p3-transcript-search").live("keyup",function(a){var b=a.keyCode||a.which;b==27&&($(this).val(""),parent.search_transcript("")),parent.settings.keyup_search&&(parent.keyup_search_timeout&&clearTimeout(parent.keyup_search_timeout),parent.keyup_search_timeout=setTimeout(function(){var a=$(parent.container).find(".p3-transcript-search").val();parent.search_transcript(a,"topbar_search")},333))}),$(this.container).find(".p3-transcript-bottom-search-submit").live("click",function(a){var b=$(parent.container).find(".p3-transcript-bottom-search").val();parent.search_transcript(b,"bottombar_search")}),$(this.container).find(".p3-transcript-bottom-search").live("keyup",function(a){var b=a.keyCode||a.which;if(b==27)$(this).val(""),parent.search_transcript("");else if(b==13){var c=$(this).val();parent.search_transcript(c,"bottombar_search")}parent.settings.keyup_search&&(parent.keyup_search_timeout&&clearTimeout(parent.keyup_search_timeout),parent.keyup_search_timeout=setTimeout(function(){var a=$(parent.container).find(".p3-transcript-bottom-search").val();parent.search_transcript(a,"bottombar_search")},333))}),$(this.container).find(".p3-transcript-searchform").submit(function(a){var b=$(this).find(".p3-transcript-search").val();return parent.search_transcript(b),!1}),$(this.container).find(".p3-transcript-search-reset").live("click",function(a){$(parent.container).find(".p3-transcript-search,.p3-transcript-bottom-search").val(""),parent.search_transcript("")}),$(this.container).find(".p3-bottombar-reset-search").live("click",function(a){parent.search_transcript(""),$(parent.container).find(".p3-transcript-bottom-search").val("")}),$(this.container).find(".print").live("click",function(a){parent.print_transcript()}),$(this.container).find(".download").live("click",function(a){location.href=parent.download_url()}),$(this.container).find(".scan-view").live("click",function(a){var b=$(this).find("span").html();b=="Scan View"?(parent.load_scan_view(),$(this).find("span").html("Loading")):(parent.clear_scan_view(),$(this).find("span").html("Scan View"))}),$(this.container).find(".p3-timeline,.p3-bottombar-timeline").live("click",function(a){var b=(a.offsetX||a.layerX)/$(this).outerWidth(),c=b*parent.file.duration;parent.instance.player.interface.seek(c)}),$(this.container).find(".pointer").live("click",function(a){var b=parseInt($(this).attr("m"),10)-parent.settings.transcript_search_offset;return parent.instance.player.interface.seek(b),!1}),$(this.container).find(".pointer").live("mouseover",function(e){var next_word=$(parent.transcript_container).find("span[m="+$(this).attr("m")+"]"),msg=[],counter=0;while(next_word.length>0&&counter<7)msg.push($(next_word).html()),counter+=1,next_word=$(next_word).next();var re=eval("/("+parent.saved_search_term+")/gi");parent.settings.tooltips&&P3.Util.tooltip(e,msg.join(" ").replace(re,"$1"),parent.settings.skin)}),$(this.container).find(".p3-transcript-button").live("click",function(a){$(this).hasClass("locked")?($(this).removeClass("locked"),$(this).addClass("unlocked"),$(this).find("span").html("Lock"),parent.settings.locked=!1,parent.settings.global_unlock=!0):$(this).hasClass("unlocked")&&($(this).removeClass("unlocked"),$(this).addClass("locked"),$(this).find("span").html("Unlock"),parent.settings.locked=!0,parent.settings.global_unlock=!1)}),$(this.container).find(".p3-transcript-button").live("mouseover",function(a){var b=!1,c=$(a.target);switch(!0){case c.hasClass("print"):b="Print Transcript";break;case c.hasClass("download"):b="Download Transcript";break;case c.hasClass("locked"):b="Disable Transcript Auto-Scrolling";break;case c.hasClass("unlocked"):b="Enable Transcript Auto-Scrolling";break;case c.hasClass("collapse"):b="Hide Interactive Transcript";break;case c.hasClass("expand"):b="View Interactive Transcript";break;case c.hasClass("clip-inactive"):b="Highlight Text to Share Clips";break;case c.hasClass("clip-active"):b="Share Highlighted Clip"}b!=0&&parent.settings.tooltips&&P3.Util.tooltip(a,b)}),$(this.transcript_container).live("click",function(a){var b=a.target;if(b.tagName.toLowerCase()!="span")return!1;var c=$(b).attr("m"),d=$(b).html();parent.instance.event.trigger("Transcript.WordClick",{m:c,word:d,current_m:parent.instance.player.interface.position()}),parent.instance.player.interface.seek(c)}),$(this.transcript_container).mouseover(function(a){parent.settings.locked=!1}),$(this.transcript_container).mouseout(function(a){parent.settings.locked=!0}),$(this.transcript_container).mousedown(function(a){parent.settings.can_clip&&$(parent.container).find(".clip-active").removeClass("clip-active").addClass("clip-inactive")}),$(this.transcript_container).mouseup(function(a){parent.handle_selected_text()}),$(this.container).find(".collapse").live("click",function(a){parent.collapse()}),$(this.container).find(".expand").live("click",function(a){parent.expand()}),$(this.container).find(".p3-transcript-versions").change(function(a){var b=$(this).val().replace(/^\s+|\s+$/,"");parent.settings.transcript_url=b,parent.transcript_request()}),$(this.container).find(".p3-close-social-sharing").live("click",function(a){return $(parent.container).find(".p3-social-sharing").remove(),!1}),$(this.container).find(".clip-active").live("click",function(a){parent.start_clip_share(a)}),$(this.container).find(".p3-tweet-clip").live("click",function(a){parent.tweet_clip(parent.settings.current_clip_selection,a)}),$(this.container).find(".p3-facebook-clip").live("click",function(a){parent.facebook_clip(parent.settings.current_clip_selection,a)}),$(this.container).find(".p3-get-shortened-link").live("click",function(a){parent.get_shortened_link(parent.settings.current_clip_selection,a)})},this.collapse=function(){var a=$(this.container).find(".collapse");a.addClass("expand"),a.removeClass("collapse"),parent.settings.expand_label&&a.find("span").html(parent.settings.expand_label),$(parent.container).find(".p3-transcript-main, .p3-transcript-controller, .p3-transcript-mediabar").hide();var b=$(parent.container).find(".p3-transcript-container").height();$(parent.container).find(".p3-transcript-container").attr("cache-height",b),$(parent.container).find(".p3-transcript-container").css("height","auto"),$(parent.container).find(".scan-view").hide(),parent.instance.event.trigger("Transcript.Collapse")},this.expand=function(){var a=$(this.container).find(".expand");a.removeClass("expand"),a.addClass("collapse"),parent.settings.collapse_label&&a.find("span").html(parent.settings.collapse_label),$(parent.container).find(".p3-transcript-main, .p3-transcript-controller, .p3-transcript-mediabar").show(),$(parent.container).find(".p3-transcript-container").css("height",$(this).attr("cache-height")),$(parent.container).find(".scan-view").show(),parent.instance.event.trigger("Transcript.Expand")},this.apply_skin=function(a){a=a||parent.settings.skin,a=parent.skin_dependencies[a]?parent.skin_dependencies[a]+" "+a:a;if(a){var b=$(this.container).find(".p3-transcript-container"),c=b.attr("class").split(/\s+/);$.each(c,function(a){var d=c[a];d!="p3-transcript-container"&&b.removeClass(d)}),b.addClass(a),setTimeout(function(){parent.resolve_transcript_height()},10),setTimeout(function(){parent.resolve_transcript_height()},50),setTimeout(function(){parent.resolve_transcript_height()},100),setTimeout(function(){parent.resolve_transcript_height()},250),setTimeout(function(){parent.resolve_transcript_height()},500),setTimeout(function(){parent.resolve_transcript_height()},1e3)}parent.settings.skin=a},this.resolve_transcript_height=function(){var a=$(this.container).find(".p3-transcript-container").outerHeight();a-=$(this.container).find(".p3-transcript-mediabar").outerHeight(),a-=$(this.container).find(".p3-transcript-controller").outerHeight(),a-=$(this.container).find(".p3-transcript-bottombar").outerHeight(),a-=2,$(this.transcript_container).css("height",a+"px")},this.transcript_request=function(){return parent.instance.settings.platform_integration&&this.settings.transcript_url_convention&&(this.settings.transcript_url=this.settings.transcript_url_convention.replace("{file_id}",this.settings.file_id)),this.settings.transcript_url?this.load_remote_transcript():this.load_static_transcript()},this.load_static_transcript=function(){P3.Util.load_remote_script(this.transcript_static_url())},this.load_scan_view=function(){P3.Util.load_remote_script(this.keywords_url())},this.timing_info=function(a){var b=["transcript_offset","transcript_start","transcript_end"],c=[];for(var d=0;dThere was an error loading the transcript.

"),a&&(a.errors||a.is_error)&&$(parent.transcript_container).append("

The requested transcript was not found.

"),parent.instance.event.trigger("Transcript.LoadError")},this.parse_scan_view_data=function(obj){var keyvals={},re_arr=[],space_repl="(\\<[^\\>]*?\\>)*\\s*(\\<[^\\>]*?\\>)*\\s*",dostem=typeof Snowball!="undefined";$.each(obj,function(a){var b=obj[a][0].replace(/^\s+|\s+$/,"");restr=b.replace(/\s+/g,space_repl);if(dostem){parent.stemmer=parent.stemmer||new Snowball("English");var c=b.split(/\s+/),d=[];for(j=0;j]+m="([^"]+?)"[^>]*>('+re_arr.join("|")+")[\b.!?)\"']*]*\>/g,key=parent.cache_id;$(parent.transcript_container).find("p").each(function(){matches={};var a=$(this).html(),b=$(this).find("span:first").attr("m");a.replace(bigre,function(a,c,d){var e=d.replace(tre," ").replace(/\s+/g," ");matches[key+"_"+b+"_"+c]={s:e,v:keyvals[e.toLowerCase()]}});for(m in matches){var c=$(this).find("#"+m),d=matches[m].s.split(/\s+/).length;for(var e=0;ea)return!1;c=b}),$.each(parent.transcript_cache[c],function(d){if(parent.transcript_cache[c][d]>=a){var e=parent.transcript_cache[c][d];return b=$("#"+parent.paragraph_word_cache_key(c,e)),parent.settings.track_alt&&b.prev().length>0&&(b=b.prev()),!1}});if(!b){var d=parent.transcript_cache[c].slice(-1);b=$("#"+parent.paragraph_word_cache_key(c,d))}parent.track_to_word(b,c);if(this.settings.locked!==!0)return!1;if(this.settings.global_unlock===!0)return!1;parent.scroll_to_word(parent.current_word)},this.track_to_word=function(a,b){if(parent.current_word==a)return!1;if(parent.settings.progressive_tracking){if(parent.current_paragraph!=b){$(parent.container).find(".tracked_paragraph").removeClass("tracked_paragraph"),$(parent.container).find(".current_paragraph").removeClass("current_paragraph");var c=$(a).parents("p:first").prevAll();$(c).addClass("tracked_paragraph"),$(a).parents("p:first").addClass("current_paragraph");var d=$(a).parents("p:first").nextAll();$(d).removeClass("tracked_paragraph")}$(a).nextAll().removeClass("tracked_word"),$(a).prevAll().addClass("tracked_word"),$(a).addClass("tracked_word")}else $(parent.current_word).removeClass("current_word"),$(a).addClass("current_word");parent.settings.track_highlighted_words&&parent.instance.event.trigger("Transcript.HighlightedWord",{m:$(a).attr("m"),word:$(a).html()}),parent.current_paragraph=b,parent.current_word=a},this.scroll_to_word=function(a){if(!parent.settings.locked)return!1;parent.settings.first_word=parent.settings.first_word||this.transcript_container.find("span[m]:first");var b=this.transcript_container.scrollTop(),c=parseInt($(a).offset().top-$(parent.settings.first_word).offset().top,10),d=parseInt(b,10);if(parent.settings.light_scroll){var e=$(parent.transcript_container).height();(c-b>.75*e||c-b<0)&&this.transcript_container.scrollTop(c)}else c!=d&&this.transcript_container.scrollTop(c)},this.clear_searched_transcript=function(){$(parent.container).find(".p3-transcript-search-reset").hide(),$(parent.transcript_container).find(".search_hit").removeClass("search_hit"),$(parent.container).find(".pointer").remove(),$(".p3-tooltip").remove(),$(parent.container).find(".p3-bottombar-timeline-container").hide(),$(parent.container).find(".p3-transcript-bottombar-logo").show()},this.search_transcript=function(searchterm,callback){parent.clear_searched_transcript(),callback=callback||"topbar_search";var sanitized_arr=searchterm.replace(/^\s+|\s+$/,"").split(/\s+/);parent.saved_search_term=sanitized_arr.join("|");if(sanitized_arr.join("")=="")return!1;parent.settings.search_transcript_stemming&&typeof Snowball!="undefined"&&(parent.stemmer=parent.stemmer||new Snowball("English"),$.each(sanitized_arr,function(a,b){parent.stemmer.setCurrent(b),parent.stemmer.stem();var c=parent.stemmer.getCurrent();P3.Util.in_array(c,sanitized_arr)||sanitized_arr.push(c)})),$(parent.container).find(".p3-transcript-search-reset").show();var sanitized=sanitized_arr.join("|"),re=eval("/("+sanitized+")/i"),matches=[];$(parent.transcript_container).find("span").each(function(){re.test($(this).html())&&($(this).addClass("search_hit"),matches.push(parseInt($(this).attr("m"),10)))}),callback&&parent[callback](matches),parent.instance.event.trigger("Transcript.Search",{searchterm:searchterm})},this.topbar_search=function(a){$(parent.container).find(".p3-timeline").css("position","relative");var b=$(parent.container).find(".p3-timeline").outerHeight();$.each(a,function(b){var c=a[b],d=parseInt(100*(c/parent.file.duration))+"%",e=$("");$(e).attr("m",c),$(e).addClass("pointer"),$(e).html(" "),$(e).css({position:"absolute",top:0,bottom:0,width:"2px",zIndex:2e3,left:d}),$(parent.container).find(".p3-timeline").append(e)})},this.bottombar_search=function(a){var b=a.length>=100?"99+":a.length;$(parent.container).find(".p3-bottombar-timeline-hits").html(b+" results");var c=$(parent.container).find(".p3-bottombar-timeline-container");$(c).show(),$(parent.container).find(".p3-transcript-bottombar-logo").hide();var d=$(parent.container).find(".p3-bottombar-timeline");$(d).show(),$(c).css("width","120px"),$(d).css("width","120px"),$.each(a,function(b){var c=a[b],e=parseInt(100*(c/parent.file.duration))+"%",f=$("");$(f).attr("m",c),$(f).addClass("pointer"),$(f).html(" "),$(f).css({position:"absolute",top:4,bottom:4,width:"2px",zIndex:2e3,left:e}),$(d).append(f)}),a.length<=50?$(c).animate({width:"245px"},200):$(c).css({width:"245px"})},this.print_transcript=function(){var a=$(parent.transcript_container).html();a=a.replace(/\]*?\>/,""),P3.Util.print(a,!0)},this.handle_selected_text=function(){var a=P3.Util.selected_html();if(!a)return!1;var b=$("

");b.append(a);var c=b.find("span:first"),d=b.find("span:last"),e=parseInt($(c).attr("m"),10),f=parseInt($(d).attr("m"),10),g=/^\s+|\s+$/,h=[];$(b).find("span").each(function(){var a=$(this).html().replace(g,"");h.push(a)}),h=h.join(" "),h.length>100?shortened_text=(h.slice(0,40)+" [...] "+h.slice(-40)).replace(/\s+/," "):shortened_text=h;if(!e)return!1;if(!f)return!1;if(e==f)return!1;if(!h)return!1;var i={start_ms:e,end_ms:f,duration:f-e,raw_text:h,shortened_text:shortened_text};parent -.instance.event.trigger("Transcript.Selection",i)},this.get_shortened_link=function(a,b){url=a.url||location.href,context=a.shortened_text||"",P3.Util.shorten_url(url,context,function(a,c){$(b.target).html(a),$(b.target).css("text-transform","none"),$(b.target).die("click"),$(b.target).click(function(){window.open(a)})})},this.start_clip_share=function(a){if($(parent.container).find(".p3-social-sharing").length>0)return $(parent.container).find(".p3-social-sharing").remove(),!1;var b=parent.settings.current_clip_selection,c=(new EJS({text:parent.social,type:"["})).render(b);$(parent.container).find(".p3-transcript-container").css("position","relative"),$(parent.container).find(".p3-transcript-container").append(c);var d=$(parent.container).find(".p3-social-sharing"),e=$(parent.container).find(".clip-active"),f=$(parent.container).find(".p3-transcript-container"),g=e.offset().top+e.outerHeight()-f.offset().top+"px",h=e.offset().left-f.offset().left,i=f.outerWidth()-d.outerWidth();h=Math.min(h,i)+"px",$(d).css({top:g,left:h})},this.tweet_clip=function(a,b){url=a.url||location.href,context=a.shortened_text||"",P3.Util.shorten_url(url,context,function(a,b){b=b?' "'+b+'"':"";var c="Video Bookmark "+a+b+" #3playmedia",d="http://twitter.com/?status="+encodeURIComponent(c);window.open(d)})},this.facebook_clip=function(a,b){url=a.url||location.href,context=a.shortened_text||"",context=context?' "'+context+'"':"";var c="http://www.facebook.com/share.php?u="+encodeURIComponent(location.href);c+="&t="+encodeURIComponent("Video Bookmark"),window.open(c)},$(instance).bind("Transcript.Selection",function(a,b){if(parent.settings.can_clip){$(parent.container).find(".clip-inactive").removeClass("clip-inactive").addClass("clip-active");var c=location.href.replace(/\#.+?$/,"");c+="#p3s:"+b.start_ms+"&p3e:"+b.end_ms,c+=P3.instances.length>1?"&p3i:"+parent.instance.instance_index:"",location.href=c,b.url=c,parent.settings.current_clip_selection=b}}),$(instance).bind("Player.Progress",function(a,b){if(!(parent.instance.player&&parent.instance.player.interface&&parent.instance.player.interface.play))return!1;if(b.video_id&&b.video_id!=parent.settings.file_id)return parent.settings.file_id=b.video_id,parent.instance.settings.file_id=b.video_id,parent.transcript_request(),!1;parent.track(b.m)}),$(instance).bind("Player.VideoLoad",function(a,b){parent.instance.settings.file_id=b.video_id,parent.settings.file_id=b.video_id,parent.transcript_request()}),$(instance).bind("Transcript.Ready",function(a,b){if(P3.Util.params("p3ts")&&!parent.settings.onload_transcript_search_handled){var c=unescape(P3.Util.params("p3ts"));$(parent.container).find(".p3-transcript-search").val(c),parent.search_transcript(c,"topbar_search"),parent.settings.onload_transcript_search_handled=!1}}),parent.instance.event.trigger("Transcript.TemplateRendered"),this.social='',this.templates={},this.templates.transcript_only='

Loading Transcript...

',this.templates.bottom_search='

Loading Transcript...

3 results
',this.templates["default"]='
 
[%= P3.Util.nice_searchbox({classname:"p3-transcript-search",placeholder:search_placeholder}) %]
 
[% if (can_clip) { %] Clip [% } %] [% if (can_print) { %] Print [% } if (can_download) { %] Download [% } %] [% if ((!global_unlock) && locked != "never") { %] Unlock [% } %]

Loading Transcript...

[% if (can_collapse) { %] [%=collapse_label%] [% } %] [% if (scan_view) { %] Scan View [% } %] [% if (transcript_versions) { %] [% } %]
',this.init()},P3.Captions=function(instance,options){var $=P3.JQuery,parent=this;this.instance=instance,this.initialized=!1,this.cached_duration=!1,this.minimized_fade_out_timer=!1,this.settings={api_key:!1,skin:!1,file_id:!1,srt_url:!1,srt_url_convention:!1,overlay:!1,overlay_draggable:!1,overlay_offset_x:!1,overlay_offset_y:!1,overlay_minimized_offset_x:!1,overlay_minimized_offset_y:!1,minimize_onload:!1,tracks:!1,cross_domain_loader:!0,cross_domain_dynamic_callback:!0,hide_onerror:!1,menubar:!0,menu_header:!1,searchbar:!0,toggler_enabled:!1,toggler_show_text:"Show Closed Captions",toggler_hide_text:"Hide Closed Captions",toggler_hide_onload:!1,captions_offset:!1,captions_start:!1,captions_end:!1,width:"280px",height:"40px",floater_position:"auto"},this.frames=!1,this.init=function(){if(this.initialized)return!0;$.each(options.captions,function(a){parent.settings[a]=options.captions[a]}),parent.settings.height="40px",parent.settings.file_id||(parent.settings.file_id=parent.instance.settings.file_id),parent.settings.api_key||(parent.settings.api_key=P3.Settings.api_key),this.render(),this.listen(),this.initialized=!0},this.die=function(){$(this.container).remove()},this.duration=function(){return this.cached_duration?this.cached_duration:(this.cached_duration=parent.instance.player.interface.duration(),this.cached_duration)},this.container=!1,this.render=function(){if($.browser.msie&&parseFloat($.browser.version)<8||P3.Util.is_ipad())this.settings.overlay=!1,this.settings.minimize_onload=!1,this.settings.width=$(parent.instance.player.player).outerWidth(),this.settings.fallback_skin!==!1&&(this.settings.skin=this.settings.fallback_skin);var a=(new EJS({text:parent.template,type:"["})).render(parent.settings),b=$(a);this.settings.overlay?($(document.body).append(b),parent.container=b,$(parent.instance.player.player).attr("wmode","opaque"),$(b).addClass("overlay"),this.settings.overlay_draggable&&$(b).draggable({handle:":not(.p3-captions-maximizer,.p3-captions-maximizer-arrow,.p3-captions-maximizer-cc)",drag:function(){parent.cache_overlay_position(),parent.remove_floater()}}),$(b).hide(),setTimeout(function(){$(b).show(),parent.position_overlay(),parent.settings.minimize_onload&&(parent.minimize(-1),parent.minimized_fade_out())},1)):(parent.settings.target?$("#"+parent.settings.target).html(b):$(parent.instance.player.player).after(b),parent.container=b,$(b).css({position:"static",display:"block",clear:"both"})),this.settings.width&&$(b).css("width",parseInt(this.settings.width,10)),$(b).attr("owidth",$(b).width()),this.apply_skin(),this.initialize_captions(),this.adjust_components();if(!this.settings.minimize_onload||!this.settings.overlay)setTimeout(function(){parent.adjust_components()},10),setTimeout(function(){parent.adjust_components()},50),setTimeout(function(){parent.adjust_components()},100),setTimeout(function(){parent.adjust_components()},250),setTimeout(function(){parent.adjust_components()},500);if(this.settings.toggler_enabled){var a=(new EJS({text:parent.toggler_template,type:"["})).render(parent.settings),c=$("
");$(c).html(a),this.settings.toggler_target?$(this.settings.toggler_target).html(c):$(b).after(c),$(c).find("a").attr("instance_index",parent.instance.instance_index)}this.settings.toggler_hide_onload&&$(b).hide(),parent.instance.event.trigger("Captions.TemplateRendered")},this.render_floater=function(a){this.remove_floater();var b=(new EJS({text:a,type:"["})).render(parent.settings),c=$("
"+b+"
");$(document.body).append(c),$(c).addClass(parent.settings.skin);var d=Math.max(0,$(parent.container).offset().top+.5*($(parent.container).outerHeight()-$(c).outerHeight())),e=$(parent.container).offset().left+$(parent.container).outerWidth();$(c).css({top:d,left:e});var f=P3.Util.window_dimensions().width;if(f<$(c).offset().left+$(c).outerWidth()||parent.settings.floater_position=="bottom"){var d=Math.max(0,$(parent.container).offset().top+$(parent.container).outerHeight()),e=$(parent.container).offset().left+$(parent.container).outerWidth()-$(c).outerWidth();$(c).addClass("no-pointer"),$(c).css({top:d,left:e})}if(parent.settings.floater_position=="top"){var d=Math.max(0,$(parent.container).offset().top-$(c).outerHeight()),e=$(parent.container).offset().left+$(parent.container).outerWidth()-$(c).outerWidth();$(c).addClass("no-pointer"),$(c).css({top:d,left:e})}},this.remove_floater=function(){$(".p3-captions-widget").find(".active").removeClass("active"),$(".p3-captions-floater").remove()},this.hide_components=function(){return!1;var a,b,c,d},this.listen=function(){$(document).click(function(a){var b=a.target;$(b).parents(".p3-captions-floater").length==0&&!$(b).hasClass("p3-captions-floater")&&$(b).parents(".p3-container").length==0&&parent.remove_floater()}),$(parent.container).find(".p3-captions-minimizer").click(function(){parent.minimize()}),$(parent.container).find(".p3-captions-maximizer").click(function(){parent.maximize()}),$(".p3-captions-toggler-container a[instance_index="+parent.instance.instance_index+"]").click(function(a){var b=parseInt($(this).attr("instance_index"),10);return $(this).attr("state")=="hidden"?($(this).attr("state","visible"),$(this).html(parent.settings.toggler_hide_text),P3.get(b).captions.container.show(),P3.get(b).captions.adjust_components()):($(this).attr("state","hidden"),$(this).html(parent.settings.toggler_show_text),P3.get(b).captions.container.hide()),!1}),$(this.container).find(".p3-captions-search").click(function(a){return $(this).hasClass("active")?parent.remove_floater():($(".p3-captions-widget").find(".active").removeClass("active"),parent.render_floater(parent.search_box),$(this).addClass("active"),P3.Util.is_ios()||$(".p3-captions-floater").find(".p3-captions-searchterm").focus(),$(".p3-captions-floater").find(".p3-captions-searchterm").unbind("keyup"),$(".p3-captions-floater").find(".p3-captions-searchterm").keyup(function(a){clearTimeout(parent.settings.search_timeout);var b=this,c=$.browser.msie?500:250;parent.settings.search_timeout=setTimeout(function(){parent.search_captions($(b).val()),$(".p3-captions-searchresult").click(function(a){parent.instance.player.interface.play_state()!="PLAYING"&&parent.instance.player.interface.play(),parent.instance.player.interface.seek(parseInt($(this).attr("ms"),10))}),$(".p3-captions-searchresult:first").addClass("first"),$(".p3-captions-searchresult:last").addClass("last")},c)})),!1}),$(this.container).find(".p3-captions-menu").click(function(a){return $(this).hasClass("active")?parent.remove_floater():($(".p3-captions-widget").find(".active").removeClass("active"),parent.render_floater(parent.menu_box),$(this).addClass("active"),$(".p3-captions-floater").find(".p3-caption-track").each(function(){if(parent.settings.current_track&&$(this).html()==parent.settings.current_track)return $(this).addClass("selected"),!1}),$(".p3-captions-floater").find(".p3-caption-track").click(function(){$(this).siblings().removeClass("selected"),$(this).addClass("selected"),parent.load_track($(this).html())}),$(".p3-captions-floater").find("li:first").addClass("first"),$(".p3-captions-floater").find("li:last").addClass("last")),!1}),parent.settings.overlay&&($(parent.instance.player.player).mouseover(function(a){$(parent.container).hasClass("minimized")&&parent.minimized_fade_in()}),$(parent.instance.player.player).parent().mouseover(function(a){$(parent.container).hasClass("minimized")&&parent.minimized_fade_in()}),$(parent.instance.player.player).mouseout(function(a){$(parent.container).hasClass("minimized")&&parent.minimized_fade_out()}),$(parent.instance.player.player).parent().mouseout(function(a){$(parent.container).hasClass("minimized")&&parent.minimized_fade_out()}))},this.apply_skin=function(a){a=a||parent.settings.skin;if(!a)return!1;a=/p3\-captions\-skin/.test(a)?a:"p3-captions-skin-"+a;if(a){var b=$(this.container),c=b.attr("class").split(/\s+/);$.each(c,function(a){var d=c[a];/p3-captions-skin/i.test(d)&&b.removeClass(d)}),b.addClass(a)}},this.adjust_components=function(){$(this.container).css({width:parseInt(parent.settings.width,10)+"px",height:parseInt(parent.settings.height,10)+"px"}),$(this.container).find(".p3-captions-components").css({width:parseInt(parent.settings.width,10)+"px",height:parseInt(parent.settings.height,10)+"px"}),$(this.container).find(".p3-captions-components").children().css({height:parseInt(parent.settings.height,10)+"px"});var a=$(this.container).find(".p3-captions-frame"),b=a.children(),c=$(this.container).width();$(a).siblings().each(function(){c-=$(this).outerWidth(),c-=parseFloat($(this).css("margin-left")),c-=parseFloat($(this).css("margin-right"))}),P3.Util.is_ie()&&(c-=2),$(a).css("width",c+"px"),$(b).css("width",c+"px");var d=Math.max(0,Math.min(6,($(a).height()-$(b).height())/2));$(b).css("padding-top",d+"px"),$(b).css("padding-bottom",d+"px"),parent.position_overlay()},this.initialize_captions=function(){parent.settings.tracks?$.each(parent.settings.tracks,function(a){return parent.load_track(a),!1}):this.load_captions()},this.load_captions=function(){return parent.instance.settings.platform_integration&&this.settings.srt_url_convention&&(this.settings.srt_url=this.settings.srt_url_convention.replace("{file_id}",this.settings.file_id)),this.settings.srt_url?this.load_external_srt_url():this.load_static_srt_captions()},this.load_external_srt_url=function(a){a=a||this.settings.srt_url,parent.settings.cross_domain_loader?(parent.settings.cross_domain_dynamic_callback&&(a+=/\?/.test(a)?"&":"?",a+="callback=P3.instances["+parent.instance.instance_index+"].captions.parse_captions_data"),P3.Util.load_remote_script(a)):$.get(a,function(a){parent.frames=parent.srt_lines_to_frames(a.split(/[\r\n]+/))})},this.load_static_srt_captions=function(){var a=document.createElement("script");a.src=this.static_srt_url(),a.type="text/javascript",$(parent.container).get(0).appendChild(a)},this.timing_info=function(){var a=["captions_offset","captions_start","captions_end"],b=[];for(var c=0;cload captions."),parent.instance.event.trigger("Captions.LoadError")},this.srt_lines_to_frames=function(a){var b=[],c={},d=0,e=/\s*\-\-\>\s*/,f=/^\d+$/;return $.each(a,function(g){var h=a[g].replace(/^\s+|\s+$/,"");switch(!0){case e.test(h):c.lines&&(b.push(c),c={});var i=h.split(e);c.start_ms=P3.Util.stamp_to_ms(i[0]),c.end_ms=P3.Util.stamp_to_ms(i[1]),c.lines=[];break;case f.test(h)&&parseInt(h)==d+1:d+=1;break;case h=="":break;default:c.lines&&c.lines.push(h)}}),c&&c.start_ms&&c.end_ms&&b.push(c),b},this.minimize=function(a){parent.remove_floater(),a=a||150;var b=parent.minimized_position();parent.cache_overlay_position();var c={width:"34px",height:"20px",top:b.top,left:b.left};$(parent.container).addClass("minimized"),$(parent.container).children().hide(),a>0?$(parent.container).animate(c,a,function(){$(parent.container).find(".p3-captions-maximizer").show(),$(parent.container).find(".p3-captions-maximizer").children().show()}):($(parent.container).css(c),$(parent.container).find(".p3-captions-maximizer").show(),$(parent.container).find(".p3-captions-maximizer").children().show())},this.maximize=function(a){a=a||150;var b=parent.overlay_position();clearTimeout(parent.minimized_fade_out_timer),$(parent.container).removeClass("minimized"),$(parent.container).fadeIn(1),$(parent.container).find(".p3-captions-maximizer").hide(),$(parent.container).animate({width:parseInt(parent.settings.width,10)+"px",height:parseInt(parent.settings.height,10)+"px",top:b.top,left:b.left},a,function(){$(parent.container).children().show(),$(parent.container).find(".p3-captions-maximizer").hide(),parent.adjust_components(),setTimeout(function(){parent.adjust_components()},10)})},this.minimized_fade_out=function(){parent.minimized_fade_out_timer=setTimeout(function(){if(!parent.container.hasClass("minimized"))return!1;$(parent.container).fadeOut(500)},3e3)},this.minimized_fade_in=function(a){a=a||500,clearTimeout(parent.minimized_fade_out_timer),$(parent.container).fadeIn(a)},this.cache_overlay_position=function(){var a=$(parent.container).offset();$(parent.container).attr("cache_top",a.top),$(parent.container).attr("cache_left",a.left)},this.position_overlay=function(){if(!parent.settings.overlay)return!1;var a=parent.overlay_position();$(parent.container).css({top:a.top,left:a.left})},this.overlay_position=function(){if(typeof $(parent.container).attr("cache_top")!="undefined"&&typeof $(parent.container).attr("cache_left")!="undefined")return{top:$(parent.container).attr("cache_top"),left:$(parent.container).attr("cache_left")};var a=parent.instance.player.player,b=parent.container,c=$(a).offset(),d=$(a).outerWidth(),e=$(a).outerHeight(),f=$(b).outerWidth(),g=$(b).outerHeight(),h=c.top+e-g;h+=typeof parent.settings.overlay_offset_y=="number"?parent.settings.overlay_offset_y:0;var i=c.left;return i+=typeof parent.settings.overlay_offset_x=="number"?parent.settings.overlay_offset_x:(d-f)/2,{top:h,left:i}},this.minimized_position=function(){var a=parent.instance.player.player,b=$(a).offset(),c=$(a).outerWidth(),d=$(a).outerHeight(),e=b.top+d-34;e+=typeof parent.settings.overlay_minimized_offset_y=="number"?parent.settings.overlay_minimized_offset_y:0;var f=b.left+c-40;return f+=typeof parent.settings.overlay_minimized_offset_x=="number"?parent.settings.overlay_minimized_offset_x:0,{top:e,left:f}},this.render_line=function(a){var b=/\/i;a.length>32&&!b.test(a)&&(a=parent.waterfall(a)),a=a.replace(/^\/,""),a=b.test(a)?a:a+"
 ";if(a==$(parent.container).find(".p3-captions-frame-lines").html())return!1;$(parent.container).find(".p3-captions-frame-lines").html(a)},this.waterfall=function(a){a=a.replace(/^\s+|\s+$/,"");var b=" ";/\s+/.test(a)?arr=a.split(/\s+/):(arr=a.split(""),b="");var c=arr,d=[],e=Math.abs(c.join(" ").length-d.join(" ").length);d.push(c.pop());while(Math.abs(c.join(" ").length-d.join(" ").length)"+d.join(b)},this.track=function(a){if(!parent.frames)return!1;var b=!1,c=!1;$.each(parent.frames,function(d){if(a>=parent.frames[d].start_ms&&a<=parent.frames[d].end_ms)return c=parent.frames[d],b=!0,!1}),b||(c=parent.frames[parent.frames.length-1]);var d=c.lines.join("
"),e={text:d,frame_ms:c.start_ms,current_ms:a};parent.instance.event.trigger("Captions.FrameRendered",e),parent.render_line(d)},this.search_captions=function(str){$(".p3-captions-searchresults").html("
No matches found
");var scrubbed=str.replace(/^\s+|\s+$/,"").replace(/\s+/,"|");if(!scrubbed)return!1;$(".p3-captions-searchresults").html("");var re=eval("/("+scrubbed.replace(/^\s+|\s+$/).replace(/\s+/,"|")+")/i"),re_g=eval("/("+scrubbed.replace(/^\s+|\s+$/).replace(/\s+/,"|")+")/ig"),matches=0,last_ms=parent.frames[parent.frames.length-1].start_ms;$.each(parent.frames,function(a){var b=parent.frames[a].lines.join(" ");if(re.test(b)){matches++,pct=100*(parent.frames[a].start_ms/last_ms)+"%",b=b.replace(re_g,"$1"),obj={text:b,stamp:P3.Util.ms_to_stamp(parent.frames[a].start_ms),ms:parent.frames[a].start_ms,pct:pct};var c=(new EJS({text:parent.search_result,type:"["})).render(obj);$(".p3-captions-searchresults").append(c)}});if(matches==0){var result="
No matches found
";$(".p3-captions-searchresults").append(result)}$(".p3-captions-searchresults").find(".p3-captions-searchresult:first").addClass("first"),$(".p3-captions-searchresults").find(".p3-captions-searchresult:last").addClass("last")},$(instance).bind("Player.Ready",function(a,b){parent.init()}),$(instance).bind("Player.Progress",function(a,b){if(b.video_id&&b.video_id!=parent.settings.file_id)return parent.instance.settings.file_id=b.video_id,parent.settings.file_id=b.video_id,parent.load_captions(),!1;parent.track(b.m)}),$(instance).bind("Player.VideoLoad",function(a,b){parent.instance.settings.file_id=b.video_id,parent.settings.file_id=b.video_id,parent.load_captions()}),this.template='
[% if (overlay) { %]
cc
[% } %]
[% if (overlay) { %]
x
[% } %]
 
 
[% if (searchbar == true) { %] [% } %] [% if (menubar && tracks && typeof tracks == "object") { %]
[% } %]
',this.toggler_template='[%=toggler_hide_onload ? toggler_show_text : toggler_hide_text %]',this.cc_button='
CC
',this.search_box='
Type to search this video
',this.search_result='
[%= stamp %]
[%= text %]
',this.menu_box='
[%= menu_header ? "

" + menu_header + "

" : "" %]
    [% for (i in tracks) { %]
  • [%=i%]
  • [% } %]
'},P3.Playlist=function(instance,options){var $=P3.JQuery,parent=this;this.instance=instance,this.searchterm="",this.settings={target:!1,width:"400px",playlist_height:"400px",skin:"",suggested_search_terms:[],onload_function:"all_files",search_box_placeholder:"Search by phrase, name, keyword...",list_sort_by:"id:desc",search_sort_by:"",show_segments:!0,show_thumbnails:!0,show_all_results:!1,per_page:10,project_id:!1,linked_account_id:!1,folder_id:!1,base_url:location.protocol+"//static.3playmedia.com/",api_key:!1},this.container=$("#"+options.playlist.target),this.init=function(){$.each(options.playlist,function(a){parent.settings[a]=options.playlist[a]});if(!parent.settings.target)return!1;parent.settings.api_key||(parent.settings.api_key=P3.Settings.api_key),parent.settings.per_page=Math.min(parent.settings.per_page,100),parent.settings.width=parseInt(parent.settings.width.toString().replace("px",""),10),parent.settings.width=Math.min(parent.settings.width,800),parent.settings.playlist_height=parseInt(parent.settings.playlist_height.toString().replace("px",""),10),parent.settings.playlist_height=Math.max(parent.settings.playlist_height,150),this.render(),this.apply_skin(),this.listen();if(parent.settings.onload_function)try{eval("parent."+parent.settings.onload_function+"()")}catch(e){}},this.render=function(){var a=(new EJS({text:parent.template,type:"["})).render(parent.settings);$(this.container).html(a),this.collection_container=$(this.container).find(".p3-playlist-container"),$(this.collection_container).css({width:parent.settings.width}),$(this.collection_container).find(".p3-playlist-results").css({height:parent.settings.playlist_height}),$(this.container).find("input[type=text]").each(function(){var a=$(this).val();$(this).attr("oval",a)}),parent.instance.event.trigger("Playlist.TemplateRendered")},this.apply_skin=function(a){a=a||parent.settings.skin;if(a){var b=$(this.collection_container),c=b.attr("class").split(/\s+/);$.each(c,function(a){var d=c[a];d!="p3-playlist-container"&&b.removeClass(d)}),b.addClass(a),this.settings.skin=a}parseInt(parent.settings.width.toString().replace("px",""),10)<=250&&$(this.collection_container).addClass("p3-playlist-narrow")},this.listen=function(){$(this.container).find(".p3-playlist-suggested-results").live("mouseover",function(a){$(this).hasClass("drop_up")?msg="Show Keywords":msg="Hide Keywords",P3.Util.tooltip(a,msg,parent.settings.skin,".p3-playlist-container")}),$(this.container).find(".p3-playlist-ul li a").live("click",function(a){var b=$(this).parents("li:first");if($(b).attr("video_id")==parent.instance.player.interface.video_id())return!1;$(parent.container).find(".p3-playlist-currently-loading").removeClass("p3-playlist-currently-loading"),$(b).addClass("p3-playlist-currently-loading"),parent.instance.player.load_video({video_id:$(b).attr("video_id"),m:0})}),$(this.container).find(".p3-playlist-suggested-search-terms a").live("click",function(a){var b=$(this).html();$(parent.container).find(".p3-playlist-searchterm").val(b),parent.search(b)}),$(this.container).find(".p3-playlist-suggested-results").live("click",function(a){$(".p3_floating_segment").remove();var b=$(parent.container).find(".p3-playlist-suggested-search-terms");if($(parent.container).find(".p3-playlist-suggested-search-terms:visible").length==1){var c=b.outerHeight();b.attr("oheight",c),b.slideUp(200),$(this).addClass("drop_up"),$(parent.container).find(".p3-playlist-results").animate({height:"+="+c},200)}else{var c=b.attr("oheight");$(this).removeClass("drop_up"),b.slideDown(200),$(parent.container).find(".p3-playlist-results").animate({height:"-="+c},200)}}),$(this.container).find(".p3-playlist-searchterm").keyup(function(a){(a.keyCode||a.which)==27&&parent.clear_search()}),$(this.container).find(".p3-playlist-search-form").submit(function(a){var b=$(parent.container).find(".p3-playlist-searchterm").val();return parent.search(b),!1}),$(this.container).find(".p3-playlist-search-reset").live("click",function(a){parent.clear_search()}),$(this.container).find(".p3-playlist-prev-video").live("click",function(a){var b=parent.settings.current_page-1;if(b<=0)return!1;parent.load_method=="search"?parent.search(parent.searchterm,b):parent.all_files(!1,b)}),$(this.container).find(".p3-playlist-next-video").live("click",function(a){var b=parent.settings.current_page+1;if(b>parent.settings.total_pages)return!1;parent.load_method=="search"?parent.search(parent.searchterm,b):parent.all_files(!1,b)});var a=".p3-playlist-segmentmap td";a+=parent.settings.show_all_results?"":".hit",$(this.container).find(a).live("click",function(a){parent.load_segment({num:$(this).attr("num"),segs_per:$(this).attr("segs_per"),video_id:$(this).attr("video_id"),evt:a})}),$(".p3-playlist-close-segment").live("click",function(a){$(".p3_floating_segment").remove()}),$(".p3-playlist-play-from").live("click",function(a){var b=$(this).attr("video_id"),c=parseInt($(this).attr("m"),10);parent.instance.player.interface.video_id()==b?(parent.instance.player.interface.play(),setTimeout(function(){parent.instance.player.interface.seek(c)},0)):($(".p3-playlist-ul li").removeClass("p3-playlist-currently-loading"),$(".p3-playlist-ul li[video_id="+b+"]").addClass("p3-playlist-currently-loading"),parent.instance.player.load_video({video_id:b,m:c}))}),$(".p3_floating_segment .hit").live("click",function(a){$(this).siblings().removeClass("active_hit"),$(this).addClass("active_hit");var b=$(this).attr("ind"),c=$(this).parents(".p3_floating_segment:first"),d=c.find("p.segment_content:visible:eq("+b+")").offset().top-c.find("p.segment_content:visible:eq(0)").offset().top;c.find(".floating_segment_content").scrollTop(d)}),$(this.container).find(".p3-playlist-results").scroll(function(a){$(".p3_floating_segment").remove()})},this.api_request=function(a,b,c){c=c||"js";var d=parent.settings.base_url;d+="p/projects/"+parent.settings.project_id,a&&(d+="/"+a),d+="."+c,arr=[];for(i in b)arr.push(i+"="+encodeURIComponent(b[i]));d+="?"+arr.join("&"),parent.settings.folder_id&&(d+="&batch_id="+parent.settings.folder_id),P3.Util.load_remote_script(d)},this.all_files=function(a,b){this.load_method="all_files";var c="linked_accounts/"+parent.settings.linked_account_id+"/playlist",d={page:b||1,per_page:parent.settings.per_page||10,sortby:parent.settings. -list_sort_by.split(":")[0],desc:/\:desc$/.test(parent.settings.list_sort_by)?"1":"0",callback:"P3.instances["+parent.instance.instance_index+"].playlist.parse_playlist_results"};parent.api_request(c,d)},this.clear_search=function(){$(this.container).find(".p3-playlist-search-reset").hide(),$(this.container).find(".p3-playlist-searchterm").val(""),this.all_files()},this.search=function(a,b){var b=b||1,c=parent.settings.per_page||10;a=a||"",a=a.replace(/^\s+|\s+$/,"");if(!a)return this.load_method=="search"&&parent.all_files(),!1;$(parent.container).find(".p3-playlist-search-reset").show(),this.searchterm=a,this.load_method="search";var d="linked_accounts/"+parent.settings.linked_account_id+"/segmentmap",e={page:b||1,query:a,per_page:parent.settings.per_page||10,sortby:parent.settings.search_sort_by,callback:"P3.instances["+parent.instance.instance_index+"].playlist.parse_playlist_results"};parent.api_request(d,e)},this.load_segment=function(a){parent.settings.segment_target_event=a.evt;var b="files/"+a.video_id+"/segments/"+a.num,c={usevideoid:1,segs:a.segs_per,callback:"P3.instances["+parent.instance.instance_index+"].playlist.parse_transcript_segment"};parent.api_request(b,c)},this.parse_transcript_segment=function(obj){$(".p3_floating_segment").remove();var file_id=obj.segments[0].file_id,tr=$(".p3-playlist-container").find("tr[file_id="+file_id+"]"),video_id=$(tr).attr("video_id");obj.video_id=video_id,obj.file_id=file_id;var html=(new EJS({text:parent.segment,type:"["})).render(obj),targ=$(tr).parents("table:first"),offset=$(".p3-playlist-container").offset(),width=Math.min(Math.max(250,$(targ).outerWidth()-40),450),height=$(targ).outerHeight(),div=$("
");$(div).addClass("p3_floating_segment"),$(div).addClass(parent.settings.skin),$(div).attr("instance_index",parent.instance.instance_index),$(div).html(html),$(document.body).append(div),ll=$(parent.settings.segment_target_event.target).offset().left,ll=ll-$(parent.settings.segment_target_event.target).parents("tbody:first").offset().left-2,ll=Math.max(ll,0),$(".p3-floating-segment-point").css("left",ll);if(parent.searchterm){var hit_counter=0;$(".p3_floating_segment").find(".segment_content").each(function(){var html=$(this).find("span:last").html();searchterm=parent.searchterm,typeof Snowball!="undefined"&&(parent.stemmer=parent.stemmer||new Snowball("English"),searchterm=$.map(searchterm.split(/\s+/),function(a,b){return parent.stemmer.setCurrent(a),parent.stemmer.stem(),parent.stemmer.getCurrent()+"[a-zA-Z]*"}),searchterm.indexOf(parent.searchterm)<0&&searchterm.push(parent.searchterm),searchterm=searchterm.join(" "));var re=eval("/("+searchterm.replace(/[\"]/g,"").replace(/^\s+|\s+$/).replace(/\s+/g,"|")+")/ig");re.test(html)||parent.settings.show_all_results?(html=html.replace(re,"$1"),$(this).find("span:last").html(html),$(".paragraph_hits ul").append("
  •    
  • "),hit_counter++):$(this).hide()}),hit_counter<=1&&$(".paragraph_hits").css("visibility","hidden")}$(div).css({position:"absolute",zIndex:1e15,top:$(tr).offset().top+17+"px",left:$(tr).offset().left+"px",width:width+"px",height:"110px"})},this.parse_playlist_results=function(a){$(".p3_floating_segment").remove(),a.instance_index=parent.instance_index,a.searchterm=parent.searchterm,a.settings=parent.settings,a.load_method=parent.load_method;if(a.summary.total_entries>0){var b=(new EJS({text:parent.files_list,type:"["})).render(a);$(this.container).find(".p3-playlist-results").fadeTo(150,.6,function(){$(this).html(b),$(this).fadeTo(150,1)}),parent.settings.current_page=a.summary.current_page,parent.settings.total_pages=a.summary.total_pages,$(this.container).find(".p3-playlist-progress-summary").html("page "+a.summary.current_page+" of "+a.summary.total_pages)}else{var b=(new EJS({text:parent.empty_files_list,type:"["})).render(a);$(this.container).find(".p3-playlist-results").html(b),$(this.container).find(".p3-playlist-progress-summary").html("0 results")}parent.load_method=="search"?parent.instance.event.trigger("Playlist.SearchResult",{searchterm:a.searchterm}):parent.instance.event.trigger("Playlist.AllFiles")},this.segment='
       
      [% for (i=0;i [%=P3.Util.ms_to_stamp(segments[i].timestamp)%] "... [%= segments[i].content %]..."

      [% } %]
      ',this.empty_files_list='

      No results!

      ',this.files_list='',this.template='
       
      [% if (typeof suggested_search_terms == "object" && suggested_search_terms.length > 0) { %]
      Keywords:  [% for (i=0;i[%=suggested_search_terms[i]%] [% } %]
      [% } %]
       
      ',$(instance).bind("Player.Progress",function(a,b){var c=$(parent.container).find("li[video_id="+b.video_id+"]");if(c.hasClass("p3-playlist-currently-playing"))return!1;$(parent.container).find("li.p3-playlist-currently-playing").removeClass("p3-playlist-currently-playing"),c.removeClass("p3-playlist-currently-loading"),c.addClass("p3-playlist-currently-playing")}),this.init()} \ No newline at end of file diff --git a/web/app/themes/mitlib-moh/js/libs/easyXDM.min.js b/web/app/themes/mitlib-moh/js/libs/easyXDM.min.js deleted file mode 100644 index 14a70a07..00000000 --- a/web/app/themes/mitlib-moh/js/libs/easyXDM.min.js +++ /dev/null @@ -1,24 +0,0 @@ -/** - * easyXDM - * http://easyxdm.net/ - * Copyright(c) 2009-2011, Øyvind Sean Kinsey, oyvind@kinsey.no. - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in - * all copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN - * THE SOFTWARE. - */ -(function(e,t,n,r,i,s){function w(e,t){var n=typeof e[t];return n=="function"||n=="object"&&!!e[t]||n=="unknown"}function E(e,t){return typeof e[t]=="object"&&!!e[t]}function S(e){return Object.prototype.toString.call(e)==="[object Array]"}function x(){var e="Shockwave Flash",t="application/x-shockwave-flash";if(!q(navigator.plugins)&&typeof navigator.plugins[e]=="object"){var n=navigator.plugins[e].description;n&&!q(navigator.mimeTypes)&&navigator.mimeTypes[t]&&navigator.mimeTypes[t].enabledPlugin&&(y=n.match(/\d+/g))}if(!y){var r;try{r=new ActiveXObject("ShockwaveFlash.ShockwaveFlash"),y=Array.prototype.slice.call(r.GetVariable("$version").match(/(\d+),(\d+),(\d+),(\d+)/),1),r=null}catch(i){}}if(!y)return!1;var s=parseInt(y[0],10),o=parseInt(y[1],10);return b=s>9&&o>0,!0}function A(){if(C)return;C=!0;for(var e=0;e'):(n=t.createElement("IFRAME"),n.name=e.props.name),n.id=n.name=e.props.name,delete e.props.name,typeof e.container=="string"&&(e.container=t.getElementById(e.container)),e.container||(U(n.style,{position:"absolute",top:"-2000px",left:"0px"}),e.container=t.body);var r=e.props.src;e.props.src="javascript:false",U(n,e.props),n.border=n.frameBorder=0,n.allowTransparency=!0,e.container.appendChild(n),e.onLoad&&T(n,"load",e.onLoad);if(e.usePost){var i=e.container.appendChild(t.createElement("form")),s;i.target=n.name,i.action=r,i.method="POST";if(typeof e.usePost=="object")for(var o in e.usePost)e.usePost.hasOwnProperty(o)&&(m?s=t.createElement(''):(s=t.createElement("INPUT"),s.name=o),s.value=e.usePost[o],i.appendChild(s));i.submit(),i.parentNode.removeChild(i)}else n.src=r;return e.props.src=r,n}function X(e,t){typeof e=="string"&&(e=[e]);var n,r=e.length;while(r--){n=e[r],n=new RegExp(n.substr(0,1)=="^"?n:"^"+n.replace(/(\*)/g,".$1").replace(/\?/g,".")+"$");if(n.test(t))return!0}return!1}function V(r){var i=r.protocol,s;r.isHost=r.isHost||q(I.xdm_p),g=r.hash||!1,r.props||(r.props={});if(!r.isHost){r.channel=I.xdm_c.replace(/["'<>\\]/g,""),r.secret=I.xdm_s,r.remote=I.xdm_e.replace(/["'<>\\]/g,""),i=I.xdm_p;if(r.acl&&!X(r.acl,r.remote))throw new Error("Access denied for "+r.remote)}else r.remote=j(r.remote),r.channel=r.channel||"default"+u++,r.secret=Math.random().toString(16).substring(2),q(i)&&(B(n.href)==B(r.remote)?i="4":w(e,"postMessage")||w(t,"postMessage")?i="1":r.swf&&w(e,"ActiveXObject")&&x()?i="6":navigator.product==="Gecko"&&"frameElement"in e&&navigator.userAgent.indexOf("WebKit")==-1?i="5":r.remoteHelper?i="2":i="0");r.protocol=i;switch(i){case"0":U(r,{interval:100,delay:2e3,useResize:!0,useParent:!1,usePolling:!1},!0);if(r.isHost){if(!r.local){var o=n.protocol+"//"+n.host,a=t.body.getElementsByTagName("img"),f,l=a.length;while(l--){f=a[l];if(f.src.substring(0,o.length)===o){r.local=f.src;break}}r.local||(r.local=e)}var c={xdm_c:r.channel,xdm_p:0};r.local===e?(r.usePolling=!0,r.useParent=!0,r.local=n.protocol+"//"+n.host+n.pathname+n.search,c.xdm_e=r.local,c.xdm_pa=1):c.xdm_e=j(r.local),r.container&&(r.useResize=!1,c.xdm_po=1),r.remote=F(r.remote,c)}else U(r,{channel:I.xdm_c,remote:I.xdm_e,useParent:!q(I.xdm_pa),usePolling:!q(I.xdm_po),useResize:r.useParent?!1:r.useResize});s=[new p.stack.HashTransport(r),new p.stack.ReliableBehavior({}),new p.stack.QueueBehavior({encode:!0,maxLength:4e3-r.remote.length}),new p.stack.VerifyBehavior({initiate:r.isHost})];break;case"1":s=[new p.stack.PostMessageTransport(r)];break;case"2":r.remoteHelper=j(r.remoteHelper),s=[new p.stack.NameTransport(r),new p.stack.QueueBehavior,new p.stack.VerifyBehavior({initiate:r.isHost})];break;case"3":s=[new p.stack.NixTransport(r)];break;case"4":s=[new p.stack.SameOriginTransport(r)];break;case"5":s=[new p.stack.FrameElementTransport(r)];break;case"6":y||x(),s=[new p.stack.FlashTransport(r)]}return s.push(new p.stack.QueueBehavior({lazy:r.lazy,remove:!0})),s}function $(e){var t,n={incoming:function(e,t){this.up.incoming(e,t)},outgoing:function(e,t){this.down.outgoing(e,t)},callback:function(e){this.up.callback(e)},init:function(){this.down.init()},destroy:function(){this.down.destroy()}};for(var r=0,i=e.length;r<'+"/script>")}},function(){var e={};p.Fn={set:function(t,n){e[t]=n},get:function(t,n){var r=e[t];return n&&delete e[t],r}}}(),p.Socket=function(e){var t=$(V(e).concat([{incoming:function(t,n){e.onMessage(t,n)},callback:function(t){e.onReady&&e.onReady(t)}}])),n=B(e.remote);this.origin=B(e.remote),this.destroy=function(){t.destroy()},this.postMessage=function(e){t.outgoing(e,n)},t.init()},p.Rpc=function(e,t){if(t.local)for(var n in t.local)if(t.local.hasOwnProperty(n)){var r=t.local[n];typeof r=="function"&&(t.local[n]={method:r})}var i=$(V(e).concat([new p.stack.RpcBehavior(this,t),{callback:function(t){e.onReady&&e.onReady(t)}}]));this.origin=B(e.remote),this.destroy=function(){i.destroy()},i.init()},p.stack.SameOriginTransport=function(e){var t,i,s,o;return t={outgoing:function(e,t,n){s(e),n&&n()},destroy:function(){i&&(i.parentNode.removeChild(i),i=null)},onDOMReady:function(){o=B(e.remote),e.isHost?(U(e.props,{src:F(e.remote,{xdm_e:n.protocol+"//"+n.host+n.pathname,xdm_c:e.channel,xdm_p:4}),name:v+e.channel+"_provider"}),i=W(e),p.Fn.set(e.channel,function(e){return s=e,r(function(){t.up.callback(!0)},0),function(e){t.up.incoming(e,o)}})):(s=_().Fn.get(e.channel,!0)(function(e){t.up.incoming(e,o)}),r(function(){t.up.callback(!0)},0))},init:function(){M(t.onDOMReady,t)}}},p.stack.FlashTransport=function(e){function c(e,t){r(function(){i.up.incoming(e,a)},0)}function d(n){var r=e.swf+"?host="+e.isHost,i="easyXDM_swf_"+Math.floor(Math.random()*1e4);p.Fn.set("flash_loaded"+n.replace(/[\-.]/g,"_"),function(){p.stack.FlashTransport[n].swf=f=l.firstChild;var e=p.stack.FlashTransport[n].queue;for(var t=0;t"+""+""+""+""+""+""}var i,s,u,a,f,l;return i={outgoing:function(t,n,r){f.postMessage(e.channel,t.toString()),r&&r()},destroy:function(){try{f.destroyChannel(e.channel)}catch(t){}f=null,s&&(s.parentNode.removeChild(s),s=null)},onDOMReady:function(){a=e.remote,p.Fn.set("flash_"+e.channel+"_init",function(){r(function(){i.up.callback(!0)})}),p.Fn.set("flash_"+e.channel+"_onMessage",c),e.swf=j(e.swf);var t=P(e.swf),o=function(){p.stack.FlashTransport[t].init=!0,f=p.stack.FlashTransport[t].swf,f.createChannel(e.channel,e.secret,B(e.remote),e.isHost),e.isHost&&(b&&e.swfNoThrottle&&U(e.props,{position:"fixed",right:0,top:0,height:"20px",width:"20px"}),U(e.props,{src:F(e.remote,{xdm_e:B(n.href),xdm_c:e.channel,xdm_p:6,xdm_s:e.secret}),name:v+e.channel+"_provider"}),s=W(e))};p.stack.FlashTransport[t]&&p.stack.FlashTransport[t].init?o():p.stack.FlashTransport[t]?p.stack.FlashTransport[t].queue.push(o):(p.stack.FlashTransport[t]={queue:[o]},d(t))},init:function(){M(i.onDOMReady,i)}}},p.stack.PostMessageTransport=function(t){function a(e){if(e.origin)return B(e.origin);if(e.uri)return B(e.uri);if(e.domain)return n.protocol+"//"+e.domain;throw"Unable to retrieve the origin of the event"}function f(e){var n=a(e);n==u&&e.data.substring(0,t.channel.length+1)==t.channel+" "&&i.up.incoming(e.data.substring(t.channel.length+1),n)}var i,s,o,u;return i={outgoing:function(e,n,r){o.postMessage(t.channel+" "+e,n||u),r&&r()},destroy:function(){N(e,"message",f),s&&(o=null,s.parentNode.removeChild(s),s=null)},onDOMReady:function(){u=B(t.remote);if(t.isHost){var a=function(n){n.data==t.channel+"-ready"&&(o="postMessage"in s.contentWindow?s.contentWindow:s.contentWindow.document,N(e,"message",a),T(e,"message",f),r(function(){i.up.callback(!0)},0))};T(e,"message",a),U(t.props,{src:F(t.remote,{xdm_e:B(n.href),xdm_c:t.channel,xdm_p:1}),name:v+t.channel+"_provider"}),s=W(t)}else T(e,"message",f),o="postMessage"in e.parent?e.parent:e.parent.document,o.postMessage(t.channel+"-ready",u),r(function(){i.up.callback(!0)},0)},init:function(){M(i.onDOMReady,i)}}},p.stack.FrameElementTransport=function(i){var s,o,u,a;return s={outgoing:function(e,t,n){u.call(this,e),n&&n()},destroy:function(){o&&(o.parentNode.removeChild(o),o=null)},onDOMReady:function(){a=B(i.remote),i.isHost?(U(i.props,{src:F(i.remote,{xdm_e:B(n.href),xdm_c:i.channel,xdm_p:5}),name:v+i.channel+"_provider"}),o=W(i),o.fn=function(e){return delete o.fn,u=e,r(function(){s.up.callback(!0)},0),function(e){s.up.incoming(e,a)}}):(t.referrer&&B(t.referrer)!=I.xdm_e&&(e.top.location=I.xdm_e),u=e.frameElement.fn(function(e){s.up.incoming(e,a)}),s.up.callback(!0))},init:function(){M(s.onDOMReady,s)}}},p.stack.NameTransport=function(e){function l(t){var r=e.remoteHelper+(n?"#_3":"#_2")+e.channel;i.contentWindow.sendMessage(t,r)}function c(){n?(++o===2||!n)&&t.up.callback(!0):(l("ready"),t.up.callback(!0))}function h(e){t.up.incoming(e,a)}function d(){u&&r(function(){u(!0)},0)}var t,n,i,s,o,u,a,f;return t={outgoing:function(e,t,n){u=n,l(e)},destroy:function(){i.parentNode.removeChild(i),i=null,n&&(s.parentNode.removeChild(s),s=null)},onDOMReady:function(){n=e.isHost,o=0,a=B(e.remote),e.local=j(e.local),n?(p.Fn.set(e.channel,function(t){n&&t==="ready"&&(p.Fn.set(e.channel,h),c())}),f=F(e.remote,{xdm_e:e.local,xdm_c:e.channel,xdm_p:2}),U(e.props,{src:f+"#"+e.channel,name:v+e.channel+"_provider"}),s=W(e)):(e.remoteHelper=e.remote,p.Fn.set(e.channel,h));var t=function(){var n=i||this;N(n,"load",t),p.Fn.set(e.channel+"_load",d),function s(){typeof n.contentWindow.sendMessage=="function"?c():r(s,50)}()};i=W({props:{src:e.local+"#_4"+e.channel},onLoad:t})},init:function(){M(t.onDOMReady,t)}}},p.stack.HashTransport=function(t){function d(e){if(!c)return;var n=t.remote+"#"+f++ +"_"+e;(s||!h?c.contentWindow:c).location=n}function m(e){a=e,n.up.incoming(a.substring(a.indexOf("_")+1),p)}function g(){if(!l)return;var e=l.location.href,t="",n=e.indexOf("#");n!=-1&&(t=e.substring(n)),t&&t!=a&&m(t)}function y(){o=setInterval(g,u)}var n,i=this,s,o,u,a,f,l,c,h,p;return n={outgoing:function(e,t){d(e)},destroy:function(){e.clearInterval(o),(s||!h)&&c.parentNode.removeChild(c),c=null},onDOMReady:function(){s=t.isHost,u=t.interval,a="#"+t.channel,f=0,h=t.useParent,p=B(t.remote);if(s){U(t.props,{src:t.remote,name:v+t.channel+"_provider"});if(h)t.onLoad=function(){l=e,y(),n.up.callback(!0)};else{var i=0,o=t.delay/50;(function d(){if(++i>o)throw new Error("Unable to reference listenerwindow");try{l=c.contentWindow.frames[v+t.channel+"_consumer"]}catch(e){}l?(y(),n.up.callback(!0)):r(d,50)})()}c=W(t)}else l=e,y(),h?(c=parent,n.up.callback(!0)):(U(t,{props:{src:t.remote+"#"+t.channel+new Date,name:v+t.channel+"_consumer"},onLoad:function(){n.up.callback(!0)}}),c=W(t))},init:function(){M(n.onDOMReady,n)}}},p.stack.ReliableBehavior=function(e){var t,n,r=0,i=0,s="";return t={incoming:function(e,o){var u=e.indexOf("_"),a=e.substring(0,u).split(",");e=e.substring(u+1),a[0]==r&&(s="",n&&(n(!0),n=null)),e.length>0&&(t.down.outgoing(a[1]+","+r+"_"+s,o),i!=a[1]&&(i=a[1],t.up.incoming(e,o)))},outgoing:function(e,o,u){s=e,n=u,t.down.outgoing(i+","+ ++r+"_"+e,o)}}},p.stack.QueueBehavior=function(e){function h(){if(e.remove&&n.length===0){J(t);return}if(o||n.length===0||a)return;o=!0;var i=n.shift();t.down.outgoing(i.data,i.origin,function(e){o=!1,i.callback&&r(function(){i.callback(e)},0),h()})}var t,n=[],o=!0,u="",a,f=0,l=!1,c=!1;return t={init:function(){q(e)&&(e={}),e.maxLength&&(f=e.maxLength,c=!0),e.lazy?l=!0:t.down.init()},callback:function(e){o=!1;var n=t.up;h(),n.callback(e)},incoming:function(n,r){if(c){var s=n.indexOf("_"),o=parseInt(n.substring(0,s),10);u+=n.substring(s+1),o===0&&(e.encode&&(u=i(u)),t.up.incoming(u,r),u="")}else t.up.incoming(n,r)},outgoing:function(r,i,o){e.encode&&(r=s(r));var u=[],a;if(c){while(r.length!==0)a=r.substring(0,f),r=r.substring(a.length),u.push(a);while(a=u.shift())n.push({data:u.length+"_"+a,origin:i,callback:u.length===0?o:null})}else n.push({data:r,origin:i,callback:o});l?t.down.init():h()},destroy:function(){a=!0,t.down.destroy()}}},p.stack.VerifyBehavior=function(e){function s(){n=Math.random().toString(16).substring(2),t.down.outgoing(n)}var t,n,r,i=!1;return t={incoming:function(i,o){var u=i.indexOf("_");u===-1?i===n?t.up.callback(!0):r||(r=i,e.initiate||s(),t.down.outgoing(i)):i.substring(0,u)===r&&t.up.incoming(i.substring(u+1),o)},outgoing:function(e,r,i){t.down.outgoing(n+"_"+e,r,i)},callback:function(t){e.initiate&&s()}}},p.stack.RpcBehavior=function(e,t){function o(e){e.jsonrpc="2.0",n.down.outgoing(r.stringify(e))}function u(e,t){var n=Array.prototype.slice;return function(){var r=arguments.length,u,a={method:t};r>0&&typeof arguments[r-1]=="function"?(r>1&&typeof arguments[r-2]=="function"?(u={success:arguments[r-2],error:arguments[r-1]},a.params=n.call(arguments,0,r-2)):(u={success:arguments[r-1]},a.params=n.call(arguments,0,r-1)),s[""+ ++i]=u,a.id=i):a.params=n.call(arguments,0),e.namedParams&&a.params.length===1&&(a.params=a.params[0]),o(a)}}function f(e,t,n,r){if(!n){t&&o({id:t,error:{code:-32601,message:"Procedure not found."}});return}var i,s;t?(i=function(e){i=a,o({id:t,result:e})},s=function(e,n){s=a;var r={id:t,error:{code:-32099,message:e}};n&&(r.error.data=n),o(r)}):i=s=a,S(r)||(r=[r]);try{var u=n.method.apply(n.scope,r.concat([i,s]));q(u)||i(u)}catch(f){s(f.message)}}var n,r=t.serializer||R(),i=0,s={};return n={incoming:function(e,n){var i=r.parse(e);if(i.method)t.handle?t.handle(i,o):f(i.method,i.id,t.local[i.method],i.params);else{var u=s[i.id];i.error?u.error&&u.error(i.error):u.success&&u.success(i.result),delete s[i.id]}},init:function(){if(t.remote)for(var r in t.remote)t.remote.hasOwnProperty(r)&&(e[r]=u(t.remote[r],r));n.down.init()},destroy:function(){for(var r in t.remote)t.remote.hasOwnProperty(r)&&e.hasOwnProperty(r)&&delete e[r];n.down.destroy()}}},o.easyXDM=p})(window,document,location,window.setTimeout,decodeURIComponent,encodeURIComponent); \ No newline at end of file diff --git a/web/app/themes/mitlib-moh/screenshot.png b/web/app/themes/mitlib-moh/screenshot.png deleted file mode 100644 index d15da5cc..00000000 Binary files a/web/app/themes/mitlib-moh/screenshot.png and /dev/null differ diff --git a/web/app/themes/mitlib-moh/style.css b/web/app/themes/mitlib-moh/style.css deleted file mode 100644 index 1651eb33..00000000 --- a/web/app/themes/mitlib-moh/style.css +++ /dev/null @@ -1,822 +0,0 @@ -/* -Theme Name: MITlib Music Oral History -Author: MIT Libraries -Version: 0.0.1 -Description: A child theme of the MIT Libraries' parent, focused on the Music Oral History site. -Template: mitlib-parent - -*/ - -body { - font-family:'Open Sans',Helvetica,sans-serif; -} - -h1,h2,h3,h4,h5,h6 { - font-family:'Open Sans',Helvetica,sans-serif; -} - -b, strong { - font-weight: bold; - font-weight: 600; -} - -.childTheme .header-main { - align-items: baseline; - margin-bottom: 0; -} - -.childTheme .header-main .name-site { - margin: .5rem 1.5%; - padding: 0; -} - -.childTheme .header-main a { - color: #fff; -} -.childTheme .header-main .logo-mit-lib { - display: block; -} - -.childTheme .header-main .logo-mit-lib svg { - max-height: 2rem; -} - -.childTheme .nav-main { - margin-left: 0; - line-height: none; -} - -.childTheme .betterBreadcrumbs { - background: #eceaea; - line-height: 1.3; - padding: 8px 8px 8px 27.5px; -} - -.childTheme .title-page.flex-container { - align-items: baseline; -} - -.childTheme .title-page h2 { - padding: 0.5em 0; -} - -.childTheme .entry-content { - padding-left: 27.5px; -} - -.childTheme .entry-content h2 { - margin-top: 0; - padding-top: 0; -} - -.entry-content h3.heading a, -.entry-content h3.heading i { - color: #338bc5 !important; -} - -.childTheme .col-2 .sidebarWidgets { - background: #ede8e2; - padding: 1rem; -} - -.childTheme .col-2 .sidebarWidgets aside { - margin-bottom: 1rem; -} - -.mobile-include { - display: none; -} - - - -/* Default Styles */ - -.childTheme .title .extraInfo { - font-size: 14px; - top: 29px; -} - -#megaMenu .megaMenu > li.ss-nav-menu-item-depth-0 > a { - background-image: none; -} - -#toolbox .yourAccount { - display: none; -} - -.moh #asktell { - background: none; -} - -.moh-title { - font-size: 1.5em; - padding: 1rem 0 0; - padding-left: 16px; -} - -.nav-moh { - font-size: .85em; -} - - - -/* Index of Interviewees */ - -th.moh-column-one, -td.moh-column-one, -th.moh-column-two, -td.moh-column-two { - width: 10%; -} -th.moh-column-three, -td.moh-column-three, -th.moh-column-four, -td.moh-column-four { - width: 30%; -} -th.moh-column-five, -td.moh-column-five { - width: 20%; -} -.post-type-archive-interviewees #content, -.single-interviews #content { - width: 100%; -} - -.post-type-archive-interviewees #filters { - padding-bottom: 20px; - width: 100%; -} - -.post-type-archive-interviewees #filters select { - margin: 0 10px 0 0; - font-weight: bold; -} - -.post-type-archive-interviewees #filters button { - margin: 10px; - height:44px; - border: 1px solid #338bc5; - color: #fff; - padding: 0 20px; - background: #338bc5; -} - -.post-type-archive-interviewees #filters button:hover { - background: #f89406; - border: 1px solid #f89406; -} - -.select-style-first, -.select-style-second { - padding: 0; - margin: 10px 15px; - border: 1px solid #ccc; - width: 320px; - border-radius: 3px; - overflow: hidden; - background-color: #fff; - float: left; -} - - - -.select-style-first select, -.select-style-second select { - padding: 15px 20px; - border: none; - box-shadow: none; - background-color: transparent; - background-image: none; - -webkit-appearance: none; - -moz-appearance: none; - appearance: none; -} - -.select-style-first select:focus, -.select-style-second select:focus { - outline: none; -} - -option.uppercase { - text-transform: uppercase !important; -} - -/* Interviews */ - -#playerWrap { - width: 48%; - float: left; -} - -#interviewContents { - width: 48%; - float: right; -} - -.single-interviews .title h2 { - font-size: 23px; - font-weight: normal; - position: relative; - top: 2px; -} - -.single-interviews #titlebar { - background: #f2f0f0; - font-size: 12px; - margin-left: 0; -} - -.single-interviews #titlebar .span9 { - padding-top: 10px; -} - -.single-interviews #titlebar .inline { - margin-top: 11px; -} - -.single-interviews #titlebar .inline li { - color: #999; - display: inline; - line-height: 1.7; - margin-right: 5px; -} - -.single-interviews #titlebar .inline li i { - font-size: 20px; - position: relative; - top: 3px; -} - -.single-interviews #titlebar .inline li i.icon-folder-close { - font-size: 15px; - margin-left: 2px; - margin-right: 5px; - top: 1px; -} - -.single-interviews #titlebar .tags li:first-child { - margin-right: 1px; -} - -.single-interviews #titlebar .tags a { - background: #dadada; - border-radius: 3px; - color: #666; - display: inline-block; - margin-bottom: 5px; - padding: 1px 6px 0; -} - -.single-interviews #titlebar .tags a:hover { - background: #cacaca; - text-decoration: none; -} - -.single-interviews #titlebar .links li { - color: #3c3a79; margin-right: 14px; -} - -.single-interviews #titlebar .links, -.single-interviews #titlebar .links li i { - color: #3c3a79; -} - -.single-interviews #titlebar .links a { - text-decoration: underline; -} - -.single-interviews #titlebar .links a:hover { - text-decoration: none; -} - -.single-interviews #titlebar .links .cd { - margin-right: 3px; - position:relative; - top:3px; -} - -.single-interviews #titlebar .post-thumbnail img { - background: #ddd; - border-radius: 0; - box-shadow: none; - float: right; - height: auto; - width: 150px; -} - -.single-interviews #contents h3 { - font-size: 16px; -} - -.single-interviews #contents h3.inverse { - background: #333; - color: #fff; - padding: 1px 10px; -} - -.single-interviews #contents .dataTables_info { - margin-bottom: 8px; -} - -.single-interviews table.tablepress th, -.single-interviews table.tablepress td { - padding: 8px; -} - -.single-interviews #contents table.tablepress thead { - display: none; -} - -/* MB padding rule changed from 1px 10px to 3px 10px - should be switched back when play icons are re-enabled */ -.single-interviews #contents table.tablepress tbody td { - background-image: none; - border: 0; - height: auto; - line-height: 1.3; - min-height: auto; - padding: 3px 10px; -} - -.single-interviews #contents .column-1 { - color: #333; - font-size: 22px; -} - -/* MB Added display: none to hide play icon - should be re-enabled when play buttons are functional */ -.single-interviews #contents .column-1 i { - display: none; - position: relative; - top: 2px; -} - -.single-interviews #contents .column-3 { - text-align: right; -} - -.single-interviews #contents .arrows { - margin-left: 3px; -} - -.single-interviews #contents .arrows li { - margin-top: 5px; -} - -.single-interviews #tables .tabcontent { - width: auto; -} - -.single-interviews #tables .tabcontent .tab { - padding: 20px 0 0; -} - -.single-interviews #tables table.tablepress .arrows, -.single-interviews #tables table.tablepress .arrows li { - margin-bottom: 0; -} - -.single-interviews #tables table.tablepress tbody td { - background: url(images/divider-small.gif) center right no-repeat; -} - -.single-interviews #tables table.tablepress .row-hover tr:hover td { - background: #ddd url(images/divider-small.gif) center right no-repeat; -} - -.single-interviews #tables table.tablepress tbody td:last-child, -.single-interviews #tables table.tablepress .row-hover tr:hover td:last-child { background-image: none; -} - -.single-interviews #tables #tab1 table.tablepress .column-1, -.single-interviews #tables #tab2 table.tablepress .column-1 { - color: #444; - font-weight: bold; -} - -.single-interviews #biography h2.heading { - margin-bottom: 9px; -} - -.single-interviews #biography #sidebarContent { - margin-top: 8px; -} - -.single-interviews #biography #sidebarContent h3 { - color: #666 !important; -} - - -.post-thumbnail img { - border: 1px solid #333 !important; - width: 97px; - height: 97px; -} - -.th-title { - display: none; -} - -/* ---- Search All Interviews ---- */ - -.page-id-11 .additional-info { - background: #333; - border-top: 2px solid #ffcc33; - color: #fff; - margin: 2em; - padding: 0.5em; - text-align: center; -} - -.page-id-11 .additional-info a { - color: #ffcc33; -} - -.page-id-11 .additional-info a:hover { - color: #ffcc33; -} - -@media screen and (max-width:480px) { - .page-id-11 .additional-info { - background: #333; - border-top: none; - margin: 0 0 0 -20px; - padding: 0.5em; - text-align: left; - } - - .childTheme .betterBreadcrumbs { - display: block !important; - padding-left: 12px; - } -} - -.page-id-11 .search-help { - background: #f5f5f5; - display: block; - margin: 0 50px 2em; - -webkit-box-sizing: border-box; - -moz-box-sizing: border-box; - box-sizing: border-box; -} - -/* Search All Transcripts */ - -.page-template-page-moh-search-php .search-area { - background: #f5f5f5; - margin-top: 10px; - padding: 2em 0; - width: 960px; -} - -.page-template-page-moh-search-php .entry-content .checklist { - margin-left: 30px; -} - -.page-template-page-moh-search-php #archive1 { - margin-left: 50px; -} - -/* Footer */ - -#footerContent { - display: none; -} - -/* imitate child header with child styles */ - -.header-bg-image-high { - position: absolute; - z-index: -99998; - overflow: hidden; - height: 200px; - top: 0; - min-width: 100%; -} -.header-bg-image-short { - position: absolute; - z-index: -99998; - overflow: hidden; - height: 100px; - top: 0; - min-width: 100%; -} - -.header-bg-image-high img, -.header-bg-image-short img { - position: relative; - display: block; - min-width: 100%; - height: auto; - width: 100%; -} - -.header-bg-image-high img { - top: -50%; -} - -.header-bg-image-short img { - top: -100%; -} - -@media screen and (max-width: 720px) { - - .header-bg-image-high img { - top: 0; - } - - .header-bg-image-short img { - top: 0; - } -} - -.page-header-home { - color:#fff; - position:relative; - padding:50px 27.5px; -} - -.page-header-internal { - color:#fff; - position:relative; - padding:15px 27.5px; -} - -.child-header-tall { - height:200px; - overflow:hidden; - display:block; - width:100%; - background:-moz-linear-gradient(right,rgba(0,0,0,.05) 2%,rgba(0,0,0,0.65) 100%); -/* FF3.6+ */ - background:-webkit-gradient(linear,right,left,color-stop(2%,rgba(0,0,0,0.65)),color-stop(100%,rgba(0,0,0,.05))); -/* Chrome,Safari4+ */ - background:-webkit-linear-gradient(right,rgba(0,0,0,.05) 2%,rgba(0,0,0,0.65) 100%); -/* Chrome10+,Safari5.1+ */ - background:-o-linear-gradient(right,rgba(0,0,0,.05) 2%,rgba(0,0,0,0.65) 100%); -/* Opera 11.10+ */ - background:-ms-linear-gradient(right,rgba(0,0,0,.05) 2%,rgba(0,0,0,0.65) 100%); -/* IE10+ */ - background:linear-gradient(to left,rgba(0,0,0,.05) 2%,rgba(0,0,0,0.65) 100%); -/* W3C */ -} - -.child-header-short { - height:100px; - overflow:hidden; - display:block; - width:100%; - background:-moz-linear-gradient(right,rgba(0,0,0,.1) 2%,rgba(0,0,0,0.65) 100%); -/* FF3.6+ */ - background:-webkit-gradient(linear,right,left,color-stop(2%,rgba(0,0,0,0.65)),color-stop(100%,rgba(0,0,0,.1))); -/* Chrome,Safari4+ */ - background:-webkit-linear-gradient(right,rgba(0,0,0,.1) 2%,rgba(0,0,0,0.65) 100%); -/* Chrome10+,Safari5.1+ */ - background:-o-linear-gradient(right,rgba(0,0,0,.1) 2%,rgba(0,0,0,0.65) 100%); -/* Opera 11.10+ */ - background:-ms-linear-gradient(right,rgba(0,0,0,.1) 2%,rgba(0,0,0,0.65) 100%); -/* IE10+ */ - background:linear-gradient(to left,rgba(0,0,0,.1) 2%,rgba(0,0,0,0.65) 100%); -/* W3C */ -} - -.child-header-tall { - height: 200px; - overflow: hidden; - display: block; - width: 100%; -} - -.child-page-title { - font-size: 36px; - font-weight: 400; - line-height: 2; -} - -.child-page-title a { - font-size: 24px; - color: #fff; - line-height: 1; -} -.child-page-title a:hover { - color: #fff; -} - -.title-sub { - margin-top: 0; - margin-bottom: 15px; - font-size: 14px; - font-weight: 400; - line-height: 1.3; - color: #777; - text-transform: uppercase; -} - -.navbar-default { - background: none; - border-radius: 0; - border: none; - border-bottom: 1px solid #e7e7e7; - border-top: 1px solid #e7e7e7; - border-top-width: 1px; - border-top-style: solid; - border-top-color: rgb(231, 231, 231); -} - -@media screen and (min-width:961px) { - - .nav-moh .link-primary { - padding-top: 2em; - } -} - -@media screen and (max-width:960px) { - .page-id-11 .search-help { - width: 250px; - } - -} - -@media screen and (max-width: 880px) { - .content-page.group { - padding-top: 10px !important; - } - - #playerWrap { - width: 100%; - float: none; - } - - #interviewContents { - padding-top: 425px; - width: 100%; - float: none; - } - -} - - - -@media screen and (max-width:760px) { - .entry-content { - padding: 0 1em !important; - } - - table.tablepress .row-hover tr:hover td { - background: none !important; - } - - table.tablepress tbody td { - border-bottom: none !important; - padding: 10px 20px !important; - font-size: .8em; - width: 100% !important; - display: block; - float: left !important; - height: auto; - } - - .tablepress th { - display: none - } - - .tablepress td { - float: left !important; - } - - td.moh-column-one { - display: none !important; - } - - td.moh-column-two .mobile-include { - display: block; - float: left; - border: 1px solid #ddd; - } - - .tablepress td h3.interviewee-name { - font-size: 21px; - padding: 10px 0 !important - } - - td.post-thumbnail { - display: none; - } - - .mobile-include img { - width: 100px; - height: 100px; - float: left; - } - - .th-title { - width: 45%; - float: left; - padding-right: 10px !important; - font-weight: bold; - text-transform: uppercase; - display: block; - } - - span.mobile-right { - width: 55%; - float: right; - } - - .tablepress tbody tr:first-child td { - border-top: 1px solid #ddd !important; - } - - #playerWrap, - #interviewContents{ - width: 100% !important; - } - -} - -@media screen and (min-width:560px) and (max-width:960px) { - - .childTheme .header-main .logo-mit-lib svg { - width: 75% !important; - float: left; - } - - .nav-moh .link-primary { - padding-top: 1.5em !important; - } - -} - -@media screen and (min-width:560px) and (max-width:760px) { - - .nav-moh { - font-size: .75em; - } - - table.tablepress tbody td { - font-size: 1em !important; - } - - .th-title { - width: 35% !important; - float: left; - padding-right: 10px !important; - font-weight: bold; - text-transform: uppercase; - display: block; - } - - span.mobile-right { - width: 65% !important; - float: right; - } - - .ignore-on-tablet { - display: none; - } - - .childTheme .header-main .logo-mit-lib svg { - height: auto; - max-width: auto; - } - -} - -@media screen and (max-width:568px) { - - .nav-moh a { - color: #338bc5 !important; - } - .nav-moh a:hover { - color: #1e5274 !important; - } - - .header-main { - height: 45.0781px !important; - } - - svg.mit-libraries-logo { - position: absolute; - top: -10px !important; - } - - .header-main .name-site { - font-size: 12px; - font-size: .75rem; - margin-left: 1em !important; - padding-bottom: 0 !important; - margin-top: -1em; - } - - .childTheme .header-main .logo-mit-lib svg { - margin-bottom: 10px; - } - - .page-header-home { - padding: 30px 15px; - } - - .page-header-internal { - padding: 15px; - } - -} \ No newline at end of file