repl.it
@rpat/

sharepointSVG

HTML, CSS, JS

No description

fork
loading
Files
  • index.html
  • script.js
  • style.css
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
 function saveData() {
            showNav();
            console.log("Adding row");
            var username = getUser();
            //var name = document.getElementById("name");
            var changes = document.getElementById("changes");
            // document.getElementById("content").innerHTML = name.value;
            var table = document.getElementById("scrolltable");
            var row = table.insertRow(1);
            var cell1 = row.insertCell(0);
			var cell2 = row.insertCell(1);
            var cell3 = row.insertCell(2);
            // var cell3 = row.insertCell(3);
						
            
            var today = new Date();
            var dd = today.getDate().toString();
            var mm = (today.getMonth() + 1).toString();
            var yy = today.getFullYear().toString();
			var hr = today.getHours();
		    var min = today.getMinutes();
            cell1.innerHTML = mm + "/" + dd + "/" + yy + " " + hr + ":" + min;
            cell2.innerHTML = username; 
            cell3.innerHTML = changes.value;
			// cell4.innerHTML = hr + ":" + min; 
            closeForm();
            save();
            return false;

		}
		
result
console
?