<link rel="stylesheet" type="text/css" href="https://raw.github.com/daneden/animate.css/master/animate.css" media="screen" />
$("a.download").click(function () {
$("a.download").addClass("animated ИмяАнимации");
<script>
$('body').show();
$('.version').text(NProgress.version);
NProgress.start();
setTimeout(function() { NProgress.done(); $('.fade').removeClass('out'); }, 1000);
</script>
.fade {
transition: all 300ms linear 700ms;
-webkit-transform: translate3d(0,0,0);
-moz-transform: translate3d(0,0,0);
-ms-transform: translate3d(0,0,0);
-o-transform: translate3d(0,0,0);
transform: translate3d(0,0,0);
opacity: 1;
}
.fade.out {
opacity: 0;
}
<body style='display: none'>
<header class='page-header'>
<span class='nprogress-logo fade out'></span>
<h1>NProgress<i>.js</i></h1>
<p class='fade out brief big'>A nanoscopic progress bar. Featuring realistic
trickle animations to convince your users that something is happening!</p>
</header>
<div class='contents fade out'>
Текст....
</div>
</body>
Что не так тут?
И как побороть?
setcookie('fields_city_id', $city_id, time()+86400, '/', null, false, false);
$_COOKIE['fields_city_id'] = $city_id;
<?php
foreach ($formula as $key => $value) {
$data = $item;
$prefixGroups = array(
'dopyyyy' => array(2 => 'yy'),
'dopvopremgost' => array(2 => 'lr', 3 => 'rr', 4 => 'or'),
'dopdopvopsuvsid' => array(2 => 'zz'),
);
foreach (array_keys($prefixGroups) as $key => $prefixes) {
if (array_key_exists($data[$key], $prefixes)) {
$prefix = $prefixes[$data[$key]];
$data[$prefix . '1P'] = ($data[$prefix . '1l'] + $data[$prefix . '1w']) * 2;
$data[$prefix . '1SF'] = $data[$prefix . '1l'] * $data[$prefix . '1w'];
$data[$prefix . '1SWALL'] = $data[$prefix . '1P'] * $data[$prefix . '1h'];
}
}
eval('$formula_res = ' . $value . ';');
}
$.fff > .ddd { color: red; }
<div id="tab-8" style="display:none;">...</div>
$('html').on('change','#dopvopremgost',function() {
var current_value = $(this).find('option:selected').val();
if (current_value == 2) {
$('#tab-8').fadeIn(0);
} else {
console.log('Ничего не делаем или прячем блок обратно');
}
});
row length = 1
+ (sum of column lengths)
+ (number of NULL columns + delete_flag + 7)/8
+ (number of variable-length columns)