Skip to content

Commit

Permalink
Edit on README.md, .gitignore, index.blade.php and edit.blade.php
Browse files Browse the repository at this point in the history
  • Loading branch information
Hussaini Zulkifli authored and Hussaini Zulkifli committed Jan 3, 2016
1 parent a8080f4 commit cfa68df
Show file tree
Hide file tree
Showing 4 changed files with 27 additions and 4 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,4 @@
Homestead.yaml
Homestead.json
.env
.DS_Store
2 changes: 1 addition & 1 deletion readme.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
## FullCalendar x Laravel Demo

A simple demo on FullCalendar Javascript library with Laravel as backend server. Only 2 pages, home pages or `<base url>/` for viewing purpose, and edit pages or ``<base url>/edit` for changing the event details.
A simple demo on FullCalendar Javascript library with Laravel as backend server. Demo can be seen [here](http://188.166.212.78/laravel/calendar/)

Feel free to pull request at `develop` branch for code improvement!
13 changes: 12 additions & 1 deletion resources/views/edit.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,18 @@ function validateInput() {
},
eventMouseover: function() {
$(this).css({'cursor': 'pointer'});
}
},
customButtons: {
home: {
text: 'Home',
click: function() {
location.href = '/';
}
}
},
header: {
right: 'home today prev,next',
}
});
$('#display-start, #display-end').datepicker({
Expand Down
15 changes: 13 additions & 2 deletions resources/views/index.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,13 +28,24 @@
},
eventMouseover: function() {
$(this).css({'cursor': 'pointer'});
}
},
customButtons: {
editEvent: {
text: 'Edit Event',
click: function() {
location.href = '/edit';
}
}
},
header: {
right: 'editEvent today prev,next',
}
});
});
</script>
</head>
<body>
<div class="container">
<div class="container">
<div id="calendar"></div>
</div>
<div class="modal fade" id="modalCalendar" tabindex="-1" role="dialog" aria-labelledby="modalTitle">
Expand Down

0 comments on commit cfa68df

Please sign in to comment.