Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
UpCloo JavaScript library.
JavaScript PHP CSS
branch: master

This branch is 1 commit behind upcloo:master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
examples
js
.gitignore
Makefile
README.md

README.md

upcloo-js-sdk

UpCloo JavaScript library

Snippet

<!-- UPCLOO JS SDK START -->
<div class='upcloo-widget' id="upcloo_1000"></div>
<script>
(function(g,d,id){
  upCloo = g.upCloo || [];
  upCloo.push(
    {
      "permalink" : "http://walterdalmut.com/2012/07/29/pimple-dependency-injection-su-zendcache/",
      "siteKey" : "xx00XXxxx"
      /*,"vSiteKey":"ss00SSsss"*/
    }
  );
  var s = d.createElement('script') , n = d.getElementsByTagName('script')[0];
  s.type = 'text/javascript';
  s.async = true;s.id = id;
  s.src = '//r.upcloo.com/a/a.js';
  !d.getElementById(id) ? n.parentNode.insertBefore(s,n) :false;
})(this,document,'upcloo_js_sdk')
</script>
<!-- UPCLOO JS SDK END -->

Options

  • SDK Options
    • pos
      • Position of the popover
        • [br,bl,tl,tr]
      • Bottom right, bottom left, top left, top right
    • type
      • Type of widget
        • [popOver, inline]
      • Show widget as popover or inline in the page
    • sendBeacon
      • Mark this page status
        • [true, false]
      • Send beacons to UpCloo (Notifies new contents)
    • headline
      • Write a new headline (Maybe you're also interesetd in')
      • [string]
    • theme
      • Select a theme
      • [light, basic, strip]
    • showImage
      • Show images and titles
      • [true, false]
    • defaultImage
      • In case of missing image use this as default
      • [URL]
    • popIn
      • Distance in px from the corner to show upcloo popover
      • [int]
    • popOut
      • Distance in px from the corner to hide upcloo popover
      • [int]
    • ga
      • Track UpCloo results using Google Analytics
      • [true, false]
    • wrap
      • Cleaner function. Useful to clean UpCloo suggestions
      • [function]

Developers

First of all you have to install a list of dependencies

$ npm install expresso uglify-js@1 jshint recess -g

After that you can compile the library

$ make

The make process dependes on library sourcecode. JSHint check the library before compile the source and minimize the code.

Clean the library

To clear the library compile use

$ make clean

Or to force the clean operation

$ make force-clean
Something went wrong with that request. Please try again.