Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
UGL
website
Commits
71b6e63e
Commit
71b6e63e
authored
4 years ago
by
Santhanavanich
Browse files
Options
Download
Email Patches
Plain Diff
update link
parent
3aed117e
Pipeline
#3613
passed with stage
in 17 seconds
Changes
1
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
public/js/add_paper.js
+14
-14
public/js/add_paper.js
with
14 additions
and
14 deletions
+14
-14
public/js/add_paper.js
+
14
-
14
View file @
71b6e63e
...
@@ -20,12 +20,18 @@ function addpaper(item) {
...
@@ -20,12 +20,18 @@ function addpaper(item) {
}
}
authors
=
authors
.
substring
(
0
,
authors
.
length
-
2
);
authors
=
authors
.
substring
(
0
,
authors
.
length
-
2
);
// Prepare YouTube Link
last_item
=
item
// var array_contains_youtube = true
var
PDF_HTML
=
''
var
YouTubeHTML
=
''
if
(
'
pdf
'
in
item
.
links
)
{
// to be replaced by if (item.YouTubelink) or so...
if
(
'
pdf
'
in
item
.
links
)
{
// to be replaced by if (item.YouTubelink) or so...
var
YouTubelink
=
item
.
links
.
youtube
// to be replaced by item.YouTubelink or so...
YouTubeHTML
=
`<button type="button" href="
${
YouTubelink
}
" class="btn btn-outline-info btn-circle"> <i class="fas fa-globe"></i> </button>Link`
var
pdf_link
=
item
.
links
.
pdf
// to be replaced by item.pdf_link or so...
PDF_HTML
=
`<a type="button" href="
${
pdf_link
}
" class="btn btn-outline-success btn-circle" target="_blank"> <i class="far fa-file-pdf"> </i></a> PDF `
}
var
UrlHTML
=
''
if
(
'
url
'
in
item
.
links
)
{
// to be replaced by if (item.YouTubelink) or so...
var
url
=
item
.
links
.
url
// to be replaced by item.pdf or so...
UrlHTML
=
`<a type="button" href="
${
url
}
" class="btn btn-outline-info btn-circle" target="_blank"> <i class="fas fa-globe"></i> </a> Link `
}
}
// Do Authors and Keywords
// Do Authors and Keywords
var
doi
var
doi
...
@@ -37,13 +43,7 @@ function addpaper(item) {
...
@@ -37,13 +43,7 @@ function addpaper(item) {
doi
=
'
<small class="text-muted">
'
+
item
.
item
.
conference
.
name
+
'
,
'
+
item
.
item
.
conference
.
date
+
'
,
'
+
item
.
item
.
DOI
doi
=
'
<small class="text-muted">
'
+
item
.
item
.
conference
.
name
+
'
,
'
+
item
.
item
.
conference
.
date
+
'
,
'
+
item
.
item
.
DOI
}
}
// Prepare Explore Link
// var array_contains_explore_link = true
var
ExploreHTML
=
''
if
(
'
demo
'
in
item
.
links
)
{
// to be replaced by if (item.YouTubelink) or so...
var
ExploreLink
=
item
.
links
.
demo
// to be replaced by item.ExploreLink or so...
ExploreHTML
=
`<button type="button" href="
${
ExploreLink
}
" class="btn btn-outline-success btn-circle"> <i class="far fa-file-pdf"> </i></button>PDF`
}
new_row
.
innerHTML
=
new_row
.
innerHTML
+
'
<div class="card" style="max-width: 1080px;">
'
+
new_row
.
innerHTML
=
new_row
.
innerHTML
+
'
<div class="card" style="max-width: 1080px;">
'
+
'
<div class="row">
'
+
'
<div class="row">
'
+
...
@@ -63,11 +63,11 @@ function addpaper(item) {
...
@@ -63,11 +63,11 @@ function addpaper(item) {
'
</h5>
'
+
'
</h5>
'
+
doi
+
doi
+
'
<br>
'
+
'
<br>
'
+
ExploreHTML
+
PDF_HTML
+
'
'
+
//BIBTEX BUTTON
//BIBTEX BUTTON
// '<button type="button" class="btn btn-outline-danger btn-circle" data-toggle="collapse" data-target="#bibtex-paper-vision" aria-expanded="false" aria-controls="bibtex-paper-vision"> <i class="fas fa-code"></i> </button>BIB' +
// '<button type="button" class="btn btn-outline-danger btn-circle" data-toggle="collapse" data-target="#bibtex-paper-vision" aria-expanded="false" aria-controls="bibtex-paper-vision"> <i class="fas fa-code"></i> </button>BIB' +
YouTube
HTML
+
Url
HTML
+
'
</small>
'
+
'
</small>
'
+
// BIBTEX area
// BIBTEX area
...
...
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