Difference between revisions of "Team:UCSC/NavBar"

Line 99: Line 99:
 
/* Toggle between adding and removing the "show" class to dropdown when the user clicks on the icon */
 
/* Toggle between adding and removing the "show" class to dropdown when the user clicks on the icon */
 
function toggleDropdownTeam() {
 
function toggleDropdownTeam() {
   if ($(window).width() <= 1010) {  
+
   if ($(window).width() <= 1150) {  
 
   var x = document.getElementById("ddTeam");
 
   var x = document.getElementById("ddTeam");
 
   if (x.className === "dropdown-content") {
 
   if (x.className === "dropdown-content") {
Line 110: Line 110:
  
 
function toggleDropdownProject() {
 
function toggleDropdownProject() {
   if ($(window).width() <= 1010) {
+
   if ($(window).width() <= 1150) {
 
   var x = document.getElementById("ddProject");
 
   var x = document.getElementById("ddProject");
 
   if (x.className === "dropdown-content") {
 
   if (x.className === "dropdown-content") {
Line 121: Line 121:
  
 
function toggleDropdownHumanPractices() {
 
function toggleDropdownHumanPractices() {
   if ($(window).width() <= 1010) {
+
   if ($(window).width() <= 1150) {
 
   var x = document.getElementById("ddHumanPractices");
 
   var x = document.getElementById("ddHumanPractices");
 
   if (x.className === "dropdown-content") {
 
   if (x.className === "dropdown-content") {
Line 132: Line 132:
  
 
function toggleDropdownParts() {
 
function toggleDropdownParts() {
   if ($(window).width() <= 1010) {
+
   if ($(window).width() <= 1150) {
 
   var x = document.getElementById("ddParts");
 
   var x = document.getElementById("ddParts");
 
   if (x.className === "dropdown-content") {
 
   if (x.className === "dropdown-content") {

Revision as of 17:51, 17 September 2018