A simple page with an openable navigation menu on the side
This file contains hidden or 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
module.exports = function(fileInfo, api) { | |
var j = api.jscodeshift; | |
var out = j(fileInfo.source) | |
.find(j.Literal) | |
.forEach(function (path) { | |
// Only consider literals that start/end w/ double quotes | |
if (!/^".*"$/.test(path.value.raw)) { | |
return; | |
} |
This file contains hidden or 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
<div class="wrapper"> | |
<div class="docs-nav"> | |
<nav> | |
<a href="#get-started" class="active">Get Started</a> | |
<a href="#defaults">Defaults</a> | |
<a href="#frame">Frame</a> | |
<a href="#">Grid</a> | |
<a href="#">Forms</a> | |
<a href="#">Buttons</a> | |
<a href="#">Tables</a> |
Just some rain drops, pouring away.
A Pen by Matt Roper on CodePen.
This file contains hidden or 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
<h2>jQuery Filtering Demo</h2> | |
<p>Just trying to figure out how to best utilize jquery's .filter() function for future projects.</p> | |
<p> | |
<button class="f-red">Filter Red Items</button> | |
<button class="f-blue">Filter Blue Items</button> | |
<button class="f-green">Filter Green Items</button> | |
| |
<button class="f-all">All Items</button> | |
</p> |
This file contains hidden or 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
(function(factory) { | |
if(typeof define === 'function' && define.amd) { | |
define(['jquery'], factory); | |
}else { | |
factory(jQuery); | |
}; | |
}(function($) { | |
// code goes here.. |
This file contains hidden or 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
// include gulp | |
var gulp = require('gulp'); | |
// include plug-ins | |
var changed = require('gulp-changed'); // 该插件的输出为新增加或修改过的文件 | |
var imagemin = require('gulp-imagemin'); // 该插件用来压缩图片 | |
var concat = require('gulp-concat'); // 该插件用来合并文件 | |
var stripDebug = require('gulp-strip-debug'); // 该插件用来去掉console和debugger语句 |
This file contains hidden or 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
<!doctype html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<meta http-equiv="X-UA-Compatible" content="IE=edge"> | |
<title>导航定位demo</title> | |
<link href="css/normalize.css" rel="stylesheet"> | |
<style rel="stylesheet"> | |
.main { | |
width: 960px; |
This file contains hidden or 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
/*! normalize.css v3.0.1 | MIT License | git.io/normalize */ | |
/** | |
* 1. Set default font family to sans-serif. | |
* 2. Prevent iOS text size adjust after orientation change, without disabling | |
* user zoom. | |
*/ | |
html { | |
-ms-text-size-adjust: 100%; /* 2 */ |