Ero sivun ”Widget:CitobsDBcounter” versioiden välillä
Järvi-meriwikistä
Rivi 34: | Rivi 34: | ||
if ( start_date == 'x' ) { start_date = weekago.toISOString().split( 'T' )[0]; } | if ( start_date == 'x' ) { start_date = weekago.toISOString().split( 'T' )[0]; } | ||
if ( end_date == 'x' ) { end_date = today.toISOString().split( 'T' )[0]; } | if ( end_date == 'x' ) { end_date = today.toISOString().split( 'T' )[0]; } | ||
− | |||
− | |||
− | |||
citobs.loadRequests( { 'service_code': service_code, 'keyword': keyword, 'start_date': start_date, 'end_date': end_date }, function() { | citobs.loadRequests( { 'service_code': service_code, 'keyword': keyword, 'start_date': start_date, 'end_date': end_date }, function() { | ||
var c1 = 0; | var c1 = 0; | ||
var c2 = 0; | var c2 = 0; | ||
+ | |||
console.log( citobs ); | console.log( citobs ); | ||
+ | |||
for ( var o in citobs.request ) { | for ( var o in citobs.request ) { | ||
c1++; | c1++; |