{"id":27334974,"url":"https://github.com/dmuth/anthrocon-hotel-countdown","last_synced_at":"2025-07-11T23:41:48.002Z","repository":{"id":6736791,"uuid":"7982884","full_name":"dmuth/anthrocon-hotel-countdown","owner":"dmuth","description":"Code for the Anthrocon Hotel Countdown Timer screen that I used on the website for our 2013 convention.","archived":false,"fork":false,"pushed_at":"2020-09-03T22:20:54.000Z","size":705,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2024-05-02T06:07:18.032Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/dmuth.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2013-02-02T22:27:17.000Z","updated_at":"2015-09-15T16:53:42.000Z","dependencies_parsed_at":"2022-09-03T08:13:30.642Z","dependency_job_id":null,"html_url":"https://github.com/dmuth/anthrocon-hotel-countdown","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dmuth%2Fanthrocon-hotel-countdown","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dmuth%2Fanthrocon-hotel-countdown/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dmuth%2Fanthrocon-hotel-countdown/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dmuth%2Fanthrocon-hotel-countdown/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dmuth","download_url":"https://codeload.github.com/dmuth/anthrocon-hotel-countdown/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248585248,"owners_count":21128974,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-04-12T14:46:45.874Z","updated_at":"2025-04-12T14:46:46.529Z","avatar_url":"https://github.com/dmuth.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"Anthrocon Hotel Countdown\n=========================\n\nCode for the Anthrocon Hotel Countdown Timer screen that I used on the website for our 2013 convention.\n\nBased on the \"end date\" which is set in the software, either a countdown timer is displayed, or a page \nwith the link to reserve hotels is displayed.  Here are some screenshots:\n\n\u003cimg src=\"https://raw.github.com/dmuth/anthrocon-hotel-countdown/master/screenshot-anthrocon-hotel-countdown-timer.png\" width=\"300\" /\u003e\n\u0026nbsp;\n\u003cimg src=\"https://raw.github.com/dmuth/anthrocon-hotel-countdown/master/screenshot-anthrocon-hotel-countdown-open.png\" \nwidth=\"300\" /\u003e\n\n\nInstallation and Configuration\n==============================\n\n- Clone this repository into any directory.  You'll need PHP 5.3 running on the server\n- Go to http://codecanyon.net/item/jbmarket-circular-countdown/3100472 and purchase \n  the countdown app.  It's only $5 and very much worth it. :-)\n- Put the Circular Countdown code into the following directory: content/js-clock/\n- Replace the Anthrocon image with one of your choosing, and tweak the CSS as you see fit.\n\nYou should now be good to go!\n\n\nPerformance\n===========\n\nI *highly* recommend tweaking the `deploy-to-s3.sh` script and putting all of your \nassets (images, CSS, etc.) onto Amazon S3 or AWS CloudFront.  It will decrease the \nload to your server substantially.\n\n\nConfiguration and Use\n=====================\n\nStart by editing index.php and changing the $start_date and $end_date variables.  \nThey are in YYYYMMDDHHMMSS format.\n\nTo test things out, you can load the index.php with a \"date\" argument to \nforce a different end date.  Examples:\n\n- http://localhost/hotel/?date=20120101120000 will force the end date to be \nNoon on January 1st 2012, and will display the hote reservations link.\n- http://localhost/hotel/?date=20150101130000 will force the end date \n  to be 1 PM on January 1st, 2015. If it is in fact before that date, \n  you will see the countdown time.\n\nPROTIP: Before deploying, it would probably be a good idea to comment \nout the line sets $end_date to $_GET[\"date\"]. :-)\n\nIf you are running an actual convention website and want to replace your website with this \ncountdown timer, first make sure that your website has a single entry point. For example, \nDrupal serves all pages through index.php.  If that's the case, replacing all pages on \nyour website is fairly straightforward.  First, replace index.php with a symlink as follows:\n\n`mv index.php main.php \u0026\u0026 ln -s main.php index.php`\n\nNow, when you're ready to replace the site, do something like this:\n\n`rm index.php \u0026\u0026 ln -s hotel/index.php index.php`\n\nWhen you're ready to restore access to the website:\n\n`rm index.php \u0026\u0026 ln -s main.php index.php`\n\n\nWTF, MSIE?\n==========\n\nWTF, indeed.  MSIE 8 doesn't have issues--it has a subscription.  In the interests of both\nsanity and time, I decided the quickest route would be to not display the counter for \nMSIE browsers.  I may revisit this in the future.  If there are any front-end folks who would\nlike to contribute source to actually make things work under MSIE, feel free!\n\n\n\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdmuth%2Fanthrocon-hotel-countdown","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdmuth%2Fanthrocon-hotel-countdown","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdmuth%2Fanthrocon-hotel-countdown/lists"}