import from la bonne adresse and first refactoring for ouidade.com

This commit is contained in:
Bachir Soussi Chiadmi
2017-06-19 11:25:19 +02:00
commit 344dae1543
2240 changed files with 288691 additions and 0 deletions
@@ -0,0 +1,36 @@
{
"name": "get-style-property",
"main": "get-style-property.js",
"version": "1.0.4",
"homepage": "https://github.com/desandro/get-style-property",
"authors": [
"David DeSandro <desandrocodes@gmail.com>"
],
"description": "quick & dirty CSS property testing",
"moduleType": [
"amd",
"globals",
"node"
],
"keywords": [
"CSS",
"DOM"
],
"license": "MIT",
"ignore": [
"**/.*",
"node_modules",
"bower_components",
"test",
"tests"
],
"_release": "1.0.4",
"_resolution": {
"type": "version",
"tag": "v1.0.4",
"commit": "34fc5e4a0f252964ed2790138b8d7d30d04b55c1"
},
"_source": "git://github.com/desandro/get-style-property.git",
"_target": "1.x",
"_originalSource": "get-style-property"
}
@@ -0,0 +1,27 @@
# getStyleProperty - quick & dirty CSS property testing
[Original by @kangax](https://github.com/kangax/cft/blob/gh-pages/getStyleProperty.js) :heart_eyes: :zap: :star2:. See [perfectionkills.com/feature-testing-css-properties/](http://perfectionkills.com/feature-testing-css-properties/)
``` js
var transformProp = getStyleProperty('transform');
// returns WebkitTransform on Chrome / Safari
// or transform on Firefox, or MozTransform on old firefox
// then you can use it when setting CSS
element.style[ transformProp ] = 'translate( 12px, 34px )';
// or simply check if its supported
var supportsTranforms = !!transformProp;
```
## Install
[Bower](http://bower.io) :bird:: `bower install get-style-property`
npm: `npm install desandro-get-style-property`
[Component](http://github.com/component/component): `component install desandro/get-style-property`
## MIT License
getStyleProperty is released under the [MIT License](http://desandro.mit-license.org/).
@@ -0,0 +1,27 @@
{
"name": "get-style-property",
"main": "get-style-property.js",
"version": "1.0.4",
"homepage": "https://github.com/desandro/get-style-property",
"authors": [
"David DeSandro <desandrocodes@gmail.com>"
],
"description": "quick & dirty CSS property testing",
"moduleType": [
"amd",
"globals",
"node"
],
"keywords": [
"CSS",
"DOM"
],
"license": "MIT",
"ignore": [
"**/.*",
"node_modules",
"bower_components",
"test",
"tests"
]
}
@@ -0,0 +1,8 @@
{
"name": "get-style-property",
"repo": "desandro/get-style-property",
"description": "Quick and dirty CSS property testing",
"version": "1.0.4",
"scripts": ["get-style-property.js"],
"main": "get-style-property.js"
}
@@ -0,0 +1,55 @@
/*!
* getStyleProperty v1.0.4
* original by kangax
* http://perfectionkills.com/feature-testing-css-properties/
* MIT license
*/
/*jshint browser: true, strict: true, undef: true */
/*global define: false, exports: false, module: false */
( function( window ) {
'use strict';
var prefixes = 'Webkit Moz ms Ms O'.split(' ');
var docElemStyle = document.documentElement.style;
function getStyleProperty( propName ) {
if ( !propName ) {
return;
}
// test standard property first
if ( typeof docElemStyle[ propName ] === 'string' ) {
return propName;
}
// capitalize
propName = propName.charAt(0).toUpperCase() + propName.slice(1);
// test vendor specific properties
var prefixed;
for ( var i=0, len = prefixes.length; i < len; i++ ) {
prefixed = prefixes[i] + propName;
if ( typeof docElemStyle[ prefixed ] === 'string' ) {
return prefixed;
}
}
}
// transport
if ( typeof define === 'function' && define.amd ) {
// AMD
define( function() {
return getStyleProperty;
});
} else if ( typeof exports === 'object' ) {
// CommonJS for Component
module.exports = getStyleProperty;
} else {
// browser global
window.getStyleProperty = getStyleProperty;
}
})( window );
@@ -0,0 +1,23 @@
{
"name": "desandro-get-style-property",
"version": "1.0.4",
"description": "Quick and dirty CSS property testing",
"main": "get-style-property.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"repository": {
"type": "git",
"url": "https://github.com/desandro/get-style-property.git"
},
"license": "MIT",
"bugs": {
"url": "https://github.com/desandro/get-style-property/issues"
},
"homepage": "https://github.com/desandro/get-style-property",
"keywords": [
"CSS",
"DOM"
],
"author": "David DeSandro"
}