Pen Settings

HTML

CSS

CSS Base

Vendor Prefixing

Add External Stylesheets/Pens

Any URL's added here will be added as <link>s in order, and before the CSS in the editor. If you link to another Pen, it will include the CSS from that Pen. If the preprocessor matches, it will attempt to combine them before processing.

+ add another resource

JavaScript

Babel is required to process package imports. If you need a different preprocessor remove all packages first.

Add External Scripts/Pens

Any URL's added here will be added as <script>s in order, and run before the JavaScript in the editor. You can use the URL of any other Pen and it will include the JavaScript from that Pen.

+ add another resource

Behavior

Save Automatically?

If active, Pens will autosave every 30 seconds after being saved once.

Auto-Updating Preview

If enabled, the preview panel updates automatically as you code. If disabled, use the "Run" button to update.

Format on Save

If enabled, your code will be formatted when you actively save your Pen. Note: your code becomes un-folded during formatting.

Editor Settings

Code Indentation

Want to change your Syntax Highlighting theme, Fonts and more?

Visit your global Editor Settings.

HTML

              
                <body class="page-template page-template-template-video page-template-template-video-php page page-id-82771 logged-in admin-bar  customize-support" cz-shortcut-listen="true">


  <!-- FEATURE VIDEO
	      ======================= -->
  <header class="feature-video">
    <div class="feature-video__wrapper m-auto w-70 text-white">
      <h1 class="feature-video__title bold text-center pad-b-1">
              Copycat Lemon &amp; Blueberry Larabar            </h1>
      <div class="feature-video__iframe">
        <div class="embed-container">
          <div class="youtube-player" data-id="tTqwB9jN80k">
            <div data-id="tTqwB9jN80k"><img src="https://i.ytimg.com/vi/tTqwB9jN80k/hqdefault.jpg">
              <div class="play"></div>
            </div>
          </div>
        </div>
      </div>

      <p class="lead">
        This Homemade Larabar Copycat Recipe makes for a healthy, easy snack packed with blueberries, lemon, and raw cashews. </p>

    </div>
    <!-- .feature-video__wrapper -->
  </header>
  <!-- header -->


  <!-- MAIN CONTENT
	      ======================= -->
  <article id="" class="container-fluid article-wrapper" role="main">
    <div class="light-bg">

      <!-- SIDEBAR
              ================ -->
      <div class="video-sidebar white-bg m-0 pad-l-sm">
        <!-- Dynamic YouTube Search -->
        <div class="video-sidebar__search">
          <h4>SEARCH</h4>
          <form id="search-form" name="search-form">
            <div class="field-container">
              <input type="search" id="query" class="search-field no-border b-radius pad-md light-bg" placeholder="Youtube Search">
              <!--                       <button type="submit" name="search-btn" id="search-btn">GO</button> -->
            </div>
          </form>
          <button id="toggle-video-playlists" class="toggle-video-button">Toggle Categories</button>
        </div>
        <!-- Video Categories -->
        <div class="video-sidebar__categories">
          <h4>SEARCH BY CATEGORY</h4>
          <ul class="video-list pad-l-md m-l-3">

            <!-- Video Category Loop -->

            <li class="video-list__item video_item_0" style="color: #76c244" data-channel-id="PLYjmaSDaONaZJmkQer1XQQJYrAn1g5F9H">
              <span class="uppercase text-bold">
                                Food                              </span>
            </li>


            <li class="video-list__item video_item_1" style="color: #ff784f" data-channel-id="PLYjmaSDaONaYW38Is4Oq4DLrdY0kQbpuC">
              <span class="uppercase text-bold">
                                Fitness                              </span>
            </li>


            <li class="video-list__item video_item_2" style="color: #9471e3" data-channel-id="PLYjmaSDaONaaQqVo0fa3MhdxJfq_kW5Us">
              <span class="uppercase text-bold">
                                LIVE w/ KELSEY                              </span>
            </li>


            <li class="video-list__item video_item_3" style="color: #fca63d" data-channel-id="PLYjmaSDaONaZPKqGnSuBZ5Oe-C9Qg1mAR">
              <span class="uppercase text-bold">
                                LIVE w/ PETE                              </span>
            </li>


            <li class="video-list__item video_item_4" style="color: #4098d6" data-channel-id="PLYjmaSDaONaaoLZh0zkv6n4BFlRTxeMIx">
              <span class="uppercase text-bold">
                                LIVE                              </span>
            </li>


            <li class="video-list__item video_item_5" style="color: #4b5c6b" data-channel-id="PLYjmaSDaONaZoAL55THA058qtDl1WEPUw">
              <span class="uppercase text-bold">
                                LIVE w/ AIMEE                              </span>
            </li>


            <li class="video-list__item video_item_6" style="color: ##4b5c6b" data-channel-id="PLYjmaSDaONaYjDwr0wLZ62L6_6Sq8-3yc">
              <span class="uppercase text-bold">
                                LIVE w/ ZOE                              </span>
            </li>


            <li class="video-list__item video_item_7" style="color: #aeaeae" data-channel-id="PLYjmaSDaONaaj3BCttkhnX0PYhTYylFc9">
              <span class="uppercase text-bold">
                                PaleoHacks Podcast                              </span>
            </li>


          </ul>
          <!-- .video-list -->
        </div>
        <!-- .video-sidebar__categories -->
      </div>
      <!-- .video-sidebar -->

      <!-- 
                  Videos will be looped over making an ajax GET request to YT API:
                  ===============================================================
                  - In Redux Settings each Category will include the Channel Id.
                  - The Channel Id is used to fetch the videos.
              -->


      <!-- MAIN VIDEO CONTENT
              ========================== -->
      <section class="light-bg video-main-wrapper">
        <div class="inner-main-wrapper">
          <!-- RELATED VIDEOS -->
          <h3 class="text-center uppercase m-t-2 m-b-1 text-bold">Related Videos</h3>
          <div class="row flex-wrap video-row w-95 m-auto">


            <div class="video-row__item">
              <div class="embed-container">
                <div class="youtube-player" data-id="DMDoqp4sl7I">
                  <div data-id="DMDoqp4sl7I"><img src="https://i.ytimg.com/vi/DMDoqp4sl7I/hqdefault.jpg">
                    <div class="play"></div>
                  </div>
                </div>
              </div>
              <h4 class="text-bold">JACK</h4>
            </div>
            <!-- end .video-row__item -->


            <div class="video-row__item">
              <div class="embed-container">
                <div class="youtube-player" data-id="anWDrRJEAFQ">
                  <div data-id="anWDrRJEAFQ"><img src="https://i.ytimg.com/vi/anWDrRJEAFQ/hqdefault.jpg">
                    <div class="play"></div>
                  </div>
                </div>
              </div>
              <h4 class="text-bold">JACK 2</h4>
            </div>
            <!-- end .video-row__item -->


            <div class="video-row__item">
              <div class="embed-container">
                <div class="youtube-player" data-id="AoFD8VhFYI4">
                  <div data-id="AoFD8VhFYI4"><img src="https://i.ytimg.com/vi/AoFD8VhFYI4/hqdefault.jpg">
                    <div class="play"></div>
                  </div>
                </div>
              </div>
              <h4 class="text-bold">JACK 3</h4>
            </div>
            <!-- end .video-row__item -->

          </div>
          <!-- end .row -->


          <!-- Popular Videos -->
          <h3 class="text-center uppercase m-t-2 m-b-1">Popular Videos</h3>
          <div class="row flex-wrap video-row w-95 m-auto">


            <div class="video-row__item">
              <div class="embed-container">
                <div class="youtube-player" data-id="anwnsGi6dy4">
                  <div data-id="anwnsGi6dy4"><img src="https://i.ytimg.com/vi/anwnsGi6dy4/hqdefault.jpg">
                    <div class="play"></div>
                  </div>
                </div>
              </div>
              <h4 class="text-bold">POP 1</h4>
            </div>
            <!-- end .video-row__item -->


            <div class="video-row__item">
              <div class="embed-container">
                <div class="youtube-player" data-id="PLMT4afxLMs">
                  <div data-id="PLMT4afxLMs"><img src="https://i.ytimg.com/vi/PLMT4afxLMs/hqdefault.jpg">
                    <div class="play"></div>
                  </div>
                </div>
              </div>
              <h4 class="text-bold">POP 2</h4>
            </div>
            <!-- end .video-row__item -->


            <div class="video-row__item">
              <div class="embed-container">
                <div class="youtube-player" data-id="Wy33ccgMiLs">
                  <div data-id="Wy33ccgMiLs"><img src="https://i.ytimg.com/vi/Wy33ccgMiLs/hqdefault.jpg">
                    <div class="play"></div>
                  </div>
                </div>
              </div>
              <h4 class="text-bold">POP 3</h4>
            </div>
            <!-- end .video-row__item -->

          </div>
          <!-- end .row -->


          <div id="results" class="row flex-wrap video-row w-95 m-auto"></div>
        </div>
        <!-- .inner-main-wrapper -->
      </section>
      <!-- .video-main-wrapper -->
    </div>
    <!-- .light-bg -->
  </article>
  <!-- .container-fluid -->
</body>
              
            
!

CSS

              
                /*
* ----------------------
* Video Page Stylesheet
* ---------------------- 
*/

@import url('https://fonts.googleapis.com/css?family=Open+Sans');
/* -----
 * Base
 * -----*/
body {
  font-family: 'Roboto', sans-serif;
  margin: 0;
}

a {
  text-decoration: none;
  cursor: pointer;
}

/* --------
 * Helpers
 * --------*/
.m-0 {
   margin: 0 !important;
 }
.m-t-1 {
  margin-top: 1em;
}
.m-t-2 {
  margin-top: 2em;
}
.m-b-1 {
  margin-bottom: 1em;
}
.m-tb-2 {
  margin: 2em 0;
}
.m-tb-3 {
  margin: 3em 0;
}
.m-l-3 {
  margin-left: 3em;
}
.m-lr-1 {
  margin: 0 1em;
}
.m-auto {
  margin: 0 auto;
}
.w-95 {
  width: 95%;
}
.w-70 {
  width: 70%;
}
.p-0 {
  padding: 0 !important;
}
.pad-sm {
  padding: 10px;
}
.pad-md {
  padding: 20px;
}
.pad-tb-2 {
  padding: 2em 0;
}
.pad-b-1 {
  padding-bottom: 1em;
}
.pad-l-sm {
  padding-left: 1em;
}
.pad-l-md {
  padding-left: 2em;
}
.pad-r-sm {
  padding-right: 1em;
}
.no-border {
  border: none;
}
.b-radius {
  border-radius: 8px;
}
.in-b {
  display: inline-block;
}
/* Flexbox */
.flex-wrap {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-wrap: wrap;
      flex-wrap: wrap;
}
.space-a {
  -ms-flex-pack: distribute;
      justify-content: space-around;
}

/* -----------
 * Typography
 * -----------*/
.uppercase {
  text-transform: uppercase;
}
.text-white {
  color: #FFF;
}
.text-bold {
  font-weight: bold;
}
.text-center {
  text-align: center;
}
.text-lead {
  font-size: 1.5em;
}
.no-link-style,
.no-link-style:hover,
.no-link-style:focus {
  text-decoration: none;
}

/* -------
 * Colors
 * -------*/
.white-bg {
  background-color: #FFF;
}
.light-bg {
  background-color: #f7f7f7;
}
.l-blue-color {
  color: #ccd8e3;
}
.l-blue-color:hover,
.l-blue-color:focus {
  color: #d9d9d9;
}
.green-color {
  color: #76c244;
}
.grey-color {
  color: #ababab;
}
.orange-color {
  color: #ff784f;
}
.purple-color {
  color: #9471e3;
}
.light-orange-color {
  color: #fca63d;
}
.light-blue-color {
  color: #4098d6;
}
.petrol-color {
  color: #4b5c6b;
}
.pink-color {
  color: #fa907d;
}
.black-color {
  color: #000;
}
.light-grey-color {
  color: #aeaeae;
}
.aqua-color {
  color: #85d5ed;
}
.gold-color {
  color: #f0c648;
}
.fb-color {
  background: #3a589a;
}
.pinterest-color {
  background: #ca2127;
}
.twitter-color {
  background: #00abf1;
}
.email-color {
  padding: 15px;
  background: #5d7285;
}
.youtube-color {
  background: #394652;
}
.trans-bg {
  background: transparent;
}

/* ---------------------
 * Feature Video Header
 * ---------------------*/
.feature-video {
   height: auto; 
   width: 100%; 
   padding: 2em 0;
   background: #4b5c6b; 
}

/* --------------
 * Share Buttons
 * --------------*/
.share-btn {
  border: 0;
  border-radius: 5px;
  height: 60px;
  width: 45%;
  margin: 5px 0 5px 0;
  padding: 25px;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
}
.share-btn:last-of-type {
  margin-right: 0;
}
.share-btn:hover {
  opacity: .8;
  -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=80)";
  cursor: pointer;
  -webkit-transition: .3s ease;
  transition: .3s ease;
}
.share-btn:visited, 
.share-btn:focus, 
.share-btn:hover {
  color: #FFF;
  text-decoration: none;
}
.email-color > i {
  padding: 0;
}

/* -------------------
 * Video Main Content
 * -------------------*/
.video-sidebar, 
.video-main-wrapper {
  width: 100%; 
  float: none; 
  display: block;
  text-align: center;
  padding: 10px;
}
.video-main-wrapper {
  min-height: 800px;
}
.video-row__item {
  margin: 15px;
  -webkit-box-flex: 1;
      -ms-flex: 1 0 250px;
          flex: 1 0 250px; /* Grow | Shrink | Basis */
  -webkit-box-align: center;
      -ms-flex-align: center;
      -ms-grid-row-align: center;
          align-items: center;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
}
.video-row__item:last-of-type {
  margin-right: 0;
}

/* --------------
 * Video Sidebar
 * --------------*/
.toggle-video-button {
  display: inline-block;
}
.video-sidebar__search > input {
  width: 90%;
}
.video-list {
  padding-left: 1em;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-pack: distribute;
      justify-content: space-around;
  -ms-flex-wrap: wrap;
      flex-wrap: wrap;
  min-width: 80px;
}
.video-list__item {
  font-size: 40px;
  line-height: 40px;
  width: 200px;
  text-align: left;
  margin: 5px;
}
.video-list__item span {
  font-size: 16px;
  color: #000;
  position: relative;
  line-height: 1.5em;
  border: 1px solid transparent;
  width: 97%;
  display: inline-block;
  vertical-align: middle;
}
.article-wrapper {
  padding: 0;
}
.video-list__item:hover {
  color: gold !important;
  transition: .2s ease;
  transform: scale(1.1);
}
.video-list {
  cursor: pointer;
  display: none;
}

/* ----------------------------
 * Responsive iFrames courtesty 
 * of www.embedresponsively.com 
 * ---------------------------- */
.embed-container { 
  position: relative; 
  padding-bottom: 56.25%; 
  height: 0; 
  overflow: hidden; 
  max-width: 100%; 
} 
.embed-container iframe, 
.embed-container object, 
.embed-container embed { 
  position: absolute; 
  top: 0; 
  left: 0; 
  width: 100%; 
  height: 100%; 
  border: 0; 
}

/* -------------------
 * YouTube iFrame CSS
 * ------------------- */
.youtube-player {
  position: relative;
  padding-bottom: 56.23%;
  /* Use 75% for 4:3 videos */
  height: 0;
  overflow: hidden;
  max-width: 100%;
  background: #000;
  margin: 5px;
}
.youtube-player iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 100;
  background: transparent;
}
.youtube-player img {
  bottom: 5px;
  display: block;
  left: 0;
  margin: auto;
  max-width: 100%;
  width: 100%;
  position: absolute;
  right: 0;
  top: 0;
  border: none;
  height: auto;
  cursor: pointer;
  -webkit-transition: .4s all;
  -moz-transition: .4s all;
  transition: .4s all;
}
.youtube-player img:hover {
  -webkit-filter: brightness(75%);
}
.youtube-player .play {
  height: 72px;
  width: 72px;
  left: 50%;
  top: 50%;
  margin-left: -36px;
  margin-top: -36px;
  position: absolute;
  background: url("//i.imgur.com/TxzC70f.png") no-repeat;
  cursor: pointer;
}

/* ----------
 * Preloader
 * ----------*/
 

/* --------------
 * Media Queries
 * --------------*/
@media screen and (min-width: 575px) {
  .video-sidebar__search > input {
    width: 50%;
  }
  .toggle-video-button {
    display: none;
  }
  .video-list {
    display: block;
  }
}

@media screen and (min-width: 850px) { 
  .video-main-wrapper,
  .video-sidebar,
  .video-list {
    float: left; 
    display: inline-block;
    text-align: left;
  }
  .article-wrapper {
    padding: 0 0 0 2em;
  }
  .video-main-wrapper {
    width: 75%; 
  }
  .video-sidebar {
    width: 25%;
    margin-left: 1em;
  }
  .video-sidebar__search > input {
    width: 90%;
  }
}

@media screen and (min-width: 900px) {
  .share-btn {
    margin: 10px 10px 10px 0;
    width: 18%; 
  }
  .video-row__item {
    width: 30%;
    margin: 15px;
  }
}

@media screen and (min-width: 1360px) {
  .share-btn {
    width: auto;
  }
  .fa {
    padding-right: 15px;
  }
}

@media screen and (max-width: 1359px) {
  .hidden-xl {
    display: none !important;
  }
}

              
            
!

JS

              
                /* 
 * -------------------
 * PH Video Page JS
 * Author: Jack Lyons
 * -------------------
 */
(function($, window, document) {

    jQuery(document).ready(function($) {
        
        var innerWrapper    = $('.inner-main-wrapper'),
            resultsWrapper  = $('#results'),
            togglePlaylists = $('#toggle-video-playlists'),
            featureVideoId  = $('.youtube-player').data('id'),
            searchForm      = $('#search-form'),
            q; // query

       /* ----------------------
        * YT Video Constructor
        * ---------------------- */
        var VideoConstructor = (function () {

            return {
              
              speedUpYouTubeLoad: function (el) {
                
                var div, n, v = document.getElementsByClassName(el);
                // Iterate over videos and create thumbnail
                for (n = 0; n < v.length; n++) {
                  div = document.createElement("div");
                  div.setAttribute("data-id", v[n].dataset.id);
                  div.innerHTML = this.addThumb(v[n].dataset.id);
                  div.onclick = this.addIframe;
                  v[n].appendChild(div);
                  
                }
              },
              
              addThumb: function (id) {
                
                var thumb = '<img src="https://i.ytimg.com/vi/ID/hqdefault.jpg">',
                    play  = '<div class="play"></div>';
                return thumb.replace("ID", id) + play;
                
              },
              
              addIframe: function () {
                
                var iframe = document.createElement("iframe");
                var embed  = "https://www.youtube.com/embed/ID?autoplay=1";
                iframe.setAttribute("src", embed.replace("ID", this.dataset.id));
                iframe.setAttribute("frameborder", "0");
                iframe.setAttribute("allowfullscreen", "1");
                this.parentNode.replaceChild(iframe, this);
                
              },
 
              init: function(el) {
                
                return this.speedUpYouTubeLoad(el);
                
              }
            }; /* -- end return {} -- */

          })(); /* ------ end VideoConstructor ---- */

          
         /* --------------
          * Ajax Requests
          * -------------- */
          var AjaxRequests = (function () {
            
            var options = {
              part: 'snippet, id',
              maxResults: 9,
              type: 'video',
              key: 'AIzaSyDKJYxyWUDZhykA8DUVOorUbmC7J7QAAUg'
            };

            var commentsOptions = {
              part: 'snippet',
              videoId: featureVideoId,
              key: 'AIzaSyDKJYxyWUDZhykA8DUVOorUbmC7J7QAAUg'
            }

            return {
              
              searchChannel: function() {
                
                q = $('#query').val(); // Get Form Input
                Templates.createHTMLWrapper(q);
                
                AjaxRequests.channelRequest("https://www.googleapis.com/youtube/v3/search", 
                  $.extend({}, options, { 
                    q: q,
                    channelId: 'UCLhwHoIKtoWBccOFPDmEFpQ' 
                  })
                );
                
              },

              returnPlaylistVideos: function(e) {
                
                var playlistId    = e.currentTarget.dataset.channelId,
                    playlistTitle = e.target.innerText;
                
                Templates.createHTMLWrapper(playlistTitle);
                
                $.get(
                  "https://www.googleapis.com/youtube/v3/playlistItems", 
                   $.extend({}, options, {
                     q: playlistTitle,
                     playlistId: playlistId,
                   }),
                  
                  function(data) {
                    q = playlistTitle;
                    Templates.appendYouTubeData(data, playlistTitle, function(item) {
                      return item.snippet.resourceId.videoId; // Append HTML from different endpoint
                    }); 
                  });
                
              },

              getFeatureVideoComments: function() {
                
                $.get("https://www.googleapis.com/youtube/v3/commentThreads", commentsOptions, 
                function(data) {

                  Templates.appendFeatureComments(data);

                })
                
              },
              
              getNextPageItems: function() {
                
                var token = $('#next-button').data('token'),
                        q = $('#next-button').data('query');

                $('#buttons').html('');
               
                AjaxRequests.channelRequest("https://www.googleapis.com/youtube/v3/search",   
                  $.extend({}, options, { 
                    q: q,
                    channelId: 'UCLhwHoIKtoWBccOFPDmEFpQ',
                    pageToken: token
                  })
                );
                
              },

              channelRequest: function(url, args) {
                $.get(url, args, function(data) { 
                  Templates.appendYouTubeData(data, q, function(item) { 
                    return item.id.videoId; 
                  });
                });
              }
            }; /* -- end return {} -- */
            
          })(); /* ------ AjaxRequests ---- */

         

     /* -----------------
      * Return ajax data
      * ----------------- */
      var Templates = (function () {

        var visible = false;
            
        return {
          
            appendYouTubeData: function (data, query, videoId) {  

              Templates.appendEachVideo(data, videoId); // Iterate over each video & append HTML
              Templates.appendNextButton(data); 
              VideoConstructor.init("youtube-player");

            },

            appendFeatureComments: function(data) {
              // only append comments once
              if (!visible) {
                $.each(data.items, function(i, comment) {
                  var comment = comment.snippet.topLevelComment.snippet.textDisplay;
                  $('.comment-item').append('<p>' + comment + '</p>');
                  console.log(comment);
                })
              }
              
              visible = true;
              // slide comments down and up
              $('.comment-item')
                .slideToggle()
                .show();
              // toggle up and down arrows
              $('.js-reveal-comments').find(".fa-angle-up, .fa-angle-down").toggle();

            },

            appendEachVideo: function (videos, videoId) {

              $.each(videos.items, function(i, item) {
                var output = Templates.getOutput(item, videoId(item));
                $('#results').append(output);
              });

            },

            appendNextButton: function(data) {

              var nextPageToken = data.nextPageToken,
                  nextButton    = Templates.getButtons(nextPageToken),
                  buttonsDiv    = $('#buttons');

                  if (nextPageToken === undefined) {
                    $(buttonsDiv).html('<h2 class="grey-color text-lead in-b pad-r-sm">NO MORE VIDEOS</h2>');
                  } else {
                    $(buttonsDiv).html(nextButton); 
                    $('#next-button').on('click', AjaxRequests.getNextPageItems);
                  }
              
            },

            createHTMLWrapper: function (title) {

              $(innerWrapper)
                .html('')
                .append(
                  '<div class="text-center"><h2>Results for: ' + title + '</h2></div>' +
                  '<div id="results" class="row flex-wrap video-row w-95 m-auto"></div>' +
                  '<div id="buttons" class="text-center"></div>'
              );

            },

            getOutput: function(item, videoId) {

              var title  = item.snippet.title;
              var output = 
                '<div class="video-row__item">' +
                  '<div class="embed-container">' +
                    '<div class="youtube-player" data-id="' + videoId + '"></div>' +
                  '</div>' +
                  '<div class="list-right">' +
                    '<h4 class="text-bold"><a class="no-link-style black-color" href="https://www.youtube.com/embed/' + videoId + '">' + title + '</a></h4>' +
                '</div>';
              return output;

            },

            getButtons: function (nextPageToken) {

              var btnOutput = 
                '<div class="button-container text-center">' +
                  '<a id="next-button" class="no-link-style grey-color"' +
                     'data-query="' + q + '" data-token="' + nextPageToken + '">' + 
                      '<h2 class="text-lead in-b pad-r-sm">VIEW MORE VIDEOS</h2>' +
                      '<i class="fa fa-2x fa-angle-down p-0" aria-hidden="true"></i>' +
                  '</a>' + 
                '</div>';
              return btnOutput;

            }
          
        }; /* -- end return {} -- */
        
      })(); /* ------ Templates ---- */

     /* ------------
      * Run on init
      * ------------ */
      $('.video-list').on('click', 'li', AjaxRequests.returnPlaylistVideos); 
      $('.js-reveal-comments').on('click', AjaxRequests.getFeatureVideoComments);


      $(searchForm).submit(function(e) {
        e.preventDefault();
        $(innerWrapper).html('');
        AjaxRequests.searchChannel();
      });

      $(togglePlaylists).on('click', function() {
        $('.video-list').toggle();
      });

      VideoConstructor.init("youtube-player");

    }); // end $(document).ready()

}(window.jQuery, window, document));

              
            
!
999px

Console