Skip to content

Commit 23928e1

Browse files
committed
Update examples & build
1 parent b894f38 commit 23928e1

4 files changed

Lines changed: 48 additions & 30 deletions

File tree

lib/pdf.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lib/scripts/pdf_a4_portrait.js

Lines changed: 5 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

test/example.html

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,23 @@
11
<html>
22
<head>
3+
<meta charset="utf-8">
34
<style>
5+
body {
6+
font-family: "Helvetica Neue", sans-serif;
7+
background: #F0F0F0;
8+
color: #333;
9+
}
10+
411
* {
512
border: 0;
613
margin: 0;
714
padding: 0;
815
}
9-
body {
10-
background: #F0F0F0;
11-
color: #333;
12-
}
1316
</style>
1417
</head>
1518
<body>
1619
<div id="pageHeader">Header</div>
17-
<div id="pageContent">Content</div>
20+
<div id="pageContent">Content with Unicode Char 😃</div>
1821
<div id="pageFooter">Footer</div>
1922
</body>
2023
</html>

test/external-css.html

Lines changed: 34 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,36 @@
1-
<link rel="stylesheet" type="text/css" href="http://getbootstrap.com/dist/css/bootstrap.min.css">
2-
<style>
3-
body {
4-
padding: 1cm;
5-
}
1+
<html>
2+
<head>
3+
<link rel="stylesheet" type="text/css" href="http://getbootstrap.com/dist/css/bootstrap.min.css">
4+
<style>
5+
body {
6+
padding: 1cm;
7+
}
68

7-
.jumbotron {
8-
background: #F0F0F0!important;
9-
}
9+
.jumbotron {
10+
background: #F0F0F0!important;
11+
}
1012

11-
.btn {
12-
background: rgb(66,133,243)!important;
13-
}
14-
</style>
15-
<div class="container">
16-
<div class="jumbotron">
17-
<h1>Navbar example</h1>
18-
<p>This example is a quick exercise to illustrate how the default, static and fixed to top navbar work. It includes the responsive CSS and HTML, so it also adapts to your viewport and device.</p>
19-
<p>To see the difference between static and fixed top navbars, just scroll.</p>
20-
<p>
21-
<a class="btn btn-lg btn-primary" href="http://getbootstrap.com/components/#navbar" role="button">View navbar docs &raquo;</a>
22-
</p>
23-
</div>
24-
</div>
13+
.btn {
14+
background: rgb(66,133,243)!important;
15+
}
16+
</style>
17+
<body>
18+
<div id="pageHeader">
19+
<div class="container">
20+
<br/>
21+
<span class="label label-default">With external css</span>
22+
</div>
23+
</div>
24+
25+
<div class="container">
26+
<div class="jumbotron">
27+
<h1>Navbar example</h1>
28+
<p>This example is a quick exercise to illustrate how the default, static and fixed to top navbar work. It includes the responsive CSS and HTML, so it also adapts to your viewport and device.</p>
29+
<p>To see the difference between static and fixed top navbars, just scroll.</p>
30+
<p>
31+
<a class="btn btn-lg btn-primary" href="http://getbootstrap.com/components/#navbar" role="button">View navbar docs &raquo;</a>
32+
</p>
33+
</div>
34+
</div>
35+
</body>
36+
</html>

0 commit comments

Comments
 (0)