-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' of https://github.com/Dibasic/SS13PaperworkSimu…
- Loading branch information
Showing
30 changed files
with
10,683 additions
and
3 deletions.
There are no files selected for viewing
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
{ | ||
"presets": [["env", { | ||
"targets": { | ||
"uglify": true | ||
} | ||
}]] | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
# EditorConfig helps developers define and maintain consistent | ||
# coding styles between different editors and IDEs | ||
# http://editorconfig.org | ||
|
||
root = true | ||
|
||
[*] | ||
# Change these settings to your own preference | ||
indent_style = space | ||
indent_size = 4 | ||
|
||
# We recommend you to keep these unchanged | ||
end_of_line = lf | ||
charset = utf-8 | ||
trim_trailing_whitespace = true | ||
insert_final_newline = true | ||
|
||
[*.md] | ||
trim_trailing_whitespace = false | ||
|
||
[{package.json,bower.json}] | ||
indent_size = 2 |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
### Minimal example | ||
|
||
> Fork this [JSFiddle](https://jsfiddle.net/zenorocha/5kk0eysw/) and reproduce your issue. | ||
### Expected behaviour | ||
|
||
I thought that by going to the page '...' and pressing the button '...' then '...' would happen. | ||
|
||
### Actual behaviour | ||
|
||
Instead of '...', what I saw was that '...' happened instead. | ||
|
||
### Browsers affected | ||
|
||
I tested on all major browsers and only IE 11 does not work. |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
lib | ||
npm-debug.log | ||
bower_components | ||
node_modules | ||
yarn-error.log | ||
yarn.lock |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
sudo: false | ||
language: node_js | ||
node_js: | ||
- stable |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
{ | ||
"name": "clipboard", | ||
"version": "2.0.4", | ||
"description": "Modern copy to clipboard. No Flash. Just 3kb", | ||
"license": "MIT", | ||
"main": "dist/clipboard.js", | ||
"ignore": [ | ||
"/.*/", | ||
"/demo/", | ||
"/test/", | ||
"/.*", | ||
"/bower.json", | ||
"/karma.conf.js", | ||
"/src", | ||
"/lib" | ||
], | ||
"keywords": [ | ||
"clipboard", | ||
"copy", | ||
"cut" | ||
] | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
{ | ||
"name": "zenorocha/clipboardjs", | ||
"description": "Modern copy to clipboard. No Flash. Just 3kb gzipped https://clipboardjs.com", | ||
"type": "component", | ||
"homepage": "https://clipboardjs.com/", | ||
"authors": [ | ||
{ | ||
"name": "Zeno Rocha", | ||
"url": "http://zenorocha.com/" | ||
} | ||
], | ||
"require": { | ||
"robloach/component-installer": "*" | ||
}, | ||
"extra": { | ||
"component": { | ||
"scripts": [ | ||
"dist/clipboard.js" | ||
], | ||
"files": [ | ||
"dist/clipboard.min.js" | ||
] | ||
} | ||
} | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
# Contributing guide | ||
|
||
Want to contribute to Clipboard.js? Awesome! | ||
There are many ways you can contribute, see below. | ||
|
||
## Opening issues | ||
|
||
Open an issue to report bugs or to propose new features. | ||
|
||
- Reporting bugs: describe the bug as clearly as you can, including steps to reproduce, what happened and what you were expecting to happen. Also include browser version, OS and other related software's (npm, Node.js, etc) versions when applicable. | ||
|
||
- Proposing features: explain the proposed feature, what it should do, why it is useful, how users should use it. Give us as much info as possible so it will be easier to discuss, access and implement the proposed feature. When you're unsure about a certain aspect of the feature, feel free to leave it open for others to discuss and find an appropriate solution. | ||
|
||
## Proposing pull requests | ||
|
||
Pull requests are very welcome. Note that if you are going to propose drastic changes, be sure to open an issue for discussion first, to make sure that your PR will be accepted before you spend effort coding it. | ||
|
||
Fork the Clipboard.js repository, clone it locally and create a branch for your proposed bug fix or new feature. Avoid working directly on the master branch. | ||
|
||
Implement your bug fix or feature, write tests to cover it and make sure all tests are passing (run a final `npm test` to make sure everything is correct). Then commit your changes, push your bug fix/feature branch to the origin (your forked repo) and open a pull request to the upstream (the repository you originally forked)'s master branch. | ||
|
||
## Documentation | ||
|
||
Documentation is extremely important and takes a fair deal of time and effort to write and keep updated. Please submit any and all improvements you can make to the repository's docs. | ||
|
||
## Known issues | ||
If you're using npm@3 you'll probably face some issues related to peerDependencies. | ||
https://github.com/npm/npm/issues/9204 |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
<head> | ||
<meta charset="UTF-8"> | ||
<title>constructor-node</title> | ||
<meta name="viewport" content="width=device-width, initial-scale=1"> | ||
</head> | ||
<body> | ||
<!-- 1. Define some markup --> | ||
<div id="btn" data-clipboard-text="1"> | ||
<span>Copy</span> | ||
</div> | ||
|
||
<!-- 2. Include library --> | ||
<script src="../dist/clipboard.min.js"></script> | ||
|
||
<!-- 3. Instantiate clipboard by passing a HTML element --> | ||
<script> | ||
var btn = document.getElementById('btn'); | ||
var clipboard = new ClipboardJS(btn); | ||
|
||
clipboard.on('success', function(e) { | ||
console.log(e); | ||
}); | ||
|
||
clipboard.on('error', function(e) { | ||
console.log(e); | ||
}); | ||
</script> | ||
</body> | ||
</html> |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
<head> | ||
<meta charset="UTF-8"> | ||
<title>constructor-nodelist</title> | ||
<meta name="viewport" content="width=device-width, initial-scale=1"> | ||
</head> | ||
<body> | ||
<!-- 1. Define some markup --> | ||
<button data-clipboard-text="1">Copy</button> | ||
<button data-clipboard-text="2">Copy</button> | ||
<button data-clipboard-text="3">Copy</button> | ||
|
||
<!-- 2. Include library --> | ||
<script src="../dist/clipboard.min.js"></script> | ||
|
||
<!-- 3. Instantiate clipboard by passing a list of HTML elements --> | ||
<script> | ||
var btns = document.querySelectorAll('button'); | ||
var clipboard = new ClipboardJS(btns); | ||
|
||
clipboard.on('success', function(e) { | ||
console.log(e); | ||
}); | ||
|
||
clipboard.on('error', function(e) { | ||
console.log(e); | ||
}); | ||
</script> | ||
</body> | ||
</html> |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
<head> | ||
<meta charset="UTF-8"> | ||
<title>constructor-selector</title> | ||
<meta name="viewport" content="width=device-width, initial-scale=1"> | ||
</head> | ||
<body> | ||
<!-- 1. Define some markup --> | ||
<button class="btn" data-clipboard-text="1">Copy</button> | ||
<button class="btn" data-clipboard-text="2">Copy</button> | ||
<button class="btn" data-clipboard-text="3">Copy</button> | ||
|
||
<!-- 2. Include library --> | ||
<script src="../dist/clipboard.min.js"></script> | ||
|
||
<!-- 3. Instantiate clipboard by passing a string selector --> | ||
<script> | ||
var clipboard = new ClipboardJS('.btn'); | ||
|
||
clipboard.on('success', function(e) { | ||
console.log(e); | ||
}); | ||
|
||
clipboard.on('error', function(e) { | ||
console.log(e); | ||
}); | ||
</script> | ||
</body> | ||
</html> |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
<head> | ||
<meta charset="UTF-8"> | ||
<title>function-target</title> | ||
<meta name="viewport" content="width=device-width, initial-scale=1"> | ||
</head> | ||
<body> | ||
<!-- 1. Define some markup --> | ||
<button class="btn">Copy</button> | ||
<div>hello</div> | ||
|
||
<!-- 2. Include library --> | ||
<script src="../dist/clipboard.min.js"></script> | ||
|
||
<!-- 3. Instantiate clipboard --> | ||
<script> | ||
var clipboard = new ClipboardJS('.btn', { | ||
target: function() { | ||
return document.querySelector('div'); | ||
} | ||
}); | ||
|
||
clipboard.on('success', function(e) { | ||
console.log(e); | ||
}); | ||
|
||
clipboard.on('error', function(e) { | ||
console.log(e); | ||
}); | ||
</script> | ||
</body> | ||
</html> |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
<head> | ||
<meta charset="UTF-8"> | ||
<title>function-text</title> | ||
<meta name="viewport" content="width=device-width, initial-scale=1"> | ||
</head> | ||
<body> | ||
<!-- 1. Define some markup --> | ||
<button class="btn">Copy</button> | ||
|
||
<!-- 2. Include library --> | ||
<script src="../dist/clipboard.min.js"></script> | ||
|
||
<!-- 3. Instantiate clipboard --> | ||
<script> | ||
var clipboard = new ClipboardJS('.btn', { | ||
text: function() { | ||
return 'to be or not to be'; | ||
} | ||
}); | ||
|
||
clipboard.on('success', function(e) { | ||
console.log(e); | ||
}); | ||
|
||
clipboard.on('error', function(e) { | ||
console.log(e); | ||
}); | ||
</script> | ||
</body> | ||
</html> |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
<head> | ||
<meta charset="UTF-8"> | ||
<title>target-div</title> | ||
<meta name="viewport" content="width=device-width, initial-scale=1"> | ||
</head> | ||
<body> | ||
<!-- 1. Define some markup --> | ||
<div>hello</div> | ||
<button class="btn" data-clipboard-action="copy" data-clipboard-target="div">Copy</button> | ||
|
||
<!-- 2. Include library --> | ||
<script src="../dist/clipboard.min.js"></script> | ||
|
||
<!-- 3. Instantiate clipboard --> | ||
<script> | ||
var clipboard = new ClipboardJS('.btn'); | ||
|
||
clipboard.on('success', function(e) { | ||
console.log(e); | ||
}); | ||
|
||
clipboard.on('error', function(e) { | ||
console.log(e); | ||
}); | ||
</script> | ||
</body> | ||
</html> |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
<head> | ||
<meta charset="UTF-8"> | ||
<title>target-input</title> | ||
<meta name="viewport" content="width=device-width, initial-scale=1"> | ||
</head> | ||
<body> | ||
<!-- 1. Define some markup --> | ||
<input id="foo" type="text" value="hello"> | ||
<button class="btn" data-clipboard-action="copy" data-clipboard-target="#foo">Copy</button> | ||
|
||
<!-- 2. Include library --> | ||
<script src="../dist/clipboard.min.js"></script> | ||
|
||
<!-- 3. Instantiate clipboard --> | ||
<script> | ||
var clipboard = new ClipboardJS('.btn'); | ||
|
||
clipboard.on('success', function(e) { | ||
console.log(e); | ||
}); | ||
|
||
clipboard.on('error', function(e) { | ||
console.log(e); | ||
}); | ||
</script> | ||
</body> | ||
</html> |
Oops, something went wrong.