Chinese CDN List for Developers Abroad

Posted by & filed under Development, Website Development.

Here’s a list of CDN that operate in China and seem to be well maintained/stable. Baidu CDN Boot CDN Sina CDN Upai CDN CDN JS StaticFile This website offers clones of google fonts and public files for China. They mainly offer the standard JS libraries and frameworks like… Read more »

Hide or show element if checkbox input is checked

Posted by & filed under Website Development.

For example, if you wish to hide or show a textbox based on if a checkbox is selected: HTML: <input id=”showTextbox” type=”checkbox” /> <textarea id=”textbox”></textarea> JS if($(“#showTextbox”).is(‘:checked’)) $(“#textbox”).show(); // checked else $(“#textbox”).hide(); // unchecked

HTML5 Quickstart Template – Mobile Viewport, CSS3, Google Font, Latest jQuery – All Ready

Posted by & filed under HTML, Javascript, jQuery, Website Development.

Whenever I want to quickly make a webpage, I don’t want to have to build the whole page everytime. Here is my starter code for an HTML5 page. The key points are : HTML5 Doctype – Ready Viewport and Mobile – Ready Title tags, Character Set, Keyword and Description Meta, Favicon, Stylesheet tags – Ready… Read more »

How to get a substring of Chinese or Japanese text without cutting off characters in PHP?

Posted by & filed under Website Development.

I used to try to get substrings of Chinese text and would get partial characters than came out as strange diamonds or squares…. until I found the mb_strcut() function! When using PHP, avoid using the substr() function, as it will often cut off Chinese and Japanese characters. For example: $text = ‘拿小锤锤的那个人好可爱的说,哈哈哈,生活太有爱了,加油加油了’; echo substr($text, 0,… Read more »

Google Site Map Generator and Broken Link Checker

Posted by & filed under Website Development.

Found two great sites today to help create a sitemap for google and find broken links. It indexed over 3000 pages and helped me discover 2 big broken links. It even pointed me to which line in the code the broken link was found. Great websites~

Submit your website to Chinese Search Engines

Posted by & filed under Website Development.

Here are several URLs you can go to if you want to add your website to Chinese search engines for free. Google China Yahoo! China Sohu Baidu MSN China Yisousou 免费推广网站地址