pagination: {
el: '.swiper-pagination',
type: 'fraction',
formatFractionCurrent: addZero,
formatFractionTotal: addZero
},
//где нить ниже
function addZero(num){
return (num > 9) ? num : '0' + num;
}
aspect-ratio
с фоллбеком до хака с паддингом https://jsfiddle.net/4kopLx87/ $titlepage = explode( "\n" , $text);
$new_text = implode(PHP_EOL, array_slice($titlepage, 1));
echo $new_text;
echo preg_replace('/\A(.*)$/mi', '', $text);
<link
rel="stylesheet"
href="/css/style.css?v=%NO_CACHE%"
>
const replace = require('gulp-replace');
gulp.task('html', function(){
gulp.src(['index.html'])
// … other pipes
.pipe(replace('%NO_CACHE%', (new Date)->getTime()))
.pipe(gulp.dest('build/'));
});
const replace = require('gulp-replace');
gulp.task('html', function(){
gulp.src(['index.html'])
.pipe(replace('%NO_CACHE%', function() {
const md5hash = checkCss('style.css'); // read css file and calculate md5 hash
return md5hash;
}))
.pipe(gulp.dest('build/'));
});