BEGIN:VCALENDAR
VERSION:2.0
PRODID:-//Lough Ree Yacht Club - ECPv4.9.14//NONSGML v1.0//EN
CALSCALE:GREGORIAN
METHOD:PUBLISH
X-WR-CALNAME:Lough Ree Yacht Club
X-ORIGINAL-URL:https://www.lryc.ie
X-WR-CALDESC:Events for Lough Ree Yacht Club
BEGIN:VTIMEZONE
TZID:UTC
BEGIN:STANDARD
TZOFFSETFROM:+0000
TZOFFSETTO:+0000
TZNAME:UTC
DTSTART:20230101T000000
END:STANDARD
END:VTIMEZONE
BEGIN:VEVENT
DTSTART;VALUE=DATE:20230923
DTEND;VALUE=DATE:20230925
DTSTAMP:20260421T155922
CREATED:20230911T134003Z
LAST-MODIFIED:20230920T173135Z
UID:12118-1695427200-1695599999@www.lryc.ie
SUMMARY:The Wega Mermaids Weekend
DESCRIPTION:\n\n\nvar total = 0;\nvar summaryMsg = [];\nthis.statusA=[];\nvar errors = [];\n//Constants\nvar fillToCartURL='https://www.lryc.ie/cart/?fill_cart=';\nfunction calculateTotal() {\n   this.summaryMsg = [];\n   thereAreValidationErrors()\n   if (this.errors.length > 0) {\n      printErrors();\n      return;\n   }\n   disableButton();\n}\nfunction goToCart() {\n   window.location.href = 'www.lryc.ie/cart';\n}\nfunction getEntryProductSingleFleet(){\n   var today = new Date();\n   var dd = today.getDate();\n   var mm = today.getMonth()+1; //January is 0!\n   \n   if (mm === 7 && dd > 18) {\n      return '1657';\n   } else if (mm > 7) {\n      return '1657';\n   }\n   return '1656'\n}\nfunction thereAreValidationErrors(){\n   this.errors = [];\n   var helm = document.getElementsByName("helm");\n   var boatNo = document.getElementsByName("boatNo");\n   var boatName = document.getElementsByName("boatName");    \n   var validation = document.getElementById("validation");\n   validation.innerHTML = "";\n}\nfunction printErrors(){\n    var validation = document.getElementById("validation");\n    for (i = 0; i < errors.length; i++) {\n        validation.innerHTML += (errors[i] + "");\n    }\n}\nfunction createCartButton(){ \n   this.cartHref += "\″ onclick=\"disableButton()\" id=\"goToCheckout\">Add to Cart"\n   var summary = document.getElementById("addToCart").innerHTML = this.cartHref;    \n}\nfunction disableButton(){\n   var goToCheckout = document.getElementById("Next");\n   goToCheckout.disabled = true;\n   goToCheckout.value='Thank you please wait a few moments while we build your entry';\n   printStatus("Clearing Cart");\n   goToCheckout.style.background = "#909090"\n   var xhr = new XMLHttpRequest();\n   xhr.open("GET"\, 'https://www.lryc.ie/?clear-cart'\, true);\n   xhr.setRequestHeader("Content-Type"\, "application/x-www-form-urlencoded; charset=UTF-8");\n    xhr.onload = function () {\n        getTotalBoatEntryFees();\n     };\n     xhr.send();\n}\nfunction getTotalBoatEntryFees(){\n  \n   var boatNo = document.getElementsByName("boatNo");\n  if (boatNo[0].value.length < 1){\n     getTotalOtherFees();\n  }else{\n  printStatus("Entering Boat");\n  var helm = document.getElementsByName("helm");\n  var boatNo = document.getElementsByName("boatNo");\n  var boatName = document.getElementsByName("boatName");\n  var xhr = new XMLHttpRequest();\n  xhr.open("POST"\, 'https://www.lryc.ie/?add-to-cart'\, true);\n  xhr.setRequestHeader("Content-Type"\, "application/x-www-form-urlencoded; charset=UTF-8");\n  xhr.onload = function () {\n    getTotalOtherFees();\n  };\nxhr.send('boatNumber='+boatNo[0].value+'&helm='+helm[0].value+'&boatName='+boatName[0].value+'&quantity=1&add-to-cart=12121');\n }\n} \nfunction getTotalOtherFees(){\n    var sat = document.getElementsByName("numberAdult");\n    var satInt = parseInt(sat[0].value); \n    if (satInt > 0){\n       if(fillToCartURL.slice(-1) !== '=') {\n          this.fillToCartURL+='\,'+satInt+'x10309';\n       } else {\n          this.fillToCartURL+=satInt+'x10309';\n       }\n    }\n    var accomodation = document.getElementsByName("accomodation");\n    if  (accomodation[0].value != "0") {\n          if(accomodation[0].value == "1"){\n             if(fillToCartURL.slice(-1) !== '=') {\n                this.fillToCartURL+='\,1x12137';\n             } else {\n                this.fillToCartURL+='1x12137';\n             }\n          } else {\n             if(fillToCartURL.slice(-1) !== '=') {\n                this.fillToCartURL+='\,1x12136';\n             } else {\n                this.fillToCartURL+='1x12136';\n             }\n          }\n    }\n    fillCheckout();\n}\nfunction fillCheckout() {\n   printStatus("Going to Cart with anything else");\n   window.location.href = fillToCartURL;\n}\nfunction printStatus(newMsg){\n    this.statusA.push(newMsg)\n    var status= document.getElementById("status");\n    status.innerHTML="";\n    for (i = 0; i < this.statusA.length; i++) {\n        status.innerHTML += (this.statusA[i] + "");\n    }\n}\n\n\n\n\n\n1Boat to Enter €50\nBoat Name\n\nHelm\n\n\nSail No\n\n\n\n2Book a meal(s) €25 each\n\n\nNumber of Meals \n1\n2\n3\n4\n5\n6\n7\n8\n\n \n \n\n\n2 Camping/Berthing\n\nPlease select from options below if requiredTents €10Caravans / Vans / Cruisers € 20\n\n\n\n3 Summary\nPlease check that all items needed have been selected correctly. For more information contact sailing@lryc.ie\n\n\n\n\n \n\n\n\n\n\n
URL:https://www.lryc.ie/event/the-wega-mermaids-weekend/
ATTACH;FMTTYPE=image/jpeg:https://www.lryc.ie/wp-content/uploads/2023/08/wega2023.jpg
END:VEVENT
END:VCALENDAR