Skip to content

Instantly share code, notes, and snippets.

### assets
<link href="http://g.assets.daily.taobao.net/ju/h5plat/1.0.0/cssCombo.css" rel="stylesheet">
<script src="http://g.assets.daily.taobao.net/ju/h5plat/1.0.0/jsCombo.js"></script>
### TMS区块
http://act.ju.taobao.com/go/rgn/juhuasuan/h5plat/saintaudioplay.php
. ~/bin/z/z.sh
[[ -s "$HOME/.rvm/scripts/rvm" ]] && . "$HOME/.rvm/scripts/rvm"
# Set CLICOLOR if you want Ansi Colors in iTerm2
export CLICOLOR=1
export LSCOLORS=GxFxCxDxBxegedabagaced
export PS1='\[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\]\$ '
# Set colors to match iTerm2 Terminal Colors
<head>
<meta charset="utf-8"/>
<title></title>
<meta content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0" name="viewport"/>
<meta content="yes" name="apple-mobile-web-app-capable"/>
<meta content="black" name="apple-mobile-web-app-status-bar-style"/>
<meta name="format-detection" content="telephone=no"/>
<meta name="spm-id" content="608.1104612" />
<link href="http://g.tbcdn.cn/ju/wap/1.0.2/icon/icon144.png" rel="apple-touch-icon-precomposed">
<link rel="shortcut icon" href="http://g.assets.daily.taobao.net/ju/wap/1.0.6/icon/favicon.ico" type="image/x-icon"/>
lib.mtop.request({
api: 'mtop.ju.option.get',
v: '1.0',
data: {
"platformId": "1045",
"currentPage": 1,
"pageSize": 24
}
},
function(result) {
png: {
options: {
optimizationLevel: 7
},
files: [{
expand: true,
cwd: 'assets/slice/',
src: ['*.png'],
dest: 'assets/slice-min/',
ext: '.png'
/*
* grunt-contrib-imagemin
* http://gruntjs.com/
*
* Copyright (c) 2013 Sindre Sorhus, contributors
* Licensed under the MIT license.
*/
'use strict';
<!-- 楼层导航 -->
#if($pageFloorVOList)
<div class="mulitpe-nav" #if(${pageFloorVOList.size()}<=1) style="display:none"#end>
<div class="nav-tab-wrap">
<div class="nav-prev-btn"></div>
<div class="nav-tab">
<ul>
#foreach($pageFloorVO in $pageFloorVOList)
<li data-target="floor$velocityCount">
<a>$!{pageFloorVO.floorName}</a>
define(['zepto'], function() {
function getDevicePixelRatio() {
return window.devicePixelRatio ? window.devicePixelRatio : 1;
}
function getImageSize() {
if(window.__NETWORK_STATUS__ == 3) {
return "_80x80Q90.jpg";
@sandywu
sandywu / client-laucnh.js
Created May 7, 2014 12:28
客户端唤起
var browser = {
versions: function () {
var u = navigator.userAgent, app = navigator.appVersion;
return {//移动终端浏览器版本信息
trident: u.indexOf('Trident') > -1, //IE内核
presto: u.indexOf('Presto') > -1, //opera内核
webKit: u.indexOf('AppleWebKit') > -1, //苹果、谷歌内核
gecko: u.indexOf('Gecko') > -1 && u.indexOf('KHTML') == -1, //火狐内核
mobile: !!u.match(/AppleWebKit.*Mobile.*/), //是否为移动终端
ios: !!u.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/), //ios终端