From dce581466dd06bf19fe4576911486a42e282b38b Mon Sep 17 00:00:00 2001 From: Daniela Arcese Date: Mon, 5 Jun 2017 10:26:50 -0400 Subject: [PATCH] format --- frontend/src/upload.js | 18 +++++++++--------- public/index.html | 2 +- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/frontend/src/upload.js b/frontend/src/upload.js index d3546a6e..b27e1a0a 100644 --- a/frontend/src/upload.js +++ b/frontend/src/upload.js @@ -3,17 +3,17 @@ const FileSender = require('./fileSender'); let onChange = event => { const file = event.target.files[0]; - let fileList = document.getElementById("uploaded-files"); - let row = document.createElement("tr"); - let name = document.createElement("td"); - let link = document.createElement("td"); - let expiry = document.createElement("td"); + let fileList = document.getElementById('uploaded-files'); + let row = document.createElement('tr'); + let name = document.createElement('td'); + let link = document.createElement('td'); + let expiry = document.createElement('td'); let cellText = document.createTextNode(file.name); name.appendChild(cellText); - let progress = document.createElement("p"); + let progress = document.createElement('p'); row.appendChild(name); row.appendChild(link); @@ -29,9 +29,9 @@ let onChange = event => { .origin}/download/${info.fileId}/#${info.secretKey}`; link.innerHTML = url; localStorage.setItem(info.fileId, info.deleteToken); - let del = document.createElement("td"); - let btn = document.createElement("button"); - btn.innerHTML = "x"; + let del = document.createElement('td'); + let btn = document.createElement('button'); + btn.innerHTML = 'x'; btn.classList.add('delete-btn'); btn.addEventListener('click', () => { FileSender.delete( diff --git a/public/index.html b/public/index.html index e6b6787d..016f78aa 100644 --- a/public/index.html +++ b/public/index.html @@ -16,7 +16,7 @@
- DRAG & DROP + DRAG & DROP