Commit 28dd2977 authored by Traboulsi's avatar Traboulsi
Browse files

Update public/js/add_content.js

parent 89f5e491
Pipeline #8992 passed with stage
in 10 seconds
......@@ -88,7 +88,7 @@ function addcontent(item) {
var customColor = '#8A2BE2';
//var imageSize = '5px'; // Adjust this value to your desired size
sdgProjectHTML = `<a class="btn btn-sm btn-outline- mt-1" style="color: ${customColor}; border-color: ${customColor};" href="javascript:void(0);" onclick="changeImage('${sdgProjectLink}')"><img src="imgs/thumbnails/SDG-HFT.png" alt="SDG Project Image" class="btn-outline-" style="max-width: 5px ; max-height: 10 px;"></a> &nbsp;`;
sdgProjectHTML = `<a class="btn btn-sm btn-outline- mt-1" style="color: ${customColor}; border-color: ${customColor};" href="javascript:void(0);" onclick="changeImage('${sdgProjectLink}')"><img src="imgs/thumbnails/SDG-HFT.png" alt="SDG Project Image" class="btn-outline-" style="max-width: 20px ; max-height: 20 px;"></a> &nbsp;`;
// Add a JavaScript function to change the image and open the link
sdgProjectHTML += `
......@@ -127,7 +127,7 @@ function addcontent(item) {
projectHTML +
presentationHTML +
repoHTML +
sdgProjectHTML + // Include the SDG x Project button here
'<b>'+ sdgProjectHTML + '</b>'+// Include the SDG x Project button here
'</p>' +
'</div>' +
'</div>' +
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment