Download from here:
MD5: 59bab8f71f8c096cd3f72cd73851515d
| #add 'node_modules' to .gitignore file | |
| git rm -r --cached node_modules | |
| git commit -m 'Remove the now ignored directory node_modules' | |
| git push origin master |
| /* | |
| * DOMParser HTML extension | |
| * 2012-09-04 | |
| * | |
| * By Eli Grey, http://eligrey.com | |
| * Public domain. | |
| * NO WARRANTY EXPRESSED OR IMPLIED. USE AT YOUR OWN RISK. | |
| */ | |
| /*! @source https://gist.github.com/1129031 */ |
| function smoothScroll(el, to, duration) { | |
| if (duration < 0) { | |
| return; | |
| } | |
| var difference = to - $(window).scrollTop(); | |
| var perTick = difference / duration * 10; | |
| this.scrollToTimerCache = setTimeout(function() { | |
| if (!isNaN(parseInt(perTick, 10))) { | |
| window.scrollTo(0, $(window).scrollTop() + perTick); | |
| smoothScroll(el, to, duration - 10); |
Download from here:
MD5: 59bab8f71f8c096cd3f72cd73851515d
| 如何将阿拉伯数字每三位一逗号分隔,如:15000000转化为15,000,000。 | |
| 回复时注意加上下面这句话,才会有语法高亮或格式缩进。 | |
| ```javascript |
| /** | |
| * author Remy Sharp | |
| * url http://remysharp.com/tag/marquee | |
| */ | |
| (function ($) { | |
| $.fn.marquee = function (klass) { | |
| var newMarquee = [], | |
| last = this.length; |
| (function($) { | |
| }(jQuery)); |
| HTML 5 | |
| <!DOCTYPE html> | |
| XHTML 1.1 | |
| <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" | |
| "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> | |
| XHTML 1.0 Transitional | |
| <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" | |
| "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> |
| <!--[if lt IE 8]><html class="ltie8 ie"> <![endif]--> | |
| <!--[if IE 8]><html class="ie8 ie"> <![endif]--> | |
| <!--[if gt IE 8]><html class="gtie8"><![endif]--> | |
| <!--[if !IE]><!--><html><!--<![endif]--> | |
| </html> | |