-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
161 lines (137 loc) · 9.17 KB
/
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
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
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
<!DOCTYPE html>
<html lang="en" ng-app='Myapp'>
<head>
<meta charset="UTF-8">
<meta name="description" content="Free Web tutorials">
<meta name="keywords" content="HTML,CSS,XML,JavaScript">
<meta name="author" content="John Doe">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Calendar | Scheduler</title>
<!-- ******Scripts******* -->
<!-- jQuery -->
<script type="text/javascript" src="bower_components/jquery/dist/jquery.min.js"></script>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.1.0/jquery.min.js"></script>
<!-- jquery ui -->
<script type="text/javascript" src="bower_components/jquery-ui/jquery-ui.min.js"></script>
<script src="https://code.jquery.com/ui/1.12.1/jquery-ui.min.js" integrity="sha256-VazP97ZCwtekAsvgPBSUwPFKdrwD3unUfSGVYrahUqU=" crossorigin="anonymous"></script>
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/jquery-ui-timepicker-addon/1.6.3/i18n/jquery-ui-timepicker-addon-i18n.min.js"></script>
<script type="text/javascript" src="https://cdn.jsdelivr.net/jquery.ui.timepicker.addon/1.4.5/jquery-ui-timepicker-addon.min.js"></script>
<!-- moment -->
<script type="text/javascript" src="bower_components/moment/min/moment.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/moment.js/2.18.0/moment.min.js"></script>
<!-- bootstrap js -->
<script type="text/javascript" src="bower_components/bootstrap/dist/js/bootstrap.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/4.0.0-alpha.6/js/bootstrap.min.js"></script>
<!-- angualr -->
<script type="text/javascript" src="bower_components/angular/angular.min.js"></script>
<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.5.7/angular.min.js"></script>
<!-- ui bootstrap -->
<script type="text/javascript" src="bower_components/angular-bootstrap/ui-bootstrap.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/angular-ui-bootstrap/2.5.0/ui-bootstrap-tpls.min.js"></script>
<!-- angular-ui-calendar -->
<script type="text/javascript" src="bower_components/angular-ui-calendar/src/calendar.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/angular-ui-calendar/1.0.0/calendar.min.js"></script>
<!-- fullcalendar -->
<script type="text/javascript" src="bower_components/fullcalendar/dist/fullcalendar.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/fullcalendar/3.2.0/fullcalendar.min.js"></script>
<script type="text/javascript">
$( document ).ready(function() {
$(function() {
$( "#datepicker1, #datepicker2" ).datetimepicker({
timeFormat: "hh:mm tt"
});
});
});
</script>
<!-- Links -->
<link rel="stylesheet" href="bower_components/fullcalendar/dist/fullcalendar.css">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/fullcalendar/3.2.0/fullcalendar.min.css" />
<link rel="stylesheet" href="bower_components/bootstrap/dist/css/bootstrap.min.css" />
<link href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-BVYiiSIFeK1dGmJRAkycuHAHRg32OmUcww7on3RYdg4Va+PmSTsz/K68vbdEjh4u" crossorigin="anonymous">
<link rel="stylesheet" href="bower_components/jquery-ui/themes/smoothness/jquery-ui.min.css" />
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/jqueryui/1.12.1/themes/smoothness/jquery-ui.min.css" />
<link rel="stylesheet" href="https://cdn.jsdelivr.net/jquery.ui.timepicker.addon/1.4.5/jquery-ui-timepicker-addon.min.css" />
<link rel="stylesheet" href="css/style.css">
</head>
<body>
<div ng-controller="MainController">
<!-- *********header***** -->
<header>
<nav class="navbar navbar-default" role="navigation" >
<div class="container-fluid">
</br>
<div class="navbar-header" >
<h1 class="text-success">My Scheduler</h1>
<br/>
</div>
</div>
</nav> <!-- end of navbar -->
</header>
<div class="container-fluid" >
<div class="row-fluid">
<div class="col-xs-12">
<div class="row-fuild">
<!-- ********* Event Sidebar ********* -->
<div class="col-md-4">
<div class="event-sidebar">
<ul class="list-events">
<div class="event-form">
<li>
<input ng-model="current.title" type="text" class="form-control" id="inputTitle" placeholder="Title of the event" value="{{current.title}}" required>
<div class="form-group">
<label for="date">Start Date/time:</label>
<div class='input-group date' id='datetimepicker1'>
<input ng-model='current.start' data-format="yyyy-MM-dd hh:mm:ss" type='text' class="form-control" id='datepicker1' value="{{event.start}}">
<span class="input-group-addon">
<span class="glyphicon glyphicon-calendar"></span>
</span>
</div>
</div>
<div class="form-group">
<label for="date">End Date/time:</label>
<div class='input-group date' id='datetimepicker2'>
<input ng-model="current.end" data-format="yyyy-MM-dd hh:mm:ss" type='text' class="form-control" id='datepicker2' value="{{event.end}}"/>
<span class="input-group-addon">
<span class="glyphicon glyphicon-calendar"></span>
</span>
</div>
</div>
<!-- <button ng-click="newEvent(current)" type="submit" class="btn btn-success">Add New Event</button> -->
<button ng-click="saveEvent(current)" type="button" class="btn btn-info">Save</button>
</li>
</div>
<hr>
<!-- ************Event List*********** -->
<div class="events-list">
<li ng-repeat="event in events">
<div class="single-event">
<div class="event-item" ng-style="myStyle">
<a href="#" ng-click="removeEvent(event)" class="pull-right"><span class="glyphicon glyphicon-remove"></span></a>
<b><p type="text" ng-model="event.title" class="ng-valid ng-dirty"></p>{{event.title}}<p></b>
</div>
{{event.start}} - {{event.end}}
<div class="edit">
<a href="#" ng-click="editEvent(event)" type="button" class="btn btn-xs btn-warning edit-btn" ng-show="editPencil"><span class="glyphicon glyphicon-pencil" id="edit" title="edit"></span></a>
<a href="#" ng-click="editPencil = !editPencil; myStyle={background:'#68F158'}" ng-show="editPencil" class="pull-right" id="complete"><span class="glyphicon glyphicon-ok"></span></a>
</div>
<div class="finished">
</div>
<!--<button ng-click="saveEvent(current)" type="button" class="btn btn-info">Save</button>-->
</div>
</li>
</div>
</ul>
</div>
</div> <!--Enf of event sidebar-->
<div class="col-md-8">
<div id="calender" ui-calendar="uiConfig.calender" ng-model="eventSources" calendar="myCalendar">
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<script src="app.js"></script>
</body>
</html>