let result = await translate('Привет', {from: 'ru', to: lang});
console.log(result.text);
$(document).on('click', '.dropdown-menu li', function(e) {
var $li = $(this);
$li.siblings(".active").removeClass('active');
$li.addClass('active');
});
(function () {
var widgetIframe = document.getElementById('sc-widget');
var widget = SC.Widget(widgetIframe);
widget.bind(SC.Widget.Events.READY, function () {
alert('Виджет плеера загрузился!');
widget.bind(SC.Widget.Events.PLAY, function () {
alert('Начато воспроизведение');
// get information about currently playing sound
widget.getCurrentSound(function (currentSound) {
console.log('sound ' + currentSound.get('') + 'began to play');
});
});
});
}());
print_r(array("number"=>5, "str"=>85));