let inputW1 = +document.querySelector('.i-31');
static void Main(string[] args)
{
int some = 400;
int ansome;
if (some > 100)
{
ansome = some - 100;
Console.WriteLine(ansome);
}
ansome = 10000;
Console.WriteLine(ansome);
}
onClick={this.AddMarker.bind(this)}
onClick={e => this.AddMarker(e)}
$('#chart-calculate').click(function() {
var empty = false;
$('#chart-form input:not(#place)').each(function() {
if ($(this).val() == '') {
$(this).css('border', '1px solid #DB4B4B');
empty = true;
return;
} else $(this).css('border', '1px solid #CCC');
});
if (!empty && is_correct_data()) {
var name = $('#name').val();
var date = $('#date').val();
var time = $('#time').val();
var latitude = get_coordinates($('#latitude').val());
var longitude = get_coordinates($('#longitude').val());
var timezone = $('#timezone').val();
if (timezone.indexOf(':') + 1) { var tz = timezone.split(':'); timezone = (tz[1] == 0) ? tz[0] : timezone.replace(':', '.'); }
var page = ($('#not-astrologer').is(':checked')) ? 'horoscope' : 'analyse';
var href = page + '.php?name=' + name + '&date=' + date + '&time=' + time + '&latitude=' + latitude + '&longitude=' + longitude + '&timezone=' + timezone;
window.open(href, '_blank');
} else return false;
});
$( ".slideToggle" ).click(function() {
$(this).slideToggle();
}
procedure WriteCheckLine(Len: Integer; Offset: Byte);
var i: Integer;
begin
for i := Offset to Len - 1 + Offset do
begin
if i and 1 > 0 then Write('*')
else Write('-');
end;
WriteLn;
end;
procedure WriteCheckBoard(N: Integer);
var i: Integer;
begin
for i := 0 to N - 1 do WriteCheckLine(N, i and 1);
end;
procedure WriteCheckBoard(N: Integer);
var i, j, Offset: Integer;
begin
for i := 0 to N - 1 do
begin
Offset := i and 1;
for j := Offset to N - 1 + Offset do
begin
if j and 1 > 0 then Write('*')
else Write('-');
end;
WriteLn;
end;
end;
procedure WriteHex;
var
m, Val, Len, i: Word;
HexA: array [0 .. 3] of AnsiChar;
begin
Val := ch;
Len := 0;
while Val > 0 do
begin
m := Val and $F;
Val := Val shr 4;
case m of
0 .. 9: HexA[Len] := AnsiChar(m + 48);
10 .. 15: HexA[Len] := AnsiChar(m + 55);
end;
Inc(Len);
end;
BuffOut.WriteBinaryString('\u');
if Len = 2 then BuffOut.WriteBinaryString('00');
if Len = 3 then BuffOut.WriteBinaryChar('0');
for i := Len - 1 downto 0 do
begin
BuffOut.WriteBinaryChar(HexA[i]);
end;
end;
function findObject(src, obj) {
for (var i = 0; i < src.length; i++) {
if ((src[i].color1 === obj.color1) && (src[i].color2 === obj.color2)) {
return src[i];
}
}
}
function addObject(dest, obj) {
dest.push(obj);
return obj;
}
function mergeImage(objDest, objSrc) {
objDest.image.push(...objSrc.image); //Здесь отредактировано
}
function tryFindObj(src, dest, obj) {
let findedObj = findObject(src, obj);
if (!findedObject) {
findedObject = addObject(dest, obj);
}
return findedObject;
}
function findSimilarObj(arr) {
const resultArr = [];
let tmpObj;
for (var i = 0; i < arr.length; i++) {
tmpObj = tryFindObj(arr, resultArr, arr[i]);
mergeImage(tmpObj, arr[i]);
}
}