Giter Site home page Giter Site logo

ozdemirburak / jquery-floating-social-share Goto Github PK

View Code? Open in Web Editor NEW
58.0 10.0 28.0 524 KB

Social media share buttons with counters.

License: MIT License

CSS 12.47% JavaScript 74.78% Less 12.76%
social-buttons share-buttons sharing jquery hacktoberfest

jquery-floating-social-share's People

Contributors

dependabot[bot] avatar marioidival avatar ochronus avatar ozdemirburak avatar stillwaiting avatar tiberriver256 avatar trepmag avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

jquery-floating-social-share's Issues

Remove Font Awesome Dependency

Font awesome dependency can be removed with the usage of predefined inline svg with the help of the simple-icons package.

For instance, network property, Facebook can be extended like below where Facebook SVG can be found here.

"facebook" : {
  className: "facebook",
  icon: "<svg aria-labelledby='simpleicons-facebook-icon' role='img' viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'><title id='simpleicons-facebook-icon'>Facebook icon</title><path d='M22.676 0H1.324C.593 0 0 .593 0 1.324v21.352C0 23.408.593 24 1.324 24h11.494v-9.294H9.689v-3.621h3.129V8.41c0-3.099 1.894-4.785 4.659-4.785 1.325 0 2.464.097 2.796.141v3.24h-1.921c-1.5 0-1.792.721-1.792 1.771v2.311h3.584l-.465 3.63H16.56V24h6.115c.733 0 1.325-.592 1.325-1.324V1.324C24 .593 23.408 0 22.676 0'/></svg>",
  url:"https://www.facebook.com/sharer/sharer.php?u={url}&t={title}"
},

Then just modify the source code that it will use the icon property or whatever instead of the font awesome one.

Hover over top-right button

Hi,

if i set the position to top-right and hover over the buttons the whole sidebar (all buttons) moves to left.
I would expect that only the hovered button get bigger and all other buttons stay on the same position.

Fontawsome

var places = ["content-left", "content-right", "top-left", "top-right"],
networks = {
"mail": {
icon: "",
url: "mailto:?subject={url}"
},
"facebook" : {
icon: "",
url:"https://www.facebook.com/sharer/sharer.php?u={url}&t={title}"
},
"google-plus": {
icon: "",
url: "https://plus.google.com/share?url={url}"
},
"linkedin": {
icon: "",
url: "https://www.linkedin.com/shareArticle?mini=true&url={url}&title={title}&summary={description}&source="
},
"odnoklassniki": {
icon: "",
url: "https://connect.ok.ru/dk?st.cmd=WidgetSharePreview&st.shareUrl={url}"
},
"pinterest": {
icon: "",
url: "https://pinterest.com/pin/create%2Fbutton/?url={url}&description={description}&media={media}"
},
"reddit": {
icon: "",
url: "https://www.reddit.com/submit?url={url}&title={title}"
},
"stumbleupon": {
icon: "",
url: "https://www.stumbleupon.com/submit?url={url}&title={title}"
},
"telegram": {
icon: "",
url: "https://telegram.me/share/url?text={title}&url={url}"
},
"tumblr": {
icon: "",
url: "https://www.tumblr.com/share/link?url={url}&name={title}&description={description}"
},
"twitter": {
icon: "",
url:"https://twitter.com/home?status={title}%20{url}"
},
"vk": {
icon: "",
url: "https://vk.com/share.php?url={url}&title={title}&description={description}"
},
"whatsapp": {
icon: "",
url: "whatsapp://send?text={title}%20{url}"
}
};

Share with Viber?

Many Thanks for this beautyful plugin.
Some problem with Viber to add it?

Refactor code without jQuery

Since jQuery is no longer preferred by most, the package needs to be rewritten without jQuery dependency in ES6.

After that, the package will be renamed.

JavaScript (Maybe!?)

window.addEventListener("orientationchange", function() {
setMobileCss(links);
checkPlacePosition($child, base.settings.place, base.element, base.settings.extra_offset);
updateIsMobile();
}, false);
}

Fixes CSS

#floatingSocialShare a { min-width: 45px; }

@media only screen and (min-device-width: 0px) and (max-width:961px) {
#floatingSocialShare a { min-width: 45px; }
}

Console - Failed to load resource: net::ERR_NAME_NOT_RESOLVED

Thanks for this great and simple plugin but there's a small problem that I noticed occurring on the console.

Although it doesn't affect functionality, I would like to know how would I be able to remove this error?
Failed to load resource: net::ERR_NAME_NOT_RESOLVED - https://urls.api.twitter.com/1/urls/count.json?url=someurl

Controlling pinterest share content

Hello,
I was wondering if I can add an image to the pinterest share button? right now it just shared my sites description. I have open graph tags that facebook and google plus share buttons acknowledges but id like to adjust the pinterest one.
Thanks.
-Ann

TypeError: v is undefined

Caught this error and the social share bar does not show up:

TypeError: v is undefined
jquery.floating-social-share.min.js:1:4681

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.