Answer the question
In order to leave comments, you need to log in
Wordpress slider?
Hello, I installed the Smart Slider plugin on WordPress. I uploaded pictures, set everything up as needed, I get the code, and wherever I put it, the page design breaks, namely, the second side scroll bar appears.
Answer the question
In order to leave comments, you need to log in
alphaArr = [];
countries.forEach(function (country) {
//any logic
alphaArr.push(country[name]);
});
For example like this:
var res = countries.map(function(o){
return o['alpha-2']
})
var i = countries.length,
res = [];
while(i--){
res.push(countries[i]['alpha-2']);
}
function getNames() {
var alpha2Array = Array.apply(null, arguments);
return countries.reduce((s, e) => {
if (~alpha2Array.indexOf(e['alpha-2'])) s.push(e.name);
return s;
}, []);
}
console.log(getNames('AX', 'AF'));
console.log(getNames.apply(null, ['AX', 'AF']));
"One-liner" for lodash
_(countries)
.filter({'alpha-2': 'AF'})
.pluck('name').value();
_(countries)
.filter(country => alphas.indexOf(country['alpha-2']) > -1)
.pluck('name').value();
https://wordpress.org/plugins/ml-slider/ поставьте метаслайдер, у меня с ним проблем не было
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question