We'd like to format the calendar view of a list not off the data entered for each of the days, but off the actual day of the week.
For example:
- Saturday and Sunday boxes would be red
- Monday boxes would be blue
- Tuesday-Thursday boxes would be yellow
- Friday boxes would be green
I'm trying this to at least get the first column/Sunday color coded, but nothing is happening:
<script type="text/javascript" src="/sites/ProjectSite/SiteAssets/jquery-latest.min.js">
<script type="text/javascript">
$(function() {
var $t;
var interval = setInterval(function() {
$t = $("table.ms-acal-month>tbody tr td:nth-child(1)");
$t.each(function(){
$(this).style("background-color", "red");
});
}, 1000);
});
</script>
Any ideas on how to even start with this?
- Edited by bubberz1 Friday, April 24, 2015 8:03 PM more info and what I've tried so far
- Moved by Rebecca TuMicrosoft contingent staff, Moderator Monday, April 27, 2015 6:12 AM dev issue