Giter Site home page Giter Site logo

Comments (5)

ozdemirburak avatar ozdemirburak commented on September 8, 2024

Can you give more details please? This log is not helping, use the source file instead of the minified one, and then please show how you called the plugin with what options like which buttons do you use etc.

from jquery-floating-social-share.

metakel avatar metakel commented on September 8, 2024

Thank you. I have just changed to use the non-minified version under the "src" directory, but still got the same error.

I am using it in a Drupal 8 site with the below code to call the function. It was used from version 1.8.1. It works perfectly at version 1.8.1.

`(function ($, Drupal) {
Drupal.behaviors.myModuleBehavior = {
attach: function (context, settings) {

jQuery(".node--type-article .post-content .node__content").floatingSocialShare({
place: "left", // alternatively content-left, content-right, top-right
counter: true, // set to false for hiding the counters of buttons
twitter_counter: false, // Twitter API does not provide counters without API key, register to https://opensharecount.com/
buttons: ["envelope", "facebook", "google-plus", "linkedin", "pinterest", "twitter"], // all of the currently avalaible social buttons
title: document.title, // your title, default is current page's title
url: window.location.href, // your url, default is current page's url
text: {'default': 'share with ', 'facebook': 'share with facebook', 'google-plus': 'share with g+'}, // the title of tags
text_title_case: false, // if set true, then will convert share texts to title case like Share With G+
description: $('meta[name="description"]').attr("content"), // your description, default is current page's description
media: $('meta[property="og:image"]').attr("content"), // pinterest media
popup_width: 400, // the sharer popup width, default is 400px
popup_height: 300 // the sharer popup height, default is 300px
});

}

};
})(jQuery, Drupal);`

from jquery-floating-social-share.

ozdemirburak avatar ozdemirburak commented on September 8, 2024

Why did you close the issue, you found the problem? Also envelope is removed in v2.0, use mail instead.

from jquery-floating-social-share.

metakel avatar metakel commented on September 8, 2024

I closed accidentally, sorry. I am reopening it.

from jquery-floating-social-share.

metakel avatar metakel commented on September 8, 2024

Oh thank you, after I replaced "envelope" to "mail", it works.

from jquery-floating-social-share.

Related Issues (18)

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.