Version 1.1

Version 1.1
This commit is contained in:
Francesco Malagrino
2014-02-24 19:54:05 +01:00
parent ca7ce7af1d
commit e3d699c3df
34 changed files with 6456 additions and 7697 deletions

View File

@@ -470,6 +470,7 @@ $(document).ready(function() {
function saveHtml()
{
webpage = '<html>\n<head>\n<script type="text/javascript" src="http://www.francescomalagrino.com/BootstrapPageGenerator/3/js/jquery-2.0.0.min.js"></script>\n<script type="text/javascript" src="http://www.francescomalagrino.com/BootstrapPageGenerator/3/js/jquery-ui"></script>\n<link href="http://www.francescomalagrino.com/BootstrapPageGenerator/3/css/bootstrap-combined.min.css" rel="stylesheet" media="screen">\n<script type="text/javascript" src="http://www.francescomalagrino.com/BootstrapPageGenerator/3/js/bootstrap.min.js"></script>\n</head>\n<body>\n'+ webpage +'\n</body>\n</html>'
/* FM aka Vegetam Added the function that save the file in the directory Downloads. Work only to Chrome Firefox And IE*/
if (navigator.appName =="Microsoft Internet Explorer" && window.ActiveXObject)
{
@@ -487,13 +488,13 @@ function saveHtml()
write(webpage);
close();
document.charset = "utf-8";
dlg = execCommand('SaveAs', false, locationFile);
body.removeChild(ir);
dlg = execCommand('SaveAs', false, locationFile+"webpage.html");
}
return dlg;
}
}
else{
webpage = webpage;
var blob = new Blob([webpage], {type: "text/html;charset=utf-8"});
saveAs(blob, "webpage.html");
}