Permalink
Browse files

updated website

  • Loading branch information...
1 parent e7bee29 commit e706730f55a1c231ed9fb21c93080e904bd8455d @niklasvh committed Jan 30, 2013
Showing with 439 additions and 161 deletions.
  1. +1 −0 CNAME
  2. +1 −1 build/html2canvas.min.js
  3. +5 −5 documentation.html
  4. +21 −0 examples.html
  5. +21 −0 faq.html
  6. +1 −1 index.html
  7. +27 −0 pages.js
  8. +1 −1 screenshots.html
  9. +1 −7 site/console.js
  10. +151 −116 site/documentation.html
  11. +34 −0 site/examples.html
  12. +42 −0 site/faq.html
  13. +10 −4 site/footer.html
  14. +51 −6 site/header.html
  15. +1 −2 site/index.html
  16. +28 −0 site/js/prettify.js
  17. +15 −11 site/screenshots.html
  18. +28 −7 site/site.js
View
@@ -0,0 +1 @@
+html2canvas.hertzen.com
Oops, something went wrong.
View
@@ -1,16 +1,16 @@
<!doctype html>
<html ng-app="site">
<head>
- <title>html2canvas</title>
+ <title ng-bind="title">html2canvas</title>
+ <script src="//ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js"></script>
+ <script src="//ajax.googleapis.com/ajax/libs/angularjs/1.0.3/angular.min.js"></script>
+ <script src="/site/site.js"></script>
+ <base href="" />
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="description" content="Screenshot creation with JavaScript">
<meta name="author" content="Niklas von Hertzen">
- <script src="//ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js"></script>
- <script src="//ajax.googleapis.com/ajax/libs/angularjs/1.0.3/angular.min.js"></script>
- <script src="/site/site.js"></script>
-
<link href="/site/css/bootstrap.min.css" rel="stylesheet">
</head>
<body>
View
@@ -0,0 +1,21 @@
+<!doctype html>
+<html ng-app="site">
+ <head>
+ <title ng-bind="title">html2canvas</title>
+ <script src="//ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js"></script>
+ <script src="//ajax.googleapis.com/ajax/libs/angularjs/1.0.3/angular.min.js"></script>
+ <script src="/site/site.js"></script>
+
+ <base href="" />
+ <meta name="viewport" content="width=device-width, initial-scale=1.0">
+ <meta name="description" content="Screenshot creation with JavaScript">
+ <meta name="author" content="Niklas von Hertzen">
+
+ <link href="/site/css/bootstrap.min.css" rel="stylesheet">
+ </head>
+ <body>
+ <header ng-include="'site/header.html'"></header>
+ <div class="container" ng-view></div>
+ <footer ng-include="'site/footer.html'"></footer>
+ </body>
+</html>
View
@@ -0,0 +1,21 @@
+<!doctype html>
+<html ng-app="site">
+ <head>
+ <title ng-bind="title">html2canvas</title>
+ <script src="//ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js"></script>
+ <script src="//ajax.googleapis.com/ajax/libs/angularjs/1.0.3/angular.min.js"></script>
+ <script src="/site/site.js"></script>
+
+ <base href="" />
+ <meta name="viewport" content="width=device-width, initial-scale=1.0">
+ <meta name="description" content="Screenshot creation with JavaScript">
+ <meta name="author" content="Niklas von Hertzen">
+
+ <link href="/site/css/bootstrap.min.css" rel="stylesheet">
+ </head>
+ <body>
+ <header ng-include="'site/header.html'"></header>
+ <div class="container" ng-view></div>
+ <footer ng-include="'site/footer.html'"></footer>
+ </body>
+</html>
View
@@ -1,7 +1,7 @@
<!doctype html>
<html ng-app="site">
<head>
- <title>html2canvas</title>
+ <title ng-bind="title">html2canvas</title>
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js"></script>
<script src="//ajax.googleapis.com/ajax/libs/angularjs/1.0.3/angular.min.js"></script>
<script src="/site/site.js"></script>
View
@@ -0,0 +1,27 @@
+var fs = require('fs'),
+util = require('util');
+
+var copy = function (src, dst, cb) {
+ function copy(err) {
+ var is
+ , os
+ ;
+
+
+ fs.stat(src, function (err) {
+ if (err) {
+ return cb(err);
+ }
+ is = fs.createReadStream(src);
+ os = fs.createWriteStream(dst);
+ util.pump(is, os, cb);
+ });
+ }
+
+ fs.stat(dst, copy);
+};
+
+copy("index.html", "documentation.html", function() {});
+copy("index.html", "screenshots.html", function() {});
+copy("index.html", "examples.html", function() {});
+copy("index.html", "faq.html", function() {});
View
@@ -1,7 +1,7 @@
<!doctype html>
<html ng-app="site">
<head>
- <title>html2canvas</title>
+ <title ng-bind="title">html2canvas</title>
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js"></script>
<script src="//ajax.googleapis.com/ajax/libs/angularjs/1.0.3/angular.min.js"></script>
<script src="/site/site.js"></script>
View
@@ -4,8 +4,6 @@ var message,
timeoutTimer,
timer;
-var proxyUrl = "http://html2canvas.appspot.com/query";
-
function addRow(table,field,val){
var tr = $('<tr />').appendTo( $(table));
tr.append($('<td />').css('font-weight','bold').text(field)).append($('<td />').text(val));
@@ -82,11 +80,9 @@ $(function(){
url:urlParts.href
},
- url: proxyUrl,
+ url: "http://html2canvas.appspot.com/query",
dataType: "jsonp",
success: function(html){
-
-
iframe = document.createElement('iframe');
$(iframe).css({
'visibility':'hidden'
@@ -106,9 +102,7 @@ $(function(){
}
d.write(html);
-
d.close();
-
}
Oops, something went wrong.

0 comments on commit e706730

Please sign in to comment.