Commit 3fe0cbe9 authored by Martin Lees's avatar Martin Lees
Browse files

work in progress with the avatars

parent 7dcf359b
......@@ -8,7 +8,7 @@
text-align: right;
}
steempress_sp_cmmnt img { border: 0; max-width: 100%; height: 55px;}
#steempress_sp_cmmnt img { border: 0; max-width: 100%; height: 55px;}
/* page layout structure */
......@@ -23,7 +23,7 @@ steempress_sp_cmmnt img { border: 0; max-width: 100%; height: 55px;}
}
.steempress_sp_comment_text {
font-family: Arial, Geneva, Verdana, sans-serif; font-size: 1.3em; line-height: 1.42em; margin-bottom: 12px; font-weight: normal; color: #656565;
font-family: Arial, Geneva, Verdana, sans-serif; font-size: 1.6em; line-height: 1.42em; margin-bottom: 12px; font-weight: normal; color: #656565;
}
/* steempress_sp_comments area */
......
......@@ -28,7 +28,6 @@
// Make the actual CORS request.
function makeCorsRequest() {
// This is a sample server that supports CORS.
var url = "http://localhost:8002";
var xhr = createCORSRequest('POST', url);
......@@ -36,24 +35,14 @@
xhr.setRequestHeader("Content-type", "application/x-www-form-urlencoded");
xhr.setRequestHeader("Content-length", params.length);
if (!xhr) {
alert('CORS not supported');
return;
}
// Response handlers.
xhr.onload = function() {
var data = JSON.parse(xhr.responseText);
$("#steempress_sp_price")[0].innerHTML = data.payout;
$("#steempress_sp_comments")[0].innerHTML = data.comments;
console.log(data);
};
xhr.onerror = function() {
alert('Woops, there was an error making the request.');
};
xhr.send(params);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment