text: 
  
  
  
  <!DOCTYPE html>
  <html lang="en" class=" is-copy-enabled is-u2f-enabled">
    <head prefix="og: http://ogp.me/ns# fb: http://ogp.me/ns/fb# object: http://ogp.me/ns/object# article: http://ogp.me/ns/article# profile: http://ogp.me/ns/profile#">
      <meta charset='utf-8'>
      <meta http-equiv="X-UA-Compatible" content="IE=edge">
      <meta http-equiv="Content-Language" content="en">
      <meta name="viewport" content="width=1020">
      
      
      <title>bootstrap-modal-carousel/carousel-fit.js at master · noreiller/bootstrap-modal-carousel · GitHub</title>
      <link rel="search" type="application/opensearchdescription+xml" href="/opensearch.xml" title="GitHub">
      <link rel="fluid-icon" href="https://github.com/fluidicon.png" title="GitHub">
      <link rel="apple-touch-icon" href="/apple-touch-icon.png">
      <link rel="apple-touch-icon" sizes="57x57" href="/apple-touch-icon-57x57.png">
      <link rel="apple-touch-icon" sizes="60x60" href="/apple-touch-icon-60x60.png">
      <link rel="apple-touch-icon" sizes="72x72" href="/apple-touch-icon-72x72.png">
      <link rel="apple-touch-icon" sizes="76x76" href="/apple-touch-icon-76x76.png">
      <link rel="apple-touch-icon" sizes="114x114" href="/apple-touch-icon-114x114.png">
      <link rel="apple-touch-icon" sizes="120x120" href="/apple-touch-icon-120x120.png">
      <link rel="apple-touch-icon" sizes="144x144" href="/apple-touch-icon-144x144.png">
      <link rel="apple-touch-icon" sizes="152x152" href="/apple-touch-icon-152x152.png">
      <link rel="apple-touch-icon" sizes="180x180" href="/apple-touch-icon-180x180.png">
      <meta property="fb:app_id" content="1401488693436528">
  
        <meta content="https://avatars1.githubusercontent.com/u/699030?v=3&amp;s=400" name="twitter:image:src" /><meta content="@github" name="twitter:site" /><meta content="summary" name="twitter:card" /><meta content="noreiller/bootstrap-modal-carousel" name="twitter:title" /><meta content="bootstrap-modal-carousel - A set of plugins to display a carousel into a fullscreen modal box" name="twitter:description" />
        <meta content="https://avatars1.githubusercontent.com/u/699030?v=3&amp;s=400" property="og:image" /><meta content="GitHub" property="og:site_name" /><meta content="object" property="og:type" /><meta content="noreiller/bootstrap-modal-carousel" property="og:title" /><meta content="https://github.com/noreiller/bootstrap-modal-carousel" property="og:url" /><meta content="bootstrap-modal-carousel - A set of plugins to display a carousel into a fullscreen modal box" property="og:description" />
        <meta name="browser-stats-url" content="https://api.github.com/_private/browser/stats">
      <meta name="browser-errors-url" content="https://api.github.com/_private/browser/errors">
      <link rel="assets" href="https://assets-cdn.github.com/">
      
      <meta name="pjax-timeout" content="1000">
      
  
      <meta name="msapplication-TileImage" content="/windows-tile.png">
      <meta name="msapplication-TileColor" content="#ffffff">
      <meta name="selected-link" value="repo_source" data-pjax-transient>
  
      <meta name="google-site-verification" content="KT5gs8h0wvaagLKAVWq8bbeNwnZZK1r1XQysX3xurLU">
  <meta name="google-site-verification" content="ZzhVyEFwb7w3e0-uOTltm8Jsck2F5StVihD0exw2fsA">
      <meta name="google-analytics" content="UA-3769691-2">
  
  <meta content="collector.githubapp.com" name="octolytics-host" /><meta content="github" name="octolytics-app-id" /><meta content="BEE84A45:1B9D:3CAD52C:56ABD8B9" name="octolytics-dimension-request_id" />
  <meta content="/&lt;user-name&gt;/&lt;repo-name&gt;/blob/show" data-pjax-transient="true" name="analytics-location" />
  
  
  
    <meta class="js-ga-set" name="dimension1" content="Logged Out">
  
  
  
          <meta name="hostname" content="github.com">
      <meta name="user-login" content="">
  
          <meta name="expected-hostname" content="github.com">
  
        <link rel="mask-icon" href="https://assets-cdn.github.com/pinned-octocat.svg" color="#4078c0">
        <link rel="icon" type="image/x-icon" href="https://assets-cdn.github.com/favicon.ico">
  
      <meta content="bb5189c680491939d901dee2dcbe975c14d7c835" name="form-nonce" />
  
      <link crossorigin="anonymous" href="https://assets-cdn.github.com/assets/github-d0dea0e5376d5c42aabf467726e0cffb7034a0d94eb947b9328eb6c9c4fcbba3.css" integrity="sha256-0N6g5TdtXEKqv0Z3JuDP+3A0oNlOuUe5Mo62ycT8u6M=" media="all" rel="stylesheet" />
      <link crossorigin="anonymous" href="https://assets-cdn.github.com/assets/github2-73d2524c1d5a9759a1ed697c2a06250bbf61640c4742ee2ec555a4300a03bc9a.css" integrity="sha256-c9JSTB1al1mh7Wl8KgYlC79hZAxHQu4uxVWkMAoDvJo=" media="all" rel="stylesheet" />
      
      
  
  
      <meta http-equiv="x-pjax-version" content="523ebdf932961e1aa3b26e94e142180c">
  
        
    <meta name="description" content="bootstrap-modal-carousel - A set of plugins to display a carousel into a fullscreen modal box">
    <meta name="go-import" content="github.com/noreiller/bootstrap-modal-carousel git https://github.com/noreiller/bootstrap-modal-carousel.git">
  
    <meta content="699030" name="octolytics-dimension-user_id" /><meta content="noreiller" name="octolytics-dimension-user_login" /><meta content="7916989" name="octolytics-dimension-repository_id" /><meta content="noreiller/bootstrap-modal-carousel" name="octolytics-dimension-repository_nwo" /><meta content="true" name="octolytics-dimension-repository_public" /><meta content="false" name="octolytics-dimension-repository_is_fork" /><meta content="7916989" name="octolytics-dimension-repository_network_root_id" /><meta content="noreiller/bootstrap-modal-carousel" name="octolytics-dimension-repository_network_root_nwo" />
    <link href="https://github.com/noreiller/bootstrap-modal-carousel/commits/master.atom" rel="alternate" title="Recent Commits to bootstrap-modal-carousel:master" type="application/atom+xml">
  
  
        <link rel="canonical" href="https://github.com/noreiller/bootstrap-modal-carousel/blob/master/src/js/carousel-fit.js" data-pjax-transient>
    </head>
  
  
    <body class="logged_out   env-production windows vis-public page-blob">
      <a href="#start-of-content" tabindex="1" class="accessibility-aid js-skip-to-content">Skip to content</a>
  
      
      
      
  
  
  
        
        <div class="header header-logged-out" role="banner">
    <div class="container clearfix">
  
      <a class="header-logo-wordmark" href="https://github.com/" data-ga-click="(Logged out) Header, go to homepage, icon:logo-wordmark">
        <span aria-hidden="true" class="mega-octicon octicon-logo-github"></span>
      </a>
  
      <div class="header-actions" role="navigation">
          <a class="btn btn-primary" href="/join?source=header" data-ga-click="(Logged out) Header, clicked Sign up, text:sign-up">Sign up</a>
        <a class="btn" href="/login?return_to=%2Fnoreiller%2Fbootstrap-modal-carousel%2Fblob%2Fmaster%2Fsrc%2Fjs%2Fcarousel-fit.js" data-ga-click="(Logged out) Header, clicked Sign in, text:sign-in">Sign in</a>
      </div>
  
      <div class="site-search repo-scope js-site-search" role="search">
        <!-- </textarea> --><!-- '"` --><form accept-charset="UTF-8" action="/noreiller/bootstrap-modal-carousel/search" class="js-site-search-form" data-global-search-url="/search" data-repo-search-url="/noreiller/bootstrap-modal-carousel/search" method="get"><div style="margin:0;padding:0;display:inline"><input name="utf8" type="hidden" value="&#x2713;" /></div>
    <label class="js-chromeless-input-container form-control">
      <div class="scope-badge">This repository</div>
      <input type="text"
        class="js-site-search-focus js-site-search-field is-clearable chromeless-input"
        data-hotkey="s"
        name="q"
        placeholder="Search"
        aria-label="Search this repository"
        data-global-scope-placeholder="Search GitHub"
        data-repo-scope-placeholder="Search"
        tabindex="1"
        autocapitalize="off">
    </label>
  </form>
      </div>
  
        <ul class="header-nav left" role="navigation">
            <li class="header-nav-item">
              <a class="header-nav-link" href="/explore" data-ga-click="(Logged out) Header, go to explore, text:explore">Explore</a>
            </li>
            <li class="header-nav-item">
              <a class="header-nav-link" href="/features" data-ga-click="(Logged out) Header, go to features, text:features">Features</a>
            </li>
            <li class="header-nav-item">
              <a class="header-nav-link" href="https://enterprise.github.com/" data-ga-click="(Logged out) Header, go to enterprise, text:enterprise">Enterprise</a>
            </li>
            <li class="header-nav-item">
              <a class="header-nav-link" href="/pricing" data-ga-click="(Logged out) Header, go to pricing, text:pricing">Pricing</a>
            </li>
        </ul>
  
    </div>
  </div>
  
  
  
      <div id="start-of-content" class="accessibility-aid"></div>
  
        <div id="js-flash-container">
  </div>
  
  
      <div role="main" class="main-content">
          <div itemscope itemtype="http://schema.org/WebPage">
      <div id="js-repo-pjax-container" class="context-loader-container js-repo-nav-next" data-pjax-container>
        
  <div class="pagehead repohead instapaper_ignore readability-menu experiment-repo-nav">
    <div class="container repohead-details-container">
  
      
  
  <ul class="pagehead-actions">
  
    <li>
        <a href="/login?return_to=%2Fnoreiller%2Fbootstrap-modal-carousel"
      class="btn btn-sm btn-with-count tooltipped tooltipped-n"
      aria-label="You must be signed in to watch a repository" rel="nofollow">
      <span aria-hidden="true" class="octicon octicon-eye"></span>
      Watch
    </a>
    <a class="social-count" href="/noreiller/bootstrap-modal-carousel/watchers">
      14
    </a>
  
    </li>
  
    <li>
        <a href="/login?return_to=%2Fnoreiller%2Fbootstrap-modal-carousel"
      class="btn btn-sm btn-with-count tooltipped tooltipped-n"
      aria-label="You must be signed in to star a repository" rel="nofollow">
      <span aria-hidden="true" class="octicon octicon-star"></span>
      Star
    </a>
  
      <a class="social-count js-social-count" href="/noreiller/bootstrap-modal-carousel/stargazers">
        98
      </a>
  
    </li>
  
    <li>
        <a href="/login?return_to=%2Fnoreiller%2Fbootstrap-modal-carousel"
          class="btn btn-sm btn-with-count tooltipped tooltipped-n"
          aria-label="You must be signed in to fork a repository" rel="nofollow">
          <span aria-hidden="true" class="octicon octicon-repo-forked"></span>
          Fork
        </a>
  
      <a href="/noreiller/bootstrap-modal-carousel/network" class="social-count">
        49
      </a>
    </li>
  </ul>
  
      <h1 itemscope itemtype="http://data-vocabulary.org/Breadcrumb" class="entry-title public ">
    <span aria-hidden="true" class="octicon octicon-repo"></span>
    <span class="author"><a href="/noreiller" class="url fn" itemprop="url" rel="author"><span itemprop="title">noreiller</span></a></span><!--
  --><span class="path-divider">/</span><!--
  --><strong><a href="/noreiller/bootstrap-modal-carousel" data-pjax="#js-repo-pjax-container">bootstrap-modal-carousel</a></strong>
  
    <span class="page-context-loader">
      <img alt="" height="16" src="https://assets-cdn.github.com/images/spinners/octocat-spinner-32.gif" width="16" />
    </span>
  
  </h1>
  
    </div>
    <div class="container">
      
  <nav class="reponav js-repo-nav js-sidenav-container-pjax js-octicon-loaders"
       role="navigation"
       data-pjax="#js-repo-pjax-container">
  
    <a href="/noreiller/bootstrap-modal-carousel" aria-label="Code" aria-selected="true" class="js-selected-navigation-item selected reponav-item" data-hotkey="g c" data-selected-links="repo_source repo_downloads repo_commits repo_releases repo_tags repo_branches /noreiller/bootstrap-modal-carousel">
      <span aria-hidden="true" class="octicon octicon-code"></span>
      Code
  </a>
      <a href="/noreiller/bootstrap-modal-carousel/issues" class="js-selected-navigation-item reponav-item" data-hotkey="g i" data-selected-links="repo_issues repo_labels repo_milestones /noreiller/bootstrap-modal-carousel/issues">
        <span aria-hidden="true" class="octicon octicon-issue-opened"></span>
        Issues
        <span class="counter">3</span>
  </a>
    <a href="/noreiller/bootstrap-modal-carousel/pulls" class="js-selected-navigation-item reponav-item" data-hotkey="g p" data-selected-links="repo_pulls /noreiller/bootstrap-modal-carousel/pulls">
      <span aria-hidden="true" class="octicon octicon-git-pull-request"></span>
      Pull requests
      <span class="counter">0</span>
  </a>
  
    <a href="/noreiller/bootstrap-modal-carousel/pulse" class="js-selected-navigation-item reponav-item" data-selected-links="pulse /noreiller/bootstrap-modal-carousel/pulse">
      <span aria-hidden="true" class="octicon octicon-pulse"></span>
      Pulse
  </a>
    <a href="/noreiller/bootstrap-modal-carousel/graphs" class="js-selected-navigation-item reponav-item" data-selected-links="repo_graphs repo_contributors /noreiller/bootstrap-modal-carousel/graphs">
      <span aria-hidden="true" class="octicon octicon-graph"></span>
      Graphs
  </a>
  
  </nav>
  
    </div>
  </div>
  
  <div class="container new-discussion-timeline experiment-repo-nav">
    <div class="repository-content">
  
      
  
  <a href="/noreiller/bootstrap-modal-carousel/blob/37d31dff4987ea9b2cf85f8aced768c7b8e96be1/src/js/carousel-fit.js" class="hidden js-permalink-shortcut" data-hotkey="y">Permalink</a>
  
  <!-- blob contrib key: blob_contributors:v21:5a101c0d091a9d9e3965c4ab967ed76c -->
  
  <div class="file-navigation js-zeroclipboard-container">
    
  <div class="select-menu js-menu-container js-select-menu left">
    <button class="btn btn-sm select-menu-button js-menu-target css-truncate" data-hotkey="w"
      title="master"
      type="button" aria-label="Switch branches or tags" tabindex="0" aria-haspopup="true">
      <i>Branch:</i>
      <span class="js-select-button css-truncate-target">master</span>
    </button>
  
    <div class="select-menu-modal-holder js-menu-content js-navigation-container" data-pjax aria-hidden="true">
  
      <div class="select-menu-modal">
        <div class="select-menu-header">
          <span aria-label="Close" class="octicon octicon-x js-menu-close" role="button"></span>
          <span class="select-menu-title">Switch branches/tags</span>
        </div>
  
        <div class="select-menu-filters">
          <div class="select-menu-text-filter">
            <input type="text" aria-label="Filter branches/tags" id="context-commitish-filter-field" class="js-filterable-field js-navigation-enable" placeholder="Filter branches/tags">
          </div>
          <div class="select-menu-tabs">
            <ul>
              <li class="select-menu-tab">
                <a href="#" data-tab-filter="branches" data-filter-placeholder="Filter branches/tags" class="js-select-menu-tab" role="tab">Branches</a>
              </li>
              <li class="select-menu-tab">
                <a href="#" data-tab-filter="tags" data-filter-placeholder="Find a tag…" class="js-select-menu-tab" role="tab">Tags</a>
              </li>
            </ul>
          </div>
        </div>
  
        <div class="select-menu-list select-menu-tab-bucket js-select-menu-tab-bucket" data-tab-filter="branches" role="menu">
  
          <div data-filterable-for="context-commitish-filter-field" data-filterable-type="substring">
  
  
              <a class="select-menu-item js-navigation-item js-navigation-open "
                 href="/noreiller/bootstrap-modal-carousel/blob/gh-pages/src/js/carousel-fit.js"
                 data-name="gh-pages"
                 data-skip-pjax="true"
                 rel="nofollow">
                <span aria-hidden="true" class="octicon octicon-check select-menu-item-icon"></span>
                <span class="select-menu-item-text css-truncate-target" title="gh-pages">
                  gh-pages
                </span>
              </a>
              <a class="select-menu-item js-navigation-item js-navigation-open selected"
                 href="/noreiller/bootstrap-modal-carousel/blob/master/src/js/carousel-fit.js"
                 data-name="master"
                 data-skip-pjax="true"
                 rel="nofollow">
                <span aria-hidden="true" class="octicon octicon-check select-menu-item-icon"></span>
                <span class="select-menu-item-text css-truncate-target" title="master">
                  master
                </span>
              </a>
          </div>
  
            <div class="select-menu-no-results">Nothing to show</div>
        </div>
  
        <div class="select-menu-list select-menu-tab-bucket js-select-menu-tab-bucket" data-tab-filter="tags">
          <div data-filterable-for="context-commitish-filter-field" data-filterable-type="substring">
  
  
              <a class="select-menu-item js-navigation-item js-navigation-open "
                href="/noreiller/bootstrap-modal-carousel/tree/v2.0.1/src/js/carousel-fit.js"
                data-name="v2.0.1"
                data-skip-pjax="true"
                rel="nofollow">
                <span aria-hidden="true" class="octicon octicon-check select-menu-item-icon"></span>
                <span class="select-menu-item-text css-truncate-target" title="v2.0.1">
                  v2.0.1
                </span>
              </a>
              <a class="select-menu-item js-navigation-item js-navigation-open "
                href="/noreiller/bootstrap-modal-carousel/tree/v2.0.0/src/js/carousel-fit.js"
                data-name="v2.0.0"
                data-skip-pjax="true"
                rel="nofollow">
                <span aria-hidden="true" class="octicon octicon-check select-menu-item-icon"></span>
                <span class="select-menu-item-text css-truncate-target" title="v2.0.0">
                  v2.0.0
                </span>
              </a>
              <a class="select-menu-item js-navigation-item js-navigation-open "
                href="/noreiller/bootstrap-modal-carousel/tree/v1.1.0/src/js/carousel-fit.js"
                data-name="v1.1.0"
                data-skip-pjax="true"
                rel="nofollow">
                <span aria-hidden="true" class="octicon octicon-check select-menu-item-icon"></span>
                <span class="select-menu-item-text css-truncate-target" title="v1.1.0">
                  v1.1.0
                </span>
              </a>
              <a class="select-menu-item js-navigation-item js-navigation-open "
                href="/noreiller/bootstrap-modal-carousel/tree/v1.0.0/src/js/carousel-fit.js"
                data-name="v1.0.0"
                data-skip-pjax="true"
                rel="nofollow">
                <span aria-hidden="true" class="octicon octicon-check select-menu-item-icon"></span>
                <span class="select-menu-item-text css-truncate-target" title="v1.0.0">
                  v1.0.0
                </span>
              </a>
          </div>
  
          <div class="select-menu-no-results">Nothing to show</div>
        </div>
  
      </div>
    </div>
  </div>
  
    <div class="btn-group right">
      <a href="/noreiller/bootstrap-modal-carousel/find/master"
            class="js-show-file-finder btn btn-sm"
            data-pjax
            data-hotkey="t">
        Find file
      </a>
      <button aria-label="Copy file path to clipboard" class="js-zeroclipboard btn btn-sm zeroclipboard-button tooltipped tooltipped-s" data-copied-hint="Copied!" type="button">Copy path</button>
    </div>
    <div class="breadcrumb js-zeroclipboard-target">
      <span class="repo-root js-repo-root"><span itemscope="" itemtype="http://data-vocabulary.org/Breadcrumb"><a href="/noreiller/bootstrap-modal-carousel" class="" data-branch="master" data-pjax="true" itemscope="url"><span itemprop="title">bootstrap-modal-carousel</span></a></span></span><span class="separator">/</span><span itemscope="" itemtype="http://data-vocabulary.org/Breadcrumb"><a href="/noreiller/bootstrap-modal-carousel/tree/master/src" class="" data-branch="master" data-pjax="true" itemscope="url"><span itemprop="title">src</span></a></span><span class="separator">/</span><span itemscope="" itemtype="http://data-vocabulary.org/Breadcrumb"><a href="/noreiller/bootstrap-modal-carousel/tree/master/src/js" class="" data-branch="master" data-pjax="true" itemscope="url"><span itemprop="title">js</span></a></span><span class="separator">/</span><strong class="final-path">carousel-fit.js</strong>
    </div>
  </div>
  
  <include-fragment class="commit-tease" src="/noreiller/bootstrap-modal-carousel/contributors/master/src/js/carousel-fit.js">
    <div>
      Fetching contributors&hellip;
    </div>
  
    <div class="commit-tease-contributors">
      <img alt="" class="loader-loading left" height="16" src="https://assets-cdn.github.com/images/spinners/octocat-spinner-32-EAF2F5.gif" width="16" />
      <span class="loader-error">Cannot retrieve contributors at this time</span>
    </div>
  </include-fragment>
  <div class="file">
    <div class="file-header">
    <div class="file-actions">
  
      <div class="btn-group">
        <a href="/noreiller/bootstrap-modal-carousel/raw/master/src/js/carousel-fit.js" class="btn btn-sm " id="raw-url">Raw</a>
          <a href="/noreiller/bootstrap-modal-carousel/blame/master/src/js/carousel-fit.js" class="btn btn-sm js-update-url-with-hash">Blame</a>
        <a href="/noreiller/bootstrap-modal-carousel/commits/master/src/js/carousel-fit.js" class="btn btn-sm " rel="nofollow">History</a>
      </div>
  
          <a class="btn-octicon tooltipped tooltipped-nw"
             href="https://windows.github.com"
             aria-label="Open this file in GitHub Desktop"
             data-ga-click="Repository, open with desktop, type:windows">
              <span aria-hidden="true" class="octicon octicon-device-desktop"></span>
          </a>
  
          <button type="button" class="btn-octicon disabled tooltipped tooltipped-nw"
            aria-label="You must be signed in to make or propose changes">
            <span aria-hidden="true" class="octicon octicon-pencil"></span>
          </button>
          <button type="button" class="btn-octicon btn-octicon-danger disabled tooltipped tooltipped-nw"
            aria-label="You must be signed in to make or propose changes">
            <span aria-hidden="true" class="octicon octicon-trashcan"></span>
          </button>
    </div>
  
    <div class="file-info">
        110 lines (91 sloc)
        <span class="file-info-divider"></span>
      2.85 KB
    </div>
  </div>
  
    
  
    <div class="blob-wrapper data type-javascript">
        <table class="highlight tab-size js-file-line-container" data-tab-size="8">
        <tr>
          <td id="L1" class="blob-num js-line-number" data-line-number="1"></td>
          <td id="LC1" class="blob-code blob-code-inner js-file-line">(<span class="pl-k">function</span> (<span class="pl-smi">factory</span>) {</td>
        </tr>
        <tr>
          <td id="L2" class="blob-num js-line-number" data-line-number="2"></td>
          <td id="LC2" class="blob-code blob-code-inner js-file-line">	<span class="pl-s"><span class="pl-pds">&#39;</span>use strict<span class="pl-pds">&#39;</span></span>;</td>
        </tr>
        <tr>
          <td id="L3" class="blob-num js-line-number" data-line-number="3"></td>
          <td id="LC3" class="blob-code blob-code-inner js-file-line">	<span class="pl-k">if</span> (<span class="pl-k">typeof</span> define <span class="pl-k">===</span> <span class="pl-s"><span class="pl-pds">&#39;</span>function<span class="pl-pds">&#39;</span></span> <span class="pl-k">&amp;&amp;</span> <span class="pl-smi">define</span>.<span class="pl-smi">amd</span>) {</td>
        </tr>
        <tr>
          <td id="L4" class="blob-num js-line-number" data-line-number="4"></td>
          <td id="LC4" class="blob-code blob-code-inner js-file-line">		<span class="pl-c">// Register as an anonymous AMD module:</span></td>
        </tr>
        <tr>
          <td id="L5" class="blob-num js-line-number" data-line-number="5"></td>
          <td id="LC5" class="blob-code blob-code-inner js-file-line">		<span class="pl-en">define</span>([</td>
        </tr>
        <tr>
          <td id="L6" class="blob-num js-line-number" data-line-number="6"></td>
          <td id="LC6" class="blob-code blob-code-inner js-file-line">			<span class="pl-s"><span class="pl-pds">&#39;</span>jquery<span class="pl-pds">&#39;</span></span>,</td>
        </tr>
        <tr>
          <td id="L7" class="blob-num js-line-number" data-line-number="7"></td>
          <td id="LC7" class="blob-code blob-code-inner js-file-line">			<span class="pl-s"><span class="pl-pds">&#39;</span>bootstrap<span class="pl-pds">&#39;</span></span></td>
        </tr>
        <tr>
          <td id="L8" class="blob-num js-line-number" data-line-number="8"></td>
          <td id="LC8" class="blob-code blob-code-inner js-file-line">		], factory);</td>
        </tr>
        <tr>
          <td id="L9" class="blob-num js-line-number" data-line-number="9"></td>
          <td id="LC9" class="blob-code blob-code-inner js-file-line">	} <span class="pl-k">else</span> {</td>
        </tr>
        <tr>
          <td id="L10" class="blob-num js-line-number" data-line-number="10"></td>
          <td id="LC10" class="blob-code blob-code-inner js-file-line">		<span class="pl-c">// Browser globals:</span></td>
        </tr>
        <tr>
          <td id="L11" class="blob-num js-line-number" data-line-number="11"></td>
          <td id="LC11" class="blob-code blob-code-inner js-file-line">		<span class="pl-en">factory</span>(</td>
        </tr>
        <tr>
          <td id="L12" class="blob-num js-line-number" data-line-number="12"></td>
          <td id="LC12" class="blob-code blob-code-inner js-file-line">			<span class="pl-smi">window</span>.<span class="pl-smi">jQuery</span></td>
        </tr>
        <tr>
          <td id="L13" class="blob-num js-line-number" data-line-number="13"></td>
          <td id="LC13" class="blob-code blob-code-inner js-file-line">		);</td>
        </tr>
        <tr>
          <td id="L14" class="blob-num js-line-number" data-line-number="14"></td>
          <td id="LC14" class="blob-code blob-code-inner js-file-line">	}</td>
        </tr>
        <tr>
          <td id="L15" class="blob-num js-line-number" data-line-number="15"></td>
          <td id="LC15" class="blob-code blob-code-inner js-file-line">}(<span class="pl-k">function</span> (<span class="pl-smi">$</span>) {</td>
        </tr>
        <tr>
          <td id="L16" class="blob-num js-line-number" data-line-number="16"></td>
          <td id="LC16" class="blob-code blob-code-inner js-file-line">	<span class="pl-s"><span class="pl-pds">&#39;</span>use strict<span class="pl-pds">&#39;</span></span>;</td>
        </tr>
        <tr>
          <td id="L17" class="blob-num js-line-number" data-line-number="17"></td>
          <td id="LC17" class="blob-code blob-code-inner js-file-line">
  </td>
        </tr>
        <tr>
          <td id="L18" class="blob-num js-line-number" data-line-number="18"></td>
          <td id="LC18" class="blob-code blob-code-inner js-file-line">	<span class="pl-c">// Extend the carousel constructor with some utils methods</span></td>
        </tr>
        <tr>
          <td id="L19" class="blob-num js-line-number" data-line-number="19"></td>
          <td id="LC19" class="blob-code blob-code-inner js-file-line">	<span class="pl-smi">$</span>.<span class="pl-en">extend</span>(<span class="pl-smi">$</span>.<span class="pl-smi">fn</span>.<span class="pl-smi">carousel</span>.<span class="pl-smi">Constructor</span>.<span class="pl-c1">prototype</span>, {</td>
        </tr>
        <tr>
          <td id="L20" class="blob-num js-line-number" data-line-number="20"></td>
          <td id="LC20" class="blob-code blob-code-inner js-file-line">		<span class="pl-en">fit</span><span class="pl-k">:</span> <span class="pl-k">function</span> (<span class="pl-smi">height</span>) {</td>
        </tr>
        <tr>
          <td id="L21" class="blob-num js-line-number" data-line-number="21"></td>
          <td id="LC21" class="blob-code blob-code-inner js-file-line">			<span class="pl-k">if</span> (<span class="pl-k">!</span>height) {</td>
        </tr>
        <tr>
          <td id="L22" class="blob-num js-line-number" data-line-number="22"></td>
          <td id="LC22" class="blob-code blob-code-inner js-file-line">				height <span class="pl-k">=</span> <span class="pl-en">$</span>(<span class="pl-s"><span class="pl-pds">&#39;</span>.item.active<span class="pl-pds">&#39;</span></span>, <span class="pl-v">this</span>.<span class="pl-smi">$element</span>).<span class="pl-c1">height</span>();</td>
        </tr>
        <tr>
          <td id="L23" class="blob-num js-line-number" data-line-number="23"></td>
          <td id="LC23" class="blob-code blob-code-inner js-file-line">			}</td>
        </tr>
        <tr>
          <td id="L24" class="blob-num js-line-number" data-line-number="24"></td>
          <td id="LC24" class="blob-code blob-code-inner js-file-line">
  </td>
        </tr>
        <tr>
          <td id="L25" class="blob-num js-line-number" data-line-number="25"></td>
          <td id="LC25" class="blob-code blob-code-inner js-file-line">			<span class="pl-c">// Update the height of the carousel with the active slide one, in</span></td>
        </tr>
        <tr>
          <td id="L26" class="blob-num js-line-number" data-line-number="26"></td>
          <td id="LC26" class="blob-code blob-code-inner js-file-line">			<span class="pl-c">// the case when the image has the max-width:100% and is too big.</span></td>
        </tr>
        <tr>
          <td id="L27" class="blob-num js-line-number" data-line-number="27"></td>
          <td id="LC27" class="blob-code blob-code-inner js-file-line">			<span class="pl-k">if</span> (height <span class="pl-k">!=</span> <span class="pl-v">this</span>.<span class="pl-smi">$element</span>.<span class="pl-c1">height</span>()) {</td>
        </tr>
        <tr>
          <td id="L28" class="blob-num js-line-number" data-line-number="28"></td>
          <td id="LC28" class="blob-code blob-code-inner js-file-line">				<span class="pl-k">if</span> (<span class="pl-smi">$</span>.<span class="pl-smi">support</span>.<span class="pl-smi">transition</span>) {</td>
        </tr>
        <tr>
          <td id="L29" class="blob-num js-line-number" data-line-number="29"></td>
          <td id="LC29" class="blob-code blob-code-inner js-file-line">					<span class="pl-v">this</span>.<span class="pl-smi">$element</span>.<span class="pl-en">animate</span>({</td>
        </tr>
        <tr>
          <td id="L30" class="blob-num js-line-number" data-line-number="30"></td>
          <td id="LC30" class="blob-code blob-code-inner js-file-line">						height<span class="pl-k">:</span> height</td>
        </tr>
        <tr>
          <td id="L31" class="blob-num js-line-number" data-line-number="31"></td>
          <td id="LC31" class="blob-code blob-code-inner js-file-line">					});</td>
        </tr>
        <tr>
          <td id="L32" class="blob-num js-line-number" data-line-number="32"></td>
          <td id="LC32" class="blob-code blob-code-inner js-file-line">				}</td>
        </tr>
        <tr>
          <td id="L33" class="blob-num js-line-number" data-line-number="33"></td>
          <td id="LC33" class="blob-code blob-code-inner js-file-line">				<span class="pl-k">else</span> {</td>
        </tr>
        <tr>
          <td id="L34" class="blob-num js-line-number" data-line-number="34"></td>
          <td id="LC34" class="blob-code blob-code-inner js-file-line">					<span class="pl-v">this</span>.<span class="pl-smi">$element</span>.<span class="pl-c1">height</span>(height);</td>
        </tr>
        <tr>
          <td id="L35" class="blob-num js-line-number" data-line-number="35"></td>
          <td id="LC35" class="blob-code blob-code-inner js-file-line">				}</td>
        </tr>
        <tr>
          <td id="L36" class="blob-num js-line-number" data-line-number="36"></td>
          <td id="LC36" class="blob-code blob-code-inner js-file-line">
  </td>
        </tr>
        <tr>
          <td id="L37" class="blob-num js-line-number" data-line-number="37"></td>
          <td id="LC37" class="blob-code blob-code-inner js-file-line">
  </td>
        </tr>
        <tr>
          <td id="L38" class="blob-num js-line-number" data-line-number="38"></td>
          <td id="LC38" class="blob-code blob-code-inner js-file-line">				<span class="pl-v">this</span>.<span class="pl-smi">$element</span>.<span class="pl-en">trigger</span>(<span class="pl-smi">$</span>.<span class="pl-en">Event</span>(<span class="pl-s"><span class="pl-pds">&#39;</span>fit.bs.carousel<span class="pl-pds">&#39;</span></span>, { height<span class="pl-k">:</span> height }));</td>
        </tr>
        <tr>
          <td id="L39" class="blob-num js-line-number" data-line-number="39"></td>
          <td id="LC39" class="blob-code blob-code-inner js-file-line">			}</td>
        </tr>
        <tr>
          <td id="L40" class="blob-num js-line-number" data-line-number="40"></td>
          <td id="LC40" class="blob-code blob-code-inner js-file-line">
  </td>
        </tr>
        <tr>
          <td id="L41" class="blob-num js-line-number" data-line-number="41"></td>
          <td id="LC41" class="blob-code blob-code-inner js-file-line">			<span class="pl-c">// If the slide contains only one image, adjust the size of the caption to it</span></td>
        </tr>
        <tr>
          <td id="L42" class="blob-num js-line-number" data-line-number="42"></td>
          <td id="LC42" class="blob-code blob-code-inner js-file-line">			<span class="pl-k">if</span> (<span class="pl-v">this</span>.<span class="pl-smi">$element</span>.<span class="pl-c1">find</span>(<span class="pl-s"><span class="pl-pds">&#39;</span>.item.active img<span class="pl-pds">&#39;</span></span>).<span class="pl-c1">length</span> <span class="pl-k">==</span> <span class="pl-c1">1</span>) {</td>
        </tr>
        <tr>
          <td id="L43" class="blob-num js-line-number" data-line-number="43"></td>
          <td id="LC43" class="blob-code blob-code-inner js-file-line">				<span class="pl-k">var</span></td>
        </tr>
        <tr>
          <td id="L44" class="blob-num js-line-number" data-line-number="44"></td>
          <td id="LC44" class="blob-code blob-code-inner js-file-line">					$img <span class="pl-k">=</span> <span class="pl-v">this</span>.<span class="pl-smi">$element</span>.<span class="pl-c1">find</span>(<span class="pl-s"><span class="pl-pds">&#39;</span>.item.active img<span class="pl-pds">&#39;</span></span>)</td>
        </tr>
        <tr>
          <td id="L45" class="blob-num js-line-number" data-line-number="45"></td>
          <td id="LC45" class="blob-code blob-code-inner js-file-line">					, pos <span class="pl-k">=</span> {</td>
        </tr>
        <tr>
          <td id="L46" class="blob-num js-line-number" data-line-number="46"></td>
          <td id="LC46" class="blob-code blob-code-inner js-file-line">						left<span class="pl-k">:</span> <span class="pl-smi">$img</span>.<span class="pl-en">position</span>().<span class="pl-c1">left</span></td>
        </tr>
        <tr>
          <td id="L47" class="blob-num js-line-number" data-line-number="47"></td>
          <td id="LC47" class="blob-code blob-code-inner js-file-line">						, right<span class="pl-k">:</span> <span class="pl-smi">$img</span>.<span class="pl-en">position</span>().<span class="pl-c1">left</span></td>
        </tr>
        <tr>
          <td id="L48" class="blob-num js-line-number" data-line-number="48"></td>
          <td id="LC48" class="blob-code blob-code-inner js-file-line">					}</td>
        </tr>
        <tr>
          <td id="L49" class="blob-num js-line-number" data-line-number="49"></td>
          <td id="LC49" class="blob-code blob-code-inner js-file-line">				;</td>
        </tr>
        <tr>
          <td id="L50" class="blob-num js-line-number" data-line-number="50"></td>
          <td id="LC50" class="blob-code blob-code-inner js-file-line">
  </td>
        </tr>
        <tr>
          <td id="L51" class="blob-num js-line-number" data-line-number="51"></td>
          <td id="LC51" class="blob-code blob-code-inner js-file-line">				<span class="pl-k">if</span> (<span class="pl-smi">$</span>.<span class="pl-smi">support</span>.<span class="pl-smi">transition</span>) {</td>
        </tr>
        <tr>
          <td id="L52" class="blob-num js-line-number" data-line-number="52"></td>
          <td id="LC52" class="blob-code blob-code-inner js-file-line">					<span class="pl-v">this</span>.<span class="pl-smi">$element</span>.<span class="pl-c1">find</span>(<span class="pl-s"><span class="pl-pds">&#39;</span>.carousel-caption<span class="pl-pds">&#39;</span></span>).<span class="pl-en">animate</span>(pos);</td>
        </tr>
        <tr>
          <td id="L53" class="blob-num js-line-number" data-line-number="53"></td>
          <td id="LC53" class="blob-code blob-code-inner js-file-line">				}</td>
        </tr>
        <tr>
          <td id="L54" class="blob-num js-line-number" data-line-number="54"></td>
          <td id="LC54" class="blob-code blob-code-inner js-file-line">				<span class="pl-k">else</span> {</td>
        </tr>
        <tr>
          <td id="L55" class="blob-num js-line-number" data-line-number="55"></td>
          <td id="LC55" class="blob-code blob-code-inner js-file-line">					<span class="pl-v">this</span>.<span class="pl-smi">$element</span>.<span class="pl-c1">find</span>(<span class="pl-s"><span class="pl-pds">&#39;</span>.carousel-caption<span class="pl-pds">&#39;</span></span>).<span class="pl-en">css</span>(pos);</td>
        </tr>
        <tr>
          <td id="L56" class="blob-num js-line-number" data-line-number="56"></td>
          <td id="LC56" class="blob-code blob-code-inner js-file-line">				}</td>
        </tr>
        <tr>
          <td id="L57" class="blob-num js-line-number" data-line-number="57"></td>
          <td id="LC57" class="blob-code blob-code-inner js-file-line">			}</td>
        </tr>
        <tr>
          <td id="L58" class="blob-num js-line-number" data-line-number="58"></td>
          <td id="LC58" class="blob-code blob-code-inner js-file-line">		}</td>
        </tr>
        <tr>
          <td id="L59" class="blob-num js-line-number" data-line-number="59"></td>
          <td id="LC59" class="blob-code blob-code-inner js-file-line">	});</td>
        </tr>
        <tr>
          <td id="L60" class="blob-num js-line-number" data-line-number="60"></td>
          <td id="LC60" class="blob-code blob-code-inner js-file-line">
  </td>
        </tr>
        <tr>
          <td id="L61" class="blob-num js-line-number" data-line-number="61"></td>
          <td id="LC61" class="blob-code blob-code-inner js-file-line">	<span class="pl-en">$</span>(<span class="pl-c1">document</span>)</td>
        </tr>
        <tr>
          <td id="L62" class="blob-num js-line-number" data-line-number="62"></td>
          <td id="LC62" class="blob-code blob-code-inner js-file-line">		.<span class="pl-en">on</span>(<span class="pl-s"><span class="pl-pds">&#39;</span>slide.bs.carousel<span class="pl-pds">&#39;</span></span>, <span class="pl-s"><span class="pl-pds">&#39;</span>.carousel.carousel-fit<span class="pl-pds">&#39;</span></span>, <span class="pl-k">function</span> (<span class="pl-smi">event</span>) {</td>
        </tr>
        <tr>
          <td id="L63" class="blob-num js-line-number" data-line-number="63"></td>
          <td id="LC63" class="blob-code blob-code-inner js-file-line">			<span class="pl-k">var</span> data <span class="pl-k">=</span> <span class="pl-en">$</span>(<span class="pl-v">this</span>).<span class="pl-c1">data</span>(<span class="pl-s"><span class="pl-pds">&#39;</span>bs.carousel<span class="pl-pds">&#39;</span></span>);</td>
        </tr>
        <tr>
          <td id="L64" class="blob-num js-line-number" data-line-number="64"></td>
          <td id="LC64" class="blob-code blob-code-inner js-file-line">
  </td>
        </tr>
        <tr>
          <td id="L65" class="blob-num js-line-number" data-line-number="65"></td>
          <td id="LC65" class="blob-code blob-code-inner js-file-line">			<span class="pl-c">// Set the height of the carousel with the active slide one</span></td>
        </tr>
        <tr>
          <td id="L66" class="blob-num js-line-number" data-line-number="66"></td>
          <td id="LC66" class="blob-code blob-code-inner js-file-line">			<span class="pl-smi">data</span>.<span class="pl-smi">$element</span>.<span class="pl-c1">height</span>(<span class="pl-en">$</span>(<span class="pl-s"><span class="pl-pds">&#39;</span>.item.active<span class="pl-pds">&#39;</span></span>, <span class="pl-smi">data</span>.<span class="pl-smi">$element</span>).<span class="pl-c1">height</span>());</td>
        </tr>
        <tr>
          <td id="L67" class="blob-num js-line-number" data-line-number="67"></td>
          <td id="LC67" class="blob-code blob-code-inner js-file-line">
  </td>
        </tr>
        <tr>
          <td id="L68" class="blob-num js-line-number" data-line-number="68"></td>
          <td id="LC68" class="blob-code blob-code-inner js-file-line">			<span class="pl-c">// Determine which slide will be next (first, prev, next, last)</span></td>
        </tr>
        <tr>
          <td id="L69" class="blob-num js-line-number" data-line-number="69"></td>
          <td id="LC69" class="blob-code blob-code-inner js-file-line">			<span class="pl-k">var</span> $next <span class="pl-k">=</span> <span class="pl-en">$</span>(<span class="pl-s"><span class="pl-pds">&#39;</span>.item.active<span class="pl-pds">&#39;</span></span>, <span class="pl-smi">data</span>.<span class="pl-smi">$element</span>)[<span class="pl-smi">event</span>.<span class="pl-smi">direction</span> <span class="pl-k">==</span> <span class="pl-s"><span class="pl-pds">&#39;</span>left<span class="pl-pds">&#39;</span></span> <span class="pl-k">?</span> <span class="pl-s"><span class="pl-pds">&#39;</span>next<span class="pl-pds">&#39;</span></span> <span class="pl-k">:</span> <span class="pl-s"><span class="pl-pds">&#39;</span>prev<span class="pl-pds">&#39;</span></span>]();</td>
        </tr>
        <tr>
          <td id="L70" class="blob-num js-line-number" data-line-number="70"></td>
          <td id="LC70" class="blob-code blob-code-inner js-file-line">			<span class="pl-k">if</span> (<span class="pl-k">!</span><span class="pl-smi">$next</span>.<span class="pl-c1">length</span>) {</td>
        </tr>
        <tr>
          <td id="L71" class="blob-num js-line-number" data-line-number="71"></td>
          <td id="LC71" class="blob-code blob-code-inner js-file-line">				$next <span class="pl-k">=</span> <span class="pl-en">$</span>(<span class="pl-s"><span class="pl-pds">&#39;</span>.item:<span class="pl-pds">&#39;</span></span> <span class="pl-k">+</span> (<span class="pl-smi">event</span>.<span class="pl-smi">direction</span> <span class="pl-k">==</span> <span class="pl-s"><span class="pl-pds">&#39;</span>left<span class="pl-pds">&#39;</span></span> <span class="pl-k">?</span> <span class="pl-s"><span class="pl-pds">&#39;</span>first<span class="pl-pds">&#39;</span></span> <span class="pl-k">:</span> <span class="pl-s"><span class="pl-pds">&#39;</span>last<span class="pl-pds">&#39;</span></span>) <span class="pl-k">+</span> <span class="pl-s"><span class="pl-pds">&#39;</span>-child<span class="pl-pds">&#39;</span></span>, <span class="pl-smi">data</span>.<span class="pl-smi">$element</span>);</td>
        </tr>
        <tr>
          <td id="L72" class="blob-num js-line-number" data-line-number="72"></td>
          <td id="LC72" class="blob-code blob-code-inner js-file-line">			}</td>
        </tr>
        <tr>
          <td id="L73" class="blob-num js-line-number" data-line-number="73"></td>
          <td id="LC73" class="blob-code blob-code-inner js-file-line">
  </td>
        </tr>
        <tr>
          <td id="L74" class="blob-num js-line-number" data-line-number="74"></td>
          <td id="LC74" class="blob-code blob-code-inner js-file-line">			<span class="pl-k">var</span> height;</td>
        </tr>
        <tr>
          <td id="L75" class="blob-num js-line-number" data-line-number="75"></td>
          <td id="LC75" class="blob-code blob-code-inner js-file-line">			<span class="pl-c">// TWO WAYS</span></td>
        </tr>
        <tr>
          <td id="L76" class="blob-num js-line-number" data-line-number="76"></td>
          <td id="LC76" class="blob-code blob-code-inner js-file-line">			<span class="pl-c">// 1/ The next slide is already showing and we can get the height</span></td>
        </tr>
        <tr>
          <td id="L77" class="blob-num js-line-number" data-line-number="77"></td>
          <td id="LC77" class="blob-code blob-code-inner js-file-line">			<span class="pl-c">// 2/ The next slide is not yet shown and we clone it</span></td>
        </tr>
        <tr>
          <td id="L78" class="blob-num js-line-number" data-line-number="78"></td>
          <td id="LC78" class="blob-code blob-code-inner js-file-line">
  </td>
        </tr>
        <tr>
          <td id="L79" class="blob-num js-line-number" data-line-number="79"></td>
          <td id="LC79" class="blob-code blob-code-inner js-file-line">			<span class="pl-c">// 1/ Animate to the height of the next active slide</span></td>
        </tr>
        <tr>
          <td id="L80" class="blob-num js-line-number" data-line-number="80"></td>
          <td id="LC80" class="blob-code blob-code-inner js-file-line">			height <span class="pl-k">=</span> <span class="pl-smi">$next</span>.<span class="pl-c1">height</span>();</td>
        </tr>
        <tr>
          <td id="L81" class="blob-num js-line-number" data-line-number="81"></td>
          <td id="LC81" class="blob-code blob-code-inner js-file-line">
  </td>
        </tr>
        <tr>
          <td id="L82" class="blob-num js-line-number" data-line-number="82"></td>
          <td id="LC82" class="blob-code blob-code-inner js-file-line">			<span class="pl-c">// // 2/ Clone the next slide</span></td>
        </tr>
        <tr>
          <td id="L83" class="blob-num js-line-number" data-line-number="83"></td>
          <td id="LC83" class="blob-code blob-code-inner js-file-line">			<span class="pl-c">// var $clone = $next.clone(), result;</span></td>
        </tr>
        <tr>
          <td id="L84" class="blob-num js-line-number" data-line-number="84"></td>
          <td id="LC84" class="blob-code blob-code-inner js-file-line">
  </td>
        </tr>
        <tr>
          <td id="L85" class="blob-num js-line-number" data-line-number="85"></td>
          <td id="LC85" class="blob-code blob-code-inner js-file-line">			<span class="pl-c">// // Set the clone invisible and avoid display:none!important rules</span></td>
        </tr>
        <tr>
          <td id="L86" class="blob-num js-line-number" data-line-number="86"></td>
          <td id="LC86" class="blob-code blob-code-inner js-file-line">			<span class="pl-c">// $clone</span></td>
        </tr>
        <tr>
          <td id="L87" class="blob-num js-line-number" data-line-number="87"></td>
          <td id="LC87" class="blob-code blob-code-inner js-file-line">			<span class="pl-c">// 	.css({visibility: &#39;hidden&#39;, display: &#39;block&#39;})</span></td>
        </tr>
        <tr>
          <td id="L88" class="blob-num js-line-number" data-line-number="88"></td>
          <td id="LC88" class="blob-code blob-code-inner js-file-line">			<span class="pl-c">// 	.attr(&#39;style&#39;, $clone.attr(&#39;style&#39;).replace(&#39;block&#39;, &#39;block !important&#39;))</span></td>
        </tr>
        <tr>
          <td id="L89" class="blob-num js-line-number" data-line-number="89"></td>
          <td id="LC89" class="blob-code blob-code-inner js-file-line">			<span class="pl-c">// ;</span></td>
        </tr>
        <tr>
          <td id="L90" class="blob-num js-line-number" data-line-number="90"></td>
          <td id="LC90" class="blob-code blob-code-inner js-file-line">
  </td>
        </tr>
        <tr>
          <td id="L91" class="blob-num js-line-number" data-line-number="91"></td>
          <td id="LC91" class="blob-code blob-code-inner js-file-line">			<span class="pl-c">// // Append the clone to the DOM</span></td>
        </tr>
        <tr>
          <td id="L92" class="blob-num js-line-number" data-line-number="92"></td>
          <td id="LC92" class="blob-code blob-code-inner js-file-line">			<span class="pl-c">// $clone.appendTo($(&#39;body&#39;));</span></td>
        </tr>
        <tr>
          <td id="L93" class="blob-num js-line-number" data-line-number="93"></td>
          <td id="LC93" class="blob-code blob-code-inner js-file-line">
  </td>
        </tr>
        <tr>
          <td id="L94" class="blob-num js-line-number" data-line-number="94"></td>
          <td id="LC94" class="blob-code blob-code-inner js-file-line">
  </td>
        </tr>
        <tr>
          <td id="L95" class="blob-num js-line-number" data-line-number="95"></td>
          <td id="LC95" class="blob-code blob-code-inner js-file-line">			<span class="pl-c">// // Animate to the height of the next active slide</span></td>
        </tr>
        <tr>
          <td id="L96" class="blob-num js-line-number" data-line-number="96"></td>
          <td id="LC96" class="blob-code blob-code-inner js-file-line">			<span class="pl-c">// height = $clone.height();</span></td>
        </tr>
        <tr>
          <td id="L97" class="blob-num js-line-number" data-line-number="97"></td>
          <td id="LC97" class="blob-code blob-code-inner js-file-line">
  </td>
        </tr>
        <tr>
          <td id="L98" class="blob-num js-line-number" data-line-number="98"></td>
          <td id="LC98" class="blob-code blob-code-inner js-file-line">			<span class="pl-c">// // Remove the clone</span></td>
        </tr>
        <tr>
          <td id="L99" class="blob-num js-line-number" data-line-number="99"></td>
          <td id="LC99" class="blob-code blob-code-inner js-file-line">			<span class="pl-c">// $clone.remove();</span></td>
        </tr>
        <tr>
          <td id="L100" class="blob-num js-line-number" data-line-number="100"></td>
          <td id="LC100" class="blob-code blob-code-inner js-file-line">
  </td>
        </tr>
        <tr>
          <td id="L101" class="blob-num js-line-number" data-line-number="101"></td>
          <td id="LC101" class="blob-code blob-code-inner js-file-line">			<span class="pl-c">// Update the height of the carousel</span></td>
        </tr>
        <tr>
          <td id="L102" class="blob-num js-line-number" data-line-number="102"></td>
          <td id="LC102" class="blob-code blob-code-inner js-file-line">			<span class="pl-smi">data</span>.<span class="pl-en">fit</span>(height);</td>
        </tr>
        <tr>
          <td id="L103" class="blob-num js-line-number" data-line-number="103"></td>
          <td id="LC103" class="blob-code blob-code-inner js-file-line">		})</td>
        </tr>
        <tr>
          <td id="L104" class="blob-num js-line-number" data-line-number="104"></td>
          <td id="LC104" class="blob-code blob-code-inner js-file-line">		.<span class="pl-en">on</span>(<span class="pl-s"><span class="pl-pds">&#39;</span>slid.bs.carousel<span class="pl-pds">&#39;</span></span>, <span class="pl-s"><span class="pl-pds">&#39;</span>.carousel.carousel-fit<span class="pl-pds">&#39;</span></span>, <span class="pl-k">function</span> (<span class="pl-smi">event</span>) {</td>
        </tr>
        <tr>
          <td id="L105" class="blob-num js-line-number" data-line-number="105"></td>
          <td id="LC105" class="blob-code blob-code-inner js-file-line">			<span class="pl-k">var</span> data <span class="pl-k">=</span> <span class="pl-en">$</span>(<span class="pl-v">this</span>).<span class="pl-c1">data</span>(<span class="pl-s"><span class="pl-pds">&#39;</span>bs.carousel<span class="pl-pds">&#39;</span></span>);</td>
        </tr>
        <tr>
          <td id="L106" class="blob-num js-line-number" data-line-number="106"></td>
          <td id="LC106" class="blob-code blob-code-inner js-file-line">			<span class="pl-smi">data</span>.<span class="pl-en">fit</span>();</td>
        </tr>
        <tr>
          <td id="L107" class="blob-num js-line-number" data-line-number="107"></td>
          <td id="LC107" class="blob-code blob-code-inner js-file-line">		})</td>
        </tr>
        <tr>
          <td id="L108" class="blob-num js-line-number" data-line-number="108"></td>
          <td id="LC108" class="blob-code blob-code-inner js-file-line">	;</td>
        </tr>
        <tr>
          <td id="L109" class="blob-num js-line-number" data-line-number="109"></td>
          <td id="LC109" class="blob-code blob-code-inner js-file-line">}));</td>
        </tr>
  </table>
  
    </div>
  
  </div>
  
  <a href="#jump-to-line" rel="facebox[.linejump]" data-hotkey="l" style="display:none">Jump to Line</a>
  <div id="jump-to-line" style="display:none">
    <!-- </textarea> --><!-- '"` --><form accept-charset="UTF-8" action="" class="js-jump-to-line-form" method="get"><div style="margin:0;padding:0;display:inline"><input name="utf8" type="hidden" value="&#x2713;" /></div>
      <input class="linejump-input js-jump-to-line-field" type="text" placeholder="Jump to line&hellip;" aria-label="Jump to line" autofocus>
      <button type="submit" class="btn">Go</button>
  </form></div>
  
    </div>
    <div class="modal-backdrop"></div>
  </div>
  
      </div>
    </div>
  
      </div>
  
          <div class="container">
    <div class="site-footer" role="contentinfo">
      <ul class="site-footer-links right">
          <li><a href="https://status.github.com/" data-ga-click="Footer, go to status, text:status">Status</a></li>
        <li><a href="https://developer.github.com" data-ga-click="Footer, go to api, text:api">API</a></li>
        <li><a href="https://training.github.com" data-ga-click="Footer, go to training, text:training">Training</a></li>
        <li><a href="https://shop.github.com" data-ga-click="Footer, go to shop, text:shop">Shop</a></li>
          <li><a href="https://github.com/blog" data-ga-click="Footer, go to blog, text:blog">Blog</a></li>
          <li><a href="https://github.com/about" data-ga-click="Footer, go to about, text:about">About</a></li>
          <li><a href="https://github.com/pricing" data-ga-click="Footer, go to pricing, text:pricing">Pricing</a></li>
  
      </ul>
  
      <a href="https://github.com" aria-label="Homepage">
        <span aria-hidden="true" class="mega-octicon octicon-mark-github" title="GitHub "></span>
  </a>
      <ul class="site-footer-links">
        <li>&copy; 2016 <span title="0.07885s from github-fe140-cp1-prd.iad.github.net">GitHub</span>, Inc.</li>
          <li><a href="https://github.com/site/terms" data-ga-click="Footer, go to terms, text:terms">Terms</a></li>
          <li><a href="https://github.com/site/privacy" data-ga-click="Footer, go to privacy, text:privacy">Privacy</a></li>
          <li><a href="https://github.com/security" data-ga-click="Footer, go to security, text:security">Security</a></li>
          <li><a href="https://github.com/contact" data-ga-click="Footer, go to contact, text:contact">Contact</a></li>
          <li><a href="https://help.github.com" data-ga-click="Footer, go to help, text:help">Help</a></li>
      </ul>
    </div>
  </div>
  
  
  
      
      
      
  
      <div id="ajax-error-message" class="flash flash-error">
        <span aria-hidden="true" class="octicon octicon-alert"></span>
        <button type="button" class="flash-close js-flash-close js-ajax-error-dismiss" aria-label="Dismiss error">
          <span aria-hidden="true" class="octicon octicon-x"></span>
        </button>
        Something went wrong with that request. Please try again.
      </div>
  
  
        
        <script crossorigin="anonymous" integrity="sha256-nuVc6vh/w03IYzQkn+9svs6I6BVHjg++gWQtV+0P/4k=" src="https://assets-cdn.github.com/assets/frameworks-9ee55ceaf87fc34dc86334249fef6cbece88e815478e0fbe81642d57ed0fff89.js"></script>
        <script async="async" crossorigin="anonymous" integrity="sha256-ud8rLRDm13+eoe2H6eGg6PY4kJmVRUBbug291cCNqe8=" src="https://assets-cdn.github.com/assets/github-b9df2b2d10e6d77f9ea1ed87e9e1a0e8f63890999545405bba0dbdd5c08da9ef.js"></script>
        
        
        
      <div class="js-stale-session-flash stale-session-flash flash flash-warn flash-banner hidden">
        <span aria-hidden="true" class="octicon octicon-alert"></span>
        <span class="signed-in-tab-flash">You signed in with another tab or window. <a href="">Reload</a> to refresh your session.</span>
        <span class="signed-out-tab-flash">You signed out in another tab or window. <a href="">Reload</a> to refresh your session.</span>
      </div>
      <div class="facebox" id="facebox" style="display:none;">
    <div class="facebox-popup">
      <div class="facebox-content" role="dialog" aria-labelledby="facebox-header" aria-describedby="facebox-description">
      </div>
      <button type="button" class="facebox-close js-facebox-close" aria-label="Close modal">
        <span aria-hidden="true" class="octicon octicon-x"></span>
      </button>
    </div>
  </div>
  
    </body>
  </html>
  
  