02032019 Seccion6 Clase102

This commit is contained in:
2019-03-02 18:57:12 +01:00
parent 74b00b99b2
commit 77516ec68d
55 changed files with 11588 additions and 14 deletions

View File

@ -15,17 +15,17 @@ export class AppComponent {
PI = Math.PI;
a: number = 0.234;
a = 0.234;
salario = 1234.5;
heroe = {
nombre: "logan",
clave: "Wolverine",
nombre: 'logan',
clave: 'Wolverine',
edad: 500,
dirección:{
calle: "Primera",
casa: "29"
dirección: {
calle: 'Primera',
casa: '29'
}
};

View File

@ -4,15 +4,14 @@ import { Pipe, PipeTransform } from '@angular/core';
export class Capitalizado implements PipeTransform {
transform(value: string, todas: boolean = true ): string {
value = value.toLowerCase();
let nombres = value.split(' ');
const nombres = value.split(' ');
if(todas){
if ( todas ) {
// tslint:disable-next-line:forin
for(let i in nombres ){
for (const i in nombres ) {
nombres[i] = nombres[i][0].toUpperCase() + nombres[i].substr(1);
}
}
else {
} else {
nombres[0] = nombres[0][0].toLocaleUpperCase() + nombres[0].substr(1);
}

View File

@ -6,7 +6,7 @@ import { Pipe, PipeTransform } from '@angular/core';
export class ContrasenaPipe implements PipeTransform {
transform(value: string, activo: boolean): any {
let RegEXP = /(\w+)\s(\w+)/;
const RegEXP = /(\w+)\s(\w+)/;
if (activo) {
value = value.replace( RegEXP, '**********' );
console.log(value);

View File

@ -7,7 +7,7 @@ import { DomSanitizer } from '@angular/platform-browser';
})
export class DomseguroPipe implements PipeTransform {
constructor ( private domSanitizer: DomSanitizer){ }
constructor( private domSanitizer: DomSanitizer) { }
transform(value: string, url: string): any {
return this.domSanitizer.bypassSecurityTrustResourceUrl( url + value );
}

View File

@ -7,10 +7,17 @@
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css" integrity="sha384-ggOyR0iXCbMQv3Xipma34MD+dH/1fQ784/j6cY/iJTQUOhcWr7x9JvoRxT2MZw1T" crossorigin="anonymous">
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/js/bootstrap.min.js" integrity="sha384-JjSmVgyd0p3pXB1rRibZUAYoIIy6OrQ6VrjIEaFf/nJGzIxFDsf4x0xIM+B07jRM" crossorigin="anonymous"></script>
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="icon" type="image/x-icon" href="favicon.ico">
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css" integrity="sha384-ggOyR0iXCbMQv3Xipma34MD+dH/1fQ784/j6cY/iJTQUOhcWr7x9JvoRxT2MZw1T" crossorigin="anonymous">
</head>
<body>
<app-root></app-root>
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/js/bootstrap.min.js" integrity="sha384-JjSmVgyd0p3pXB1rRibZUAYoIIy6OrQ6VrjIEaFf/nJGzIxFDsf4x0xIM+B07jRM" crossorigin="anonymous"></script>
<script src="https://code.jquery.com/jquery-3.3.1.slim.min.js" integrity="sha384-q8i/X+965DzO0rT7abK41JStQIAqVgRVzpbzo5smXKp4YfRvH+8abtTE1Pi6jizo" crossorigin="anonymous"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.7/umd/popper.min.js" integrity="sha384-UO2eT0CpHqdSJQ6hJty5KVphtPhzWj9WO1clHTMGa3JDZwrnQq4sF86dIHNDz0W1" crossorigin="anonymous"></script>
</body>
</html>

View File

@ -1 +1,67 @@
/* You can add global styles to this file, and also import other style files */
body {
background-color: black;
color: white !important;
}
hr {
border-color: white;
}
.puntero {
cursor: pointer;
}
.img-circle {
border-radius: 100%;
width: 150px;
}
.card-title,
.card-text {
color: black;
}
.badge {
margin-left: 5px;
}
.btn-outline-success {
margin-left: 5px;
}
.img-thumb {
width: 50px;
height: 50px;
}
/* Animaciones */
.animated {
-webkit-animation-duration: 1s;
animation-duration: 1s;
-webkit-animation-fill-mode: both;
animation-fill-mode: both;
}
.fast {
-webkit-animation-duration: 0.4s;
animation-duration: 0.4s;
-webkit-animation-fill-mode: both;
animation-fill-mode: both;
}
@keyframes fadeIn {
from {
opacity: 0;
}
to {
opacity: 1;
}
}
.fadeIn {
animation-name: fadeIn;
}