walltaker_for_WallpaperEngine/script.js
//sends POST to Website and passes data to setNewPost

sends POST to Website and passes data to setNewPost
sends POST to Website and passes data to setNewPost
function postReaction(reactType){	
	if(settings["api_key"].length == 8){
		var txt = ""
		if(reactPacks.length>0)
		txt = document.getElementById("btn_reactDD_value").innerHTML;
		console.log("Posting reaction ("+reactType+","+txt+") to Link " + settings["linkID"] );
		 $.ajax({
			type: "POST",		
			url: "https://walltaker.joi.how/api/links/"+ settings["linkID"] +"/response.json",
			data: JSON.stringify({ "api_key": settings["api_key"], "type" : ""+reactType+"", "text" : txt}),
			dataType: "json",
			contentType: "application/json",
			success: function(data){overrideUpdate=true;setNewPost(data);},
			failure: function(errMsg) {}
		});
	}
}
function postReaction ( reactType ) { if ( settings [ "api_key" ] . length == 8 ) { var txt = "" if ( reactPacks . length > 0 ) txt = document . getElementById ( "btn_reactDD_value" ) . innerHTML ; console . log ( "Posting reaction (" + reactType + "," + txt + ") to Link " + settings [ "linkID" ] ) ; $ . ajax ( { type : "POST" , url : "https://walltaker.joi.how/api/links/" + settings [ "linkID" ] + "/response.json" , data : JSON . stringify ( { "api_key" : settings [ "api_key" ] , "type" : "" + reactType + "" , "text" : txt } ) , dataType : "json" , contentType : "application/json" , success : function ( data ) { overrideUpdate = true ; setNewPost ( data ) ; } , failure : function ( errMsg ) { } } ) ; } }
sends POST to Website and passes data to setNewPost
sends POST to Website and passes data to setNewPost
//Reaction Text
 //POST	
