Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/Tak0002/jquery.graspSchedule.js
jQuery graspSchedule.js is a simple jQuery calendar plugin used to visualize complex schedules & events, a little similar to the timeline or event calendar.
https://github.com/Tak0002/jquery.graspSchedule.js
Last synced: 5 days ago
JSON representation
jQuery graspSchedule.js is a simple jQuery calendar plugin used to visualize complex schedules & events, a little similar to the timeline or event calendar.
- Host: GitHub
- URL: https://github.com/Tak0002/jquery.graspSchedule.js
- Owner: Tak0002
- License: mit
- Created: 2014-05-25T15:39:27.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2019-02-03T07:41:11.000Z (almost 6 years ago)
- Last Synced: 2024-08-01T16:44:52.264Z (3 months ago)
- Language: JavaScript
- Homepage: http://tak0002.github.io/jquery.graspSchedule.js/
- Size: 80.1 KB
- Stars: 62
- Watchers: 9
- Forks: 11
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
jquery.graspSchedule.js
=======================jQuery graspSchedule.js is a simple jQuery calendar plugin used to visualize complex schedules & events loading from JSON data, a little similar to the timeline or event calendar.
You can use it for Life-log application or webpage for time schedule.Demo
===================See http://tak0002.github.io/jquery.graspSchedule.js/
How to use
====================Load jQuery and this plugin.
```html
```
Create your custom schedules & events. The data structure should be like this:
```javascript
var schedules = [ //"schedules" is list for events which have start and end.
{
end: "2014/05/10 3:00",
start: "2014/05/10 1:40",
title: "Meeting A"
},
{
end: "2014/05/10 2:41",
start: "2014/05/10 2:30",
title: "Conference B
", //You can use html tags
css:{backgroundColor:"#f39c12",height:"100px"}
//You can use most of CSS properties.But only pixel is allow for height.
}
];
var events = [ //"events" is list for events which have only one time.
{
date: "2014/05/10 16:00",
title: "tweeted at this time."
},
{
date: "2014/05/10 17:00",
title: "You can use media. <br><img src='http://wepia.biz/wlogo.png'/>",
css:{height:"302px"}
//You can use most of CSS properties.But only pixel is allow for height.
};
];
```Create an empty container element for the plugin.
```html
```Initialize the plugin.
```javascript
$('#schedule').graspSchedule({
schedules:schedules,
events:events
});
```Add custom CSS to style the schedules & events.
```css
.schedule{
position: absolute;
width: 400px;
background-color: #c0392b;
border: #ecf0f1 solid 1px;
padding: 3px;
}
.event{
position: absolute;
margin-left: 40px;
width: 350px;
background-color: #2980b9;
padding: 3px;
}
.time {
min-width: 50px;
}
```Available Options.
```javascript
$('#schedule').graspSchedule({
schedules:schedules,
events:events,
options:{ // You can change default setting. Not require.
classnames: { //If you use this plugin many time in a page, you have to change these.
schedule: "schedule",
event: "event",
time: "time"
},
css:{
event:{
height:"50px"
},
schedule:{
height:"70px"
},
zIndexStart:0,
marginTop:"0px",
marginLeft:"0px",
},
time:true,//show time on left side
insideTime:true,//show time inside
timeFormat:'yyyy/MM/dd(ddd)HH:mm',
daysFormat:['Sun', 'Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat']
}
}
```License
====================The MIT License (MIT)
Contact
====================
http://wepia.biz