Fixing samples.
This commit is contained in:
Родитель
2229613ca9
Коммит
1db66d9e77
|
@ -1,7 +1,7 @@
|
|||
body {
|
||||
font-family: Tahoma, "Helvetica Neue", Arial, Helvetica, sans-serif;
|
||||
font-size: 13px;
|
||||
text-stroke: 1px rgba(255,255,255,0.10);
|
||||
text-stroke: 1px rgba(255,255,255,0.1);
|
||||
color: #555;
|
||||
background-color: #f3f4f5;
|
||||
}
|
||||
|
|
|
@ -2,11 +2,12 @@
|
|||
"name": "geophoto"
|
||||
, "version": "0.0.1"
|
||||
, "dependencies": {
|
||||
"azure": ">= 0.5.1"
|
||||
, "express": "2.5.1"
|
||||
"express": "2.5.1"
|
||||
, "ejs": ">= 0.0.1"
|
||||
, "socket.io": "0.8.7"
|
||||
, "node-uuid": ">= 1.3.3"
|
||||
, "nconf": ">= 0.5.1"
|
||||
, "uglify-js": ">= 1.3.3"
|
||||
, "azure": ">= 0.5.1"
|
||||
}
|
||||
}
|
||||
|
|
|
@ -19,8 +19,8 @@ if (!fs.existsSync) {
|
|||
}
|
||||
|
||||
var azure;
|
||||
if (fs.existsSync('./../../lib/azure.js')) {
|
||||
azure = require('./../../lib/azure');
|
||||
if (fs.existsSync('./../../../lib/azure.js')) {
|
||||
azure = require('./../../../lib/azure');
|
||||
} else {
|
||||
azure = require('azure');
|
||||
}
|
||||
|
|
|
@ -14,11 +14,11 @@
|
|||
<script type="text/javascript" src="socket.io/socket.io.js"></script>
|
||||
|
||||
<script type="text/javascript">
|
||||
var bingMapsCredentials = '<%= bingMapsCredentials %>';
|
||||
var bingMapsCredentials = '<% if (locals.bingMapsCredentials) { %><%= bingMapsCredentials %><% } %>';
|
||||
var initialPushpins = [
|
||||
<% pushpins.forEach(function(pushpin) { %>
|
||||
<% if (locals.pushpins) { pushpins.forEach(function(pushpin) { %>
|
||||
{ title: '<%= pushpin.title %>', description: '<%= pushpin.description %>', latitude: '<%= pushpin.latitude %>', longitude: '<%= pushpin.longitude %>', RowKey: '<%= pushpin.RowKey %>', PartitionKey: '<%= pushpin.PartitionKey %>', imageUrl: '<%= pushpin.imageUrl %>' },
|
||||
<% }) %>
|
||||
<% }) } %>
|
||||
];
|
||||
</script>
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче