Ignore:
Timestamp:
10/12/24 21:32:15 (5 weeks ago)
Author:
macagaso <gasoskamarija@…>
Branches:
master
Parents:
743de55
Message:

Updated version

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/main/resources/static/js/adminNewsCoupons.js

    r743de55 r43c9090  
    66let selectedImage;
    77let questionable;
     8let helper;
    89
    910let pageType;
     
    3839                    imagePreview.style.display='inline';
    3940                    imagePreview.innerHTML = `<img src="${e.target.result}" style="width: 100%; height: auto;">`;
    40                     selectedImage =e.target.result ; // Store the selected file
     41                    selectedImage =e.target.result ;
    4142
    4243                    console.log(selectedImage);
     
    300301        document.getElementById('text').value = param2;
    301302        let importantValue=newsItem.querySelector('img').getAttribute("data-attribute");
     303        selectedImage=importantValue;
    302304        document.getElementById('main-image').innerHTML=`<img src="${importantValue}" style="width: 20%; height: 20%;">`;
    303305    }
Note: See TracChangeset for help on using the changeset viewer.