<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>HTML5 &#8211; James Lin&#039;s Blog</title>
	<atom:link href="https://james.lin.net.nz/category/technology/programming/html5/feed/" rel="self" type="application/rss+xml" />
	<link>https://james.lin.net.nz</link>
	<description>Just bits and pieces of my life</description>
	<lastBuildDate>Fri, 19 Jan 2018 22:42:50 +0000</lastBuildDate>
	<language>en-NZ</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>https://wordpress.org/?v=4.9.2</generator>
<site xmlns="com-wordpress:feed-additions:1">22801464</site>	<item>
		<title>Javascript Snippet: Play next video</title>
		<link>https://james.lin.net.nz/2013/04/23/javascript-snippet-play-next-video/</link>
		<comments>https://james.lin.net.nz/2013/04/23/javascript-snippet-play-next-video/#respond</comments>
		<pubDate>Mon, 22 Apr 2013 23:34:10 +0000</pubDate>
		<dc:creator><![CDATA[James Lin]]></dc:creator>
				<category><![CDATA[HTML5]]></category>
		<category><![CDATA[Javascript]]></category>

		<guid isPermaLink="false">http://james.lin.net.nz/?p=1398</guid>
		<description><![CDATA[There is a requirement from one of my project to insert video ads before the actual video gets played. There are ways to do it, one is to use JWPlayer and OVA plugin, or the other way is to write your own javascript to control the playback. In the following demo, shows how you can… <span class="read-more"><a href="https://james.lin.net.nz/2013/04/23/javascript-snippet-play-next-video/">Read More &#187;</a></span>]]></description>
				<content:encoded><![CDATA[<p>There is a requirement from one of my project to insert video ads before the actual video gets played.</p>
<p>There are ways to do it, one is to use JWPlayer and OVA plugin, or the other way is to write your own javascript to control the playback.</p>
<p>In the following demo, shows how you can put ad video in the first source tag, and put actual video in second source tag.</p>
<p></p><pre class="crayon-plain-tag">&lt;script src=&quot;http://code.jquery.com/jquery-1.9.1.min.js&quot;&gt;&lt;/script&gt;
    &lt;video id=&quot;myvideo&quot; controls&gt;
            &lt;source src=&quot;small.mp4&quot; type=&quot;video/mp4&quot;/&gt;
            &lt;source src=&quot;chrome_japan.mp4&quot; type=&quot;video/mp4&quot;/&gt;
    &lt;/video&gt;
    &lt;script type=&quot;text/javascript&quot;&gt;
            &quot;use strict&quot;;
            var video = $('#myvideo')[0];
            $(video).bind(&quot;ended&quot;, function(e){
                var source = $('source',this);
                $(source[0]).attr('src', $(source[1]).attr('src'));
                video.load();
                video.play();
                $(video).unbind(&quot;ended&quot;);
            });
            video.play();
    &lt;/script&gt;</pre><p></p>
]]></content:encoded>
			<wfw:commentRss>https://james.lin.net.nz/2013/04/23/javascript-snippet-play-next-video/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	<post-id xmlns="com-wordpress:feed-additions:1">1398</post-id>	</item>
		<item>
		<title>HTML5 Fragmenting Already</title>
		<link>https://james.lin.net.nz/2011/08/02/html5-fragmenting-already/</link>
		<comments>https://james.lin.net.nz/2011/08/02/html5-fragmenting-already/#respond</comments>
		<pubDate>Mon, 01 Aug 2011 21:53:05 +0000</pubDate>
		<dc:creator><![CDATA[James Lin]]></dc:creator>
				<category><![CDATA[HTML5]]></category>
		<category><![CDATA[Web Design]]></category>

		<guid isPermaLink="false">http://james.lin.net.nz/?p=724</guid>
		<description><![CDATA[If you are in the web design industry, you are most likely suffering cross browser compatibility issues in HTML4. It is a luxury dream of every web developer to write once and run on any browser, and certainly we hope that we have learnt our lesson and not suffer again in HTML5. History tells us,… <span class="read-more"><a href="https://james.lin.net.nz/2011/08/02/html5-fragmenting-already/">Read More &#187;</a></span>]]></description>
				<content:encoded><![CDATA[<p>If you are in the web design industry, you are most likely suffering cross browser compatibility issues in HTML4. It is a luxury dream of every web developer to write once and run on any browser, and certainly we hope that we have learnt our lesson and not suffer again in HTML5.</p>
<p>History tells us, we as human, will repeat history, for example,  have a look at my previous blog about<a href="http://james.lin.net.nz/2011/07/25/html5-form-elements-demo/"> HTML 5 Form Elements Demo</a> Firefox already doesn&#8217;t support some of the elements. Another example,<a href="http://stackoverflow.com/questions/6853366/html5-getcurrentposition-how-to-execute-javascript-code-rigth-after-user-clicked"> location detection</a>, Firefox provides more user options than other browsers(eg. Chrome) which makes implementation extremely difficult.</p>
<p>Due to fragmentation like this, we are forced to skip this location feature in our next software release, hopefully we can come up a better approach before the next release.</p>
]]></content:encoded>
			<wfw:commentRss>https://james.lin.net.nz/2011/08/02/html5-fragmenting-already/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	<post-id xmlns="com-wordpress:feed-additions:1">724</post-id>	</item>
		<item>
		<title>HTML5 Form Elements Demo</title>
		<link>https://james.lin.net.nz/2011/07/25/html5-form-elements-demo/</link>
		<comments>https://james.lin.net.nz/2011/07/25/html5-form-elements-demo/#respond</comments>
		<pubDate>Mon, 25 Jul 2011 01:27:39 +0000</pubDate>
		<dc:creator><![CDATA[James Lin]]></dc:creator>
				<category><![CDATA[HTML5]]></category>

		<guid isPermaLink="false">http://james.lin.net.nz/?p=677</guid>
		<description><![CDATA[Place Holder [crayon-5a658ceaec6ed727363690/] Email Type [crayon-5a658ceaec70a147087397/] Required Attribute [crayon-5a658ceaec719006814150/] Number Type (N/A on firefox) [crayon-5a658ceaec727243186901/] Range Type (N/A on firefox) [crayon-5a658ceaec735396131360/]]]></description>
				<content:encoded><![CDATA[<p><strong>Place Holder</strong><br />
<input type="text" placeholder="This is a place holder" size="30"/></p><pre class="crayon-plain-tag">&lt;input type=&quot;text&quot; placeholder=&quot;This is a place holder&quot; size=&quot;30&quot;/&gt;</pre><p></p>
<p><strong>Email Type</strong></p>
<form>
<input type="email" size="50" placeholder="enter invalid email address and hit submit"/><br />
<input type="submit" value="submit"/><br />
</form>
<p></p><pre class="crayon-plain-tag">&lt;input type=&quot;email&quot; size=&quot;50&quot; placeholder=&quot;enter invalid email address and hit submit&quot;/&gt;</pre><p></p>
<p><strong>Required Attribute</strong></p>
<form>
<input type="email" size="50" placeholder="hit submit" required/><br />
<input type="submit" value="submit"/><br />
</form>
<p></p><pre class="crayon-plain-tag">&lt;input type=&quot;email&quot; size=&quot;50&quot; placeholder=&quot;hit submit&quot; required/&gt;</pre><p></p>
<p><strong>Number Type (N/A on firefox)</strong><br />
<input type="number" min="1" max="10" step="1" value="1"/><br />
<input type="number" min="1" max="10" step="2" value="1"/></p><pre class="crayon-plain-tag">&lt;input type=&quot;number&quot; min=&quot;1&quot; max=&quot;10&quot; step=&quot;1&quot; value=&quot;1&quot;/&gt;
&lt;input type=&quot;number&quot; min=&quot;1&quot; max=&quot;10&quot; step=&quot;2&quot; value=&quot;1&quot;/&gt;</pre><p></p>
<p><storng>Range Type (N/A on firefox)</strong><br />
<input type="range" min="1" max="10" step="1" value="1"/></p><pre class="crayon-plain-tag">&lt;input type=&quot;range&quot; min=&quot;1&quot; max=&quot;10&quot; step=&quot;1&quot; value=&quot;1&quot;/&gt;</pre><p></p>
]]></content:encoded>
			<wfw:commentRss>https://james.lin.net.nz/2011/07/25/html5-form-elements-demo/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	<post-id xmlns="com-wordpress:feed-additions:1">677</post-id>	</item>
	</channel>
</rss>
