Learn more about Sharing Best Practices for better understanding.
V1: This version has properties but the output would be with numeric keys, Example (Google, Bing and Yahoo are the Hyperlinks/Clickable):
1: Google
2: Bing
3: Yahoo
| (function(window){var i,$sound,$buttonGroup;var $sounds=$(".sound");var clientId=require("config").get("client_id");var oauthToken=require("lib/connect").getAuthToken();var conversionHelper=require("lib/helpers/conversion-helper");var $downloadButton,size;var params,downloadUrl,onSuccess;for(i=$sounds.length-1;i>=0;i--){$sound=$($sounds[i]);var soundcloudUrl="https://soundcloud.com"+($sound.find(".soundTitle__title").attr("href")||window.location.pathname);params={url:soundcloudUrl,client_id:clientId};onSuccess=function($sound){return function(data){var params={client_id:clientId};downloadUrl=require("lib/url").stringify({query:params},data.stream_url+".mp3");$buttonGroup=$($sound.find(".sound__soundActions .sc-button-group")[0]);size=$buttonGroup.find(".sc-button:first")[0].className.match(/sc-button-((?:small)|(?:medium))/)[1];$downloadButton=$('<a class="sc-button sc-button-download sc-button-icon sc-button-responsive">Download</a>').attr({title:"Download this sound ("+conversionHelper.bytesToMB(data.origi |
| <?php | |
| // Watermark with Imagick | |
| // load images | |
| $image = new Imagick("image.jpg"); | |
| $watermark = new Imagick("watermark.png"); | |
| // translate named gravity to pixel position | |
| $position = gravity2coordinates($image, $watermark, 'lowerRight', 5, 5); | |
| // compose watermark onto image |
| <div id="fb-root"></div> | |
| <script> | |
| (function() { | |
| window.fbAsyncInit = function() { | |
| FB.Event.subscribe('edge.create', function(response) { | |
| _gaq.push(['_trackSocial', 'facebook', 'like', response]); | |
| }); | |
| FB.Event.subscribe('edge.remove', function(response) { | |
| _gaq.push(['_trackSocial', 'facebook', 'unlike', response]); | |
| }); |