modal.js 631 B

123456789101112131415161718192021
  1. let modal = {
  2. feedback: function(){
  3. let form = document.getElementById("modalFeedback");
  4. form.style.display = "flex";
  5. let merchantInput = document.createElement("input");
  6. merchantInput.type = "hidden";
  7. merchantInput.name = "merchant";
  8. merchantInput.value = merchant.id;
  9. form.appendChild(merchantInput);
  10. let now = new Date();
  11. let dateInput = document.createElement("input");
  12. dateInput.type = "hidden";
  13. dateInput.name = "date";
  14. dateInput.value = now.getTime();
  15. form.appendChild(dateInput);
  16. }
  17. };
  18. module.exports = modal;