link.addEventListener('click', add);
var list = ['first', 'second', 'third', 'fourth', 'fifth'],
listSize = list.length,
iteration, index;
for (iteration = 0; iteration < 100; iteration++) {
index = iteration % listSize;
console.log(list[index]);
}
PHP не знаю, верстка толькоНайти того, кто знает, дать ему немного денежек и доступ к серверу.
composer require --no-update ezsystems/ezplatform-solr-search-engine:~1.0
composer update
$text = "foo\nbar\nfoobar";
$textlines = explode("\n", $text);
$textrun = $section->addTextRun();
$textrun->addText(array_shift($textlines));
foreach($textlines as $line) {
$textrun->addTextBreak();
// maybe twice if you want to seperate the text
// $textrun->addTextBreak(2);
$textrun->addText($line);
}
Warning: The lock file is not up to date with the latest changes in composer.json. You may be getting outdated dependencies. Run update to update them.
install command checks if a lock file is present, and if it is, it downloads the versions specified there (regardless of what composer.json says).https://getcomposer.org/doc/01-basic-usage.md#inst...