File tree 2 files changed +5
-5
lines changed 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -71,7 +71,7 @@ <h2>Envía un challenge al Gopherbot</h2>
71
71
< li > < b > .go ayuda</ b > - ver comandos generales disponibles</ li >
72
72
< li > < b > .go libros</ b > - enlaces de libros</ li >
73
73
< li > < b > .go recursos</ b > - enlaces de recursos</ li >
74
- < li > < b > .go challenges </ b > - pedir desafios para practicar (en desarrollo)</ li >
74
+ < li > < b > .go challenge </ b > - pedir desafios para practicar (en desarrollo)</ li >
75
75
< li > ...</ li >
76
76
< li > < b > Server:</ b >
77
77
< a class ="alink " href ="https://discord.io/go-latam " target ="_blank "> https://discord.io/go-latam</ a >
Original file line number Diff line number Diff line change 1
1
// simple ajax post
2
2
$ ( document ) . ready ( function ( ) {
3
+ Notification . requestPermission ( ) . then ( ( res ) => { console . log ( res ) ; } ) ;
3
4
let path = window . location . protocol + '//' + window . location . hostname + ':' + window . location . port ;
4
5
$ ( "form" ) . submit ( function ( e ) {
5
6
let description = $ ( "#description" ) . val ( ) ;
@@ -19,10 +20,9 @@ $(document).ready(function () {
19
20
data : formData ,
20
21
dataType : "json" ,
21
22
encode : true ,
22
- } ) . done ( function ( data ) {
23
- // log response
24
- console . log ( "Response ok:" , data ) ;
25
- alert ( "Desafio recibido y guardado correctamente 😎" ) ;
23
+ } ) . done ( function ( res ) {
24
+ console . log ( res ) ;
25
+ new Notification ( "Desafio recibido y guardado correctamente 😎" ) ;
26
26
} ) ;
27
27
} else {
28
28
alert ( "No se estan mandando valores válidos" )
You can’t perform that action at this time.
0 commit comments