x x x
x
Only portrait mode is currently supported - please rotate your device.

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Custom section
CustomCSSflex-direction: column; width: 100%; margin: auto; margin-top: 20px;
ContainerIDmaincontainer
DisableAutoHeighttrue


HTML
<div class="page-banner">
<div class="overlay"> 
<div class="banner-content">
<div class="title">
<p> Resources</p>
</div>
<div class="tabs">
<p class="tab" id="all-tab"> All Resources</p>
<p class="tab" id="bootcamp-tab"> Bootcamp</p>
<!--
<p class="tab" id="boardbusiness-tab"> BoardBusiness OfModel Directors<Canvas</p>
<p class="tab" id="alumnistartup-manual-tab"> Alumni<Startup Manual</p>
<!--
<p  class="tab" id="advisors-tab">STRATEGIC ADVISORS </p>
-->
</div>

</div>

</div>

</div>


Custom section
ClasscardSection cardSectionStyle


Custom section
Classfilter-row


Custom section
Classleft

Filter By


Custom section
Classright


HTML
<style>
  .filters-container {
    list-style-type: none !important;
    padding-inline-start: 0px;
    margin-top: 0;
    display: flex;
  }

  .filter-button {
    margin-right: 20px;
    border: 1px solid var(--primary-color-2);
    border-radius: 5px;
    color: var(--primary-color-2);
    font-weight: 700;
    padding: 10px 15px;
    cursor: pointer;
  }

  .filter-button-selected {
    background: var(--primary-color-2);
    color: var(--secondary-font-color);
  }
</style>

<ul class="filters-container">
  <li id="filter-all" class="filter-button filter-button-selected">All</li>
  <li id="filter-vertical" class="filter-button">Vertical</li>
  <li id="filter-funding" class="filter-button">Funding</li>
  <li id="filter-founded" class="filter-button">Founded</li>
</ul>

<script>
  $("#filter-all").click(() => {
    $("#filter-all").addClass("filter-button-selected");
    $("#filter-vertical").removeClass("filter-button-selected");
    $("#filter-funding").removeClass("filter-button-selected");
    $("#filter-founded").removeClass("filter-button-selected");
  });

  $("#filter-vertical").click(() => {
    $("#filter-all").removeClass("filter-button-selected");
    $("#filter-vertical").addClass("filter-button-selected");
    $("#filter-funding").removeClass("filter-button-selected");
    $("#filter-founded").removeClass("filter-button-selected");
  })

  $("#filter-funding").click(() => {
    $("#filter-all").removeClass("filter-button-selected");
    $("#filter-vertical").removeClass("filter-button-selected");
    $("#filter-funding").addClass("filter-button-selected");
    $("#filter-founded").removeClass("filter-button-selected");
  })

  $("#filter-founded").click(() => {
    $("#filter-all").removeClass("filter-button-selected");
    $("#filter-vertical").removeClass("filter-button-selected");
    $("#filter-funding").removeClass("filter-button-selected");
    $("#filter-founded").addClass("filter-button-selected");
  })
</script>

<!--
<div class="custom-select" style="width:200px;">
  <select>
    <option value="0">Location:</option>
    <option value="1">San Francisco</option>
    <option value="2">New York</option>
    <option value="3">Chicago</option>
  </select>
</div>


<div class="custom-select" style="width:200px;">
  <select>
    <option value="0">Cohort:</option>
    <option value="1">2017</option>
    <option value="2">2018</option>
    <option value="3">2019</option>
	    <option value="4">2020</option>
	    <option value="5">2021</option>
  </select>
</div>
-->



List members pagination
GroupNameashk-companies
Type largeimagewithtextbelow-listmempag
CardURL/display/AN/ORG+Page?company=
UniqueIdentifiermembercards
PreviousButtonTextPrev
CardSubtitleconfluence.position
Limit20
NextButtonTextNext


Custom section
ClasscardSection3 cardSectionStyle


Custom section
Classfilter-row


Custom section
Classleft

Filter By


Custom section
Classright


HTML
<style>
/* The container must be positioned relative: */
.custom-select {
  position: relative;
  margin-right: 20px;
}

.custom-select select {
  display: none; /*hide original SELECT element: */
}

.select-selected {
  /*background-color: DodgerBlue;*/
}

/* Style the arrow inside the select element: */
.select-selected:after {
  position: absolute;
  top: 14px;
  right: 10px;
  width: 0;
  height: 0;
  border: 6px solid transparent;
  border-color: black transparent transparent transparent;
content: '';
}

/* Point the arrow upwards when the select box is open (active): */
.select-selected.select-arrow-active:after {
  border-color: transparent transparent black transparent;
  top: 7px;
}

/* style the items (options), including the selected item: */
.select-items div,.select-selected {
  color: #ffffff;
  padding: 8px 16px;
  border: 1px solid transparent;
  border-color: transparent transparent rgba(0, 0, 0, 0.1) transparent;
  cursor: pointer;
}

/* Style items (options): */
.select-items {
  position: absolute;
  background-color: DodgerBlue;
  top: 100%;
  left: 0;
  right: 0;
  z-index: 99;
}

/* Hide the items when the select box is closed: */
.select-hide {
  display: none;
}

.select-items div:hover, .same-as-selected {
  background-color: rgba(0, 0, 0, 0.1);
}

div.filter-row .left {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.select-selected {
    background: var(--primary-color-2);
    color: var(--secondary-font-color);
    font-family: var(--main-font-family);
    font-size: 15.3px;
    line-height: 1.57;
    letter-spacing: 0.5px;
}

.select-items {
    background: var(--primary-color-2);
}

.select-items div, .select-selected {
    color: var(--secondary-font-color);
    font-family: var(--main-font-family);
    font-size: 15.3px;
    line-height: 1.57;
    letter-spacing: 0.5px;
}

.select-items div:hover, .same-as-selected {background: unset;}

</style>

<div class="custom-select" style="width:200px;">
  <select>
    <option value="0">Location:</option>
	<option value="1">All</option>
    <option value="2">San Francisco</option>
    <option value="3">New York</option>
    <option value="4">Chicago</option>
  </select>
</div>



List members pagination
GroupNameashk-staff
Type largeimagewithtextbelow-listmempag
CardURL/display/AN/ORG+Page/company?company_name=
UniqueIdentifiermembercards3
PreviousButtonTextPrev
CardSubtitleconfluence.position
Limit20
NextButtonTextNext


...

HTML
<!-- Scripts that run the custom selects -->
<script>
var x, i, j, l, ll, selElmnt, a, b, c;
/*look for any elements with the class "custom-select":*/
x = document.getElementsByClassName("custom-select");
l = x.length;
for (i = 0; i < l; i++) {
  selElmnt = x[i].getElementsByTagName("select")[0];
  ll = selElmnt.length;
  /*for each element, create a new DIV that will act as the selected item:*/
  a = document.createElement("DIV");
  a.setAttribute("class", "select-selected");
  a.innerHTML = selElmnt.options[selElmnt.selectedIndex].innerHTML;
  x[i].appendChild(a);
  /*for each element, create a new DIV that will contain the option list:*/
  b = document.createElement("DIV");
  b.setAttribute("class", "select-items select-hide");
  for (j = 1; j < ll; j++) {
    /*for each option in the original select element,
    create a new DIV that will act as an option item:*/
    c = document.createElement("DIV");
    c.innerHTML = selElmnt.options[j].innerHTML;
    c.addEventListener("click", function(e) {
        /*when an item is clicked, update the original select box,
        and the selected item:*/
        var y, i, k, s, h, sl, yl;
        s = this.parentNode.parentNode.getElementsByTagName("select")[0];
        sl = s.length;
        h = this.parentNode.previousSibling;
        for (i = 0; i < sl; i++) {
          if (s.options[i].innerHTML == this.innerHTML) {
            s.selectedIndex = i;
            h.innerHTML = this.innerHTML;
            y = this.parentNode.getElementsByClassName("same-as-selected");
            yl = y.length;
            for (k = 0; k < yl; k++) {
              y[k].removeAttribute("class");
            }
            this.setAttribute("class", "same-as-selected");
            break;
          }
        }
        h.click();
    });
    b.appendChild(c);
  }
  x[i].appendChild(b);
  a.addEventListener("click", function(e) {
      /*when the select box is clicked, close any other select boxes,
      and open/close the current select box:*/
      e.stopPropagation();
      closeAllSelect(this);
      this.nextSibling.classList.toggle("select-hide");
      this.classList.toggle("select-arrow-active");
    });
}
function closeAllSelect(elmnt) {
  /*a function that will close all select boxes in the document,
  except the current select box:*/
  var x, y, i, xl, yl, arrNo = [];
  x = document.getElementsByClassName("select-items");
  y = document.getElementsByClassName("select-selected");
  xl = x.length;
  yl = y.length;
  for (i = 0; i < yl; i++) {
    if (elmnt == y[i]) {
      arrNo.push(i)
    } else {
      y[i].classList.remove("select-arrow-active");
    }
  }
  for (i = 0; i < xl; i++) {
    if (arrNo.indexOf(i)) {
      x[i].classList.add("select-hide");
    }
  }
}
/*if the user clicks anywhere outside the select box,
then close all select boxes:*/
document.addEventListener("click", closeAllSelect);
</script>


HTML
<script>
  $('#all-tab').click(function() {
	    $('#all-tab').css('border-bottom-style', 'solid');
	    $('#bootcamp-tab').css('border-bottom-style', 'unset');
	// Hide all except div 0
	$('div.cardSection#business-tab').css('displayborder-bottom-style', 'flexunset');
	    $('div.cardSection3#startup-manual-tab').css('display', 'none');
});

border-bottom-style', 'unset');
    // Hide all except div 0
    $('div.cardSection').css('display', 'flex');
    $('div.cardSection3').css('display', 'none');
  });
  
  $('#bootcamp-tab').click(function() {
    $('#all-tab').css('border-bottom-style', 'unset');
    $('#bootcamp-tab').css('border-bottom-style', 'solid');
    $('#business-tab').css('border-bottom-style', 'solid');
    $('#startup-manual-tab').css('border-bottom-style', 'solid');
    // Hide all except div 3
    $('div.cardSection').css('display', 'none');
    $('div.cardSection3').css('display', 'flex');
  });

  $('#all-tab').click(function() {
    $('#all-tab').css('border-bottom-style', 'unset');
    $('#bootcamp-tab').css('border-bottom-style', 'unset');
    $('#business-tab').css('border-bottom-style', 'solid');
    $('#startup-manual-tab').css('border-bottom-style', 'unset');
  });
  
  $('#bootcamp-tab').click(function() {
	    $('#all-tab').css('border-bottom-style', 'unset');
	    $('#bootcamp-tab').css('border-bottom-style', 'solidunset');
	// Hide all except div 3
	$('div.cardSection#business-tab').css('displayborder-bottom-style', 'noneunset');
	    $('div.cardSection3#startup-manual-tab').css('displayborder-bottom-style', 'flexsolid');
  });

  </script>