var arr1 = ['a', 'b', 'c', 'd', 'e', 'f', 'g', 'h'];
var arr2 = [1, 2, 3, 4, 5, 6, 7, 8];
var arr3 = [];
arr1.forEach(function(value, index) {
arr3.push(value);
if (index % 2 == 1) {
arr3.push(arr2.shift()); // Изменяет arr2!
}
});
console.log(arr3);
<a href="#anchorName">Переход</a>
<a name="anchorName"></a> <!-- точка куда будет осуществлен переход -->
<div class="content">
Загаловок <sup><a href="#a1">[1]</a></sup>
Загаловок <sup><a href="#a2">[2]</a></sup>
Загаловок <sup><a href="#a3">[3]</a></sup>
<div class="note_box">
<sup><a name="a1"></a><strong>[1]</storng></sup> Загаловок - это....
<sup><a name="a2"></a><strong>[2]</storng></sup> Загаловок - это....
<sup><a name="a3"></a><strong>[3]</storng></sup> Загаловок - это....
</div>
</div>
[Desktop Entry]
Name=
Comment=
GenericName=
Keywords=
Exec=
Terminal=false
Type=Application
Icon=
Path=
Categories=
NoDisplay=false
заполняете в соответствие с тем какого приложения Вам нужен ярлык, сохраняете <название_приложения>.desktop и копируете по адресу /usr/share/applications/
и все ярлык создан)img:hover ~ button { /* стили*/}
function calc(x, y, operation) {
var operations = {
plus: function(x, y) { return x + y },
minus: function(x, y) { return x - y },
multiply: function(x, y) { return x * y },
divided: function(x, y) { return x / y },
}
return operations[operation] && operations[operation](x, y);
}
calc(10, 20, "plus"); // 30