|
|
@ -5,6 +5,8 @@ |
|
|
|
this.TaskInfo = null; |
|
|
|
this.TaskStateCheckTimer = null; |
|
|
|
|
|
|
|
this.isDecimal = true; |
|
|
|
|
|
|
|
this.Startup = function () { |
|
|
|
this.ResultList.Startup(); |
|
|
|
this.InitReleaseTime(); |
|
|
@ -286,7 +288,7 @@ |
|
|
|
var labelHeight = $('#realtime-slider').find('.label-list:first').height(); |
|
|
|
|
|
|
|
var resultList = $('#realtime-result-list'); |
|
|
|
resultList.find('.calc-list ul').height(windowHeight - labelHeight - 635); |
|
|
|
resultList.find('.calc-list ul').height(windowHeight - labelHeight - (this.isDecimal ? 633 : 681)); |
|
|
|
}; |
|
|
|
|
|
|
|
this.getLngLat = function (degree, minute, second) { |
|
|
@ -298,14 +300,20 @@ |
|
|
|
this.OnTypeSelectClick = function (event) { |
|
|
|
$('.type-select span').removeClass("active"); |
|
|
|
$(event.target).addClass("active"); |
|
|
|
|
|
|
|
|
|
|
|
if ($(event.target).attr('type') === 'decimal') { |
|
|
|
this.isDecimal = true; |
|
|
|
this.Relayout(); |
|
|
|
|
|
|
|
$('#lng-decimal').show(); |
|
|
|
$('#lat-decimal').show(); |
|
|
|
$('#lng-degrees').hide(); |
|
|
|
$('#lat-degrees').hide(); |
|
|
|
$('.degree-text').hide(); |
|
|
|
} else { |
|
|
|
this.isDecimal = false; |
|
|
|
this.Relayout(); |
|
|
|
|
|
|
|
$('#lng-decimal').hide(); |
|
|
|
$('#lat-decimal').hide(); |
|
|
|
$('#lng-degrees').show(); |
|
|
@ -332,7 +340,7 @@ |
|
|
|
$('#lng-degree-text').addClass('degree-text-error'); |
|
|
|
return; |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
if ($(event.target).attr('id') === 'lng-degree') |
|
|
|
$('#lng-degree-text').text(this.getLngLat($(event.target).val(), value1.val(), value2.val())); |
|
|
|
else if ($(event.target).attr('id') === 'lng-minute') |
|
|
@ -345,5 +353,5 @@ |
|
|
|
$('#lng-degree-text').text(this.getLngLat(value1.val(), $(event.target).val(), value2.val())); |
|
|
|
else if ($(event.target).attr('id') === 'lat-second') |
|
|
|
$('#lng-degree-text').text(this.getLngLat(value1.val(), value2.val(), $(event.target).val())); |
|
|
|
} |
|
|
|
}; |
|
|
|
}; |