Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
sora
/
achievement
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
6cb5dd2e
authored
Mar 12, 2020
by
o.kimura
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
ニュース一覧・お知らせ一覧 110文字超過したら末尾を「...」に
parent
c8280891
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
35 additions
and
0 deletions
achievement-official.conohawing.com/assets/include/header.php
achievement-official.conohawing.com/common_previous/css/news.css
achievement-official.conohawing.com/common_previous/js/news.js
achievement-official.conohawing.com/common_previous/js/news.min.js
achievement-official.conohawing.com/news/index.php
achievement-official.conohawing.com/news/info/index.php
achievement-official.conohawing.com/assets/include/header.php
View file @
6cb5dd2e
...
...
@@ -122,6 +122,7 @@
<?php
if
(
$pageid
==
"news"
||
$pageid
==
"news-info"
||
$pageid
==
"news-20200310"
||
$pageid
==
"news-20200302"
||
$pageid
==
"news-20200227"
||
$pageid
==
"news-20200226"
||
$pageid
==
"news-20200221"
||
$pageid
==
"news-20200217"
)
{
?>
<link
rel=
"stylesheet"
href=
"/common_previous/css/trainer.css"
>
<link
rel=
"stylesheet"
href=
"/common_previous/css/indivisual-base.css"
>
<link
rel=
"stylesheet"
href=
"/common_previous/css/news.css"
>
<?php
}
?>
<?php
if
(
$pageid
==
"company-access"
)
{
?>
...
...
achievement-official.conohawing.com/common_previous/css/news.css
0 → 100644
View file @
6cb5dd2e
@charset
"UTF-8"
;
/* ========================================
news.css
======================================== */
.list_text
{
visibility
:
hidden
;
}
achievement-official.conohawing.com/common_previous/js/news.js
0 → 100644
View file @
6cb5dd2e
$
(
function
()
{
var
$setElm
=
$
(
'.list_text'
);
var
cutFigure
=
'110'
;
// カットする文字数
var
afterTxt
=
'...'
;
// 文字カット後に表示するテキスト
$setElm
.
each
(
function
()
{
var
textLength
=
$
(
this
).
text
().
length
;
var
textTrim
=
$
(
this
).
text
().
substr
(
0
,
(
cutFigure
))
if
(
cutFigure
<
textLength
)
{
$
(
this
).
html
(
textTrim
+
afterTxt
).
css
({
visibility
:
'visible'
});
}
else
if
(
cutFigure
>=
textLength
)
{
$
(
this
).
css
({
visibility
:
'visible'
});
}
});
});
achievement-official.conohawing.com/common_previous/js/news.min.js
0 → 100644
View file @
6cb5dd2e
$
(
function
(){
var
t
=
$
(
".list_text"
),
a
=
"110"
,
s
=
"..."
;
t
.
each
(
function
(){
var
t
=
$
(
this
).
text
().
length
,
e
=
$
(
this
).
text
().
substr
(
0
,
a
);
t
>
a
?
$
(
this
).
html
(
e
+
s
).
css
({
visibility
:
"visible"
}):
a
>=
t
&&
$
(
this
).
css
({
visibility
:
"visible"
})})});
\ No newline at end of file
achievement-official.conohawing.com/news/index.php
View file @
6cb5dd2e
...
...
@@ -178,4 +178,5 @@
</main>
</div>
</div>
<script
src=
"/common_previous/js/news.min.js"
></script>
<?php
include
(
$_SERVER
[
'DOCUMENT_ROOT'
]
.
'/assets/include/footer.php'
);
?>
achievement-official.conohawing.com/news/info/index.php
View file @
6cb5dd2e
...
...
@@ -198,4 +198,5 @@
</main>
</div>
</div>
<script
src=
"/common_previous/js/news.min.js"
></script>
<?php
include
(
$_SERVER
[
'DOCUMENT_ROOT'
]
.
'/assets/include/footer.php'
);
?>
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