How to embed mobile version of Google Calendar into mobile website - xhtml

I am trying to get a mobile version of a Google calendar to embed into a mobile website without having to log in. If anybody has gotten this to work before or has any idea how to do it please help.

Here's what I did with my site, and it works great for my Google calendar needs.
I used Google Calendar embed code, but I changed the type of calendar I was embedding on mobile so the content fits on the screen. As long as the "&mode=" equals "AGENDA" for the small container it should display the agenda list, but you can copy this from directly within your Google Calendar.
I used the "month" calendar embed option for the big container with a width set to "100%" and a height of "650" like so:
<div class="responsive-iframe-container big-container">
<iframe src="https://calendar.google.com/calendar/embed?
showTitle=0&showNav=0&showPrint=0&showTabs=0&showCalendars=0&showTz=0&height
=700&wkst=1&bgcolor=%23db694f&src=123123123%40group.calendar.
google.com&color=%23fbdbac&ctz=America%2FLos_Angeles" style="border-width:0"
width="100%" height="650" frameborder="0" scrolling="no"></iframe>
</div>
Then used the "agenda" calendar embed option for mobile devices with a width of "100%" and a height of "600" like so:
<div class="responsive-iframe-container small-container">
<iframe src="https://calendar.google.com/calendar/embed?
showTitle=0&showNav=0&showPrint=0&showTabs=0&showCalendars=0&showTz=0
&mode=AGENDA&height=800&wkst=1&bgcolor=%23db694f&src=123123123
%40group.calendar.google.com&color=%23B1440E&ctz=America%2FLos_Angeles"
style="border-width:0" width="100%" height="600" frameborder="0"
scrolling="no"></iframe>
</div>
This will give you a responsive iFrame agenda list on mobile that can be scrolled through, while still having the large calendar view on desktop.
Lastly, you need to add these styles to the page
<style>
#media (max-width: 550px) {
.big-container {
display: none;
}
}
#media (min-width: 550px) {
.small-container {
display: none;
}
}
/* Responsive iFrame */
.responsive-iframe-container {
position: relative;
padding-bottom: 56.25%;
padding-top: 30px;
height: 0;
overflow: hidden;
}
.responsive-iframe-container iframe,
.responsive-iframe-container object,
.responsive-iframe-container embed {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
}
</style>

These days, there are a number of third party apps that make it easy to embed mobile-responsive Google calendars.
Here are a couple of options:
Styled Calendar
Tockify
Or, if you'd rather use something open source, FullCalendar is a great solution. They have a calendar list view that works particularly well on mobile. If you wanted the desktop and mobile layouts to be different, you could potentially use a resize observer on the calendar's container to trigger FullCalendar's changeView method. Here is some documentation on how to use FullCalendar's Google Calendar plugin: https://fullcalendar.io/docs/google-calendar
*Full disclosure, I'm a member of the Styled Calendar team

To allow everyone to see your calendar, you'll need to make it public.
And just in case, here's how to embed the calendar on your website:
In the calendar list on the left, click the down-arrow next to the calendar you want to embed, and select Calendar settings. (Alternatively, click the Settings link at the bottom of the calendar list, then click the name of the calendar.)
Copy the iframe code displayed in the Embed This Calendar section.
Paste this code into your website to embed your calendar.
The instructions above were taken from Google's Calendar Support "Embed on your website".

Related

iFrame implementation on Wordpress (DIVI) site

I have the following problem, one of our customers wants to have a certain animated graphic on one of their pages.
graphic
link
It's basically a metal nut that u can turn with your mouse wheel to see what services they offer regarding production.
On the old website they had, it implemented like this
Nicely, fullscreen with scrolling functionality.
However, when I try to use an iframe to implement the graphic it looks like this (scroll to the bottom to see the graphic)
The code I use for the iframe is the following:
<iframe class="fuenfeck" src="https://sinerefl.sirv.com/qualicut/qualicut.spin">
</iframe>
I already tried to add width attribute but it only makes the container larger, not the graphic. I'm new to the whole iframe stuff, so I really need your help =)
Thanks and regards!
If you observe their css you will find somthing like that, that is useful for the iframe to be adaptative :
.responsive-iframe {
position: relative;
width: 100%;
padding-bottom: 62.5%;
}
.responsive-iframe iframe {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
}
<div class="responsive-iframe"><iframe class="fuenfeck" src="https://sinerefl.sirv.com/qualicut/qualicut.spin">
</iframe>
</div>
any particular reason you want to use an iFrame? A much better way of embedding a Sirv Spin is to follow these instructions - https://sirv.com/help/articles/sirv-spin/#embed-a-360-spin
<script src="https://scripts.sirv.com/sirv.js"></script>
<div class="Sirv" data-src="https://sinerefl.sirv.com/qualicut/qualicut.spin"></div>
There's also a WordPress plugin - https://wordpress.org/plugins/sirv/ which is Divi compatible

Adobe EchoSign Embedded Widget Iframe Size

I am noticing that adobe echosign is setting default minimum height and width using pixels while generating the Iframe for Personal Embedded widgets. I checked the below link (& other REST api documentations) and can't find a property to tell echosign to render the widget in a scalable mode according to width/height dimension of the device as in mobile, tablets or PC.
Api Documentation->
https://secure.na1.echosign.com/public/docs/restapi/v5#!/widgets/createWidget
Adobe EchoSign default Iframe Render setting->
<iframe src="******" width="100%" height="100%" frameborder="0" style="border: 0; overflow: hidden; min-height: 500px; min-width: 600px;"></iframe>
How to tell echosign REST api to dynamically adjust it's Iframe size?
I tried finding a solution to this also, but the short of it is that it can't be done with their widgets. None of their internal settings or the API allow a way to modify the iframe styling.
What does work, however, is adding a little javascript and css to modify the iframe. Here's an example of javascript code you can use:
document.getElementsByTagName("iframe")[0].setAttribute("id", "echosignwidget");
document.getElementByID("echosignwidget").removeAttribute("style");
By adding an id and removing the inline style attributes you are now free to style the element however you please using CSS.

Wordpress - Youtube embed not clickable on mobile devices

my Wordpress version is 4.6.6
I am adding my youtube videos to my wordpress site, it works correctly on desktop devices but when I open the page from mobile browser, I can see the youtube player and thumbnail of the video but I can not click and play it.
I have tried ARVE Plugin , Youtube Widget Responsive Plugin and oEmbed, all of them works on desktop but I could't play them on mobile browser (Android and iOS, both of them can't play)
Also I've tried this youtube embed code but I failed again.
<iframe width="853" height="480" src="https://www.youtube.com/embed/VIDEO_ID" frameborder="0" allowfullscreen></iframe>
Then I added these attributes to iframe and noting happened.
class="youtube-player" type="text/html"
So, where is the problem? I could't see anything wrong. It should work but it is not working.
Your question doesn't clears about the position of "class".
I think you are getting problem because of plugins. I would like to suggest you not to use any plugins. Uninstall all the plugins related to YouTube videos and follow the below steps.
There are some shortcut methods to embed YouTube video (works on mobile too) See here. The method you are following is similar to Method 3 in this article.
Copy that code from YouTube video.
Go to WordPress post where you want to embed this video.
Go to Text Editor and Paste your copied code inside div tag having class "video-container".
Save it.
Go to "Appearance->Editor" from WordPress left panel.
By default, style.css file should be opened. If not, open "style.css" file.
Copy the below CSS code as it is.
.video-container {
position:relative;
padding-bottom: 56.25%;
padding-top: 25px;
height: 0;
}
.video-container iframe, .video-container object, .video-container embed {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
}
Click "Update".
Your video should become mobile clickable as well as responsive.

Why i cannot change the video display size larger than 640px width in wordpress

I added video from media library to my page from content edit box.
no matter how i change the video size, it always on width:640px; cannot show lager in desktop display. it get smaller if view as mobile view.
I checked the CSS, not sure where to setup or change these in CSS.
My testing page now is on http://54.183.134.28/ you can check the video in about us section.
The code i checked in content edit box and CSS inspect, please help, for some reason i do not want to use Youtube, have to load the video to media library.
my question now is is there any restrict for video display size in wordpress?
[video width="1920" height="1080" mp4="http://54.183.134.28/wp-content/uploads/2017/07/City-8248.mp4"][/video]
element.style {
width: 640px;
}
wp-mediaelement….css?ver=4.8:1
.wp-video {
max-width: 100%;
height: auto;
Try to use this css code
.flowplayer{max-width:650px;}
Then let me know the result.
Thanks

Advice on which modal popup to use: ASP.NET AjaxControlToolkit vs jQuery plugin vs Greybox vs?

This is all being done in an ASP.NET web forms application:
I need a modal popup that will show the user a preview of images that match a search criteria (e.g. they search for "dog" and the popup shows them all dog-related pictures). The search results shouldn't be too long, but the popup should support the ability to scroll if necessary. I also need to capture which image they selected and send that info back to the calling page.
I've taken a look at some of the options out there and am having a hard time deciding on which one to use. Any suggestions?
i prefer the use of jquery because it doesnt require the use of any server-side computations. also if the app ever ported to another technology other than asp.net it will still most likely work.
I'm happy with jqModal, the plugin it's really minimalistic (basically 2.97kb of JS, and 496bytes of css) and works great...
don't use any modal plugins, create your own.
<div id="modal"></div>
modal { position: absolute; top: 200px; left: 200px; z-index: 12; width: 200px; height: 100px; background: red; color: blue; }
Then you can have some javascript on it, I recommend jquery's draggable, and then put some element that you can click on it so it disappears.
VoilĂ !!!
I've been quite happy with the jQuery plug-in Simple Modal.
I'd say go with ours; Ajax Calendar Starter-Kit (click the button to the lower left corner) but then again I am definitely biased...

Resources