Toggle navigation
Toggle navigation
This project
Loading...
Sign in
fe
/
YOHOOD
·
Commits
Go to a project
GitLab
Go to group
Project
Activity
Files
Commits
Pipelines
0
Builds
0
Graphs
Milestones
Issues
0
Merge Requests
0
Members
Labels
Wiki
Forks
Network
Create a new issue
Download as
Email Patches
Plain Diff
Browse Files
Authored by
whb
10 years ago
Commit
089435be2fac57b5395ef1cb2a63a41e1994a469
1 parent
a0016ccf
调整flash宽度
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
2 deletions
res/js/yohood.js
res/js/yohood.js
View file @
089435b
...
...
@@ -357,14 +357,12 @@ define('yohood', function(require, exports) {
postSwitch
();
},
5000
);
})
$
(
'.side-related-tab'
).
on
(
'click'
,
'a'
,
function
()
{
nowIndex
=
$
(
this
).
index
();
if
(
$
(
this
).
hasClass
(
'current'
))
return
;
$
(
this
).
addClass
(
'current'
).
siblings
().
removeClass
(
'current'
);
$
(
'.side-related-list'
).
hide
().
eq
(
nowIndex
).
show
();
});
relatedTop
=
$
(
'.side-related-post'
).
offset
().
top
;
$
(
window
).
on
(
'scroll'
,
function
()
{
relatedTop
=
$
(
'.app-download'
).
offset
().
top
+
$
(
'.app-download'
).
outerHeight
();
...
...
@@ -380,6 +378,18 @@ define('yohood', function(require, exports) {
$
(
'.side-related-post'
).
removeAttr
(
'style'
);
}
});
//设置flash宽度
$
(
".text-body"
).
find
(
"object[class=content-web-flash]"
).
each
(
function
()
{
if
(
parseInt
(
$
(
this
).
attr
(
"width"
))
>
650
||
parseInt
(
$
(
this
).
css
(
"width"
))
>
650
)
{
$
(
this
).
css
({
width
:
"650px"
});
}
});
$
(
".text-body"
).
find
(
"embed"
).
each
(
function
()
{
if
(
parseInt
(
$
(
this
).
attr
(
"width"
))
>
650
||
parseInt
(
$
(
this
).
css
(
"width"
))
>
650
)
{
$
(
this
).
css
({
width
:
"650px"
});
}
});
}
//详情页资讯
...
...
Please
register
or
login
to post a comment