https://code-boxx.com/simple-php-calendar-events/
- Create a database and import
1-database.sql. - Change the database settings in
2-cal-lib.phpto your own.
| function randDarkColor() { | |
| var lum = -0.25; | |
| var hex = String('#' + Math.random().toString(16).slice(2, 8).toUpperCase()).replace(/[^0-9a-f]/gi, ''); | |
| if (hex.length < 6) { | |
| hex = hex[0] + hex[0] + hex[1] + hex[1] + hex[2] + hex[2]; | |
| } | |
| var rgb = "#", | |
| c, i; | |
| for (i = 0; i < 3; i++) { | |
| c = parseInt(hex.substr(i * 2, 2), 16); |
https://code-boxx.com/simple-php-calendar-events/
1-database.sql.2-cal-lib.php to your own.