Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Danny Froberg
steempress_amn
Commits
3fe0cbe9
Commit
3fe0cbe9
authored
Aug 25, 2018
by
Martin Lees
Browse files
work in progress with the avatars
parent
7dcf359b
Changes
2
Hide whitespace changes
Inline
Side-by-side
public/css/steempress_sp-public.css
View file @
3fe0cbe9
...
...
@@ -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.
3
em
;
line-height
:
1.42em
;
margin-bottom
:
12px
;
font-weight
:
normal
;
color
:
#656565
;
font-family
:
Arial
,
Geneva
,
Verdana
,
sans-serif
;
font-size
:
1.
6
em
;
line-height
:
1.42em
;
margin-bottom
:
12px
;
font-weight
:
normal
;
color
:
#656565
;
}
/* steempress_sp_comments area */
...
...
public/js/steempress_sp-public.js
View file @
3fe0cbe9
...
...
@@ -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
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment