new Grunt build system, development flow, Bower component generation, jQuery plugin manifest

This commit is contained in:
Adam Shaw
2013-02-26 00:43:35 -08:00
parent 1009caf3b7
commit d2ef2cf1a8
71 changed files with 868 additions and 644 deletions
+8 -2
View File
@@ -1,3 +1,9 @@
build/fullcalendar
build/fullcalendar-*
build/out
build/component
dist
# for npm
node_modules
# for bower
components
+320
View File
@@ -0,0 +1,320 @@
var _ = require('underscore');
module.exports = function(grunt) {
// Load required NPM tasks.
// You must first run `npm install` in the project's root directory to get these dependencies.
grunt.loadNpmTasks('grunt-contrib-concat');
grunt.loadNpmTasks('grunt-contrib-uglify');
grunt.loadNpmTasks('grunt-contrib-copy');
grunt.loadNpmTasks('grunt-contrib-compress');
grunt.loadNpmTasks('grunt-contrib-clean');
grunt.loadNpmTasks('grunt-contrib-watch'); // Very useful for development. See README.
// read config files, and combine into one "meta" object
var packageConfig = grunt.file.readJSON('package.json');
var componentConfig = grunt.file.readJSON('component.json');
var pluginConfig = grunt.file.readJSON('fullcalendar.jquery.json');
var meta = _.extend({}, packageConfig, componentConfig, pluginConfig);
var config = { // this will eventually get passed to grunt.initConfig
meta: meta, // do this primarily for templating (<%= %>)
// initialize multitasks
concat: {},
uglify: {},
copy: {},
compress: {},
clean: {},
watch: {} // we will add watch tasks whenever we do concats, so files get re-concatenated upon save
};
// files that the demos might need in the distributable
var depFiles = require('./build/deps.js');
/* Important Top-Level Tasks
----------------------------------------------------------------------------------------------------*/
grunt.registerTask('default', 'dist'); // what will be run with a plain old "grunt" command
grunt.registerTask('dist', 'Create a distributable ZIP file', [
'clean:build',
'submodules',
'uglify',
'copy:deps',
'copy:demos',
'copy:misc',
'compress'
]);
grunt.registerTask('dev', 'Build necessary files for developing and debugging', 'submodules');
grunt.registerTask('submodules', 'Build all FullCalendar submodules', [
'main',
'gcal'
]);
/* Main FullCalendar Submodule
----------------------------------------------------------------------------------------------------*/
grunt.registerTask('main', 'Build the main FullCalendar submodule', [
'concat:mainJs',
'concat:mainCss',
'concat:mainPrintCss'
]);
// JavaScript
config.concat.mainJs = {
options: {
process: true // replace template variables
},
src: [
'src/intro.js',
'src/defaults.js',
'src/main.js',
'src/Calendar.js',
'src/Header.js',
'src/EventManager.js',
'src/date_util.js',
'src/util.js',
'src/basic/MonthView.js',
'src/basic/BasicWeekView.js',
'src/basic/BasicDayView.js',
'src/basic/BasicView.js',
'src/basic/BasicEventRenderer.js',
'src/agenda/AgendaWeekView.js',
'src/agenda/AgendaDayView.js',
'src/agenda/AgendaView.js',
'src/agenda/AgendaEventRenderer.js',
'src/common/View.js',
'src/common/DayEventRenderer.js',
'src/common/SelectionManager.js',
'src/common/OverlayManager.js',
'src/common/CoordinateGrid.js',
'src/common/HoverListener.js',
'src/common/HorizontalPositionCache.js',
'src/outro.js'
],
dest: 'build/out/fullcalendar/fullcalendar.js'
};
config.watch.mainJs = {
files: config.concat.mainJs.src,
tasks: 'concat:mainJs'
};
// CSS
config.concat.mainCss = {
options: {
process: true // replace template variables
},
src: [
'src/main.css',
'src/common/common.css',
'src/basic/basic.css',
'src/agenda/agenda.css'
],
dest: 'build/out/fullcalendar/fullcalendar.css'
};
config.watch.mainCss = {
files: config.concat.mainCss.src,
tasks: 'concat:mainCss'
};
// CSS (for printing)
config.concat.mainPrintCss = {
options: {
process: true // replace template variables
},
src: 'src/common/print.css',
dest: 'build/out/fullcalendar/fullcalendar.print.css'
};
config.watch.mainPrintCss = {
files: config.concat.mainPrintCss.src,
tasks: 'concat:mainPrintCss'
};
/* Google Calendar Submodule
----------------------------------------------------------------------------------------------------*/
grunt.registerTask('gcal', 'Build the Google Calendar submodule', 'concat:gcalJs');
config.concat.gcalJs = {
options: {
process: true // replace template variables
},
src: 'src/gcal/gcal.js',
dest: 'build/out/fullcalendar/gcal.js'
};
config.watch.gcalJs = {
files: config.concat.gcalJs.src,
tasks: 'concat:gcalJs'
};
/* Minify the JavaScript
----------------------------------------------------------------------------------------------------*/
config.uglify.all = {
options: {
preserveComments: 'some' // keep comments starting with /*!
},
expand: true,
src: 'build/out/fullcalendar/fullcalendar.js',
ext: '.min.js'
}
/* Copy Dependencies
----------------------------------------------------------------------------------------------------*/
config.copy.deps = {
expand: true,
flatten: true,
src: depFiles,
dest: 'build/out/jquery/' // all depenencies will go in the jquery/ directory for now
// (because we only have jquery and jquery-ui)
};
/* Demos
----------------------------------------------------------------------------------------------------*/
config.copy.demos = {
options: {
// while copying demo files over, rewrite <script> and <link> tags for new dependency locations
processContentExclude: 'demos/*/**', // don't process anything more than 1 level deep (like assets)
processContent: function(content) {
content = rewriteDemoStylesheetTags(content);
content = rewriteDemoScriptTags(content);
return content;
}
},
src: 'demos/**',
dest: 'build/out/'
};
function rewriteDemoStylesheetTags(content) {
return content.replace(
/(<link[^>]*href=['"])(.*?\.css)(['"][^>]*>)/g,
function(full, before, href, after) {
href = href.replace('../build/out/', '../');
return before + href + after;
}
);
}
function rewriteDemoScriptTags(content) {
return content.replace(
/(<script[^>]*src=['"])(.*?)(['"][\s\S]*?<\/script>)/g,
function(full, before, src, after) {
if (src == '../build/deps.js') {
return buildDepScriptTags();
}
else {
src = src.replace('../build/out/', '../');
src = src.replace('/fullcalendar.', '/fullcalendar.min.'); // use minified version of main JS file
return before + src + after;
}
}
);
}
function buildDepScriptTags() {
var tags = [];
for (var i=0; i<depFiles.length; i++) {
var fileName = depFiles[i].replace(/.*\//, ''); // get file's basename
tags.push("<script src='../jquery/" + fileName + "'></script>"); // all dependencies are in jquery/ for now
}
return tags.join("\n");
}
/* Copy Misc Files
----------------------------------------------------------------------------------------------------*/
config.copy.misc = {
src: "*.txt", // licenses and changelog
dest: 'build/out/'
};
/* Create ZIP file
----------------------------------------------------------------------------------------------------*/
config.compress.all = {
options: {
archive: 'dist/<%= meta.name %>-<%= meta.version %>.zip'
},
expand: true,
cwd: 'build/out/',
src: '**',
dest: '<%= meta.name %>-<%= meta.version %>/' // have a top-level directory in the ZIP file
};
/* Bower Component
----------------------------------------------------------------------------------------------------*/
// http://twitter.github.com/bower/
grunt.registerTask('component', 'Build the FullCalendar component for the Bower package manager', [
'clean:build',
'submodules',
'uglify', // we want the minified JS in there
'copy:component',
'copy:componentReadme',
'componentConfig'
]);
config.copy.component = {
expand: true,
cwd: 'build/out/fullcalendar/',
src: '**',
dest: 'build/component/',
};
config.copy.componentReadme = {
src: 'build/component-readme.md',
dest: 'build/component/readme.md'
};
grunt.registerTask('componentConfig', function() {
grunt.file.write(
'build/component/component.json',
JSON.stringify(
_.extend({}, pluginConfig, componentConfig), // combine the 2 configs
null, // replacer
2 // indent
)
);
});
/* Clean Up Files
----------------------------------------------------------------------------------------------------*/
config.clean.build = [
'build/out/*',
'build/component/*'
];
config.clean.dist = 'dist/*';
// finally, give grunt the config object...
grunt.initConfig(config);
};
-112
View File
@@ -1,112 +0,0 @@
SRC_DIR = src
BUILD_DIR = build
DIST_DIR = dist
DEMOS_DIR = demos
OTHER_FILES = \
changelog.txt \
MIT-LICENSE.txt \
GPL-LICENSE.txt
VER = $$(cat version.txt)
VER_SED = sed s/@VERSION/"${VER}"/
DATE = $$(git log -1 --pretty=format:%ad)
DATE_SED = sed s/@DATE/"${DATE}"/
JQ = $$(sed -nE "s/.*JQUERY[ \t]*=[ \t]*[\"'](.*)[\"'].*/\1/p" "${SRC_DIR}/_loader.js")
JQUI = $$(sed -nE "s/.*JQUERY_UI[ \t]*=[ \t]*[\"'](.*)[\"'].*/\1/p" "${SRC_DIR}/_loader.js")
DEMO_FILES = $$(cd ${DEMOS_DIR}; find . -mindepth 1 -maxdepth 1 -type f)
DEMO_SUBDIRS = $$(cd ${DEMOS_DIR}; find . -mindepth 1 -maxdepth 1 -type d)
DEMO_RE = (<script[^>]*_loader\.js[^>]*><\/script>|<!--\[\[|\]\]-->)[^<]*
DEMO_SED = sed -nE '1h;1!H;$${;g;s/${DEMO_RE}//g;p;}'
JS_SED = sed -nE "s/[ \t]*js\([\"'](.*)[\"']\).*/\1/p"
CSS_SED = sed -nE "s/[ \t]*css\([\"'](.*)[\"']\).*/\1/p"
concat_js = \
files=$$(cat "$(1)/_loader.js" | ${JS_SED}); \
if [ -f "$(1)/intro.js" ]; then \
files="intro.js $$files"; \
fi; \
if [ -f "$(1)/outro.js" ]; then \
files="$$files outro.js"; \
fi; \
old=$$PWD; \
(cd "$(1)"; cat $$files; cd "$$old") \
| ${VER_SED} \
| ${DATE_SED} \
> "$(2)"
concat_css = \
files=$$(cat "$(1)/_loader.js" | ${CSS_SED}); \
if [ "$$files" ]; then \
old=$$PWD; \
(cd "$(1)"; cat $$files; cd "$$old") \
| ${VER_SED} \
| ${DATE_SED} \
> "$(2)"; \
fi
zip:
@rm -rf ${BUILD_DIR}/fullcalendar
@rm -rf ${BUILD_DIR}/fullcalendar-*
@mkdir -p ${BUILD_DIR}/fullcalendar/fullcalendar/
@echo "building core..."
@$(call concat_js,${SRC_DIR},"${BUILD_DIR}/fullcalendar/fullcalendar/fullcalendar.js")
@$(call concat_css,${SRC_DIR},"${BUILD_DIR}/fullcalendar/fullcalendar/fullcalendar.css")
@cat "${SRC_DIR}/common/print.css" \
| ${VER_SED} \
| ${DATE_SED} \
> "${BUILD_DIR}/fullcalendar/fullcalendar/fullcalendar.print.css"
@echo "compressing core js..."
@java -jar ${BUILD_DIR}/compiler.jar --warning_level VERBOSE --jscomp_off checkTypes --externs build/externs.js \
--js ${BUILD_DIR}/fullcalendar/fullcalendar/fullcalendar.js \
> ${BUILD_DIR}/fullcalendar/fullcalendar/fullcalendar.min.js; \
@echo "building plugins..."
@for loader in ${SRC_DIR}/*/_loader.js; do \
dir=`dirname $$loader`; \
name=`basename $$dir`; \
$(call concat_js,$$dir,"${BUILD_DIR}/fullcalendar/fullcalendar/$$name.js"); \
done
@echo "copying jquery..."
@mkdir -p ${BUILD_DIR}/fullcalendar/jquery
@cp lib/${JQ} ${BUILD_DIR}/fullcalendar/jquery
@cp lib/${JQUI} ${BUILD_DIR}/fullcalendar/jquery
@echo "building demos..."
@mkdir -p ${BUILD_DIR}/fullcalendar/demos
@for f in ${DEMO_FILES}; do \
cat ${DEMOS_DIR}/$$f \
| ${DEMO_SED} \
| sed "s/jquery\.js/${JQ}/" \
| sed "s/jquery-ui\.js/${JQUI}/" \
> ${BUILD_DIR}/fullcalendar/demos/$$f; \
done
@for d in ${DEMO_SUBDIRS}; do \
cp -r ${DEMOS_DIR}/$$d ${BUILD_DIR}/fullcalendar/demos/$$d; \
done
@echo "copying other files..."
@cp -r ${OTHER_FILES} ${BUILD_DIR}/fullcalendar
@echo "zipping..."
@mv ${BUILD_DIR}/fullcalendar ${BUILD_DIR}/fullcalendar-${VER}
@cd ${BUILD_DIR}; for f in fullcalendar-*; do \
zip -q -r $$f.zip $$f; \
done
@mv ${BUILD_DIR}/fullcalendar-${VER} ${BUILD_DIR}/fullcalendar
@mkdir -p ${DIST_DIR}
@mv ${BUILD_DIR}/fullcalendar-${VER}.zip ${DIST_DIR}
@echo "done."
clean:
@rm -rf ${BUILD_DIR}/fullcalendar
@rm -rf ${BUILD_DIR}/fullcalendar-*
@rm -rf ${DIST_DIR}/*
-47
View File
@@ -1,47 +0,0 @@
FullCalendar - Full-sized drag & drop event calendar
====================================================
Development and testing
-----------------------
Modify files in the `src/` directory and test your changes by viewing any of the HTML files
in the `tests/` directory. Each test file exercises a particular aspect of FullCalendar,
so you might want to create your own test file if you are developing a substantial new feature.
Building from source
--------------------
You must have a Java runtime environment (accessible by the `java` command) for minification.
Then, run `make zip` and check the `dist/` directory for your newly created ZIP archive.
To start fresh, run the `make clean` command.
Getting started
---------------
Assuming you have downloaded a release, or built your own, you can get started by including the
following dependencies in the &lt;HEAD&gt; of your HTML file:
<link rel='stylesheet' type='text/css' href='fullcalendar.css' /> <!-- required stylesheet -->
<script type='text/javascript' src='jquery.js'></script> <!-- need jQuery >= v1.2.6 -->
<script type='text/javascript' src='fullcalendar.min.js'></script> <!-- can also use fullcalendar.js -->
If you plan to use the drag/drop/resize functionality, you must include jQuery UI draggable and resizable.
You can [download a custom build](http://jqueryui.com/download) or use the bundled files, like so:
<script type='text/javascript' src='ui.core.js'></script>
<script type='text/javascript' src='ui.draggable.js'></script>
<script type='text/javascript' src='ui.resizable.js'></script>
Somewhere in your javascript you need to initialize a FullCalendar within a pre-existing element.
Here is an example of doing it within an element having an `id` of `calendar`:
$(document).ready(function() {
$('#calendar').fullCalendar({
// your options here
});
});
To see a full list of all available options, please consult the [FullCalendar documentation &raquo;](http://arshaw.com/fullcalendar/docs/)
Binary file not shown.
+10
View File
@@ -0,0 +1,10 @@
FullCalendar Component
======================
This repo is the official [Bower](http://twitter.github.com/bower/) component endpoint for the
[FullCalendar Project](http://arshaw.com/fullcalendar/).
It is a shim repo that has been generated by running the `grunt component` command in the
main development repo.
[Visit the development repo](https://github.com/arshaw/fullcalendar)
+53
View File
@@ -0,0 +1,53 @@
/*
* This file defines the JS dependencies required to run a barebones FullCalendar example.
*
* Additionally, if run from Node (i.e. the build system), this file will serve as a module that
* exports the dependency file list.
*
* Additionally, if run from a browser, this file will write a <script> tag for each dependency.
*/
// all files are relative to the project root
var files = [
'lib/jquery-1.8.1.min.js',
'lib/jquery-ui-1.8.23.custom.min.js'
];
if (typeof module !== 'undefined') {
//
// in a Node module
//
module.exports = files;
}
else if (typeof window !== 'undefined') {
//
// in a browser
//
var root;
var scripts = document.getElementsByTagName('script');
var i;
// determine the current script's directory
for (i=0; i<scripts.length; i++) {
var match = (scripts[i].getAttribute('src') || '').match(/^(.*)\/build\/deps\.js/);
if (match) {
root = match[1];
break;
}
}
// write the dependency script tags
for (i=0; i<files.length; i++) {
document.write("<script src='" + root + "/" + files[i] + "'></script>\n");
}
}
-1
View File
@@ -1 +0,0 @@
var jQuery;
+6
View File
@@ -0,0 +1,6 @@
{
"main": [
"./fullcalendar.js",
"./fullcalendar.css"
]
}
+7 -11
View File
@@ -1,15 +1,11 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<!DOCTYPE html>
<html>
<head>
<script type='text/javascript' src='../src/_loader.js'></script>
<!--[[
<link rel='stylesheet' type='text/css' href='../fullcalendar/fullcalendar.css' />
<link rel='stylesheet' type='text/css' href='../fullcalendar/fullcalendar.print.css' media='print' />
<script type='text/javascript' src='../jquery/jquery.js'></script>
<script type='text/javascript' src='../jquery/jquery-ui.js'></script>
<script type='text/javascript' src='../fullcalendar/fullcalendar.min.js'></script>
]]-->
<script type='text/javascript'>
<link rel='stylesheet' href='../build/out/fullcalendar/fullcalendar.css' />
<link rel='stylesheet' href='../build/out/fullcalendar/fullcalendar.print.css' media='print' />
<script src='../build/deps.js'></script>
<script src='../build/out/fullcalendar/fullcalendar.js'></script>
<script>
$(document).ready(function() {
@@ -76,7 +72,7 @@
});
</script>
<style type='text/css'>
<style>
body {
margin-top: 40px;
+7 -11
View File
@@ -1,15 +1,11 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<!DOCTYPE html>
<html>
<head>
<script type='text/javascript' src='../src/_loader.js'></script>
<!--[[
<link rel='stylesheet' type='text/css' href='../fullcalendar/fullcalendar.css' />
<link rel='stylesheet' type='text/css' href='../fullcalendar/fullcalendar.print.css' media='print' />
<script type='text/javascript' src='../jquery/jquery.js'></script>
<script type='text/javascript' src='../jquery/jquery-ui.js'></script>
<script type='text/javascript' src='../fullcalendar/fullcalendar.min.js'></script>
]]-->
<script type='text/javascript'>
<link rel='stylesheet' href='../build/out/fullcalendar/fullcalendar.css' />
<link rel='stylesheet' href='../build/out/fullcalendar/fullcalendar.print.css' media='print' />
<script src='../build/deps.js'></script>
<script src='../build/out/fullcalendar/fullcalendar.js'></script>
<script>
$(document).ready(function() {
@@ -76,7 +72,7 @@
});
</script>
<style type='text/css'>
<style>
body {
margin-top: 40px;
+7 -11
View File
@@ -1,15 +1,11 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<!DOCTYPE html>
<html>
<head>
<script type='text/javascript' src='../src/_loader.js'></script>
<!--[[
<link rel='stylesheet' type='text/css' href='../fullcalendar/fullcalendar.css' />
<link rel='stylesheet' type='text/css' href='../fullcalendar/fullcalendar.print.css' media='print' />
<script type='text/javascript' src='../jquery/jquery.js'></script>
<script type='text/javascript' src='../jquery/jquery-ui.js'></script>
<script type='text/javascript' src='../fullcalendar/fullcalendar.min.js'></script>
]]-->
<script type='text/javascript'>
<link rel='stylesheet' href='../build/out/fullcalendar/fullcalendar.css' />
<link rel='stylesheet' href='../build/out/fullcalendar/fullcalendar.print.css' media='print' />
<script src='../build/deps.js'></script>
<script src='../build/out/fullcalendar/fullcalendar.js'></script>
<script>
$(document).ready(function() {
@@ -71,7 +67,7 @@
});
</script>
<style type='text/css'>
<style>
body {
margin-top: 40px;
+7 -11
View File
@@ -1,15 +1,11 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<!DOCTYPE html>
<html>
<head>
<script type='text/javascript' src='../src/_loader.js'></script>
<!--[[
<link rel='stylesheet' type='text/css' href='../fullcalendar/fullcalendar.css' />
<link rel='stylesheet' type='text/css' href='../fullcalendar/fullcalendar.print.css' media='print' />
<script type='text/javascript' src='../jquery/jquery.js'></script>
<script type='text/javascript' src='../jquery/jquery-ui.js'></script>
<script type='text/javascript' src='../fullcalendar/fullcalendar.min.js'></script>
]]-->
<script type='text/javascript'>
<link rel='stylesheet' href='../build/out/fullcalendar/fullcalendar.css' />
<link rel='stylesheet' href='../build/out/fullcalendar/fullcalendar.print.css' media='print' />
<script src='../build/deps.js'></script>
<script src='../build/out/fullcalendar/fullcalendar.js'></script>
<script>
$(document).ready(function() {
@@ -78,7 +74,7 @@
});
</script>
<style type='text/css'>
<style>
body {
margin-top: 40px;
+8 -13
View File
@@ -1,17 +1,12 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<!DOCTYPE html>
<html>
<head>
<script type='text/javascript' src='../src/_loader.js'></script>
<script type='text/javascript' src='../src/gcal/_loader.js'></script>
<!--[[
<link rel='stylesheet' type='text/css' href='../fullcalendar/fullcalendar.css' />
<link rel='stylesheet' type='text/css' href='../fullcalendar/fullcalendar.print.css' media='print' />
<script type='text/javascript' src='../jquery/jquery.js'></script>
<script type='text/javascript' src='../jquery/jquery-ui.js'></script>
<script type='text/javascript' src='../fullcalendar/fullcalendar.min.js'></script>
<script type='text/javascript' src='../fullcalendar/gcal.js'></script>
]]-->
<script type='text/javascript'>
<link rel='stylesheet' href='../build/out/fullcalendar/fullcalendar.css' />
<link rel='stylesheet' href='../build/out/fullcalendar/fullcalendar.print.css' media='print' />
<script src='../build/deps.js'></script>
<script src='../build/out/fullcalendar/fullcalendar.js'></script>
<script src='../build/out/fullcalendar/gcal.js'></script>
<script>
$(document).ready(function() {
@@ -39,7 +34,7 @@
});
</script>
<style type='text/css'>
<style>
body {
margin-top: 40px;
+7 -11
View File
@@ -1,15 +1,11 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<!DOCTYPE html>
<html>
<head>
<script type='text/javascript' src='../src/_loader.js'></script>
<!--[[
<link rel='stylesheet' type='text/css' href='../fullcalendar/fullcalendar.css' />
<link rel='stylesheet' type='text/css' href='../fullcalendar/fullcalendar.print.css' media='print' />
<script type='text/javascript' src='../jquery/jquery.js'></script>
<script type='text/javascript' src='../jquery/jquery-ui.js'></script>
<script type='text/javascript' src='../fullcalendar/fullcalendar.min.js'></script>
]]-->
<script type='text/javascript'>
<link rel='stylesheet' href='../build/out/fullcalendar/fullcalendar.css' />
<link rel='stylesheet' href='../build/out/fullcalendar/fullcalendar.print.css' media='print' />
<script src='../build/deps.js'></script>
<script src='../build/out/fullcalendar/fullcalendar.js'></script>
<script>
$(document).ready(function() {
@@ -34,7 +30,7 @@
});
</script>
<style type='text/css'>
<style>
body {
margin-top: 40px;
+7 -11
View File
@@ -1,15 +1,11 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<!DOCTYPE html>
<html>
<head>
<script type='text/javascript' src='../src/_loader.js'></script>
<!--[[
<link rel='stylesheet' type='text/css' href='../fullcalendar/fullcalendar.css' />
<link rel='stylesheet' type='text/css' href='../fullcalendar/fullcalendar.print.css' media='print' />
<script type='text/javascript' src='../jquery/jquery.js'></script>
<script type='text/javascript' src='../jquery/jquery-ui.js'></script>
<script type='text/javascript' src='../fullcalendar/fullcalendar.min.js'></script>
]]-->
<script type='text/javascript'>
<link rel='stylesheet' href='../build/out/fullcalendar/fullcalendar.css' />
<link rel='stylesheet' href='../build/out/fullcalendar/fullcalendar.print.css' media='print' />
<script src='../build/deps.js'></script>
<script src='../build/out/fullcalendar/fullcalendar.js'></script>
<script>
$(document).ready(function() {
@@ -93,7 +89,7 @@
});
</script>
<style type='text/css'>
<style>
body {
margin-top: 40px;
+8 -12
View File
@@ -1,16 +1,12 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<!DOCTYPE html>
<html>
<head>
<link rel='stylesheet' type='text/css' href='cupertino/theme.css' />
<script type='text/javascript' src='../src/_loader.js'></script>
<!--[[
<link rel='stylesheet' type='text/css' href='../fullcalendar/fullcalendar.css' />
<link rel='stylesheet' type='text/css' href='../fullcalendar/fullcalendar.print.css' media='print' />
<script type='text/javascript' src='../jquery/jquery.js'></script>
<script type='text/javascript' src='../jquery/jquery-ui.js'></script>
<script type='text/javascript' src='../fullcalendar/fullcalendar.min.js'></script>
]]-->
<script type='text/javascript'>
<link rel='stylesheet' href='cupertino/theme.css' />
<link rel='stylesheet' href='../build/out/fullcalendar/fullcalendar.css' />
<link rel='stylesheet' href='../build/out/fullcalendar/fullcalendar.print.css' media='print' />
<script src='../build/deps.js'></script>
<script src='../build/out/fullcalendar/fullcalendar.js'></script>
<script>
$(document).ready(function() {
@@ -78,7 +74,7 @@
});
</script>
<style type='text/css'>
<style>
body {
margin-top: 40px;
+38
View File
@@ -0,0 +1,38 @@
{
"name": "fullcalendar",
"version": "1.5.4",
"dependencies": {
"jquery": "~1.8.1"
},
"optionalDependencies": {
"jquery-ui": "~1.8.23"
},
"title": "FullCalendar",
"description": "Full-sized drag & drop event calendar",
"keywords": [ "calendar", "event", "full-sized" ],
"homepage": "http://arshaw.com/fullcalendar/",
"demo": "http://arshaw.com/fullcalendar/",
"docs": "http://arshaw.com/fullcalendar/docs/",
"download": "http://arshaw.com/fullcalendar/download/",
"bugs": "http://code.google.com/p/fullcalendar/issues/list",
"licenses": [
{
"type": "MIT",
"url": "https://github.com/arshaw/fullcalendar/blob/master/MIT-LICENSE.txt"
},
{
"type": "GPL",
"url": "https://github.com/arshaw/fullcalendar/blob/master/GPL-LICENSE.txt"
}
],
"author": {
"name": "Adam Shaw",
"email": "arshaw@arshaw.com",
"url": "http://arshaw.com/"
},
"copyright": "2012 Adam Shaw"
}
-19
View File
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
+12
View File
@@ -0,0 +1,12 @@
{
"devDependencies": {
"underscore": "~1.4.4",
"grunt": "~0.4.0",
"grunt-contrib-concat": "~0.1.2",
"grunt-contrib-uglify": "~0.1.1",
"grunt-contrib-copy": "~0.4.0",
"grunt-contrib-compress": "~0.4.0",
"grunt-contrib-clean": "~0.4.0",
"grunt-contrib-watch": "~0.2.0"
}
}
+57
View File
@@ -0,0 +1,57 @@
FullCalendar - Full-sized drag & drop event calendar
====================================================
This document describes how to modify or contribute to the FullCalendar project.
If you are looking for end-developer documentation, please visit
the [project homepage](http://arshaw.com/fullcalendar/).
Getting Set Up
--------------
You will need [Git](http://git-scm.com/), [Node](http://nodejs.org/), and NPM installed.
For clarification, please view the
[jQuery readme](https://github.com/jquery/jquery/blob/master/README.md#what-you-need-to-build-your-own-jquery),
which requires a similar setup.
Also, you will need to have the [Grunt](http://gruntjs.com/) build system installed globally (`-g`) on your system:
npm install -g grunt-cli
Then, clone FullCalendar's git repo:
git clone git://github.com/arshaw/fullcalendar.git
Enter the directory and install FullCalendar's development dependencies:
cd fullcalendar && npm install
Development Workflow
--------------------
After you make code changes, you'll want to compile the JS/CSS so that it can be previewed from the tests and demos.
You can either manually rebuild each time you make a change:
grunt dev
Or, you can run a command that automatically rebuilds whenever you save a source file:
grunt watch
When you are finished, run the following command to write the distributable files into the `./build/out/` directory:
grunt
If you want to clean up the generated files run:
grunt clean
Writing Tests
-------------
When fixing a bug or writing a feature, please make a corresponding HTML file in the `./tests/` directory
to visually demonstrate your work. If the test requires user intervention to prove its point, please write
instructions for the user to follow. Explore the existing tests for more info.
-138
View File
@@ -1,138 +0,0 @@
(function() {
var JQUERY = 'jquery-1.8.1.min.js';
var JQUERY_UI = 'jquery-ui-1.8.23.custom.min.js';
var JQUERY_LEGACY = 'jquery-1.3.2.min.js';
var JQUERY_UI_LEGACY = 'jquery-ui-1.7.3.custom.min.js';
var qs = window.location.href.match(/(\?.*)?$/)[0];
var legacy = qs.indexOf('legacy') != -1;
var noui = qs.indexOf('noui') != -1;
var debug;
var prefix;
var tags;
startload();
css('main.css');
css('common/common.css');
css('basic/basic.css');
css('agenda/agenda.css');
cssprint('common/print.css');
if (!legacy) {
jslib('../lib/' + JQUERY);
if (!noui) {
jslib('../lib/' + JQUERY_UI);
}
}else{
jslib('../lib/' + JQUERY_LEGACY);
if (!noui) {
jslib('../lib/' + JQUERY_UI_LEGACY);
}
}
if (debug && (!window.console || !window.console.log)) {
jslib('../tests/lib/firebug-lite/firebug-lite-compressed.js');
}
js('defaults.js');
js('main.js');
js('Calendar.js');
js('Header.js');
js('EventManager.js');
js('date_util.js');
js('util.js');
js('basic/MonthView.js');
js('basic/BasicWeekView.js');
js('basic/BasicDayView.js');
js('basic/BasicView.js');
js('basic/BasicEventRenderer.js');
js('agenda/AgendaWeekView.js');
js('agenda/AgendaDayView.js');
js('agenda/AgendaView.js');
js('agenda/AgendaEventRenderer.js');
js('common/View.js');
js('common/DayEventRenderer.js');
js('common/SelectionManager.js');
js('common/OverlayManager.js');
js('common/CoordinateGrid.js');
js('common/HoverListener.js');
js('common/HorizontalPositionCache.js');
endload();
if (debug) {
window.onload = function() {
$('body').append(
"<form style='position:absolute;top:0;right:0;text-align:right;font-size:10px;color:#666'>" +
"<label for='legacy'>legacy</label> " +
"<input type='checkbox' id='legacy' name='legacy'" + (legacy ? " checked='checked'" : '') +
" style='vertical-align:middle' onclick='$(this).parent().submit()' />" +
"<br />" +
"<label for='ui'>no jquery ui</label> " +
"<input type='checkbox' id='ui' name='noui'" + (noui ? " checked='checked'" : '') +
" style='vertical-align:middle' onclick='$(this).parent().submit()' />" +
"</form>"
);
};
}
window.startload = startload;
window.endload = endload;
window.css = css;
window.js = js;
window.jslib = jslib;
function startload() {
debug = false;
prefix = '';
tags = [];
var scripts = document.getElementsByTagName('script');
for (var i=0, script; script=scripts[i++];) {
if (!script._checked) {
script._checked = true;
var m = (script.getAttribute('src') || '').match(/^(.*)_loader\.js(\?.*)?$/);
if (m) {
prefix = m[1];
debug = (m[2] || '').indexOf('debug') != -1;
break;
}
}
}
}
function endload() {
document.write(tags.join("\n"));
}
function css(file) {
tags.push("<link rel='stylesheet' type='text/css' href='" + prefix + file + "' />");
}
function cssprint(file) {
tags.push("<link rel='stylesheet' type='text/css' href='" + prefix + file + "' media='print' />");
}
function js(file) {
tags.push("<script type='text/javascript' src='" + prefix + file + "'></script>");
}
function jslib(file) {
js(file);
}
})();
+2 -4
View File
@@ -1,16 +1,14 @@
/*
* FullCalendar v@VERSION Print Stylesheet
* <%= meta.title %> v<%= meta.version %> Print Stylesheet
*
* Include this stylesheet on your page to get a more printer-friendly calendar.
* When including this stylesheet, use the media='print' attribute of the <link> tag.
* Make sure to include this stylesheet IN ADDITION to the regular fullcalendar.css.
*
* Copyright (c) 2011 Adam Shaw
* (c) <%= meta.copyright %>
* Dual licensed under the MIT and GPL licenses, located in
* MIT-LICENSE.txt and GPL-LICENSE.txt respectively.
*
* Date: @DATE
*
*/
-6
View File
@@ -1,6 +0,0 @@
startload();
js('gcal.js');
endload();
+3 -5
View File
@@ -1,12 +1,10 @@
/*
* FullCalendar v@VERSION Google Calendar Plugin
/*!
* <%= meta.title %> v<%= meta.version %> Google Calendar Plugin
*
* Copyright (c) 2011 Adam Shaw
* (c) <%= meta.copyright %>
* Dual licensed under the MIT and GPL licenses, located in
* MIT-LICENSE.txt and GPL-LICENSE.txt respectively.
*
* Date: @DATE
*
*/
(function($) {
+4 -7
View File
@@ -1,18 +1,15 @@
/**
* @preserve
* FullCalendar v@VERSION
* http://arshaw.com/fullcalendar/
/*!
* <%= meta.title %> v<%= meta.version %>
* <%= meta.homepage %>
*
* Use fullcalendar.css for basic styling.
* For event drag & drop, requires jQuery UI draggable.
* For event resizing, requires jQuery UI resizable.
*
* Copyright (c) 2011 Adam Shaw
* (c) <%= meta.copyright %>
* Dual licensed under the MIT and GPL licenses, located in
* MIT-LICENSE.txt and GPL-LICENSE.txt respectively.
*
* Date: @DATE
*
*/
(function($, undefined) {
+2 -4
View File
@@ -1,12 +1,10 @@
/*
* FullCalendar v@VERSION Stylesheet
* <%= meta.title %> v<%= meta.version %> Stylesheet
*
* Copyright (c) 2011 Adam Shaw
* (c) <%= meta.copyright %>
* Dual licensed under the MIT and GPL licenses, located in
* MIT-LICENSE.txt and GPL-LICENSE.txt respectively.
*
* Date: @DATE
*
*/
+1 -1
View File
@@ -1,5 +1,5 @@
var fc = $.fullCalendar = { version: "@VERSION" };
var fc = $.fullCalendar = { version: "<%= meta.version %>" };
var fcViews = fc.views = {};
+7 -4
View File
@@ -1,8 +1,11 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<!DOCTYPE html>
<html>
<head>
<script type='text/javascript' src='../src/_loader.js?debug'></script>
<script type='text/javascript'>
<link rel='stylesheet' href='../build/out/fullcalendar/fullcalendar.css' />
<link rel='stylesheet' href='../build/out/fullcalendar/fullcalendar.print.css' media='print' />
<script src='../build/deps.js'></script>
<script src='../build/out/fullcalendar/fullcalendar.js'></script>
<script>
$(document).ready(function() {
@@ -75,7 +78,7 @@
});
</script>
<style type='text/css'>
<style>
body {
margin-top: 40px;
+7 -4
View File
@@ -1,8 +1,11 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<!DOCTYPE html>
<html>
<head>
<script type='text/javascript' src='../src/_loader.js?debug'></script>
<script type='text/javascript'>
<link rel='stylesheet' href='../build/out/fullcalendar/fullcalendar.css' />
<link rel='stylesheet' href='../build/out/fullcalendar/fullcalendar.print.css' media='print' />
<script src='../build/deps.js'></script>
<script src='../build/out/fullcalendar/fullcalendar.js'></script>
<script>
$(document).ready(function() {
@@ -107,7 +110,7 @@
});
</script>
<style type='text/css'>
<style>
body {
margin-top: 40px;
+7 -4
View File
@@ -1,8 +1,11 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<!DOCTYPE html>
<html>
<head>
<script type='text/javascript' src='../src/_loader.js?debug'></script>
<script type='text/javascript'>
<link rel='stylesheet' href='../build/out/fullcalendar/fullcalendar.css' />
<link rel='stylesheet' href='../build/out/fullcalendar/fullcalendar.print.css' media='print' />
<script src='../build/deps.js'></script>
<script src='../build/out/fullcalendar/fullcalendar.js'></script>
<script>
$(document).ready(function() {
@@ -81,7 +84,7 @@
});
</script>
<style type='text/css'>
<style>
body {
margin: 20px 200px 20px 20px;
+6 -4
View File
@@ -1,9 +1,11 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<!DOCTYPE html>
<html>
<head>
<script type='text/javascript' src='../src/_loader.js?debug'></script>
<script type='text/javascript' src='../src/gcal/_loader.js'></script>
<script type='text/javascript'>
<link rel='stylesheet' href='../build/out/fullcalendar/fullcalendar.css' />
<link rel='stylesheet' href='../build/out/fullcalendar/fullcalendar.print.css' media='print' />
<script src='../build/deps.js'></script>
<script src='../build/out/fullcalendar/fullcalendar.js'></script>
<script>
$(document).ready(function() {
$('#calendar').fullCalendar({
+5 -5
View File
@@ -1,10 +1,10 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<!DOCTYPE html>
<html>
<head>
<link rel='stylesheet' type='text/css' href='lib/fancybox/jquery.fancybox-1.3.4.css' />
<script type='text/javascript' src='lib/jquery-1.4.3.min.js'></script>
<script type='text/javascript' src='lib/fancybox/jquery.fancybox-1.3.4.js'></script>
<script type='text/javascript'>
<link rel='stylesheet' href='lib/fancybox/jquery.fancybox-1.3.4.css' />
<script src='lib/jquery-1.4.3.min.js'></script>
<script src='lib/fancybox/jquery.fancybox-1.3.4.js'></script>
<script>
$(document).ready(function() {
$('#fullcalendar-link').fancybox({
+7 -4
View File
@@ -1,8 +1,11 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<!DOCTYPE html>
<html>
<head>
<script type='text/javascript' src='../src/_loader.js?debug'></script>
<script type='text/javascript'>
<link rel='stylesheet' href='../build/out/fullcalendar/fullcalendar.css' />
<link rel='stylesheet' href='../build/out/fullcalendar/fullcalendar.print.css' media='print' />
<script src='../build/deps.js'></script>
<script src='../build/out/fullcalendar/fullcalendar.js'></script>
<script>
// set your time to Tehran time (GMT+03:30)
// (recreated on a Windows XP machine, after restarting)
@@ -38,7 +41,7 @@
});
</script>
<style type='text/css'>
<style>
body {
margin-top: 40px;
+7 -4
View File
@@ -1,8 +1,11 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<!DOCTYPE html>
<html>
<head>
<script type='text/javascript' src='../src/_loader.js?debug'></script>
<script type='text/javascript'>
<link rel='stylesheet' href='../build/out/fullcalendar/fullcalendar.css' />
<link rel='stylesheet' href='../build/out/fullcalendar/fullcalendar.print.css' media='print' />
<script src='../build/deps.js'></script>
<script src='../build/out/fullcalendar/fullcalendar.js'></script>
<script>
$(document).ready(function() {
@@ -17,7 +20,7 @@
});
</script>
<style type='text/css'>
<style>
body {
margin: 0;
+7 -4
View File
@@ -1,9 +1,12 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<!DOCTYPE html>
<html>
<head>
<script type='text/javascript' src='../src/_loader.js?debug'></script>
<script type='text/javascript' src='../src/gcal/_loader.js'></script>
<script type='text/javascript'>
<link rel='stylesheet' href='../build/out/fullcalendar/fullcalendar.css' />
<link rel='stylesheet' href='../build/out/fullcalendar/fullcalendar.print.css' media='print' />
<script src='../build/deps.js'></script>
<script src='../build/out/fullcalendar/fullcalendar.js'></script>
<script src='../build/out/fullcalendar/gcal.js'></script>
<script>
var gcalFeed = $.fullCalendar.gcalFeed("http://www.google.com/calendar/feeds/usa__en%40holiday.calendar.google.com/public/basic");
+7 -4
View File
@@ -1,8 +1,11 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<!DOCTYPE html>
<html>
<head>
<script type='text/javascript' src='../src/_loader.js?debug'></script>
<script type='text/javascript'>
<link rel='stylesheet' href='../build/out/fullcalendar/fullcalendar.css' />
<link rel='stylesheet' href='../build/out/fullcalendar/fullcalendar.print.css' media='print' />
<script src='../build/deps.js'></script>
<script src='../build/out/fullcalendar/fullcalendar.js'></script>
<script>
$(document).ready(function() {
@@ -22,7 +25,7 @@
</script>
<style type='text/css'>
<style>
body {
margin-top: 40px;
+7 -4
View File
@@ -1,8 +1,11 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<!DOCTYPE html>
<html>
<head>
<script type='text/javascript' src='../src/_loader.js?debug'></script>
<script type='text/javascript'>
<link rel='stylesheet' href='../build/out/fullcalendar/fullcalendar.css' />
<link rel='stylesheet' href='../build/out/fullcalendar/fullcalendar.print.css' media='print' />
<script src='../build/deps.js'></script>
<script src='../build/out/fullcalendar/fullcalendar.js'></script>
<script>
$(document).ready(function() {
@@ -21,7 +24,7 @@
});
</script>
<style type='text/css'>
<style>
body {
margin-top: 40px;
+7 -4
View File
@@ -1,8 +1,11 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<!DOCTYPE html>
<html>
<head>
<script type='text/javascript' src='../src/_loader.js?debug'></script>
<script type='text/javascript'>
<link rel='stylesheet' href='../build/out/fullcalendar/fullcalendar.css' />
<link rel='stylesheet' href='../build/out/fullcalendar/fullcalendar.print.css' media='print' />
<script src='../build/deps.js'></script>
<script src='../build/out/fullcalendar/fullcalendar.js'></script>
<script>
$(document).ready(function() {
@@ -30,7 +33,7 @@
});
</script>
<style type='text/css'>
<style>
body {
margin-top: 40px;
+7 -4
View File
@@ -1,8 +1,11 @@
<!DOCTYPE HTML PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<!DOCTYPE html>
<html>
<head>
<script type='text/javascript' src='../src/_loader.js?debug'></script>
<script type="text/javascript">
<link rel='stylesheet' href='../build/out/fullcalendar/fullcalendar.css' />
<link rel='stylesheet' href='../build/out/fullcalendar/fullcalendar.print.css' media='print' />
<script src='../build/deps.js'></script>
<script src='../build/out/fullcalendar/fullcalendar.js'></script>
<script>
$(document).ready(function() {
+8 -5
View File
@@ -1,9 +1,12 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<!DOCTYPE html>
<html>
<head>
<script type='text/javascript' src='../src/_loader.js?debug'></script>
<script type='text/javascript' src='../src/gcal/_loader.js'></script>
<script type='text/javascript'>
<link rel='stylesheet' href='../build/out/fullcalendar/fullcalendar.css' />
<link rel='stylesheet' href='../build/out/fullcalendar/fullcalendar.print.css' media='print' />
<script src='../build/deps.js'></script>
<script src='../build/out/fullcalendar/fullcalendar.js'></script>
<script src='../build/out/fullcalendar/gcal.js'></script>
<script>
/*
- click on day button
@@ -35,7 +38,7 @@
});
</script>
<style type='text/css'>
<style>
body {
margin-top: 40px;
+7 -4
View File
@@ -1,8 +1,11 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<!DOCTYPE html>
<html>
<head>
<script type='text/javascript' src='../src/_loader.js?debug'></script>
<script type='text/javascript'>
<link rel='stylesheet' href='../build/out/fullcalendar/fullcalendar.css' />
<link rel='stylesheet' href='../build/out/fullcalendar/fullcalendar.print.css' media='print' />
<script src='../build/deps.js'></script>
<script src='../build/out/fullcalendar/fullcalendar.js'></script>
<script>
$(document).ready(function() {
@@ -20,7 +23,7 @@
});
</script>
<style type='text/css'>
<style>
body {
margin-top: 40px;
+7 -4
View File
@@ -1,8 +1,11 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<!DOCTYPE html>
<html>
<head>
<script type='text/javascript' src='../src/_loader.js?debug'></script>
<script type='text/javascript'>
<link rel='stylesheet' href='../build/out/fullcalendar/fullcalendar.css' />
<link rel='stylesheet' href='../build/out/fullcalendar/fullcalendar.print.css' media='print' />
<script src='../build/deps.js'></script>
<script src='../build/out/fullcalendar/fullcalendar.js'></script>
<script>
$(document).ready(function() {
@@ -27,7 +30,7 @@
});
</script>
<style type='text/css'>
<style>
body {
margin-top: 40px;
+7 -4
View File
@@ -1,8 +1,11 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN""http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<!DOCTYPE html>
<html>
<head>
<script type='text/javascript' src='../src/_loader.js?debug'></script>
<script type='text/javascript'>
<link rel='stylesheet' href='../build/out/fullcalendar/fullcalendar.css' />
<link rel='stylesheet' href='../build/out/fullcalendar/fullcalendar.print.css' media='print' />
<script src='../build/deps.js'></script>
<script src='../build/out/fullcalendar/fullcalendar.js'></script>
<script>
$(document).ready(function() {
@@ -105,7 +108,7 @@
});
</script>
<style type='text/css'>
<style>
body {
margin-top: 40px;
+8 -5
View File
@@ -1,9 +1,12 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<!DOCTYPE html>
<html>
<head>
<script type='text/javascript' src='../src/_loader.js?debug'></script>
<script type='text/javascript' src='../src/gcal/_loader.js'></script>
<script type='text/javascript'>
<link rel='stylesheet' href='../build/out/fullcalendar/fullcalendar.css' />
<link rel='stylesheet' href='../build/out/fullcalendar/fullcalendar.print.css' media='print' />
<script src='../build/deps.js'></script>
<script src='../build/out/fullcalendar/fullcalendar.js'></script>
<script src='../build/out/fullcalendar/gcal.js'></script>
<script>
$(document).ready(function() {
@@ -27,7 +30,7 @@
});
</script>
<style type='text/css'>
<style>
body {
margin-top: 40px;
+8 -5
View File
@@ -1,9 +1,12 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<!DOCTYPE html>
<html>
<head>
<script type='text/javascript' src='../src/_loader.js?debug'></script>
<script type='text/javascript' src='../src/gcal/_loader.js'></script>
<script type='text/javascript'>
<link rel='stylesheet' href='../build/out/fullcalendar/fullcalendar.css' />
<link rel='stylesheet' href='../build/out/fullcalendar/fullcalendar.print.css' media='print' />
<script src='../build/deps.js'></script>
<script src='../build/out/fullcalendar/fullcalendar.js'></script>
<script src='../build/out/fullcalendar/gcal.js'></script>
<script>
$(document).ready(function() {
@@ -34,7 +37,7 @@
}
</script>
<style type='text/css'>
<style>
body {
margin-top: 40px;
+8 -5
View File
@@ -1,9 +1,12 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<!DOCTYPE html>
<html>
<head>
<script type='text/javascript' src='../src/_loader.js?debug'></script>
<script type='text/javascript' src='../src/gcal/_loader.js'></script>
<script type='text/javascript'>
<link rel='stylesheet' href='../build/out/fullcalendar/fullcalendar.css' />
<link rel='stylesheet' href='../build/out/fullcalendar/fullcalendar.print.css' media='print' />
<script src='../build/deps.js'></script>
<script src='../build/out/fullcalendar/fullcalendar.js'></script>
<script src='../build/out/fullcalendar/gcal.js'></script>
<script>
$(document).ready(function() {
@@ -33,7 +36,7 @@
</script>
<style type='text/css'>
<style>
body {
margin-top: 40px;
+8 -5
View File
@@ -1,9 +1,12 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<!DOCTYPE html>
<html>
<head>
<script type='text/javascript' src='../src/_loader.js?debug'></script>
<script type='text/javascript' src='../src/gcal/_loader.js'></script>
<script type='text/javascript'>
<link rel='stylesheet' href='../build/out/fullcalendar/fullcalendar.css' />
<link rel='stylesheet' href='../build/out/fullcalendar/fullcalendar.print.css' media='print' />
<script src='../build/deps.js'></script>
<script src='../build/out/fullcalendar/fullcalendar.js'></script>
<script src='../build/out/fullcalendar/gcal.js'></script>
<script>
$(document).ready(function() {
@@ -36,7 +39,7 @@
</script>
<style type='text/css'>
<style>
body {
margin-top: 40px;
+7 -4
View File
@@ -1,8 +1,11 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<!DOCTYPE html>
<html>
<head>
<script type='text/javascript' src='../src/_loader.js?debug'></script>
<script type='text/javascript'>
<link rel='stylesheet' href='../build/out/fullcalendar/fullcalendar.css' />
<link rel='stylesheet' href='../build/out/fullcalendar/fullcalendar.print.css' media='print' />
<script src='../build/deps.js'></script>
<script src='../build/out/fullcalendar/fullcalendar.js'></script>
<script>
$(document).ready(function() {
@@ -72,7 +75,7 @@
});
</script>
<style type='text/css'>
<style>
body {
margin-top: 40px;
+7 -4
View File
@@ -1,8 +1,11 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<!DOCTYPE html>
<html>
<head>
<script type='text/javascript' src='../src/_loader.js?debug'></script>
<script type='text/javascript'>
<link rel='stylesheet' href='../build/out/fullcalendar/fullcalendar.css' />
<link rel='stylesheet' href='../build/out/fullcalendar/fullcalendar.print.css' media='print' />
<script src='../build/deps.js'></script>
<script src='../build/out/fullcalendar/fullcalendar.js'></script>
<script>
$(document).ready(function() {
@@ -72,7 +75,7 @@
});
</script>
<style type='text/css'>
<style>
body {
margin-top: 40px;
+7 -4
View File
@@ -1,8 +1,11 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<!DOCTYPE html>
<html>
<head>
<script type='text/javascript' src='../src/_loader.js?debug'></script>
<script type='text/javascript'>
<link rel='stylesheet' href='../build/out/fullcalendar/fullcalendar.css' />
<link rel='stylesheet' href='../build/out/fullcalendar/fullcalendar.print.css' media='print' />
<script src='../build/deps.js'></script>
<script src='../build/out/fullcalendar/fullcalendar.js'></script>
<script>
$(document).ready(function() {
@@ -73,7 +76,7 @@
});
</script>
<style type='text/css'>
<style>
body {
margin-top: 40px;
+7 -4
View File
@@ -1,8 +1,11 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<!DOCTYPE html>
<html>
<head>
<script type='text/javascript' src='../src/_loader.js?debug'></script>
<script type='text/javascript'>
<link rel='stylesheet' href='../build/out/fullcalendar/fullcalendar.css' />
<link rel='stylesheet' href='../build/out/fullcalendar/fullcalendar.print.css' media='print' />
<script src='../build/deps.js'></script>
<script src='../build/out/fullcalendar/fullcalendar.js'></script>
<script>
$(document).ready(function() {
@@ -72,7 +75,7 @@
});
</script>
<style type='text/css'>
<style>
body {
margin-top: 40px;
+7 -4
View File
@@ -1,8 +1,11 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<!DOCTYPE html>
<html>
<head>
<script type='text/javascript' src='../src/_loader.js?debug'></script>
<script type='text/javascript'>
<link rel='stylesheet' href='../build/out/fullcalendar/fullcalendar.css' />
<link rel='stylesheet' href='../build/out/fullcalendar/fullcalendar.print.css' media='print' />
<script src='../build/deps.js'></script>
<script src='../build/out/fullcalendar/fullcalendar.js'></script>
<script>
$(document).ready(function() {
@@ -79,7 +82,7 @@
});
</script>
<style type='text/css'>
<style>
html {
overflow: auto;
+8 -5
View File
@@ -1,14 +1,17 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<!DOCTYPE html>
<html>
<head>
<style>
/* http://code.google.com/p/fullcalendar/issues/detail?id=193 */
.fc .fc-sat, .fc .fc-sun { background-color:red }
/* http://code.google.com/p/fullcalendar/issues/detail?id=193 */
.fc .fc-sat, .fc .fc-sun { background-color:red }
</style>
<script type='text/javascript' src='../src/_loader.js?debug'></script>
<script type='text/javascript'>
<link rel='stylesheet' href='../build/out/fullcalendar/fullcalendar.css' />
<link rel='stylesheet' href='../build/out/fullcalendar/fullcalendar.print.css' media='print' />
<script src='../build/deps.js'></script>
<script src='../build/out/fullcalendar/fullcalendar.js'></script>
<script>
var date = new Date();
var d = date.getDate();
+7 -4
View File
@@ -1,8 +1,11 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<!DOCTYPE html>
<html>
<head>
<script type='text/javascript' src='../src/_loader.js?debug'></script>
<script type='text/javascript'>
<link rel='stylesheet' href='../build/out/fullcalendar/fullcalendar.css' />
<link rel='stylesheet' href='../build/out/fullcalendar/fullcalendar.print.css' media='print' />
<script src='../build/deps.js'></script>
<script src='../build/out/fullcalendar/fullcalendar.js'></script>
<script>
$(document).ready(function() {
@@ -23,7 +26,7 @@
});
</script>
<style type='text/css'>
<style>
body {
margin-top: 40px;
+7 -4
View File
@@ -1,8 +1,11 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<!DOCTYPE html>
<html>
<head>
<script type='text/javascript' src='../src/_loader.js?debug'></script>
<script type='text/javascript'>
<link rel='stylesheet' href='../build/out/fullcalendar/fullcalendar.css' />
<link rel='stylesheet' href='../build/out/fullcalendar/fullcalendar.print.css' media='print' />
<script src='../build/deps.js'></script>
<script src='../build/out/fullcalendar/fullcalendar.js'></script>
<script>
$(document).ready(function() {
@@ -21,7 +24,7 @@
});
</script>
<style type='text/css'>
<style>
body {
margin-top: 40px;
+7 -4
View File
@@ -1,8 +1,11 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<!DOCTYPE html>
<html>
<head>
<script type='text/javascript' src='../src/_loader.js?debug'></script>
<script type='text/javascript'>
<link rel='stylesheet' href='../build/out/fullcalendar/fullcalendar.css' />
<link rel='stylesheet' href='../build/out/fullcalendar/fullcalendar.print.css' media='print' />
<script src='../build/deps.js'></script>
<script src='../build/out/fullcalendar/fullcalendar.js'></script>
<script>
$(document).ready(function() {
@@ -24,7 +27,7 @@
});
</script>
<style type='text/css'>
<style>
body {
margin-top: 40px;
+7 -4
View File
@@ -1,9 +1,12 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<!DOCTYPE html>
<html>
<head>
<script type='text/javascript' src='../src/_loader.js?debug'></script>
<script type='text/javascript' src='../src/gcal/_loader.js'></script>
<script type='text/javascript'>
<link rel='stylesheet' href='../build/out/fullcalendar/fullcalendar.css' />
<link rel='stylesheet' href='../build/out/fullcalendar/fullcalendar.print.css' media='print' />
<script src='../build/deps.js'></script>
<script src='../build/out/fullcalendar/fullcalendar.js'></script>
<script src='../build/out/fullcalendar/gcal.js'></script>
<script>
var cal, staticEvents;
+6 -3
View File
@@ -1,8 +1,11 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<!DOCTYPE html>
<html>
<head>
<script type='text/javascript' src='../src/_loader.js?debug'></script>
<script type='text/javascript'>
<link rel='stylesheet' href='../build/out/fullcalendar/fullcalendar.css' />
<link rel='stylesheet' href='../build/out/fullcalendar/fullcalendar.print.css' media='print' />
<script src='../build/deps.js'></script>
<script src='../build/out/fullcalendar/fullcalendar.js'></script>
<script>
var date = new Date();
var d = date.getDate();
+7 -4
View File
@@ -1,8 +1,11 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<!DOCTYPE html>
<html>
<head>
<script type='text/javascript' src='../src/_loader.js?debug'></script>
<script type='text/javascript'>
<link rel='stylesheet' href='../build/out/fullcalendar/fullcalendar.css' />
<link rel='stylesheet' href='../build/out/fullcalendar/fullcalendar.print.css' media='print' />
<script src='../build/deps.js'></script>
<script src='../build/out/fullcalendar/fullcalendar.js'></script>
<script>
$(document).ready(function() {
@@ -69,7 +72,7 @@
});
</script>
<style type='text/css'>
<style>
body {
margin-top: 40px;
+7 -4
View File
@@ -1,8 +1,11 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<!DOCTYPE html>
<html>
<head>
<script type='text/javascript' src='../src/_loader.js?debug'></script>
<script type='text/javascript'>
<link rel='stylesheet' href='../build/out/fullcalendar/fullcalendar.css' />
<link rel='stylesheet' href='../build/out/fullcalendar/fullcalendar.print.css' media='print' />
<script src='../build/deps.js'></script>
<script src='../build/out/fullcalendar/fullcalendar.js'></script>
<script>
var date = new Date();
var d = date.getDate();
@@ -120,7 +123,7 @@
});
</script>
<style type='text/css'>
<style>
body {
font-size: 13px;
+7 -4
View File
@@ -1,8 +1,11 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<!DOCTYPE html>
<html>
<head>
<script type='text/javascript' src='../src/_loader.js'></script>
<script type='text/javascript'>
<link rel='stylesheet' href='../build/out/fullcalendar/fullcalendar.css' />
<link rel='stylesheet' href='../build/out/fullcalendar/fullcalendar.print.css' media='print' />
<script src='../build/deps.js'></script>
<script src='../build/out/fullcalendar/fullcalendar.js'></script>
<script>
$(document).ready(function() {
@@ -72,7 +75,7 @@
});
</script>
<style type='text/css'>
<style>
body {
margin-top: 40px;
+9 -6
View File
@@ -1,15 +1,18 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<!DOCTYPE html>
<html>
<head>
<style type="text/css">
<style>
.activeDay{
.activeDay {
background:#eee !important;
}
</style>
<script type='text/javascript' src='../src/_loader.js?debug'></script>
<script type='text/javascript'>
<link rel='stylesheet' href='../build/out/fullcalendar/fullcalendar.css' />
<link rel='stylesheet' href='../build/out/fullcalendar/fullcalendar.print.css' media='print' />
<script src='../build/deps.js'></script>
<script src='../build/out/fullcalendar/fullcalendar.js'></script>
<script>
$(document).ready(function() {
@@ -82,7 +85,7 @@
});
</script>
<style type='text/css'>
<style>
body {
margin-top: 40px;
+7 -4
View File
@@ -1,9 +1,12 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<!DOCTYPE html>
<html>
<head>
<script type='text/javascript' src='../src/_loader.js?debug'></script>
<script type='text/javascript' src='../src/gcal/_loader.js'></script>
<script type='text/javascript'>
<link rel='stylesheet' href='../build/out/fullcalendar/fullcalendar.css' />
<link rel='stylesheet' href='../build/out/fullcalendar/fullcalendar.print.css' media='print' />
<script src='../build/deps.js'></script>
<script src='../build/out/fullcalendar/fullcalendar.js'></script>
<script src='../build/out/fullcalendar/gcal.js'></script>
<script>
var cal;
+8 -5
View File
@@ -1,9 +1,12 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<!DOCTYPE html>
<html>
<head>
<script type='text/javascript' src='../src/_loader.js?debug'></script>
<script type='text/javascript' src='../src/gcal/_loader.js'></script>
<script type='text/javascript'>
<link rel='stylesheet' href='../build/out/fullcalendar/fullcalendar.css' />
<link rel='stylesheet' href='../build/out/fullcalendar/fullcalendar.print.css' media='print' />
<script src='../build/deps.js'></script>
<script src='../build/out/fullcalendar/fullcalendar.js'></script>
<script src='../build/out/fullcalendar/gcal.js'></script>
<script>
/*
@@ -159,7 +162,7 @@ $(document).ready(function() {
});
</script>
<style type='text/css'>
<style>
body {
margin-top: 40px;
+7 -4
View File
@@ -1,8 +1,11 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<!DOCTYPE html>
<html>
<head>
<script type='text/javascript' src='../src/_loader.js?debug'></script>
<script type='text/javascript'>
<link rel='stylesheet' href='../build/out/fullcalendar/fullcalendar.css' />
<link rel='stylesheet' href='../build/out/fullcalendar/fullcalendar.print.css' media='print' />
<script src='../build/deps.js'></script>
<script src='../build/out/fullcalendar/fullcalendar.js'></script>
<script>
$(document).ready(function() {
@@ -51,7 +54,7 @@
});
</script>
<style type='text/css'>
<style>
body {
margin-top: 40px;
+9 -6
View File
@@ -1,10 +1,13 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<!DOCTYPE html>
<html>
<head>
<link rel='stylesheet' type='text/css' href='../demos/cupertino/theme.css' />
<script type='text/javascript' src='../src/_loader.js?debug'></script>
<script type='text/javascript' src='lib/jquery.ui.tabs.min.js'></script>
<script type='text/javascript'>
<link rel='stylesheet' href='../demos/cupertino/theme.css' />
<link rel='stylesheet' href='../build/out/fullcalendar/fullcalendar.css' />
<link rel='stylesheet' href='../build/out/fullcalendar/fullcalendar.print.css' media='print' />
<script src='../build/deps.js'></script>
<script src='../build/out/fullcalendar/fullcalendar.js'></script>
<script src='lib/jquery.ui.tabs.min.js'></script>
<script>
$(document).ready(function() {
@@ -81,7 +84,7 @@
});
</script>
<style type='text/css'>
<style>
body {
margin-top: 40px;
+8 -5
View File
@@ -1,10 +1,13 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<!DOCTYPE html>
<html>
<head>
<link type="text/css" rel="stylesheet" href="http://jqueryui.com/themes/base/ui.all.css" />
<script type='text/javascript' src='../src/_loader.js?debug'></script>
<script type="text/javascript" src="http://jqueryui.com/themeroller/themeswitchertool/"></script>
<script type='text/javascript'>
<link rel='stylesheet' href='../build/out/fullcalendar/fullcalendar.css' />
<link rel='stylesheet' href='../build/out/fullcalendar/fullcalendar.print.css' media='print' />
<link rel='stylesheet' href='http://jqueryui.com/themes/base/ui.all.css' />
<script src='../build/deps.js'></script>
<script src='../build/out/fullcalendar/fullcalendar.js'></script>
<script src='http://jqueryui.com/themeroller/themeswitchertool/'></script>
<script>
function initCalendar() {
+6 -3
View File
@@ -1,8 +1,11 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<!DOCTYPE html>
<html>
<head>
<script type='text/javascript' src='../src/_loader.js?debug'></script>
<script type='text/javascript'>
<link rel='stylesheet' href='../build/out/fullcalendar/fullcalendar.css' />
<link rel='stylesheet' href='../build/out/fullcalendar/fullcalendar.print.css' media='print' />
<script src='../build/deps.js'></script>
<script src='../build/out/fullcalendar/fullcalendar.js'></script>
<script>
/*
TODO:
-1
View File
@@ -1 +0,0 @@
1.5.4