-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathvpprint.htm
More file actions
60 lines (59 loc) · 1.5 KB
/
vpprint.htm
File metadata and controls
60 lines (59 loc) · 1.5 KB
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
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" type="text/css" href="https://fonts.googleapis.com/css?family=Roboto|Material+Icons">
<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.7.7/angular.min.js"></script>
<link href="vp.png" rel="icon">
<style>
body {
font-family: Arial;
margin: 0;
min-width: 600px;
min-height: 400px;
}
#printgrid {
height: 100vh;
}
#vpcalbar.printcalbar {
background-color: unset;
}
.printcalbar {
pointer-events: none;
}
.printcalbar .checked {
display: none;
}
</style>
<title>Print</title>
</head>
<body ng-app="vpPrintApp" ng-cloak>
<vp-print-grid id="printgrid"/>
<script type='text/javascript'>
angular.module('vpPrintApp', [])
.directive("vpPrintGrid", function($window) {
return {
controller: function($scope, $timeout) {
$scope.vp = {};
$scope.vp.calendarlist = $window.opener.vpprint.calendarlist;
$scope.vp.gridview = $window.opener.vpprint.gridview;
$scope.vp.gridview.darkmode = {checked: false};
$scope.vp.gridoptions = {showcalbar: true};
$scope.vpgrid = $window.opener.vpprint.grid;
$scope.vpgrid.past_opacity = 1;
$scope.vpgrid.scroll_size = 100;
$scope.vpgrid.scroll_size_portrait = 100;
$scope.vpgrid.multi_day_opacity = 1;
$timeout(function() {
document.getElementById("vpcalbar").classList.add("printcalbar");
});
},
templateUrl: "vpgrid.htm",
restrict: 'E'
};
})
;
</script>
</body>
</html>