-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathapp.js
34 lines (30 loc) · 996 Bytes
/
app.js
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
32
33
34
// JavaScript code
function hello() {
document.getElementById("intro").innerHTML = "namastey";
}
function undo(){
document.getElementById("intro").innerHTML = "simple paragraph";
}
const myObject = {
name: 'srushti',
midname: 'padurang',
surname: 'chewale'
};
console.log(myObject.name, myObject.midname, myObject.surname);
//light dark mode below
function myFunction() {
var element = document.body;
element.classList.toggle("dark-mode");
}
// $(document).ready(function (){
// $("form").submit(function(event){
// event.preventDefault()
// var firstname = document.getElementById( "firstname").value
// var lastname = document.getElementById( "lastname").value
// var result = document.getElementById( "result");
// $.post("process.php", { firstname: firstname, lastname: lastname }, function(data) {
// console.log(data);
// result.innerHTML = data;
// });
// })
// })