Giter VIP home page Giter VIP logo

behance's Introduction

Embeddable Appreciate Button for Behance

Cover image - Behance button

It doesn't work anymore. :)

Behance doesn't have an embeddable "like" button, unlike Facebook or Twitter. So, I made one.

Try appreciating this project from the demo page here.

It's a hackish proof-of-concept more then anything, so feel free to try it out, but don't expect it to work forever; eventually Behance will fix the thing that makes the button work.

You can find the jQuery plugin here.

Install

To add the Behance button to your page, you need to do the following steps:

  1. If you don't have it already, add jQuery to your page:
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js"></script>
  1. Download the Behance plugin and add it below the jQuery script:
<script src="behance-button-jquery-plugin.js"></script>
  1. Create a <div id="behance-button"></div> element somewhere in your page (you can use another ID, just remember it)

  2. Wait for the document.ready event and make the div a Behance button

$(function() {
    $('#behance-button').behanceButton('1234567'); // replace `1234567` with your actual project's ID
})

Example

<html>
<head>
    <link href="http://netdna.bootstrapcdn.com/twitter-bootstrap/2.3.0/css/bootstrap-combined.min.css" rel="stylesheet">
    <script src="http://code.jquery.com/jquery-1.9.1.js"></script>
    <script src="behance-button-jquery-plugin.js"></script>
    <script type="text/javascript">
    $(function() {
        $('#appreciate_button').behanceButton('7321861');
    })
    </script>
    <title>Appreciate button demo page</title>
</head>
<body>
    <div class="row">
        <div class="span8 offset4">
            <h1>Appreciate button demo page</h1>
            <p>With some project description here.</p>
            <img src="http://i.imgur.com/NSWTu43.png" style="border: 2px solid silver; width: 100%;">
            <h1></h1>
            <div id="appreciate_button" style="margin-left: auto; margin-right: auto;"></div>
        </div>
    </div>
</body>
</html>

This is the source of the demo page.

behance's People

Contributors

svitelskyi avatar whoeverest avatar

Stargazers

 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

behance's Issues

Iframe Deny

Hi,

I'm trying load a portfolio in a bootstrap modal and the button not working.

An error message show like "... in a frame because it set 'X-Frame-Options' to 'DENY'."

You know if doesn't work inside an iframe?

tkss!!

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.