PageSourceSearch

https://www.bookoff.co.jp/js/top.min.js?v=20200608

js bookoff.co.jp collected 2026-09-24 08:59:07 UTC 3,298 bytes, 1 lines download raw bytes

1var Yahoo;!function(Yahoo){var AuctionItemImage=function(){function AuctionItemImage(img){var _this=this;this.getUrl=function(){return _this.m_url},this.getWidth=function(){return _this.m_width},this.getHeight=function(){return _this.m_height},this.m_url=img.url,this.m_width=img.width,this.m_height=img.height}return AuctionItemImage}(),AuctionItem=function(){function AuctionItem(settings,item){var _this=this;this.getSellerID=function(){return _this.m_sellerID},this.getSellerName=function(){return _this.m_sellerName},this.getPrice=function(){return _this.m_price},this.getPriceFormat=function(){return String(_this.m_price).replace(/(\d)(?=(\d\d\d)+(?!\d))/g,"$1,")},this.getBidCount=function(){return _this.m_bidCount},this.getImage=function(){return _this.m_image},this.getDetailURL=function(){var prf="?";return _this.m_detailURL.indexOf("?")>0&&(prf="&"),_this.m_detailURL+prf+"fr=auc_bocorpsite"},this.m_sellerID=item.seller.id,this.m_sellerName=settings.getSellerName(this.m_sellerID),this.m_price=item.price,this.m_bidCount=item.bid_count,item.images.length>0&&(this.m_image=new AuctionItemImage(item.images[0])),this.m_detailURL=item.links.webpage.detail.href}return AuctionItem}();Yahoo.AuctionItem=AuctionItem}(Yahoo||(Yahoo={})),$((function(){setUISelect(),0!=uAgent&&3!=uAgent||$("#member-login-sp-btn").css("display","none"),$("#auction1").each((function(){var auc1=this,manager=new Yahoo.AuctionManager("https://auctions.yahooapis.jp/v2.1/auctions/search","dj0zaiZpPW85WDZMNVZpZG9tRSZzPWNvbnN1bWVyc2VjcmV0Jng9Zjc-"),settings=new Yahoo.AuctionConfig;settings.addSeller("bookoff2014","ブックオフ"),settings.addSeller("hugmart2013","hugall"),settings.addSeller("bookoff2016","オンライン"),manager.getProducts((function(result){var items=[];$.each(result.auctions,(function(i,item){var itemObj=new Yahoo.AuctionItem(settings,item);if(items.push(itemObj),5==i)return!1})),$(auc1).find(".auction-items").each((function(){var ul=this;$.each(items,(function(i,item){var $li=$("<li></li>");i>2&&$li.addClass("pc-only");var image=item.getImage(),$a=$('<a href="'+item.getDetailURL()+'" target="_blank"></a>');$a.each((function(){$.extend(this,{imgSize:{w:image.getWidth(),h:image.getHeight()}})}));var $img=$('<img src="'+image.getUrl()+'" />');$a.append($img),$li.append($a),$li.append('<p class="price">現在'+item.getPriceFormat()+"円</p>");var $bidList=$('<ul class="bid-list cf" />');item.getBidCount()>0?$bidList.append('<li><span class="ext-bid">入札'+item.getBidCount()+"件</span></li>"):$bidList.append("<li><span>入札"+item.getBidCount()+"件</span></li>"),$bidList.append('<li><span class="cat '+item.getSellerID()+'">'+item.getSellerName()+"</span></li>"),$li.append($bidList),$(ul).append($li)}))}));var resizeImg=function(e){if(void 0===e&&(e=void 0),getSmartPhone()){var maxH=0,visibles=[];$(".auction-items li a").each((function(){if($.expr.filters.visible(this)){var aw=$(this).width(),hh=this.imgSize.h;if(aw<this.imgSize.w){var hi=aw/this.imgSize.w;hh=this.imgSize.h*hi}hh>maxH&&(maxH=hh),visibles.push(this)}})),$.each(visibles,(function(i,aelem){$(aelem).height(maxH)}))}};$(window).off("resize.auction"),$(window).on("resize.auction",resizeImg),resizeImg()}),settings)})),$(".js-banner-close").click((function(){$(".js-fixed-banner").fadeOut()}))}));

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.