喜欢平面,没有特别多的阴影,没有那么拟物化,用新鲜的颜色反映各种变化……
控件主打冷灰色,突出科技感
// 顺延函数:如果上一个动作完成,则当前动作替换上一个 | |
function shift(fn, time) { | |
time = time || 50; | |
var queue = this._shift_fn, current; | |
queue ? queue.concat([fn, time]) : (queue = [[fn, time]]); | |
current = queue.pop(); | |
clearTimeout(this._shift_timeout); | |
this._shift_timeout = setTimeout(function() { |
var obj = { | |
hello: function() { | |
console.log('sofish'); | |
}, | |
world: function(){ | |
console.log('lin'); | |
} | |
}; | |
var fn = function(hello, ooxx, world){ |
<!Doctype html> | |
<html> | |
<head> | |
<meta charset="utf-8" /> | |
<title>multiple actions</title> | |
</head> | |
<body> | |
<h4>open the console and click the buttons:</h4> |
SetEnvIf Origin "^(.*\.baixing\.com)$" ORIGIN_SUB_DOMAIN=$1 | |
<FilesMatch "\.(ttf|otf|eot|woff)"> | |
<IfModule mod_headers.c> | |
Header set Access-Control-Allow-Origin "%{ORIGIN_SUB_DOMAIN}e" env=ORIGIN_SUB_DOMAIN | |
</IfModule> | |
</FilesMatch> |
<?php | |
$url = new Url(); | |
$page = $url->post('page'); | |
if(!$page) return; | |
class ErrorTrace extends MongoData { | |
// MongoData 中没有,区别 http://stackoverflow.com/a/7958954 |
var nocomment = function(str) { | |
var div = document.createElement('div') | |
, inline = /([^\\])\/\/[^\n]*(\n?)/g | |
, reg = /\/[^\/]*\/g?m?i?[^\*]?/g | |
, commentLikeReg = /\/\\\/\*[^\/]*\*\//g | |
, string = new RegExp('(\'[^\']*\')|("[^"]*")','g') | |
, identifier = 'SOFISH_S_METHOD_TO_REMOVE_JS_COMMENTS_' | |
, matches = [] | |
, counter = 0 | |
, strReplace; |
<!DOCTYPE HTML> | |
<html> | |
<head> | |
<meta charset="UTF-8"> | |
<title>css</title> | |
<style> | |
a{display:table-cell;background:green;vertical-align:bottom;padding-left:10px;padding-bottom:5px;height:130px;width:250px;} | |
a:hover{-moz-transition:all ease-in 1s;-webkit-transition:all ease-in 1s;transition:all ease-in 1s;background:#8fc;font-size:40px;} | |
</style> | |
</head> |
<!doctype html> | |
<html> | |
<body style="position:relative;"> | |
<div style="position:absolute;height:100px;width:800px;background:#ddd;z-index:10;">ddddd</div> | |
<div style="position:absolute;z-index:9"> | |
<embed allowTransparency="true" src="http://player.youku.com/player.php/Type/Folder/Fid/18518455/Ob/1/sid/XNDcxMDg3ODcy/v.swf" quality="high" width="480" height="400" align="middle" allowScriptAccess="always" allowFullScreen="true" mode="transparent" type="application/x-shockwave-flash"></embed> | |
</div> |
// JS: | |
(function(){console.log('(' + arguments.callee.toString() + ')()')})(); | |
// JS, recursion | |
~function (){ | |
typeof i !== 'number' && (i = 0); | |
return (i++ < 3) && | |
(fn = '~' + arguments.callee.toString() + '()') && | |
(console.log(fn), eval(fn)); |