create different ssh key according the article Mac Set-Up Git
$ ssh-keygen -t rsa -C "your_email@youremail.com"
| <script type="text/javascript"> | |
| var bForcepc | |
| = fGetQuery("dv") == "pc"; | |
| function | |
| fBrowserRedirect(){ | |
| var sUserAgent = navigator.userAgent.toLowerCase(); | |
| var bIsIpad = sUserAgent.match(/ipad/i) == | |
| "ipad"; | |
| var bIsIphoneOs = sUserAgent.match(/iphone os/i) == "iphone os"; | |
| var bIsMidp = sUserAgent.match(/midp/i) == "midp"; |
| <script type="text/javascript"> | |
| if(/AppleWebKit.*Mobile/i.test(navigator.userAgent) || (/MIDP|SymbianOS|NOKIA|SAMSUNG|LG|NEC|TCL|Alcatel|BIRD|DBTEL|Dopod|PHILIPS|HAIER|LENOVO|MOT-|Nokia|SonyEricsson|SIE-|Amoi|ZTE/.test(navigator.userAgent))){ | |
| if(window.location.href.indexOf("?mobile")<0){ | |
| try{ | |
| if(/Android|webOS|iPhone|iPod|BlackBerry/i.test(navigator.userAgent)){ | |
| window.location.href="http://shipei.qq.com/index.htm"; | |
| }else if(/iPad/i.test(navigator.userAgent)){ | |
| }else{ | |
| window.location.href="http://shipei.qq.com/simple/s/index/" | |
| } |
| //HTML5提供了一个新属性naturalWidth/naturalHeight可以直接获取图片的原始宽高。这两个属性在Firefox/Chrome/Safari/Opera及IE9里已经实现。改造下获取图片尺寸的方法。 | |
| //http://www.w3.org/TR/2011/WD-html5-author-20110705/the-img-element.html#dom-img-naturalwidth | |
| //http://www.w3.org/TR/2011/WD-html5-author-20110705/the-img-element.html#dom-img-naturalheight | |
| function getImgNaturalDimensions(img, callback) { | |
| var nWidth, nHeight; | |
| if (img.naturalWidth) { | |
| nWidth = img.naturalWidth; | |
| nHeight = img.naturalHeight; | |
| } else { |
create different ssh key according the article Mac Set-Up Git
$ ssh-keygen -t rsa -C "your_email@youremail.com"
| var a = document.getElementById("eq").offsetTop; | |
| if (a >= $(window).scrollTop() && a < ($(window).scrollTop()+$(window).height())) { | |
| alert("div在可视范围"); | |
| } |
| /** | |
| * Creates a read/writable property which returns a function set for write/set (assignment) | |
| * and read/get access on a variable | |
| * | |
| * @param {Any} value initial value of the property | |
| */ | |
| function createProperty(value) { | |
| var _value = value; | |
| /** |
| /* | |
| * 使用说明: | |
| * 本程序以完成固定宽度布局的网页在iPhone/Android设备上浏览时可以适配设备屏幕宽度(竖屏浏览, 暂未支持横屏浏览) | |
| * 为目的。正常运行的环境是: iPhone/Android设备的自带浏览器. | |
| * 如有问题,意见或建议,请到我的博客页面留言,或发送邮件. | |
| * 其他移动版浏览器的适配问题, 不在本程序处理范围, 若有相关问题, 请留言或发送邮件. | |
| * | |
| * 博客页面地址: | |
| * http://www.cnblogs.com/plums/archive/2013/01/10/WebApp-fixed-width-layout-of-multi-terminal-adapter-since.html | |
| * 邮箱: limuchen12@126.com |
| <!DOCTYPE html> | |
| <html lang="en"> | |
| <head> | |
| <meta charset="UTF-8"> | |
| <meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0"> | |
| <title>Auto play html audio in iOS WeChat InAppBrowser the right way</title> | |
| </head> | |
| <body> | |
| <h1>在 iOS 微信浏览器中自动播放 HTML5 audio(音乐) 的正确方式</h1> | |
| <p>核心原理: 在微信的JS-API 中 play 一下 audio 即可达到自动播放的目的(应该是微信自己做了处理)</p> |