Changeset 715
- Timestamp:
- 06/27/12 11:40:53 (12 months ago)
- Location:
- trollforge/lastmeasure/server
- Files:
-
- 1 added
- 1 edited
-
lmresource.h (modified) (3 diffs)
-
testo.h (added)
Legend:
- Unmodified
- Added
- Removed
-
trollforge/lastmeasure/server/lmresource.h
r714 r715 243 243 244 244 for (int i = FindAssetIndex("/audio/", -1), n = 0; i < (int)NSTATICS; i = FindAssetIndex("/audio/", i)) 245 data << " audio[" << n << "] = '//" << host << staticnames[i] << "';\r\n";245 data << " audio[" << n++ << "] = '//" << host << staticnames[i] << "';\r\n"; 246 246 247 247 data << … … 431 431 432 432 for (int i = FindAssetIndex(IMAGES_PREFIX, -1), n = 0; i < (int)NSTATICS; i = FindAssetIndex(IMAGES_PREFIX, i)) 433 ret << " images[" << n << "] = '//" << host << staticnames[i] << "';\r\n";433 ret << " images[" << n++ << "] = '//" << host << staticnames[i] << "';\r\n"; 434 434 435 435 ret << … … 482 482 " </object>\r\n" 483 483 "</div>\r\n"; 484 485 return ret.str();486 }487 /* }}} */488 /* {{{ Geolocation */489 static std::string GeoLocation()490 {491 std::stringstream ret("");492 493 ret <<494 495 "var latitude, longitude;\r\n"496 497 "if (navigator.geolocation) {\r\n"498 " navigator.geolocation.getCurrentPosition( function (position) {\r\n"499 " latitude = (position.coords.latitude);\r\n"500 " longitude = (position.coords.longitude);\r\n"501 " });\r\n"502 "}\r\n";503 484 504 485 return ret.str();
Note: See TracChangeset
for help on using the changeset viewer.
