Quantcast
Channel: SharePoint 2013 - Development and Programming forum
Viewing all articles
Browse latest Browse all 7589

Format List Calendar View Days

$
0
0

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:

<scripttype="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?



Viewing all articles
Browse latest Browse all 7589

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>