
JavaScript
3
Вклад в тег
<input type="submit" value="Нажми меня"/>
<input type="text" style="display: none;" />
$("input[type=submit]").click(function() {
$("input[type=text]").toggle();
});
$cmp = function ($a, $b) {
if ($a['time_ms']['value'] > $b['time_ms']['value'])
return -1;
if ($a['time_ms']['value'] < $b['time_ms']['value'])
return 1;
if ($a['laps'] > $b['laps'])
return 1;
};
usort($arr, $cmp);