(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');
});
});
});
}());
$article->comments()->delete();
// ...
public function boot()
{
Post::deleted(function ($post) {
$post->comments()->delete();
});
}
'facebook' => [
'client_id' => 'YOUR_CLIENT_ID',
'client_secret' => 'YOUR_CLIENT_SECRET',
'redirect' => 'YOUR_FACEBOOK_REDIRECT_URI',
],
return Socialite::driver('facebook')->redirect();
print_r(array("number"=>5, "str"=>85));
$('checkbox').on('change', 'checkbox', function(event) {
setAttrValue('1', $(this).val());
});