mirror of
https://github.com/arnaucube/commonroutesApp.git
synced 2026-02-07 11:36:42 +01:00
geolocation added on offerCar and travel page
This commit is contained in:
58
www/lib/angular-material/modules/closure/showHide/showHide.js
vendored
Normal file
58
www/lib/angular-material/modules/closure/showHide/showHide.js
vendored
Normal file
@@ -0,0 +1,58 @@
|
||||
/*!
|
||||
* Angular Material Design
|
||||
* https://github.com/angular/material
|
||||
* @license MIT
|
||||
* v1.1.1
|
||||
*/
|
||||
goog.provide('ngmaterial.components.showHide');
|
||||
goog.require('ngmaterial.core');
|
||||
/**
|
||||
* @ngdoc module
|
||||
* @name material.components.showHide
|
||||
*/
|
||||
|
||||
// Add additional handlers to ng-show and ng-hide that notify directives
|
||||
// contained within that they should recompute their size.
|
||||
// These run in addition to Angular's built-in ng-hide and ng-show directives.
|
||||
angular.module('material.components.showHide', [
|
||||
'material.core'
|
||||
])
|
||||
.directive('ngShow', createDirective('ngShow', true))
|
||||
.directive('ngHide', createDirective('ngHide', false));
|
||||
|
||||
|
||||
function createDirective(name, targetValue) {
|
||||
return ['$mdUtil', '$window', function($mdUtil, $window) {
|
||||
return {
|
||||
restrict: 'A',
|
||||
multiElement: true,
|
||||
link: function($scope, $element, $attr) {
|
||||
var unregister = $scope.$on('$md-resize-enable', function() {
|
||||
unregister();
|
||||
|
||||
var node = $element[0];
|
||||
var cachedTransitionStyles = node.nodeType === $window.Node.ELEMENT_NODE ?
|
||||
$window.getComputedStyle(node) : {};
|
||||
|
||||
$scope.$watch($attr[name], function(value) {
|
||||
if (!!value === targetValue) {
|
||||
$mdUtil.nextTick(function() {
|
||||
$scope.$broadcast('$md-resize');
|
||||
});
|
||||
|
||||
var opts = {
|
||||
cachedTransitionStyles: cachedTransitionStyles
|
||||
};
|
||||
|
||||
$mdUtil.dom.animator.waitTransitionEnd($element, opts).then(function() {
|
||||
$scope.$broadcast('$md-resize');
|
||||
});
|
||||
}
|
||||
});
|
||||
});
|
||||
}
|
||||
};
|
||||
}];
|
||||
}
|
||||
|
||||
ngmaterial.components.showHide = angular.module("material.components.showHide");
|
||||
7
www/lib/angular-material/modules/closure/showHide/showHide.min.js
vendored
Normal file
7
www/lib/angular-material/modules/closure/showHide/showHide.min.js
vendored
Normal file
@@ -0,0 +1,7 @@
|
||||
/*!
|
||||
* Angular Material Design
|
||||
* https://github.com/angular/material
|
||||
* @license MIT
|
||||
* v1.1.0-master-2b98560
|
||||
*/
|
||||
function createDirective(e,i){return["$mdUtil","$window",function(n,t){return{restrict:"A",multiElement:!0,link:function(o,r,a){var c=o.$on("$md-resize-enable",function(){c();var d=r[0],m=d.nodeType===t.Node.ELEMENT_NODE?t.getComputedStyle(d):{};o.$watch(a[e],function(e){if(!!e===i){n.nextTick(function(){o.$broadcast("$md-resize")});var t={cachedTransitionStyles:m};n.dom.animator.waitTransitionEnd(r,t).then(function(){o.$broadcast("$md-resize")})}})})}}}]}goog.provide("ngmaterial.components.showHide"),goog.require("ngmaterial.core"),angular.module("material.components.showHide",["material.core"]).directive("ngShow",createDirective("ngShow",!0)).directive("ngHide",createDirective("ngHide",!1)),ngmaterial.components.showHide=angular.module("material.components.showHide");
|
||||
Reference in New Issue
Block a user