Skip to content

Commit

Permalink
添加文件
Browse files Browse the repository at this point in the history
  • Loading branch information
jaywcjlove committed Apr 18, 2015
0 parents commit 7a691d0
Show file tree
Hide file tree
Showing 2,492 changed files with 452,457 additions and 0 deletions.
52 changes: 52 additions & 0 deletions Gruntfile.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
// 包装函数
module.exports = function(grunt) {
// 任务配置,所有插件的配置信息
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
// uglify插件的配置信息
uglify: {
options: {
// banner: '/*! http://JSLite.io - ' + '<%= grunt.template.today("yyyy-mm-dd") %> */'
// beautify: true,
// mangle: false, //不混淆变量名
// compress:true,//打开或关闭使用默认选项源压缩。
},
app_task: {
files: {
// 'build/JSLite.min.js': ['src/ie.js', 'src/JSLite.js']
}
}
},
stylus:{
build: {
options: {
linenos: false,
compress: false,
banner: '\/** \n * <%= pkg.name %> - <%= pkg.description %>\n * version <%= pkg.version %> \n * author <%= pkg.author %> \n**/\n'
//<%= grunt.template.today() %>时间
},
files: [{
'outdatedbrowser.css': 'outdatedbrowser.styl'
}]
}
},
// watch插件的配置信息
watch: {
another: {
files: ['outdatedbrowser.css','outdatedbrowser.styl'],
tasks: ['stylus'],
options: {
// Start another live reload server on port 1337
livereload: 1337
}
}
}
});
// 告诉grunt我们将使用插件
grunt.loadNpmTasks('grunt-contrib-uglify');
grunt.loadNpmTasks('grunt-contrib-watch');
grunt.loadNpmTasks('grunt-contrib-stylus');
// 告诉grunt当我们在终端中输入grunt时需要做些什么
grunt.registerTask('default', ['watch']);

};
Binary file added browsers-bg.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
44 changes: 44 additions & 0 deletions index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
<title>过时的浏览器</title>
<script type="text/javascript" src="outdatedbrowser.js"></script>
<link rel="stylesheet" type="text/css" href="outdatedbrowser.css">
</head>
<body>
<div class="outdatedbrowser">
<h1>请更新浏览器</h1>
<span class="split"></span>
<a class="browser chrome" href="#">
<h2><i class="icon"></i>CHROME</h2>
<span class="btn">下载</span>
<h4>在以下操作系统可用 </h4>
<p><span class="windows">Windows</span><span class="windows">Mac OS</span><span class="windows">Linux</span></p>
</a><a class="browser firefox" href="#">
<h2><i class="icon"></i>Firefox</h2>
<span class="btn">下载</span>
<h4>在以下操作系统可用 </h4>
<p><span class="windows">Windows</span><span class="windows">Mac OS</span><span class="windows">Linux</span></p>
</a><a class="browser internetExplorer" href="#">
<h2><i class="icon"></i>INTERNET EXPLORER</h2>
<span class="btn">下载</span>
<h4>在以下操作系统可用 </h4>
<p><span class="windows">Windows</span><span class="windows">Mac OS</span><span class="windows">Linux</span></p>
</a><a class="browser safari" href="#">
<h2><i class="icon"></i>SAFARI</h2>
<span class="btn">下载</span>
<h4>在以下操作系统可用 </h4>
<p><span class="windows">Windows</span><span class="windows">Mac OS</span><span class="windows">Linux</span></p>
</a><a class="browser opera" href="#">
<h2><i class="icon"></i>OPERA</h2>
<span class="btn">下载</span>
<h4>在以下操作系统可用 </h4>
<p><span class="windows">Windows</span><span class="windows">Mac OS</span><span class="windows">Linux</span></p>
</a>
</div>
<script type="text/javascript">
// window.outdatedbrowser()
</script>
</body>
</html>
127 changes: 127 additions & 0 deletions node_modules/grunt-contrib-stylus/CHANGELOG

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

22 changes: 22 additions & 0 deletions node_modules/grunt-contrib-stylus/LICENSE-MIT

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 7a691d0

Please sign in to comment.