-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathapp1.js
53 lines (49 loc) · 1.36 KB
/
app1.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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
var doctor = angular.module('doctor', ['ngRoute']);
doctor.controller('doctorController', function ($scope) {
$scope.patient = [
{
"name": "Harshit Arora",
"age": 24,
"phone_no": 9780123234,
"issue": "Teeth Pain",
"thumb": "/Pictures/pat3.jpeg"
},
{
"name": "Ishita Dutta",
"age": 34,
"phone_no": 9780343234,
"issue": "Severe back pain",
"thumb": "/Pictures/pat7.jpeg"
},
{
"name": "Aatif Aslam",
"age": 37,
"phone_no": 7980123234,
"issue": "Stomach ache",
"thumb": "/Pictures/pat1.jpeg"
},
{
"name": "Shipra Sharma",
"age": 22,
"phone_no": 9780123278,
"issue": "Headache cough and cold",
"thumb": "/Pictures/pat2.jpeg"
}
]
})
$(document).ready(function () {
var cnt = 0;
$(".chat").click(function () {
cnt++;
console.log('CLK');
$(".frm").toggle();
console.log($("span").html());
$("#details").attr("class", "blur");
});
$('.header-area span').click(function () {
console.log('clicked');
console.log($(".frm").html());
$(".frm").toggle();
$("#details").attr("class", "none");
})
});