let arr = ['Main', 'Products', 'About us', 'Contacts']
let menu = document.getElementsByClassName('menu')[0]
let user = (param1, param2) => {
for (const user of param2) {
let li = document.createElement('li')
li.innerText = user
param1.append(li)
}
}
user(menu, arr)
el.style.height = "auto"
значение scrollHeight изменяется. Если изменить последовательность получения переменной, все будет работать аналогично второму варианту: function resize(event) {
const el = event.target;
el.style.height = "auto";
const height = event.target.scrollHeight;
el.style.height = `${height}px`;
console.log(height)
}
'mongodb' => [
'driver' => 'mongodb',
'dsn'=>'mongodb://username:password@host1/database?ssl=true&replicaSet=replicaSet&authSource=admin',
'database' => 'my_data',
]
xAxis: {
min: 0.75,
max: 6.25,
tickPixelInterval: 50,
categories: [
'',
'Январь',
'Февраль',
'Март',
'Апрель',
'Май',
'Июнь',
'Июль',
''
],
series: [{
...
- data: [300.22, 402.26, 385.89, 556.56, 412.38, 190.15, 220.22],
+ data: [200, 300.22, 402.26, 385.89, 556.56, 412.38, 190.15, 220.22, 300],
...
}
var like_all = document.getElementsByClassName("like_btn like")
like_all.forEach(like => {
like.click()
})
var like_all = document.getElementsByClassName("like_btn like")
let post = 0;
setInterval(() => {
like_all[post].click()
post++
}, 1000)
public class HereDead : MonoBehaviour
{
public GameObject Player;
public GameObject Ragdoll;
void onTriggerEnter(Collider other)
{
if (other.tag == "DeadZone")
{
Player = GameObject.Find("Player");
Ragdoll = GameObject.Find("Ragdoll");
Player.SetActive(false);
Ragdoll.SetActive(true);
Instantiate(Ragdoll, transform.position, transform.rotation);
}
}
}
new Chart()
Chart.defaults.plugins.legend.display = false;
const sort = (a, b, result) => {
[a, b] = result > 0 ? [b, a] : [a, b];
}