Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
zedflow
fgdi
Commits
0d6990bf
Commit
0d6990bf
authored
Dec 22, 2023
by
Traboulsi
Browse files
Update public/js/add_content.js
parent
5fadc1d8
Pipeline
#8983
passed with stage
in 11 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
public/js/add_content.js
View file @
0d6990bf
...
...
@@ -77,7 +77,9 @@ function addcontent(item) {
var
sdgProjectHTML
=
''
;
if
(
'
sdgImage
'
in
item
)
{
var
sdgProjectLink
=
item
.
sdgImage
;
sdgProjectHTML
=
`<a class="btn btn-sm btn-outline-info mt-1" href="
${
sdgProjectLink
}
" target="_blank"> <i class="fas fa-sdg"></i> SDG Project</a> `
var
customColor
=
'
#8A2BE2
'
;
//sdgProjectHTML = `<a class="btn btn-sm btn-outline-info mt-1" href="${sdgProjectLink}" target="_blank"> <i class="fas fa-sdg"></i> SDG Project</a> `
sdgProjectHTML
=
`<a class="btn btn-sm btn-outline- mt-1" style="color:
${
customColor
}
; border-color:
${
customColor
}
;" href="
${
sdgProjectLink
}
" target="_blank"> <i class="fas fa-sdg"></i> SDG Project</a> `
;
}
// Salam ...
...
...
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