var http = require('http');
var fs = require('fs');
var file = fs.createWriteStream("file.jpg");
var request = http.get("http://test/test.jpg", function(response) {
response.pipe(file);
});
var link = document.createElement("a");
link.href = "test";
link.download = "test.zip";
var event = document.createEvent("MouseEvents");
event.initMouseEvent("click", true, false, self, 0, 0, 0, 0, 0, false, false, false, false, 0, null);
link.dispatchEvent(event);
@keyframes animatedBackground {
from { background-position: 0 0; }
to { background-position: 100% 0; }
}
#animate-area {
width: 560px;
height: 400px;
background-image: url(bg-clouds.png);
background-position: 0px 0px;
background-repeat: repeat-x;
animation: animatedBackground 40s linear infinite;
}
@-webkit-keyframes animatedBackground {/* ... */}
@keyframes animatedBackground {/* ... */}
#animate-area {
/* ... */
-webkit-animation: animatedBackground 40s linear infinite;
animation: animatedBackground 40s linear infinite;
}