-
Notifications
You must be signed in to change notification settings - Fork 19
Expand file tree
/
Copy pathprint.html
More file actions
111 lines (111 loc) · 3.86 KB
/
print.html
File metadata and controls
111 lines (111 loc) · 3.86 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
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
<html>
<head>
<link rel="stylesheet" type="text/css" href="assets/css/roadbook-print.css">
</head>
<body style= "margin-left:0px;">
<nav class="main-nav">
<div class="row">
<div class="large-4 columns"><p></p>
</div>
<div class="large-4 columns logo">
Tulip
</div>
<div class="large-4 columns" align='right'>
<a href="#" class="button small radius">
Save PDF
</a>
</div>
</div>
<div class="row" style='padding:10px'>
<div class="large-4 columns" align='center'>
<select id="number-format" data-bind="options: numberFormats ,optionsText: 'text', optionsValue: 'value', value: numberFormat">
</select>
</div>
<div class="large-4 columns" align='center'>
<select id="page-format" data-bind="options: pageFormats ,optionsText: 'text', optionsValue: 'value', value: pageFormat">
</select>
</div>
<div class="large-4 columns" align='center'>
<select id="page-length" data-bind="options: pageLengths ,optionsText: 'text', optionsValue: 'value', value: pageLength">
</select>
</div>
</div>
</nav>
<div align='center'>
<img src='./assets/tulip-logo3.png' width='300'>
</div>
<div id="roadbook">
<hr>
<div id="roadbook-header">
<div class="row">
<div id="roadbook-total-distance" class="large-4 column">
Total Kilometers:
<p data-bind="text: printApp.totalDistance"></p>
</div>
<div id="roadbook-name" class="large-8 column">
<p href="#" data-bind="text: printApp.name" data-default="true"></p>
</div>
</div>
<div class="row">
<hr>
<div id="roadbook-desc" class="large-12 column">
<p href="#" data-bind="html: printApp.desc" data-default="true"></p>
<hr>
</div>
</div>
</div>
<!-- render waypoint templates here -->
<div id="roadbook-waypoints" data-bind="template: { name: 'waypoint-template', foreach: printApp.waypoints}"></div>
</div>
<!--
Define templates
-->
<!-- waypoint template-->
<script type="text/html" id="waypoint-template">
<div class='waypoint row'>
<div class='waypoint-distance'>
<div class='total-distance'>
<span data-bind="text: kmFromStart.toFixed(1)" class='regularDigit'>
</span>
<span data-bind="text:kmFromStart.toFixed(2).slice(-1)" class='hundredthDigit'>
</span>
</div>
<div class="relative-distance">
<div data-bind="text: kmFromPrev.toFixed(2)">
</div>
</div>
<div class="waypoint-index">
<div data-bind="text: $index()+1">
</div>
</div>
</div>
<div class='waypoint-tulip'>
<img data-bind="attr: { src: tulip}">
</div>
<div class='waypoint-note'>
<p data-bind="html: notes.text"></p>
<div class='heading' data-bind="visible: showHeading">
<label>C </label>
<span data-bind="text: Math.round(heading) + '\xB0'"></span>
<!-- Just in case you want to go back to leading zeros, here's the code:
<span data-bind="text: Array(Math.max(3 - String(Math.round(heading)).length + 1, 0)).join(0) + Math.round(heading) + '\xB0'"></span>
--->
</div>
</div>
</div>
</script>
</body>
<script>
//Jquery sees it is running in CommonJS env, and wants to be used as such.
window.$ = window.jQuery = require('./assets/libs/jquery-2.1.4.min.js');
</script>
<!--
Load the rest of our libraries
-->
<script src="assets/libs/jsclass/dist/browser/js.class.min.js"></script>
<script src="assets/libs/knockout-3.4.0.js"></script>
<!--
Load the printApplication
-->
<script src='src/modules/printing/print-application.js'></script>
</html>