Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/hc0503/laravel-social-share-demo

Social share demo using Laravel8x
https://github.com/hc0503/laravel-social-share-demo

laravel8x php social-share-buttons

Last synced: 3 months ago
JSON representation

Social share demo using Laravel8x

Awesome Lists containing this project

README

        

# Laravel Social Share Demo

## Social meta tags
```html

```

## Social share button
```html








```

## JS for Social popup
```javascript
var popupSize = {
width: 780,
height: 550
};
$(document).on('click', '.social-button', function (e) {
var verticalPos = Math.floor(($(window).width() - popupSize.width) / 2),
horisontalPos = Math.floor(($(window).height() - popupSize.height) / 2);

var popup = window.open($(this).prop('href'), 'social',
'width=' + popupSize.width + ',height=' + popupSize.height +
',left=' + verticalPos + ',top=' + horisontalPos +
',location=0,menubar=0,toolbar=0,status=0,scrollbars=1,resizable=1');
if (popup) {
popup.focus();
e.preventDefault();
}
});
```