Public
Edited
Oct 9, 2023
Insert cell
Insert cell
Insert cell
viewof clickbutton = Inputs.button("Υπολογισμός κόστους", {value: undefined, reduce: () => sendData()})
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
validateForm = function(form) {
const name_val = form["Name"].length > 0
const email_val = validator.isEmail(form["Email"])
const phone = form["Telephone"]
const tel_val = (!isNaN(Number(phone))) &&
((phone.toString().slice(0,2) === "69") || (phone.toString().slice(0,1) === "2")) &&
(phone.toString().length === 10)
return name_val && (email_val || tel_val)
}
Insert cell
Insert cell
Insert cell

Purpose-built for displays of data

Observable is your go-to platform for exploring data and creating expressive data visualizations. Use reactive JavaScript notebooks for prototyping and a collaborative canvas for visual data exploration and dashboard creation.
Learn more