Skip to content
GitLab
Explore
Projects
Groups
Snippets
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
zedflow
fgdi
Commits
3c887096
Commit
3c887096
authored
1 year ago
by
Traboulsi
Browse files
Options
Download
Email Patches
Plain Diff
Update public/js/add_content.js
parent
39ce3c7f
Pipeline
#9016
passed with stage
in 10 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
public/js/add_content.js
+1
-1
public/js/add_content.js
with
1 addition
and
1 deletion
+1
-1
public/js/add_content.js
+
1
-
1
View file @
3c887096
...
@@ -77,7 +77,7 @@ function addcontent(item) {
...
@@ -77,7 +77,7 @@ function addcontent(item) {
var
sdgProjectHTML
=
''
;
var
sdgProjectHTML
=
''
;
if
(
'
sdgImage
'
in
item
)
{
if
(
'
sdgImage
'
in
item
)
{
var
sdgProjectLink
=
item
.
sdgImage
;
var
sdgProjectLink
=
item
.
sdgImage
;
var
customColor
=
'
#8A2BE2
'
;
var
customColor
=
'
lilac
'
;
sdgProjectHTML
=
`<a class="sdg-button btn btn-sm btn-outline-" style="color: white; border-color:
${
customColor
}
;" href="javascript:void(0);"onclick="toggleImage('
${
sdgProjectLink
}
'); changeColor(this, '
${
customColor
}
');" onmouseover="hoverEffect(this, 'lilac', 'white');"onmouseout="hoverEffect(this, '
${
customColor
}
', 'white');">SDG Projekt <img id="sdgImage" src="" alt="SDG Project Image" style="max-width: 100%; max-height: 100%; display: none;"></a> `
;
sdgProjectHTML
=
`<a class="sdg-button btn btn-sm btn-outline-" style="color: white; border-color:
${
customColor
}
;" href="javascript:void(0);"onclick="toggleImage('
${
sdgProjectLink
}
'); changeColor(this, '
${
customColor
}
');" onmouseover="hoverEffect(this, 'lilac', 'white');"onmouseout="hoverEffect(this, '
${
customColor
}
', 'white');">SDG Projekt <img id="sdgImage" src="" alt="SDG Project Image" style="max-width: 100%; max-height: 100%; display: none;"></a> `
;
}
}
...
...
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