Google Calendar is amazing, but the embed code is pretty old. They haven't updated it in many years.
Since everything is Mobile First today, I needed a way to display better on cell phones.
The following code does the following:
- Define a Responsive Cal types so that it uses 100% of the frame
- Define a DeskContent and a PhoneContent sizes (with a width of 768 being the switch point)
- Wrap all of it in the Responsive Call Div so it all resizes automatically
- Display the Month view of the calendar if it's a desktop resolution
- Display the Agenda view of the calendar if it's a mobile resolution
I've formatted this so that it can be placed inline in your HTML file.
The first Embed should be your calendar code set to the Month view.
The second Embed should be your calendar code set to the Agenda view.
Works great; thanks for the help!
ReplyDeleteThank you so much! I was looking everywhere to find the correct code and multipe tries. Worked like a charm. Thank you again so much!
ReplyDeleteI just used this and it totally worked!! Thank you for taking the time to put this together!!!! Easy to work out.
ReplyDeleteAwesome! This is just what I needed. Thank you!
ReplyDeleteHave you figured out how it works for someone not logged into a google account? This code worked beautifully for me to integrate into our website along with mobile UI, but only if the user is logged into a google account. TIA!
ReplyDeleteThank you so much!! This worked great!
ReplyDeleteThanks so much!!! This was driving me CRAZY! Breathing a sign of relief...
ReplyDeleteThis is exactly what I needed and it works really well - thanks for the easy solution!
ReplyDeleteTHANK YOU!! Oh my goodness, you just made my day.
ReplyDeleteAMAZING!!! Just what I needed!!
ReplyDeleteThis is AMAZING... thank you so much for making it available!
ReplyDeleteThis is still coming in handy 3 years later. Thanks, chief.
ReplyDeleteStill working! Took me a moment (I have no coding experience) to figure out that the First Embed was in Line 21, and the Second in Line 23 (beginning with the text "<iframe"), in case that's helpful for anyone else. Otherwise, just copy and paste. Thanks! Makes a huge improvement!
ReplyDeleteAWESOME! Thank you!
ReplyDeleteThank you! Easy to implement and works great
ReplyDelete