From 7cc7910df63d19e7ebc67bb1156437f0559712d7 Mon Sep 17 00:00:00 2001 From: Lars Henrik Mai Date: Sun, 21 Sep 2014 12:25:47 +0200 Subject: add foundation via bower --- .../jquery-placeholder/.bower.json | 17 ++ .../jquery-placeholder/.gitattributes | 1 + .../bower_components/jquery-placeholder/.gitignore | 1 + .../jquery-placeholder/LICENSE-MIT.txt | 20 +++ .../bower_components/jquery-placeholder/README.md | 76 +++++++++ .../bower_components/jquery-placeholder/bower.json | 5 + .../bower_components/jquery-placeholder/demo.html | 55 ++++++ .../jquery-placeholder/jquery.placeholder.js | 185 +++++++++++++++++++++ .../jquery-placeholder/tests/index.html | 32 ++++ .../jquery-placeholder/tests/tests.js | 134 +++++++++++++++ 10 files changed, 526 insertions(+) create mode 100644 source/bower_components/jquery-placeholder/.bower.json create mode 100644 source/bower_components/jquery-placeholder/.gitattributes create mode 100644 source/bower_components/jquery-placeholder/.gitignore create mode 100644 source/bower_components/jquery-placeholder/LICENSE-MIT.txt create mode 100644 source/bower_components/jquery-placeholder/README.md create mode 100644 source/bower_components/jquery-placeholder/bower.json create mode 100644 source/bower_components/jquery-placeholder/demo.html create mode 100644 source/bower_components/jquery-placeholder/jquery.placeholder.js create mode 100644 source/bower_components/jquery-placeholder/tests/index.html create mode 100644 source/bower_components/jquery-placeholder/tests/tests.js (limited to 'source/bower_components/jquery-placeholder') diff --git a/source/bower_components/jquery-placeholder/.bower.json b/source/bower_components/jquery-placeholder/.bower.json new file mode 100644 index 0000000..ac1d011 --- /dev/null +++ b/source/bower_components/jquery-placeholder/.bower.json @@ -0,0 +1,17 @@ +{ + "name": "jquery-placeholder", + "version": "2.0.8", + "main": [ + "jquery.placeholder.js" + ], + "homepage": "https://github.com/mathiasbynens/jquery-placeholder", + "_release": "2.0.8", + "_resolution": { + "type": "version", + "tag": "v2.0.8", + "commit": "051f21ef5279f4887d9caf6af7af211d933ba670" + }, + "_source": "git://github.com/mathiasbynens/jquery-placeholder.git", + "_target": "~2.0.7", + "_originalSource": "jquery-placeholder" +} \ No newline at end of file diff --git a/source/bower_components/jquery-placeholder/.gitattributes b/source/bower_components/jquery-placeholder/.gitattributes new file mode 100644 index 0000000..44b4224 --- /dev/null +++ b/source/bower_components/jquery-placeholder/.gitattributes @@ -0,0 +1 @@ +* eol=lf \ No newline at end of file diff --git a/source/bower_components/jquery-placeholder/.gitignore b/source/bower_components/jquery-placeholder/.gitignore new file mode 100644 index 0000000..496ee2c --- /dev/null +++ b/source/bower_components/jquery-placeholder/.gitignore @@ -0,0 +1 @@ +.DS_Store \ No newline at end of file diff --git a/source/bower_components/jquery-placeholder/LICENSE-MIT.txt b/source/bower_components/jquery-placeholder/LICENSE-MIT.txt new file mode 100644 index 0000000..8d4d070 --- /dev/null +++ b/source/bower_components/jquery-placeholder/LICENSE-MIT.txt @@ -0,0 +1,20 @@ +Copyright Mathias Bynens + +Permission is hereby granted, free of charge, to any person obtaining +a copy of this software and associated documentation files (the +"Software"), to deal in the Software without restriction, including +without limitation the rights to use, copy, modify, merge, publish, +distribute, sublicense, and/or sell copies of the Software, and to +permit persons to whom the Software is furnished to do so, subject to +the following conditions: + +The above copyright notice and this permission notice shall be +included in all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF +MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND +NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE +LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION +OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION +WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. \ No newline at end of file diff --git a/source/bower_components/jquery-placeholder/README.md b/source/bower_components/jquery-placeholder/README.md new file mode 100644 index 0000000..fa7ea38 --- /dev/null +++ b/source/bower_components/jquery-placeholder/README.md @@ -0,0 +1,76 @@ +# HTML5 Placeholder jQuery Plugin + +## Demo & Examples + +[http://mathiasbynens.be/demo/placeholder](http://mathiasbynens.be/demo/placeholder) + +## Example Usage + +### HTML + +```html + + + + + + + +``` + +### jQuery + +Use the plugin as follows: + +```js +$('input, textarea').placeholder(); +``` + +You’ll still be able to use `jQuery#val()` to get and set the input values. If the element is currently showing a placeholder, `.val()` will return an empty string instead of the placeholder text, just like it does in browsers with a native `@placeholder` implementation. Calling `.val('')` to set an element’s value to the empty string will result in the placeholder text (re)appearing. + +### CSS + +The plugin automatically adds `class="placeholder"` to the elements who are currently showing their placeholder text. You can use this to style placeholder text differently: + +```css +input, textarea { color: #000; } +.placeholder { color: #aaa; } +``` + +I’d suggest sticking to the `#aaa` color for placeholder text, as it’s the default in most browsers that support `@placeholder`. If you really want to, though, you can [style the placeholder text in some of the browsers that natively support it](http://stackoverflow.com/questions/2610497/change-an-inputs-html5-placeholder-color-with-css/2610741#2610741). + +## Installation + +You can install jquery-placeholder by using [Bower](http://bower.io). + +```bash +bower install jquery-placeholder +``` + +## Notes + +* Requires jQuery 1.6+. For an older version of this plugin that works under jQuery 1.4.2+, see [v1.8.7](https://github.com/mathiasbynens/jquery-placeholder/tree/v1.8.7). +* Works in all A-grade browsers, including IE6. +* Automatically checks if the browser natively supports the HTML5 `placeholder` attribute for `input` and `textarea` elements. If this is the case, the plugin won’t do anything. If `@placeholder` is only supported for `input` elements, the plugin will leave those alone and apply to `textarea`s exclusively. (This is the case for Safari 4, Opera 11.00, and possibly other browsers.) +* Caches the results of its two feature tests in `jQuery.fn.placeholder.input` and `jQuery.fn.placeholder.textarea`. For example, if `@placeholder` is natively supported for `input` elements, `jQuery.fn.placeholder.input` will be `true`. After loading the plugin, you can re-use these properties in your own code. +* Makes sure it never causes duplicate IDs in your DOM, even in browsers that need an extra `input` element to fake `@placeholder` for password inputs. This means you can safely do stuff like: + + ```html + + + ``` + + And the `