diff --git a/style-transform-master/.vs/style-transform-master/v16/.suo b/style-transform-master/.vs/style-transform-master/v16/.suo
index 88b6a8b..a698882 100644
Binary files a/style-transform-master/.vs/style-transform-master/v16/.suo and b/style-transform-master/.vs/style-transform-master/v16/.suo differ
diff --git a/style-transform-master/.vs/style-transform-master/v16/Browse.VC.db b/style-transform-master/.vs/style-transform-master/v16/Browse.VC.db
new file mode 100644
index 0000000..53af1c1
Binary files /dev/null and b/style-transform-master/.vs/style-transform-master/v16/Browse.VC.db differ
diff --git a/style-transform-master/style-transform-master/bin/Microsoft.NodejsTools.WebRole.dll b/style-transform-master/style-transform-master/bin/Microsoft.NodejsTools.WebRole.dll
new file mode 100644
index 0000000..9ba35a3
Binary files /dev/null and b/style-transform-master/style-transform-master/bin/Microsoft.NodejsTools.WebRole.dll differ
diff --git a/style-transform-master/style-transform-master/obj/Debug/style-transform-master.njsproj.CoreCompileInputs.cache b/style-transform-master/style-transform-master/obj/Debug/style-transform-master.njsproj.CoreCompileInputs.cache
new file mode 100644
index 0000000..c6f7e85
--- /dev/null
+++ b/style-transform-master/style-transform-master/obj/Debug/style-transform-master.njsproj.CoreCompileInputs.cache
@@ -0,0 +1 @@
+a006da68cee2e5948f791e89043c9fd33dcfa03a
diff --git a/style-transform-master/style-transform-master/obj/Debug/style-transform-master.njsproj.FileListAbsolute.txt b/style-transform-master/style-transform-master/obj/Debug/style-transform-master.njsproj.FileListAbsolute.txt
new file mode 100644
index 0000000..ab48961
--- /dev/null
+++ b/style-transform-master/style-transform-master/obj/Debug/style-transform-master.njsproj.FileListAbsolute.txt
@@ -0,0 +1,3 @@
+C:\作业\云计算\大作业\style-transform-master\style-transform-master\style-transform-master\obj\Debug\style-transform-master.njsprojAssemblyReference.cache
+C:\作业\云计算\大作业\style-transform-master\style-transform-master\style-transform-master\obj\Debug\style-transform-master.njsproj.CoreCompileInputs.cache
+C:\作业\云计算\大作业\style-transform-master\style-transform-master\style-transform-master\bin\Microsoft.NodejsTools.WebRole.dll
diff --git a/style-transform-master/style-transform-master/obj/Debug/style-transform-master.njsprojAssemblyReference.cache b/style-transform-master/style-transform-master/obj/Debug/style-transform-master.njsprojAssemblyReference.cache
new file mode 100644
index 0000000..a7bdf91
Binary files /dev/null and b/style-transform-master/style-transform-master/obj/Debug/style-transform-master.njsprojAssemblyReference.cache differ
diff --git a/style-transform-master/style-transform-master/public/js/getImage.js b/style-transform-master/style-transform-master/public/js/getImage.js
new file mode 100644
index 0000000..3fcc8e4
--- /dev/null
+++ b/style-transform-master/style-transform-master/public/js/getImage.js
@@ -0,0 +1,12 @@
+var xmlhttp = new XMLHttpRequest();
+
+function detectImage(taskID) {
+ xmlhttp.open("GET","tmp\\"+taskID+".jpg",false);
+
+ xmlhttp.send();
+ if(xmlhttp.readyState == 4) {
+ if(xmlhttp.status == 200) {
+ location.replace("./success?taskID=" + taskID);
+ }
+ }
+}
\ No newline at end of file
diff --git a/style-transform-master/style-transform-master/public/tmp/16.jpg b/style-transform-master/style-transform-master/public/tmp/16.jpg
new file mode 100644
index 0000000..c976f5a
Binary files /dev/null and b/style-transform-master/style-transform-master/public/tmp/16.jpg differ
diff --git a/style-transform-master/style-transform-master/server.js b/style-transform-master/style-transform-master/server.js
index f032e5d..7060438 100644
--- a/style-transform-master/style-transform-master/server.js
+++ b/style-transform-master/style-transform-master/server.js
@@ -14,7 +14,19 @@ server.use(cookieParser());
const port = process.env.PORT || 1337;
server.get('/', function (req, res) {
+
+});
+
+server.post('/generate', function (req, res) {
+ let taskID = Date.now.toString(16);
+ res.cookie("taskID", taskID, {maxAge: 900000, httpOnly: true});
+ res.end('');
+});
+
+server.get('/success', function (req, res) {
+ let taskID = req.query.taskID;
+ res.end();
});
server.listen(port);