-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathapp.js
72 lines (67 loc) · 2.09 KB
/
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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
var patient = angular.module('patient', ['ngRoute']);
patient.controller('patientController', function ($scope) {
$scope.doctor = [
{
"name": "NAME: Dr. Aman Jain",
"spec": "SPECIALISATION: Interventional Cardiologist & Diabetologist",
"fee": "FEES: 200",
"degree": "MD(Medicine), DNB(Cardiology)",
"thumb": "/abcd.jpg"
},
{
"name": "NAME: Dr. Shruti Jha",
"spec": "SPECIALISATION: Opthalmologist",
"fee": "FEES: 200",
"degree": "MD(Medicine) MS(Master of Surgery)",
"thumb": "/pqrs.jpeg"
},
{
"name": "NAME: Dr. Kamala Chhajer",
"spec": "SPECIALISATION: Child Specialist",
"fee": "FEES: 200",
"degree": "MCh(Master of Chirurgiae), MD(Medicine)",
"thumb": "/DOC1.jpeg"
},
{
"name": "NAME: Dr. Shivram Goenka",
"spec": "SPECIALISATION: Dentist",
"degree": "MD(Medicine), BDS(Bachelor of Dental Surgeries)",
"fee": "FEES: 200",
"thumb": "/xyz.jpg"
},
{
"name": "NAME: Dr. Seema Jha",
"spec": "SPECIALISATION: Child Specialist",
"degree": "MD(Medicine), MS(ENT)",
"fee": "FEES: 200",
"thumb": "/DOC3.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");
})
});
patient.controller('patientBController', function ($scope, $http) {
$http({
method: 'GET',
url: '/Data/Doctors.json'
}).then(function (data) {
console.log(data);
$scope.doctor = data;
}, function (error) {
console.log('Error');
});
})