The popular open-source contract for web professionals by Stuff & Nonsense
(Forked from a gist seen at Github.com/Malarkey as I found it on 26 May 2017.)
- Originally published: 23rd December 2008
- Revised date: March 15th 2016
- Original post
<!-- BEGIN Bit.ly Link shortener Callout script **this goes just after </HEAD> in the <BODY> section of the HTML page, template, wherever. This is the actual script that sends the page info to Bit.ly for shortening.** --> | |
<script charset='utf-8' src='http://bit.ly/javascript-api.js?version=latest&login=YOUR_BITLY_LOGIN_HERE&apiKey=YOUR_API_KEY_HERE' type='text/javascript'/> | |
<script charset='utf-8' type='text/javascript'> | |
BitlyClient.addPageLoadEvent(function(){ | |
BitlyCB.myShortenCallback = function(data) { | |
// this is how to get a result of shortening a single url | |
var result; | |
for (var r in data.results) { | |
result = data.results[r]; |
I hereby claim:
To claim this, I am signing this object: