File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11function newGame ( ) {
22 $ . ajax ( {
33 type : "POST" ,
4- url : "http ://hangman-api.herokuapp.com/hangman" ,
4+ url : "https ://hangman-api.herokuapp.com/hangman" ,
55 } ) . done ( function ( data ) {
66 $ ( '.hangman-word' ) . text ( data . hangman ) ;
77 $ ( '.token' ) . text ( data . token ) ;
@@ -14,7 +14,7 @@ function guess(token, letter) {
1414 $ . ajax ( {
1515 type : "PUT" ,
1616 dataType : 'json' ,
17- url : "http ://hangman-api.herokuapp.com/hangman" ,
17+ url : "https ://hangman-api.herokuapp.com/hangman" ,
1818 data : { "token" : token , "letter" : letter } ,
1919 beforeSend : function ( ) {
2020 $ ( ".letter" ) . prop ( 'disabled' , true ) ;
@@ -42,7 +42,7 @@ function getSolution(token) {
4242 $ . ajax ( {
4343 type : "GET" ,
4444 dataType : 'json' ,
45- url : "http ://hangman-api.herokuapp.com/hangman" ,
45+ url : "https ://hangman-api.herokuapp.com/hangman" ,
4646 data : { "token" : token } ,
4747 } ) . done ( function ( data ) {
4848 var hangman_word = $ ( '.hangman-word' ) . text ( ) ;
You can’t perform that action at this time.
0 commit comments