What is Black Creek About
Black Creek Park is about having fun with family in a safe enviornment. Park services works constantly to maintain trails year round as well as keep everything clean and safe. With year round activities what better place is there to go for a get away then a 1500+ acre park.
Liability
Park services or the town are not liable for any injury/damage that occurs to yourself or your equipment. This is a Use at your own risk park. While the town works hard to maintain it, it is always best to be safe and careful.
Reservations
Reservations can be made on the contact page linked below, they are on a first come first serve by deposit basis.
To learn more about the park or make inquiries about events visit the Contact page.
About this Site
This site is not maintained by the parks service nor by the County of Monroe, this is purly a personal project. While the information is currently accurate and up to date it will not be in the future. Please refer to official sources with questions or inquries
Form Validation
To prevent SQL injection or an attack of any kind regular expressions are used to verify the input of the user for the comments form. Most of the checking is done using PHP due to the fact that javascript can be editted/bypassed. To view this code in action please check out comments.php and attempt to add in a character you shouldn't.
Dynamic Backgrounds
To keep the pages looking different and unique, a background gradient is randomly selected on page load. This is done by multiplying a random number by 100, rounding to the nearest whole and performing modular division to return a whole number between 0 and 5 (there are 6 background types). This code is used on every page, and can be changed by refreshing the page. The code is contained within the assets/js folder and is named background.js
Javascript Breadcrumbs
Instead of hardcoding the breadcrumbs and headers into each page, they are determined by the current page location. Inside the script bread.js located in the assets/js, there is a large switch statement that switches on the current url. Which ever page is active sets the innerHTML of the header to the proper location text. For pages within sub menus, carrots (>) will show different levels.