Changeset 43c9090 for src/main/resources/static/js/adminNewsCoupons.js
- Timestamp:
- 10/12/24 21:32:15 (5 weeks ago)
- Branches:
- master
- Parents:
- 743de55
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/main/resources/static/js/adminNewsCoupons.js
r743de55 r43c9090 6 6 let selectedImage; 7 7 let questionable; 8 let helper; 8 9 9 10 let pageType; … … 38 39 imagePreview.style.display='inline'; 39 40 imagePreview.innerHTML = `<img src="${e.target.result}" style="width: 100%; height: auto;">`; 40 selectedImage =e.target.result ; // Store the selected file41 selectedImage =e.target.result ; 41 42 42 43 console.log(selectedImage); … … 300 301 document.getElementById('text').value = param2; 301 302 let importantValue=newsItem.querySelector('img').getAttribute("data-attribute"); 303 selectedImage=importantValue; 302 304 document.getElementById('main-image').innerHTML=`<img src="${importantValue}" style="width: 20%; height: 20%;">`; 303 305 }
Note:
See TracChangeset
for help on using the changeset viewer.