Skip to content

Commit 61f1a0a

Browse files
committed
flattened code resources
1 parent c5823b0 commit 61f1a0a

File tree

3,495 files changed

+692473
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

3,495 files changed

+692473
-0
lines changed

.bowerrc

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
{ "directory" : "." }

bower.json

+44
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
{
2+
"name": "web-components-book-code-examples",
3+
"version": "0.0.0",
4+
"authors": [
5+
"Jason Strimpel <[email protected]>"
6+
],
7+
"description": "a flattened version of the book code samples",
8+
"moduleType": [
9+
"globals"
10+
],
11+
"keywords": [
12+
"web components"
13+
],
14+
"license": "MIT",
15+
"homepage": "https://github.com/WebComponentsBook/code-examples",
16+
"ignore": [
17+
"**/.*",
18+
"node_modules",
19+
"bower_components",
20+
"vendor",
21+
"test",
22+
"tests"
23+
],
24+
"dependencies": {
25+
"chapter-16_grunt-vulcanize": "*",
26+
"chapter-16_vulcanize": "*",
27+
"x-dialog-chapter-15_karma": "*",
28+
"chapter-14_x-dialog": "*",
29+
"chapter-14_x-dialog-nojquery": "*",
30+
"chapter-9_dialog": "*",
31+
"chapter-8_apache-chief": "*",
32+
"chapter-8_dialog": "*",
33+
"chapter-7_shamen": "*",
34+
"chapter-7_dialog": "*",
35+
"chapter-6_duvet": "*",
36+
"chapter-6_dialog": "*",
37+
"chapter-5_dialog": "*",
38+
"chapter-4_dialog": "*",
39+
"chapter-3_dialog": "*",
40+
"chapter-2_voltron": "*",
41+
"chapter-2_dialog": "*",
42+
"webcomponent-seed": "*"
43+
}
44+
}
+38
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
{
2+
"name": "chapter-14_x-dialog-nojquery",
3+
"authors": [
4+
"Jarrod Overson <[email protected]>"
5+
],
6+
"description": "a dialog box web component",
7+
"main": "./x-dialog.html",
8+
"moduleType": [
9+
"globals"
10+
],
11+
"keywords": [
12+
"dialog"
13+
],
14+
"license": "MIT",
15+
"homepage": "http://github.com/YOURUSER/x-dialog.html",
16+
"ignore": [
17+
"**/.*",
18+
"node_modules",
19+
"bower_components",
20+
"vendor",
21+
"test",
22+
"tests"
23+
],
24+
"dependencies": {
25+
"polymer": "~0.3.3",
26+
"jquery": "~2.1.1",
27+
"jenga": "*"
28+
},
29+
"_release": "62f2de0647",
30+
"_resolution": {
31+
"type": "branch",
32+
"branch": "master",
33+
"commit": "62f2de06474e881b3196c522e9367e50014edf62"
34+
},
35+
"_source": "git://github.com/WebComponentsBook/chapter-14_x-dialog-nojquery.git",
36+
"_target": "*",
37+
"_originalSource": "chapter-14_x-dialog-nojquery"
38+
}
+30
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
{
2+
"name": "chapter-14_x-dialog-nojquery",
3+
"version": "0.0.0",
4+
"authors": [
5+
"Jarrod Overson <[email protected]>"
6+
],
7+
"description": "a dialog box web component",
8+
"main": "./x-dialog.html",
9+
"moduleType": [
10+
"globals"
11+
],
12+
"keywords": [
13+
"dialog"
14+
],
15+
"license": "MIT",
16+
"homepage": "http://github.com/YOURUSER/x-dialog.html",
17+
"ignore": [
18+
"**/.*",
19+
"node_modules",
20+
"bower_components",
21+
"vendor",
22+
"test",
23+
"tests"
24+
],
25+
"dependencies": {
26+
"polymer": "~0.3.3",
27+
"jquery": "~2.1.1",
28+
"jenga": "*"
29+
}
30+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,63 @@
1+
module.exports = function (grunt) {
2+
3+
'use strict';
4+
5+
grunt.initConfig({
6+
pkg: grunt.file.readJSON('package.json'),
7+
meta: {
8+
version: '<%= pkg.version %>',
9+
banner: '// Jenga: fuck z-indexes\n' +
10+
'// ----------------------------------\n' +
11+
'// v<%= pkg.version %>\n' +
12+
'//\n' +
13+
'// Copyright (c)<%= grunt.template.today("yyyy") %> Jason Strimpel\n' +
14+
'// Distributed under MIT license\n'
15+
},
16+
preprocess: {
17+
global: {
18+
files: {
19+
'dist/jenga.js': 'src/jenga.global.js'
20+
}
21+
},
22+
amd: {
23+
files: {
24+
'dist/jenga.amd.js': 'src/jenga.amd.js'
25+
}
26+
},
27+
plugin: {
28+
files: {
29+
'dist/jenga.plugin.js': 'src/jenga.plugin.js'
30+
}
31+
}
32+
},
33+
concat: {
34+
options: {
35+
banner: "<%= meta.banner %>"
36+
},
37+
global: {
38+
src: 'dist/jenga.js',
39+
dest: 'dist/jenga.js'
40+
},
41+
amd: {
42+
src: 'dist/jenga.amd.js',
43+
dest: 'dist/jenga.amd.js'
44+
},
45+
plugin: {
46+
src: 'dist/jenga.plugin.js',
47+
dest: 'dist/jenga.plugin.js'
48+
}
49+
},
50+
mocha_phantomjs: {
51+
all: ['test/**/*.html']
52+
}
53+
});
54+
55+
grunt.loadNpmTasks('grunt-preprocess');
56+
grunt.loadNpmTasks('grunt-contrib-concat');
57+
grunt.loadNpmTasks('grunt-mocha-phantomjs');
58+
59+
grunt.registerTask('test', ['mocha_phantomjs']);
60+
grunt.registerTask('default', [
61+
'preprocess:global', 'concat:global', 'preprocess:amd', 'concat:amd', 'preprocess:plugin', 'concat:plugin'
62+
]);
63+
};
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
{
2+
"name": "jenga",
3+
"description": "z-index management",
4+
"authors": [{ "name": "Jason Strimpel", "email": "[email protected]" }],
5+
"version": "0.0.1",
6+
"main": "dist/jenga.js",
7+
"repository": {
8+
"type": "git",
9+
"url": "[email protected]:jstrimpel/jenga.git"
10+
},
11+
"ignore": [
12+
"**/.*",
13+
"node_modules",
14+
"bower_components",
15+
"test",
16+
"tests"
17+
]
18+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
<!doctype html>
2+
<html lang="en">
3+
<head>
4+
<meta charset="utf-8">
5+
<title>jenga example</title>
6+
</head>
7+
<body>
8+
<div style="z-index: 0; position: relative;"></div>
9+
<div style="z-index: 5; position: relative;"></div>
10+
<div style="z-index: 3; position: relative;" id="foo"></div>
11+
<script src="../dist/jenga.js"></script>
12+
<script type="text/javascript">
13+
jenga.sendToBack(document.getElementById('foo'));
14+
</script>
15+
</body>
16+
</html>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
<!doctype html>
2+
<html lang="en">
3+
<head>
4+
<meta charset="utf-8">
5+
<title>jenga example</title>
6+
</head>
7+
<body>
8+
<div class="1"></div>
9+
<div class="1.1"></div>
10+
<div class="1.2">
11+
<div class="2">
12+
<div class="3"></div>
13+
<div class="3"></div>
14+
<div id="foo" class="3"></div>
15+
</div>
16+
</div>
17+
<script src="../dist/jenga.js"></script>
18+
<script type="text/javascript">
19+
jenga.sendToBack(document.getElementById('foo'));
20+
</script>
21+
</body>
22+
</html>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
<!doctype html>
2+
<html lang="en">
3+
<head>
4+
<meta charset="utf-8">
5+
<title>jenga example</title>
6+
</head>
7+
<body>
8+
<div style="z-index: 0; position: relative;"></div>
9+
<div style="z-index: 5; position: relative;"></div>
10+
<div style="z-index: 20; position: relative;" id="foo"></div>
11+
<script src="../dist/jenga.js"></script>
12+
<script type="text/javascript">
13+
jenga.sendToBack(document.getElementById('foo'));
14+
</script>
15+
</body>
16+
</html>

0 commit comments

Comments
 (0)