This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
'use strict' | |
const time = Date.now() * 1e3 | |
const start = process.hrtime() | |
module.exports.now = function () { | |
const diff = process.hrtime(start) | |
return time + diff[0] * 1e6 + Math.round(diff[1] * 1e-3) | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import './index.less' | |
import qs from 'querystring' | |
import { throttle } from 'lodash' | |
import Menu from 'compoents/menu' | |
import ItemTpl from './tpl/item.html?tpl' | |
class App { | |
constructor () { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* The first commented line is your dabblet’s title | |
*/ | |
background: #f06; | |
background: linear-gradient(45deg, #f06, yellow); | |
min-height: 100%; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.wrap { | |
width: 990px; | |
margin: 0 auto; | |
} | |
.w990 { | |
margin: 10px auto; | |
padding: 10px; | |
border: 1px solid #ccc; | |
-webkit-border-radius: 5px; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
豆瓣新碟榜 | |
<img src="http://img3.douban.com/spic/s24634103.jpg"> | |
1. <a href="">Bloodsports</a> Suede | |
<img src="http://img3.douban.com/spic/s24963549.jpg"> | |
2. <a href="">The 20/20 Experience</a> Justin Timberlake | |
<img src="http://img3.douban.com/spic/s25802131.jpg"> | |
3. <a href="">Les Miserables Origi...</a> Hugh Jackman |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
豆瓣新碟榜 | |
<img src="http://img3.douban.com/spic/s24634103.jpg"> | |
1. <a href="">Bloodsports</a> Suede | |
<img src="http://img3.douban.com/spic/s24963549.jpg"> | |
2. <a href="">The 20/20 Experience</a> Justin Timberlake | |
<img src="http://img3.douban.com/spic/s25802131.jpg"> | |
3. <a href="">Les Miserables Origi...</a> Hugh Jackman |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
a{ | |
display:table-cell; | |
background:green; | |
vertical-align:bottom; | |
padding-left:10px; | |
padding-bottom:5px; | |
height:130px; | |
width:250px; | |
} | |
a:hover{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.warpper{ | |
width: 900px; | |
margin: 0 auto; | |
overflow: hidden; | |
} | |
.main-wapper{ | |
float: left; | |
width: 100%; | |
margin-right: -220px; | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.warpper{ | |
width: 900px; | |
margin: 0 auto; | |
overflow: hidden; | |
} | |
.main-wapper{ | |
float: left; | |
width: 100%; | |
margin-right: -220px; | |
NewerOlder