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:20210101T000000
END:STANDARD
END:VTIMEZONE
BEGIN:VEVENT
DTSTART;VALUE=DATE:20210612
DTEND;VALUE=DATE:20210614
DTSTAMP:20260422T092734
CREATED:20210531T135839Z
LAST-MODIFIED:20210601T144705Z
UID:7119-1623456000-1623628799@www.lryc.ie
SUMMARY:420 “Warm Up” Regatta
DESCRIPTION:\n//numericalTotals\nvar total = 0;\n//Summary Strings\nvar summaryMsg = [];\nthis.statusA=[];\n//Arrays\nvar errors = [];\nvar boatCount = 1;\n//Constants\nvar kidsMealFee = 10;\nvar adultMealFee = 15;\n\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 crew = document.getElementsByName("crew");\n   var boatNo = document.getElementsByName("boatNo");\n   var club = document.getElementsByName("club");\n   var declaration = document.getElementById("declaration");\n   if (helm[0].value.length < 3) {\n      this.errors.push("You forgot to enter a helm name")\n   } \n   if (crew[0].value.length < 3) {\n      this.errors.push("You forgot to enter a crew name")\n   }   \n   if (boatNo[0].value.length < 3) {\n      this.errors.push("You forgot to enter a boat number")\n   }    \n   if (club[0].value.length < 3) {\n      this.errors.push("You forgot to enter a club")\n   }\n   if (!declaration.checked) {\n      this.errors.push("Please tick the Declaration Box")\n   }\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        printStatus("Entering Boat");\n        getTotalBoatEntryFees();\n     };\n     xhr.send();\n}\nfunction getTotalBoatEntryFees(){\n  var helm = document.getElementsByName("helm");\n  var crew = document.getElementsByName("crew");\n  var boatNo = document.getElementsByName("boatNo");\n  var club = document.getElementsByName("club");\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    goToCart();\n  };\n  var additionalInfo = ' ';\n  var productId = 3348;\n  xhr.send('boatNumber='+boatNo[0].value+'&helm='+helm[0].value+'&crew='+crew[0].value+'&club='+club[0].value+'&AdditionalInfo='+additionalInfo+'&quantity=1&add-to-cart='+productId);\n} \nfunction getTotalMealFees() {\n   var sunday = document.getElementsByName("selectSundayMeal");\n   var sundayInt = parseInt(sunday[0].value); \n   if (sundayInt>0) {\n      printStatus("Adding Junior Meals");\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         adultMeals();\n      };\n      xhr.send('quantity='+sundayInt+'&add-to-cart=3349');\n   } else {\n       adultMeals();\n   }\n}\nfunction adultMeals() {\n   var sunday = document.getElementsByName("selectAdultMeal");\n   var sundayInt = parseInt(sunday[0].value); \n   if (sundayInt>0) {\n     printStatus("Adding Adult Meals");\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       printStatus("Going to cart");\n       goToCart();\n     };\n     xhr.send('quantity='+sundayInt+'&add-to-cart=3350');\n  } else {\n       goToCart();\n  }\n}\nfunction createSummary(){\n   this.total = 0; \n    this.summaryMsg = [];\n    var kidsMeal= document.getElementsByName("selectSundayMeal");\n    var kidsMealInt = parseInt(kidsMeal[0].value); \n    this.total += (kidsMealInt*kidsMealFee );\n    if (kidsMealInt > 0) {\n        this.summaryMsg.push(kidsMealInt + " x Saturday Junior Meal = €" + kidsMealFee*kidsMealInt  );\n    }\n    var adultsMeal= document.getElementsByName("selectAdultMeal");\n    var adultsMealInt = parseInt(adultsMeal[0].value); \n    this.total += (adultsMealInt*adultMealFee);\n    if (adultsMealInt > 0) {\n        this.summaryMsg.push(adultsMealInt + " x Saturday Adult Meal = €" + adultMealFee*adultsMealInt  );\n    }\n    var fleet = document.getElementsByName("fleet")[0].value;\n    var today = new Date();\n    var dd = today.getDate();\n    var mm = today.getMonth()+1; //January is 0!\n    var entry=50;\n    if (mm === 7 && dd > 18) {\n       entry=60;\n    }\n    if (fleet.length > 0) {\n      var productSum = getEntryProductSingleFleet();\n      if (productSum == '1657') {\n         this.total += 60;\n      } else {\n         this.total += 50;\n      }\n    }\n    var summary = document.getElementById("entrySummary");\n    summary.innerHTML = "";\n    for (i = 0; i < summaryMsg.length; i++) {\n        summary.innerHTML += (summaryMsg[i] + "");\n    }\n   document.getElementById("Total").innerHTML = "€ "+ this.total; \n   document.getElementById("regattaFormTotal").style.display= "block";\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\n1 Declaration\n\n\nRules of the Regatta\n1.1 The regatta will be governed by the rules as defined by The Racing Rules of Sailing.\n1.2 The prescriptions of the Irish National Authority (Irish Sailing) will apply.\n1.3 All relevant class rules will apply.\n1.4 These Rules are contingent upon Covid-19\, Govt.\, I.S. and L.R.Y.C. Rules and Guidelines in\nplace at the time of the regatta.\n1.5 Entries will close on the 8th of June 2021.\n\nCOVID-19 Precautions\n\n We ask that everyone who intends to participate makes sure that they are\nnot displaying any symptoms of Covid-19. As much as we would love to see you all\, we\nwould ask that you consider the safety of everyone else before attending.\n All boats should stay with the same crew as per the current I.S. Pod system.\n Both the health declaration form and the competitors declaration forms should be filled out prior to registration and need to be physically handed in.\n The health declaration forms need to be filled out for every member of the group.\n Everyone must wear a face mask at registration.\n We would encourage that groups of non-sailors are as small as possible to ensure that we remain below the 200 person threshold.\n The size of group cannot exceed the size declared at registration.\n\n\n\n\n\nI have read and am aware of the Rules of the regatta as above. Please accept my entry and if accepted I will fill in the declaration form(s) and where applicable class declaration form(s) and present it/them for approval at registration\n\nForms to fill before arriving\nCovid-19 Health Checklist\nDeclaration Form\n\n\n2Boat to Enter\nHelm\n\nCrew\nSail No\n\nClub\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
URL:https://www.lryc.ie/event/420-warm-up-regatta/
END:VEVENT
END:VCALENDAR