Skip to content

Commit e706730

Browse files
committed
updated website
1 parent e7bee29 commit e706730

18 files changed

Lines changed: 439 additions & 161 deletions

CNAME

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
html2canvas.hertzen.com

build/html2canvas.min.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.

documentation.html

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
11
<!doctype html>
22
<html ng-app="site">
33
<head>
4-
<title>html2canvas</title>
4+
<title ng-bind="title">html2canvas</title>
5+
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js"></script>
6+
<script src="//ajax.googleapis.com/ajax/libs/angularjs/1.0.3/angular.min.js"></script>
7+
<script src="/site/site.js"></script>
58

9+
<base href="" />
610
<meta name="viewport" content="width=device-width, initial-scale=1.0">
711
<meta name="description" content="Screenshot creation with JavaScript">
812
<meta name="author" content="Niklas von Hertzen">
913

10-
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js"></script>
11-
<script src="//ajax.googleapis.com/ajax/libs/angularjs/1.0.3/angular.min.js"></script>
12-
<script src="/site/site.js"></script>
13-
1414
<link href="/site/css/bootstrap.min.css" rel="stylesheet">
1515
</head>
1616
<body>

examples.html

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
<!doctype html>
2+
<html ng-app="site">
3+
<head>
4+
<title ng-bind="title">html2canvas</title>
5+
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js"></script>
6+
<script src="//ajax.googleapis.com/ajax/libs/angularjs/1.0.3/angular.min.js"></script>
7+
<script src="/site/site.js"></script>
8+
9+
<base href="" />
10+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
11+
<meta name="description" content="Screenshot creation with JavaScript">
12+
<meta name="author" content="Niklas von Hertzen">
13+
14+
<link href="/site/css/bootstrap.min.css" rel="stylesheet">
15+
</head>
16+
<body>
17+
<header ng-include="'site/header.html'"></header>
18+
<div class="container" ng-view></div>
19+
<footer ng-include="'site/footer.html'"></footer>
20+
</body>
21+
</html>

faq.html

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
<!doctype html>
2+
<html ng-app="site">
3+
<head>
4+
<title ng-bind="title">html2canvas</title>
5+
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js"></script>
6+
<script src="//ajax.googleapis.com/ajax/libs/angularjs/1.0.3/angular.min.js"></script>
7+
<script src="/site/site.js"></script>
8+
9+
<base href="" />
10+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
11+
<meta name="description" content="Screenshot creation with JavaScript">
12+
<meta name="author" content="Niklas von Hertzen">
13+
14+
<link href="/site/css/bootstrap.min.css" rel="stylesheet">
15+
</head>
16+
<body>
17+
<header ng-include="'site/header.html'"></header>
18+
<div class="container" ng-view></div>
19+
<footer ng-include="'site/footer.html'"></footer>
20+
</body>
21+
</html>

index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<!doctype html>
22
<html ng-app="site">
33
<head>
4-
<title>html2canvas</title>
4+
<title ng-bind="title">html2canvas</title>
55
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js"></script>
66
<script src="//ajax.googleapis.com/ajax/libs/angularjs/1.0.3/angular.min.js"></script>
77
<script src="/site/site.js"></script>

pages.js

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
var fs = require('fs'),
2+
util = require('util');
3+
4+
var copy = function (src, dst, cb) {
5+
function copy(err) {
6+
var is
7+
, os
8+
;
9+
10+
11+
fs.stat(src, function (err) {
12+
if (err) {
13+
return cb(err);
14+
}
15+
is = fs.createReadStream(src);
16+
os = fs.createWriteStream(dst);
17+
util.pump(is, os, cb);
18+
});
19+
}
20+
21+
fs.stat(dst, copy);
22+
};
23+
24+
copy("index.html", "documentation.html", function() {});
25+
copy("index.html", "screenshots.html", function() {});
26+
copy("index.html", "examples.html", function() {});
27+
copy("index.html", "faq.html", function() {});

screenshots.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<!doctype html>
22
<html ng-app="site">
33
<head>
4-
<title>html2canvas</title>
4+
<title ng-bind="title">html2canvas</title>
55
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js"></script>
66
<script src="//ajax.googleapis.com/ajax/libs/angularjs/1.0.3/angular.min.js"></script>
77
<script src="/site/site.js"></script>

site/console.js

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,6 @@ var message,
44
timeoutTimer,
55
timer;
66

7-
var proxyUrl = "http://html2canvas.appspot.com/query";
8-
97
function addRow(table,field,val){
108
var tr = $('<tr />').appendTo( $(table));
119
tr.append($('<td />').css('font-weight','bold').text(field)).append($('<td />').text(val));
@@ -82,11 +80,9 @@ $(function(){
8280
url:urlParts.href
8381

8482
},
85-
url: proxyUrl,
83+
url: "http://html2canvas.appspot.com/query",
8684
dataType: "jsonp",
8785
success: function(html){
88-
89-
9086
iframe = document.createElement('iframe');
9187
$(iframe).css({
9288
'visibility':'hidden'
@@ -106,9 +102,7 @@ $(function(){
106102
}
107103

108104
d.write(html);
109-
110105
d.close();
111-
112106
}
113107

114108

0 commit comments

Comments
 (0)