Skip to content

Commit 8bc3baa

Browse files
committed
initial commit
0 parents  commit 8bc3baa

File tree

132 files changed

+22664
-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.

132 files changed

+22664
-0
lines changed

Diff for: .bowerrc

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

Diff for: .vulcanize.json

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
{
2+
"excludes": {
3+
"imports": [
4+
"polymer"
5+
],
6+
"scripts": [
7+
"jquery",
8+
"jenga"
9+
]
10+
}
11+
}

Diff for: bower.json

+30
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
{
2+
"name": "x-dialog",
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+
}

Diff for: components/jenga/.bower.json

+33
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
{
2+
"name": "jenga",
3+
"description": "z-index management",
4+
"authors": [
5+
{
6+
"name": "Jason Strimpel",
7+
"email": "[email protected]"
8+
}
9+
],
10+
"main": "dist/jenga.js",
11+
"repository": {
12+
"type": "git",
13+
"url": "[email protected]:jstrimpel/jenga.git"
14+
},
15+
"ignore": [
16+
"**/.*",
17+
"node_modules",
18+
"bower_components",
19+
"test",
20+
"tests"
21+
],
22+
"homepage": "https://github.com/jstrimpel/jenga",
23+
"_release": "912f71e4cc",
24+
"_resolution": {
25+
"type": "branch",
26+
"branch": "master",
27+
"commit": "912f71e4cc9c358a038ff667dfa9bc3e51b49829"
28+
},
29+
"_source": "git://github.com/jstrimpel/jenga.git",
30+
"_target": "*",
31+
"_originalSource": "jenga",
32+
"_direct": true
33+
}

Diff for: components/jenga/Gruntfile.js

+63
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+
};

Diff for: components/jenga/bower.json

+18
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+
}

Diff for: components/jenga/debugging/index.html

+16
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>

Diff for: components/jenga/debugging/noStackingContent.html

+22
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>

Diff for: components/jenga/demo/index.html

+16
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)