Commit adf1a565 authored by Patrick's avatar Patrick
Browse files

update text

parent 5268a11c
......@@ -33,6 +33,6 @@ const httpsServer = https.createServer(credentials, app);
// });
httpsServer.listen(8083, () => {
console.log('HTTPS Server running on port 443');
console.log('HTTPS Server running on port 8083');
});
const http = require('http');
const fs = require('fs');
const express = require('express')
const app = express();
const bodyParser = require('body-parser')
const soap = require('soap');
app.use(bodyParser.urlencoded({ extended: false }))
app.use(bodyParser.json())
const request = require('ajax-request');
app.use(express.static('vcm'));
app.listen(process.env.PORT || 8083);
console.log("on 8080");
// name of the file
var filename = 'vcm/config.json';
var contentSync = fs.readFileSync(filename);
console.log('Content of the file : ' + contentSync);
console.log(contentSync.includes('"balloonTypes":'));
// var newtext = contentSync.replace("balloonTypes","this is a test")
// "balloonTypes": [
// {adfafas
// "template": [
// "<div class='balloon' id='myBalloon'>",
// " <h1 class='balloon-title'><%= obj.title %></h1>",
// " <div class='balloon-content'>",
// " <%= obj.description %>",
// " </div>",
// " <div class='balloon-close-col'>",
// " <button class='close-balloon'><i class='fa fa-times fa-lg'></i></button>",
// " </div>",
// " <div class='dialog-image-balloon'></div>",
// " <div class='balloon-left-edge'></div>",
// "</div>"
// ],
// "minTop": "balloonHeight + 70",
// "minLeft": "70",
// "layerNames": [],
// "layerTypes": [
// "vcs.vcm.layer.Vector"
// ]
// },
\ No newline at end of file
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment