var options = {
root: document.querySelector('#scrollArea'),
rootMargin: '0px',
threshold: 1.0
}
var callback = function(entries, observer) {
/* Content excerpted, show below */
};
var observer = new IntersectionObserver(callback, options);
export const store =[
import {store} from './store';
const questinsArray = props.store.map(store=> (
<FientQuest
key={store.quest}
qmumb = {store.qmumb}
quest = {store.quest}
//...
outline: none;
<div class="btn-group" role="group" aria-label="Basic radio toggle button group">
<input type="radio" class="btn-check" name="btnradio" id="btnradio1" autocomplete="off" checked>
<label class="btn btn-outline-primary shadow-none" for="btnradio1">Radio 1</label>
<input type="radio" class="btn-check" name="btnradio" id="btnradio2" autocomplete="off">
<label class="btn btn-outline-primary shadow-none" for="btnradio2">Radio 2</label>
<input type="radio" class="btn-check" name="btnradio" id="btnradio3" autocomplete="off">
<label class="btn btn-outline-primary shadow-none" for="btnradio3">Radio 3</label>
</div>
resolve: {
extensions: ['.js'],
alias: {
'@': path.resolve(__dirname, 'src')
},
},
И почему вебпак компилирует sass в js файл, а не css?
const plumber = require('gulp-plumber');
function html() {
return src(path.src.html, {base: 'src/'})
.pipe(plumber())
.pipe(pug({pretty: true}))
.pipe(dest(path.build.html))
.pipe(browsersync.stream())
}
function bindActionCreator(actionCreator, dispatch) {
return function () {
return dispatch(actionCreator.apply(this, arguments));
};
}
function () {
return dispatch(actionCreator.apply(this, arguments));
};
history({
rewrites: [
{ from: /\/soccer/, to: '/soccer.html'}
]
});
camera-orbit="45deg 55deg 2.5m"
const cheerio = require('cheerio')
const xml = `
<offer internal-id="12345">
<living-space>
<value>31</value>
<unit>кв. м</unit>
</living-space>
<kitchen-space>
<value>11</value>
<unit>кв. м</unit>
</kitchen-space>
<image>https://example.website.yandexcloud.net/files/ycKZLv7B0GUZled.jpg</image>
<image>https://example.website.yandexcloud.net/files/ycKZLv7B0GUZled.jpg</image>
</offer>
`
async function main() {
try {
let $ = await cheerio.load(xml, {
xmlMode: true
})
let title = $('image').text()
console.log('title', title)
} catch (e) {
console.log(e)
}
}
main()
const endLine = '\r\n'; // если Windows
let lineArray = String( fs.readFileSync( 'price.txt' ) ).split( endLine );
// что-то делаем с полученными строками
// ...
let file = lineArray.join( endLine ) // соединяем обратно в целый файл
for (let i = 0; i < arr.length; i ++)