pub-hamiltonbm.escribemeetings.com Open in urlscan Pro
2606:4700::6812:1f64  Public Scan

URL: https://pub-hamiltonbm.escribemeetings.com/
Submission: On January 14 via api from US — Scanned from US

Form analysis 1 forms found in the DOM

Name: aspnetFormPOST ./

<form name="aspnetForm" method="post" action="./" id="aspnetForm">
  <div>
    <input type="hidden" name="__EVENTTARGET" id="__EVENTTARGET" value="">
    <input type="hidden" name="__EVENTARGUMENT" id="__EVENTARGUMENT" value="">
    <input type="hidden" name="__VIEWSTATE" id="__VIEWSTATE"
      value="vj0kqrxNp3+Pgy/ejOBQD21PZh08wjjq3TfZh4U41f48rHi80hmNArinLfAlwS1+hyz+Wyh4zHcY/ULnbgwWB9iRU7xR7scECsryfOf/1o7UVhLYAPUIPlfIjDqmggnK81oB9A5tJfkoM58aALwOs2vjY8hm9c5YrPg7kvrTE8Zfg/nG1leFpU8ML4DV/Qx6UwUbvqvcW0t0t7wn4EK55ORa0aFy2UA/MJ+oxOujRaKy8ssPsI/omz3IVKjJXPyTWiKBLOd+0ZlHuLeEI9BEDR/YiEqfEZTsOnQBusV23WbOQyyaIMO0/FT+vBkvKwijPOxG0hGnYlSdT71+oHP5JAaaa+b4+JwhDG+Sr+yHw4Xmqbszv3ajT6oC6YOsmjDDW/G0pv9pUjLq05D65oXfcjudU9b/BvaJS+244sbCVM9B5wxEXee3u+PMISs0POA2V5b1je3+jMVFoaGmRjuWJL6fDqxVbHnvTA9x6+toleVMYvu7KDpLUqvMLRvNm8TnwfH1/p5kmL2Sb1cc/J8voPFCRtVoNPEXcO5YiWFg/BL1i57FuOe+x8LIJ1+mG26z6ohbLndyfpP5hexeXx9aTH33UZhKFXUdqW9Z7c2WUwYqtaaXHyjwnTOAsaol2N+QApqgVw2ZbAdhZCt87q/1PMJfZrcycmC644sEjN+pzxo50tkw+qvS8oP0VB/b4Jqh3HlDQb+uXS9KP7qqf3gdVAaBB5PWLNq6M127/s77CdfxuvF+vIS1cF7kwIs8wejYZ48YOmdWz1UyesNKg9OEdey3PESLwvaQEqK6HqZhH+r1pzRLosb977xYLCBF1tHNJEKV3MnUlQweVCXkdKUEJrvXBGAB3UJUDN3DcpZY4kUpUr7Pu10JXhDY+NIe14b7u1SlIjYCp52W5AdLjmtezV4mIbhXz8KdF8ZeWGgoQUgxY37/7qL76KyAgFQIin8NVPhDrHltUrKpDX2ykddIy+l2uVmTla44EJibGlH2nA6m436E6Gb0SLnlmXVMt3LBmeNaTdKS39djsGlz4/M5C+XyKaVmPB3xNIWZP8pT4C3nPyaXEecZ9xVEtvdUqOCxFmm24jFxMcih6YQCrgsUXbbNp3eY8kabWrjcGx3GHvktbtZF5eaxwBdNHmYvBKtLfgEayX1Lj67+v0NSU+/ZgmZlSIXAHNmBKYePW+XUySIH4dalMasGb/1IOREbZtEr">
  </div>
  <script type="text/javascript">
    //<![CDATA[
    var theForm = document.forms['aspnetForm'];
    if (!theForm) {
      theForm = document.aspnetForm;
    }

    function __doPostBack(eventTarget, eventArgument) {
      if (!theForm.onsubmit || (theForm.onsubmit() != false)) {
        theForm.__EVENTTARGET.value = eventTarget;
        theForm.__EVENTARGUMENT.value = eventArgument;
        theForm.submit();
      }
    }
    //]]>
  </script>
  <script src="/bundles/MsAjaxJs?v=D6VN0fHlwFSIWjbVzi6mZyE9Ls-4LNrSSYVGRU46XF81" type="text/javascript"></script>
  <script src="Scripts/respond.min.js" type="text/javascript"></script>
  <script src="/bundles/WebFormsJs?v=N8tymL9KraMLGAMFuPycfH3pXe6uUlRXdhtYv8A_jUU1" type="text/javascript"></script>
  <div>
    <input type="hidden" name="__VIEWSTATEGENERATOR" id="__VIEWSTATEGENERATOR" value="8F06231E">
    <input type="hidden" name="__VIEWSTATEENCRYPTED" id="__VIEWSTATEENCRYPTED" value="">
    <input type="hidden" name="__EVENTVALIDATION" id="__EVENTVALIDATION"
      value="aT1RVB840LuB9vdjpZlIPd2VWvxcoFhGTiZJaKSI+5m6mQboUK0srwSTYrZDLp9hooKqeIu7Of6LfJqd/6sNUnhTDeg9fu2qQm8P9Cu7OFSuK3HUkPnQMCu38SEO603zJ8o4paa3jJAnEZ6xmP87mqgfqQ8qO7MC3y+OT6DFfURs4iJf+JjQaQYsdjiAbUjq0oTybfmrGznuFmzm+MlY30lF/6jnP4VK5wQQGvXlISSKU9NgoAzJ4RQsu/rmofKuKHkyoy31dO37NQC6ghi5J695wSxaqcRV5SE5VclQ5QyVvmXFfJHgkyKlP5S1JxSFKZqsyI6KsXsBSoLvbybd5nsurhVHG59hjNulsk0P0yQDMxbJAObFPjtJSd89EBrl+T9ah6KelZBWUXBdKtSz2QxjR7FM9W9/Ksk1Eb98itItFDJoZZjVPhTkNWx1zmzqSEh2xAQQ2mIGllL0WnlvY6sq/8tTzpF3kueBJ5KB1GCq471G8mx+mN4HSXVcmVmIrxBOxrtmv0Td9csxfk3OMfsdmFVgLoJTMrDBvlFtr9yiY2TOiR7tWzZU0rQP3gLO">
  </div>
  <script type="text/javascript">
    //<![CDATA[
    Sys.WebForms.PageRequestManager._initialize('ctl00$ctl22', 'aspnetForm', ['tctl00$MainContent$MonthMenu', '', 'tctl00$MainContent$MeetingTypeList', ''], ['ctl00$MainContent$FilterResults', 'FilterResults'], [], 90, 'ctl00');
    //]]>
  </script>
  <div class="container-fluid" id="containerclass">
    <link href="https://fonts.googleapis.com/css?family=Open+Sans" rel="stylesheet">
    <script type="text/javascript" charset="utf8" src="https://cdn.datatables.net/1.11.5/js/jquery.dataTables.min.js"></script>
    <link rel="stylesheet" type="text/css" href="https://cdn.datatables.net/1.11.5/css/jquery.dataTables.min.css">
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/slim-select/1.15.1/slimselect.min.css">
    <script src="https://cdnjs.cloudflare.com/ajax/libs/slim-select/1.15.1/slimselect.min.js"></script>
    <link rel="stylesheet" href="https://maxst.icons8.com/vue-static/landings/line-awesome/line-awesome/1.3.0/css/line-awesome.min.css">
    <div id="ctl00_MainContent_MeetingListUpdateProgress" style="display:none;" role="status" aria-hidden="true">
      <div class="loaderPosition">
        <span class="la la-spinner la-spin loaderDesign"></span>
      </div>
    </div>
    <style>
      .embed-responsive {
        position: relative;
        display: block;
        width: 100%;
        padding: 0;
        overflow: hidden;
      }

      .embed-responsive::before {
        display: block;
        content: "";
      }

      .embed-responsive .embed-responsive-item,
      .embed-responsive iframe,
      .embed-responsive embed,
      .embed-responsive object,
      .embed-responsive video {
        /*position: absolute;*/
        top: 0;
        bottom: 0;
        left: 0;
        width: 100%;
        height: 100%;
        border: 0;
      }

      .ss-multi-selected {
        max-height: 700px;
        overflow: scroll;
        overflow-y: hidden;
        overflow-x: hidden;
      }

      .fc-day-grid-event .fc-content {
        white-space: nowrap;
        overflow: hidden
      }

      #calendar .fc-view-container {
        max-height: inherit;
        padding-bottom: 30px;
        overflow: visible;
      }

      #divDateRangeFilterPopup .daterangepicker {
        min-width: 490px;
      }

      @media only screen and (device-width: 768px) {
        #divDateRangeFilterPopup .daterangepicker {
          position: absolute;
          left: -200px !important;
          right: 900px !important;
          /*display: block !important;*/
          min-width: 490px;
        }

        .dropdown-menu dropdown-menu-right {
          display: block !important;
        }

        #PastMeetingTitle.pull-left {
          margin-left: 10px !important;
        }

        #PastMeetingFilterButton.btn-group {
          margin-right: 10px !important;
        }
      }

      .inputtable th {
        padding-right: 12px;
        vertical-align: top;
      }

      h1 {
        font-size: 2rem !important;
        font-weight: 700 !important;
      }

      h2 {
        font-weight: 500 !important;
      }
    </style>
    <div style="min-height: 100vh;">
      <header>
        <div class="row d-flex justify-content-center ">
          <div class="col-12 col-md-12 col-lg-12 col-lg-10 col-md-offset-1 col-xl-10 col-xl-offset-1 ">
            <div style="margin-left: 15px; margin-right: 15px;">
              <div class="input-group">
                <div class="input-group-prepend  d-flex" id="adv-search">
                  <a class="skip-to-content-link" href="">
                            Skip to content
                        </a>
                  <div class="form-group has-feedback has-clear searchGroup invisible" style="flex-basis: 100%;">
                    <label class="sr-only" for="ctl00_MainContent_txtSearch"><span>Search</span></label>
                    <input name="ctl00$MainContent$txtSearch" id="ctl00_MainContent_txtSearch" class="form-control" onkeydown="return searchEnter(event);" placeholder="Search" aria-labelledby="ctl00_MainContent_txtSearch" type="search"
                      style="max-width: none; border-right: 0;">
                    <span class="form-control-clear glyphicon glyphicon-remove form-control-feedback hidden"> </span>
                  </div>
                  <button role="button" aria-label="search" id="searchBtnMain" class="input-group-append searchGroup invisible" style="border-bottom-right-radius: 4px !important; border-top-right-radius: 4px !important; cursor: pointer;"
                    type="button" onclick="searchData();">
                    <span tabindex="0" class="input-group-text input-group-addon" onkeydown="return searchEnter(event);" aria-label="search button"><span class="fa fa-search fontIcon" aria-hidden="true"></span></span>
                  </button>
                  <div id="filterIcon" class="input-group-btn input-group-addon invisible">
                    <div class="btn-group" role="group" aria-label="Filter">
                      <div class="dropdown dropdown-lg">
                        <button type="button" id="btnFilter" class="btn filter-icon dropdown-toggle dropdown-toggle-off" data-toggle="dropdown" aria-label="Filter" aria-expanded="false" style="margin-left: .75em;"><span
                            class="la la-filter"></span><span class="fa fa-caret-down"></span></button>
                        <div id="divDateRangeFilterPopup" class="dropdown-menu dropdown-menu-right" role="menu" style="display: none;">
                          <div class="form-group filterlabel" role="menuitem">
                            <label for="ctl00_MainContent_FilterByDate"> Filter By Date</label><br>
                            <div class="input-group-prepend srch-input-group">
                              <span class="e-input-group e-control-wrapper e-date-range-wrapper"><input type="text" id="ctl00_MainContent_FilterByDate" class="form-control FilterByDate e-control e-daterangepicker e-lib e-input e-keyboard"
                                  onpaste="return false;" style="max-width: none; background-color: #fff;" placeholder="Press space to open. Please select a start and end date. Backspace to clear"
                                  aria-placeholder="Press space to open. Please select a start and end date. Backspace to clear" aria-readonly="false" tabindex="0" aria-haspopup="true" aria-activedescendant="null"
                                  aria-owns="ctl00_MainContent_FilterByDate_popup" aria-expanded="false" role="combobox" autocomplete="off" aria-disabled="false" autocorrect="off" autocapitalize="off" spellcheck="false" aria-invalid="false" value=""
                                  data-name="ctl00$MainContent$FilterByDate"><span class="e-clear-icon e-clear-icon-hide" aria-label="close" role="button"></span><span class="e-input-group-icon e-range-icon e-icons" aria-label="Filter by date button"
                                  tabindex="0"></span><input type="text" name="ctl00$MainContent$FilterByDate" class="e-daterange-hidden" data-name="ctl00$MainContent$FilterByDate" id="datePickerIcon0"><label for="datePickerIcon0"
                                  class="visuallyhidden">Date picker icon 0</label><input type="text" name="ctl00$MainContent$FilterByDate" class="e-daterange-hidden" data-name="ctl00$MainContent$FilterByDate" id="datePickerIcon1"><label
                                  for="datePickerIcon1" class="visuallyhidden">Date picker icon 1</label></span>
                              <!--<span class="input-group-append control-clear">
                                                    <span class="input-group-text input-group-addon"><span class="fa fa-times fontIcon" aria-hidden="true"></span></span>
                                                </span>-->
                            </div>
                          </div>
                          <div class="form-group" role="menuitem">
                            <label for="ctl00_MainContent_lblMultiSelect"> Filter By Meeting Type</label><br>
                            <select size="4" name="ctl00$MainContent$lblMultiSelect" multiple="multiple" id="ctl00_MainContent_lblMultiSelect" class="MeetingTypeListbox" onchange="ChangeFilterFlag();" tabindex="-1" data-ssid="ss-99035"
                              style="display: none;">
                            </select>
                            <div class="ss-99035 ss-main MeetingTypeListbox" style="">
                              <div class="ss-multi-selected">
                                <div class="ss-values"><span class="ss-disabled">Select Data</span></div>
                                <div class="ss-add"><span class="ss-plus"></span></div>
                              </div>
                              <div class="ss-content">
                                <div class="ss-search"><label for="searchMeetingType" class="sr-only">Optional filter by Meeting Type Search</label><input type="search" placeholder="Optional Filter by Meeting Type search field" tabindex="0"
                                    id="searchMeetingType" aria-labelledby="searchMeetingType"></div>
                                <div class="ss-list">
                                  <div class="ss-option ss-disabled">No Results</div>
                                </div>
                              </div>
                            </div>
                          </div>
                          <div class="form-group" id="FilterByConflictMember" role="menuitem" style="display: none;">
                            <label for="ctl00_MainContent_lbFilterByConflictMember"> Filter By Conflict Member</label><br>
                            <select size="4" name="ctl00$MainContent$lbFilterByConflictMember" multiple="multiple" id="ctl00_MainContent_lbFilterByConflictMember" onchange="ChangeFilterFlag();" tabindex="-1" data-ssid="ss-3621"
                              style="display: none;">
                            </select>
                            <div class="ss-3621 ss-main" style="">
                              <div class="ss-multi-selected">
                                <div class="ss-values"><span class="ss-disabled">Select Data</span></div>
                                <div class="ss-add"><span class="ss-plus"></span></div>
                              </div>
                              <div class="ss-content">
                                <div class="ss-search"><input type="search" placeholder="Search" tabindex="0"></div>
                                <div class="ss-list">
                                  <div class="ss-option ss-disabled">No Results</div>
                                </div>
                              </div>
                            </div>
                          </div>
                          <div class="form-group" id="FilterByStage" role="menuitem" style="display: none;">
                            <label for="ctl00_MainContent_lbFilterByStage"> Filter By Stage</label><br>
                            <select size="4" name="ctl00$MainContent$lbFilterByStage" multiple="multiple" id="ctl00_MainContent_lbFilterByStage" onchange="ChangeFilterFlag();" tabindex="-1" data-ssid="ss-95929" style="display: none;">
                            </select>
                            <div class="ss-95929 ss-main" style="">
                              <div class="ss-multi-selected">
                                <div class="ss-values"><span class="ss-disabled">Select Data</span></div>
                                <div class="ss-add"><span class="ss-plus"></span></div>
                              </div>
                              <div class="ss-content">
                                <div class="ss-search"><input type="search" placeholder="Search" tabindex="0"></div>
                                <div class="ss-list">
                                  <div class="ss-option ss-disabled">No Results</div>
                                </div>
                              </div>
                            </div>
                          </div>
                          <div class="form-group" id="FilterByStatus" role="menuitem" style="display: none;">
                            <label for="ctl00_MainContent_lbFilterByStatus"> Filter By Status</label><br>
                            <select size="4" name="ctl00$MainContent$lbFilterByStatus" multiple="multiple" id="ctl00_MainContent_lbFilterByStatus" onchange="ChangeFilterFlag();" tabindex="-1" data-ssid="ss-86193" style="display: none;">
                            </select>
                            <div class="ss-86193 ss-main" style="">
                              <div class="ss-multi-selected">
                                <div class="ss-values"><span class="ss-disabled">Select Data</span></div>
                                <div class="ss-add"><span class="ss-plus"></span></div>
                              </div>
                              <div class="ss-content">
                                <div class="ss-search"><input type="search" placeholder="Search" tabindex="0"></div>
                                <div class="ss-list">
                                  <div class="ss-option ss-disabled">No Results</div>
                                </div>
                              </div>
                            </div>
                          </div>
                          <div class="form-group" id="FilterByDepartment" role="menuitem" style="display: none;">
                            <label for="ctl00_MainContent_lbFilterByDepartment"> Filter By Department</label><br>
                            <select size="4" name="ctl00$MainContent$lbFilterByDepartment" multiple="multiple" id="ctl00_MainContent_lbFilterByDepartment" onchange="ChangeFilterFlag();" tabindex="-1" data-ssid="ss-19706" style="display: none;">
                            </select>
                            <div class="ss-19706 ss-main" style="">
                              <div class="ss-multi-selected">
                                <div class="ss-values"><span class="ss-disabled">Select Data</span></div>
                                <div class="ss-add"><span class="ss-plus"></span></div>
                              </div>
                              <div class="ss-content">
                                <div class="ss-search"><label for="searchConflictMember" hidden="">Search </label><input type="search" placeholder="Search" tabindex="0" id="searchConflictMember" aria-labelledby="searchConflictMember"></div>
                                <div class="ss-list">
                                  <div class="ss-option ss-disabled">No Results</div>
                                </div>
                              </div>
                            </div>
                          </div>
                          <div class="form-group" id="FilterByKeyword" role="menuitem" style="display: none;">
                            <label for="ctl00_MainContent_txtFilterByKeyword"> Filter By Keyword</label><br>
                            <div class="input-group srch-input-group">
                              <input name="ctl00$MainContent$txtFilterByKeyword" type="text" id="ctl00_MainContent_txtFilterByKeyword" class="form-control">
                              <span class="input-group-addon control-clear">
                                <span class="glyphicon glyphicon-remove"></span>
                              </span>
                            </div>
                          </div>
                          <div class="row">
                            <div class="col-md-6 Modalbuttons">
                              <button type="button" id="btnResetFilters" class="btn btn-reset" onclick="ResetFilters();"> Reset Filters</button>
                            </div>
                            <div class="col-md-6 Modalbuttons">
                              <a onclick="return postbackButtonClick();" id="FilterResults" class="btn btn-primary btn-orange results" href="javascript:__doPostBack('ctl00$MainContent$FilterResults','')" style="">Filter Results</a>
                              <button type="button" id="btnFilterResults" class="btn-primary btn-orange" onclick="searchData();" style="display: none;"> Filter Results</button>
                              <button type="button" id="btnFunnelFilterResults" class="btn-primary btn-orange" style="display: none;"> Filter Results</button>
                            </div>
                          </div>
                        </div>
                      </div>
                    </div>
                  </div>
                </div>
              </div>
            </div>
          </div>
        </div>
      </header>
      <main id="maincontent" class="row d-flex justify-content-center">
        <div class="col-12 col-md-12 col-lg-12 col-lg-10 col-md-offset-1 col-xl-10 col-xl-offset-1 ">
          <div style="margin-left: 15px; margin-right: 15px;" class="child">
            <div>
              <div id="calendar" class="d-none" style="display: none;"></div>
              <div id="cal-list" class="fc" style="">
                <div role="navigation" aria-label="other meetings options" class="fc-toolbar">
                  <div id="ctl00_MainContent_MonthMenu" class="fc-left" style="display: none;">
                    <input type="hidden" name="ctl00$MainContent$StartMonthDate" id="ctl00_MainContent_StartMonthDate">
                    <input type="hidden" name="ctl00$MainContent$EndMonthDate" id="ctl00_MainContent_EndMonthDate">
                    <input type="hidden" name="ctl00$MainContent$CurrentMonth" id="ctl00_MainContent_CurrentMonth">
                    <input type="hidden" name="ctl00$MainContent$LastDay" id="ctl00_MainContent_LastDay">
                    <input type="hidden" name="ctl00$MainContent$IsFilterList" id="ctl00_MainContent_IsFilterList" value="0">
                    <input type="hidden" name="ctl00$MainContent$IsChangeInMonth" id="ctl00_MainContent_IsChangeInMonth" value="0">
                    <button type="button" id="btnPreviousMonth" class="fc-button fc-state-default fc-corner-left fc-corner-right" aria-label="Previous Month" style="display: none;"><span class="fc-icon fc-icon-left-single-arrow"></span></button>
                    <!--<h1 style="display:none" aria-hidden="true" id="monthText">
                                        <span id="ctl00_MainContent_lblMonthText"></span>
                                    </h1>-->
                    <button type="button" id="btnNextMonth" class="fc-button fc-state-default fc-corner-left fc-corner-right" aria-label="Next Month" style="display: none;"><span class="fc-icon fc-icon-right-single-arrow"></span></button>
                  </div>
                  <div id="mergedListHeader" class="fc-left" style="">
                    <h1>Upcoming Meetings</h1>
                  </div>
                  <div id="pastHeader" class="fc-left" style="display: none;">
                    <h1>Past Meetings</h1>
                  </div>
                  <div class="AgendaItemHistoryHeader fc-left col-lg-4 col-md-3" style="padding-left: 0px; display: none;">
                    <span id="custom-searchbar-historyitem" class="title-icons search-resourcelibrary AgendaItemHistorySearchField" style="width: 100%">
                      <div class="searchtable">
                        <label id="FilterAgendaItemHistoryLabel" for="LegislationSearchField" class="sr-only">Filter Legislation</label>
                        <input class="form-control" type="text" autocomplete="off" name="LegislationSearchField" placeholder="Filter" id="AgendaItemHistorySearchField" aria-labelledby="FilterAgendaItemHistryLabel">
                      </div>
                    </span>
                  </div>
                  <div class="LegislationHeader fc-left col-lg-4 col-md-3" style="padding-left: 0px; display: none;">
                    <span id="custom-searchbar-legislation" class="title-icons search-resourcelibrary LegislationLibrarySearchField" style="width: 100%">
                      <div class="searchtable">
                        <label id="FilterLegislationLabel" for="LegislationSearchField" class="sr-only">Filter Legislation</label>
                        <input class="form-control" type="text" autocomplete="off" name="LegislationSearchField" placeholder="Filter" id="LegislationSearchField" aria-labelledby="FilterLegislationLabel">
                      </div>
                    </span>
                  </div>
                  <div id="header-buttons" class="fc-right" role="group" aria-label="event views">
                    <button type="button" id="btnCalendarView" class="fc-month-button calendarView fc-button fc-state-default fc-corner-left fc-corner-right" aria-pressed="false"> Calendar</button>
                    <button type="button" id="btnMergedListView" class="fc-mergedListViewButton-button mergedListView fc-button fc-state-default fc-corner-left fc-corner-right fc-state-active" aria-pressed="true"> List </button>
                    <button type="button" id="btnListView" class="fc-myCustomButton-button listView fc-button fc-state-default fc-corner-left fc-corner-right" aria-pressed="false"> Upcoming</button>
                    <button type="button" id="btnPastView" class="fc-pastViewButton-button pastView fc-button fc-state-default fc-corner-left fc-corner-right" aria-pressed="false"> Past </button>
                    <button type="button" id="btnConflictsView" class="fc-myCustomConflictsButton-button conflicts fc-button fc-state-default fc-corner-left fc-corner-right" aria-pressed="false"> Conflicts Registry</button>
                  </div>
                  <div id="filter-options" style="display:none;">
                    <span id="filter-meeting-collapse" class="fa fa-caret-right" data-toggle="collapse" data-target="#filter-meeting-docment" onclick="onFilterMeetingDocument();" style="float:left !important; line-height:1.5;"></span>
                    <span style="cursor:pointer;" data-toggle="collapse" data-target="#filter-meeting-docment" onclick="onFilterMeetingDocument();"><b>  Filter Options: </b></span>
                    <div id="filter-meeting-docment" class="collapse col-lg-12" style="left: 15px">
                      <div class="row">
                        <div class="col-lg-4">
                          <div class="row">
                            <div class="col-lg-5">
                              <span><b> Meeting Documents: </b></span>
                            </div>
                            <div class="col-lg-7">
                              <div class="col-lg-12">
                                <input type="checkbox" value="AgendaCover" class="chkMeetingDocuments common-filter">
                                <span>Agenda Cover Page</span>
                              </div>
                              <div class="col-lg-12">
                                <input type="checkbox" value="Agenda" class="chkMeetingDocuments common-filter">
                                <span>Agenda</span>
                              </div>
                              <div class="col-lg-12">
                                <input type="checkbox" value="Addendum" class="chkMeetingDocuments common-filter">
                                <span>Addendum</span>
                              </div>
                              <div class="col-lg-12">
                                <input type="checkbox" value="Merged" class="chkMeetingDocuments common-filter">
                                <span>Revised Agenda</span>
                              </div>
                              <div class="col-lg-12">
                                <input type="checkbox" value="PostAgenda" class="chkMeetingDocuments common-filter">
                                <span>Post Agenda</span>
                              </div>
                              <div class="col-lg-12">
                                <input type="checkbox" value="PostMinutes" class="chkMeetingDocuments common-filter">
                                <span>Minutes</span>
                              </div>
                              <div class="col-lg-12">
                                <input type="checkbox" value="AdditionalDocuments" class="chkMeetingDocuments common-filter">
                                <span>Additional Documents</span>
                              </div>
                              <div class="col-lg-12">
                                <input type="checkbox" value="MergedCover" class="chkMeetingDocuments common-filter">
                                <span>Revised Agenda Cover Page</span>
                              </div>
                            </div>
                          </div>
                        </div>
                        <div class="col-lg-8">
                          <div class="row">
                            <div class="col-lg-2">
                              <span><b>Also search in: </b></span>
                            </div>
                            <div class="col-lg-10">
                              <div class="col-lg-12">
                                <input type="checkbox" id="chkConflicts" value="Conflicts" class="common-filter">
                                <span>Conflicts</span>
                              </div>
                              <div class="col-lg-12">
                                <input type="checkbox" id="chkComments" value="PublicComments" class=" common-filter">
                                <span>Public Comments</span>
                              </div>
                            </div>
                          </div>
                        </div>
                      </div>
                      <div class="row col-lg-10" style="padding-top:10px;">
                        <div class="col-lg-2">
                          <span><b>Document Types:</b></span>
                        </div>
                        <div class="col-lg-4">
                          <div class="col-lg-12">
                            <input type="checkbox" value=".html" class="chkDocumentTypes common-filter">
                            <span>HTML</span>
                          </div>
                          <div class="col-lg-12">
                            <input type="checkbox" value=".pdf" class="chkDocumentTypes common-filter">
                            <span>PDF</span>
                          </div>
                        </div>
                      </div>
                      <div class="row col-lg-10" style="padding-top:10px;" id="languageFilterDv">
                        <div class="col-lg-2">
                          <span><b>Language: </b></span>
                        </div>
                        <div class="col-lg-2">
                          <div class="col-lg-12">
                            <input type="checkbox" value="0,9" class="chkLanguage">
                            <span>English </span>
                          </div>
                          <div class="col-lg-12">
                            <input type="checkbox" value="0,12" class="chkLanguage">
                            <span>French </span>
                          </div>
                        </div>
                      </div>
                      <div class="row col-lg-10" style="padding-top:10px;">
                        <div class="col-lg-2">
                          <button type="button" class="fc-button fc-state-default fc-corner-left fc-corner-right" id="btnSaveFilterCriteria" onclick="return searchData();"> Save Filter </button>
                        </div>
                      </div>
                    </div>
                  </div>
                  <div class="fc-center" style="display: none;"></div>
                  <div class="fc-clear" style="display: none;"></div>
                </div>
                <div class="row">
                  <div role="region" aria-label="Meetings list" id="all-list" class="col-md-12" style="">
                    <div id="ctl00_MainContent_MeetingTypeList">
                      <input type="hidden" name="ctl00$MainContent$IsFilter" id="ctl00_MainContent_IsFilter" value="0">
                      <input type="hidden" name="ctl00$MainContent$scrollIndexer" id="ctl00_MainContent_scrollIndexer" value="1">
                      <a id="ctl00_MainContent_btnShowMore" class="d-none" href="javascript:__doPostBack('ctl00$MainContent$btnShowMore','')">Show More</a>
                      <span id="ctl00_MainContent_meetingsPaging"></span>
                    </div>
                  </div>
                  <div role="region" aria-label="Search result" id="searchresults" class="col-md-12" style="display: none;">
                    <div class="ms-WPBody noindex" style="width: 100%">
                      <div class="srch-results">
                        <table id="searchTableTemp" style="background-color:dimgrey; color:white; border: none; width: 100%; word-wrap: break-word; word-break: break-word; display:none;">
                          <thead>
                            <tr>
                              <th style="float:left; padding-left: 5px;">Name</th>
                              <th>Date</th>
                              <th>Document Type</th>
                            </tr>
                          </thead>
                        </table>
                        <table id="searchTable" style="border: none; width: 100%; word-wrap: break-word; word-break: break-word;">
                          <thead>
                            <tr style="display: none;">
                            </tr>
                          </thead>
                        </table>
                      </div>
                    </div>
                  </div>
                  <div role="region" aria-label="Registered Conflicts" id="all-conflicts-list" class="col-md-12" style="display: none;">
                    <table id="table-conflicts-list" role="grid" style="width: 100%; word-wrap: break-word; word-break: break-word;">
                      <thead>
                        <tr role="row">
                          <th class="tablepadding" scope="col" style="width:24%" id="conflict"> Member</th>
                          <th class="tablepadding" scope="col" style="width:24%" id="meetingType"> Meeting Type</th>
                          <th class="tablepadding" scope="col" style="width:24%" id="meetingDate"> Meeting Date</th>
                          <th class="tablepadding" scope="col" style="width:20%" id="agendaItem"> Agenda Item</th>
                          <th class="tablepadding" scope="col" style="width:8%" id="viewRegConflict"><span style="visibility: hidden; display:none;">Conflicts Icon</span>Conflict</th>
                        </tr>
                      </thead>
                    </table>
                  </div>
                  <div id="all-legislation-list" role="region" aria-label="Legislation History" class="col-md-12" style="display: none;">
                    <style type="text/css">
                      #table-legislation-list th {
                        text-align: left;
                      }

                      .LegislationHeader .input-group-append {
                        top: 2px !important;
                      }

                      .LegislationHeader .searchtable {
                        position: relative;
                      }

                      .LegislationHeader .input-group-append {
                        position: absolute;
                        display: block;
                        top: 8px;
                        right: 10px;
                        background: none !important;
                      }

                      .vertical-middle {
                        vertical-align: middle !important;
                      }

                      .txtDocumentType {
                        border-top-right-radius: 5px;
                        border-bottom-right-radius: 5px;
                      }

                      .vertical-middle {
                        vertical-align: middle !important;
                      }

                      .txtDocumentType {
                        border-top-right-radius: 5px;
                        border-bottom-right-radius: 5px;
                      }
                    </style>
                    <table id="table-legislation-list-no-longer-use" class="list" role="grid" style="width: 100%; word-wrap: break-word; word-break: break-word;">
                      <thead>
                        <tr role="row">
                          <th id="legislation-icon-th" aria-label="file icon" scope="col" style="width: 5%" class="no-sort"><span style="visibility: hidden">legislation icon</span></th>
                          <th id="legislation-number-th" class="legWordWrap tablepadding link" scope="col"> Number </th>
                          <th id="legislation-text-th" class="legWordWrap tablepadding" scope="col" style="width: 33%"> Legislative Text </th>
                          <th id="legislation-department-th" class="legWordWrap tablepadding" scope="col" style="width: 15%"> Department </th>
                          <th id="legislation-stage-th" class="legWordWrap tablepadding" scope="col"> Stage </th>
                          <th id="legislation-status-th" class="legWordWrap tablepadding" scope="col"> Status </th>
                        </tr>
                      </thead>
                    </table>
                  </div>
                  <div id="agendaitemhistory-list" role="region" aria-label="Agenda Item History" class="col-md-12" style="display: none;">
                    <style type="text/css">
                      #table-agendaitemhistory-list th {
                        text-align: left;
                      }

                      .AgendaItemHistoryHeader .input-group-append {
                        top: 2px !important;
                      }

                      .AgendaItemHistoryHeader .searchtable {
                        position: relative;
                      }

                      .AgendaItemHistoryHeader .input-group-append {
                        position: absolute;
                        display: block;
                        top: 8px;
                        right: 10px;
                        background: none !important;
                      }
                    </style>
                    <table id="table-agendaitemhistory-list" class="list" role="grid" style="width: 100%; word-wrap: break-word; word-break: break-word;">
                      <thead>
                        <tr role="row">
                          <th id="agendaitemhistory-number-th" class="legWordWrap tablepadding link" scope="col"> Number </th>
                          <th id="agendaitemhistory-text-th" class="legWordWrap tablepadding" scope="col" style="width: 33%"> Title </th>
                          <th id="agendaitemhistory-department-th" class="legWordWrap tablepadding" scope="col"> Department </th>
                          <th id="agendaitemhistory-meetingtype-th" class="legWordWrap tablepadding" scope="col"> Meeting Type </th>
                          <th id="agendaitemhistory-meetingdate-th" class="legWordWrap tablepadding" scope="col"> Meeting Date </th>
                          <th id="agendaitemhistory-stage-th" class="legWordWrap tablepadding" scope="col"> Stage </th>
                          <th id="agendaitemhistory-status-th" class="legWordWrap tablepadding" scope="col"> Status </th>
                        </tr>
                      </thead>
                    </table>
                  </div>
                  <div id="all-merged-list" class="col-md-12" style="">
                    <div id="merged-list" class="table-responsive dataTable no-footer" style="width: 100%;">
                      <div role="region" aria-label="List of Upcoming Meetings" class="upcoming-meetings"> There are no upcoming meetings </div>
                    </div>
                    <div id="lazyLoadContainer">
                      <span id="loadMoreMeetings" tabindex="0" style="display: none;">Click here to see more meetings</span>
                    </div>
                    <div class="past-meetings-region" role="region" aria-label="List of Past Meetings">
                      <div class="row">
                        <div class="col-md-12 xtra-lists">
                          <h2 id="PastMeetingTitle" class="pull-left">Past Meetings</h2>
                          <div class="pull-right" style="margin-bottom: 1.5em">
                            <select class="YearFilterOption" aria-label="Select Year">
                              <option data-year="0"> All&nbsp;(0) </option>
                            </select>
                          </div>
                        </div>
                      </div>
                      <div class="past-meetings" id="PastMeetingTypesAccordian"> There are no past meetings </div>
                    </div>
                  </div>
                </div>
              </div>
            </div>
          </div>
        </div>
        <div id="fullCalModal" aria-hidden="true" aria-label="meeting details popup" role="dialog" class="modal fade">
          <div class="modal-dialog">
            <div class="modal-content">
              <div id="modelHeader" class="modal-header">
                <button id="closeCalModal" type="button" class="close" data-dismiss="modal"><span aria-hidden="true">×</span> <span class="sr-only">Close meeting details</span></button>
              </div>
              <div id="modalBody" class="modal-body">
                <div class="row calendar-row">
                  <div class="calendar-details">
                    <div class="col-md-6 cal-date-loc">
                      <span id="startDate" class="start-date meeting-date"></span>
                      <div id="desc" class="desc-text" style="word-break:break-word;"></div>
                    </div>
                    <div class="calendar-icons">
                      <span id="shareContainer" class="sharing">
                        <a title="Share" id="shareLink" data-dismiss="modal">

                                        <img id="ctl00_MainContent_Image3" class="imgicon" alt="Share" title="Share" src="Content/img/svg/share-alt.svg" style="height:17px;width:23px;border-width:0px;">

                                    </a>
                      </span>
                      <a id="commentLink" title="Open for Comments" target="_blank" style="color:#454545;" aria-label="undefined. Opens in a new tab/window">

                                    <img id="ctl00_MainContent_Image6" class="imgicon" alt="Open for Comments" title="Open for Comments" src="Content/img/svg/comment-alt.svg" style="height:26px;width:23px;border-width:0px;">
                                <i class="las la-external-link-alt"></i></a>
                      <a class="RTSAcitve link" title="Request to Speak" target="_blank" style="display: none;" aria-label="undefined. Opens in a new tab/window">

                                    <img id="ctl00_MainContent_Image9" class="imgicon" alt="Request to Speak" title="Request to Speak" src="Content/img/svg/microphone-solid.svg" style="height:26px;width:23px;border-width:0px;">
                                <i class="las la-external-link-alt"></i></a>
                      <a id="delegationRequestLink" title="Delegation Request" target="_blank" aria-label="undefined. Opens in a new tab/window">

                                    <img id="ctl00_MainContent_imgDelegation3" class="imgicon" alt="Delegation Request" title="Delegation Request" src="Content/img/DelegationRequests-icon.svg" style="height:26px;width:23px;border-width:0px;">
                                <i class="las la-external-link-alt"></i></a>
                      <!--<a id="eventLink" class="btn btn-primary" target="_blank"><span class="la la-info-circle"></span>&nbsp;View Meetings</a>-->
                    </div>
                    <div id="video-link"></div>
                  </div>
                  <div class="col-md-6" id="MeetingDocuments" aria-label="Meeting documents"></div>
                </div>
              </div>
            </div>
          </div>
        </div>
        <div id="conflictsDetailsModal" aria-hidden="true" role="dialog" aria-label="Member in Conflict" class="modal fade">
          <div class="modal-dialog">
            <div class="modal-content">
              <div id="modelHeaderconflicts" class="modal-header">
                <button type="button" class="close" data-dismiss="modal"><span aria-hidden="true">×</span> <span class="sr-only">close</span></button>
              </div>
              <table id="table-conflicts-details-list" class="table-responsive" role="grid" style="width: 100%; word-wrap: break-word; word-break: break-word; border: 0;">
                <thead>
                  <tr role="row" style="display: none;">
                  </tr>
                </thead>
                <tbody></tbody>
              </table>
            </div>
          </div>
        </div>
        <div id="LegislationDetailsModal" aria-hidden="true" role="dialog" aria-label="Legislative History" class="modal fade">
          <div class="modal-dialog  LegislationDetailsModal" style="width: 60%">
            <div class="modal-content">
              <div class="modal-header">
                <h2 class="modal-title">Details</h2>
                <button type="button" class="close" data-dismiss="modal"><span aria-hidden="true">×</span> <span class="sr-only">close</span></button>
              </div>
              <div class="modal-body">
                <div>
                  <table class="inputtable" style="width: 100%;">
                    <tbody>
                      <tr>
                        <th>Number</th>
                        <td class="LegislationNumberLabel"></td>
                      </tr>
                      <tr>
                        <th>Type</th>
                        <td id="LegislationTypeLabel">Legislation</td>
                      </tr>
                      <tr>
                        <th>Stage</th>
                        <td class="LegislationStageLabel"></td>
                      </tr>
                      <tr>
                        <th>Status</th>
                        <td class="LegislationStatusLabel"></td>
                      </tr>
                      <tr>
                        <th>Department</th>
                        <td id="LegislationDepartmentLabel"></td>
                      </tr>
                      <tr>
                        <th>Legislative Text</th>
                        <td id="LegislationRecommendationLabel"></td>
                      </tr>
                      <tr>
                        <th style="vertical-align: top">Attachments</th>
                        <td>
                          <div>
                            <span id="LegislationDocumentIcon"></span>
                            <a id="LegislationDocumentLink"></a>
                          </div>
                          <div id="LegislationSupportingDocumentsList">
                          </div>
                        </td>
                      </tr>
                    </tbody>
                  </table>
                </div>
                <h3>History</h3>
                <div>
                  <table id="LegislationHistoryTable" class="list dataTable">
                    <thead>
                      <tr>
                        <th id="legislationhistory-stage-th" class="leg-no-break tablepadding">Stage</th>
                        <th id="legislationhistory-meetingtype-th" class="leg-no-break tablepadding">Meeting Type</th>
                        <th id="legislationhistory-meetingdate-th" class="leg-no-break tablepadding">Meeting Date</th>
                        <th id="legislationhistory-number-th" class="leg-no-break tablepadding">Number</th>
                        <th id="legislationhistory-status-th" class="leg-no-break tablepadding">Status</th>
                      </tr>
                    </thead>
                    <tbody class="history"></tbody>
                  </table>
                </div>
              </div>
            </div>
          </div>
        </div>
        <script src="https://cdnjs.cloudflare.com/ajax/libs/moment.js/2.22.2/moment.min.js"></script>
        <link rel="stylesheet" type="text/css" href="https://cdn.datatables.net/1.11.5/css/jquery.dataTables.min.css">
        <div id="AgendaItemDetailsModal" class="modal fade">
          <div class="modal-dialog AgendaItemDetailsModal">
            <div class="modal-content">
              <div class="modal-header">
                <h3 class="modal-title">Details</h3>
                <button type="button" class="close" data-dismiss="modal"><span aria-hidden="true">×</span> <span class="sr-only">close</span></button>
              </div>
              <div class="modal-body">
                <div>
                  <div class="inputform">
                    <label> Title </label>
                    <div class="ItemTitle"></div>
                    <label> Description </label>
                    <div class="description"></div>
                    <label> Category </label>
                    <div class="Category"></div>
                    <label> Number </label>
                    <div class="LegislationNumberLabel"></div>
                    <label>Stage</label>
                    <div class="LegislationStageLabel"></div>
                    <label> Department </label>
                    <div id="LegislationDepartmentLabel"></div>
                    <label style="vertical-align: top"> Attachments </label>
                    <div style="overflow:hidden">
                      <div>
                        <span id="LegislationDocumentIcon"></span>
                        <a id="LegislationDocumentLink"></a>
                      </div>
                      <div id="LegislationSupportingDocumentsList">
                      </div>
                    </div>
                  </div>
                </div>
                <h4 style="margin-top:0.5em">History</h4>
                <div>
                  <table id="LegislationHistoryTable" class="list dataTable">
                    <thead>
                      <tr>
                        <th id="legislationhistory-index-th" class="leg-no-break tablepadding"></th>
                        <th id="legislationhistory-meetingtype-th" class="leg-no-break tablepadding">Meeting Type</th>
                        <th id="legislationhistory-meetingdate-th" class="leg-no-break tablepadding">Meeting Date</th>
                        <th id="legislationhistory-stage-th" class="leg-no-break tablepadding">Stage</th>
                        <th id="legislationhistory-status-th" class="leg-no-break tablepadding">Status</th>
                        <th id="legislationhistory-number-th" class="leg-no-break tablepadding">Number</th>
                        <th id="legislationhistory-vote-th" class="leg-no-break tablepadding">Vote</th>
                      </tr>
                    </thead>
                    <tbody class="history"></tbody>
                  </table>
                </div>
              </div>
            </div>
          </div>
        </div>
        <div id="VoteResultsModal" class="modal fade">
          <div class="modal-dialog VoteResultsModal" style="width: 60%">
            <div class="modal-content">
              <div class="modal-header">
                <h3 class="modal-title">Vote Result</h3>
                <button type="button" class="close" data-dismiss="modal"><span aria-hidden="true">×</span> <span class="sr-only">close</span></button>
              </div>
              <div class="modal-body">
                <div class="Text"></div>
                <div class="Banner"></div>
                <div class="Votes"></div>
              </div>
              <div class="modal-footer">
                <div class="dataTables_wrapper" style="margin:auto">
                  <div class="dataTables_paginate paging_simple_numbers">
                    <span>
                      <a class="paginate_button current" aria-controls="table-conflicts-details-list" data-dt-idx="1" tabindex="0">1</a>
                    </span>
                  </div>
                </div>
              </div>
            </div>
          </div>
        </div>
        <script type="text/javascript">
          function FillVoteResultsDialog(motions, index) {
            var dialog = $("#VoteResultsModal");
            var motion = motions[index];
            // paging //
            {
              var paging = dialog.find(".dataTables_paginate").empty();
              // back links //
              {
                // first link
                var firstlink = $('<a class="paginate_button first">&lt;&lt;</a>').attr("id", "VoteResultsModal-First").attr("aria-controls", "VoteResultsModal").attr("aria-label", "Navigate to First Vote").attr("tabindex", 0).attr("data-dt-idx", 0);
                // previous link //
                var previouslink = $('<a class="paginate_button previous" "">&lt;</a>').attr("id", "VoteResultsModal-Previous").attr("aria-controls", "VoteResultsModal").attr("aria-label", "Navigate to Previous Vote").attr("tabindex", 0).attr(
                  "data-dt-idx", 1);
                if (index == 0) {
                  firstlink.addClass('disabled');
                  firstlink.attr("aria-disabled", "true");
                  previouslink.addClass('disabled');
                  previouslink.attr("aria-disabled", "true");
                } else {
                  firstlink.click(function(e) {
                    e.preventDefault();
                    FillVoteResultsDialog(motions, 0);
                  });
                  previouslink.click(function(e) {
                    e.preventDefault();
                    FillVoteResultsDialog(motions, index - 1);
                  });
                }
                paging.append(firstlink);
                paging.append(previouslink);
              }
              // pages //
              {
                var pages = $("<span>");
                for (var i = 0; i < motions.length; i++) {
                  let buttonindex = i;
                  var link = $('<a class="paginate_button">').attr("aria-controls", "VoteResultsModal").attr("data-dt-idx", i + 2).attr("tabindex", 0).text(i + 1).click(function(e) {
                    FillVoteResultsDialog(motions, buttonindex);
                  })
                  if (i == index) {
                    link.addClass("current")
                  }
                  pages.append(link);
                }
                paging.append(pages);
              }
              // forward links //
              {
                // next link 
                var nextlink = $('<a class="paginate_button next">&gt;</a>').attr("id", "VoteResultsModal-Next").attr("aria-controls", "VoteResultsModal").attr("aria-label", "Navigate to Next Vote").attr("tabindex", 0).attr("data-dt-idx", motions
                  .length + 2);
                // last link
                var lastlink = $('<a class="paginate_button last">&gt;&gt;</a>').attr("id", "VoteResultsModal-Last").attr("aria-controls", "VoteResultsModal").attr("aria-label", "Navigate to Last Vote").attr("tabindex", 0).attr("data-dt-idx", motions
                  .length + 3);
                if (index == motions.length - 1) {
                  nextlink.addClass('disabled');
                  nextlink.attr("aria-disabled", "true");
                  lastlink.addClass('disabled');
                  lastlink.attr("aria-disabled", "true");
                } else {
                  nextlink.click(function(e) {
                    e.preventDefault();
                    FillVoteResultsDialog(motions, index + 1);
                  });
                  lastlink.click(function(e) {
                    e.preventDefault();
                    FillVoteResultsDialog(motions, motions.length - 1);
                  });
                }
                paging.append(nextlink);
                paging.append(lastlink);
              }
            }
            // render motion //
            dialog.find(".Text").text(motion.Text);
            var banner = dialog.find(".Banner");
            banner.text(motion.BannerText);
            switch (motion.BannerColor) {
              case 'green':
                banner.css("background-color", '#21AE52');
                banner.css("color", 'white');
                break;
              case 'red':
                banner.css("background-color", 'red');
                banner.css("color", 'black');
                break;
              default:
                banner.css("background-color", '');
                banner.css("color", '');
                break;
            }
            dialog.find(".Votes").empty()
            // add votes to dialog //
            var votes = {};
            var voteorder = ["Yes", "No", "Abstain", "Absent"];
            $.each(motion.Votes, function(imv, motionvote) {
              if (!votes.hasOwnProperty(motionvote.Vote)) {
                votes[motionvote.Vote] = [];
              }
              if (voteorder.indexOf(motionvote.Vote) == -1) {
                voteorder.push(motionvote.Vote);
              }
              votes[motionvote.Vote].push($("<span>").text(motionvote.UserName));
            });
            $.each(voteorder, function(iv, vote) {
              var container = $("#VoteContainerTemplate").clone();
              if (votes.hasOwnProperty(vote)) {
                container.find(".VoteHeader .count").text(votes[vote].length);
                container.find(".Voters").append(...(votes[vote]));
              }
              container.find(".VoteHeader .Vote").text(vote);
              dialog.find(".Votes").append(container.children());
            });
          }
          // fix for nested motals //
          $(document).ready(function() {
            $(document).on({
              'show.bs.modal': function() {
                var zIndex = 1040 + (10 * $('.modal:visible').length);
                $(this).css('z-index', zIndex);
                setTimeout(function() {
                  $('.modal-backdrop').not('.modal-stack').css('z-index', zIndex - 1).addClass('modal-stack');
                }, 0);
              },
              'hidden.bs.modal': function() {
                if ($('.modal:visible').length > 0) {
                  // restore the modal-open class to the body element, so that scrolling works
                  // properly after de-stacking a modal.
                  setTimeout(function() {
                    $(document.body).addClass('modal-open');
                  }, 0);
                }
              }
            }, '.modal');
          });
        </script>
        <style type="text/css">
          /* flex-grid classes */
          .inputform {
            font-size: 1em;
            display: grid;
            grid-template-columns: 0fr 1fr;
            grid-gap: 10px 10px;
            align-items: baseline;
          }

          @media (max-width: 575px) {
            .inputform {
              grid-template-columns: 1fr;
              grid-gap: 0px;
            }

            .inputform>label,
            .inputform>.row>label {
              margin-top: 20px;
            }
          }

          .inputform>label,
          .inputform>.row>label {
            white-space: nowrap;
            font-size: 1em;
            font-weight: bold;
          }

          .inputform>.row {
            display: contents;
          }

          .inputform>.row>div {
            grid-column: 1 / 3;
          }

          .inputform>.row>label+div {
            grid-column: 2 / 3;
          }

          .inputform label+div>div+div {
            margin-top: 4px;
          }

          /* modal styles */
          .modal-dialog.AgendaItemDetailsModal {
            max-width: 1000px;
          }

          .AgendaItemDetailsModal .modal-content {
            max-height: 90vh;
            overflow: hidden;
          }

          .AgendaItemDetailsModal .modal-content .modal-body {
            overflow-y: auto;
          }

          .AgendaItemDetailsModal .description {
            max-height: 10em;
            overflow-y: auto;
          }

          .VoteResultsModal .Text {
            padding: 2px 0 18px;
          }

          .VoteResultsModal .Banner {
            font-weight: bold;
            padding: 5px;
            text-align: center;
          }

          .Votes .VoteHeader {
            font-weight: bold;
            text-align: center;
            padding: 10px;
          }

          .Votes .Voters {
            display: grid;
            grid-template-columns: 33% minmax(0, 34%) 33%;
            grid-gap: 10px;
            align-items: baseline;
            text-align: center;
            border: 1px solid #f7f7f7;
          }

          h3.modal-title {
            font-size: 17px;
          }

          #LegislationSupportingDocumentsList>div {
            overflow: hidden;
            white-space: nowrap;
            text-overflow: ellipsis;
          }

          #LegislationHistoryTable td {
            cursor: pointer;
          }

          #LegislationHistoryTable tr.selected td {
            border-top: 1px solid black;
            border-bottom: 1px solid black;
          }

          #LegislationHistoryTable tr.selected> :first-child {
            border-left: 1px solid black;
          }

          #LegislationHistoryTable tr.selected> :last-child {
            border-right: 1px solid black;
          }
        </style>
        <div id="VoteContainerTemplate" style="display:none">
          <div>
            <div class="VoteHeader"><span class="Vote"></span> ( <span class="count">0</span> )</div>
            <div class="Voters"></div>
          </div>
        </div>
        <script type="text/javascript">
          var AgendaItemswithHistory = [];
          $("document").ready(function() {
            // add agenda item history links dynamically to the agenda //
            $.each(AgendaItemswithHistory, function(i, v) {
              // remove old icon //
              $(".AgendaItem" + v + " .AgendaItemIcons").find(".AgendaItemHistoryLink").remove();
              // add icon //
              $(".AgendaItem" + v + " .AgendaItemIcons").append($('<a href="">').addClass("AgendaItemHistoryLink").attr("itemid", v).append('<i class="las la-history"></i>'));
            });
            $(".AgendaItemHistoryLink").click(function(e) {
              e.preventDefault();
              AgendaItemHistory.Dialog.Open('', $(this).attr("itemid"));
            });
          });
        </script>
        <!-- Bootstrap Modal -->
        <div id="bootstrapModal" class="modal fade in" role="dialog" aria-hidden="true" style="display: none;">
          <div class="modal-dialog modal-dialog-scrollable">
            <div class="modal-content">
              <div class="modal-header">
                <h2 id="bootstrapModalTitle" class="modal-title" style="font-size: 17px">Title</h2>
                <button type="button" class="close" data-dismiss="modal"><span aria-hidden="true">×</span> <span class="sr-only">close share meeting popup</span></button>
              </div>
              <div id="bootstrapModalBody" class="modal-body" style="padding: 0px">
                <div class="embed-responsive z-depth-1-half" id="modalIframeDiv">
                  <iframe id="modalIframe" title="Share Content Options" class="embed-responsive-item" src="" allowfullscreen=""></iframe>
                </div>
              </div>
              <div class="modal-footer" id="bootstrapModalFooter" style="margin-top: 0;">
              </div>
            </div>
          </div>
        </div>
        <button type="submit" style="display:none;" form="aspnetForm" value="Submit">Submit</button>
      </main>
    </div>
    <!--<script type='text/javascript' src='Scripts\fullcalendar\lib\main.js'></script>-->
    <script>
      var mincount = 20;
      var maxcount = 40;
      var lastScrollTop = 0;
      var isReachMaxRecord = false;
      //comment out fake lazy loading code
      //$(".meetingDetails").slice(40).hide();
      // IsListView.ClientId values //
      var View = {
        set Current(id) {
          $('#ctl00_MainContent_IsListView').val(id);
        },
        get Current() {
          return $('#ctl00_MainContent_IsListView').val();
        }
      }
      var Views = {
        "Calendar": "0",
        "List": "1",
        "Conflicts": "2",
        "Merged": "3",
        "Legislation": "4",
        "AgendaItemHistory": "5"
      }

      function iframeLoaded(iframeHeight) {
        var windowHeight = $(window).height();
        if (iframeHeight > windowHeight) {
          var newHeight = (windowHeight - 185) + "px";
          $('#modalIframeDiv').height(newHeight);
        } else {
          var newHeight = iframeHeight + "px";
          $('#modalIframeDiv').height(newHeight);
        }
      }
      $(window).scroll(function() {
        stickyHeader();
        if ($(window).scrollTop() + window.innerHeight >= $(document).height() - 50) {
          if ($('#btnListView').hasClass("fc-state-active")) {
            var btnShowMoreId = 'ctl00_MainContent_btnShowMore';
            var scrollTop = $(window).scrollTop();
            if (scrollTop > lastScrollTop & !isReachMaxRecord) {
              $('#masterPageHeader').css("overflow-y", "hidden");
              document.getElementById(btnShowMoreId).click();
              //comment out fake lazy loading code
              //$(".meetingDetails").slice(mincount, maxcount).fadeIn(1000);
              //mincount = mincount + 20;
              //maxcount = maxcount + 20;
            }
            lastScrollTop = scrollTop <= 0 ? 0 : scrollTop;
          }
        }
      });
      $(window).resize(function() {
        var parentwidth = $(".parent").width();
        $(".child").width(parentwidth);
      });
      var cachedMeetingsByType = {};
      var SelectedYear = 0;
      var text = {
        View: 'View',
        Cancelled: 'Meeting Cancelled'
      };
      $('.skip-to-content-link').click(function(event) {
        event.preventDefault();
        document.location = window.location.href + "#maincontent";
        let getID = window.location.href;
        history.pushState(null, null, getID.replace('#maincontent', ''));
      });

      function SelectYearOption() {
        var optionSelected = $("option:selected", this);
        //console.log(optionSelected[0].getAttribute("data-year"));
        if (optionSelected.length > 0) {
          var SelectedYearItem = optionSelected[0].getAttribute("data-year");
          SelectedYear = SelectedYearItem;
        } else {
          $("option[data-year=" + SelectedYear + "]").prop("selected", true);
        }
        var emptyYear = true;
        $.each($(".MeetingTypeList"), function(i, v) {
          emptyYear = ($(this).find(".Year" + SelectedYear).text() != '0' ? false : emptyYear);
          if (!emptyYear) {
            return false;
          }
        });
        if (emptyYear) {
          SelectedYear = "0";
        }
        $(".Year, .Year0").hide();
        $(".Year" + SelectedYear).show();
        /*
        if (SelectedYearItem == null || SelectedYearItem.length == 0) {
            $(".SelectedYear").html(SelectedYear + "&nbsp;(0)");
        }
        else {
            $(".SelectedYear").html(SelectedYearItem.text());
        }*/
        $.each($(".MeetingTypeList"), function(i, v) {
          var mt = $(this);
          var head = mt.find(".Year" + SelectedYear);
          if (head == null || head.length == 0 || head.text() == "0") {
            mt.hide();
          } else {
            mt.show();
          }
        });
        var url = window.location.href;
        if (SelectedYear == null || SelectedYear == 0) {
          url = UpdateQuery("Year", '');
        } else {
          url = UpdateQuery("Year", SelectedYear);
        }
        if (window.location.href != url) {
          window.history.pushState('', '', url);
        }
        $("#YearFilterList").hide();
      }
      $(".YearFilterOption").on('change', SelectYearOption);
      $('#PastMeetingTypesAccordian').on('hidden.bs.collapse', function() {
        Size_Changed();
        $('#PastMeetingTypesAccordian .collapse.show').removeClass("show");
      });
      $('#PastMeetingTypesAccordian').on('shown.bs.collapse', function(e) {
        Size_Changed();
        var mt = $(e.target).find(".panel-contents").attr("MeetingType");
        window.history.pushState('', '', UpdateQuery('Expanded', mt));
      });
      $('#PastMeetingTypesAccordian').on('show.bs.collapse', function(e) {
        var mt = $(e.target).find(".panel-contents").attr("MeetingType");
        LoadMeetingType(mt, true);
        $("#PastMeetingTypesAccordian .collapse.in").collapse("hide");
      });
      $('#PastMeetingTypesAccordian').on('hide.bs.collapse', function(e) {
        window.history.pushState('', '', UpdateQuery('Expanded', ''));
      });
      $(".PastMeetingTypesName").click(function(e) {
        e.preventDefault();
      });
      $("[data-toggle-id]").on("shown.bs.collapse", function() {
        target = $("[data-target='" + $(this).attr("data-toggle-id") + "']");
        target.removeClass("collapsed");
      });
      $("[data-toggle-id]").on("hidden.bs.collapse", function() {
        target = $("[data-target='" + $(this).attr("data-toggle-id") + "']");
        target.addClass("collapsed");
      });

      function ShowDownIcon() {
        $("#RightIcon").hide();
        $("#DownIcon").show();
      }

      function ShowRightIcon() {
        $("#RightIcon").show();
        $("#DownIcon").hide();
        $("#DownIcon").css("display", block);
      }

      function LoadMeetingType(mt, render, cb) {
        //$('#ctl00_MainContent_MeetingListUpdateProgress').show();
        var container = $("[MeetingType='" + mt.replace(/'/g, '\\\'') + "']");
        if (!container.hasClass("Loaded" + SelectedYear) && !container.hasClass("Loading" + SelectedYear)) {
          container.addClass("Loading" + SelectedYear);
          $.ajax({
            type: "POST",
            url: "MeetingsCalendarView.aspx/PastMeetings" + window.location.search,
            data: "{type: '" + mt.replace(/'/g, '\\\'') + "'}",
            contentType: "application/json; charset=utf-8",
            dataType: "json",
            success: function(msg) {
              cachedMeetingsByType[mt] = GetMergedMeetings(msg.d, container);
              if (render) {
                container.append(cachedMeetingsByType[mt]);
                lazyLoadAttachments();
                shortenLinkNames();
                container.addClass("Rendered" + SelectedYear);
                SelectYearOption();
              }
              container.addClass("Loaded" + SelectedYear);
              container.removeClass("Loading" + SelectedYear);
              LoadingOverlay.Hide(container.parent());
              if (cb) {
                cb();
              }
            },
            error: function(jqXHR, textStatus, errorThrown) {}
          });
        } else if (render && !container.hasClass("Rendered" + SelectedYear)) {
          container.append(cachedMeetingsByType[mt]);
          container.addClass("Rendered" + SelectedYear);
          SelectYearOption();
        } else {
          if (cb) {
            window.setTimeout(cb, 100);
          }
        }
        //$('#ctl00_MainContent_MeetingListUpdateProgress').hide();
      }
      $(window).on("resize", function() {
        Size_Changed();
      })

      function UpdateQuery(parameter, value) {
        var loc = window.location.search;
        if (loc.length == 0) {
          if (value != null && value.toString().length > 0) {
            return window.location.href + "?" + parameter + "=" + encodeURIComponent(value);
          }
        } else {
          var found = false;
          if (loc[0] == '?') {
            loc = loc.substring(1);
          }
          var params = loc.split('&');
          for (var i = 0; i < params.length; i++) {
            if (params[i].startsWith(parameter + '=')) {
              found = true;
              if (value != null && value.toString().length > 0) {
                params[i] = parameter + '=' + encodeURIComponent(value);
              } else {
                params[i] = '';
              }
            }
          }
          if (found == false && value != null && value.toString().length > 0) {
            params.push(parameter + '=' + value);
          }
          var qs = '';
          for (var i = 0; i < params.length; i++) {
            if (params[i].length > 0) {
              if (qs.length == 0) {
                qs = "?" + params[i];
              } else {
                qs += "&" + params[i];
              }
            }
          }
          return window.location.href.replace("?" + loc, qs);
        }
        return window.location.href;
      }
      SelectYearOption();
      var LoadingOverlay = {
        Show: function(Element) {
          var LoadingDiv = $("<div/>").addClass("LoadingDivOverlay");
          var LoadingDivImage = $("<img src='_layouts/images/gears_anv4.gif'/>").addClass("LoadingDivImage");
          $(Element).append(LoadingDiv, LoadingDivImage);
        },
        Hide: function(Element) {
          $(Element).find(".LoadingDivOverlay, .LoadingDivImage").remove();
        }
      };

      function LoadMeetingTypes(containers) {
        if (containers.length > 0) {
          var mt = $(containers.shift()).attr("MeetingType");
          LoadMeetingType(mt, false, function() {
            LoadMeetingTypes(containers);
          });
        }
      }
      //var mts = $.makeArray($("[MeetingType]"));
      //LoadMeetingTypes(mts);
      function stickyHeader() {
        var sticky = $(".child")[0].offsetTop;
        if (window.pageYOffset > sticky) {
          var parentwidth = $(".parent").width();
          $(".child").width(parentwidth);
          $(".child").addClass("fixed");
        } else {
          $(".child").removeClass("fixed");
          $(".child").removeAttr("style");
        }
      }
      $('.has-clear input[type="text"]').on('input propertychange', function() {
        var $this = $(this);
        var visible = Boolean($this.val());
        $this.siblings('.form-control-clear').toggleClass('hidden', !visible);
      }).trigger('propertychange');
      $('.form-control-clear').click(function() {
        $(this).siblings('input[type="text"]').val('').trigger('propertychange').focus();
        $('#table-conflicts-list').DataTable().search($(this).val()).draw();
      });
      $('.control-clear').click(function() {
        if ($(this).siblings('input[type="text"]')[0].id == 'ctl00_MainContent_FilterByDate') {
          $("#ctl00_MainContent_IsDateFilter").val("0");
        }
        if ($(this).siblings('input[type="text"]').val() != "") {
          $("#ctl00_MainContent_IsChangeFilter").val("1");
        }
        $(this).siblings('input[type="text"]').val('');
      });

      function ResetFilters() {
        deleteCookie("FilterDate");
        deleteCookie("MeetingTypeFilter");
        deleteCookie("Keyword");
        deleteCookie("ConflictMember");
        deleteCookie("ItemHistoryStage");
        deleteCookie("ItemHistoryStatus");
        deleteCookie("ItemHistoryDepartments");
        $('#ctl00_MainContent_MeetingListUpdateProgress').show();
        var url = "";
        if (!location.search || location.search.length <= 0) {
          url = window.location.href;
        } else {
          url = location.search;
        }
        window.open(url, '_self');
      }

      function ChangeFilterFlag() {
        $("#ctl00_MainContent_IsChangeFilter").val("1");
      }

      function ApplyFilterChanges() {
        var selectedTab = getCookie('CurrentTab');
        if ($('#ctl00_MainContent_txtSearch').val() != "" && View.Current != "2") {
          $("#btnFilterResults").click();
        } else if (selectedTab == "conflict") {
          $("#btnFunnelFilterResults").click();
        } else if (selectedTab == 'agendaItemHistory') {
          loadAgendaItemHistoryData(true);
        } else {
          document.getElementById('FilterResults').click();
        }
        $("#ctl00_MainContent_IsChangeFilter").val("0");
        lazyLoadAttachments();
        shortenLinkNames();
      }
    </script>
    <script type="text/javascript">
      function postbackButtonClick() {
        var filterByDate = $('#ctl00_MainContent_FilterByDate').val();
        var filterbyMeetingType = $("#ctl00_MainContent_lblMultiSelect").val();
        var meetingType = [];
        $(".MeetingTypeListbox * .ss-value-text").each(function() {
          meetingType.push($(this).text());
        });
        setCookie("MeetingTypeFilter", meetingType.join("|"));
        var filterByConflictMember = $("#ctl00_MainContent_lbFilterByConflictMember").val();
        if ((filterbyMeetingType != null && filterbyMeetingType.length > 0) || (filterByConflictMember != null && filterByConflictMember.length > 0) || (filterByDate != null && filterByDate !== "")) {
          $("#btnFilter").append("<span class='dot'></span>");
        } else {
          $(".dot").remove();
        }
        if (getCookie('CurrentTab') == 'calendar') {
          $("#calendar").hide();
          $("#cal-list").show();
          $("#all-list").show();
          $("#all-conflicts-list").hide();
          $("#all-legislation-list").hide();
          $("#all-merged-list").hide();
          $("#searchresults").hide();
          $("#btnMergedListView").addClass("fc-state-active");
          $("#btnListView").removeClass("fc-state-active");
          $("#btnCalendarView").removeClass("fc-state-active");
          $("#ctl00_MainContent_MonthMenu").hide();
          $("#mergedListHeader").hide();
          $("#pastHeader").hide();
          $(".LegislationHeader").hide();
        } else if (getCookie('CurrentTab') == 'list') {
          $("#calendar").hide();
          $("#cal-list").show();
          $("#all-list").show();
          $("#all-conflicts-list").hide();
          $("#all-legislation-list").hide();
          $("#all-merged-list").hide();
          $("#searchresults").hide();
          $("#btnListView").addClass("fc-state-active");
          $("#btnMergedListView").removeClass("fc-state-active");
          $("#btnPastView").removeClass("fc-state-active");
          $("#btnCalendarView").removeClass("fc-state-active");
          $("#ctl00_MainContent_MonthMenu").hide();
          $("#mergedListHeader").show();
          $("#pastHeader").hide();
          $(".LegislationHeader").hide();
        } else if (getCookie('CurrentTab') == 'mergedlist') {
          $("#calendar").hide();
          $("#cal-list").show();
          $("#all-list").show();
          $("#all-conflicts-list").hide();
          $("#all-legislation-list").hide();
          $("#all-merged-list").hide();
          $("#searchresults").hide();
          $("#btnMergedListView").addClass("fc-state-active");
          $("#btnListView").removeClass("fc-state-active");
          $("#btnPastView").removeClass("fc-state-active");
          $("#btnCalendarView").removeClass("fc-state-active");
          $("#ctl00_MainContent_MonthMenu").hide();
          $("#mergedListHeader").hide();
          $("#pastHeader").hide();
          $(".LegislationHeader").hide();
        } else if (getCookie('CurrentTab') == 'past') {
          $("#calendar").hide();
          $("#cal-list").show();
          $("#all-list").show();
          $("#all-conflicts-list").hide();
          $("#all-legislation-list").hide();
          $("#all-merged-list").hide();
          $("#merged-list").hide();
          $("#searchresults").hide();
          $("#btnConflictsView").removeClass("fc-state-active");
          $("#btnCalendarView").removeClass("fc-state-active");
          $("#btnListView").removeClass("fc-state-active");
          $("#btnLegislationView").removeClass("fc-state-active");
          $("#btnMergedListView").removeClass("fc-state-active");
          $("#btnPastView").addClass("fc-state-active");
          $("#ctl00_MainContent_MonthMenu").hide();
          $("#mergedListHeader").hide();
          $("#pastHeader").show();
          $(".xtra-lists").css("margin-top", "unset");
          $("#PastMeetingTitle").hide();
          $(".LegislationHeader").hide();
        } else if (getCookie('CurrentTab') == 'conflict') {
          $("#calendar").hide();
          $("#cal-list").show();
          $("#all-list").hide();
          $("#all-conflicts-list").show();
          $("#all-legislation-list").hide();
          $("#all-merged-list").hide();
          $("#searchresults").hide();
          $("#btnConflictsView").addClass("fc-state-active");
          $("#btnCalendarView").removeClass("fc-state-active");
          $("#btnListView").removeClass("fc-state-active");
          $("#btnLegislationView").removeClass("fc-state-active");
          $("#btnMergedListView").removeClass("fc-state-active");
          $("#ctl00_MainContent_MonthMenu").hide();
          $("#mergedListHeader").hide();
          loadConflictData(true);
        } else if (getCookie('CurrentTab') == 'legislation') {
          NavigationTab_Click($("#btnLegislationView"));
        } else if (getCookie('CurrentTab') == 'agendaItemHistory') {
          NavigationTab_Click($("#AgendaItemHistoryViewButton"));
        }
        $("#ctl00_MainContent_IsChangeFilter").val("0");
        $("#btnListView").addClass("fc-state-active");
        $("#btnMergedListView").removeClass("fc-state-active");
        $("#btnPastView").removeClass("fc-state-active");
        $("#btnCalendarView").removeClass("fc-state-active");
        lazyLoadAttachments();
        shortenLinkNames();
        return true;
      }

      function postbackTabClick(View) {
        $(".fc-toolbar-chunk > .fc-button, #btnListView, #btnCalendarView, #btnConflictsView, #btnLegislationView, #btnMergedListView, #AgendaItemHistoryViewButton, #btnPastView").removeClass("fc-state-active").attr("aria-pressed", "false");
        $("#calendar").hide();
        $("#cal-list").hide();
        $("#all-list").hide();
        $("#all-merged-list").hide();
        $("#all-conflicts-list").hide();
        $("#all-legislation-list").hide();
        $("#agendaitemhistory-list").hide();
        $("#searchresults").hide();
        $("#mergedListHeader").hide();
        $(".LegislationHeader").hide();
        $(".AgendaItemHistoryHeader").hide();
        $("#pastHeader").hide();
        $("#FilterByKeyword").hide();
        $("#FilterByConflictMember").hide();
        $("#FilterByStatus").hide();
        $("#FilterByStage").hide();
        $("#FilterByDepartment").hide();
        $("#ctl00_MainContent_MonthMenu").hide();
        $("#btnFilter").show();
        deleteCookie("MeetingTypeFilter");
        if (View == Views.Calendar) {
          $("#btnListView").addClass("fc-state-active");
          $("#btnListView").attr("aria-pressed", "true");
        } else if (View == Views.List) {
          $("#cal-list").show();
          $("#all-list").show();
          $("#mergedListHeader").show();
          $("#btnListView").addClass("fc-state-active");
          $("#btnListView").attr("aria-pressed", "true");
        } else if (View == Views.Conflicts) {
          $("#cal-list").show();
          $("#all-conflicts-list").show();
          $("#FilterByConflictMember").show();
          $("#FilterByKeyword").show();
          $("#btnConflictsView").addClass("fc-state-active");
          $("#btnConflictsView").attr("aria-pressed", "true");
        } else if (View == Views.Legislation) {
          $("#cal-list").show();
          $("#btnFilter").hide();
          $("#all-legislation-list").show();
          $("#btnLegislationView").addClass("fc-state-active");
          $("#btnLegislationView").attr("aria-pressed", "true");
          $(".LegislationHeader").show();
        } else if (View == Views.AgendaItemHistory) {
          $("#cal-list").show();
          $("#agendaitemhistory-list").show();
          $("#AgendaItemHistoryViewButton").addClass("fc-state-active");
          $("#AgendaItemHistoryViewButton").attr("aria-pressed", "true");
          $(".AgendaItemHistoryHeader").show();
          $("#FilterByStatus").show();
          $("#FilterByStage").show();
          $("#FilterByDepartment").show();
        } else if (View == Views.Merged) {
          $("#cal-list").show();
          $("#all-list").show();
          $("#all-merged-list").show();
          $("#merged-list").show();
          $("#btnMergedListView").addClass("fc-state-active");
          $("#btnMergedListView").attr("aria-pressed", "true");
          $("#mergedListHeader").show();
          $("#PastMeetingTitle").show();
        } else if (View == Views.Past) {
          $("#calendar").hide();
          $("#cal-list").show();
          $("#all-list").show();
          $("#all-conflicts-list").hide();
          $("#all-legislation-list").hide();
          $("#all-merged-list").show();
          $("#merged-list").hide();
          $("#searchresults").hide();
          $("#btnConflictsView").removeClass("fc-state-active");
          $("#btnCalendarView").removeClass("fc-state-active");
          $("#btnListView").removeClass("fc-state-active");
          $("#btnLegislationView").removeClass("fc-state-active");
          $("#btnMergedListView").removeClass("fc-state-active");
          $("#btnPastView").addClass("fc-state-active");
          $("#btnPastView").attr("aria-pressed", "true");
          $("#ctl00_MainContent_MonthMenu").hide();
          $("#mergedListHeader").hide();
          $("#pastHeader").show();
          $(".xtra-lists").css("margin-top", "unset");
          $("#PastMeetingTitle").hide();
          $(".LegislationHeader").hide();
        }
        if (View == Views.List || Views.Merged || Views.Past) {
          $("#btnFilter").show();
          $("#FilterByKeyword").hide();
          $("#FilterByConflictMember").hide();
          var filterByDate = $('#ctl00_MainContent_FilterByDate').val();
          var filterbyMeetingType = $("#ctl00_MainContent_lblMultiSelect").val();
          if ((filterbyMeetingType != null && filterbyMeetingType.length > 0) || (filterByDate != null && filterByDate !== "")) {
            $("#btnFilter").append("<span class='dot'></span>");
          } else {
            $(".dot").remove();
          }
        }
        $("#ctl00_MainContent_IsChangeFilter").val("0");
        shortenLinkNames();
        return true;
      }

      function searchEnter(event) {
        if (event.keyCode === 13 && $('#ctl00_MainContent_txtSearch').val() != '') {
          event.preventDefault();
          searchData();
          return true;
        } else return event.keyCode != 13;
      }

      function setCookie(cname, cvalue) {
        document.cookie = cname + "=" + cvalue + ";SameSite=None; Secure";
      }

      function setLongCookie(cname, cvalue) {
        var d = new Date();
        d.setTime(d.getTime() + (3600 * 1000 * 24 * 365 * 10));
        var expires = "expires=" + d.toUTCString();
        document.cookie = cname + "=" + cvalue + ";" + expires + ";path=/;SameSite=None; Secure";
      }

      function getCookie(cname) {
        var name = cname + "=";
        var ca = document.cookie.split(';');
        for (var i = 0; i < ca.length; i++) {
          var c = ca[i];
          while (c.charAt(0) == ' ') {
            c = c.substring(1);
          }
          if (c.indexOf(name) == 0) {
            return c.substring(name.length, c.length);
          }
        }
        return "";
      }

      function deleteCookie(name) {
        document.cookie = name + '=; Path=/; Expires=Thu, 01 Jan 1970 00:00:01 GMT;';
      }
    </script>
    <script type="text/javascript">
      $(document).ready(function() {
        // If no cookie for CurrentTab, set it to DefaultTab. If DefaultTab is not available, then default tab will be calendar
        var cookie = getCookie('CurrentTab').trim().toLowerCase();
        var expanded = getParameterByName("Expanded");
        if (expanded) {
          $(".MeetingTypeNameText").each(function(i, v) {
            if (expanded == v.innerText.trim()) {
              v.click();
            }
          });
        }
        if (cookie == "") {
          var defaultTab = 'mergedlist';
          const queryString = window.location.search;
          const urlParams = new URLSearchParams(queryString);
          if (urlParams.get("CurrentTab") == null) { //this is a backup for when cookies don't work for a client
            cookie = defaultTab.toLowerCase();
          } else {
            cookie = urlParams.get("CurrentTab");
          }
          setCookie('CurrentTab', defaultTab);
        }
        switch (cookie) {
          case "list":
            postbackTabClick(Views.List);
            break;
          case "conflict":
            loadConflictData(true);
            postbackTabClick(Views.Conflicts);
            break;
          case "legislation":
            loadLegislationData(false);
            postbackTabClick(Views.Legislation);
            // legislation filter field //
            $(".LegislationLibrarySearchField input").keyup(function() {
              if (Legislation.DataTable != null) {
                Legislation.DataTable.search($(".LegislationLibrarySearchField input").val()).draw();
              }
            });
            break;
          case "agendaitemhistory":
            loadAgendaItemHistoryData(false);
            postbackTabClick(Views.AgendaItemHistory);
            // agenda item history filter field //
            $(".AgendaItemHistorySearchField input").keyup(function() {
              if (AgendaItemHistory.DataTable != null) {
                AgendaItemHistory.DataTable.search($(".AgendaItemHistorySearchField input").val()).draw();
              }
            });
            break;
          case "mergedlist":
            postbackTabClick(Views.Merged);
            break;
          case "past":
            postbackTabClick(Views.Past);
            break;
          case "calendar":
          default:
            // calendar view, default
            loadCalendarMeetings();
            break;
        }
        Size_Changed();
        if (getCookie('CurrentTab').trim().toLowerCase() == "mergedlist") {
          loadAdditionalItems(5, ".upcoming-meetings", "#loadMoreMeetings", ".meeting-title > *");
        } else {
          $('#lazyLoadContainer').hide();
          $('#loadMoreMeetings').hide();
        }
        RetrieveFilterOptions();
      });

      function getParameterByName(name) {
        var url = window.location.href
        name = name.replace(/[\[\]]/g, '\\$&');
        var regex = new RegExp('[?&]' + name + '(=([^&#]*)|&|#|$)'),
          results = regex.exec(url);
        if (!results) return null;
        if (!results[2]) return '';
        return decodeURIComponent(results[2].replace(/\+/g, ' '));
      }

      function loadLegislationData(filtered) {
        language = {
          "sEmptyTable": "No data available in table",
          "sInfo": "Showing _START_ to _END_ of _TOTAL_ entries",
          "sInfoEmpty": "Showing 0 to 0 of 0 entries",
          "sInfoFiltered": "(filtered from _MAX_ total entries)",
          "sZeroRecords": "No matching records found",
          paginate: {
            previous: '<',
            next: '>',
            first: '<<',
            last: '>>'
          },
          processing: '<div class="loaderPosition"><span class="la la-spinner la-spin loaderDesign"></span></div>'
        };
        Legislation.LoadLegislationData(filtered, language);
      }

      function loadAgendaItemHistoryData(filtered) {
        language = {
          "sEmptyTable": "No data available in table",
          "sInfo": "Showing _START_ to _END_ of _TOTAL_ entries",
          "sInfoEmpty": "Showing 0 to 0 of 0 entries",
          "sInfoFiltered": "(filtered from _MAX_ total entries)",
          "sZeroRecords": "No matching records found",
          paginate: {
            previous: '<',
            next: '>',
            first: '<<',
            last: '>>'
          },
          processing: '<div class="loaderPosition"><i class="la la-spinner la-spin loaderDesign"></i></div>'
        };
        var filterByDate = $('#ctl00_MainContent_FilterByDate').val();
        var filterbyMeetingType = $("#ctl00_MainContent_lblMultiSelect").val();
        var filterbyMeetingTypeIds = "";
        if (filterbyMeetingType) {
          filterbyMeetingTypeIds = filterbyMeetingType.join(',');
        }
        var filterbyMeetingTypeNames = "";
        var filterbyMeetingTypeName = $("[id*=lblMultiSelect] option:selected");
        filterbyMeetingTypeName.each(function() {
          filterbyMeetingTypeNames += $(this).html() + ",";
        })
        var filterByStage = ""; //lbFilterByStage
        if ($("#ctl00_MainContent_lbFilterByStage").val()) {
          filterByStage = $("#ctl00_MainContent_lbFilterByStage").val().join(',');
        }
        var filterByStatus = ""; //lbFilterByStatus
        if ($("#ctl00_MainContent_lbFilterByStatus").val()) {
          filterByStatus = $("#ctl00_MainContent_lbFilterByStatus").val().join(',');
        }
        var filterByDepartmentNames = ""; //lbFilterByDepartment
        if ($("#ctl00_MainContent_lbFilterByDepartment").val()) {
          filterByDepartmentNames = $("#ctl00_MainContent_lbFilterByDepartment").val().join(',');
        }
        if (filterByDate || filterbyMeetingTypeIds || filterByStage || filterByStatus || filterByDepartmentNames) {
          $("#btnFilter").append("<span class='dot'></span>");
          $('.dropdown-toggle i').addClass('filtered');
          $("#ctl00_MainContent_IsChangeFilter").val("0");
        } else {
          $(".dot").remove();
          $('.dropdown-toggle i').removeClass('filtered');
        }
        $('.dropdown-toggle').next().css("display", "none");
        AgendaItemHistory.AgendaItemHistoryView(filtered, language, filterByDate, filterbyMeetingTypeIds, filterbyMeetingTypeNames, filterByStage, filterByStatus, filterByDepartmentNames);
      }

      function loadCalendarMeetings() {
        $("#FilterByKeyword").hide();
        $("#FilterByConflictMember").hide();
        $("#FilterByStatus").hide();
        $("#FilterByStage").hide();
        $("#FilterByDepartment").hide();
        $(".AgendaItemHistoryHeader").hide();
        $("#table-agendaitemhistory-list").hide();
        var currentMonStart = "";
        var currentMonEnd = "";
        var calendarEl = document.getElementById('calendar')
        var calButtons = 'month mergedListViewButton '
        var calendar = new FullCalendar.Calendar(calendarEl, {
          eventDisplay: 'block',
          showNonCurrentDates: false,
          fixedWeekCount: false,
          locale: 'en',
          customButtons: {
            month: {
              text: 'Calendar'
            },
            myCustomButton: {
              text: 'Upcoming'
            },
            myCustomConflictsButton: {
              text: 'Conflicts Registry'
            },
            myCustomAgendaItemHistoryButton: {
              text: "Agenda Item History"
            },
            mergedListViewButton: {
              text: 'List'
            },
            pastViewButton: {
              text: 'Past'
            },
            myCustomLegislationButton: {
              text: 'Legislation'
            }
          },
          headerToolbar: {
            left: 'prev,title,next',
            center: '',
            right: calButtons.trimEnd()
          },
          dayHeaderFormat: {
            weekday: 'long'
          },
          initialView: 'dayGridMonth',
          dayMaxEventRows: 4,
          moreLinkContent: function(args) {
            return (window.location.href.toLowerCase().includes("french") ? "Cliquez pour agrandir (" + args.num + " plus)" : "Click to expand (" + args.num + " more)");
          },
          moreLinkDidMount: function(args) {
            $(args.el).attr("tabIndex", "0");
          },
          contentHeight: 800,
          handleWindowResize: true,
          datesSet: function(dateInfo) {
            $(".fc-prev-button").attr("aria-label", "Previous Month");
            $(".fc-next-button").attr("aria-label", "Next Month");
            if ($('#ctl00_MainContent_StartMonthDate').val() != "" && $('#ctl00_MainContent_EndMonthDate').val() != "") {
              var minDate = moment($('#ctl00_MainContent_StartMonthDate').val()),
                maxDate = moment($('#ctl00_MainContent_EndMonthDate').val());
              if (minDate >= dateInfo.view.start && minDate <= dateInfo.view.end && $('#ctl00_MainContent_IsFilterList').val() == "1") {
                $(".fc-prev-button").prop('disabled', true);
                $(".fc-prev-button").addClass('fc-state-disabled');
                $(".fc-prev-button").css("cursor", "default");
              } else {
                $(".fc-prev-button").removeClass('fc-state-disabled');
                $(".fc-prev-button").prop('disabled', false);
                $(".fc-prev-button").css("cursor", "pointer");
              }
              if (maxDate >= dateInfo.view.start && maxDate <= dateInfo.view.end && $('#ctl00_MainContent_IsFilterList').val() == "1") {
                $(".fc-next-button").prop('disabled', true);
                $(".fc-next-button").addClass('fc-state-disabled');
                $(".fc-next-button").css("cursor", "default");
              } else {
                $(".fc-next-button").removeClass('fc-state-disabled');
                $(".fc-next-button").prop('disabled', false);
                $(".fc-next-button").css("cursor", "pointer");
              }
            }
          },
          events: function(info, successCallback, failureCallback) {
            $.ajax({
              type: "POST",
              contentType: "application/json",
              data: "{'calendarStartDate':'" + info.startStr + "','calendarEndDate':'" + info.endStr + "'}",
              url: "/MeetingsCalendarView.aspx/GetAllMeetings" + window.location.search,
              dataType: "json",
              success: function(data) {
                var events = [];
                $.map(data.d, function(item, i) {
                  var event = new Object();
                  event.id = item.ID;
                  event.allday = false;
                  event.start = new Date(item.StartDate);
                  event.end = new Date(item.EndDate);
                  event.title = decodeHTML(item.MeetingName);
                  event.url1 = item.Url;
                  event.description = item.Description;
                  event.location = item.Location;
                  event.shareUrl = item.ShareUrl;
                  event.meetingType = item.MeetingType;
                  event.className = item.ClassName;
                  event.languageName = item.LanguageName;
                  event.sharing = item.Sharing;
                  event.hasAgenda = item.HasAgenda;
                  event.MeetingDocumentLink = item.MeetingDocumentLink;
                  event.portalId = item.PortalId;
                  event.HasLiveVideo = item.HasLiveVideo;
                  event.HasVideo = item.HasVideo;
                  event.LiveVideoStandAloneLink = item.LiveVideoStandAloneLink;
                  event.HasVideoLivePassed = item.HasVideoLivePassed;
                  event.DelegationRequestLink = item.DelegationRequestLink;
                  event.MeetingPassed = item.MeetingPassed;
                  event.AllowPublicComments = item.AllowPublicComments;
                  event.FormattedStart = item.FormattedStart;
                  event.TimeOverride = item.TimeOverride;
                  event.TimeOverrideFR = item.TimeOverrideFR;
                  event.IsMP3 = item.IsMP3;
                  events.push(event);
                  setTimeout(function() {
                    $(".fc-daygrid-more-link").each(function(i, v) {
                      $(v).keypress(function(e) {
                        if (e.which == 13 || e.which == 32) {
                          $(".fc-daygrid-more-link")[i].click();
                          setTimeout(function() {
                            tabIndexLoop(document.querySelector(".fc-more-popover"), true, $(v));
                            setTimeout(function() {
                              $(".fc-more-popover").first().find(".fc-daygrid-event").first().focus();
                            }, 350);
                          }, 300);
                        }
                      });
                    });
                  }, 500);
                });
                successCallback && successCallback(events);
              },
              error: function(XMLHttpRequest, textStatus, errorThrown) {}
            });
          },
          eventClick: function(eventClickInfo) {
            showCalEvent(eventClickInfo.event, eventClickInfo.el);
          },
          eventDidMount: function(args) {
            var timeSelector = $(args.el).children(".fc-event-main").children(".fc-event-main-frame").children(".fc-event-time");
            $(args.el).popover({
              title: args.event.title,
              content: args.event.extendedProps.FormattedStart,
              trigger: 'hover',
              placement: 'top',
              container: 'body',
            });
            $(args.el).attr("tabIndex", "0");
            $(args.el).attr("aria-label", args.event.extendedProps.FormattedStart + " " + args.event.title);
            $(args.el).attr("role", "button");
            $(args.el).find(".fc-event-time").attr("aria-hidden", "true");
            $(args.el).find(".fc-event-title").attr("aria-hidden", "true");
            $(args.el).keypress(function(e) {
              if (e.which == 13 || e.which == 32) {
                showCalEvent(args.event, args.el);
              }
            });
            var eventTime = timeSelector.text();
            timeSelector.text(eventTime.substr(0, eventTime.length - 2) + " " + eventTime.substr(eventTime.length - 2).toUpperCase());
          },
          eventTimeFormat: {
            hour12: 'True',
            hour: 'numeric',
            minute: '2-digit',
            meridiem: 'short'
          },
          loading: function(bool) {
            if (getCookie('CurrentTab') == 'list') {
              if ($('#all-list').text().indexOf('There are no meetings') > -1) {
                $('#ctl00_MainContent_MeetingListUpdateProgress').show();
              } else {
                $('#ctl00_MainContent_MeetingListUpdateProgress').hide();
              }
            } else {
              if (bool) $('#ctl00_MainContent_MeetingListUpdateProgress').show();
              else $('#ctl00_MainContent_MeetingListUpdateProgress').hide();
            }
          }
        });
        calendar.render();
        $('#calendar').prepend("<h1 class='visuallyhidden'>Calendar View</h1>");
        $(".fc-dayGridMonth-view > table").prepend("<caption class='visuallyhidden'>Calendar containing meetings</caption>");
        $(".fc-toolbar-chunk").first().attr("aria-live", "polite");
        $(".fc-toolbar-chunk").last().attr("role", "group");
        $(".fc-toolbar-chunk").last().attr("aria-label", "event views");
        $('#calendar').show();
        $("#FilterByKeyword").hide();
        $("#FilterByConflictMember").hide();
        $("#calendar > .fc-toolbar > .fc-left > h2").attr("aria-hidden", "true");
        $("#calendar > .fc-toolbar > .fc-left > h2").css("display", "none");
        $("#calendar > .fc-toolbar > .fc-left > h2").before("<h1>" + $("#calendar > .fc-toolbar > .fc-left > h2").text() + "</h1>");
        $(".fc-button-primary").each(function(i, v) {
          $(v).removeClass("fc-button-primary");
          $(v).addClass("fc-state-default");
        });
        $(".fc-month-button").addClass("fc-state-active");
        $(".fc-month-button").attr("aria-pressed", "true");
        $(".fc-mergedListViewButton-button").attr("aria-pressed", "false");
        $(".fc-myCustomButton-button").attr("aria-pressed", "false");
        $(".fc-pastViewButton-button").attr("aria-pressed", "false");
        $(".fc-myCustomConflictsButton-button").attr("aria-pressed", "false");
        $(".fc-myCustomAgendaItemHistoryButton").attr("aria-pressed", "false");
        $(".fc-myCustomLegislationButton").attr("aria-pressed", "false");
      }

      function showCalEvent(event, calEntry) {
        var startDate = new Date(event.start);
        var modalContainer = document.querySelector(".modal-dialog");
        var eventAria = event.title + " " + event.extendedProps.FormattedStart;
        startDate = startDate.format("ddd, MMMM dd, yyyy @ h:mm tt");
        if ($('#modelHeader' > " h2:has('#modalTitle')").length > 0) {
          $('#modalTitle').remove();
        }
        $('#modelHeader').prepend("<h2 id='modalTitle' tabIndex='0' style='font-size: 17px'></h2>");
        $('#modalTitle').html(event.title);
        $("#closeCalModal").on("click", function() {
          calEntry.focus();
        });
        $(document).keydown(function(event) {
          if (event.keyCode == 27) {
            calEntry.focus();
          }
        });
        $('#startDate').text(event.extendedProps.FormattedStart);
        $('#desc').html(event.extendedProps.description);
        if (event.extendedProps.hasAgenda && event.extendedProps.sharing) {
          $('#eventLink').show();
          $('#eventLink').attr('href', href = 'Meeting.aspx?Id=' + event.id + '&lang=' + event.extendedProps.languageName);
          var shareAria = "Share " + eventAria;
          $('#shareContainer').show();
          $('#shareLink').attr('href', event.extendedProps.shareUrl);
          $('#shareLink').attr('aria-label', shareAria);
          $('#shareLink > img').attr('aria-label', shareAria);
          if (event.extendedProps.AllowPublicComments) {
            var commentAria = "Comment on " + eventAria + ". Opens in a new tab/window";
            $('#commentLink').show();
            $('#commentLink').attr('href', href = 'Meeting.aspx?Id=' + event.id + '&lang=' + event.extendedProps.languageName);
            $('#commentLink').attr('aria-label', commentAria);
            $('#commentLink > img').attr('aria-label', commentAria);
          } else {
            $('#commentLink').hide();
          }
        } else {
          $('#eventLink').hide();
          $('#shareContainer').hide();
          $('#shareLink').removeAttr("href");
          $('#commentLink').hide();
          $('#commentLink').removeAttr("href");
        }
        $('#meeting-type').text(event.extendedProps.meetingType);
        if (event.extendedProps.MeetingDocumentLink.length > 0) {
          var lang = window.location.href.toLowerCase().includes("french");
          var meetingDocuments = (event != undefined && event != null ? GetCategorizedMeetingLinks(event, lang, event.extendedProps.MeetingDocumentLink, false) : "");
          $('#MeetingDocuments').html(meetingDocuments);
          $('#MeetingDocuments').show();
          shortenLinkNames();
        } else {
          $('#MeetingDocuments').html("");
        }
        if (event.extendedProps.HasLiveVideo && !event.extendedProps.MeetingPassed && !event.extendedProps.IsMP3) {
          var meetingDocuments = event.extendedProps.LiveVideoStandAloneLink + "<i class='las la-video la-lg'></i>" + "  View Live Stream" + "</a>";
          $('#video-link').html(meetingDocuments);
          $('#video-link').show();
        } else {
          $('#video-link').hide();
        }
        if (event.extendedProps.DelegationRequestLink != "") {
          var delegationAria = "Delegation request for " + eventAria + ". Opens in a new tab/window";
          $('#delegationRequestLink').show();
          $('#delegationRequestLink').attr('href', event.extendedProps.DelegationRequestLink);
          $('#delegationRequestLink').attr('aria-label', delegationAria);
          $('#delegationRequestLink > img').attr('aria-label', delegationAria);
        } else {
          $('#delegationRequestLink').hide();
          $('#delegationRequestLink').removeAttr("href");
        }
        $('#fullCalModal').modal('show');
        $('#fullCalModal').removeAttr('aria-hidden', 'true');
        tabIndexLoop(modalContainer, false, null);
        setTimeout(function() {
          $("#closeCalModal").focus();
        }, 350);
      }
      $(".PastMeetingTypesName").each(function(i, v) {
        $(v).keydown(function(e) {
          var keyCode = e.keyCode || e.which;
          if (keyCode == 38) {
            e.preventDefault();
            $(v).parent().prevAll(":visible:first").children(":first").focus();
          } else if (keyCode == 40) {
            e.preventDefault();
            $(v).parent().nextAll(":visible:first").children(":first").focus();
          } else if (keyCode == 32) {
            e.preventDefault();
            $(v).click();
          }
        });
      });
      lazyLoadAttachments();
      setTimeout(function() {
        $('#searchMeetingType').attr("placeholder", "Optional Filter by Meeting Type search field");
        //$('#searchMeetingType').removeAttr("aria-labelledby");
        $('#searchMeetingType').keydown(function(e) {
          var keyCode = e.keyCode || e.which;
          if (keyCode == 38 || keyCode == 40) {
            $('#searchMeetingType').val($(".ss-highlighted").text());
          }
        });
      }, 1000);

      function lazyLoadAttachments() {
        $(".additional-doc-list").each(function(i, v) {
          if ($($(v).children()).length > 11) {
            loadAdditionalItems(10, v, $(v).find(".loadMoreAttachments"), ".teaserLink");
          } else {
            $(v).find(".loadMoreAttachments").hide();
          }
        });
      }

      function shortenLinkNames() {
        setTimeout(function() {
          $(".teaser").each(function(i, v) {
            var min = 12;
            var parentWidth = $(v).parents('div').width();
            var limit = 0;
            if (parentWidth > 0) {
              limit = $(v).parents('div').width() / 11;
            } else {
              limit = $(".attachment-list").first().width() / 11;
            }
            limit = (limit >= min ? limit : min);
            teaserLink(v, limit);
          });
        }, 150);
      }

      function teaserLink(v, maxlen) {
        var txt = $(v).text().replace("...", "");
        if (txt.length > maxlen) {
          var shortText = txt.substring(0, maxlen) + "<span onclick='$(this).hide();$(this).next().toggle();'>" + "..." + "</span>" + "<span  style='display:none'>" + txt.substring(maxlen, txt.length) + "</span>";
          $(v).html(shortText);
        }
      }

      function loadAdditionalItems(itemsToLoad, container, trigger, postFocus) {
        $(trigger).hide();
        var size_cont = $($(container).children()).length;
        if (size_cont > itemsToLoad) {
          $(container).children().hide();
          $(trigger).show();
          var increment = itemsToLoad;
          $(container).children().slice(0, itemsToLoad).show();
          $(trigger).keypress(function(e) {
            if (e.which == 13) {
              $(trigger).click();
            }
          });
          $(trigger).click(function() {
            itemsToLoad += increment;
            $(container).children().slice(0, itemsToLoad).show();
            if (postFocus) {
              setTimeout(function() {
                $(container).children().eq(itemsToLoad - increment).find(postFocus).focus();
              }, 100);
            }
            if (itemsToLoad >= size_cont) {
              $(trigger).hide();
            } else {
              $(trigger).show();
            }
          });
        }
      }

      function loadConflictData(isFiltered) {
        if ($.fn.DataTable.isDataTable('#table-conflicts-list')) {
          $('#table-conflicts-list').dataTable().fnClearTable();
          $('#table-conflicts-list').dataTable().fnDestroy();
          $('#table-conflicts-list tbody').remove();
        }
        var searchText = $("#ctl00_MainContent_txtFilterByKeyword").val().trim();
        var filterByDate = $('#ctl00_MainContent_FilterByDate').val();
        var filterbyMeetingType = $("#ctl00_MainContent_lblMultiSelect").val();
        var filterbyMeetingTypeIds = "";
        if (filterbyMeetingType != null && filterbyMeetingType != "") {
          filterbyMeetingTypeIds = filterbyMeetingType.join(',');
        }
        var filterByConflictMember = $("#ctl00_MainContent_lbFilterByConflictMember").val();
        var filterByConflictMemberIds = "";
        if (filterByConflictMember != null && filterByConflictMember != "") {
          filterByConflictMemberIds = filterByConflictMember.join(',');
        }
        if ((filterbyMeetingType != null && filterbyMeetingType.length > 0) || (filterByConflictMember != null && filterByConflictMember.length > 0) || (filterByDate != null && filterByDate !== "")) {
          $("#btnFilter").append("<span class='dot'></span>");
        } else {
          $(".dot").remove();
        }
        var filterbyMeetingTypeNames = "";
        var filterbyMeetingTypeName = $("[id*=lblMultiSelect] option:selected");
        filterbyMeetingTypeName.each(function() {
          filterbyMeetingTypeNames += $(this).html() + ",";
        })
        var conflictsTable = $('#table-conflicts-list').DataTable({
          "fnDrawCallback": function(oSettings) {
            $('#viewRegConflict').attr("aria-label", "Member in Conflict");
            $('.dataTables_empty').removeAttr("valign");
            $('.dataTables_empty').css("vertical-align", "top");
            $('.paginate_button:not(.current)').removeAttr('aria-current');
            $('.paginate_button.current').attr("aria-current", "page");
            $('.dataTables_paginate').attr('role', 'region').attr('aria-label', 'pagination');
          },
          "dom": 'rtip',
          "bProcessing": true,
          "stateSave": false,
          "bServerSide": true,
          "autoWidth": false,
          "pagingType": "full_numbers",
          "sAjaxSource": window.location.origin + "/GetSearchData.asmx/GetConflictsData" + window.location.search,
          "fnServerParams": function(aoData) {
            aoData.push({
              "name": "searchText",
              "value": searchText
            });
            aoData.push({
              "name": "filterbyMeetingTypeIds",
              "value": filterbyMeetingTypeIds
            });
            aoData.push({
              "name": "filterByDate",
              "value": filterByDate
            });
            aoData.push({
              "name": "filterByConflictMemberIds",
              "value": filterByConflictMemberIds
            });
            aoData.push({
              "name": "filterbyMeetingTypeNames",
              "value": filterbyMeetingTypeNames
            });
          },
          "columns": [{
            "data": "ConflictMember",
            "orderable": true
          }, {
            "data": "MeetingTypeName",
            "orderable": true
          }, {
            "data": "MeetingStart",
            "orderable": true
          }, {
            "data": "AgendaItem",
            "orderable": true
          }, {
            "data": 'FileIcon',
            "orderable": false
          }],
          "order": [
            [0, "asc"]
          ],
          "columnDefs": [{
            "targets": 0,
            'createdCell': function(td, cellData, rowData, row, col) {
              $(td).attr('headers', 'conflict');
            }
          }, {
            "targets": 1,
            'createdCell': function(td, cellData, rowData, row, col) {
              $(td).attr('headers', 'meetingType');
            }
          }, {
            "targets": 2,
            'createdCell': function(td, cellData, rowData, row, col) {
              $(td).attr('headers', 'meetingDate');
            }
          }, {
            "targets": 3,
            'createdCell': function(td, cellData, rowData, row, col) {
              $(td).attr('headers', 'agendaItem');
            }
          }, {
            "targets": 4,
            'createdCell': function(td, cellData, rowData, row, col) {
              $(td).attr('headers', 'viewRegConflict');
            }
          }],
          language: {
            "sEmptyTable": "No data available in table",
            "sInfo": "Showing _START_ to _END_ of _TOTAL_ entries",
            "sInfoEmpty": "Showing 0 to 0 of 0 entries",
            "sInfoFiltered": "(filtered from _MAX_ total entries)",
            "sZeroRecords": "No matching records found",
            paginate: {
              previous: '<',
              next: '>',
              first: '<<',
              last: '>>'
            },
            aria: {
              paginate: {
                previous: 'previous page',
                next: 'next page',
                first: 'first page',
                last: 'last page'
              }
            },
            processing: '<div class="loaderPosition"><span class="la la-spinner la-spin loaderDesign"></span></div>'
          }
        });
        $('#viewRegConflict').attr("aria-label", "View all registered conflicts for the agenda item");
        if (searchText != "" || filterByDate != "" || filterbyMeetingTypeIds != "" || filterByConflictMemberIds != "") {
          $('.dropdown-toggle i').addClass('filtered');
        } else {
          $('.dropdown-toggle i').removeClass('filtered');
        }
        $('.dropdown-toggle').next().css("display", "none");
        if (isFiltered && getCookie('CurrentTab') == 'list') {
          document.getElementById('FilterResults').click();
          $("#ctl00_MainContent_IsChangeFilter").val("0");
        } else {
          $("#all-list").hide();
          $("#all-conflicts-list").show();
          $("#searchresults").hide();
        }
      }
      $(window).on('load', function() {
        shortenLinkNames();
      });
      $(window).resize(function() {
        shortenLinkNames();
      });
    </script>
    <script type="text/javascript">
      $(".DelegationRequest").click(function(e) {
        e.preventDefault();
        var a = $(this);
        var width = 500;
        var height = 600;
        var left = (screen.width - width) / 2;
        var top = (screen.height - height) / 2;
        window.open(a.attr("href"), '', 'scrollbars=yes,menubar=no,width=' + width + ',height=' + height + ',resizable=yes,toolbar=no,location=no,status=no,top=' + top + ', left=' + left);
      });

      function closeDateRangeFilter() {
        filterbyDepartmentSelect.close()
        filterbyStatusSelect.close()
        filterbyStageSelect.close()
        filterbyConflictMemberSelect.close()
        filterbyMeetingTypeSelect.close()
      }
      //stop calener to misbehave in IE browser
      $("#divDateRangeFilterPopup").click(function(e) {
        e.stopImmediatePropagation();
        closeDateRangeFilter();
      });
    </script>
    <script>
      function NavigationTab_Click() {
        console.log("NavigationTab_Click()");
        $("#btnCalendarView, #btnListView, #btnConflictsView, #btnLegislationView, #btnMergedListView, .fc-myCustomLegislationButton-button, .fc-myCustomAgendaItemHistoryButton-button").removeClass("fc-state-active").attr("aria-pressed", "false");
        $("#calendar").hide();
        $("#cal-list").hide();
        $("#all-list").hide();
        $("#all-conflicts-list").hide();
        $("#all-merged-list").hide();
        $("#all-legislation-list").hide();
        $("#agendaitemhistory-list").hide();
        $("#searchresults").hide();
        $("#downloadIconConflictsList").hide();
        $("#mergedListHeader").hide();
        $("#ctl00_MainContent_MonthMenu").hide();
        $(".fc-left").hide();
        $("#searchresults").hide();
        $("#FilterByKeyword").hide();
        $("#FilterResults").hide();
        $("#FilterByConflictMember").hide();
        $("#downloadIconConflictsList").hide();
        $("#FilterResults").hide();
        $("#btnFunnelFilterResults").hide();
        $("#ctl00_MainContent_MonthMenu").hide();
        $("#mergedListHeader").hide();
        $("#filterIcon").show();
        $(".LegislationHeader").hide();
        $(".AgendaItemHistoryHeader").hide();
        var tab = $(this);
        switch (tab.text().trim()) {
          case "Agenda Item History":
            setCookie('CurrentTab', 'agendaItemHistory');
            View.Current = Views.AgendaItemHistory;
            $("#AgendaItemHistoryViewButton, .fc-myCustomAgendaItemHistoryButton-button").addClass("fc-state-active");
            $("#AgendaItemHistoryViewButton").attr("aria-pressed", "true");
            $("#cal-list").show();
            $("#agendaitemhistory-list").show();
            $(".AgendaItemHistoryHeader").show();
            $("#FilterByKeyword").show();
            break;
          case "Legislation":
            setCookie('CurrentTab', 'legislation');
            View.Current = Views.Legislation;
            $("#btnLegislationView, .fc-myCustomLegislationButton-button").addClass("fc-state-active");
            $("#btnLegislationView").attr("aria-pressed", "true");
            $("#cal-list").show();
            //$("#all-legislation-list").show();
            $("#agendaitemhistory-list").show();
            $("#FilterByKeyword").show();
            //$(".LegislationHeader").show();
            $(".AgendaItemHistoryHeader").show();
            break;
          case 'Upcoming':
            // show list tab elements //
            $("#cal-list").show();
            $("#all-list").show();
            $("#btnListView").addClass("fc-state-active");
            $("#btnListView").attr("aria-pressed", "true")
            $("#cal-list").show();
            View.Current = Views.List;
            setCookie('CurrentTab', 'list');
            $("#ctl00_MainContent_MonthMenu").show();
            if ($("#ctl00_MainContent_IsMonthChange").val() == "1") {
              $("#ctl00_MainContent_IsMonthChange").val("0");
              document.getElementById('FilterResults').click();
            }
            $("#filterIcon").show();
            $("#FilterResults").show();
            //Set focus on the search bar - no longer need with new accessibility guide
            //document.getElementById('ctl00_MainContent_txtSearch').focus();
            break;
          default:
            $("#filterIcon").show();
        }
      }
      $(".FilterByDate").keydown(function(e) {
        if (e.which != 9) {
          return false;
        }
      });
      $(document).ready(function() {
        var datePickerMessage = (window.location.href.toLowerCase().includes("french") ? "Appuyez sur l'espace pour ouvrir. Veuillez sélectionner une date de début et de fin. Retour arrière pour effacer" :
          "Press space to open. Please select a start and end date. Backspace to clear");
        var daterangepicker = new ej.calendars.DateRangePicker({
          placeholder: datePickerMessage,
          dayHeaderFormat: "Abbreviated",
          keyConfigs: {
            altDownArrow: "space"
          },
          format: 'M/d/yyyy',
          close: function() {
            setTimeout(function() {
              $('.dropdown-toggle').next().toggle();
            }, 50);
          },
          open: function() {
            setTimeout(function() {
              $('.e-left-calendar > .e-content > table').prepend('<caption class="sr-only"> Select your start date </caption>');
              $('.e-right-calendar > .e-content > table').prepend('<caption class="sr-only"> Select your end date </caption>');
            }, 50);
          }
        });
        $(window).resize(function() {
          if ($(window).width() >= 499) {
            daterangepicker.isMobile = false;
          } else {
            daterangepicker.isMobile = true;
          }
        });
        daterangepicker.appendTo('input[id="ctl00_MainContent_FilterByDate"]');
        $(".daterangepicker").click(function(event) {
          event.preventDefault();
        });
        setTimeout(function() {
          $(".e-input-group-icon.e-range-icon.e-icons").attr("tabIndex", "0");
          $(".e-input-group-icon.e-range-icon.e-icons").attr("aria-label", "Filter by date button");
          $(".e-input-group-icon.e-range-icon.e-icons").keydown(function(e) {
            if (e.which == 13 || e.which == 32) {
              daterangepicker.show();
            } else if (e.keyCode == 27) {
              $('.dropdown-toggle').next().toggle();
            }
          });
          var syncFusionFormLabel = "Date picker icon"
          $(".e-daterange-hidden").each(function(i, v) {
            $(v).attr("id", "datePickerIcon" + i);
            $(v).after('<label for="datePickerIcon' + i + '" class="visuallyhidden">' + syncFusionFormLabel + ' ' + i + '</label>');
          });
        }, 300);
        $(".FilterByDate").keydown(function(e) {
          if (e.which == 8) {
            $(".FilterByDate").val("");
          }
        });
        $('input[id="ctl00_MainContent_FilterByDate"]').keydown(function(e) {
          if (e.keyCode == 27) {
            $('.dropdown-toggle').next().toggle();
          }
        });
        $("body").tooltip({
          placement: 'top',
          selector: ".Location-Tooltip"
        });
        $('.dropdown-toggle').on('click', function(e) {
          $(this).next().toggle();
        });
        $("body").click(function(e) {
          if (!$(e.target).closest(".dropdown-toggle, .dropdown-toggle i,.dropdown-menu, .daterangepicker, .prev, .next").length > 0 && !$('[id^=ctl00_MainContent_FilterByDate_popup]').length) {
            $('.dropdown-toggle').next().css("display", "none");
            if ($("#ctl00_MainContent_IsChangeFilter").val() == "1") {
              ApplyFilterChanges();
            }
          }
        });

        function getTab() {
          var cookie = getCookie('CurrentTab');
          if (cookie == "") {
            var defaultTab = 'mergedlist';
            const queryString = window.location.search;
            const urlParams = new URLSearchParams(queryString);
            if (urlParams.get("CurrentTab") == null) { //this is a backup for when cookies don't work for a client
              cookie = defaultTab.toLowerCase();
            } else {
              cookie = urlParams.get("CurrentTab");
            }
          }
          return cookie;
        }
        var tabCookie = getTab();
        {
          $("#FilterResults").hide();
          $("#btnFilterResults").hide();
          $("#btnFunnelFilterResults").hide();
          if ($('#ctl00_MainContent_txtSearch').val() != "" && tabCookie != "conflict") {
            $("#btnFilterResults").show();
          } else if (tabCookie == "conflict" || tabCookie == "agendaItemHistory") {
            $("#btnFunnelFilterResults").show();
            $("#btnFunnelFilterResults").on('click', function() {
              if (tabCookie == "agendaItemHistory") {
                loadAgendaItemHistoryData(true);
              } else {
                loadConflictData(true);
              }
            });
          } else {
            $("#FilterResults").show();
          }
        }
        $('#ctl00_MainContent_txtSearch').on('input propertychange', function() {
          var cookie = getTab();
          $("#FilterResults").hide();
          $("#btnFilterResults").hide();
          $("#btnFunnelFilterResults").hide();
          if ($(this).val() != "" && cookie != "conflict") {
            $("#btnFilterResults").show();
          } else if (cookie == "conflict") {
            $("#btnFunnelFilterResults").show();
          } else {
            $("#FilterResults").show();
          }
        });
        $('#ctl00_MainContent_txtFilterByKeyword').on('input propertychange', function() {
          $("#ctl00_MainContent_IsChangeFilter").val("1");
        });
        if ($(".ss-search").length > 0) {
          $(".ss-search > input").first().attr("id", "searchMeetingType").attr("aria-labelledby", "searchMeetingType");
          $(".ss-search").first().prepend("<label for='searchMeetingType' class='sr-only'>Optional filter by Meeting Type Search</label>");
          $(".ss-search > input").last().attr("id", "searchConflictMember").attr("aria-labelledby", "searchConflictMember");
          $(".ss-search").last().prepend("<label for='searchConflictMember' hidden>Search </label>");
        }
        //for enabled searching the focus - no longer need with new accessibility guide
        //document.getElementById('ctl00_MainContent_txtSearch').focus();
      });
      //List Functions
      //$("#btnListView").click(NavigationTab_Click);
      $("#all-list .fc-myCustomButton-button").click(function() {
        //$("#cal-list .fc-month-button").click();
        //$("#calendar .fc-myCustomButton-button").click();
      });
      /*
      $("#calendar .fthtfhftf").click(function () {
          NavigationTab_Click();

          $("#all-list").hide();
          $("#all-conflicts-list").show();
          $("#all-legislation-list").hide();
          $("#all-merged-list").hide();
          $(".fc-left").show();
      });*/
      //$(".fc-myCustomLegislationButton-button").click(NavigationTab_Click);
      /*
      $("#calendar .yh4554h45h45h").click(function () {
          NavigationTab_Click();

          $("#all-list").hide();
          $("#all-conflicts-list").hide();
          $("#all-legislation-list").hide();
          $("#all-merged-list").show();
          $(".fc-left").show();
      });*/
      ////$("#all-list .fc-myCustomButton-button").click(function () {
      ////    NavigationTab_Click();
      ////    $("#all-list").show();
      ////    $("#all-conflicts-list").hide();
      ////    $("#all-legislation-list").hide();
      ////    $("#all-merged-list").hide();
      ////    $("#searchresults").hide();
      ////});
      function searchData() {
        SaveFilterOptions();
        $("#searchTableTemp").hide();
        var searchText = $('#ctl00_MainContent_txtSearch').val();
        var filterbyMeetingType = $("#ctl00_MainContent_lblMultiSelect").val();
        var filterByDate = $('#ctl00_MainContent_FilterByDate').val();
        var filterbyMeetingTypeIds = "";
        if ((filterbyMeetingType != null && filterbyMeetingType != null) || (filterByDate != null && filterByDate !== "")) {
          $("#btnFilter").append("<span class='dot'></span>");
          filterbyMeetingTypeIds = filterbyMeetingType.join(',');
        }
        var filterbyMeetingTypeNames = "";
        var filterbyMeetingTypeName = $("[id*=lblMultiSelect] option:selected");
        filterbyMeetingTypeName.each(function() {
          filterbyMeetingTypeNames += $(this).html() + ",";
        });
        var filterByMeetingDocumentTypes = "";
        var filterByExtensions = "";
        var filterByLanguage = "";
        $(".chkMeetingDocuments").each(function() {
          if ($(this).is(":checked")) {
            filterByMeetingDocumentTypes += $(this).val() + ",";
          }
        });
        $(".chkDocumentTypes").each(function() {
          if ($(this).is(":checked")) {
            filterByExtensions += $(this).val() + ",";
          }
        });
        if ($("#hdnIsLanguageFilterOn").val() == "true") {
          $("#languageFilterDv").show();
          $(".chkLanguage").each(function() {
            if ($(this).is(":checked")) {
              filterByLanguage += $(this).val() + ",";
            }
          });
        } else {
          $("#languageFilterDv").hide();
          $(".chkLanguage").each(function() {
            filterByLanguage += $(this).val() + ",";
          });
        }
        if (searchText.trim() != "") {
          NavigationTab_Click();
          $("#searchTable > thead > tr").append("<th></th>");
          if ($.fn.DataTable.isDataTable('#searchTable')) {
            $('#searchTable').dataTable().fnClearTable();
            $('#searchTable').dataTable().fnDestroy();
            $("#searchTable tbody").remove();
          }
          var searchTable = $('#searchTable').dataTable({
            "dom": '<"top"i>rt<"bottom"p><"clear">',
            "pagingType": "full_numbers",
            searching: false,
            "bProcessing": true,
            "bSort": false,
            "drawCallback": function(settings) {
              $("#searchTable thead").remove();
              $("#searchTableTemp").show();
              $("#searchTable_info").closest("#searchTable_wrapper").find("#searchTableTemp").remove();
              $("#searchTable_info").parent().after($("#searchTableTemp")[0].outerHTML);
              $("#searchTableTemp").hide();
              if (!$("#filter-options").is(":visible")) {
                $("#filter-options").show();
                //  $("#filter-meeting-collapse").click();
                // removed condition for filter default behaviour
              }
              $(".srch-grp-table:last").css("border-bottom", "1px solid darkgray");
              if ($("#searchTable tr td:first").hasClass("dataTables_empty")) {
                $("#searchTable_wrapper #searchTableTemp").hide();
              }
            },
            "bServerSide": true,
            "sAjaxSource": "/GetSearchData.asmx/GetSearchMeetingData" + window.location.search,
            "fnServerParams": function(aoData) {
              aoData.push({
                "name": "searchText",
                "value": searchText
              });
              aoData.push({
                "name": "filterbyMeetingTypeIds",
                "value": filterbyMeetingTypeIds
              });
              aoData.push({
                "name": "filterbyMeetingTypeNames",
                "value": filterbyMeetingTypeNames
              });
              aoData.push({
                "name": "filterByDate",
                "value": filterByDate
              });
              aoData.push({
                "name": "filterByMeetingDocumentTypes",
                "value": filterByMeetingDocumentTypes
              });
              aoData.push({
                "name": "filterByExtensions",
                "value": filterByExtensions
              });
              aoData.push({
                "name": "filterByLanguage",
                "value": filterByLanguage
              });
              aoData.push({
                "name": "includeConflicts",
                "value": $("#chkConflicts").prop("checked")
              });
              aoData.push({
                "name": "includeComments",
                "value": $("#chkComments").prop("checked")
              });
            },
            "sServerMethod": "post",
            "aoColumns": [{
              mData: {}
            }],
            language: {
              "sEmptyTable": "No data available in table",
              "sInfo": "Showing _START_ to _END_ of _TOTAL_ entries",
              "sInfoEmpty": "Showing 0 to 0 of 0 entries",
              "sInfoFiltered": "(filtered from _MAX_ total entries)",
              "sZeroRecords": "No matching records found",
              paginate: {
                last: '>',
                first: '<'
              },
              processing: '<div class="loaderPosition"><span class="la la-spinner la-spin loaderDesign"></span></div>'
            }
          });
          $("#calendar").hide();
          $("#all-list").hide();
          $("#all-conflicts-list").hide();
          $("#all-merged-list").hide();
          $("#all-legislation-list").hide();
          $("#cal-list").show();
          $("#btnListView").removeClass("fc-state-active");
          $("#btnConflictsView").removeClass("fc-state-active");
          $("#btnLegislationView").removeClass("fc-state-active");
          $("#searchresults").show();
          if (filterbyMeetingTypeIds != "" || filterByDate != "") {
            $('.dropdown-toggle i').addClass('filtered');
            $("#ctl00_MainContent_IsFilter").val('1');
          } else {
            $('.dropdown-toggle i').removeClass('filtered');
            $("#ctl00_MainContent_IsFilter").val('0');
          }
          $('.dropdown-toggle').next().css("display", "none");
          $("#ctl00_MainContent_MonthMenu").hide();
          $("#mergedListHeader").hide();
          $("#filterIcon").show();
        } else {
          $("#searchresults").hide();
        }
        $("#ctl00_MainContent_IsChangeFilter").val("0");
        return false;
      }
      $(function() {
        Sys.WebForms.PageRequestManager.getInstance().add_endRequest(bindDataTable); // bind data table on every UpdatePanel refresh
      });
      //https://stackoverflow.com/questions/16941104/remove-a-parameter-to-the-url-with-javascript
      function RemoveParam(key, sourceURL) {
        var returnURL = sourceURL.split("?")[0],
          params_arr = [],
          queryString = (sourceURL.indexOf("?") !== -1) ? sourceURL.split("?")[1] : "";
        if (queryString) {
          params_arr = queryString.split("&");
          for (var i = params_arr.length - 1; i >= 0; i -= 1) {
            var param = params_arr[i].split("=")[0];
            if (param === key) {
              params_arr.splice(i, 1);
              break;
            }
          }
          if (params_arr.length) returnURL = returnURL + "?" + params_arr.join("&");
        }
        return returnURL;
      }

      function UpdateQueryString(key, value, url) {
        if (!url) url = window.location.href;
        var re = new RegExp("([?&])" + key + "=.*?(&|#|$)(.*)", "gi"),
          hash;
        if (re.test(url)) {
          if (typeof value !== 'undefined' && value !== null) {
            return url.replace(re, '$1' + key + "=" + value + '$2$3');
          } else {
            hash = url.split('#');
            url = hash[0].replace(re, '$1$3').replace(/(&|\?)$/, '');
            if (typeof hash[1] !== 'undefined' && hash[1] !== null) {
              url += '#' + hash[1];
            }
            return url;
          }
        } else {
          if (typeof value !== 'undefined' && value !== null) {
            var separator = url.indexOf('?') !== -1 ? '&' : '?';
            hash = url.split('#');
            url = hash[0] + separator + key + '=' + value;
            if (typeof hash[1] !== 'undefined' && hash[1] !== null) {
              url += '#' + hash[1];
            }
            return url;
          } else {
            return url;
          }
        }
      }
      $(document).ready(function() {
        $(".fc-month-button").on("click", function() {
          window.parent.postMessage(jQuery('body').height() + 5, "*");
        });
        $(".fc-myCustomButton-button").on("click", function() {
          window.parent.postMessage(jQuery('body').height() + 5, "*");
        });
        $(".fc-myCustomConflictsButton-button").on("click", function() {
          window.parent.postMessage(jQuery('body').height() + 5, "*");
        });
        $(".fc-mergedListViewButton-button").on("click", function() {
          window.parent.postMessage(jQuery('body').height() + 5, "*");
        });
        $(".fc-pastViewButton-button").on("click", function() {
          window.parent.postMessage(jQuery('body').height() + 5, "*");
        });
        $(".fc-myCustomLegislationButton-button").on("click", function() {
          window.parent.postMessage(jQuery('body').height() + 5, "*");
        });
        $(".fc-myCustomAgendaItemHistoryButton-button").on("click", function() {
          window.parent.postMessage(jQuery('body').height() + 5, "*");
        });
        $("button[data-dismiss='modal']").on("click", function() {
          $('#bootstrapModal').attr('aria-hidden', 'true');
          $('#fullCalModal').attr('aria-hidden', 'true');
          $("#conflictsDetailsModal").attr('aria-hidden', 'true');
          $('#LegislationDetailsModal').attr('aria-hidden', 'true');
          $('#MeetingTypeName').remove();
          $('#modalTitle').remove();
        });
        $(document).keydown(function(event) {
          if (event.keyCode == 27) {
            $('#bootstrapModal').modal('hide').attr('aria-hidden', 'true');
            $('#fullCalModal').modal('hide').attr('aria-hidden', 'true');
            $('#conflictsDetailsModal').modal('hide').attr('aria-hidden', 'true');
            $('#LegislationDetailsModal').modal('hide').attr('aria-hidden', 'true');
            $('#MeetingTypeName').remove();
            $('#modalTitle').remove();
          } else if (event.keyCode == 13) {
            event.preventDefault(); // to fix the issue occuring on select/unselect checkbox and hiting enter will refresh the page(site)
          }
        });
        $(".fc-month-button").on("click", function() {
          setCookie('CurrentTab', 'calendar');
          var cleanURL = RemoveParam("Expanded", window.location.href);
          if (getCookie("CurrentTab") == "") {
            document.location.href = UpdateQueryString("CurrentTab", "calendar", cleanURL);
          } else {
            document.location.href = cleanURL;
          }
        });
        $(".fc-myCustomButton-button").on("click", function() {
          setCookie('CurrentTab', 'list');
          var cleanURL = RemoveParam("Expanded", window.location.href);
          if (getCookie("CurrentTab") == "") {
            document.location.href = UpdateQueryString("CurrentTab", "list", cleanURL);
          } else {
            document.location.href = cleanURL;
          }
        });
        $(".fc-myCustomConflictsButton-button").on("click", function() {
          setCookie('CurrentTab', 'conflict');
          var cleanURL = RemoveParam("Expanded", window.location.href);
          if (getCookie("CurrentTab") == "") {
            document.location.href = UpdateQueryString("CurrentTab", "conflict", cleanURL);
          } else {
            document.location.href = cleanURL;
          }
        });
        $(".fc-mergedListViewButton-button").on("click", function() {
          setCookie('CurrentTab', 'mergedlist');
          var cleanURL = RemoveParam("Expanded", window.location.href);
          if (getCookie("CurrentTab") == "") {
            document.location.href = UpdateQueryString("CurrentTab", "mergedlist", cleanURL);
          } else {
            document.location.href = cleanURL;
          }
        });
        $(".fc-pastViewButton-button").on("click", function() {
          setCookie('CurrentTab', 'past');
          var cleanURL = RemoveParam("Expanded", window.location.href);
          if (getCookie("CurrentTab") == "") {
            document.location.href = UpdateQueryString("CurrentTab", "past", cleanURL);
          } else {
            document.location.href = cleanURL;
          }
        });
        $(".fc-myCustomLegislationButton-button").on("click", function() {
          setCookie('CurrentTab', 'legislation');
          var cleanURL = RemoveParam("Expanded", window.location.href);
          if (getCookie("CurrentTab") == "") {
            document.location.href = UpdateQueryString("CurrentTab", "legislation", cleanURL);
          } else {
            document.location.href = cleanURL;
          }
        });
        $(".fc-myCustomAgendaItemHistoryButton-button").on("click", function() {
          setCookie('CurrentTab', 'agendaItemHistory');
          var cleanURL = RemoveParam("Expanded", window.location.href);
          if (getCookie("CurrentTab") == "") {
            document.location.href = UpdateQueryString("CurrentTab", "agendaItemHistory", cleanURL);
          } else {
            document.location.href = cleanURL;
          }
        });
        bindDataTable(); // bind data table on first page load
        $("a[target='_blank']").each(function(i, v) {
          $(v).append("<i class='las la-external-link-alt'></i>");
          $(v).attr("aria-label", function(index, val) {
            return val + '. Opens in a new tab/window'; //i == index, val == original attribute, the id
          });
        })
      });

      function onFilterMeetingDocument(ele) {
        if ($("#filter-meeting-docment").hasClass("show")) {
          $("#filter-meeting-collapse").removeClass("fa fa-caret-down");
          $("#filter-meeting-collapse").addClass("fa fa-caret-right");
        } else {
          $("#filter-meeting-collapse").removeClass("fa fa-caret-right");
          $("#filter-meeting-collapse").addClass("fa fa-caret-down");
        }
      }

      function SaveFilterOptions() {
        var filterByMeetingDocument = "";
        var filterByExtensions = "";
        var filterByLanguage = "";
        $(".common-filter").each(function() {
          if ($(this).is(":checked")) {
            filterByMeetingDocument += $(this).val() + ",";
          }
        });
        $(".chkLanguage").each(function() {
          if ($(this).is(":checked")) {
            filterByLanguage += $(this).val().replace(".", "") + ",";
          }
        });
        var filterCriteria = {
          filterByMeetingDocument,
          filterByLanguage
        };
        deleteCookie("MeetingFilterOptions");
        setCookie("MeetingFilterOptions", JSON.stringify(filterCriteria));
        //sessionStorage.removeItem("MeetingFilterOptions");
        //sessionStorage.setItem("MeetingFilterOptions", JSON.stringify(filterCriteria));
        $("#dvSuccessMessage").show();
        $("#dvSuccessMessage").fadeOut(3000);
        return false;
      }

      function RetrieveFilterOptions() {
        var allFilterOptions = getCookie("MeetingFilterOptions");
        //var allFilterOptions = sessionStorage.getItem("MeetingFilterOptions");
        if (typeof allFilterOptions != "undefined" && allFilterOptions != null && allFilterOptions != "") {
          allFilterOptions = JSON.parse(allFilterOptions)
          var meetingDocumentFilter = allFilterOptions.filterByMeetingDocument;
          meetingDocumentFilter = meetingDocumentFilter.split(',');
          for (var i = 0; i < meetingDocumentFilter.length; i++) {
            var meetingDocumentOptionValue = meetingDocumentFilter[i];
            $(".common-filter").each(function() {
              if ($(this).val().toLowerCase() == meetingDocumentOptionValue.toLowerCase()) {
                $(this).prop("checked", true);
                return false;
              }
            });
          }
          var languageFilter = allFilterOptions.filterByLanguage;
          languageFilter = languageFilter.split(',');
          for (var i = 0; i < languageFilter.length; i++) {
            var languageOptionValue = languageFilter[i];
            $(".chkLanguage").each(function() {
              if ($(this).val().replace("0,", "") == languageOptionValue) {
                $(this).prop("checked", true);
                return false;
              }
            });
          }
        } else {
          if ($("#hdnMeetingDocumentFilter").val() != "") {
            var meetingDocumentFilter = $("#hdnMeetingDocumentFilter").val();
            meetingDocumentFilter = meetingDocumentFilter.split(',');
            for (var i = 0; i < meetingDocumentFilter.length; i++) {
              var meetingDocumentOptionValue = meetingDocumentFilter[i];
              if (meetingDocumentOptionValue != "") {
                $(".common-filter").each(function() {
                  if ($(this).val().toLowerCase() == meetingDocumentOptionValue.toLowerCase()) {
                    $(this).prop("checked", true);
                    return false;
                  }
                });
              }
            }
          }
          if ($("#hdnDocumentTypeFilter").val() != "") {
            var documentTypeFilter = $("#hdnDocumentTypeFilter").val();
            documentTypeFilter = documentTypeFilter.split(',');
            for (var i = 0; i < documentTypeFilter.length; i++) {
              var documentTypeOptionValue = documentTypeFilter[i];
              if (documentTypeOptionValue != "") {
                $(".chkDocumentTypes").each(function() {
                  var chkValue = $(this).val().toLowerCase();
                  chkValue = chkValue.replace(".", "");
                  if (chkValue == documentTypeOptionValue.toLowerCase()) {
                    $(this).prop("checked", true);
                    return false;
                  }
                });
              }
            }
          }
          if ($("#hdnLanguageFilter").val() != "") {
            var languageFilter = $("#hdnLanguageFilter").val();
            languageFilter = languageFilter.split(',');
            for (var i = 0; i < languageFilter.length; i++) {
              var languageOptionValue = languageFilter[i];
              if (languageOptionValue != "") {
                $(".chkLanguage").each(function() {
                  var chkValue = $(this).val();
                  chkValue = chkValue.replace(".", "");
                  if (chkValue.indexOf(languageOptionValue) != -1) {
                    $(this).prop("checked", true);
                    return false;
                  }
                });
              }
            }
          }
        }
      }

      function bindDataTable() {
        {
          if ($('#all-list tbody tr').length > 1) {
            $("#table-list > thead > tr").append("<th scope='col'></th>");
            if ($.fn.DataTable.isDataTable('#table-list')) {
              $('#table-list').dataTable().fnClearTable();
              $('#table-list').dataTable().fnDestroy();
            }
            var meetingsTable = $('#table-list').DataTable({
              "drawCallback": function(settings) {
                $("#table-list thead").remove();
              },
              "dom": '<"clear">',
            });
            $("#meetingList .dataTables_empty").hide();
            $("#meetingList .dataTables_empty").removeAttr("valign");
            $("#meetingList .dataTables_empty").css("vertical-align", "top");
          }
        }
        if ($("#ctl00_MainContent_IsFilter").val() == "1") {
          $('.dropdown-toggle i').addClass('filtered');
        } else {
          $('.dropdown-toggle i').removeClass('filtered');
        }
        $('.dropdown-toggle').next().css("display", "none");
        if ($('#ctl00_MainContent_CurrentMonth').val() == '') {
          $('#btnPreviousMonth').hide();
          $('#btnNextMonth').hide();
          //$('#monthText').css('margin', '0');
        } else {
          $('#btnPreviousMonth').show();
          $('#btnNextMonth').show();
          $('#btnPreviousMonth').css('margin', '0');
        }
        $("#btnPreviousMonth").click(function() {
          var CurrentDate = new Date($('#ctl00_MainContent_CurrentMonth').val());
          CurrentDate.setDate(1);
          CurrentDate.setMonth(CurrentDate.getMonth() - 1);
          var firstDay = new Date(CurrentDate.getFullYear(), CurrentDate.getMonth(), 1);
          var lastDay = new Date(CurrentDate.getFullYear(), CurrentDate.getMonth() + 1, 0);
          //console.log(firstDay.format("MM/dd/yyyy") + " - " + lastDay.format("MM/dd/yyyy"));
          $("#btnFunnelFilterResults").click();
          document.getElementById('FilterResults').click();
          $('#ctl00_MainContent_LastDay').val(lastDay);
        });
        $("#btnNextMonth").click(function() {
          var CurrentDate = new Date($('#ctl00_MainContent_CurrentMonth').val());
          CurrentDate.setDate(1);
          CurrentDate.setMonth(CurrentDate.getMonth() + 1);
          var firstDay = new Date(CurrentDate.getFullYear(), CurrentDate.getMonth(), 1);
          var lastDay = new Date(CurrentDate.getFullYear(), CurrentDate.getMonth() + 1, 0);
          $("#btnFunnelFilterResults").click();
          document.getElementById('FilterResults').click();
          $('#ctl00_MainContent_LastDay').val(lastDay);
        });
        $(".fc-prev-button").click(function() {
          $("#calendar > .fc-toolbar > .fc-left > h1").text($("#calendar > .fc-toolbar > .fc-left > h2").text());
          if ($("#ctl00_MainContent_CurrentMonth").val() != "") {
            var CurrentDate = new Date($("#calendar").fullCalendar('getDate').format());
            var firstDay = new Date(CurrentDate.getFullYear(), CurrentDate.getMonth(), 1);
            var lastDay = new Date(CurrentDate.getFullYear(), CurrentDate.getMonth() + 1, 0);
            //console.log(firstDay.format("MM/dd/yyyy") + " - " + lastDay.format("MM/dd/yyyy"));
            $("#ctl00_MainContent_IsMonthChange").val("1");
          }
        });
        $(".fc-next-button").click(function() {
          $("#calendar > .fc-toolbar > .fc-left > h1").text($("#calendar > .fc-toolbar > .fc-left > h2").text());
          if ($("#ctl00_MainContent_CurrentMonth").val() != "") {
            var CurrentDate = new Date($("#calendar").fullCalendar('getDate').format());
            var firstDay = new Date(CurrentDate.getFullYear(), CurrentDate.getMonth(), 1);
            var lastDay = new Date(CurrentDate.getFullYear(), CurrentDate.getMonth() + 1, 0);
            $("#ctl00_MainContent_IsMonthChange").val("1");
          }
        });
      }
      var prm = Sys.WebForms.PageRequestManager.getInstance();
      if (prm != null) {
        prm.add_endRequest(function(sender, e) {
          $(".DelegationRequest").click(function(e) {
            e.preventDefault();
            var a = $(this);
            var width = 500;
            var height = 600;
            var left = (screen.width - width) / 2;
            var top = (screen.height - height) / 2;
            window.open(a.attr("href"), '', 'scrollbars=yes,menubar=no,width=' + width + ',height=' + height + ',resizable=yes,toolbar=no,location=no,status=no,top=' + top + ', left=' + left);
          });
          if ($('#all-list tbody tr').length > 1) {
            $("#table-list > thead > tr").append("<th scope='col'></th>");
            if ($.fn.DataTable.isDataTable('#table-list')) {
              $('#table-list').dataTable().fnClearTable();
              $('#table-list').dataTable().fnDestroy();
            }
            var meetingsTable = $('#table-list').DataTable({
              "drawCallback": function(settings) {
                $("#table-list thead").remove();
              },
              "dom": '<"clear">',
            });
            $("#meetingList .dataTables_empty").hide()
          }
          var mincount = 20;
          var maxcount = 40;
          //comment out fake lazy loading code
          // $(".meetingDetails").slice(40).hide();
          $(window).scroll(function() {
            stickyHeader();
            if ($(window).scrollTop() + window.innerHeight >= $(document).height() - 50) {
              if (View.Current == Views.List) {
                //comment out fake lazy loading code
                //$(".meetingDetails").slice(mincount, maxcount).fadeIn(1000);
                //mincount = mincount + 20;
                //maxcount = maxcount + 20;
              }
            }
          });
          if ($("#ctl00_MainContent_IsDateFilter").val() == "0") {
            //$("#ctl00_MainContent_FilterByDate").val("");
          }
          if ($('#ctl00_MainContent_CurrentMonth').val() == '') {
            $('#btnPreviousMonth').hide();
            $('#btnNextMonth').hide();
            //$('#monthText').css('margin', '0');
          } else {
            $('#btnPreviousMonth').show();
            $('#btnNextMonth').show();
            $('#btnPreviousMonth').css('margin', '0');
          }
          $("#btnPreviousMonth").click(function() {
            var CurrentDate = new Date($('#ctl00_MainContent_CurrentMonth').val());
            CurrentDate.setDate(1);
            CurrentDate.setMonth(CurrentDate.getMonth() - 1);
            var firstDay = new Date(CurrentDate.getFullYear(), CurrentDate.getMonth(), 1);
            var lastDay = new Date(CurrentDate.getFullYear(), CurrentDate.getMonth() + 1, 0);
            //console.log(firstDay.format("MM/dd/yyyy") + " - " + lastDay.format("MM/dd/yyyy"));
            $("#btnFunnelFilterResults").click();
            document.getElementById('FilterResults').click();
            $('#ctl00_MainContent_LastDay').val(lastDay);
          });
          $("#btnNextMonth").click(function() {
            var CurrentDate = new Date($('#ctl00_MainContent_CurrentMonth').val());
            CurrentDate.setDate(1);
            CurrentDate.setMonth(CurrentDate.getMonth() + 1);
            var firstDay = new Date(CurrentDate.getFullYear(), CurrentDate.getMonth(), 1);
            var lastDay = new Date(CurrentDate.getFullYear(), CurrentDate.getMonth() + 1, 0);
            console.log(firstDay.format("MM/dd/yyyy") + " - " + lastDay.format("MM/dd/yyyy"));
            $("#btnFunnelFilterResults").click();
            document.getElementById('FilterResults').click();
            $('#ctl00_MainContent_LastDay').val(lastDay);
          });
        });
      };
      var filterbyMeetingTypeSelect = new SlimSelect({
        select: '#ctl00_MainContent_lblMultiSelect',
        placeholder: 'Select Data'
      });
      var filterbyConflictMemberSelect = new SlimSelect({
        select: '#ctl00_MainContent_lbFilterByConflictMember',
        placeholder: 'Select Data'
      });
      var filterbyStageSelect = new SlimSelect({
        select: '#ctl00_MainContent_lbFilterByStage',
        placeholder: 'Select Data'
      });
      var filterbyStatusSelect = new SlimSelect({
        select: '#ctl00_MainContent_lbFilterByStatus',
        placeholder: 'Select Data'
      });
      var filterbyDepartmentSelect = new SlimSelect({
        select: '#ctl00_MainContent_lbFilterByDepartment',
        placeholder: 'Select Data'
      });

      function openConflictDetails(agendaItemId, meetingId, meetingTypeName) {
        $("#modelHeaderconflicts").prepend("<h2 id='MeetingTypeName' tabIndex='0' class='modal-title' aria-hidden='true' style='font-size: 17px'></h2>")
        $("#MeetingTypeName").html(meetingTypeName);
        $.ajax({
          type: "POST",
          contentType: "application/json",
          data: "{'AgendaItemId':'" + agendaItemId + "','MeetingId':'" + meetingId + "'}",
          url: "/MeetingsCalendarView.aspx/AgendaItemConflictsGetAll",
          dataType: "json",
          success: function(data) {
            if (data.d != null && data.d != undefined) {
              $("#table-conflicts-details-list > thead > tr").append("<th scope='col'></th>");
              if ($.fn.DataTable.isDataTable('#table-conflicts-details-list')) {
                $('#table-conflicts-details-list').dataTable().fnClearTable();
                $('#table-conflicts-details-list').dataTable().fnDestroy();
              }
              var conflictDetailsTable = $('#table-conflicts-details-list').DataTable({
                "dom": '<"modal-body"t><"modal-footer"p>',
                "pagingType": "simple_numbers",
                "pageLength": 1,
                "ordering": false,
                "drawCallback": function(settings) {
                  $("#table-conflicts-details-list thead").remove();
                  $('.paginate_button:not(.current)').removeAttr('aria-current');
                  $('.paginate_button.current').attr("aria-current", "page");
                  $('.dataTables_paginate').attr('role', 'region').attr('aria-label', 'pagination');
                },
                language: {
                  paginate: {
                    previous: '<',
                    next: '>'
                  },
                  processing: '<div class="loaderPosition"><span class="la la-spinner la-spin loaderDesign"></span></div>'
                }
              });
              var tblRow = "";
              for (var i = 0; i < data.d.length; i++) {
                var element = data.d[i];
                tblRow = '<table id="AgendaItemConflicts"><tr><td style="width:25%;"><strong>Agenda Item:</strong> </td><td style="width:75%;">' + element.ItemTitle + '</td></tr><tr><td><strong>Member in Conflict:</strong> </td><td>' + element
                  .ConflictMember + '</td></tr><tr><td style="vertical-align: top;"><strong>Reason:</strong> </td><td>' + element.Reason + '</td></tr></table>';
                conflictDetailsTable.row.add([tblRow]).draw();
              }
              $("#conflictsDetailsModal").modal('show');
              $("#conflictsDetailsModal").removeAttr('aria-hidden');
              $("#table-conflicts-details-list_previous").attr("aria-label", "Navigate to Previous Conflict");
              if ($("#table-conflicts-details-list_previous").hasClass("disabled")) {
                $("#table-conflicts-details-list_previous").attr("aria-disabled", "true");
              } else {
                $("#table-conflicts-details-list_previous").attr("aria-disabled", "false");
              }
              $("#table-conflicts-details-list_next").attr("aria-label", "Navigate to Next Conflict");
              if ($("#table-conflicts-details-list_next").hasClass("disabled")) {
                $("#table-conflicts-details-list_next").attr("aria-disabled", "true");
              } else {
                $("#table-conflicts-details-list_next").attr("aria-disabled", "false");
              }
            }
            tabIndexLoop(document.querySelector("#conflictsDetailsModal"), false, null);
            setTimeout(function() {
              $("#modelHeaderconflicts > button").focus();
            }, 350);
          },
          error: function(XMLHttpRequest, textStatus, errorThrown) {}
        });
      }
    </script>
    <style>
      .sharing {
        display: none;
        ;
        float: none !important;
      }

      .conflicts {
        /*need to use !important here. Since, the mobile view from @media override this style for the button*/
        display: none !important;
        ;
      }

      .listView {
        display: none !important;
        ;
      }

      .mergedListView {
        /*need to use !important here. Since, the mobile view from @media override this style for the button*/
        ;
      }

      .calendarView {
        display: none !important;
        ;
      }

      .pastView {
        display: none !important;
        ;
      }
    </style>
    <input type="hidden" name="ctl00$MainContent$IsListView" id="ctl00_MainContent_IsListView" value="0">
    <input type="hidden" name="ctl00$MainContent$IsDateFilter" id="ctl00_MainContent_IsDateFilter" value="0">
    <input type="hidden" name="ctl00$MainContent$IsConflicts" id="ctl00_MainContent_IsConflicts" value="0">
    <input type="hidden" name="ctl00$MainContent$IsMonthChange" id="ctl00_MainContent_IsMonthChange" value="0">
    <input type="hidden" name="ctl00$MainContent$IsChangeFilter" id="ctl00_MainContent_IsChangeFilter" value="0">
    <input type="hidden" name="ctl00$MainContent$hdnMeetingDocumentFilter" id="hdnMeetingDocumentFilter">
    <input type="hidden" name="ctl00$MainContent$hdnDocumentTypeFilter" id="hdnDocumentTypeFilter">
    <input type="hidden" name="ctl00$MainContent$hdnLanguageFilter" id="hdnLanguageFilter">
    <input type="hidden" name="ctl00$MainContent$hdnIsLanguageFilterOn" id="hdnIsLanguageFilterOn">
    <script>
      function Size_Changed() {
        CurrentHeight_Send();
      }

      function CurrentHeight_Send() {
        if (window.parent !== window.self) {
          window.parent.postMessage($('body').height(), "*");
        }
      }

      function Message_Recieved(event) {
        CurrentHeight_Send();
      }
      // Setup the listener.
      if (window.addEventListener) {
        addEventListener("message", Message_Recieved, false);
      } else {
        attachEvent("onmessage", Message_Recieved);
      }
    </script>
    <footer id="footer" style="display: none;">
      <div class="copyright">eSCRIBE Version : 50301700</div>
    </footer>
  </div>
  <script type="text/javascript">
    //<![CDATA[
    Sys.Application.add_init(function() {
      $create(Sys.UI._UpdateProgress, {
        "associatedUpdatePanelId": null,
        "displayAfter": 500,
        "dynamicLayout": true
      }, null, null, $get("ctl00_MainContent_MeetingListUpdateProgress"));
    });
    //]]>
  </script>
</form>

Text Content

Skip to content
Search
Filter By Date

Date picker icon 0Date picker icon 1
Filter By Meeting Type

Select Data

Optional filter by Meeting Type Search
No Results
Filter By Conflict Member

Select Data

No Results
Filter By Stage

Select Data

No Results
Filter By Status

Select Data

No Results
Filter By Department

Select Data

Search
No Results
Filter By Keyword


Reset Filters
Filter Results Filter Results Filter Results


UPCOMING MEETINGS


PAST MEETINGS

Filter Legislation
Filter Legislation
Calendar List Upcoming Past Conflicts Registry
Filter Options:
Meeting Documents:
Agenda Cover Page
Agenda
Addendum
Revised Agenda
Post Agenda
Minutes
Additional Documents
Revised Agenda Cover Page
Also search in:
Conflicts
Public Comments
Document Types:
HTML
PDF
Language:
English
French
Save Filter


Show More

Name Date Document Type



Member Meeting Type Meeting Date Agenda Item Conflicts IconConflict

legislation icon Number Legislative Text Department Stage Status

Number Title Department Meeting Type Meeting Date Stage Status

There are no upcoming meetings
Click here to see more meetings


PAST MEETINGS

All (0)
There are no past meetings
× Close meeting details

× close




DETAILS

× close

Number Type Legislation Stage Status Department Legislative Text Attachments




HISTORY

Stage Meeting Type Meeting Date Number Status


DETAILS

× close
Title

Description

Category

Number

Stage

Department

Attachments


HISTORY

Meeting Type Meeting Date Stage Status Number Vote


VOTE RESULT

× close

1
( 0 )



TITLE

× close share meeting popup


Submit
eSCRIBE Version : 50301700