text:   
  
  
  <!DOCTYPE html>
  <html>
    <head prefix="og: http://ogp.me/ns# fb: http://ogp.me/ns/fb# githubog: http://ogp.me/ns/fb/githubog#">
      <meta charset='utf-8'>
      <meta http-equiv="X-UA-Compatible" content="IE=edge">
          <title>datetime-polyfill/datetime-polyfill.min.js at master · jonstipe/datetime-polyfill</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" sizes="57x57" href="/apple-touch-icon-114.png" />
      <link rel="apple-touch-icon" sizes="114x114" href="/apple-touch-icon-114.png" />
      <link rel="apple-touch-icon" sizes="72x72" href="/apple-touch-icon-144.png" />
      <link rel="apple-touch-icon" sizes="144x144" href="/apple-touch-icon-144.png" />
      <link rel="logo" type="image/svg" href="http://github-media-downloads.s3.amazonaws.com/github-logo.svg" />
      <link rel="xhr-socket" href="/_sockets">
      <meta name="msapplication-TileImage" content="/windows-tile.png">
      <meta name="msapplication-TileColor" content="#ffffff">
  
      
      
      <link rel="icon" type="image/x-icon" href="/favicon.ico" />
  
      <meta content="authenticity_token" name="csrf-param" />
  <meta content="5ySpXypBTQSjbUFl85aGpku6cWpw4OC42VWpZHo+j64=" name="csrf-token" />
  
      <link href="https://a248.e.akamai.net/assets.github.com/assets/github-9a310fdbdbb761f960d24b9c185a3506b9d3663d.css" media="all" rel="stylesheet" type="text/css" />
      <link href="https://a248.e.akamai.net/assets.github.com/assets/github2-3f38effb52355c191d32c7d619457584b9f50394.css" media="all" rel="stylesheet" type="text/css" />
      
  
  
        <script src="https://a248.e.akamai.net/assets.github.com/assets/frameworks-010d500708696b4ecee44478b5229d626367e844.js" type="text/javascript"></script>
        <script src="https://a248.e.akamai.net/assets.github.com/assets/github-3a2294d0a96fa40c4e50e8b0326ef6a8f001210a.js" type="text/javascript"></script>
        
        <meta http-equiv="x-pjax-version" content="bba392c1068c7e96d933bc161a77540e">
  
          <link data-pjax-transient rel='permalink' href='/jonstipe/datetime-polyfill/blob/b516c661fd9a9b2c117714f3b8e2c6c8d7726c1d/datetime-polyfill.min.js'>
      <meta property="og:title" content="datetime-polyfill"/>
      <meta property="og:type" content="githubog:gitrepository"/>
      <meta property="og:url" content="https://github.com/jonstipe/datetime-polyfill"/>
      <meta property="og:image" content="https://secure.gravatar.com/avatar/e05830a1b79ce58fab347e979944160c?s=420&amp;d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-user-420.png"/>
      <meta property="og:site_name" content="GitHub"/>
      <meta property="og:description" content="datetime-polyfill - A polyfill for implementing the HTML5 &lt;input type=&quot;datetime&quot;&gt; element in browsers that do not currently support it."/>
      <meta property="twitter:card" content="summary"/>
      <meta property="twitter:site" content="@GitHub">
      <meta property="twitter:title" content="jonstipe/datetime-polyfill"/>
  
      <meta name="description" content="datetime-polyfill - A polyfill for implementing the HTML5 &lt;input type=&quot;datetime&quot;&gt; element in browsers that do not currently support it." />
  
    <link href="https://github.com/jonstipe/datetime-polyfill/commits/master.atom" rel="alternate" title="Recent Commits to datetime-polyfill:master" type="application/atom+xml" />
  
    </head>
  
  
    <body class="logged_in page-blob windows vis-public env-production  ">
      <div id="wrapper">
  
        
  
        
        
        
  
        <div class="header header-logged-in true">
    <div class="container clearfix">
  
      <a class="header-logo-blacktocat" href="https://github.com/">
    <span class="mega-icon mega-icon-blacktocat"></span>
  </a>
  
      <div class="divider-vertical"></div>
  
        <a href="/notifications" class="notification-indicator tooltipped downwards" title="You have no unread notifications">
      <span class="mail-status all-read"></span>
    </a>
    <div class="divider-vertical"></div>
  
  
        <div class="command-bar js-command-bar  ">
              <form accept-charset="UTF-8" action="/search" class="command-bar-form" id="top_search_form" method="get">
    <a href="/search/advanced" class="advanced-search-icon tooltipped downwards command-bar-search" id="advanced_search" title="Advanced search"><span class="mini-icon mini-icon-advanced-search "></span></a>
  
    <input type="text" data-hotkey="/ s" name="q" id="js-command-bar-field" placeholder="Search or type a command" tabindex="1" data-username="vladislav-karamfilov" autocapitalize="off">
  
    <span class="mini-icon help tooltipped downwards" title="Show command bar help">
      <span class="mini-icon mini-icon-help"></span>
    </span>
  
    <input type="hidden" name="ref" value="cmdform">
  
      <input type="hidden" class="js-repository-name-with-owner" value="jonstipe/datetime-polyfill"/>
      <input type="hidden" class="js-repository-branch" value="master"/>
      <input type="hidden" class="js-repository-tree-sha" value="79ca2195877dce64d3d79ee7995cab2778fd68bd"/>
  
    <div class="divider-vertical"></div>
  </form>
          <ul class="top-nav">
              <li class="explore"><a href="https://github.com/explore">Explore</a></li>
              <li><a href="https://gist.github.com">Gist</a></li>
              <li><a href="/blog">Blog</a></li>
            <li><a href="http://help.github.com">Help</a></li>
          </ul>
        </div>
  
      
  
    
  
      <ul id="user-links">
        <li>
          <a href="https://github.com/vladislav-karamfilov" class="name">
            <img height="20" src="https://secure.gravatar.com/avatar/caff20b521413be225c46a10c7b53498?s=140&amp;d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-user-420.png" width="20" /> vladislav-karamfilov
          </a>
        </li>
  
          <li>
            <a href="/new" id="new_repo" class="tooltipped downwards" title="Create a new repo">
              <span class="mini-icon mini-icon-create"></span>
            </a>
          </li>
  
          <li>
            <a href="/settings/profile" id="account_settings"
              class="tooltipped downwards"
              title="Account settings ">
              <span class="mini-icon mini-icon-account-settings"></span>
            </a>
          </li>
          <li>
            <a class="tooltipped downwards" href="/logout" data-method="post" id="logout" title="Sign out">
              <span class="mini-icon mini-icon-logout"></span>
            </a>
          </li>
  
      </ul>
  
  
  <div class="js-new-dropdown-contents hidden">
    <ul class="dropdown-menu">
      <li>
        <a href="/new"><span class="mini-icon mini-icon-create"></span> New repository</a>
      </li>
      <li>
          <a href="https://github.com/jonstipe/datetime-polyfill/issues/new"><span class="mini-icon mini-icon-issue-opened"></span> New issue</a>
      </li>
      <li>
      </li>
      <li>
        <a href="/organizations/new"><span class="mini-icon mini-icon-u-list"></span> New organization</a>
      </li>
    </ul>
  </div>
  
  
      
    </div>
  </div>
  
        
  
        
  
        
  
  
              <div class="site hfeed" itemscope itemtype="http://schema.org/WebPage">
        <div class="hentry">
          
          <div class="pagehead repohead instapaper_ignore readability-menu ">
            <div class="container">
              <div class="title-actions-bar">
                
  
  
  <ul class="pagehead-actions">
  
  
      <li class="subscription">
        <form accept-charset="UTF-8" action="/notifications/subscribe" data-autosubmit="true" data-remote="true" method="post"><div style="margin:0;padding:0;display:inline"><input name="authenticity_token" type="hidden" value="5ySpXypBTQSjbUFl85aGpku6cWpw4OC42VWpZHo+j64=" /></div>  <input id="repository_id" name="repository_id" type="hidden" value="5052897" />
  
      <div class="select-menu js-menu-container js-select-menu">
        <span class="minibutton select-menu-button js-menu-target">
          <span class="js-select-button">
            <span class="mini-icon mini-icon-watching"></span>
            Watch
          </span>
        </span>
  
        <div class="select-menu-modal-holder js-menu-content">
          <div class="select-menu-modal">
            <div class="select-menu-header">
              <span class="select-menu-title">Notification status</span>
              <span class="mini-icon mini-icon-remove-close js-menu-close"></span>
            </div> <!-- /.select-menu-header -->
  
            <div class="select-menu-list js-navigation-container">
  
              <div class="select-menu-item js-navigation-item js-navigation-target selected">
                <span class="select-menu-item-icon mini-icon mini-icon-confirm"></span>
                <div class="select-menu-item-text">
                  <input checked="checked" id="do_included" name="do" type="radio" value="included" />
                  <h4>Not watching</h4>
                  <span class="description">You only receive notifications for discussions in which you participate or are @mentioned.</span>
                  <span class="js-select-button-text hidden-select-button-text">
                    <span class="mini-icon mini-icon-watching"></span>
                    Watch
                  </span>
                </div>
              </div> <!-- /.select-menu-item -->
  
              <div class="select-menu-item js-navigation-item js-navigation-target ">
                <span class="select-menu-item-icon mini-icon mini-icon-confirm"></span>
                <div class="select-menu-item-text">
                  <input id="do_subscribed" name="do" type="radio" value="subscribed" />
                  <h4>Watching</h4>
                  <span class="description">You receive notifications for all discussions in this repository.</span>
                  <span class="js-select-button-text hidden-select-button-text">
                    <span class="mini-icon mini-icon-unwatch"></span>
                    Unwatch
                  </span>
                </div>
              </div> <!-- /.select-menu-item -->
  
              <div class="select-menu-item js-navigation-item js-navigation-target ">
                <span class="select-menu-item-icon mini-icon mini-icon-confirm"></span>
                <div class="select-menu-item-text">
                  <input id="do_ignore" name="do" type="radio" value="ignore" />
                  <h4>Ignoring</h4>
                  <span class="description">You do not receive any notifications for discussions in this repository.</span>
                  <span class="js-select-button-text hidden-select-button-text">
                    <span class="mini-icon mini-icon-mute"></span>
                    Stop ignoring
                  </span>
                </div>
              </div> <!-- /.select-menu-item -->
  
            </div> <!-- /.select-menu-list -->
  
          </div> <!-- /.select-menu-modal -->
        </div> <!-- /.select-menu-modal-holder -->
      </div> <!-- /.select-menu -->
  
  </form>
      </li>
  
      <li class="js-toggler-container js-social-container starring-container ">
        <a href="/jonstipe/datetime-polyfill/unstar" class="minibutton js-toggler-target star-button starred upwards" title="Unstar this repo" data-remote="true" data-method="post" rel="nofollow">
          <span class="mini-icon mini-icon-remove-star"></span>
          <span class="text">Unstar</span>
        </a>
        <a href="/jonstipe/datetime-polyfill/star" class="minibutton js-toggler-target star-button unstarred upwards" title="Star this repo" data-remote="true" data-method="post" rel="nofollow">
          <span class="mini-icon mini-icon-star"></span>
          <span class="text">Star</span>
        </a>
        <a class="social-count js-social-count" href="/jonstipe/datetime-polyfill/stargazers">2</a>
      </li>
  
          <li>
            <a href="/jonstipe/datetime-polyfill/fork" class="minibutton js-toggler-target fork-button lighter upwards" title="Fork this repo" rel="nofollow" data-method="post">
              <span class="mini-icon mini-icon-branch-create"></span>
              <span class="text">Fork</span>
            </a>
            <a href="/jonstipe/datetime-polyfill/network" class="social-count">2</a>
          </li>
  
  
  </ul>
  
                <h1 itemscope itemtype="http://data-vocabulary.org/Breadcrumb" class="entry-title public">
                  <span class="repo-label"><span>public</span></span>
                  <span class="mega-icon mega-icon-public-repo"></span>
                  <span class="author vcard">
                    <a href="/jonstipe" class="url fn" itemprop="url" rel="author">
                    <span itemprop="title">jonstipe</span>
                    </a></span> /
                  <strong><a href="/jonstipe/datetime-polyfill" class="js-current-repository">datetime-polyfill</a></strong>
                </h1>
              </div>
  
              
    <ul class="tabs">
      <li><a href="/jonstipe/datetime-polyfill" class="selected" highlight="repo_source repo_downloads repo_commits repo_tags repo_branches">Code</a></li>
      <li><a href="/jonstipe/datetime-polyfill/network" highlight="repo_network">Network</a></li>
      <li><a href="/jonstipe/datetime-polyfill/pulls" highlight="repo_pulls">Pull Requests <span class='counter'>0</span></a></li>
  
        <li><a href="/jonstipe/datetime-polyfill/issues" highlight="repo_issues">Issues <span class='counter'>0</span></a></li>
  
        <li><a href="/jonstipe/datetime-polyfill/wiki" highlight="repo_wiki">Wiki</a></li>
  
  
      <li><a href="/jonstipe/datetime-polyfill/graphs" highlight="repo_graphs repo_contributors">Graphs</a></li>
  
  
    </ul>
    
  <div class="tabnav">
  
    <span class="tabnav-right">
      <ul class="tabnav-tabs">
            <li><a href="/jonstipe/datetime-polyfill/tags" class="tabnav-tab" highlight="repo_tags">Tags <span class="counter blank">0</span></a></li>
      </ul>
      
    </span>
  
    <div class="tabnav-widget scope">
  
  
      <div class="select-menu js-menu-container js-select-menu js-branch-menu">
        <a class="minibutton select-menu-button js-menu-target" data-hotkey="w" data-ref="master">
          <span class="mini-icon mini-icon-branch"></span>
          <i>branch:</i>
          <span class="js-select-button">master</span>
        </a>
  
        <div class="select-menu-modal-holder js-menu-content js-navigation-container">
  
          <div class="select-menu-modal">
            <div class="select-menu-header">
              <span class="select-menu-title">Switch branches/tags</span>
              <span class="mini-icon mini-icon-remove-close js-menu-close"></span>
            </div> <!-- /.select-menu-header -->
  
            <div class="select-menu-filters">
              <div class="select-menu-text-filter">
                <input type="text" id="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" class="js-select-menu-tab">Branches</a>
                  </li>
                  <li class="select-menu-tab">
                    <a href="#" data-tab-filter="tags" class="js-select-menu-tab">Tags</a>
                  </li>
                </ul>
              </div><!-- /.select-menu-tabs -->
            </div><!-- /.select-menu-filters -->
  
            <div class="select-menu-list select-menu-tab-bucket js-select-menu-tab-bucket css-truncate" data-tab-filter="branches">
  
              <div data-filterable-for="commitish-filter-field" data-filterable-type="substring">
  
                  <div class="select-menu-item js-navigation-item js-navigation-target ">
                    <span class="select-menu-item-icon mini-icon mini-icon-confirm"></span>
                    <a href="/jonstipe/datetime-polyfill/blob/gh-pages/datetime-polyfill.min.js" class="js-navigation-open select-menu-item-text js-select-button-text css-truncate-target" data-name="gh-pages" rel="nofollow" title="gh-pages">gh-pages</a>
                  </div> <!-- /.select-menu-item -->
                  <div class="select-menu-item js-navigation-item js-navigation-target selected">
                    <span class="select-menu-item-icon mini-icon mini-icon-confirm"></span>
                    <a href="/jonstipe/datetime-polyfill/blob/master/datetime-polyfill.min.js" class="js-navigation-open select-menu-item-text js-select-button-text css-truncate-target" data-name="master" rel="nofollow" title="master">master</a>
                  </div> <!-- /.select-menu-item -->
              </div>
  
                <div class="select-menu-no-results">Nothing to show</div>
            </div> <!-- /.select-menu-list -->
  
  
            <div class="select-menu-list select-menu-tab-bucket js-select-menu-tab-bucket css-truncate" data-tab-filter="tags">
              <div data-filterable-for="commitish-filter-field" data-filterable-type="substring">
  
              </div>
  
              <div class="select-menu-no-results">Nothing to show</div>
  
            </div> <!-- /.select-menu-list -->
  
          </div> <!-- /.select-menu-modal -->
        </div> <!-- /.select-menu-modal-holder -->
      </div> <!-- /.select-menu -->
  
    </div> <!-- /.scope -->
  
    <ul class="tabnav-tabs">
      <li><a href="/jonstipe/datetime-polyfill" class="selected tabnav-tab" highlight="repo_source">Files</a></li>
      <li><a href="/jonstipe/datetime-polyfill/commits/master" class="tabnav-tab" highlight="repo_commits">Commits</a></li>
      <li><a href="/jonstipe/datetime-polyfill/branches" class="tabnav-tab" highlight="repo_branches" rel="nofollow">Branches <span class="counter ">2</span></a></li>
    </ul>
  
  </div>
  
    
    
    
  
  
              
            </div>
          </div><!-- /.repohead -->
  
          <div id="js-repo-pjax-container" class="container context-loader-container" data-pjax-container>
            
  
  
  <!-- blob contrib key: blob_contributors:v21:e5c2e2a83f7c6817f5c96c3e3095db18 -->
  <!-- blob contrib frag key: views10/v8/blob_contributors:v21:e5c2e2a83f7c6817f5c96c3e3095db18 -->
  
  
  <div id="slider">
      <div class="frame-meta">
  
        <p title="This is a placeholder element" class="js-history-link-replace hidden"></p>
  
          <div class="breadcrumb">
            <span class='bold'><span itemscope="" itemtype="http://data-vocabulary.org/Breadcrumb"><a href="/jonstipe/datetime-polyfill" class="js-slide-to" data-branch="master" data-direction="back" itemscope="url"><span itemprop="title">datetime-polyfill</span></a></span></span><span class="separator"> / </span><strong class="final-path">datetime-polyfill.min.js</strong> <span class="js-zeroclipboard zeroclipboard-button" data-clipboard-text="datetime-polyfill.min.js" data-copied-hint="copied!" title="copy to clipboard"><span class="mini-icon mini-icon-clipboard"></span></span>
          </div>
  
        <a href="/jonstipe/datetime-polyfill/find/master" class="js-slide-to" data-hotkey="t" style="display:none">Show File Finder</a>
  
  
          
    <div class="commit file-history-tease">
      <img class="main-avatar" height="24" src="https://secure.gravatar.com/avatar/e05830a1b79ce58fab347e979944160c?s=140&amp;d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-user-420.png" width="24" />
      <span class="author"><a href="/jonstipe" rel="author">jonstipe</a></span>
      <time class="js-relative-date" datetime="2012-09-07T23:22:31-07:00" title="2012-09-07 23:22:31">September 07, 2012</time>
      <div class="commit-title">
          <a href="/jonstipe/datetime-polyfill/commit/0759335161481eb73b9734a57fd467e8948a67cd" class="message">Minified.</a>
      </div>
  
      <div class="participation">
        <p class="quickstat"><a href="#blob_contributors_box" rel="facebox"><strong>1</strong> contributor</a></p>
        
      </div>
      <div id="blob_contributors_box" style="display:none">
        <h2>Users on GitHub who have contributed to this file</h2>
        <ul class="facebox-user-list">
          <li>
            <img height="24" src="https://secure.gravatar.com/avatar/e05830a1b79ce58fab347e979944160c?s=140&amp;d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-user-420.png" width="24" />
            <a href="/jonstipe">jonstipe</a>
          </li>
        </ul>
      </div>
    </div>
  
  
      </div><!-- ./.frame-meta -->
  
      <div class="frames">
        <div class="frame" data-permalink-url="/jonstipe/datetime-polyfill/blob/b516c661fd9a9b2c117714f3b8e2c6c8d7726c1d/datetime-polyfill.min.js" data-title="datetime-polyfill/datetime-polyfill.min.js at master · jonstipe/datetime-polyfill · GitHub" data-type="blob">
  
          <div id="files" class="bubble">
            <div class="file">
              <div class="meta">
                <div class="info">
                  <span class="icon"><b class="mini-icon mini-icon-text-file"></b></span>
                  <span class="mode" title="File Mode">file</span>
                    <span>50 lines (49 sloc)</span>
                  <span>16.764 kb</span>
                </div>
                <div class="actions">
                  <div class="button-group">
                          <a class="minibutton tooltipped leftwards"
                             title="Clicking this button will automatically fork this project so you can edit the file"
                             href="/jonstipe/datetime-polyfill/edit/master/datetime-polyfill.min.js"
                             data-method="post" rel="nofollow">Edit</a>
                    <a href="/jonstipe/datetime-polyfill/raw/master/datetime-polyfill.min.js" class="button minibutton " id="raw-url">Raw</a>
                      <a href="/jonstipe/datetime-polyfill/blame/master/datetime-polyfill.min.js" class="button minibutton ">Blame</a>
                    <a href="/jonstipe/datetime-polyfill/commits/master/datetime-polyfill.min.js" class="button minibutton " rel="nofollow">History</a>
                  </div><!-- /.button-group -->
                </div><!-- /.actions -->
  
              </div>
                  <div class="blob-wrapper data type-javascript js-blob-data">
        <table class="file-code file-blob">
          <tr class="file-code-line">
            <td class="blob-line-nums">
              <span id="L1" rel="#L1">1</span>
  <span id="L2" rel="#L2">2</span>
  <span id="L3" rel="#L3">3</span>
  <span id="L4" rel="#L4">4</span>
  <span id="L5" rel="#L5">5</span>
  <span id="L6" rel="#L6">6</span>
  <span id="L7" rel="#L7">7</span>
  <span id="L8" rel="#L8">8</span>
  <span id="L9" rel="#L9">9</span>
  <span id="L10" rel="#L10">10</span>
  <span id="L11" rel="#L11">11</span>
  <span id="L12" rel="#L12">12</span>
  <span id="L13" rel="#L13">13</span>
  <span id="L14" rel="#L14">14</span>
  <span id="L15" rel="#L15">15</span>
  <span id="L16" rel="#L16">16</span>
  <span id="L17" rel="#L17">17</span>
  <span id="L18" rel="#L18">18</span>
  <span id="L19" rel="#L19">19</span>
  <span id="L20" rel="#L20">20</span>
  <span id="L21" rel="#L21">21</span>
  <span id="L22" rel="#L22">22</span>
  <span id="L23" rel="#L23">23</span>
  <span id="L24" rel="#L24">24</span>
  <span id="L25" rel="#L25">25</span>
  <span id="L26" rel="#L26">26</span>
  <span id="L27" rel="#L27">27</span>
  <span id="L28" rel="#L28">28</span>
  <span id="L29" rel="#L29">29</span>
  <span id="L30" rel="#L30">30</span>
  <span id="L31" rel="#L31">31</span>
  <span id="L32" rel="#L32">32</span>
  <span id="L33" rel="#L33">33</span>
  <span id="L34" rel="#L34">34</span>
  <span id="L35" rel="#L35">35</span>
  <span id="L36" rel="#L36">36</span>
  <span id="L37" rel="#L37">37</span>
  <span id="L38" rel="#L38">38</span>
  <span id="L39" rel="#L39">39</span>
  <span id="L40" rel="#L40">40</span>
  <span id="L41" rel="#L41">41</span>
  <span id="L42" rel="#L42">42</span>
  <span id="L43" rel="#L43">43</span>
  <span id="L44" rel="#L44">44</span>
  <span id="L45" rel="#L45">45</span>
  <span id="L46" rel="#L46">46</span>
  <span id="L47" rel="#L47">47</span>
  <span id="L48" rel="#L48">48</span>
  <span id="L49" rel="#L49">49</span>
  <span id="L50" rel="#L50">50</span>
  
            </td>
            <td class="blob-line-code">
                    <div class="highlight"><pre><div class='line' id='LC1'><span class="c1">// HTML5 DateTime polyfill | Jonathan Stipe | https://github.com/jonstipe/datetime-polyfill</span></div><div class='line' id='LC2'><br/></div><div class='line' id='LC3'><span class="p">(</span><span class="kd">function</span><span class="p">(){(</span><span class="kd">function</span><span class="p">(</span><span class="nx">$</span><span class="p">){</span><span class="nx">$</span><span class="p">.</span><span class="nx">fn</span><span class="p">.</span><span class="nx">inputDateTime</span><span class="o">=</span><span class="kd">function</span><span class="p">(){</span><span class="kd">var</span> <span class="nx">decrement</span><span class="p">,</span><span class="nx">decrementDate</span><span class="p">,</span><span class="nx">increment</span><span class="p">,</span><span class="nx">incrementDate</span><span class="p">,</span><span class="nx">makeDateDisplayString</span><span class="p">,</span><span class="nx">makeDateTimeString</span><span class="p">,</span><span class="nx">makeTimeDisplayString</span><span class="p">,</span><span class="nx">readDateTime</span><span class="p">,</span><span class="nx">stepNormalize</span><span class="p">;</span><span class="nx">readDateTime</span><span class="o">=</span><span class="kd">function</span><span class="p">(</span><span class="nx">dt_str</span><span class="p">){</span><span class="kd">var</span> <span class="nx">dateObj</span><span class="p">,</span><span class="nx">dayPart</span><span class="p">,</span><span class="nx">hourPart</span><span class="p">,</span><span class="nx">matchData</span><span class="p">,</span><span class="nx">millisecondPart</span><span class="p">,</span><span class="nx">minutePart</span><span class="p">,</span><span class="nx">monthPart</span><span class="p">,</span><span class="nx">secondPart</span><span class="p">,</span><span class="nx">yearPart</span><span class="p">;</span><span class="k">if</span><span class="p">(</span><span class="sr">/^\d{4,}-\d\d-\d\dT\d\d:\d\d(?:\:\d\d(?:\.\d+)?)?Z$/</span><span class="p">.</span><span class="nx">test</span><span class="p">(</span><span class="nx">dt_str</span><span class="p">)){</span><span class="nx">matchData</span><span class="o">=</span><span class="sr">/^(\d+)-(\d+)-(\d+)T(\d+):(\d+)(?:\:(\d+)(?:\.(\d+))?)?Z$/</span><span class="p">.</span><span class="nx">exec</span><span class="p">(</span><span class="nx">dt_str</span><span class="p">);</span><span class="nx">yearPart</span><span class="o">=</span><span class="nb">parseInt</span><span class="p">(</span><span class="nx">matchData</span><span class="p">[</span><span class="mi">1</span><span class="p">],</span><span class="mi">10</span><span class="p">);</span><span class="nx">monthPart</span><span class="o">=</span><span class="nb">parseInt</span><span class="p">(</span><span class="nx">matchData</span><span class="p">[</span><span class="mi">2</span><span class="p">],</span><span class="mi">10</span><span class="p">);</span><span class="nx">dayPart</span><span class="o">=</span><span class="nb">parseInt</span><span class="p">(</span><span class="nx">matchData</span><span class="p">[</span><span class="mi">3</span><span class="p">],</span><span class="mi">10</span><span class="p">);</span><span class="nx">hourPart</span><span class="o">=</span><span class="nb">parseInt</span><span class="p">(</span><span class="nx">matchData</span><span class="p">[</span><span class="mi">4</span><span class="p">],</span><span class="mi">10</span><span class="p">);</span><span class="nx">minutePart</span><span class="o">=</span><span class="nb">parseInt</span><span class="p">(</span><span class="nx">matchData</span><span class="p">[</span><span class="mi">5</span><span class="p">],</span><span class="mi">10</span><span class="p">);</span><span class="nx">secondPart</span><span class="o">=</span><span class="nx">matchData</span><span class="p">[</span><span class="mi">6</span><span class="p">]</span><span class="o">!=</span><span class="kc">null</span><span class="o">?</span><span class="nb">parseInt</span><span class="p">(</span><span class="nx">matchData</span><span class="p">[</span><span class="mi">6</span><span class="p">],</span><span class="mi">10</span><span class="p">)</span><span class="o">:</span><span class="mi">0</span><span class="p">;</span><span class="nx">millisecondPart</span><span class="o">=</span><span class="nx">matchData</span><span class="p">[</span><span class="mi">7</span><span class="p">]</span><span class="o">!=</span><span class="kc">null</span><span class="o">?</span><span class="nx">matchData</span><span class="p">[</span><span class="mi">7</span><span class="p">]</span><span class="o">:</span><span class="s1">&#39;0&#39;</span><span class="p">;</span><span class="k">while</span><span class="p">(</span><span class="nx">millisecondPart</span><span class="p">.</span><span class="nx">length</span><span class="o">&lt;</span><span class="mi">3</span><span class="p">){</span><span class="nx">millisecondPart</span><span class="o">+=</span><span class="s1">&#39;0&#39;</span><span class="p">;}</span></div><div class='line' id='LC4'><span class="k">if</span><span class="p">(</span><span class="nx">millisecondPart</span><span class="p">.</span><span class="nx">length</span><span class="o">&gt;</span><span class="mi">3</span><span class="p">){</span><span class="nx">millisecondPart</span><span class="o">=</span><span class="nx">millisecondPart</span><span class="p">.</span><span class="nx">substring</span><span class="p">(</span><span class="mi">0</span><span class="p">,</span><span class="mi">3</span><span class="p">);}</span></div><div class='line' id='LC5'><span class="nx">millisecondPart</span><span class="o">=</span><span class="nb">parseInt</span><span class="p">(</span><span class="nx">millisecondPart</span><span class="p">,</span><span class="mi">10</span><span class="p">);</span><span class="nx">dateObj</span><span class="o">=</span><span class="k">new</span> <span class="nb">Date</span><span class="p">();</span><span class="nx">dateObj</span><span class="p">.</span><span class="nx">setUTCFullYear</span><span class="p">(</span><span class="nx">yearPart</span><span class="p">);</span><span class="nx">dateObj</span><span class="p">.</span><span class="nx">setUTCMonth</span><span class="p">(</span><span class="nx">monthPart</span><span class="o">-</span><span class="mi">1</span><span class="p">);</span><span class="nx">dateObj</span><span class="p">.</span><span class="nx">setUTCDate</span><span class="p">(</span><span class="nx">dayPart</span><span class="p">);</span><span class="nx">dateObj</span><span class="p">.</span><span class="nx">setUTCHours</span><span class="p">(</span><span class="nx">hourPart</span><span class="p">);</span><span class="nx">dateObj</span><span class="p">.</span><span class="nx">setUTCMinutes</span><span class="p">(</span><span class="nx">minutePart</span><span class="p">);</span><span class="nx">dateObj</span><span class="p">.</span><span class="nx">setUTCSeconds</span><span class="p">(</span><span class="nx">secondPart</span><span class="p">);</span><span class="nx">dateObj</span><span class="p">.</span><span class="nx">setUTCMilliseconds</span><span class="p">(</span><span class="nx">millisecondPart</span><span class="p">);</span><span class="k">return</span> <span class="nx">dateObj</span><span class="p">;}</span><span class="k">else</span><span class="p">{</span><span class="k">throw</span><span class="s2">&quot;Invalid datetime string: &quot;</span><span class="o">+</span><span class="nx">dt_str</span><span class="p">;}};</span><span class="nx">makeDateTimeString</span><span class="o">=</span><span class="kd">function</span><span class="p">(</span><span class="nx">date_obj</span><span class="p">){</span><span class="kd">var</span> <span class="nx">dt_arr</span><span class="p">;</span><span class="nx">dt_arr</span><span class="o">=</span><span class="p">[</span><span class="nx">date_obj</span><span class="p">.</span><span class="nx">getUTCFullYear</span><span class="p">().</span><span class="nx">toString</span><span class="p">()];</span><span class="nx">dt_arr</span><span class="p">.</span><span class="nx">push</span><span class="p">(</span><span class="s1">&#39;-&#39;</span><span class="p">);</span><span class="k">if</span><span class="p">(</span><span class="nx">date_obj</span><span class="p">.</span><span class="nx">getUTCMonth</span><span class="p">()</span><span class="o">&lt;</span><span class="mi">9</span><span class="p">){</span><span class="nx">dt_arr</span><span class="p">.</span><span class="nx">push</span><span class="p">(</span><span class="s1">&#39;0&#39;</span><span class="p">);}</span></div><div class='line' id='LC6'><span class="nx">dt_arr</span><span class="p">.</span><span class="nx">push</span><span class="p">((</span><span class="nx">date_obj</span><span class="p">.</span><span class="nx">getUTCMonth</span><span class="p">()</span><span class="o">+</span><span class="mi">1</span><span class="p">).</span><span class="nx">toString</span><span class="p">());</span><span class="nx">dt_arr</span><span class="p">.</span><span class="nx">push</span><span class="p">(</span><span class="s1">&#39;-&#39;</span><span class="p">);</span><span class="k">if</span><span class="p">(</span><span class="nx">date_obj</span><span class="p">.</span><span class="nx">getUTCDate</span><span class="p">()</span><span class="o">&lt;</span><span class="mi">10</span><span class="p">){</span><span class="nx">dt_arr</span><span class="p">.</span><span class="nx">push</span><span class="p">(</span><span class="s1">&#39;0&#39;</span><span class="p">);}</span></div><div class='line' id='LC7'><span class="nx">dt_arr</span><span class="p">.</span><span class="nx">push</span><span class="p">(</span><span class="nx">date_obj</span><span class="p">.</span><span class="nx">getUTCDate</span><span class="p">().</span><span class="nx">toString</span><span class="p">());</span><span class="nx">dt_arr</span><span class="p">.</span><span class="nx">push</span><span class="p">(</span><span class="s1">&#39;T&#39;</span><span class="p">);</span><span class="k">if</span><span class="p">(</span><span class="nx">date_obj</span><span class="p">.</span><span class="nx">getUTCHours</span><span class="p">()</span><span class="o">&lt;</span><span class="mi">10</span><span class="p">){</span><span class="nx">dt_arr</span><span class="p">.</span><span class="nx">push</span><span class="p">(</span><span class="s1">&#39;0&#39;</span><span class="p">);}</span></div><div class='line' id='LC8'><span class="nx">dt_arr</span><span class="p">.</span><span class="nx">push</span><span class="p">(</span><span class="nx">date_obj</span><span class="p">.</span><span class="nx">getUTCHours</span><span class="p">().</span><span class="nx">toString</span><span class="p">());</span><span class="nx">dt_arr</span><span class="p">.</span><span class="nx">push</span><span class="p">(</span><span class="s1">&#39;:&#39;</span><span class="p">);</span><span class="k">if</span><span class="p">(</span><span class="nx">date_obj</span><span class="p">.</span><span class="nx">getUTCMinutes</span><span class="p">()</span><span class="o">&lt;</span><span class="mi">10</span><span class="p">){</span><span class="nx">dt_arr</span><span class="p">.</span><span class="nx">push</span><span class="p">(</span><span class="s1">&#39;0&#39;</span><span class="p">);}</span></div><div class='line' id='LC9'><span class="nx">dt_arr</span><span class="p">.</span><span class="nx">push</span><span class="p">(</span><span class="nx">date_obj</span><span class="p">.</span><span class="nx">getUTCMinutes</span><span class="p">().</span><span class="nx">toString</span><span class="p">());</span><span class="k">if</span><span class="p">(</span><span class="nx">date_obj</span><span class="p">.</span><span class="nx">getUTCSeconds</span><span class="p">()</span><span class="o">&gt;</span><span class="mi">0</span><span class="o">||</span><span class="nx">date_obj</span><span class="p">.</span><span class="nx">getUTCMilliseconds</span><span class="p">()</span><span class="o">&gt;</span><span class="mi">0</span><span class="p">){</span><span class="nx">dt_arr</span><span class="p">.</span><span class="nx">push</span><span class="p">(</span><span class="s1">&#39;:&#39;</span><span class="p">);</span><span class="k">if</span><span class="p">(</span><span class="nx">date_obj</span><span class="p">.</span><span class="nx">getUTCSeconds</span><span class="p">()</span><span class="o">&lt;</span><span class="mi">10</span><span class="p">){</span><span class="nx">dt_arr</span><span class="p">.</span><span class="nx">push</span><span class="p">(</span><span class="s1">&#39;0&#39;</span><span class="p">);}</span></div><div class='line' id='LC10'><span class="nx">dt_arr</span><span class="p">.</span><span class="nx">push</span><span class="p">(</span><span class="nx">date_obj</span><span class="p">.</span><span class="nx">getUTCSeconds</span><span class="p">().</span><span class="nx">toString</span><span class="p">());</span><span class="k">if</span><span class="p">(</span><span class="nx">date_obj</span><span class="p">.</span><span class="nx">getUTCMilliseconds</span><span class="p">()</span><span class="o">&gt;</span><span class="mi">0</span><span class="p">){</span><span class="nx">dt_arr</span><span class="p">.</span><span class="nx">push</span><span class="p">(</span><span class="s1">&#39;.&#39;</span><span class="p">);</span><span class="k">if</span><span class="p">(</span><span class="nx">date_obj</span><span class="p">.</span><span class="nx">getUTCMilliseconds</span><span class="p">()</span><span class="o">&lt;</span><span class="mi">100</span><span class="p">){</span><span class="nx">dt_arr</span><span class="p">.</span><span class="nx">push</span><span class="p">(</span><span class="s1">&#39;0&#39;</span><span class="p">);}</span></div><div class='line' id='LC11'><span class="k">if</span><span class="p">(</span><span class="nx">date_obj</span><span class="p">.</span><span class="nx">getUTCMilliseconds</span><span class="p">()</span><span class="o">&lt;</span><span class="mi">10</span><span class="p">){</span><span class="nx">dt_arr</span><span class="p">.</span><span class="nx">push</span><span class="p">(</span><span class="s1">&#39;0&#39;</span><span class="p">);}</span></div><div class='line' id='LC12'><span class="nx">dt_arr</span><span class="p">.</span><span class="nx">push</span><span class="p">(</span><span class="nx">date_obj</span><span class="p">.</span><span class="nx">getUTCMilliseconds</span><span class="p">().</span><span class="nx">toString</span><span class="p">());}}</span></div><div class='line' id='LC13'><span class="nx">dt_arr</span><span class="p">.</span><span class="nx">push</span><span class="p">(</span><span class="s1">&#39;Z&#39;</span><span class="p">);</span><span class="k">return</span> <span class="nx">dt_arr</span><span class="p">.</span><span class="nx">join</span><span class="p">(</span><span class="s1">&#39;&#39;</span><span class="p">);};</span><span class="nx">makeDateDisplayString</span><span class="o">=</span><span class="kd">function</span><span class="p">(</span><span class="nx">date_obj</span><span class="p">,</span><span class="nx">elem</span><span class="p">){</span><span class="kd">var</span> <span class="nx">$elem</span><span class="p">,</span><span class="nx">date_arr</span><span class="p">,</span><span class="nx">day_names</span><span class="p">,</span><span class="nx">month_names</span><span class="p">;</span><span class="nx">$elem</span><span class="o">=</span><span class="nx">$</span><span class="p">(</span><span class="nx">elem</span><span class="p">);</span><span class="nx">day_names</span><span class="o">=</span><span class="nx">$elem</span><span class="p">.</span><span class="nx">datepicker</span><span class="p">(</span><span class="s2">&quot;option&quot;</span><span class="p">,</span><span class="s2">&quot;dayNames&quot;</span><span class="p">);</span><span class="nx">month_names</span><span class="o">=</span><span class="nx">$elem</span><span class="p">.</span><span class="nx">datepicker</span><span class="p">(</span><span class="s2">&quot;option&quot;</span><span class="p">,</span><span class="s2">&quot;monthNames&quot;</span><span class="p">);</span><span class="nx">date_arr</span><span class="o">=</span><span class="p">[</span><span class="nx">day_names</span><span class="p">[</span><span class="nx">date_obj</span><span class="p">.</span><span class="nx">getUTCDay</span><span class="p">()]];</span><span class="nx">date_arr</span><span class="p">.</span><span class="nx">push</span><span class="p">(</span><span class="s1">&#39;, &#39;</span><span class="p">);</span><span class="nx">date_arr</span><span class="p">.</span><span class="nx">push</span><span class="p">(</span><span class="nx">month_names</span><span class="p">[</span><span class="nx">date_obj</span><span class="p">.</span><span class="nx">getUTCMonth</span><span class="p">()]);</span><span class="nx">date_arr</span><span class="p">.</span><span class="nx">push</span><span class="p">(</span><span class="s1">&#39; &#39;</span><span class="p">);</span><span class="nx">date_arr</span><span class="p">.</span><span class="nx">push</span><span class="p">(</span><span class="nx">date_obj</span><span class="p">.</span><span class="nx">getUTCDate</span><span class="p">().</span><span class="nx">toString</span><span class="p">());</span><span class="nx">date_arr</span><span class="p">.</span><span class="nx">push</span><span class="p">(</span><span class="s1">&#39;, &#39;</span><span class="p">);</span><span class="nx">date_arr</span><span class="p">.</span><span class="nx">push</span><span class="p">(</span><span class="nx">date_obj</span><span class="p">.</span><span class="nx">getUTCFullYear</span><span class="p">().</span><span class="nx">toString</span><span class="p">());</span><span class="k">return</span> <span class="nx">date_arr</span><span class="p">.</span><span class="nx">join</span><span class="p">(</span><span class="s1">&#39;&#39;</span><span class="p">);};</span><span class="nx">makeTimeDisplayString</span><span class="o">=</span><span class="kd">function</span><span class="p">(</span><span class="nx">date_obj</span><span class="p">){</span><span class="kd">var</span> <span class="nx">ampm</span><span class="p">,</span><span class="nx">time_arr</span><span class="p">;</span><span class="nx">time_arr</span><span class="o">=</span><span class="k">new</span> <span class="nb">Array</span><span class="p">();</span><span class="k">if</span><span class="p">(</span><span class="nx">date_obj</span><span class="p">.</span><span class="nx">getUTCHours</span><span class="p">()</span><span class="o">===</span><span class="mi">0</span><span class="p">){</span><span class="nx">time_arr</span><span class="p">.</span><span class="nx">push</span><span class="p">(</span><span class="s1">&#39;12&#39;</span><span class="p">);</span><span class="nx">ampm</span><span class="o">=</span><span class="s1">&#39;AM&#39;</span><span class="p">;}</span><span class="k">else</span> <span class="k">if</span><span class="p">(</span><span class="nx">date_obj</span><span class="p">.</span><span class="nx">getUTCHours</span><span class="p">()</span><span class="o">&gt;</span><span class="mi">0</span><span class="o">&amp;&amp;</span><span class="nx">date_obj</span><span class="p">.</span><span class="nx">getUTCHours</span><span class="p">()</span><span class="o">&lt;</span><span class="mi">10</span><span class="p">){</span><span class="nx">time_arr</span><span class="p">.</span><span class="nx">push</span><span class="p">(</span><span class="s1">&#39;0&#39;</span><span class="p">);</span><span class="nx">time_arr</span><span class="p">.</span><span class="nx">push</span><span class="p">(</span><span class="nx">date_obj</span><span class="p">.</span><span class="nx">getUTCHours</span><span class="p">().</span><span class="nx">toString</span><span class="p">());</span><span class="nx">ampm</span><span class="o">=</span><span class="s1">&#39;AM&#39;</span><span class="p">;}</span><span class="k">else</span> <span class="k">if</span><span class="p">(</span><span class="nx">date_obj</span><span class="p">.</span><span class="nx">getUTCHours</span><span class="p">()</span><span class="o">&gt;=</span><span class="mi">10</span><span class="o">&amp;&amp;</span><span class="nx">date_obj</span><span class="p">.</span><span class="nx">getUTCHours</span><span class="p">()</span><span class="o">&lt;</span><span class="mi">12</span><span class="p">){</span><span class="nx">time_arr</span><span class="p">.</span><span class="nx">push</span><span class="p">(</span><span class="nx">date_obj</span><span class="p">.</span><span class="nx">getUTCHours</span><span class="p">().</span><span class="nx">toString</span><span class="p">());</span><span class="nx">ampm</span><span class="o">=</span><span class="s1">&#39;AM&#39;</span><span class="p">;}</span><span class="k">else</span> <span class="k">if</span><span class="p">(</span><span class="nx">date_obj</span><span class="p">.</span><span class="nx">getUTCHours</span><span class="p">()</span><span class="o">===</span><span class="mi">12</span><span class="p">){</span><span class="nx">time_arr</span><span class="p">.</span><span class="nx">push</span><span class="p">(</span><span class="s1">&#39;12&#39;</span><span class="p">);</span><span class="nx">ampm</span><span class="o">=</span><span class="s1">&#39;PM&#39;</span><span class="p">;}</span><span class="k">else</span> <span class="k">if</span><span class="p">(</span><span class="nx">date_obj</span><span class="p">.</span><span class="nx">getUTCHours</span><span class="p">()</span><span class="o">&gt;</span><span class="mi">12</span><span class="o">&amp;&amp;</span><span class="nx">date_obj</span><span class="p">.</span><span class="nx">getUTCHours</span><span class="p">()</span><span class="o">&lt;</span><span class="mi">22</span><span class="p">){</span><span class="nx">time_arr</span><span class="p">.</span><span class="nx">push</span><span class="p">(</span><span class="s1">&#39;0&#39;</span><span class="p">);</span><span class="nx">time_arr</span><span class="p">.</span><span class="nx">push</span><span class="p">((</span><span class="nx">date_obj</span><span class="p">.</span><span class="nx">getUTCHours</span><span class="p">()</span><span class="o">-</span><span class="mi">12</span><span class="p">).</span><span class="nx">toString</span><span class="p">());</span><span class="nx">ampm</span><span class="o">=</span><span class="s1">&#39;PM&#39;</span><span class="p">;}</span><span class="k">else</span> <span class="k">if</span><span class="p">(</span><span class="nx">date_obj</span><span class="p">.</span><span class="nx">getUTCHours</span><span class="p">()</span><span class="o">&gt;=</span><span class="mi">22</span><span class="p">){</span><span class="nx">time_arr</span><span class="p">.</span><span class="nx">push</span><span class="p">((</span><span class="nx">date_obj</span><span class="p">.</span><span class="nx">getUTCHours</span><span class="p">()</span><span class="o">-</span><span class="mi">12</span><span class="p">).</span><span class="nx">toString</span><span class="p">());</span><span class="nx">ampm</span><span class="o">=</span><span class="s1">&#39;PM&#39;</span><span class="p">;}</span></div><div class='line' id='LC14'><span class="nx">time_arr</span><span class="p">.</span><span class="nx">push</span><span class="p">(</span><span class="s1">&#39;:&#39;</span><span class="p">);</span><span class="k">if</span><span class="p">(</span><span class="nx">date_obj</span><span class="p">.</span><span class="nx">getUTCMinutes</span><span class="p">()</span><span class="o">&lt;</span><span class="mi">10</span><span class="p">){</span><span class="nx">time_arr</span><span class="p">.</span><span class="nx">push</span><span class="p">(</span><span class="s1">&#39;0&#39;</span><span class="p">);}</span></div><div class='line' id='LC15'><span class="nx">time_arr</span><span class="p">.</span><span class="nx">push</span><span class="p">(</span><span class="nx">date_obj</span><span class="p">.</span><span class="nx">getUTCMinutes</span><span class="p">().</span><span class="nx">toString</span><span class="p">());</span><span class="nx">time_arr</span><span class="p">.</span><span class="nx">push</span><span class="p">(</span><span class="s1">&#39;:&#39;</span><span class="p">);</span><span class="k">if</span><span class="p">(</span><span class="nx">date_obj</span><span class="p">.</span><span class="nx">getUTCSeconds</span><span class="p">()</span><span class="o">&lt;</span><span class="mi">10</span><span class="p">){</span><span class="nx">time_arr</span><span class="p">.</span><span class="nx">push</span><span class="p">(</span><span class="s1">&#39;0&#39;</span><span class="p">);}</span></div><div class='line' id='LC16'><span class="nx">time_arr</span><span class="p">.</span><span class="nx">push</span><span class="p">(</span><span class="nx">date_obj</span><span class="p">.</span><span class="nx">getUTCSeconds</span><span class="p">().</span><span class="nx">toString</span><span class="p">());</span><span class="k">if</span><span class="p">(</span><span class="nx">date_obj</span><span class="p">.</span><span class="nx">getUTCMilliseconds</span><span class="p">()</span><span class="o">&gt;</span><span class="mi">0</span><span class="p">){</span><span class="nx">time_arr</span><span class="p">.</span><span class="nx">push</span><span class="p">(</span><span class="s1">&#39;.&#39;</span><span class="p">);</span><span class="k">if</span><span class="p">(</span><span class="nx">date_obj</span><span class="p">.</span><span class="nx">getUTCMilliseconds</span><span class="p">()</span><span class="o">%</span><span class="mi">100</span><span class="o">===</span><span class="mi">0</span><span class="p">){</span><span class="nx">time_arr</span><span class="p">.</span><span class="nx">push</span><span class="p">((</span><span class="nx">date_obj</span><span class="p">.</span><span class="nx">getUTCMilliseconds</span><span class="p">()</span><span class="o">/</span><span class="mi">100</span><span class="p">).</span><span class="nx">toString</span><span class="p">());}</span><span class="k">else</span> <span class="k">if</span><span class="p">(</span><span class="nx">date_obj</span><span class="p">.</span><span class="nx">getUTCMilliseconds</span><span class="p">()</span><span class="o">%</span><span class="mi">10</span><span class="o">===</span><span class="mi">0</span><span class="p">){</span><span class="nx">time_arr</span><span class="p">.</span><span class="nx">push</span><span class="p">(</span><span class="s1">&#39;0&#39;</span><span class="p">);</span><span class="nx">time_arr</span><span class="p">.</span><span class="nx">push</span><span class="p">((</span><span class="nx">date_obj</span><span class="p">.</span><span class="nx">getUTCMilliseconds</span><span class="p">()</span><span class="o">/</span><span class="mi">10</span><span class="p">).</span><span class="nx">toString</span><span class="p">());}</span><span class="k">else</span><span class="p">{</span><span class="k">if</span><span class="p">(</span><span class="nx">date_obj</span><span class="p">.</span><span class="nx">getUTCMilliseconds</span><span class="p">()</span><span class="o">&lt;</span><span class="mi">100</span><span class="p">){</span><span class="nx">time_arr</span><span class="p">.</span><span class="nx">push</span><span class="p">(</span><span class="s1">&#39;0&#39;</span><span class="p">);}</span></div><div class='line' id='LC17'><span class="k">if</span><span class="p">(</span><span class="nx">date_obj</span><span class="p">.</span><span class="nx">getUTCMilliseconds</span><span class="p">()</span><span class="o">&lt;</span><span class="mi">10</span><span class="p">){</span><span class="nx">time_arr</span><span class="p">.</span><span class="nx">push</span><span class="p">(</span><span class="s1">&#39;0&#39;</span><span class="p">);}</span></div><div class='line' id='LC18'><span class="nx">time_arr</span><span class="p">.</span><span class="nx">push</span><span class="p">(</span><span class="nx">date_obj</span><span class="p">.</span><span class="nx">getUTCMilliseconds</span><span class="p">().</span><span class="nx">toString</span><span class="p">());}}</span></div><div class='line' id='LC19'><span class="nx">time_arr</span><span class="p">.</span><span class="nx">push</span><span class="p">(</span><span class="s1">&#39; &#39;</span><span class="p">);</span><span class="nx">time_arr</span><span class="p">.</span><span class="nx">push</span><span class="p">(</span><span class="nx">ampm</span><span class="p">);</span><span class="k">return</span> <span class="nx">time_arr</span><span class="p">.</span><span class="nx">join</span><span class="p">(</span><span class="s1">&#39;&#39;</span><span class="p">);};</span><span class="nx">increment</span><span class="o">=</span><span class="kd">function</span><span class="p">(</span><span class="nx">hiddenField</span><span class="p">,</span><span class="nx">dateBtn</span><span class="p">,</span><span class="nx">timeField</span><span class="p">,</span><span class="nx">calendarDiv</span><span class="p">){</span><span class="kd">var</span> <span class="nx">$hiddenField</span><span class="p">,</span><span class="nx">max</span><span class="p">,</span><span class="nx">step</span><span class="p">,</span><span class="nx">value</span><span class="p">;</span><span class="nx">$hiddenField</span><span class="o">=</span><span class="nx">$</span><span class="p">(</span><span class="nx">hiddenField</span><span class="p">);</span><span class="nx">value</span><span class="o">=</span><span class="nx">readDateTime</span><span class="p">(</span><span class="nx">$hiddenField</span><span class="p">.</span><span class="nx">val</span><span class="p">());</span><span class="nx">step</span><span class="o">=</span><span class="nx">$hiddenField</span><span class="p">.</span><span class="nx">data</span><span class="p">(</span><span class="s2">&quot;step&quot;</span><span class="p">);</span><span class="nx">max</span><span class="o">=</span><span class="nx">$hiddenField</span><span class="p">.</span><span class="nx">data</span><span class="p">(</span><span class="s2">&quot;max&quot;</span><span class="p">);</span><span class="k">if</span><span class="p">(</span><span class="o">!</span><span class="p">(</span><span class="nx">step</span><span class="o">!=</span><span class="kc">null</span><span class="p">)</span><span class="o">||</span><span class="nx">step</span><span class="o">===</span><span class="s1">&#39;any&#39;</span><span class="p">){</span><span class="nx">value</span><span class="p">.</span><span class="nx">setUTCSeconds</span><span class="p">(</span><span class="nx">value</span><span class="p">.</span><span class="nx">getUTCSeconds</span><span class="p">()</span><span class="o">+</span><span class="mi">1</span><span class="p">);}</span><span class="k">else</span><span class="p">{</span><span class="nx">value</span><span class="p">.</span><span class="nx">setUTCSeconds</span><span class="p">(</span><span class="nx">value</span><span class="p">.</span><span class="nx">getUTCSeconds</span><span class="p">()</span><span class="o">+</span><span class="nx">step</span><span class="p">);}</span></div><div class='line' id='LC20'><span class="k">if</span><span class="p">((</span><span class="nx">max</span><span class="o">!=</span><span class="kc">null</span><span class="p">)</span><span class="o">&amp;&amp;</span><span class="nx">value</span><span class="o">&gt;</span><span class="nx">max</span><span class="p">){</span><span class="nx">value</span><span class="p">.</span><span class="nx">setTime</span><span class="p">(</span><span class="nx">max</span><span class="p">.</span><span class="nx">getTime</span><span class="p">());}</span></div><div class='line' id='LC21'><span class="nx">$hiddenField</span><span class="p">.</span><span class="nx">val</span><span class="p">(</span><span class="nx">makeDateTimeString</span><span class="p">(</span><span class="nx">value</span><span class="p">)).</span><span class="nx">change</span><span class="p">();</span><span class="nx">$</span><span class="p">(</span><span class="nx">dateBtn</span><span class="p">).</span><span class="nx">text</span><span class="p">(</span><span class="nx">makeDateDisplayString</span><span class="p">(</span><span class="nx">value</span><span class="p">,</span><span class="nx">calendarDiv</span><span class="p">));</span><span class="nx">$</span><span class="p">(</span><span class="nx">timeField</span><span class="p">).</span><span class="nx">val</span><span class="p">(</span><span class="nx">makeTimeDisplayString</span><span class="p">(</span><span class="nx">value</span><span class="p">));</span><span class="nx">$</span><span class="p">(</span><span class="nx">calendarDiv</span><span class="p">).</span><span class="nx">datepicker</span><span class="p">(</span><span class="s2">&quot;setDate&quot;</span><span class="p">,</span><span class="nx">value</span><span class="p">);</span><span class="k">return</span> <span class="kc">null</span><span class="p">;};</span><span class="nx">decrement</span><span class="o">=</span><span class="kd">function</span><span class="p">(</span><span class="nx">hiddenField</span><span class="p">,</span><span class="nx">dateBtn</span><span class="p">,</span><span class="nx">timeField</span><span class="p">,</span><span class="nx">calendarDiv</span><span class="p">){</span><span class="kd">var</span> <span class="nx">$hiddenField</span><span class="p">,</span><span class="nx">min</span><span class="p">,</span><span class="nx">step</span><span class="p">,</span><span class="nx">value</span><span class="p">;</span><span class="nx">$hiddenField</span><span class="o">=</span><span class="nx">$</span><span class="p">(</span><span class="nx">hiddenField</span><span class="p">);</span><span class="nx">value</span><span class="o">=</span><span class="nx">readDateTime</span><span class="p">(</span><span class="nx">$hiddenField</span><span class="p">.</span><span class="nx">val</span><span class="p">());</span><span class="nx">step</span><span class="o">=</span><span class="nx">$hiddenField</span><span class="p">.</span><span class="nx">data</span><span class="p">(</span><span class="s2">&quot;step&quot;</span><span class="p">);</span><span class="nx">min</span><span class="o">=</span><span class="nx">$hiddenField</span><span class="p">.</span><span class="nx">data</span><span class="p">(</span><span class="s2">&quot;min&quot;</span><span class="p">);</span><span class="k">if</span><span class="p">(</span><span class="o">!</span><span class="p">(</span><span class="nx">step</span><span class="o">!=</span><span class="kc">null</span><span class="p">)</span><span class="o">||</span><span class="nx">step</span><span class="o">===</span><span class="s1">&#39;any&#39;</span><span class="p">){</span><span class="nx">value</span><span class="p">.</span><span class="nx">setUTCSeconds</span><span class="p">(</span><span class="nx">value</span><span class="p">.</span><span class="nx">getUTCSeconds</span><span class="p">()</span><span class="o">-</span><span class="mi">1</span><span class="p">);}</span><span class="k">else</span><span class="p">{</span><span class="nx">value</span><span class="p">.</span><span class="nx">setUTCSeconds</span><span class="p">(</span><span class="nx">value</span><span class="p">.</span><span class="nx">getUTCSeconds</span><span class="p">()</span><span class="o">-</span><span class="nx">step</span><span class="p">);}</span></div><div class='line' id='LC22'><span class="k">if</span><span class="p">((</span><span class="nx">min</span><span class="o">!=</span><span class="kc">null</span><span class="p">)</span><span class="o">&amp;&amp;</span><span class="nx">value</span><span class="o">&lt;</span><span class="nx">min</span><span class="p">){</span><span class="nx">value</span><span class="p">.</span><span class="nx">setTime</span><span class="p">(</span><span class="nx">min</span><span class="p">.</span><span class="nx">getTime</span><span class="p">());}</span></div><div class='line' id='LC23'><span class="nx">$hiddenField</span><span class="p">.</span><span class="nx">val</span><span class="p">(</span><span class="nx">makeDateTimeString</span><span class="p">(</span><span class="nx">value</span><span class="p">)).</span><span class="nx">change</span><span class="p">();</span><span class="nx">$</span><span class="p">(</span><span class="nx">dateBtn</span><span class="p">).</span><span class="nx">text</span><span class="p">(</span><span class="nx">makeDateDisplayString</span><span class="p">(</span><span class="nx">value</span><span class="p">,</span><span class="nx">calendarDiv</span><span class="p">));</span><span class="nx">$</span><span class="p">(</span><span class="nx">timeField</span><span class="p">).</span><span class="nx">val</span><span class="p">(</span><span class="nx">makeTimeDisplayString</span><span class="p">(</span><span class="nx">value</span><span class="p">));</span><span class="nx">$</span><span class="p">(</span><span class="nx">calendarDiv</span><span class="p">).</span><span class="nx">datepicker</span><span class="p">(</span><span class="s2">&quot;setDate&quot;</span><span class="p">,</span><span class="nx">value</span><span class="p">);</span><span class="k">return</span> <span class="kc">null</span><span class="p">;};</span><span class="nx">incrementDate</span><span class="o">=</span><span class="kd">function</span><span class="p">(</span><span class="nx">hiddenField</span><span class="p">,</span><span class="nx">dateBtn</span><span class="p">,</span><span class="nx">timeField</span><span class="p">,</span><span class="nx">calendarDiv</span><span class="p">){</span><span class="kd">var</span> <span class="nx">$hiddenField</span><span class="p">,</span><span class="nx">max</span><span class="p">,</span><span class="nx">step</span><span class="p">,</span><span class="nx">value</span><span class="p">;</span><span class="nx">$hiddenField</span><span class="o">=</span><span class="nx">$</span><span class="p">(</span><span class="nx">hiddenField</span><span class="p">);</span><span class="nx">value</span><span class="o">=</span><span class="nx">readDateTime</span><span class="p">(</span><span class="nx">$hiddenField</span><span class="p">.</span><span class="nx">val</span><span class="p">());</span><span class="nx">step</span><span class="o">=</span><span class="nx">$hiddenField</span><span class="p">.</span><span class="nx">data</span><span class="p">(</span><span class="s2">&quot;step&quot;</span><span class="p">);</span><span class="nx">max</span><span class="o">=</span><span class="nx">$hiddenField</span><span class="p">.</span><span class="nx">data</span><span class="p">(</span><span class="s2">&quot;max&quot;</span><span class="p">);</span><span class="nx">value</span><span class="p">.</span><span class="nx">setUTCDate</span><span class="p">(</span><span class="nx">value</span><span class="p">.</span><span class="nx">getUTCDate</span><span class="p">()</span><span class="o">+</span><span class="mi">1</span><span class="p">);</span><span class="k">if</span><span class="p">((</span><span class="nx">max</span><span class="o">!=</span><span class="kc">null</span><span class="p">)</span><span class="o">&amp;&amp;</span><span class="nx">value</span><span class="o">&gt;</span><span class="nx">max</span><span class="p">){</span><span class="nx">value</span><span class="p">.</span><span class="nx">setTime</span><span class="p">(</span><span class="nx">max</span><span class="p">.</span><span class="nx">getTime</span><span class="p">());}</span></div><div class='line' id='LC24'><span class="nx">$hiddenField</span><span class="p">.</span><span class="nx">val</span><span class="p">(</span><span class="nx">makeDateTimeString</span><span class="p">(</span><span class="nx">value</span><span class="p">)).</span><span class="nx">change</span><span class="p">();</span><span class="nx">$</span><span class="p">(</span><span class="nx">dateBtn</span><span class="p">).</span><span class="nx">text</span><span class="p">(</span><span class="nx">makeDateDisplayString</span><span class="p">(</span><span class="nx">value</span><span class="p">,</span><span class="nx">calendarDiv</span><span class="p">));</span><span class="nx">$</span><span class="p">(</span><span class="nx">timeField</span><span class="p">).</span><span class="nx">val</span><span class="p">(</span><span class="nx">makeTimeDisplayString</span><span class="p">(</span><span class="nx">value</span><span class="p">));</span><span class="nx">$</span><span class="p">(</span><span class="nx">calendarDiv</span><span class="p">).</span><span class="nx">datepicker</span><span class="p">(</span><span class="s2">&quot;setDate&quot;</span><span class="p">,</span><span class="nx">value</span><span class="p">);</span><span class="k">return</span> <span class="kc">null</span><span class="p">;};</span><span class="nx">decrementDate</span><span class="o">=</span><span class="kd">function</span><span class="p">(</span><span class="nx">hiddenField</span><span class="p">,</span><span class="nx">dateBtn</span><span class="p">,</span><span class="nx">timeField</span><span class="p">,</span><span class="nx">calendarDiv</span><span class="p">){</span><span class="kd">var</span> <span class="nx">$hiddenField</span><span class="p">,</span><span class="nx">min</span><span class="p">,</span><span class="nx">step</span><span class="p">,</span><span class="nx">value</span><span class="p">;</span><span class="nx">$hiddenField</span><span class="o">=</span><span class="nx">$</span><span class="p">(</span><span class="nx">hiddenField</span><span class="p">);</span><span class="nx">value</span><span class="o">=</span><span class="nx">readDateTime</span><span class="p">(</span><span class="nx">$hiddenField</span><span class="p">.</span><span class="nx">val</span><span class="p">());</span><span class="nx">step</span><span class="o">=</span><span class="nx">$hiddenField</span><span class="p">.</span><span class="nx">data</span><span class="p">(</span><span class="s2">&quot;step&quot;</span><span class="p">);</span><span class="nx">min</span><span class="o">=</span><span class="nx">$hiddenField</span><span class="p">.</span><span class="nx">data</span><span class="p">(</span><span class="s2">&quot;min&quot;</span><span class="p">);</span><span class="nx">value</span><span class="p">.</span><span class="nx">setUTCDate</span><span class="p">(</span><span class="nx">value</span><span class="p">.</span><span class="nx">getUTCDate</span><span class="p">()</span><span class="o">-</span><span class="mi">1</span><span class="p">);</span><span class="k">if</span><span class="p">((</span><span class="nx">min</span><span class="o">!=</span><span class="kc">null</span><span class="p">)</span><span class="o">&amp;&amp;</span><span class="nx">value</span><span class="o">&lt;</span><span class="nx">min</span><span class="p">){</span><span class="nx">value</span><span class="p">.</span><span class="nx">setTime</span><span class="p">(</span><span class="nx">min</span><span class="p">.</span><span class="nx">getTime</span><span class="p">());}</span></div><div class='line' id='LC25'><span class="nx">$hiddenField</span><span class="p">.</span><span class="nx">val</span><span class="p">(</span><span class="nx">makeDateTimeString</span><span class="p">(</span><span class="nx">value</span><span class="p">)).</span><span class="nx">change</span><span class="p">();</span><span class="nx">$</span><span class="p">(</span><span class="nx">dateBtn</span><span class="p">).</span><span class="nx">text</span><span class="p">(</span><span class="nx">makeDateDisplayString</span><span class="p">(</span><span class="nx">value</span><span class="p">,</span><span class="nx">calendarDiv</span><span class="p">));</span><span class="nx">$</span><span class="p">(</span><span class="nx">timeField</span><span class="p">).</span><span class="nx">val</span><span class="p">(</span><span class="nx">makeTimeDisplayString</span><span class="p">(</span><span class="nx">value</span><span class="p">));</span><span class="nx">$</span><span class="p">(</span><span class="nx">calendarDiv</span><span class="p">).</span><span class="nx">datepicker</span><span class="p">(</span><span class="s2">&quot;setDate&quot;</span><span class="p">,</span><span class="nx">value</span><span class="p">);</span><span class="k">return</span> <span class="kc">null</span><span class="p">;};</span><span class="nx">stepNormalize</span><span class="o">=</span><span class="kd">function</span><span class="p">(</span><span class="nx">inDate</span><span class="p">,</span><span class="nx">hiddenField</span><span class="p">){</span><span class="kd">var</span> <span class="nx">$hiddenField</span><span class="p">,</span><span class="nx">kNum</span><span class="p">,</span><span class="nx">max</span><span class="p">,</span><span class="nx">min</span><span class="p">,</span><span class="nx">minNum</span><span class="p">,</span><span class="nx">raisedStep</span><span class="p">,</span><span class="nx">step</span><span class="p">,</span><span class="nx">stepDiff</span><span class="p">,</span><span class="nx">stepDiff2</span><span class="p">;</span><span class="nx">$hiddenField</span><span class="o">=</span><span class="nx">$</span><span class="p">(</span><span class="nx">hiddenField</span><span class="p">);</span><span class="nx">step</span><span class="o">=</span><span class="nx">$hiddenField</span><span class="p">.</span><span class="nx">data</span><span class="p">(</span><span class="s2">&quot;step&quot;</span><span class="p">);</span><span class="nx">min</span><span class="o">=</span><span class="nx">$hiddenField</span><span class="p">.</span><span class="nx">data</span><span class="p">(</span><span class="s2">&quot;min&quot;</span><span class="p">);</span><span class="nx">max</span><span class="o">=</span><span class="nx">$hiddenField</span><span class="p">.</span><span class="nx">data</span><span class="p">(</span><span class="s2">&quot;max&quot;</span><span class="p">);</span><span class="k">if</span><span class="p">((</span><span class="nx">step</span><span class="o">!=</span><span class="kc">null</span><span class="p">)</span><span class="o">&amp;&amp;</span><span class="nx">step</span><span class="o">!==</span><span class="s1">&#39;any&#39;</span><span class="p">){</span><span class="nx">kNum</span><span class="o">=</span><span class="nx">inDate</span><span class="p">.</span><span class="nx">getTime</span><span class="p">();</span><span class="nx">raisedStep</span><span class="o">=</span><span class="nx">step</span><span class="o">*</span><span class="mi">1000</span><span class="p">;</span><span class="k">if</span><span class="p">(</span><span class="nx">min</span><span class="o">==</span><span class="kc">null</span><span class="p">){</span><span class="nx">min</span><span class="o">=</span><span class="k">new</span> <span class="nb">Date</span><span class="p">(</span><span class="mi">0</span><span class="p">);}</span></div><div class='line' id='LC26'><span class="nx">minNum</span><span class="o">=</span><span class="nx">min</span><span class="p">.</span><span class="nx">getTime</span><span class="p">();</span><span class="nx">stepDiff</span><span class="o">=</span><span class="p">(</span><span class="nx">kNum</span><span class="o">-</span><span class="nx">minNum</span><span class="p">)</span><span class="o">%</span><span class="nx">raisedStep</span><span class="p">;</span><span class="nx">stepDiff2</span><span class="o">=</span><span class="nx">raisedStep</span><span class="o">-</span><span class="nx">stepDiff</span><span class="p">;</span><span class="k">if</span><span class="p">(</span><span class="nx">stepDiff</span><span class="o">===</span><span class="mi">0</span><span class="p">){</span><span class="k">return</span> <span class="nx">inDate</span><span class="p">;}</span><span class="k">else</span><span class="p">{</span><span class="k">if</span><span class="p">(</span><span class="nx">stepDiff</span><span class="o">&gt;</span><span class="nx">stepDiff2</span><span class="p">){</span><span class="k">return</span> <span class="k">new</span> <span class="nb">Date</span><span class="p">(</span><span class="nx">inDate</span><span class="p">.</span><span class="nx">getTime</span><span class="p">()</span><span class="o">+</span><span class="nx">stepDiff2</span><span class="p">);}</span><span class="k">else</span><span class="p">{</span><span class="k">return</span> <span class="k">new</span> <span class="nb">Date</span><span class="p">(</span><span class="nx">inDate</span><span class="p">.</span><span class="nx">getTime</span><span class="p">()</span><span class="o">-</span><span class="nx">stepDiff</span><span class="p">);}}}</span><span class="k">else</span><span class="p">{</span><span class="k">return</span> <span class="nx">inDate</span><span class="p">;}};</span><span class="nx">$</span><span class="p">(</span><span class="k">this</span><span class="p">).</span><span class="nx">filter</span><span class="p">(</span><span class="s1">&#39;input[type=&quot;datetime&quot;]&#39;</span><span class="p">).</span><span class="nx">each</span><span class="p">(</span><span class="kd">function</span><span class="p">(){</span><span class="kd">var</span> <span class="nx">$calendarContainer</span><span class="p">,</span><span class="nx">$calendarDiv</span><span class="p">,</span><span class="nx">$dateBtn</span><span class="p">,</span><span class="nx">$hiddenField</span><span class="p">,</span><span class="nx">$this</span><span class="p">,</span><span class="nx">$timeField</span><span class="p">,</span><span class="nx">btnContainer</span><span class="p">,</span><span class="nx">calendarContainer</span><span class="p">,</span><span class="nx">calendarDiv</span><span class="p">,</span><span class="nx">className</span><span class="p">,</span><span class="nx">closeFunc</span><span class="p">,</span><span class="nx">dateBtn</span><span class="p">,</span><span class="nx">downBtn</span><span class="p">,</span><span class="nx">halfHeight</span><span class="p">,</span><span class="nx">hiddenField</span><span class="p">,</span><span class="nx">max</span><span class="p">,</span><span class="nx">min</span><span class="p">,</span><span class="nx">step</span><span class="p">,</span><span class="nx">style</span><span class="p">,</span><span class="nx">timeField</span><span class="p">,</span><span class="nx">upBtn</span><span class="p">,</span><span class="nx">value</span><span class="p">;</span><span class="nx">$this</span><span class="o">=</span><span class="nx">$</span><span class="p">(</span><span class="k">this</span><span class="p">);</span><span class="nx">value</span><span class="o">=</span><span class="nx">$this</span><span class="p">.</span><span class="nx">attr</span><span class="p">(</span><span class="s1">&#39;value&#39;</span><span class="p">);</span><span class="nx">min</span><span class="o">=</span><span class="nx">$this</span><span class="p">.</span><span class="nx">attr</span><span class="p">(</span><span class="s1">&#39;min&#39;</span><span class="p">);</span><span class="nx">max</span><span class="o">=</span><span class="nx">$this</span><span class="p">.</span><span class="nx">attr</span><span class="p">(</span><span class="s1">&#39;max&#39;</span><span class="p">);</span><span class="nx">step</span><span class="o">=</span><span class="nx">$this</span><span class="p">.</span><span class="nx">attr</span><span class="p">(</span><span class="s1">&#39;step&#39;</span><span class="p">);</span><span class="nx">className</span><span class="o">=</span><span class="nx">$this</span><span class="p">.</span><span class="nx">attr</span><span class="p">(</span><span class="s1">&#39;class&#39;</span><span class="p">);</span><span class="nx">style</span><span class="o">=</span><span class="nx">$this</span><span class="p">.</span><span class="nx">attr</span><span class="p">(</span><span class="s1">&#39;style&#39;</span><span class="p">);</span><span class="k">if</span><span class="p">((</span><span class="nx">value</span><span class="o">!=</span><span class="kc">null</span><span class="p">)</span><span class="o">&amp;&amp;</span><span class="sr">/^\d{4,}-\d\d-\d\dT\d\d:\d\d(?:\:\d\d(?:\.\d+)?)?Z$/</span><span class="p">.</span><span class="nx">test</span><span class="p">(</span><span class="nx">value</span><span class="p">)){</span><span class="nx">value</span><span class="o">=</span><span class="nx">readDateTime</span><span class="p">(</span><span class="nx">value</span><span class="p">);}</span><span class="k">else</span><span class="p">{</span><span class="nx">value</span><span class="o">=</span><span class="k">new</span> <span class="nb">Date</span><span class="p">();}</span></div><div class='line' id='LC27'><span class="k">if</span><span class="p">(</span><span class="nx">min</span><span class="o">!=</span><span class="kc">null</span><span class="p">){</span><span class="nx">min</span><span class="o">=</span><span class="nx">readDateTime</span><span class="p">(</span><span class="nx">min</span><span class="p">);</span><span class="k">if</span><span class="p">(</span><span class="nx">value</span><span class="o">&lt;</span><span class="nx">min</span><span class="p">){</span><span class="nx">value</span><span class="p">.</span><span class="nx">setTime</span><span class="p">(</span><span class="nx">min</span><span class="p">.</span><span class="nx">getTime</span><span class="p">());}}</span></div><div class='line' id='LC28'><span class="k">if</span><span class="p">(</span><span class="nx">max</span><span class="o">!=</span><span class="kc">null</span><span class="p">){</span><span class="nx">max</span><span class="o">=</span><span class="nx">readDateTime</span><span class="p">(</span><span class="nx">max</span><span class="p">);</span><span class="k">if</span><span class="p">(</span><span class="nx">value</span><span class="o">&gt;</span><span class="nx">max</span><span class="p">){</span><span class="nx">value</span><span class="p">.</span><span class="nx">setTime</span><span class="p">(</span><span class="nx">max</span><span class="p">.</span><span class="nx">getTime</span><span class="p">());}}</span></div><div class='line' id='LC29'><span class="k">if</span><span class="p">((</span><span class="nx">step</span><span class="o">!=</span><span class="kc">null</span><span class="p">)</span><span class="o">&amp;&amp;</span><span class="nx">step</span><span class="o">!==</span><span class="s1">&#39;any&#39;</span><span class="p">){</span><span class="nx">step</span><span class="o">=</span><span class="nb">parseFloat</span><span class="p">(</span><span class="nx">step</span><span class="p">);}</span></div><div class='line' id='LC30'><span class="nx">hiddenField</span><span class="o">=</span><span class="nb">document</span><span class="p">.</span><span class="nx">createElement</span><span class="p">(</span><span class="s1">&#39;input&#39;</span><span class="p">);</span><span class="nx">$hiddenField</span><span class="o">=</span><span class="nx">$</span><span class="p">(</span><span class="nx">hiddenField</span><span class="p">);</span><span class="nx">$hiddenField</span><span class="p">.</span><span class="nx">attr</span><span class="p">({</span><span class="nx">type</span><span class="o">:</span><span class="s2">&quot;hidden&quot;</span><span class="p">,</span><span class="nx">name</span><span class="o">:</span><span class="nx">$this</span><span class="p">.</span><span class="nx">attr</span><span class="p">(</span><span class="s1">&#39;name&#39;</span><span class="p">),</span><span class="nx">value</span><span class="o">:</span><span class="nx">makeDateTimeString</span><span class="p">(</span><span class="nx">value</span><span class="p">)});</span><span class="nx">$hiddenField</span><span class="p">.</span><span class="nx">data</span><span class="p">({</span><span class="nx">min</span><span class="o">:</span><span class="nx">min</span><span class="p">,</span><span class="nx">max</span><span class="o">:</span><span class="nx">max</span><span class="p">,</span><span class="nx">step</span><span class="o">:</span><span class="nx">step</span><span class="p">});</span><span class="nx">value</span><span class="o">=</span><span class="nx">stepNormalize</span><span class="p">(</span><span class="nx">value</span><span class="p">,</span><span class="nx">hiddenField</span><span class="p">);</span><span class="nx">$hiddenField</span><span class="p">.</span><span class="nx">attr</span><span class="p">(</span><span class="s1">&#39;value&#39;</span><span class="p">,</span><span class="nx">makeDateTimeString</span><span class="p">(</span><span class="nx">value</span><span class="p">));</span><span class="nx">calendarContainer</span><span class="o">=</span><span class="nb">document</span><span class="p">.</span><span class="nx">createElement</span><span class="p">(</span><span class="s1">&#39;span&#39;</span><span class="p">);</span><span class="nx">$calendarContainer</span><span class="o">=</span><span class="nx">$</span><span class="p">(</span><span class="nx">calendarContainer</span><span class="p">);</span><span class="k">if</span><span class="p">(</span><span class="nx">className</span><span class="o">!=</span><span class="kc">null</span><span class="p">){</span><span class="nx">$calendarContainer</span><span class="p">.</span><span class="nx">attr</span><span class="p">(</span><span class="s1">&#39;class&#39;</span><span class="p">,</span><span class="nx">className</span><span class="p">);}</span></div><div class='line' id='LC31'><span class="k">if</span><span class="p">(</span><span class="nx">style</span><span class="o">!=</span><span class="kc">null</span><span class="p">){</span><span class="nx">$calendarContainer</span><span class="p">.</span><span class="nx">attr</span><span class="p">(</span><span class="s1">&#39;style&#39;</span><span class="p">,</span><span class="nx">style</span><span class="p">);}</span></div><div class='line' id='LC32'><span class="nx">calendarDiv</span><span class="o">=</span><span class="nb">document</span><span class="p">.</span><span class="nx">createElement</span><span class="p">(</span><span class="s1">&#39;div&#39;</span><span class="p">);</span><span class="nx">$calendarDiv</span><span class="o">=</span><span class="nx">$</span><span class="p">(</span><span class="nx">calendarDiv</span><span class="p">);</span><span class="nx">$calendarDiv</span><span class="p">.</span><span class="nx">css</span><span class="p">({</span><span class="nx">display</span><span class="o">:</span><span class="s1">&#39;none&#39;</span><span class="p">,</span><span class="nx">position</span><span class="o">:</span><span class="s1">&#39;absolute&#39;</span><span class="p">});</span><span class="nx">dateBtn</span><span class="o">=</span><span class="nb">document</span><span class="p">.</span><span class="nx">createElement</span><span class="p">(</span><span class="s1">&#39;button&#39;</span><span class="p">);</span><span class="nx">$dateBtn</span><span class="o">=</span><span class="nx">$</span><span class="p">(</span><span class="nx">dateBtn</span><span class="p">);</span><span class="nx">$dateBtn</span><span class="p">.</span><span class="nx">addClass</span><span class="p">(</span><span class="s1">&#39;datetime-datepicker-button&#39;</span><span class="p">);</span><span class="nx">timeField</span><span class="o">=</span><span class="nb">document</span><span class="p">.</span><span class="nx">createElement</span><span class="p">(</span><span class="s1">&#39;input&#39;</span><span class="p">);</span><span class="nx">$timeField</span><span class="o">=</span><span class="nx">$</span><span class="p">(</span><span class="nx">timeField</span><span class="p">);</span><span class="nx">$timeField</span><span class="p">.</span><span class="nx">attr</span><span class="p">({</span><span class="nx">type</span><span class="o">:</span><span class="s2">&quot;text&quot;</span><span class="p">,</span><span class="nx">value</span><span class="o">:</span><span class="nx">makeTimeDisplayString</span><span class="p">(</span><span class="nx">value</span><span class="p">),</span><span class="nx">size</span><span class="o">:</span><span class="mi">14</span><span class="p">});</span><span class="nx">$this</span><span class="p">.</span><span class="nx">replaceWith</span><span class="p">(</span><span class="nx">hiddenField</span><span class="p">);</span><span class="nx">$dateBtn</span><span class="p">.</span><span class="nx">appendTo</span><span class="p">(</span><span class="nx">calendarContainer</span><span class="p">);</span><span class="nx">$calendarDiv</span><span class="p">.</span><span class="nx">appendTo</span><span class="p">(</span><span class="nx">calendarContainer</span><span class="p">);</span><span class="nx">$calendarContainer</span><span class="p">.</span><span class="nx">insertAfter</span><span class="p">(</span><span class="nx">hiddenField</span><span class="p">);</span><span class="nx">$timeField</span><span class="p">.</span><span class="nx">insertAfter</span><span class="p">(</span><span class="nx">calendarContainer</span><span class="p">);</span><span class="nx">halfHeight</span><span class="o">=</span><span class="p">(</span><span class="nx">$timeField</span><span class="p">.</span><span class="nx">outerHeight</span><span class="p">()</span><span class="o">/</span><span class="mi">2</span><span class="p">)</span><span class="o">+</span><span class="s1">&#39;px&#39;</span><span class="p">;</span><span class="nx">upBtn</span><span class="o">=</span><span class="nb">document</span><span class="p">.</span><span class="nx">createElement</span><span class="p">(</span><span class="s1">&#39;div&#39;</span><span class="p">);</span><span class="nx">$</span><span class="p">(</span><span class="nx">upBtn</span><span class="p">).</span><span class="nx">addClass</span><span class="p">(</span><span class="s1">&#39;datetime-spin-btn datetime-spin-btn-up&#39;</span><span class="p">).</span><span class="nx">css</span><span class="p">(</span><span class="s1">&#39;height&#39;</span><span class="p">,</span><span class="nx">halfHeight</span><span class="p">);</span><span class="nx">downBtn</span><span class="o">=</span><span class="nb">document</span><span class="p">.</span><span class="nx">createElement</span><span class="p">(</span><span class="s1">&#39;div&#39;</span><span class="p">);</span><span class="nx">$</span><span class="p">(</span><span class="nx">downBtn</span><span class="p">).</span><span class="nx">addClass</span><span class="p">(</span><span class="s1">&#39;datetime-spin-btn datetime-spin-btn-down&#39;</span><span class="p">).</span><span class="nx">css</span><span class="p">(</span><span class="s1">&#39;height&#39;</span><span class="p">,</span><span class="nx">halfHeight</span><span class="p">);</span><span class="nx">btnContainer</span><span class="o">=</span><span class="nb">document</span><span class="p">.</span><span class="nx">createElement</span><span class="p">(</span><span class="s1">&#39;div&#39;</span><span class="p">);</span><span class="nx">btnContainer</span><span class="p">.</span><span class="nx">appendChild</span><span class="p">(</span><span class="nx">upBtn</span><span class="p">);</span><span class="nx">btnContainer</span><span class="p">.</span><span class="nx">appendChild</span><span class="p">(</span><span class="nx">downBtn</span><span class="p">);</span><span class="nx">$</span><span class="p">(</span><span class="nx">btnContainer</span><span class="p">).</span><span class="nx">addClass</span><span class="p">(</span><span class="s1">&#39;datetime-spin-btn-container&#39;</span><span class="p">).</span><span class="nx">insertAfter</span><span class="p">(</span><span class="nx">timeField</span><span class="p">);</span><span class="nx">$calendarDiv</span><span class="p">.</span><span class="nx">datepicker</span><span class="p">({</span><span class="nx">dateFormat</span><span class="o">:</span><span class="s1">&#39;MM dd, yy&#39;</span><span class="p">,</span><span class="nx">showButtonPanel</span><span class="o">:</span><span class="kc">true</span><span class="p">});</span><span class="nx">$dateBtn</span><span class="p">.</span><span class="nx">text</span><span class="p">(</span><span class="nx">makeDateDisplayString</span><span class="p">(</span><span class="nx">value</span><span class="p">,</span><span class="nx">calendarDiv</span><span class="p">));</span><span class="k">if</span><span class="p">(</span><span class="nx">min</span><span class="o">!=</span><span class="kc">null</span><span class="p">){</span><span class="nx">$calendarDiv</span><span class="p">.</span><span class="nx">datepicker</span><span class="p">(</span><span class="s2">&quot;option&quot;</span><span class="p">,</span><span class="s2">&quot;minDate&quot;</span><span class="p">,</span><span class="nx">min</span><span class="p">);}</span></div><div class='line' id='LC33'><span class="k">if</span><span class="p">(</span><span class="nx">max</span><span class="o">!=</span><span class="kc">null</span><span class="p">){</span><span class="nx">$calendarDiv</span><span class="p">.</span><span class="nx">datepicker</span><span class="p">(</span><span class="s2">&quot;option&quot;</span><span class="p">,</span><span class="s2">&quot;maxDate&quot;</span><span class="p">,</span><span class="nx">max</span><span class="p">);}</span></div><div class='line' id='LC34'><span class="k">if</span><span class="p">(</span><span class="nx">Modernizr</span><span class="p">.</span><span class="nx">csstransitions</span><span class="p">){</span><span class="nx">calendarDiv</span><span class="p">.</span><span class="nx">className</span><span class="o">=</span><span class="s2">&quot;datetime-calendar-dialog datetime-closed&quot;</span><span class="p">;</span><span class="nx">$dateBtn</span><span class="p">.</span><span class="nx">click</span><span class="p">(</span><span class="kd">function</span><span class="p">(</span><span class="nx">event</span><span class="p">){</span><span class="nx">$calendarDiv</span><span class="p">.</span><span class="nx">off</span><span class="p">(</span><span class="s1">&#39;transitionend oTransitionEnd webkitTransitionEnd MSTransitionEnd&#39;</span><span class="p">);</span><span class="nx">calendarDiv</span><span class="p">.</span><span class="nx">style</span><span class="p">.</span><span class="nx">display</span><span class="o">=</span><span class="s1">&#39;block&#39;</span><span class="p">;</span><span class="nx">calendarDiv</span><span class="p">.</span><span class="nx">className</span><span class="o">=</span><span class="s2">&quot;datetime-calendar-dialog datetime-open&quot;</span><span class="p">;</span><span class="nx">event</span><span class="p">.</span><span class="nx">preventDefault</span><span class="p">();</span><span class="k">return</span> <span class="kc">false</span><span class="p">;});</span><span class="nx">closeFunc</span><span class="o">=</span><span class="kd">function</span><span class="p">(</span><span class="nx">event</span><span class="p">){</span><span class="kd">var</span> <span class="nx">transitionend_function</span><span class="p">;</span><span class="k">if</span><span class="p">(</span><span class="nx">calendarDiv</span><span class="p">.</span><span class="nx">className</span><span class="o">===</span><span class="s2">&quot;datetime-calendar-dialog datetime-open&quot;</span><span class="p">){</span><span class="nx">transitionend_function</span><span class="o">=</span><span class="kd">function</span><span class="p">(</span><span class="nx">event</span><span class="p">){</span><span class="nx">calendarDiv</span><span class="p">.</span><span class="nx">style</span><span class="p">.</span><span class="nx">display</span><span class="o">=</span><span class="s1">&#39;none&#39;</span><span class="p">;</span><span class="nx">$calendarDiv</span><span class="p">.</span><span class="nx">off</span><span class="p">(</span><span class="s2">&quot;transitionend oTransitionEnd webkitTransitionEnd MSTransitionEnd&quot;</span><span class="p">,</span><span class="nx">transitionend_function</span><span class="p">);</span><span class="k">return</span> <span class="kc">null</span><span class="p">;};</span><span class="nx">$calendarDiv</span><span class="p">.</span><span class="nx">on</span><span class="p">(</span><span class="s2">&quot;transitionend oTransitionEnd webkitTransitionEnd MSTransitionEnd&quot;</span><span class="p">,</span><span class="nx">transitionend_function</span><span class="p">);</span><span class="nx">calendarDiv</span><span class="p">.</span><span class="nx">className</span><span class="o">=</span><span class="s2">&quot;datetime-calendar-dialog datetime-closed&quot;</span><span class="p">;}</span></div><div class='line' id='LC35'><span class="k">if</span><span class="p">(</span><span class="nx">event</span><span class="o">!=</span><span class="kc">null</span><span class="p">){</span><span class="nx">event</span><span class="p">.</span><span class="nx">preventDefault</span><span class="p">();}</span></div><div class='line' id='LC36'><span class="k">return</span> <span class="kc">null</span><span class="p">;};}</span><span class="k">else</span><span class="p">{</span><span class="nx">$dateBtn</span><span class="p">.</span><span class="nx">click</span><span class="p">(</span><span class="kd">function</span><span class="p">(</span><span class="nx">event</span><span class="p">){</span><span class="nx">$calendarDiv</span><span class="p">.</span><span class="nx">fadeIn</span><span class="p">(</span><span class="s1">&#39;fast&#39;</span><span class="p">);</span><span class="nx">event</span><span class="p">.</span><span class="nx">preventDefault</span><span class="p">();</span><span class="k">return</span> <span class="kc">false</span><span class="p">;});</span><span class="nx">closeFunc</span><span class="o">=</span><span class="kd">function</span><span class="p">(</span><span class="nx">event</span><span class="p">){</span><span class="nx">$calendarDiv</span><span class="p">.</span><span class="nx">fadeOut</span><span class="p">(</span><span class="s1">&#39;fast&#39;</span><span class="p">);</span><span class="k">if</span><span class="p">(</span><span class="nx">event</span><span class="o">!=</span><span class="kc">null</span><span class="p">){</span><span class="nx">event</span><span class="p">.</span><span class="nx">preventDefault</span><span class="p">();}</span></div><div class='line' id='LC37'><span class="k">return</span> <span class="kc">null</span><span class="p">;};}</span></div><div class='line' id='LC38'><span class="nx">$calendarDiv</span><span class="p">.</span><span class="nx">mouseleave</span><span class="p">(</span><span class="nx">closeFunc</span><span class="p">);</span><span class="nx">$calendarDiv</span><span class="p">.</span><span class="nx">datepicker</span><span class="p">(</span><span class="s2">&quot;option&quot;</span><span class="p">,</span><span class="s2">&quot;onSelect&quot;</span><span class="p">,</span><span class="kd">function</span><span class="p">(</span><span class="nx">dateText</span><span class="p">,</span><span class="nx">inst</span><span class="p">){</span><span class="kd">var</span> <span class="nx">dateObj</span><span class="p">,</span><span class="nx">origDate</span><span class="p">;</span><span class="nx">origDate</span><span class="o">=</span><span class="nx">readDateTime</span><span class="p">(</span><span class="nx">$hiddenField</span><span class="p">.</span><span class="nx">val</span><span class="p">());</span><span class="nx">dateObj</span><span class="o">=</span><span class="nx">$</span><span class="p">.</span><span class="nx">datepicker</span><span class="p">.</span><span class="nx">parseDate</span><span class="p">(</span><span class="s1">&#39;MM dd, yy&#39;</span><span class="p">,</span><span class="nx">dateText</span><span class="p">);</span><span class="nx">dateObj</span><span class="p">.</span><span class="nx">setUTCHours</span><span class="p">(</span><span class="nx">origDate</span><span class="p">.</span><span class="nx">getUTCHours</span><span class="p">());</span><span class="nx">dateObj</span><span class="p">.</span><span class="nx">setUTCMinutes</span><span class="p">(</span><span class="nx">origDate</span><span class="p">.</span><span class="nx">getUTCMinutes</span><span class="p">());</span><span class="nx">dateObj</span><span class="p">.</span><span class="nx">setUTCSeconds</span><span class="p">(</span><span class="nx">origDate</span><span class="p">.</span><span class="nx">getUTCSeconds</span><span class="p">());</span><span class="nx">dateObj</span><span class="p">.</span><span class="nx">setUTCMilliseconds</span><span class="p">(</span><span class="nx">origDate</span><span class="p">.</span><span class="nx">getUTCMilliseconds</span><span class="p">());</span><span class="k">if</span><span class="p">((</span><span class="nx">min</span><span class="o">!=</span><span class="kc">null</span><span class="p">)</span><span class="o">&amp;&amp;</span><span class="nx">dateObj</span><span class="o">&lt;</span><span class="nx">min</span><span class="p">){</span><span class="nx">dateObj</span><span class="p">.</span><span class="nx">setTime</span><span class="p">(</span><span class="nx">min</span><span class="p">.</span><span class="nx">getTime</span><span class="p">());}</span><span class="k">else</span> <span class="k">if</span><span class="p">((</span><span class="nx">max</span><span class="o">!=</span><span class="kc">null</span><span class="p">)</span><span class="o">&amp;&amp;</span><span class="nx">dateObj</span><span class="o">&gt;</span><span class="nx">max</span><span class="p">){</span><span class="nx">dateObj</span><span class="p">.</span><span class="nx">setTime</span><span class="p">(</span><span class="nx">max</span><span class="p">.</span><span class="nx">getTime</span><span class="p">());}</span></div><div class='line' id='LC39'><span class="nx">dateObj</span><span class="o">=</span><span class="nx">stepNormalize</span><span class="p">(</span><span class="nx">dateObj</span><span class="p">,</span><span class="nx">hiddenField</span><span class="p">);</span><span class="nx">$hiddenField</span><span class="p">.</span><span class="nx">val</span><span class="p">(</span><span class="nx">makeDateTimeString</span><span class="p">(</span><span class="nx">dateObj</span><span class="p">)).</span><span class="nx">change</span><span class="p">();</span><span class="nx">$timeField</span><span class="p">.</span><span class="nx">val</span><span class="p">(</span><span class="nx">makeTimeDisplayString</span><span class="p">(</span><span class="nx">dateObj</span><span class="p">));</span><span class="nx">$dateBtn</span><span class="p">.</span><span class="nx">text</span><span class="p">(</span><span class="nx">makeDateDisplayString</span><span class="p">(</span><span class="nx">dateObj</span><span class="p">,</span><span class="nx">calendarDiv</span><span class="p">));</span><span class="nx">closeFunc</span><span class="p">();</span><span class="k">return</span> <span class="kc">null</span><span class="p">;});</span><span class="nx">$calendarDiv</span><span class="p">.</span><span class="nx">datepicker</span><span class="p">(</span><span class="s2">&quot;setDate&quot;</span><span class="p">,</span><span class="nx">value</span><span class="p">);</span><span class="nx">$dateBtn</span><span class="p">.</span><span class="nx">on</span><span class="p">({</span><span class="nx">DOMMouseScroll</span><span class="o">:</span><span class="kd">function</span><span class="p">(</span><span class="nx">event</span><span class="p">){</span><span class="k">if</span><span class="p">(</span><span class="nx">event</span><span class="p">.</span><span class="nx">originalEvent</span><span class="p">.</span><span class="nx">detail</span><span class="o">&lt;</span><span class="mi">0</span><span class="p">){</span><span class="nx">incrementDate</span><span class="p">(</span><span class="nx">hiddenField</span><span class="p">,</span><span class="nx">dateBtn</span><span class="p">,</span><span class="nx">timeField</span><span class="p">,</span><span class="nx">calendarDiv</span><span class="p">);}</span><span class="k">else</span><span class="p">{</span><span class="nx">decrementDate</span><span class="p">(</span><span class="nx">hiddenField</span><span class="p">,</span><span class="nx">dateBtn</span><span class="p">,</span><span class="nx">timeField</span><span class="p">,</span><span class="nx">calendarDiv</span><span class="p">);}</span></div><div class='line' id='LC40'><span class="nx">event</span><span class="p">.</span><span class="nx">preventDefault</span><span class="p">();</span><span class="k">return</span> <span class="kc">null</span><span class="p">;},</span><span class="nx">mousewheel</span><span class="o">:</span><span class="kd">function</span><span class="p">(</span><span class="nx">event</span><span class="p">){</span><span class="k">if</span><span class="p">(</span><span class="nx">event</span><span class="p">.</span><span class="nx">originalEvent</span><span class="p">.</span><span class="nx">wheelDelta</span><span class="o">&gt;</span><span class="mi">0</span><span class="p">){</span><span class="nx">incrementDate</span><span class="p">(</span><span class="nx">hiddenField</span><span class="p">,</span><span class="nx">dateBtn</span><span class="p">,</span><span class="nx">timeField</span><span class="p">,</span><span class="nx">calendarDiv</span><span class="p">);}</span><span class="k">else</span><span class="p">{</span><span class="nx">decrementDate</span><span class="p">(</span><span class="nx">hiddenField</span><span class="p">,</span><span class="nx">dateBtn</span><span class="p">,</span><span class="nx">timeField</span><span class="p">,</span><span class="nx">calendarDiv</span><span class="p">);}</span></div><div class='line' id='LC41'><span class="nx">event</span><span class="p">.</span><span class="nx">preventDefault</span><span class="p">();</span><span class="k">return</span> <span class="kc">null</span><span class="p">;},</span><span class="nx">keypress</span><span class="o">:</span><span class="kd">function</span><span class="p">(</span><span class="nx">event</span><span class="p">){</span><span class="k">if</span><span class="p">(</span><span class="nx">event</span><span class="p">.</span><span class="nx">keyCode</span><span class="o">===</span><span class="mi">38</span><span class="p">){</span><span class="nx">incrementDate</span><span class="p">(</span><span class="nx">hiddenField</span><span class="p">,</span><span class="nx">dateBtn</span><span class="p">,</span><span class="nx">timeField</span><span class="p">,</span><span class="nx">calendarDiv</span><span class="p">);</span><span class="nx">event</span><span class="p">.</span><span class="nx">preventDefault</span><span class="p">();}</span><span class="k">else</span> <span class="k">if</span><span class="p">(</span><span class="nx">event</span><span class="p">.</span><span class="nx">keyCode</span><span class="o">===</span><span class="mi">40</span><span class="p">){</span><span class="nx">decrementDate</span><span class="p">(</span><span class="nx">hiddenField</span><span class="p">,</span><span class="nx">dateBtn</span><span class="p">,</span><span class="nx">timeField</span><span class="p">,</span><span class="nx">calendarDiv</span><span class="p">);</span><span class="nx">event</span><span class="p">.</span><span class="nx">preventDefault</span><span class="p">();}</span></div><div class='line' id='LC42'><span class="k">return</span> <span class="kc">null</span><span class="p">;}});</span><span class="nx">$timeField</span><span class="p">.</span><span class="nx">on</span><span class="p">({</span><span class="nx">DOMMouseScroll</span><span class="o">:</span><span class="kd">function</span><span class="p">(</span><span class="nx">event</span><span class="p">){</span><span class="k">if</span><span class="p">(</span><span class="nx">event</span><span class="p">.</span><span class="nx">originalEvent</span><span class="p">.</span><span class="nx">detail</span><span class="o">&lt;</span><span class="mi">0</span><span class="p">){</span><span class="nx">increment</span><span class="p">(</span><span class="nx">hiddenField</span><span class="p">,</span><span class="nx">dateBtn</span><span class="p">,</span><span class="nx">timeField</span><span class="p">,</span><span class="nx">calendarDiv</span><span class="p">);}</span><span class="k">else</span><span class="p">{</span><span class="nx">decrement</span><span class="p">(</span><span class="nx">hiddenField</span><span class="p">,</span><span class="nx">dateBtn</span><span class="p">,</span><span class="nx">timeField</span><span class="p">,</span><span class="nx">calendarDiv</span><span class="p">);}</span></div><div class='line' id='LC43'><span class="nx">event</span><span class="p">.</span><span class="nx">preventDefault</span><span class="p">();</span><span class="k">return</span> <span class="kc">null</span><span class="p">;},</span><span class="nx">mousewheel</span><span class="o">:</span><span class="kd">function</span><span class="p">(</span><span class="nx">event</span><span class="p">){</span><span class="k">if</span><span class="p">(</span><span class="nx">event</span><span class="p">.</span><span class="nx">originalEvent</span><span class="p">.</span><span class="nx">wheelDelta</span><span class="o">&gt;</span><span class="mi">0</span><span class="p">){</span><span class="nx">increment</span><span class="p">(</span><span class="nx">hiddenField</span><span class="p">,</span><span class="nx">dateBtn</span><span class="p">,</span><span class="nx">timeField</span><span class="p">,</span><span class="nx">calendarDiv</span><span class="p">);}</span><span class="k">else</span><span class="p">{</span><span class="nx">decrement</span><span class="p">(</span><span class="nx">hiddenField</span><span class="p">,</span><span class="nx">dateBtn</span><span class="p">,</span><span class="nx">timeField</span><span class="p">,</span><span class="nx">calendarDiv</span><span class="p">);}</span></div><div class='line' id='LC44'><span class="nx">event</span><span class="p">.</span><span class="nx">preventDefault</span><span class="p">();</span><span class="k">return</span> <span class="kc">null</span><span class="p">;},</span><span class="nx">keypress</span><span class="o">:</span><span class="kd">function</span><span class="p">(</span><span class="nx">event</span><span class="p">){</span><span class="kd">var</span> <span class="nx">_ref</span><span class="p">,</span><span class="nx">_ref1</span><span class="p">;</span><span class="k">if</span><span class="p">(</span><span class="nx">event</span><span class="p">.</span><span class="nx">keyCode</span><span class="o">===</span><span class="mi">38</span><span class="p">){</span><span class="nx">increment</span><span class="p">(</span><span class="nx">hiddenField</span><span class="p">,</span><span class="nx">dateBtn</span><span class="p">,</span><span class="nx">timeField</span><span class="p">,</span><span class="nx">calendarDiv</span><span class="p">);</span><span class="nx">event</span><span class="p">.</span><span class="nx">preventDefault</span><span class="p">();}</span><span class="k">else</span> <span class="k">if</span><span class="p">(</span><span class="nx">event</span><span class="p">.</span><span class="nx">keyCode</span><span class="o">===</span><span class="mi">40</span><span class="p">){</span><span class="nx">decrement</span><span class="p">(</span><span class="nx">hiddenField</span><span class="p">,</span><span class="nx">dateBtn</span><span class="p">,</span><span class="nx">timeField</span><span class="p">,</span><span class="nx">calendarDiv</span><span class="p">);</span><span class="nx">event</span><span class="p">.</span><span class="nx">preventDefault</span><span class="p">();}</span><span class="k">else</span> <span class="k">if</span><span class="p">(((</span><span class="nx">_ref</span><span class="o">=</span><span class="nx">event</span><span class="p">.</span><span class="nx">keyCode</span><span class="p">)</span><span class="o">!==</span><span class="mi">35</span><span class="o">&amp;&amp;</span><span class="nx">_ref</span><span class="o">!==</span><span class="mi">36</span><span class="o">&amp;&amp;</span><span class="nx">_ref</span><span class="o">!==</span><span class="mi">37</span><span class="o">&amp;&amp;</span><span class="nx">_ref</span><span class="o">!==</span><span class="mi">39</span><span class="o">&amp;&amp;</span><span class="nx">_ref</span><span class="o">!==</span><span class="mi">46</span><span class="p">)</span><span class="o">&amp;&amp;</span><span class="p">((</span><span class="nx">_ref1</span><span class="o">=</span><span class="nx">event</span><span class="p">.</span><span class="nx">which</span><span class="p">)</span><span class="o">!==</span><span class="mi">8</span><span class="o">&amp;&amp;</span><span class="nx">_ref1</span><span class="o">!==</span><span class="mi">9</span><span class="o">&amp;&amp;</span><span class="nx">_ref1</span><span class="o">!==</span><span class="mi">32</span><span class="o">&amp;&amp;</span><span class="nx">_ref1</span><span class="o">!==</span><span class="mi">45</span><span class="o">&amp;&amp;</span><span class="nx">_ref1</span><span class="o">!==</span><span class="mi">46</span><span class="o">&amp;&amp;</span><span class="nx">_ref1</span><span class="o">!==</span><span class="mi">47</span><span class="o">&amp;&amp;</span><span class="nx">_ref1</span><span class="o">!==</span><span class="mi">48</span><span class="o">&amp;&amp;</span><span class="nx">_ref1</span><span class="o">!==</span><span class="mi">49</span><span class="o">&amp;&amp;</span><span class="nx">_ref1</span><span class="o">!==</span><span class="mi">50</span><span class="o">&amp;&amp;</span><span class="nx">_ref1</span><span class="o">!==</span><span class="mi">51</span><span class="o">&amp;&amp;</span><span class="nx">_ref1</span><span class="o">!==</span><span class="mi">52</span><span class="o">&amp;&amp;</span><span class="nx">_ref1</span><span class="o">!==</span><span class="mi">53</span><span class="o">&amp;&amp;</span><span class="nx">_ref1</span><span class="o">!==</span><span class="mi">54</span><span class="o">&amp;&amp;</span><span class="nx">_ref1</span><span class="o">!==</span><span class="mi">55</span><span class="o">&amp;&amp;</span><span class="nx">_ref1</span><span class="o">!==</span><span class="mi">56</span><span class="o">&amp;&amp;</span><span class="nx">_ref1</span><span class="o">!==</span><span class="mi">57</span><span class="o">&amp;&amp;</span><span class="nx">_ref1</span><span class="o">!==</span><span class="mi">58</span><span class="o">&amp;&amp;</span><span class="nx">_ref1</span><span class="o">!==</span><span class="mi">65</span><span class="o">&amp;&amp;</span><span class="nx">_ref1</span><span class="o">!==</span><span class="mi">77</span><span class="o">&amp;&amp;</span><span class="nx">_ref1</span><span class="o">!==</span><span class="mi">80</span><span class="o">&amp;&amp;</span><span class="nx">_ref1</span><span class="o">!==</span><span class="mi">97</span><span class="o">&amp;&amp;</span><span class="nx">_ref1</span><span class="o">!==</span><span class="mi">109</span><span class="o">&amp;&amp;</span><span class="nx">_ref1</span><span class="o">!==</span><span class="mi">112</span><span class="p">)){</span><span class="nx">event</span><span class="p">.</span><span class="nx">preventDefault</span><span class="p">();}</span></div><div class='line' id='LC45'><span class="k">return</span> <span class="kc">null</span><span class="p">;},</span><span class="nx">change</span><span class="o">:</span><span class="kd">function</span><span class="p">(</span><span class="nx">event</span><span class="p">){</span><span class="kd">var</span> <span class="nx">ampm</span><span class="p">,</span><span class="nx">dateObj</span><span class="p">,</span><span class="nx">hours</span><span class="p">,</span><span class="nx">matchData</span><span class="p">,</span><span class="nx">milliseconds</span><span class="p">,</span><span class="nx">minutes</span><span class="p">,</span><span class="nx">seconds</span><span class="p">;</span><span class="nx">$this</span><span class="o">=</span><span class="nx">$</span><span class="p">(</span><span class="k">this</span><span class="p">);</span><span class="k">if</span><span class="p">(</span><span class="sr">/^((?:1[0-2])|(?:0[1-9]))\:[0-5]\d(?:\:[0-5]\d(?:\.\d+)?)?\s[AaPp][Mm]$/</span><span class="p">.</span><span class="nx">test</span><span class="p">(</span><span class="nx">$this</span><span class="p">.</span><span class="nx">val</span><span class="p">())){</span><span class="nx">matchData</span><span class="o">=</span><span class="sr">/^(\d\d):(\d\d)(?:\:(\d\d)(?:\.(\d+))?)?\s([AaPp][Mm])$/</span><span class="p">.</span><span class="nx">exec</span><span class="p">(</span><span class="nx">$this</span><span class="p">.</span><span class="nx">val</span><span class="p">());</span><span class="nx">hours</span><span class="o">=</span><span class="nb">parseInt</span><span class="p">(</span><span class="nx">matchData</span><span class="p">[</span><span class="mi">1</span><span class="p">],</span><span class="mi">10</span><span class="p">);</span><span class="nx">minutes</span><span class="o">=</span><span class="nb">parseInt</span><span class="p">(</span><span class="nx">matchData</span><span class="p">[</span><span class="mi">2</span><span class="p">],</span><span class="mi">10</span><span class="p">);</span><span class="nx">seconds</span><span class="o">=</span><span class="nb">parseInt</span><span class="p">(</span><span class="nx">matchData</span><span class="p">[</span><span class="mi">3</span><span class="p">],</span><span class="mi">10</span><span class="p">)</span><span class="o">||</span><span class="mi">0</span><span class="p">;</span><span class="nx">milliseconds</span><span class="o">=</span><span class="nx">matchData</span><span class="p">[</span><span class="mi">4</span><span class="p">];</span><span class="k">if</span><span class="p">(</span><span class="nx">milliseconds</span><span class="o">==</span><span class="kc">null</span><span class="p">){</span><span class="nx">milliseconds</span><span class="o">=</span><span class="mi">0</span><span class="p">;}</span><span class="k">else</span> <span class="k">if</span><span class="p">(</span><span class="nx">milliseconds</span><span class="p">.</span><span class="nx">length</span><span class="o">&gt;</span><span class="mi">3</span><span class="p">){</span><span class="nx">milliseconds</span><span class="o">=</span><span class="nb">parseInt</span><span class="p">(</span><span class="nx">milliseconds</span><span class="p">.</span><span class="nx">substring</span><span class="p">(</span><span class="mi">0</span><span class="p">,</span><span class="mi">3</span><span class="p">),</span><span class="mi">10</span><span class="p">);}</span><span class="k">else</span> <span class="k">if</span><span class="p">(</span><span class="nx">milliseconds</span><span class="p">.</span><span class="nx">length</span><span class="o">&lt;</span><span class="mi">3</span><span class="p">){</span><span class="k">while</span><span class="p">(</span><span class="nx">milliseconds</span><span class="p">.</span><span class="nx">length</span><span class="o">&lt;</span><span class="mi">3</span><span class="p">){</span><span class="nx">milliseconds</span><span class="o">+=</span><span class="s1">&#39;0&#39;</span><span class="p">;}</span></div><div class='line' id='LC46'><span class="nx">milliseconds</span><span class="o">=</span><span class="nb">parseInt</span><span class="p">(</span><span class="nx">milliseconds</span><span class="p">,</span><span class="mi">10</span><span class="p">);}</span><span class="k">else</span><span class="p">{</span><span class="nx">milliseconds</span><span class="o">=</span><span class="nb">parseInt</span><span class="p">(</span><span class="nx">milliseconds</span><span class="p">,</span><span class="mi">10</span><span class="p">);}</span></div><div class='line' id='LC47'><span class="nx">ampm</span><span class="o">=</span><span class="nx">matchData</span><span class="p">[</span><span class="mi">5</span><span class="p">].</span><span class="nx">toUpperCase</span><span class="p">();</span><span class="nx">dateObj</span><span class="o">=</span><span class="nx">readDateTime</span><span class="p">(</span><span class="nx">$hiddenField</span><span class="p">.</span><span class="nx">val</span><span class="p">());</span><span class="k">if</span><span class="p">(</span><span class="nx">ampm</span><span class="o">===</span><span class="s1">&#39;AM&#39;</span><span class="o">&amp;&amp;</span><span class="nx">hours</span><span class="o">===</span><span class="mi">12</span><span class="p">){</span><span class="nx">hours</span><span class="o">=</span><span class="mi">0</span><span class="p">;}</span><span class="k">else</span> <span class="k">if</span><span class="p">(</span><span class="nx">ampm</span><span class="o">===</span><span class="s1">&#39;PM&#39;</span><span class="o">&amp;&amp;</span><span class="nx">hours</span><span class="o">!==</span><span class="mi">12</span><span class="p">){</span><span class="nx">hours</span><span class="o">+=</span><span class="mi">12</span><span class="p">;}</span></div><div class='line' id='LC48'><span class="nx">dateObj</span><span class="p">.</span><span class="nx">setUTCHours</span><span class="p">(</span><span class="nx">hours</span><span class="p">);</span><span class="nx">dateObj</span><span class="p">.</span><span class="nx">setUTCMinutes</span><span class="p">(</span><span class="nx">minutes</span><span class="p">);</span><span class="nx">dateObj</span><span class="p">.</span><span class="nx">setUTCSeconds</span><span class="p">(</span><span class="nx">seconds</span><span class="p">);</span><span class="nx">dateObj</span><span class="p">.</span><span class="nx">setUTCMilliseconds</span><span class="p">(</span><span class="nx">milliseconds</span><span class="p">);</span><span class="k">if</span><span class="p">((</span><span class="nx">min</span><span class="o">!=</span><span class="kc">null</span><span class="p">)</span><span class="o">&amp;&amp;</span><span class="nx">dateObj</span><span class="o">&lt;</span><span class="nx">min</span><span class="p">){</span><span class="nx">$hiddenField</span><span class="p">.</span><span class="nx">val</span><span class="p">(</span><span class="nx">makeDateTimeString</span><span class="p">(</span><span class="nx">min</span><span class="p">)).</span><span class="nx">change</span><span class="p">();</span><span class="nx">$this</span><span class="p">.</span><span class="nx">val</span><span class="p">(</span><span class="nx">makeTimeDisplayString</span><span class="p">(</span><span class="nx">min</span><span class="p">));}</span><span class="k">else</span> <span class="k">if</span><span class="p">((</span><span class="nx">max</span><span class="o">!=</span><span class="kc">null</span><span class="p">)</span><span class="o">&amp;&amp;</span><span class="nx">dateObj</span><span class="o">&gt;</span><span class="nx">max</span><span class="p">){</span><span class="nx">$hiddenField</span><span class="p">.</span><span class="nx">val</span><span class="p">(</span><span class="nx">makeDateTimeString</span><span class="p">(</span><span class="nx">max</span><span class="p">)).</span><span class="nx">change</span><span class="p">();</span><span class="nx">$this</span><span class="p">.</span><span class="nx">val</span><span class="p">(</span><span class="nx">makeTimeDisplayString</span><span class="p">(</span><span class="nx">max</span><span class="p">));}</span><span class="k">else</span><span class="p">{</span><span class="nx">dateObj</span><span class="o">=</span><span class="nx">stepNormalize</span><span class="p">(</span><span class="nx">dateObj</span><span class="p">,</span><span class="nx">hiddenField</span><span class="p">);</span><span class="nx">$hiddenField</span><span class="p">.</span><span class="nx">val</span><span class="p">(</span><span class="nx">makeDateTimeString</span><span class="p">(</span><span class="nx">dateObj</span><span class="p">)).</span><span class="nx">change</span><span class="p">();</span><span class="nx">$this</span><span class="p">.</span><span class="nx">val</span><span class="p">(</span><span class="nx">makeTimeDisplayString</span><span class="p">(</span><span class="nx">dateObj</span><span class="p">));}}</span><span class="k">else</span><span class="p">{</span><span class="nx">$this</span><span class="p">.</span><span class="nx">val</span><span class="p">(</span><span class="nx">makeTimeDisplayString</span><span class="p">(</span><span class="nx">readDateTime</span><span class="p">(</span><span class="nx">$hiddenField</span><span class="p">.</span><span class="nx">val</span><span class="p">())));}</span></div><div class='line' id='LC49'><span class="k">return</span> <span class="kc">null</span><span class="p">;}});</span><span class="nx">$</span><span class="p">(</span><span class="nx">upBtn</span><span class="p">).</span><span class="nx">on</span><span class="p">(</span><span class="s2">&quot;mousedown&quot;</span><span class="p">,</span><span class="kd">function</span><span class="p">(</span><span class="nx">event</span><span class="p">){</span><span class="kd">var</span> <span class="nx">releaseFunc</span><span class="p">,</span><span class="nx">timeoutFunc</span><span class="p">;</span><span class="nx">increment</span><span class="p">(</span><span class="nx">hiddenField</span><span class="p">,</span><span class="nx">dateBtn</span><span class="p">,</span><span class="nx">timeField</span><span class="p">,</span><span class="nx">calendarDiv</span><span class="p">);</span><span class="nx">timeoutFunc</span><span class="o">=</span><span class="kd">function</span><span class="p">(</span><span class="nx">hiddenField</span><span class="p">,</span><span class="nx">dateBtn</span><span class="p">,</span><span class="nx">timeField</span><span class="p">,</span><span class="nx">calendarDiv</span><span class="p">,</span><span class="nx">incFunc</span><span class="p">){</span><span class="nx">incFunc</span><span class="p">(</span><span class="nx">hiddenField</span><span class="p">,</span><span class="nx">dateBtn</span><span class="p">,</span><span class="nx">timeField</span><span class="p">,</span><span class="nx">calendarDiv</span><span class="p">);</span><span class="nx">$</span><span class="p">(</span><span class="nx">timeField</span><span class="p">).</span><span class="nx">data</span><span class="p">(</span><span class="s1">&#39;timeoutID&#39;</span><span class="p">,</span><span class="nb">window</span><span class="p">.</span><span class="nx">setTimeout</span><span class="p">(</span><span class="nx">timeoutFunc</span><span class="p">,</span><span class="mi">10</span><span class="p">,</span><span class="nx">hiddenField</span><span class="p">,</span><span class="nx">dateBtn</span><span class="p">,</span><span class="nx">timeField</span><span class="p">,</span><span class="nx">calendarDiv</span><span class="p">,</span><span class="nx">incFunc</span><span class="p">));</span><span class="k">return</span> <span class="kc">null</span><span class="p">;};</span><span class="nx">releaseFunc</span><span class="o">=</span><span class="kd">function</span><span class="p">(</span><span class="nx">event</span><span class="p">){</span><span class="nb">window</span><span class="p">.</span><span class="nx">clearTimeout</span><span class="p">(</span><span class="nx">$</span><span class="p">(</span><span class="nx">timeField</span><span class="p">).</span><span class="nx">data</span><span class="p">(</span><span class="s1">&#39;timeoutID&#39;</span><span class="p">));</span><span class="nx">$</span><span class="p">(</span><span class="nb">document</span><span class="p">).</span><span class="nx">off</span><span class="p">(</span><span class="s1">&#39;mouseup&#39;</span><span class="p">,</span><span class="nx">releaseFunc</span><span class="p">);</span><span class="nx">$</span><span class="p">(</span><span class="nx">upBtn</span><span class="p">).</span><span class="nx">off</span><span class="p">(</span><span class="s1">&#39;mouseleave&#39;</span><span class="p">,</span><span class="nx">releaseFunc</span><span class="p">);</span><span class="k">return</span> <span class="kc">null</span><span class="p">;};</span><span class="nx">$</span><span class="p">(</span><span class="nb">document</span><span class="p">).</span><span class="nx">on</span><span class="p">(</span><span class="s1">&#39;mouseup&#39;</span><span class="p">,</span><span class="nx">releaseFunc</span><span class="p">);</span><span class="nx">$</span><span class="p">(</span><span class="nx">upBtn</span><span class="p">).</span><span class="nx">on</span><span class="p">(</span><span class="s1">&#39;mouseleave&#39;</span><span class="p">,</span><span class="nx">releaseFunc</span><span class="p">);</span><span class="nx">$</span><span class="p">(</span><span class="nx">timeField</span><span class="p">).</span><span class="nx">data</span><span class="p">(</span><span class="s1">&#39;timeoutID&#39;</span><span class="p">,</span><span class="nb">window</span><span class="p">.</span><span class="nx">setTimeout</span><span class="p">(</span><span class="nx">timeoutFunc</span><span class="p">,</span><span class="mi">700</span><span class="p">,</span><span class="nx">hiddenField</span><span class="p">,</span><span class="nx">dateBtn</span><span class="p">,</span><span class="nx">timeField</span><span class="p">,</span><span class="nx">calendarDiv</span><span class="p">,</span><span class="nx">increment</span><span class="p">));</span><span class="k">return</span> <span class="kc">null</span><span class="p">;});</span><span class="nx">$</span><span class="p">(</span><span class="nx">downBtn</span><span class="p">).</span><span class="nx">on</span><span class="p">(</span><span class="s2">&quot;mousedown&quot;</span><span class="p">,</span><span class="kd">function</span><span class="p">(</span><span class="nx">event</span><span class="p">){</span><span class="kd">var</span> <span class="nx">releaseFunc</span><span class="p">,</span><span class="nx">timeoutFunc</span><span class="p">;</span><span class="nx">decrement</span><span class="p">(</span><span class="nx">hiddenField</span><span class="p">,</span><span class="nx">dateBtn</span><span class="p">,</span><span class="nx">timeField</span><span class="p">,</span><span class="nx">calendarDiv</span><span class="p">);</span><span class="nx">timeoutFunc</span><span class="o">=</span><span class="kd">function</span><span class="p">(</span><span class="nx">hiddenField</span><span class="p">,</span><span class="nx">dateBtn</span><span class="p">,</span><span class="nx">timeField</span><span class="p">,</span><span class="nx">calendarDiv</span><span class="p">,</span><span class="nx">decFunc</span><span class="p">){</span><span class="nx">decFunc</span><span class="p">(</span><span class="nx">hiddenField</span><span class="p">,</span><span class="nx">dateBtn</span><span class="p">,</span><span class="nx">timeField</span><span class="p">,</span><span class="nx">calendarDiv</span><span class="p">);</span><span class="nx">$</span><span class="p">(</span><span class="nx">timeField</span><span class="p">).</span><span class="nx">data</span><span class="p">(</span><span class="s1">&#39;timeoutID&#39;</span><span class="p">,</span><span class="nb">window</span><span class="p">.</span><span class="nx">setTimeout</span><span class="p">(</span><span class="nx">timeoutFunc</span><span class="p">,</span><span class="mi">10</span><span class="p">,</span><span class="nx">hiddenField</span><span class="p">,</span><span class="nx">dateBtn</span><span class="p">,</span><span class="nx">timeField</span><span class="p">,</span><span class="nx">calendarDiv</span><span class="p">,</span><span class="nx">decFunc</span><span class="p">));</span><span class="k">return</span> <span class="kc">null</span><span class="p">;};</span><span class="nx">releaseFunc</span><span class="o">=</span><span class="kd">function</span><span class="p">(</span><span class="nx">event</span><span class="p">){</span><span class="nb">window</span><span class="p">.</span><span class="nx">clearTimeout</span><span class="p">(</span><span class="nx">$</span><span class="p">(</span><span class="nx">timeField</span><span class="p">).</span><span class="nx">data</span><span class="p">(</span><span class="s1">&#39;timeoutID&#39;</span><span class="p">));</span><span class="nx">$</span><span class="p">(</span><span class="nb">document</span><span class="p">).</span><span class="nx">off</span><span class="p">(</span><span class="s1">&#39;mouseup&#39;</span><span class="p">,</span><span class="nx">releaseFunc</span><span class="p">);</span><span class="nx">$</span><span class="p">(</span><span class="nx">downBtn</span><span class="p">).</span><span class="nx">off</span><span class="p">(</span><span class="s1">&#39;mouseleave&#39;</span><span class="p">,</span><span class="nx">releaseFunc</span><span class="p">);</span><span class="k">return</span> <span class="kc">null</span><span class="p">;};</span><span class="nx">$</span><span class="p">(</span><span class="nb">document</span><span class="p">).</span><span class="nx">on</span><span class="p">(</span><span class="s1">&#39;mouseup&#39;</span><span class="p">,</span><span class="nx">releaseFunc</span><span class="p">);</span><span class="nx">$</span><span class="p">(</span><span class="nx">downBtn</span><span class="p">).</span><span class="nx">on</span><span class="p">(</span><span class="s1">&#39;mouseleave&#39;</span><span class="p">,</span><span class="nx">releaseFunc</span><span class="p">);</span><span class="nx">$</span><span class="p">(</span><span class="nx">timeField</span><span class="p">).</span><span class="nx">data</span><span class="p">(</span><span class="s1">&#39;timeoutID&#39;</span><span class="p">,</span><span class="nb">window</span><span class="p">.</span><span class="nx">setTimeout</span><span class="p">(</span><span class="nx">timeoutFunc</span><span class="p">,</span><span class="mi">700</span><span class="p">,</span><span class="nx">hiddenField</span><span class="p">,</span><span class="nx">dateBtn</span><span class="p">,</span><span class="nx">timeField</span><span class="p">,</span><span class="nx">calendarDiv</span><span class="p">,</span><span class="nx">decrement</span><span class="p">));</span><span class="k">return</span> <span class="kc">null</span><span class="p">;});</span><span class="k">return</span> <span class="kc">null</span><span class="p">;});</span><span class="k">return</span> <span class="k">this</span><span class="p">;};</span><span class="nx">$</span><span class="p">(</span><span class="kd">function</span><span class="p">(){</span><span class="k">if</span><span class="p">(</span><span class="o">!</span><span class="nx">Modernizr</span><span class="p">.</span><span class="nx">inputtypes</span><span class="p">.</span><span class="nx">datetime</span><span class="p">){</span><span class="nx">$</span><span class="p">(</span><span class="s1">&#39;input[type=&quot;datetime&quot;]&#39;</span><span class="p">).</span><span class="nx">inputDateTime</span><span class="p">();}</span></div><div class='line' id='LC50'><span class="k">return</span> <span class="kc">null</span><span class="p">;});</span><span class="k">return</span> <span class="kc">null</span><span class="p">;})(</span><span class="nx">jQuery</span><span class="p">);}).</span><span class="nx">call</span><span class="p">(</span><span class="k">this</span><span class="p">);</span></div></pre></div>
            </td>
          </tr>
        </table>
    </div>
  
            </div>
          </div>
  
          <a href="#jump-to-line" rel="facebox" data-hotkey="l" class="js-jump-to-line" style="display:none">Jump to Line</a>
          <div id="jump-to-line" style="display:none">
            <h2>Jump to Line</h2>
            <form accept-charset="UTF-8" class="js-jump-to-line-form">
              <input class="textfield js-jump-to-line-field" type="text">
              <div class="full-button">
                <button type="submit" class="button">Go</button>
              </div>
            </form>
          </div>
  
        </div>
      </div>
  </div>
  
  <div id="js-frame-loading-template" class="frame frame-loading large-loading-area" style="display:none;">
    <img class="js-frame-loading-spinner" src="https://a248.e.akamai.net/assets.github.com/images/spinners/octocat-spinner-128.gif?1347543527" height="64" width="64">
  </div>
  
  
          </div>
        </div>
        <div class="context-overlay"></div>
      </div>
  
        <div id="footer-push"></div><!-- hack for sticky footer -->
      </div><!-- end of wrapper - hack for sticky footer -->
  
        <!-- footer -->
        <div id="footer">
    <div class="container clearfix">
  
        <dl class="footer_nav">
          <dt>GitHub</dt>
          <dd><a href="https://github.com/about">About us</a></dd>
          <dd><a href="https://github.com/blog">Blog</a></dd>
          <dd><a href="https://github.com/contact">Contact &amp; support</a></dd>
          <dd><a href="http://enterprise.github.com/">GitHub Enterprise</a></dd>
          <dd><a href="http://status.github.com/">Site status</a></dd>
        </dl>
  
        <dl class="footer_nav">
          <dt>Applications</dt>
          <dd><a href="http://mac.github.com/">GitHub for Mac</a></dd>
          <dd><a href="http://windows.github.com/">GitHub for Windows</a></dd>
          <dd><a href="http://eclipse.github.com/">GitHub for Eclipse</a></dd>
          <dd><a href="http://mobile.github.com/">GitHub mobile apps</a></dd>
        </dl>
  
        <dl class="footer_nav">
          <dt>Services</dt>
          <dd><a href="http://get.gaug.es/">Gauges: Web analytics</a></dd>
          <dd><a href="http://speakerdeck.com">Speaker Deck: Presentations</a></dd>
          <dd><a href="https://gist.github.com">Gist: Code snippets</a></dd>
          <dd><a href="http://jobs.github.com/">Job board</a></dd>
        </dl>
  
        <dl class="footer_nav">
          <dt>Documentation</dt>
          <dd><a href="http://help.github.com/">GitHub Help</a></dd>
          <dd><a href="http://developer.github.com/">Developer API</a></dd>
          <dd><a href="http://github.github.com/github-flavored-markdown/">GitHub Flavored Markdown</a></dd>
          <dd><a href="http://pages.github.com/">GitHub Pages</a></dd>
        </dl>
  
        <dl class="footer_nav">
          <dt>More</dt>
          <dd><a href="http://training.github.com/">Training</a></dd>
          <dd><a href="https://github.com/edu">Students &amp; teachers</a></dd>
          <dd><a href="http://shop.github.com">The Shop</a></dd>
          <dd><a href="/plans">Plans &amp; pricing</a></dd>
          <dd><a href="http://octodex.github.com/">The Octodex</a></dd>
        </dl>
  
        <hr class="footer-divider">
  
  
      <p class="right">&copy; 2013 <span title="0.06559s from fe18.rs.github.com">GitHub</span>, Inc. All rights reserved.</p>
      <a class="left" href="https://github.com/">
        <span class="mega-icon mega-icon-invertocat"></span>
      </a>
      <ul id="legal">
          <li><a href="https://github.com/site/terms">Terms of Service</a></li>
          <li><a href="https://github.com/site/privacy">Privacy</a></li>
          <li><a href="https://github.com/security">Security</a></li>
      </ul>
  
    </div><!-- /.container -->
  
  </div><!-- /.#footer -->
  
  
      <div class="fullscreen-overlay js-fullscreen-overlay" id="fullscreen_overlay">
    <div class="fullscreen-container js-fullscreen-container">
      <div class="textarea-wrap">
        <textarea name="fullscreen-contents" id="fullscreen-contents" class="js-fullscreen-contents" placeholder="" data-suggester="fullscreen_suggester"></textarea>
            <div class="suggester-container">
                <div class="suggester fullscreen-suggester js-navigation-container" id="fullscreen_suggester"
                   data-url="/jonstipe/datetime-polyfill/suggestions/commit">
                </div>
            </div>
      </div>
    </div>
    <div class="fullscreen-sidebar">
      <a href="#" class="exit-fullscreen js-exit-fullscreen tooltipped leftwards" title="Exit Zen Mode">
        <span class="mega-icon mega-icon-normalscreen"></span>
      </a>
      <a href="#" class="theme-switcher js-theme-switcher tooltipped leftwards"
        title="Switch themes">
        <span class="mini-icon mini-icon-brightness"></span>
      </a>
    </div>
  </div>
  
  
  
      <div id="ajax-error-message" class="flash flash-error">
        <span class="mini-icon mini-icon-exclamation"></span>
        Something went wrong with that request. Please try again.
        <a href="#" class="mini-icon mini-icon-remove-close ajax-error-dismiss"></a>
      </div>
  
      
      
      <span id='server_response_time' data-time='0.06607' data-host='fe18'></span>
      
    </body>
  </html>
  
  