332 { name: 'profile_inittemp_low', type: 'float' }, |
332 { name: 'profile_inittemp_low', type: 'float' }, |
333 { name: 'profile_steps', type: 'string' }, |
333 { name: 'profile_steps', type: 'string' }, |
334 { name: 'stage', type: 'string' }, |
334 { name: 'stage', type: 'string' }, |
335 { name: 'beeruuid', type: 'string' }, |
335 { name: 'beeruuid', type: 'string' }, |
336 { name: 'yeast_lo', type: 'float' }, |
336 { name: 'yeast_lo', type: 'float' }, |
337 { name: 'yeast_hi', type: 'float' } |
337 { name: 'yeast_hi', type: 'float' }, |
|
338 { name: 'webcam_url', type: 'string' }, |
|
339 { name: 'webcam_light', type: 'int' } |
338 ], |
340 ], |
339 id: 'record', |
341 id: 'record', |
340 url: url |
342 url: url |
341 }; |
343 }; |
342 |
344 |
465 $("#info_mode").jqxDropDownList({ disabled: false }); |
467 $("#info_mode").jqxDropDownList({ disabled: false }); |
466 $("#Profile1").hide(); |
468 $("#Profile1").hide(); |
467 $("#Profile2").hide(); |
469 $("#Profile2").hide(); |
468 $("#status_profile").html(''); |
470 $("#status_profile").html(''); |
469 } |
471 } |
|
472 if (record.online && (record.webcam_url != "")) { |
|
473 $("#Camera").show(); |
|
474 } else { |
|
475 $("#Camera").hide(); |
|
476 } |
470 |
477 |
471 yl = record.yeast_lo; |
478 yl = record.yeast_lo; |
472 yh = record.yeast_hi; |
479 yh = record.yeast_hi; |
473 var range = { ranges: [{ startValue: 0, endValue: yl, style: { fill: '#3399FF', stroke: '#3399FF' }, endWidth: 10, startWidth: 10 }, |
480 var range = { ranges: [{ startValue: 0, endValue: yl, style: { fill: '#3399FF', stroke: '#3399FF' }, endWidth: 10, startWidth: 10 }, |
474 { startValue: yl, endValue: yh, style: { fill: '#00CC33', stroke: '#00CC33' }, endWidth: 10, startWidth: 10 }, |
481 { startValue: yl, endValue: yh, style: { fill: '#00CC33', stroke: '#00CC33' }, endWidth: 10, startWidth: 10 }, |
673 $("#FLog").jqxButton({ template: "primary", width: '150px', theme: theme }); |
680 $("#FLog").jqxButton({ template: "primary", width: '150px', theme: theme }); |
674 $("#FLog").click(function () { |
681 $("#FLog").click(function () { |
675 var url="log_fermentation.php?code=" + record.beercode + "&name=" + record.beername; |
682 var url="log_fermentation.php?code=" + record.beercode + "&name=" + record.beername; |
676 window.open(url); |
683 window.open(url); |
677 }); |
684 }); |
|
685 $("#Camera").jqxButton({ template: "primary", width: '150px', theme: theme }); |
|
686 $("#Camera").click(function () { |
|
687 var url=record.webcam_url; |
|
688 window.open(url); |
|
689 }); |
678 createAbortElements(); |
690 createAbortElements(); |
679 }); |
691 }); |