-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
79 additions
and
31 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
class Noticias{ | ||
|
||
constructor(){ | ||
if(!(window.File && window.FileReader && window.FileList && window.Blob)){ | ||
alert("Este navegador NO soporta el API File y este programa no puede funcionar correctamente"); | ||
} | ||
} | ||
|
||
readInputFile(files){ | ||
var archivo = files[0]; | ||
var tipoTexto = /text.*/; | ||
if (archivo.type.match(tipoTexto)) | ||
{ | ||
var result; | ||
var lector = new FileReader(); | ||
|
||
lector.onload = function (evento) { | ||
this.parseNoticias(lector.result); | ||
} | ||
|
||
lector.readAsText(archivo); | ||
|
||
} | ||
else { | ||
alert("Error : ¡¡¡ Archivo no válido !!!"); | ||
} | ||
} | ||
|
||
parseNoticias(result){ | ||
|
||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
El aumento de la producción científica desborda de papeleo a la Universidad_El Rector promete cambiar el servicio de gestión y contratar personal_A la Universidad de Oviedo le desborda el papeleo por el gran salto dado en investigación_Mónica Salas | ||
La Universidad presume de equipos deportivos en una jornada ilusionante_La presentación tuvo lugar en el polideportivo universitario_Ayer, por primera vez, todos los equipos deportivos de la Universidad de Oviedo realizaron una presentación conjunta_Juan Sanchez | ||
Investigadores que se van por unos meses al otro lado, a la empresa_Deberían hacerlo todos los científicos, afirman un psicólogo y una informática_Una cosa es colaborar con una empresa y otra bien diferente es poder trabajar en ella durante unos meses_Manuel Rodriguez |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters