Skip to content
GitLab
Explore
Projects
Groups
Snippets
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
GMP
Slide Your Net
Commits
c74b58d5
Commit
c74b58d5
authored
5 years ago
by
Eric Clouzet
Browse files
Options
Download
Email Patches
Plain Diff
modify js to improve the view
#14
parent
95f18e89
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
js/ecologram.js
+26
-26
js/ecologram.js
with
26 additions
and
26 deletions
+26
-26
js/ecologram.js
+
26
-
26
View file @
c74b58d5
...
...
@@ -5,29 +5,29 @@ function go() {
$
(
'
img.eg_media
'
).
css
({
opacity
:
0
});
fitimg
();
$
(
'
.tweet
'
).
css
(
'
padding-top
'
,
((
parseInt
(
$
(
'
body
'
).
height
())
-
parseInt
(
$
(
'
.tweet
'
).
height
()))
/
2
)
+
'
px
'
);
$
(
'
#user
'
).
animate
({
opacity
:
1
,
marginLeft
:
'
0
'
},
5
00
);
$
(
'
.avatar
'
).
animate
({
opacity
:
1
},
5
0
0
);
$
(
'
#time
'
).
animate
({
opacity
:
1
},
5
00
);
$
(
'
#user
'
).
animate
({
opacity
:
1
,
marginLeft
:
'
0
'
},
10
00
);
$
(
'
.avatar
'
).
animate
({
opacity
:
1
},
7
50
);
$
(
'
#time
'
).
animate
({
opacity
:
1
},
10
00
);
$
(
'
.tweet
'
).
animate
({
opacity
:
1
},
5
00
);
$
(
'
.tweet
'
).
animate
({
opacity
:
1
},
1
00
);
$
(
'
#content p
'
).
animate
({
opacity
:
1
},
500
,
function
()
{
$
(
'
#content p
'
).
animate
({
opacity
:
1
},
500
0
,
function
()
{
fitimg
();
});
$
(
'
.instagram img
'
).
animate
({
opacity
:
1
,
marginLeft
:
'
20%
'
},
5
0
0
,
function
()
{
$
(
'
.instagram img
'
).
animate
({
opacity
:
1
,
marginLeft
:
'
20%
'
},
7
50
,
function
()
{
fitimg
();
});
window
.
setTimeout
(
function
()
{
getItems
()
},
refresh_delay
);
}
function
out
(
item
)
{
$
(
'
#user
'
).
animate
({
opacity
:
0
,
marginLeft
:
'
1em
'
},
100
0
);
$
(
'
.avatar
'
).
animate
({
opacity
:
0
},
100
0
);
$
(
'
#time
'
).
animate
({
opacity
:
0
,
bottom
:
0
},
100
0
);
$
(
'
#content p,#content img
'
).
animate
({
opacity
:
0
},
100
0
);
$
(
'
.tweet
'
).
animate
({
opacity
:
0
},
100
0
);
$
(
'
.instagram img
'
).
animate
({
opacity
:
0
,
marginLeft
:
'
40%
'
},
100
0
);
window
.
setTimeout
(
function
()
{
display
(
item
);
go
()
},
500
0
);
function
out
(
item
,
first_call
)
{
$
(
'
#user
'
).
animate
({
opacity
:
0
,
marginLeft
:
'
1em
'
},
75
0
);
$
(
'
.avatar
'
).
animate
({
opacity
:
0
},
75
0
);
$
(
'
#time
'
).
animate
({
opacity
:
0
,
bottom
:
0
},
75
0
);
$
(
'
#content p,#content img
'
).
animate
({
opacity
:
0
},
75
0
);
$
(
'
.tweet
'
).
animate
({
opacity
:
0
},
75
0
);
$
(
'
.instagram img
'
).
animate
({
opacity
:
0
,
marginLeft
:
'
40%
'
},
75
0
);
window
.
setTimeout
(
function
()
{
display
(
item
);
go
()
},
first_call
===
null
?
7000
:
0
);
}
function
fitimg
()
{
$
(
'
img.eg_media
'
).
each
(
function
()
{
...
...
@@ -36,16 +36,16 @@ function fitimg() {
ho
=
$
(
'
html
'
).
height
()
-
img_offset
.
top
-
20
;
if
(
ho
<
50
)
ho
=
50
;
$
(
this
).
animate
({
opacity
:
1
,
height
:
ho
+
'
px
'
,
width
:
'
auto
'
},
5
0
0
);
$
(
this
).
animate
({
opacity
:
1
,
height
:
ho
+
'
px
'
,
width
:
'
auto
'
},
7
50
);
}
else
if
(
img_offset
.
left
+
$
(
this
).
width
()
>
$
(
'
html
'
).
width
())
{
wi
=
$
(
'
html
'
).
width
()
-
img_offset
.
left
-
30
;
if
(
wi
<
50
)
wi
=
50
;
$
(
this
).
animate
({
opacity
:
1
,
width
:
wi
+
'
px
'
,
height
:
'
auto
'
},
5
0
0
);
$
(
this
).
animate
({
opacity
:
1
,
width
:
wi
+
'
px
'
,
height
:
'
auto
'
},
7
50
);
}
else
{
$
(
this
).
animate
({
opacity
:
1
},
5
0
0
);
$
(
this
).
animate
({
opacity
:
1
},
7
50
);
}
});
}
...
...
@@ -70,7 +70,7 @@ function display(item) {
$
(
body
).
find
(
'
#texto
'
).
addClass
(
'
no_media
'
);
}
$
(
'
.slider-page__title
'
).
css
(
'
content
'
,
'
(
'
+
item
.
media_url
+
'
)
'
);
//$(body).find
('#texto').text(content);
$
(
'
#texto
'
).
text
(
content
);
//$(body).find('#texto_new').text(content);
//$(body).find('#texto_new2').text(content);
//$(body).find('#texto_new3').text(content);
...
...
@@ -79,7 +79,7 @@ function display(item) {
}
$
(
document
).
ready
(
function
()
{
getItems
();
getItems
(
true
);
if
(
$
(
'
#eg_slide
'
).
length
>
0
||
$
(
'
#eg_pix
'
).
length
>
0
)
{
$
(
'
img.eg_media
'
).
css
({
opacity
:
0
});
fitimg
();
...
...
@@ -112,19 +112,19 @@ $(document).ready(function () {
});
function
getItems
(
datas
=
null
)
{
function
getItems
(
first_call
=
null
)
{
var
datas
=
{};
datas
.
type
=
"
LIVEWALL
"
;
if
(
!
datas
)
{
var
datas
=
{};
datas
.
type
=
"
LIVEWALL
"
;
}
$
.
ajax
({
url
:
domain_stat
+
"
ajax.php
"
,
data
:
datas
})
.
done
(
response
=>
{
var
item
=
JSON
.
parse
(
response
)[
0
];
out
(
item
);
out
(
item
,
first_call
);
})
.
fail
(
error
=>
{
console
.
error
(
error
);
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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
Menu
Explore
Projects
Groups
Snippets