注册 登录
小野人亲子活动网 返回首页

zhwp826的个人空间 http://home.xiaoyeren.com/?1573 [收藏] [复制] [分享] [RSS]

日志

你累不累?我给你搬个凳子吧?

已有 514 次阅读2013-1-21 20:30

2013.01.21星期一
吃完晚饭,我刷碗,涵涵和爸爸一起在做连线的游戏。
我刷完碗接着拿抹布蹲地上擦地。
一会涵涵跑过来,喊着:“妈妈,妈妈,你看我连的”
我扭头一看,涵涵拿着一张白纸,上面画着桌子、沙发、柜子等,涵涵已经练好线。
我看了连连夸奖,夸爸爸画的好,涵涵连得正确。
然后涵涵走了,我继续转身擦地。
“你累不累?”我以为涵涵走了,在和爸爸说话。
“你累不累?”我转身看到涵涵站在门口看着我,知道是对我说的。
我说:“不累”,涵涵看着我没说话,是不是我说错了,我接着说:“累一点,一会我休息一下就好了”
涵涵:“我给你搬个凳子吧?”
我连忙说:“不用了,妈妈擦地,不用坐凳子”
涵涵走了
我感动......

(function main(Global) { var CONSTANTS = { PLAYER_DOM: 'object[data],embed[src],iframe[src]', PLAYERS: [ { find: /^http:\/\/static\.youku\.com\/.*?q?(player|loader)(_[^.]+)?\.swf/, replace: 'http://player.opengg.me/loader.swf' }, { find: /^http:\/\/js\.tudouui\.com\/.*?\/TudouVideoPlayer_Homer_[^.]*?.swf/, replace: 'http://player.opengg.me/TudouVideoPlayer_Homer_238.swf' }, { find: /^http:\/\/player\.youku\.com\/player\.php\//, replace: 'http://player.opengg.me/player.php/' }, { find: /^http:\/\/dp\.tudou\.com\/nplayer[^.]*?\.swf|http:\/\/js\.tudouui\.com\/doupao\/nplayer[^.]*?\.swf/, replace: 'http://player.opengg.me/nplayer.swf' }, { find: /^http:\/\/www.tudou.com\/(([a-z]|programs)\/.*)/, replace: 'http://player.opengg.me/td.php/$1' } ], SHARE_DOM: '#panel_share input,input#copyInput.txt', SHARES: [ { find: /http:\/\/player\.youku\.com\/player\.php\//, replace: 'http://player.opengg.me/player.php/' }, { find: /http:\/\/www.tudou.com\/(.*v\.swf)/, replace: 'http://player.opengg.me/td.php/$1' } ], TIPS_HOLDER: '#miniheader,#gTop', TIPS: '
OpenGG.Clean.Player \u5DF2\u542F\u7528 \u5bbd\u5c4f/\u7a84\u5c4f \u53CD\u9988\u6350\u52A9
', STYLE: '.playBox_thx #player.player,.playBox_thx #player.player object{min-height:' + Math.max(Global.innerHeight * 0.6, 580) + 'px !important}.tips_container{position:absolute;top:3em;padding:1em 2em;right:50px;color:green;opacity:0.4;background:#ddd;z-index:999999}.tips_container:hover{opacity:0.8}.tips_container .tips_toggleWide{color:red;cursor:pointer;display:none}', NODEINSERTED_HACK: '@-moz-keyframes nodeInserted{from{opacity:0.99;}to{opacity:1;}}@-webkit-keyframes nodeInserted{from{opacity:0.99;}to{opacity:1;}}@-o-keyframes nodeInserted{from{opacity:0.99;}to{opacity:1;}}@keyframes nodeInserted{from{opacity:0.99;}to{opacity:1;}}embed,object{animation-duration:.001s;-ms-animation-duration:.001s;-moz-animation-duration:.001s;-webkit-animation-duration:.001s;-o-animation-duration:.001s;animation-name:nodeInserted;-ms-animation-name:nodeInserted;-moz-animation-name:nodeInserted;-webkit-animation-name:nodeInserted;-o-animation-name:nodeInserted;}', TOGGLE_BTN: '.tips_container .tips_toggleWide' }; var DONE = []; var UTIL = { addCss: function (str) { var style = document.createElement('style'); style.textContent = str; document.head.appendChild(style); }, procFlash: function (elem) { if (DONE.indexOf(elem) !== -1) { return; } if (this.reloadFlash(elem)) { DONE.push(elem); } }, reloadFlash: function (elem) { var attrs = ['data', 'src']; var players = CONSTANTS.PLAYERS; var reloaded = false; UTIL.forEach(attrs, function (attr) { UTIL.forEach(players, function (player) { var find = player.find; var replace = player.replace; var value = elem[attr]; if (value && find.test(value)) { var nextSibling = elem.nextSibling; var parentNode = elem.parentNode; var clone = elem.cloneNode(true); clone[attr] = value.replace(find, replace); parentNode.removeChild(elem); parentNode.insertBefore(clone, nextSibling); //Baidu tieba shit. if(getComputedStyle(clone).display==='none'){ clone.style.display='block'; } reloaded = true; } }); }); return reloaded; }, forEach: function (arr, callback) { if (this.isArrayLike(arr)) { if (Array.prototype.forEach) { Array.prototype.forEach.call(arr, callback); } else { var i = 0; for (i = 0; i < arr.length; ++i) { callback.call(arr[i], arr[i]); } } } }, isArrayLike: function (obj) { if (typeof obj !== 'object') { return false; } var types = ['Array', 'NodeList', 'HTMLCollection']; var i = 0; for (i = 0; i < types.length; ++i) { if (Object.prototype.toString.call(obj).indexOf(types[i]) !== -1) { return true; } } return false; } }; var STORE; (function(){ var isStorage = true; if(!Global.localStorage){ isStorage = false; }else{ try{ var key = String(Math.random()); localStorage.setItem(key,'test'); if(localStorage.getItem(key)!=='test'){ throw 'not equal'; } localStorage.removeItem(key); }catch(e){ isStorage=false; } } STORE = { getItem: function(key){ if(isStorage){ return localStorage.getItem(key); } }, setItem: function(key, value){ if(isStorage){ localStorage.setItem(key, value); } } }; })(); function init() { function onDOMNodeInsertedHandler(e) { var target = e.target; if (target.nodeType === 1 && /OBJECT|EMBED|IFRAME/ig.test(target.nodeName)) { UTIL.procFlash(target); } } function onAnimationStartHandler(e) { if (e.animationName === 'nodeInserted') { var target = e.target; if (target.nodeType === 1 && /OBJECT|EMBED|IFRAME/ig.test(target.nodeName)) { UTIL.procFlash(target); } } } function animationNotSupported(){ var style = document.createElement('div').style; var arr = ['animation', 'MozAnimation', 'webkitAnimation', 'OAnimation']; for(var i =0;i<arr.length;++i){ if( arr[i] in style){ return false; } } return true; } /* animationstart not invoked in background tabs of chrome 21 */ var all = document.querySelectorAll('OBJECT,EMBED,IFRAME'); for(var i=0;i<all.length;++i){ UTIL.procFlash(all[i]); } UTIL.addCss(CONSTANTS.NODEINSERTED_HACK); /*Firefox*/ document.body.addEventListener('animationstart', onAnimationStartHandler, false); /*/Firefox*/ /*Chrome*/ document.body.addEventListener('webkitAnimationEnd', onAnimationStartHandler, false); /*/Chrome*/ /*Opera 12+*/ document.body.addEventListener('oAnimationStart', onAnimationStartHandler, false); /*/Opera 12+*/ /*IE, but I never tested this*/ document.body.addEventListener('msAnimationStart', onAnimationStartHandler, false); /*/IE, but I never tested this*/ if (animationNotSupported()) { /*Old fashion, slower maybe*/ document.body.addEventListener('DOMNodeInserted', onDOMNodeInsertedHandler, false); var matches = document.body.querySelectorAll(CONSTANTS.PLAYER_DOM); UTIL.forEach(matches, function (elem) { UTIL.procFlash(elem); }); } } function tips() { var holder = document.body.querySelector(CONSTANTS.TIPS_HOLDER); if (holder) { var div = document.createElement('div'); if (document.defaultView.getComputedStyle(holder, null).getPropertyValue('position') !== 'relative') { div.style.position = 'relative'; } div.innerHTML = CONSTANTS.TIPS; holder.appendChild(div); UTIL.addCss(CONSTANTS.STYLE); } } function share(elem) { var pairs = CONSTANTS.SHARES; UTIL.forEach(pairs, function (item) { elem.value = elem.value.replace(item.find, item.replace); }); } function setTHX(opt){ var player = document.querySelector('object#movie_player'); var parent = document.body.querySelector('.playBox'); var wide = document.body.querySelector('.playBox_thx'); if(opt&&player){ try{ player.setTHX(opt); }catch(e){} switch(opt){ case 'on': if (parent && !wide) { parent.className += ' playBox_thx'; } break; case 'off': if (parent && wide) { parent.className = 'playBox'; } break; } } } var CONTROLLER = [ { host: '.', fn: function () { init(); } }, { host: 'youku.com', fn: function () { var matches = document.body.querySelectorAll(CONSTANTS.SHARE_DOM); UTIL.forEach(matches, share); tips(); if(STORE.getItem('THX')==='on'){ setTHX(STORE.getItem('THX')); } var toggle = document.body.querySelector(CONSTANTS.TOGGLE_BTN); toggle.style.display='inline'; toggle.addEventListener('click',function(){ STORE.setItem('THX',STORE.getItem('THX')==='on'?'off':'on'); setTHX(STORE.getItem('THX')); },false); } }, { host: 'tudou.com', fn: function () { function hack(){ var TUI_copyToClip = Global.TUI&&Global.TUI.copyToClip; if(TUI_copyToClip&&TUI_copyToClip.toString().indexOf('arguments')===-1){ Global.TUI.copyToClip = function () { var matches = document.body.querySelectorAll(CONSTANTS.SHARE_DOM); UTIL.forEach(matches, share); TUI_copyToClip.apply(Global.TUI, arguments); }; clearInterval(inter); } } tips(); var tudouPlayer = document.body.querySelector('#playerObject'); var normalDom = document.querySelector('.normal'); if (tudouPlayer && normalDom) { normalDom.className = normalDom.className.replace('normal','widescreen'); } var inter = setInterval(hack,100); try{ Global.playerEx.event.fire('scale',[true]); }catch(e){} } } ]; var host = location.host; function PROC(item) { if (host.indexOf(item.host) !== -1) { item.fn(); return; } } UTIL.forEach(CONTROLLER, PROC); })(window);

路过

雷人

握手

鲜花

鸡蛋

评论 (0 个评论)

facelist doodle 涂鸦板

您需要登录后才可以评论 登录 | 注册
验证码 换一个

手机版|关于我们|联系我们|诚聘英才|免责声明|积分规则|Archiver|小野人亲子活动网 ( 京ICP证110937 )  

GMT+8, 2018-11-21 18:13 , Processed in 0.019976 second(s), 9 queries , Apc On.

Copyright©2009-2016 Sinoidea co.,Ltd

All Rights Reserved

回顶部