Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Deferring pixelping until after dom is loaded in search_embeds

  • Loading branch information...
commit 329a2c8fd3b4438f51a55f915876a8ffc40512d2 1 parent 834f429
@knowtheory knowtheory authored
View
2  public/javascripts/embed/search_embed.js
@@ -306,7 +306,7 @@
url = url.replace(/[\/]+$/, '');
var hitUrl = dc.recordHit;
var key = encodeURIComponent(type + ':' + id + ':' + url);
- $(document.body).append('<img alt="" width="1" height="1" src="' + hitUrl + '?key=' + key + '" />');
+ $(document).ready( function(){ $(document.body).append('<img alt="" width="1" height="1" src="' + hitUrl + '?key=' + key + '" />'); });
};
})();
View
2  public/search_embed/search_embed.css
@@ -1 +1 @@
-.DC-search-embed div,.DC-search-embed span,.DC-search-embed a{margin:0;padding:0;border:0;outline:0;font-weight:inherit;font-style:inherit;font-size:100%;font-family:inherit;vertical-align:baseline}.DC-search-embed .DC-document-list a,.DC-search-embed .DC-document-list a:link,.DC-search-embed .DC-document-list a:visited,.DC-search-embed .DC-document-list a:active{color:#559;text-decoration:underline}.DC-search-embed .DC-hidden{visibility:hidden}.DC-search-embed .DC-quiet-link{white-space:nowrap;cursor:pointer;color:#808080;text-decoration:none}.DC-search-embed .DC-quiet-link:hover{color:#000;text-decoration:underline}.DC-search-embed a,.DC-search-embed a:hover,.DC-search-embed .DC-document-list a:hover,.DC-search-embed .DC-paginator a:hover{background-color:transparent}.DC-search-embed{clear:both;overflow:hidden;font:16px/20px Helvetica,Arial;margin:12px 0}.DC-search-embed .DC-no-results{position:relative;margin:0 0 32px 24px;padding:0 0 0 75px;height:77px;font-size:14px;color:#333}.DC-search-embed .DC-no-results .DC-icon{position:absolute;top:10px;left:0}.DC-search-embed .DC-explanation{padding-top:30px}.DC-search-embed .DC-document-list{overflow:hidden}.DC-search-embed .DC-interface{font-family:"Lucida Grande","Lucida Sans Unicode",Helvetica,Arial}.DC-search-embed.DC-unselectable{-webkit-user-select:none;-moz-user-select:none;user-select:none}.DC-search-embed .DC-title{font-size:24px;margin:6px 0 18px;font-weight:bold;text-align:center}.DC-search-embed .DC-search{margin:0 0 15px}.DC-search-embed .DC-text-input{position:relative;height:30px;background:transparent url(images/embed/text_input_large_left.png?1323631829) no-repeat center left}.DC-search-embed .DC-text-input .DC-placeholder{position:absolute;cursor:text;left:1px;top:5px;color:#c0c0c0;font-size:13px;line-height:18px}.DC-search-embed .DC-text-input input{display:block;border:none;outline:none;margin:0;padding:4px;background:transparent;font-size:16px;line-height:18px;width:100%;color:#000;font-size:13px;font-family:"Lucida Grande","Lucida Sans Unicode",Helvetica,Arial,sans-serif!important;width:100%}.DC-search-embed .DC-text-input.DC-search{height:28px;background:transparent;border:2px solid #ccc;border-radius:16px;-webkit-border-radius:16px;-moz-border-radius:16px;background-color:#fafafa;-webkit-box-shadow:inset 0 0 3px #ccc;-moz-box-shadow:inset 0 0 3px #ccc;box-shadow:inset 0 0 3px #ccc}.DC-search-embed .DC-search-embed .DC-text-input.DC-search:focus{border-color:#acf;-webkit-box-shadow:inset 0 0 3px #acf;-moz-box-shadow:inset 0 0 3px #acf;box-shadow:inset 0 0 3px #acf}.DC-search-embed .DC-text-input .DC-search-inner{position:relative;margin:0 28px}.DC-search-embed .DC-text-input.DC-search input{width:100%;height:18px;padding:5px 0}.DC-search-embed .DC-text-input.DC-search input:-moz-placeholder{color:#808080}.DC-search-embed .DC-text-input.DC-search:focus input{color:#000}.DC-search-embed .DC-text-input .DC-search-glyph{position:absolute;left:10px;top:8px}.DC-search-embed .DC-text-input .DC-cancel-search{position:absolute;right:9px;top:8px}.DC-search-embed.DC-query-original .DC-cancel-search{display:none}.DC-search-embed .DC-document-tile{display:block;float:left;width:230px;border:1px solid transparent;height:86px;margin:0 15px 0 0;padding:0 0 15px 80px;position:relative;overflow:hidden;outline:none}.DC-search-embed .DC-document-list a.DC-document-tile{text-decoration:none}.DC-search-embed .DC-document-tile:hover{cursor:pointer}.DC-search-embed .DC-document-thumbnail{position:absolute;left:3px;top:3px;margin:0 6px 4px 0;width:70px;height:85px}.DC-search-embed .DC-document-thumbnail img{border:1px solid #aaa;width:60px;height:75px;margin:0;padding:1px;background-color:#fff;float:none}.DC-search-embed .DC-document-tile:hover .DC-document-thumbnail img{border-color:#808080}.DC-search-embed .DC-document-thumbnail-select{position:absolute;margin:0 6px 4px 0;background-color:#e0e0e0;width:63px;height:78px;left:6px;top:6px}.DC-search-embed .DC-document-tile:hover .DC-document-thumbnail-select{background-color:#c7c7c7}.DC-search-embed .DC-document-title{color:#000;font-size:14px;font-weight:bold;line-height:17px;margin:2px 0 2px 0}.DC-search-embed .DC-document-tile:hover .DC-document-title{text-decoration:underline}.DC-search-embed .DC-document-description{color:#333;font-family:Georgia;font-size:12px;line-height:14px;overflow:hidden;height:44px}.DC-search-embed .DC-show-organization .DC-document-description{height:30px}.DC-search-embed .DC-document-organization{color:#808080;font-size:10px;line-height:12px;margin:4px 0 0 0}.DC-search-embed .DC-document-tile .DC-icon-lock{display:none}.DC-search-embed .DC-document-tile.DC-document-private .DC-icon-lock{display:block;float:right;margin-left:4px}.DC-search-embed .DC-arrow{font-size:17px;line-height:11px;position:relative;display:inline-block;cursor:pointer;top:2px}.DC-search-embed .DC-arrow:hover{color:#000}.DC-search-embed .DC-arrow.DC-arrow-left{padding-right:4px}.DC-search-embed .DC-arrow.DC-arrowright{padding-left:4px}.DC-search-embed .DC-paginator{padding:6px 0 0;margin:0;font-size:11px;line-height:18px;height:18px;color:#808080;border-top:1px solid #ccc;position:relative}.DC-search-embed .DC-paginator a img{border:none;float:none}.DC-search-embed .DC-paginator .DC-paginator-description{position:absolute;left:0;top:6px;white-space:nowrap}.DC-search-embed .DC-paginator .DC-paginator-range{font-weight:bold}.DC-search-embed .DC-paginator .DC-paginator-enumeration{position:absolute;width:200px;left:50%;margin-left:-50px;text-align:left;height:20px}.DC-search-embed.DC-skinny-width .DC-paginator .DC-paginator-enumeration{right:0;left:auto;width:auto}.DC-search-embed .DC-paginator .DC-page-current{font-weight:bold}.DC-search-embed .DC-paginator.DC-is-editing .DC-page-current{display:none}.DC-search-embed .DC-paginator .DC-page-edit{display:none;position:relative;width:18px;font-size:11px;height:16px;text-align:center;color:#808080;padding:0;border:1px solid #c0c0c0}.DC-search-embed .DC-paginator.DC-is-editing .DC-page-edit{display:inline}.DC-search-embed .DC-paginator .DC-page-edit:focus{color:#000}.DC-search-embed .DC-paginator .DC-logo{position:absolute;right:0;top:4px;width:105px;height:19px;background:url(images/embed/dc_inline_logo.png?1323631829)}.DC-search-embed.DC-skinny-width .DC-paginator .DC-logo{display:none}.DC-search-embed .DC-icon.DC-search-glyph{width:12px;height:12px;background-image:url(images/embed/search_glyph.png?1323631829)}.DC-search-embed .DC-icon.DC-search-glyph.DC-spinner{width:16px;height:16px;left:7px;top:6px;background-image:url(images/embed/spinner_circle.gif?1323631829)}.DC-search-embed .DC-icon.DC-cancel-search{width:11px;height:11px;background-position:center 0;background-image:url(images/embed/cancel_search.png?1323631829);cursor:pointer}.DC-search-embed .DC-icon.DC-cancel-search:hover{background-position:center -11px}.DC-icon.DC-document{width:60px;height:75px;background-image:url(images/embed/generic.png?1323631829);border:0}.DC-icon.DC-icon-lock{background:transparent url(images/embed/lock.png?1323631829) no-repeat 0 0;width:18px;height:18px}.DC-embed-preview{width:900px;margin:50px auto}.DC-embed-preview .DC-search-embed{margin:50px 0}
+.DC-search-embed div,.DC-search-embed span,.DC-search-embed a{margin:0;padding:0;border:0;outline:0;font-weight:inherit;font-style:inherit;font-size:100%;font-family:inherit;vertical-align:baseline}.DC-search-embed .DC-document-list a,.DC-search-embed .DC-document-list a:link,.DC-search-embed .DC-document-list a:visited,.DC-search-embed .DC-document-list a:active{color:#559;text-decoration:underline}.DC-search-embed .DC-hidden{visibility:hidden}.DC-search-embed .DC-quiet-link{white-space:nowrap;cursor:pointer;color:#808080;text-decoration:none}.DC-search-embed .DC-quiet-link:hover{color:#000;text-decoration:underline}.DC-search-embed a,.DC-search-embed a:hover,.DC-search-embed .DC-document-list a:hover,.DC-search-embed .DC-paginator a:hover{background-color:transparent}.DC-search-embed{clear:both;overflow:hidden;font:16px/20px Helvetica,Arial;margin:12px 0}.DC-search-embed .DC-no-results{position:relative;margin:0 0 32px 24px;padding:0 0 0 75px;height:77px;font-size:14px;color:#333}.DC-search-embed .DC-no-results .DC-icon{position:absolute;top:10px;left:0}.DC-search-embed .DC-explanation{padding-top:30px}.DC-search-embed .DC-document-list{overflow:hidden}.DC-search-embed .DC-interface{font-family:"Lucida Grande","Lucida Sans Unicode",Helvetica,Arial}.DC-search-embed.DC-unselectable{-webkit-user-select:none;-moz-user-select:none;user-select:none}.DC-search-embed .DC-title{font-size:24px;margin:6px 0 18px;font-weight:bold;text-align:center}.DC-search-embed .DC-search{margin:0 0 15px}.DC-search-embed .DC-text-input{position:relative;height:30px;background:transparent url(images/embed/text_input_large_left.png?1323210618) no-repeat center left}.DC-search-embed .DC-text-input .DC-placeholder{position:absolute;cursor:text;left:1px;top:5px;color:#c0c0c0;font-size:13px;line-height:18px}.DC-search-embed .DC-text-input input{display:block;border:none;outline:none;margin:0;padding:4px;background:transparent;font-size:16px;line-height:18px;width:100%;color:#000;font-size:13px;font-family:"Lucida Grande","Lucida Sans Unicode",Helvetica,Arial,sans-serif!important;width:100%}.DC-search-embed .DC-text-input.DC-search{height:28px;background:transparent;border:2px solid #ccc;border-radius:16px;-webkit-border-radius:16px;-moz-border-radius:16px;background-color:#fafafa;-webkit-box-shadow:inset 0 0 3px #ccc;-moz-box-shadow:inset 0 0 3px #ccc;box-shadow:inset 0 0 3px #ccc}.DC-search-embed .DC-search-embed .DC-text-input.DC-search:focus{border-color:#acf;-webkit-box-shadow:inset 0 0 3px #acf;-moz-box-shadow:inset 0 0 3px #acf;box-shadow:inset 0 0 3px #acf}.DC-search-embed .DC-text-input .DC-search-inner{position:relative;margin:0 28px}.DC-search-embed .DC-text-input.DC-search input{width:100%;height:18px;padding:5px 0}.DC-search-embed .DC-text-input.DC-search input:-moz-placeholder{color:#808080}.DC-search-embed .DC-text-input.DC-search:focus input{color:#000}.DC-search-embed .DC-text-input .DC-search-glyph{position:absolute;left:10px;top:8px}.DC-search-embed .DC-text-input .DC-cancel-search{position:absolute;right:9px;top:8px}.DC-search-embed.DC-query-original .DC-cancel-search{display:none}.DC-search-embed .DC-document-tile{display:block;float:left;width:230px;border:1px solid transparent;height:86px;margin:0 15px 0 0;padding:0 0 15px 80px;position:relative;overflow:hidden;outline:none}.DC-search-embed .DC-document-list a.DC-document-tile{text-decoration:none}.DC-search-embed .DC-document-tile:hover{cursor:pointer}.DC-search-embed .DC-document-thumbnail{position:absolute;left:3px;top:3px;margin:0 6px 4px 0;width:70px;height:85px}.DC-search-embed .DC-document-thumbnail img{border:1px solid #aaa;width:60px;height:75px;margin:0;padding:1px;background-color:#fff;float:none}.DC-search-embed .DC-document-tile:hover .DC-document-thumbnail img{border-color:#808080}.DC-search-embed .DC-document-thumbnail-select{position:absolute;margin:0 6px 4px 0;background-color:#e0e0e0;width:63px;height:78px;left:6px;top:6px}.DC-search-embed .DC-document-tile:hover .DC-document-thumbnail-select{background-color:#c7c7c7}.DC-search-embed .DC-document-title{color:#000;font-size:14px;font-weight:bold;line-height:17px;margin:2px 0 2px 0}.DC-search-embed .DC-document-tile:hover .DC-document-title{text-decoration:underline}.DC-search-embed .DC-document-description{color:#333;font-family:Georgia;font-size:12px;line-height:14px;overflow:hidden;height:44px}.DC-search-embed .DC-show-organization .DC-document-description{height:30px}.DC-search-embed .DC-document-organization{color:#808080;font-size:10px;line-height:12px;margin:4px 0 0 0}.DC-search-embed .DC-document-tile .DC-icon-lock{display:none}.DC-search-embed .DC-document-tile.DC-document-private .DC-icon-lock{display:block;float:right;margin-left:4px}.DC-search-embed .DC-arrow{font-size:17px;line-height:11px;position:relative;display:inline-block;cursor:pointer;top:2px}.DC-search-embed .DC-arrow:hover{color:#000}.DC-search-embed .DC-arrow.DC-arrow-left{padding-right:4px}.DC-search-embed .DC-arrow.DC-arrowright{padding-left:4px}.DC-search-embed .DC-paginator{padding:6px 0 0;margin:0;font-size:11px;line-height:18px;height:18px;color:#808080;border-top:1px solid #ccc;position:relative}.DC-search-embed .DC-paginator a img{border:none;float:none}.DC-search-embed .DC-paginator .DC-paginator-description{position:absolute;left:0;top:6px;white-space:nowrap}.DC-search-embed .DC-paginator .DC-paginator-range{font-weight:bold}.DC-search-embed .DC-paginator .DC-paginator-enumeration{position:absolute;width:200px;left:50%;margin-left:-50px;text-align:left;height:20px}.DC-search-embed.DC-skinny-width .DC-paginator .DC-paginator-enumeration{right:0;left:auto;width:auto}.DC-search-embed .DC-paginator .DC-page-current{font-weight:bold}.DC-search-embed .DC-paginator.DC-is-editing .DC-page-current{display:none}.DC-search-embed .DC-paginator .DC-page-edit{display:none;position:relative;width:18px;font-size:11px;height:16px;text-align:center;color:#808080;padding:0;border:1px solid #c0c0c0}.DC-search-embed .DC-paginator.DC-is-editing .DC-page-edit{display:inline}.DC-search-embed .DC-paginator .DC-page-edit:focus{color:#000}.DC-search-embed .DC-paginator .DC-logo{position:absolute;right:0;top:4px;width:105px;height:19px;background:url(images/embed/dc_inline_logo.png?1323210618)}.DC-search-embed.DC-skinny-width .DC-paginator .DC-logo{display:none}.DC-search-embed .DC-icon.DC-search-glyph{width:12px;height:12px;background-image:url(images/embed/search_glyph.png?1323210618)}.DC-search-embed .DC-icon.DC-search-glyph.DC-spinner{width:16px;height:16px;left:7px;top:6px;background-image:url(images/embed/spinner_circle.gif?1323210618)}.DC-search-embed .DC-icon.DC-cancel-search{width:11px;height:11px;background-position:center 0;background-image:url(images/embed/cancel_search.png?1323210618);cursor:pointer}.DC-search-embed .DC-icon.DC-cancel-search:hover{background-position:center -11px}.DC-icon.DC-document{width:60px;height:75px;background-image:url(images/embed/generic.png?1323210618);border:0}.DC-icon.DC-icon-lock{background:transparent url(images/embed/lock.png?1323210618) no-repeat 0 0;width:18px;height:18px}.DC-embed-preview{width:900px;margin:50px auto}.DC-embed-preview .DC-search-embed{margin:50px 0}
View
514 public/search_embed/search_embed.js
257 additions, 257 deletions not shown
Please sign in to comment.
Something went wrong with that request. Please try again.