<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/"><channel><title>JQuery on Lin's Blog</title><link>https://coder.tw/en/tags/jquery/</link><description>Recent content in JQuery on Lin's Blog</description><generator>Hugo</generator><language>en-US</language><lastBuildDate>Sat, 10 Dec 2016 15:19:09 +0000</lastBuildDate><atom:link href="https://coder.tw/en/tags/jquery/index.xml" rel="self" type="application/rss+xml"/><item><title>Copying Text to the Clipboard with JavaScript</title><link>https://coder.tw/en/posts/javascript-copy-to-clipboard/</link><pubDate>Sat, 10 Dec 2016 15:19:09 +0000</pubDate><guid>https://coder.tw/en/posts/javascript-copy-to-clipboard/</guid><description>&lt;p&gt;In the past, using JavaScript to copy and paste text through the clipboard was very cumbersome. While developing NTUST.ME, a short URL service for National Taiwan University of Science and Technology, I wanted to make it easy for people to copy the shortened URLs, so I looked into the clipboard API in JavaScript. I found that newer browsers have an execCommand function that supports many handy text operations, such as copy and select all. Let me introduce it to you!&lt;/p&gt;</description></item><item><title>【jQuery】Lazyload - Delayed Image Loading</title><link>https://coder.tw/en/posts/jquery-lazyload/</link><pubDate>Wed, 27 Apr 2011 19:15:30 +0000</pubDate><guid>https://coder.tw/en/posts/jquery-lazyload/</guid><description>&lt;p&gt;&lt;a href="https://pub-6c026d2742d14927bfa2d850c31eac91.r2.dev/wp-content/uploads/2011/04/2011-04-27_191427.jpg"&gt;&lt;img class="size-large wp-image-429 aligncenter" title="2011-04-27_191427" src="https://pub-6c026d2742d14927bfa2d850c31eac91.r2.dev/wp-content/uploads/2011/04/2011-04-27_191427-540x481.jpg" alt="" width="540" height="481" /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Photography websites often have a lot of images. When visitors browse these sites, it takes quite a while to load because so many photos have to be loaded. This has a big impact on the website&amp;rsquo;s host traffic, and it also increases the CPU time on the visitor&amp;rsquo;s side a lot. Here I want to introduce Lazyload, a jQuery plugin that delays image loading. In other words, when you enter a website, it doesn&amp;rsquo;t load all the images at once. It only loads some of them, and as you scroll the browser, it loads &amp;ldquo;the images in the section you are looking at,&amp;rdquo; so the page loads faster.&lt;/p&gt;</description></item><item><title>Generating QR Codes Directly in the Browser With jQuery.qrcode</title><link>https://coder.tw/en/posts/jquery-qrcode-in-browser/</link><pubDate>Fri, 08 Apr 2011 15:42:44 +0000</pubDate><guid>https://coder.tw/en/posts/jquery-qrcode-in-browser/</guid><description>&lt;p&gt;&lt;a href="https://pub-6c026d2742d14927bfa2d850c31eac91.r2.dev/wp-content/uploads/2011/04/2011-04-08_153812.jpg"&gt;&lt;img class="size-large wp-image-389 aligncenter" title="2011-04-08_153812" src="https://pub-6c026d2742d14927bfa2d850c31eac91.r2.dev/wp-content/uploads/2011/04/2011-04-08_153812-540x357.jpg" alt="" width="540" height="357" /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;There are many ways to draw a QR Code. You can write your own function to draw it, or you can use an API someone else provides. For example, using the Google Chat API to generate a QR Code is the API approach. The jquery.qrcode covered in this post uses a function someone else wrote to generate the code. At first I couldn&amp;rsquo;t tell the difference between jquery.qrcode and the Google Chat API. Later I learned that the Google Chat API sends the data to Google&amp;rsquo;s servers to generate the code, while jquery.qrcode draws it directly in the browser.&lt;/p&gt;</description></item></channel></rss>