mirror of
https://gitlab.com/JKANetwork/CheckServer.git
synced 2026-02-17 10:41:34 +01:00
Start again
This commit is contained in:
38
vendors/transitionize/.bower.json
vendored
Normal file
38
vendors/transitionize/.bower.json
vendored
Normal file
@@ -0,0 +1,38 @@
|
||||
{
|
||||
"name": "transitionize",
|
||||
"main": "dist/transitionize.js",
|
||||
"version": "0.0.3",
|
||||
"homepage": "https://github.com/abpetkov/transitionize",
|
||||
"authors": [
|
||||
"Alexander Petkov <abpetkov@gmail.com>"
|
||||
],
|
||||
"description": "Create CSS3 transitions dynamically",
|
||||
"keywords": [
|
||||
"css3",
|
||||
"transition",
|
||||
"dynamic"
|
||||
],
|
||||
"license": "MIT",
|
||||
"ignore": [
|
||||
"build",
|
||||
"components",
|
||||
"node_modules",
|
||||
"bower_components",
|
||||
"component.json",
|
||||
"index.html",
|
||||
"Makefile",
|
||||
"README.md",
|
||||
".*"
|
||||
],
|
||||
"dependencies": {},
|
||||
"devDependencies": {},
|
||||
"_release": "0.0.3",
|
||||
"_resolution": {
|
||||
"type": "version",
|
||||
"tag": "0.0.3",
|
||||
"commit": "13e53272b838a20c8551784a81de57b45dbe662f"
|
||||
},
|
||||
"_source": "https://github.com/abpetkov/transitionize.git",
|
||||
"_target": "*",
|
||||
"_originalSource": "transitionize"
|
||||
}
|
||||
29
vendors/transitionize/bower.json
vendored
Normal file
29
vendors/transitionize/bower.json
vendored
Normal file
@@ -0,0 +1,29 @@
|
||||
{
|
||||
"name": "transitionize"
|
||||
, "main": "dist/transitionize.js"
|
||||
, "version": "0.0.3"
|
||||
, "homepage": "https://github.com/abpetkov/transitionize"
|
||||
, "authors": [
|
||||
"Alexander Petkov <abpetkov@gmail.com>"
|
||||
]
|
||||
, "description": "Create CSS3 transitions dynamically"
|
||||
, "keywords": [
|
||||
"css3"
|
||||
, "transition"
|
||||
, "dynamic"
|
||||
]
|
||||
, "license": "MIT"
|
||||
, "ignore": [
|
||||
"build"
|
||||
, "components"
|
||||
, "node_modules"
|
||||
, "bower_components"
|
||||
, "component.json"
|
||||
, "index.html"
|
||||
, "Makefile"
|
||||
, "README.md"
|
||||
, ".*"
|
||||
]
|
||||
, "dependencies": {}
|
||||
, "devDependencies": {}
|
||||
}
|
||||
275
vendors/transitionize/dist/transitionize.js
vendored
Normal file
275
vendors/transitionize/dist/transitionize.js
vendored
Normal file
@@ -0,0 +1,275 @@
|
||||
;(function(){
|
||||
|
||||
/**
|
||||
* Require the given path.
|
||||
*
|
||||
* @param {String} path
|
||||
* @return {Object} exports
|
||||
* @api public
|
||||
*/
|
||||
|
||||
function require(path, parent, orig) {
|
||||
var resolved = require.resolve(path);
|
||||
|
||||
// lookup failed
|
||||
if (null == resolved) {
|
||||
orig = orig || path;
|
||||
parent = parent || 'root';
|
||||
var err = new Error('Failed to require "' + orig + '" from "' + parent + '"');
|
||||
err.path = orig;
|
||||
err.parent = parent;
|
||||
err.require = true;
|
||||
throw err;
|
||||
}
|
||||
|
||||
var module = require.modules[resolved];
|
||||
|
||||
// perform real require()
|
||||
// by invoking the module's
|
||||
// registered function
|
||||
if (!module._resolving && !module.exports) {
|
||||
var mod = {};
|
||||
mod.exports = {};
|
||||
mod.client = mod.component = true;
|
||||
module._resolving = true;
|
||||
module.call(this, mod.exports, require.relative(resolved), mod);
|
||||
delete module._resolving;
|
||||
module.exports = mod.exports;
|
||||
}
|
||||
|
||||
return module.exports;
|
||||
}
|
||||
|
||||
/**
|
||||
* Registered modules.
|
||||
*/
|
||||
|
||||
require.modules = {};
|
||||
|
||||
/**
|
||||
* Registered aliases.
|
||||
*/
|
||||
|
||||
require.aliases = {};
|
||||
|
||||
/**
|
||||
* Resolve `path`.
|
||||
*
|
||||
* Lookup:
|
||||
*
|
||||
* - PATH/index.js
|
||||
* - PATH.js
|
||||
* - PATH
|
||||
*
|
||||
* @param {String} path
|
||||
* @return {String} path or null
|
||||
* @api private
|
||||
*/
|
||||
|
||||
require.resolve = function(path) {
|
||||
if (path.charAt(0) === '/') path = path.slice(1);
|
||||
|
||||
var paths = [
|
||||
path,
|
||||
path + '.js',
|
||||
path + '.json',
|
||||
path + '/index.js',
|
||||
path + '/index.json'
|
||||
];
|
||||
|
||||
for (var i = 0; i < paths.length; i++) {
|
||||
var path = paths[i];
|
||||
if (require.modules.hasOwnProperty(path)) return path;
|
||||
if (require.aliases.hasOwnProperty(path)) return require.aliases[path];
|
||||
}
|
||||
};
|
||||
|
||||
/**
|
||||
* Normalize `path` relative to the current path.
|
||||
*
|
||||
* @param {String} curr
|
||||
* @param {String} path
|
||||
* @return {String}
|
||||
* @api private
|
||||
*/
|
||||
|
||||
require.normalize = function(curr, path) {
|
||||
var segs = [];
|
||||
|
||||
if ('.' != path.charAt(0)) return path;
|
||||
|
||||
curr = curr.split('/');
|
||||
path = path.split('/');
|
||||
|
||||
for (var i = 0; i < path.length; ++i) {
|
||||
if ('..' == path[i]) {
|
||||
curr.pop();
|
||||
} else if ('.' != path[i] && '' != path[i]) {
|
||||
segs.push(path[i]);
|
||||
}
|
||||
}
|
||||
|
||||
return curr.concat(segs).join('/');
|
||||
};
|
||||
|
||||
/**
|
||||
* Register module at `path` with callback `definition`.
|
||||
*
|
||||
* @param {String} path
|
||||
* @param {Function} definition
|
||||
* @api private
|
||||
*/
|
||||
|
||||
require.register = function(path, definition) {
|
||||
require.modules[path] = definition;
|
||||
};
|
||||
|
||||
/**
|
||||
* Alias a module definition.
|
||||
*
|
||||
* @param {String} from
|
||||
* @param {String} to
|
||||
* @api private
|
||||
*/
|
||||
|
||||
require.alias = function(from, to) {
|
||||
if (!require.modules.hasOwnProperty(from)) {
|
||||
throw new Error('Failed to alias "' + from + '", it does not exist');
|
||||
}
|
||||
require.aliases[to] = from;
|
||||
};
|
||||
|
||||
/**
|
||||
* Return a require function relative to the `parent` path.
|
||||
*
|
||||
* @param {String} parent
|
||||
* @return {Function}
|
||||
* @api private
|
||||
*/
|
||||
|
||||
require.relative = function(parent) {
|
||||
var p = require.normalize(parent, '..');
|
||||
|
||||
/**
|
||||
* lastIndexOf helper.
|
||||
*/
|
||||
|
||||
function lastIndexOf(arr, obj) {
|
||||
var i = arr.length;
|
||||
while (i--) {
|
||||
if (arr[i] === obj) return i;
|
||||
}
|
||||
return -1;
|
||||
}
|
||||
|
||||
/**
|
||||
* The relative require() itself.
|
||||
*/
|
||||
|
||||
function localRequire(path) {
|
||||
var resolved = localRequire.resolve(path);
|
||||
return require(resolved, parent, path);
|
||||
}
|
||||
|
||||
/**
|
||||
* Resolve relative to the parent.
|
||||
*/
|
||||
|
||||
localRequire.resolve = function(path) {
|
||||
var c = path.charAt(0);
|
||||
if ('/' == c) return path.slice(1);
|
||||
if ('.' == c) return require.normalize(p, path);
|
||||
|
||||
// resolve deps by returning
|
||||
// the dep in the nearest "deps"
|
||||
// directory
|
||||
var segs = parent.split('/');
|
||||
var i = lastIndexOf(segs, 'deps') + 1;
|
||||
if (!i) i = 0;
|
||||
path = segs.slice(0, i + 1).join('/') + '/deps/' + path;
|
||||
return path;
|
||||
};
|
||||
|
||||
/**
|
||||
* Check if module is defined at `path`.
|
||||
*/
|
||||
|
||||
localRequire.exists = function(path) {
|
||||
return require.modules.hasOwnProperty(localRequire.resolve(path));
|
||||
};
|
||||
|
||||
return localRequire;
|
||||
};
|
||||
require.register("transitionize/transitionize.js", function(exports, require, module){
|
||||
|
||||
/**
|
||||
* Transitionize 0.0.3
|
||||
* https://github.com/abpetkov/transitionize
|
||||
*
|
||||
* Authored by Alexander Petkov
|
||||
* https://github.com/abpetkov
|
||||
*
|
||||
* Copyright 2013, Alexander Petkov
|
||||
* License: The MIT License (MIT)
|
||||
* http://opensource.org/licenses/MIT
|
||||
*
|
||||
*/
|
||||
|
||||
/**
|
||||
* Expose `Transitionize`.
|
||||
*/
|
||||
|
||||
module.exports = Transitionize;
|
||||
|
||||
/**
|
||||
* Initialize new Transitionize.
|
||||
*
|
||||
* @param {Object} element
|
||||
* @param {Object} props
|
||||
* @api public
|
||||
*/
|
||||
|
||||
function Transitionize(element, props) {
|
||||
if (!(this instanceof Transitionize)) return new Transitionize(element, props);
|
||||
|
||||
this.element = element;
|
||||
this.props = props || {};
|
||||
this.init();
|
||||
}
|
||||
|
||||
/**
|
||||
* Detect if Safari.
|
||||
*
|
||||
* @returns {Boolean}
|
||||
* @api private
|
||||
*/
|
||||
|
||||
Transitionize.prototype.isSafari = function() {
|
||||
return (/Safari/).test(navigator.userAgent) && (/Apple Computer/).test(navigator.vendor);
|
||||
};
|
||||
|
||||
/**
|
||||
* Loop though the object and push the keys and values in an array.
|
||||
* Apply the CSS3 transition to the element and prefix with -webkit- for Safari.
|
||||
*
|
||||
* @api private
|
||||
*/
|
||||
|
||||
Transitionize.prototype.init = function() {
|
||||
var transitions = [];
|
||||
|
||||
for (var key in this.props) {
|
||||
transitions.push(key + ' ' + this.props[key]);
|
||||
}
|
||||
|
||||
this.element.style.transition = transitions.join(', ');
|
||||
if (this.isSafari()) this.element.style.webkitTransition = transitions.join(', ');
|
||||
};
|
||||
});
|
||||
require.alias("transitionize/transitionize.js", "transitionize/index.js");if (typeof exports == "object") {
|
||||
module.exports = require("transitionize");
|
||||
} else if (typeof define == "function" && define.amd) {
|
||||
define(function(){ return require("transitionize"); });
|
||||
} else {
|
||||
this["Transitionize"] = require("transitionize");
|
||||
}})();
|
||||
1
vendors/transitionize/dist/transitionize.min.js
vendored
Normal file
1
vendors/transitionize/dist/transitionize.min.js
vendored
Normal file
@@ -0,0 +1 @@
|
||||
(function(){function require(path,parent,orig){var resolved=require.resolve(path);if(null==resolved){orig=orig||path;parent=parent||"root";var err=new Error('Failed to require "'+orig+'" from "'+parent+'"');err.path=orig;err.parent=parent;err.require=true;throw err}var module=require.modules[resolved];if(!module._resolving&&!module.exports){var mod={};mod.exports={};mod.client=mod.component=true;module._resolving=true;module.call(this,mod.exports,require.relative(resolved),mod);delete module._resolving;module.exports=mod.exports}return module.exports}require.modules={};require.aliases={};require.resolve=function(path){if(path.charAt(0)==="/")path=path.slice(1);var paths=[path,path+".js",path+".json",path+"/index.js",path+"/index.json"];for(var i=0;i<paths.length;i++){var path=paths[i];if(require.modules.hasOwnProperty(path))return path;if(require.aliases.hasOwnProperty(path))return require.aliases[path]}};require.normalize=function(curr,path){var segs=[];if("."!=path.charAt(0))return path;curr=curr.split("/");path=path.split("/");for(var i=0;i<path.length;++i){if(".."==path[i]){curr.pop()}else if("."!=path[i]&&""!=path[i]){segs.push(path[i])}}return curr.concat(segs).join("/")};require.register=function(path,definition){require.modules[path]=definition};require.alias=function(from,to){if(!require.modules.hasOwnProperty(from)){throw new Error('Failed to alias "'+from+'", it does not exist')}require.aliases[to]=from};require.relative=function(parent){var p=require.normalize(parent,"..");function lastIndexOf(arr,obj){var i=arr.length;while(i--){if(arr[i]===obj)return i}return-1}function localRequire(path){var resolved=localRequire.resolve(path);return require(resolved,parent,path)}localRequire.resolve=function(path){var c=path.charAt(0);if("/"==c)return path.slice(1);if("."==c)return require.normalize(p,path);var segs=parent.split("/");var i=lastIndexOf(segs,"deps")+1;if(!i)i=0;path=segs.slice(0,i+1).join("/")+"/deps/"+path;return path};localRequire.exists=function(path){return require.modules.hasOwnProperty(localRequire.resolve(path))};return localRequire};require.register("transitionize/transitionize.js",function(exports,require,module){module.exports=Transitionize;function Transitionize(element,props){if(!(this instanceof Transitionize))return new Transitionize(element,props);this.element=element;this.props=props||{};this.init()}Transitionize.prototype.isSafari=function(){return/Safari/.test(navigator.userAgent)&&/Apple Computer/.test(navigator.vendor)};Transitionize.prototype.init=function(){var transitions=[];for(var key in this.props){transitions.push(key+" "+this.props[key])}this.element.style.transition=transitions.join(", ");if(this.isSafari())this.element.style.webkitTransition=transitions.join(", ")}});require.alias("transitionize/transitionize.js","transitionize/index.js");if(typeof exports=="object"){module.exports=require("transitionize")}else if(typeof define=="function"&&define.amd){define(function(){return require("transitionize")})}else{this["Transitionize"]=require("transitionize")}})();
|
||||
46
vendors/transitionize/examples/browserify.js
vendored
Normal file
46
vendors/transitionize/examples/browserify.js
vendored
Normal file
@@ -0,0 +1,46 @@
|
||||
/**
|
||||
* Transitionize example.
|
||||
*
|
||||
* Shows how to change dynamically the transitions of an element.
|
||||
*
|
||||
* In this case, the `elem` background color and left properties are given different transition duration,
|
||||
* according to it's current position. If the circle is in it's initial position, it goes right and
|
||||
* changes background color faster. If it's already been moved - gets back left and changes background
|
||||
* color slower.
|
||||
*
|
||||
* In order for this to work, with Browserify(http://browserify.org/) already installed, execute the following command:
|
||||
*
|
||||
* browserify examples/browserify.js -o examples/bundle.js
|
||||
*
|
||||
*/
|
||||
|
||||
var transitionize = require('../transitionize');
|
||||
|
||||
window.onload = function() {
|
||||
var elem = document.querySelector('.js-elem')
|
||||
, prop = {};
|
||||
|
||||
elem.addEventListener('click', function() {
|
||||
var position = parseInt(elem.style.left) || 0;
|
||||
|
||||
if (position == 0) {
|
||||
this.style.left = this.parentNode.offsetWidth - this.offsetWidth + 'px';
|
||||
this.style.backgroundColor = '#53e7d0';
|
||||
|
||||
prop = {
|
||||
'background-color': '0.3s'
|
||||
, 'left': '0.3s'
|
||||
};
|
||||
} else {
|
||||
this.style.left = 0;
|
||||
this.style.backgroundColor = '#febf04';
|
||||
|
||||
prop = {
|
||||
'background-color': '1s'
|
||||
, 'left': '1s'
|
||||
};
|
||||
}
|
||||
|
||||
transitionize(elem, prop);
|
||||
});
|
||||
};
|
||||
31
vendors/transitionize/examples/example.html
vendored
Normal file
31
vendors/transitionize/examples/example.html
vendored
Normal file
@@ -0,0 +1,31 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<title>Transitionize Example Page</title>
|
||||
<style type="text/css">
|
||||
.wrap {
|
||||
height: 75px;
|
||||
margin: 100px auto 0;
|
||||
position: relative;
|
||||
width: 300px;
|
||||
}
|
||||
|
||||
.elem {
|
||||
background-color: #febf04;
|
||||
border-radius: 100%;
|
||||
bottom: 0;
|
||||
display: block;
|
||||
height: 75px;
|
||||
left: 0;
|
||||
position: absolute;
|
||||
width: 75px;
|
||||
}
|
||||
</style>
|
||||
<script src="bundle.js"></script>
|
||||
</head>
|
||||
<body>
|
||||
<div class="wrap">
|
||||
<span class="elem js-elem"></span>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
19
vendors/transitionize/package.json
vendored
Normal file
19
vendors/transitionize/package.json
vendored
Normal file
@@ -0,0 +1,19 @@
|
||||
{
|
||||
"name": "transitionize",
|
||||
"version": "0.0.3",
|
||||
"description": "Create CSS3 transitions dynamically",
|
||||
"main": "transitionize.js",
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "git://github.com/abpetkov/transitionize.git"
|
||||
},
|
||||
"author": "Alexander Petkov",
|
||||
"license": "MIT",
|
||||
"bugs": {
|
||||
"url": "https://github.com/abpetkov/transitionize/issues"
|
||||
},
|
||||
"devDependencies": {
|
||||
"uglify-js": "~2.4.8",
|
||||
"component": "~0.18.0"
|
||||
}
|
||||
}
|
||||
64
vendors/transitionize/transitionize.js
vendored
Normal file
64
vendors/transitionize/transitionize.js
vendored
Normal file
@@ -0,0 +1,64 @@
|
||||
|
||||
/**
|
||||
* Transitionize 0.0.3
|
||||
* https://github.com/abpetkov/transitionize
|
||||
*
|
||||
* Authored by Alexander Petkov
|
||||
* https://github.com/abpetkov
|
||||
*
|
||||
* Copyright 2013, Alexander Petkov
|
||||
* License: The MIT License (MIT)
|
||||
* http://opensource.org/licenses/MIT
|
||||
*
|
||||
*/
|
||||
|
||||
/**
|
||||
* Expose `Transitionize`.
|
||||
*/
|
||||
|
||||
module.exports = Transitionize;
|
||||
|
||||
/**
|
||||
* Initialize new Transitionize.
|
||||
*
|
||||
* @param {Object} element
|
||||
* @param {Object} props
|
||||
* @api public
|
||||
*/
|
||||
|
||||
function Transitionize(element, props) {
|
||||
if (!(this instanceof Transitionize)) return new Transitionize(element, props);
|
||||
|
||||
this.element = element;
|
||||
this.props = props || {};
|
||||
this.init();
|
||||
}
|
||||
|
||||
/**
|
||||
* Detect if Safari.
|
||||
*
|
||||
* @returns {Boolean}
|
||||
* @api private
|
||||
*/
|
||||
|
||||
Transitionize.prototype.isSafari = function() {
|
||||
return (/Safari/).test(navigator.userAgent) && (/Apple Computer/).test(navigator.vendor);
|
||||
};
|
||||
|
||||
/**
|
||||
* Loop though the object and push the keys and values in an array.
|
||||
* Apply the CSS3 transition to the element and prefix with -webkit- for Safari.
|
||||
*
|
||||
* @api private
|
||||
*/
|
||||
|
||||
Transitionize.prototype.init = function() {
|
||||
var transitions = [];
|
||||
|
||||
for (var key in this.props) {
|
||||
transitions.push(key + ' ' + this.props[key]);
|
||||
}
|
||||
|
||||
this.element.style.transition = transitions.join(', ');
|
||||
if (this.isSafari()) this.element.style.webkitTransition = transitions.join(', ');
|
||||
};
|
||||
Reference in New Issue
Block a user