Advertisement
VladislavNechepaev

Untitled

Feb 16th, 2021
130
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. if (parkingActive) {
  2.         const parkingWrapper = document.createElement("div")
  3.         parkingWrapper.id = "parkingwrapper_" + (index+1)
  4.         parkingWrapper.style.display = "inline-flex"
  5.         const parkingCheckbox = document.createElement("input")
  6.         parkingCheckbox.type = "checkbox"
  7.         parkingCheckbox.id = "parking_" + (index+1)
  8.         const parkingLabel = document.createElement("label")
  9.         parkingLabel.htmlFor = "parking_" + (index+1)
  10.         parkingLabel.innerHTML = "Request parking"
  11.         parkingLabel.style.marginLeft = "5px"
  12.         const parkingCapacity = document.createElement("span")
  13.         parkingCapacity.id = "parkingcapacity_" + (index+1)
  14.         parkingCapacity.style.marginLeft = "5px"
  15.         parkingWrapper.appendChild(parkingCheckbox)
  16.         parkingWrapper.appendChild(parkingLabel)
  17.         parkingWrapper.appendChild(parkingCapacity)
  18.         addLocationWrapper.appendChild(parkingWrapper)
  19.           //parkingWrapper.hidden = true
  20.       }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement