Crosswinds Apartments by Jano Christopher at Coroflot.com


"; _html += ""; //printf(_img_ar); $(_html).hide().appendTo($("#coroflot")).fadeIn(function() { create_image_select(_img_ar); }); } var create_image_select = function(img_ar) { var _html = new String(); _html += "
  • image
"; //printf(_html); $(_html).hide().appendTo($("#coroflot")).fadeIn(); } var Pinit_Obj = function(_img, is_landscape) { this.url = _img; this.is_landscape = is_landscape; } var close_pinit_window = function(_callback) { $("div#pinit_header").fadeOut(function() { $("div#pinit_header").remove(); }); $("ul#pin_it_selections").fadeOut(function() { $("ul#pin_it_selections").remove(); $("div#p_overlay").fadeOut(function() { $("div#p_overlay").remove(); if (_callback != undefined) { _callback(); } }); }); } var render_pinit_images_select = function(_assets) { var _img_array = new Array(); $.each(_assets, function(index, val) { var _file_type = _get_file_type(this.file_name); if (_is_an_img_type(_file_type)) { var _landscape = this.file_width > this.file_height ? true : false; var _loc_obj = new Pinit_Obj(this.file_name, _landscape); _img_array.push(_loc_obj); } }); printf(_assets); _create_overlay(_img_array); } $(function() { $("#pinterest").live("click", function(event) { event.preventDefault(); $("div#sponsor").css({ opacity: 0 }); document.body.scrollTop = document.documentElement.scrollTop = 0; $.ajax({ type: 'POST', url: "/people/get_project_assets", data: "user_id=658531&project_id=1831545", dataType: "json", success: function (data) { if (data.status == "ok") { var project_assets = data.project_assets; printf(project_assets); render_pinit_images_select(project_assets); } } }); }); $("#p_overlay, #pin_it_selections, #pinit_header .cancel").live("click", function() { close_pinit_window(function() { $("div#sponsor").css({ opacity: 1 }); }); }); $("#pin_it_selections li").live("click", function(event) { event.stopPropagation(); var _pin_url = "http://pinterest.com/pin/create/button/?"; //var regExer = new RegExp("&", "g"); var _desc = "Crosswinds Apartments by Jano Christopher at Coroflot.com".replace("&", "&").replace("'", "'").replace(/\s+/g, " "); window.open(_pin_url + "url=" + encodeURIComponent(window.location) + "&media=" + encodeURIComponent($(this).find("img").attr("src")) + "&description=" + encodeURIComponent(_desc), "_blank"); close_pinit_window(function() { $("div#sponsor").css({ opacity: 1 }); }); }); });

Comments

Popular posts from this blog

Warren police: No suspects arrested in fatal shooting

Hickory Creek Rentals - Richmond, VA