Permalink
Browse files

Repository and project cleanups with regards to packaging and releases.

* Reorganized the repository a bit and added an example to the downloadable package.
* Added some release packaging scripts to ease distribution of new releases.
  • Loading branch information...
1 parent 8864617 commit b786b5b26cf839a05310f828cef08342962d779d @jsmecham committed Jan 19, 2009
View
@@ -1,2 +1,3 @@
.DS_Store
*.tmproj
+releases
View
@@ -1,5 +1,10 @@
-Version 1.2 - Not Yet Released
+Version 1.2
+
+ - Reorganized the repository a bit and added an example to the downloadable
+ package.
+
+ - Added some release packaging scripts to ease distribution of new releases.
- Fixed the display of days from other months in the default CSS. Thanks to
Corie Slate for reporting this issue.
View
@@ -0,0 +1,17 @@
+require 'rake'
+require 'rake/packagetask'
+
+CALENDARVIEW_VERSION = '1.2-dev'
+
+task :default => [ :package ]
+
+Rake::PackageTask.new('calendarview', CALENDARVIEW_VERSION) do |package|
+ package.need_zip = true
+ package.package_dir = 'releases'
+ package.package_files.include(
+ 'javascripts/**',
+ 'stylesheets/**',
+ 'examples/**',
+ 'ChangeLog'
+ )
+end
View
@@ -0,0 +1,91 @@
+<!DOCTYPE html>
+<html>
+ <head>
+ <meta charset="UTF-8">
+ <title>CalendarView — JavaScript Calendar Widget</title>
+ <link rel="stylesheet" href="../stylesheets/calendarview.css">
+ <style>
+ body {
+ font-family: Trebuchet MS;
+ }
+ div.calendar {
+ max-width: 240px;
+ margin-left: auto;
+ margin-right: auto;
+ }
+ div.calendar table {
+ width: 100%;
+ }
+ div.dateField {
+ width: 140px;
+ padding: 6px;
+ -webkit-border-radius: 6px;
+ -moz-border-radius: 6px;
+ color: #555;
+ background-color: white;
+ margin-left: auto;
+ margin-right: auto;
+ text-align: center;
+ }
+ div#popupDateField:hover {
+ background-color: #cde;
+ cursor: pointer;
+ }
+ </style>
+ <script src="../javascripts/prototype.js"></script>
+ <script src="../javascripts/calendarview.js"></script>
+ <script>
+ function setupCalendars() {
+ // Embedded Calendar
+ Calendar.setup(
+ {
+ dateField: 'embeddedDateField',
+ parentElement: 'embeddedCalendar'
+ }
+ )
+
+ // Popup Calendar
+ Calendar.setup(
+ {
+ dateField: 'popupDateField',
+ triggerElement: 'popupDateField'
+ }
+ )
+ }
+
+ Event.observe(window, 'load', function() { setupCalendars() })
+ </script>
+ </head>
+ <body>
+
+ <div style="float: left; width: 50%">
+ <div style="height: 400px; background-color: #efefef; padding: 10px; -webkit-border-radius: 12px; -moz-border-radius: 12px; margin-right: 10px">
+ <h3 style="text-align: center; background-color: white; -webkit-border-radius: 10px; -moz-border-radius: 10px; margin-top: 0px; margin-bottom: 20px; padding: 8px">
+ Embedded Calendar
+ </h3>
+ <div id="embeddedExample" style="">
+ <div id="embeddedCalendar" style="margin-left: auto; margin-right: auto">
+ </div>
+ <br />
+ <div id="embeddedDateField" class="dateField">
+ Select Date
+ </div>
+ <br />
+ </div>
+ </div>
+ </div>
+ <div style="float: right; width: 50%">
+ <div style="height: 400px; background-color: #efefef; padding: 10px; -webkit-border-radius: 12px; -moz-border-radius: 12px; margin-left: 10px">
+ <h3 style="text-align: center; background-color: white; -webkit-border-radius: 10px; -moz-border-radius: 10px; margin-top: 0px; margin-bottom: 20px; padding: 8px">
+ Popup Calendar
+ </h3>
+ <div id="popupExample">
+ <div id="popupDateField" class="dateField" style="margin-top: 160px">
+ Show Calendar
+ </div>
+ </div>
+ </div>
+ </div>
+
+ </body>
+</html>
@@ -1,10 +1,10 @@
//
// CalendarView (for Prototype)
+// calendarview.org
//
-// Copyright 2007-2008 Singlesnet, Inc.
-// Copyright 2002-2005 Mihai Bazon
+// Maintained by Justin Mecham <justin@aspect.net>
//
-// Maintained by Justin Mecham <justin@corp.singlesnet.com>
+// Portions Copyright 2002-2005 Mihai Bazon
//
// This calendar is based very loosely on the Dynarch Calendar in that it was
// used as a base, but completely gutted and more or less rewritten in place
@@ -23,7 +23,7 @@ var Calendar = Class.create()
// Constants
//------------------------------------------------------------------------------
-Calendar.VERSION = '1.1-dev'
+Calendar.VERSION = '1.2-dev'
Calendar.DAY_NAMES = new Array(
'Sunday', 'Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday',
File renamed without changes.
File renamed without changes.

0 comments on commit b786b5b

Please sign in to comment.