var n = 300.239235
alert((parseInt(n * 100)) / 100); // Вернет 300.23
- Скрипт должен правильно работать при любом разрешении экрана.
var stream = gulp.src('*.js').pipe($.watch())
.pipe(myJavascriptPipe())
.pipe(gulp.dest('build'))
.pipe(added_or_removed);
gulp.src('./src/index.html')
.pipe(inject(stream))
.pipe(gulp.dest('./dist'));
stream.pipe(added_or_removed.restore());
<?php
if ($_SERVER['REQUEST_URI'] != $_SESSION['current_page']) {
$_SESSION['prev_page'] = $_SESSION['current_page'];
$_SESSION['current_page'] = $_SERVER['REQUEST_URI'];
}
?>
<?php
header('Location: ' . $_SESSION['prev_page']);
exit();
?>