GithubHelp home page GithubHelp logo

gmx9 / gmx-socials-js Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 50 KB

Integrate Social Networks sharing in your website easily

License: GNU General Public License v3.0

JavaScript 90.05% HTML 9.95%
social-network social-media javascript facebook instagram vk tumblr social-network-library social-share social-share-plugin social-share-button social-shares

gmx-socials-js's Introduction

gmx-socials-js

Integrate Social Networks sharing in your website easily with this javascript library.

alt text

alt text

alt text

How to use:

First, load the div with our class name:

     <!-- Socials will Load Here-->
    <div class="gmx_inline-socials"></div>

Second, load gmx-socials.js:

     <!-- jQuery first, then gmxsocials.js-->
    <script src="https://code.jquery.com/jquery-3.3.1.slim.min.js" integrity="sha384-q8i/X+965DzO0rT7abK41JStQIAqVgRVzpbzo5smXKp4YfRvH+8abtTE1Pi6jizo" crossorigin="anonymous"></script>
    <script type="text/javascript" type="" src="https://cdn.jsdelivr.net/gh/GMX9/gmx-socials-js/gmx-socials.js"></script>

Finally, set the socials you want to use and style of buttons:

    <!-- Config your socials and link here -->
    <script>
    // Social Name => Link
    var socials = [
       'Facebook',
       'Twitter',
       'Linkedin',
       'Tumblr',
       'VK',
       'Pinterest',
       'WhatsApp',
       'Telegram'
     ];
     
     /*
     Buttons Style
     Styles avaliable
     1-> "default"
     2-> "icon_squared"
     3-> "icon_rounded"
     */
     
     var style = "icon_rounded"
     
     let s = new gmx_socials(socials,style);
    </script>

gmx-socials-js's People

Contributors

gmx9 avatar

Watchers

 avatar

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.