1
Fork 0
mirror of https://github.com/thegeneralist01/books synced 2026-01-09 23:00:25 +01:00
books/getting-tall/bamboo-method/Scribd_files/4.131989017af826fa9ea6.js
TheGeneralist c80c5cfd18
add books
2024-12-14 21:21:54 +01:00

2 lines
No EOL
12 KiB
JavaScript

(window.webpackJsonp=window.webpackJsonp||[]).push([[4],{166:function(t,e){Scribd.send_pingback=function(t){var e,n,o;if(o=t.join(""),!("undefined"!=typeof navigator&&null!==navigator&&null!=(n=navigator.userAgent)?n.match(/Google (Web|Instant) Preview/):void 0))return e={},document.referrer&&(e.referer=document.referrer),$.ajax({type:"POST",url:o,data:e,skip_csrf:!0})}},172:function(t,e,n){},173:function(t,e){!function(t){t.parseQuery=function(e){var n={query:window.location.search||""},o={};return"string"==typeof e&&(e={query:e}),t.extend(n,t.parseQuery,e),n.query=n.query.replace(/^\?/,""),n.query.length>0&&t.each(n.query.split(n.separator),(function(t,e){var i=e.split("="),r=n.decode(i.shift(),null).toString(),s=n.decode(i.length?i.join("="):null,r);(n.array_keys.test?n.array_keys.test(r):n.array_keys(r))?(o[r]=o[r]||[],o[r].push(s)):o[r]=s})),o},t.parseQuery.decode=t.parseQuery.default_decode=function(t){return decodeURIComponent((t||"").replace(/\+/g," "))},t.parseQuery.array_keys=function(){return!1},t.parseQuery.separator="&"}(window.jQuery||window.Zepto)},174:function(t,e,n){var o,i=function(t,e){return function(){return t.apply(e,arguments)}};n(121),o=function(){function t(e){this._clear_enter_timeout=i(this._clear_enter_timeout,this),this._clear_fade_timeout=i(this._clear_fade_timeout,this),this._clear_leave_timeout=i(this._clear_leave_timeout,this),this.opts=$.extend({},this.default_opts,e),this.open=!1,t.disable_hide="true"===Scribd.parse_parameters(window.location.search).disable_hover_hide}return t.prototype.default_opts={timeout:1e3,enter_timeout:150,fade_timeout:400,show:function(){},hide:function(){},after_fade:function(){}},t.prototype.enter=function(){var t;if(!this.enter_timeout)return this._clear_leave_timeout(),this._clear_fade_timeout(),this.enter_timeout=window.setTimeout((t=this,function(){var e;return delete t.enter_timeout,t.open||"function"==typeof(e=t.opts).show&&e.show(),t.open=!0}),this.opts.enter_timeout)},t.prototype.leave=function(){var t;if(!this.leave_timeout)return this._clear_enter_timeout(),this.leave_timeout=window.setTimeout((t=this,function(){return delete t.leave_timeout,t.hide()}),this.opts.timeout)},t.prototype.hide=function(){var e,n;if(!t.disable_hide)return this._clear_enter_timeout(),this._clear_leave_timeout(),this.open&&"function"==typeof(e=this.opts).hide&&e.hide(),this.open=!1,this.hiding=!0,this.fade_timeout=window.setTimeout((n=this,function(){var t;return"function"==typeof(t=n.opts).after_fade&&t.after_fade(),n.hiding=!1}),this.opts.fade_timeout)},t.prototype.show=function(){var t;return"function"==typeof(t=this.opts).show?t.show():void 0},t.prototype._clear_leave_timeout=function(){if(this.leave_timeout)return window.clearTimeout(this.leave_timeout),delete this.leave_timeout},t.prototype._clear_fade_timeout=function(){if(this.fade_timeout)return window.clearTimeout(this.fade_timeout),delete this.fade_timeout},t.prototype._clear_enter_timeout=function(){if(this.enter_timeout)return window.clearTimeout(this.enter_timeout),delete this.enter_timeout},t}(),Scribd.HoverManager=o},175:function(t,e){$.fn.lazyimages=function(){var t,e,n,o,i,r,s,a;for(e=0,i=(s=this.find("[data-lazysrc]")).length;e<i;e++)n=s[e],(n=$(n)).attr("src",n.data("lazysrc")),n.removeAttr("data-lazysrc");for(o=0,r=(a=this.find("[data-lazybg]")).length;o<r;o++)t=a[o],(t=$(t)).css("background-image","url('"+t.data("lazybg")+"')"),t.removeAttr("data-lazybg");return this}},176:function(t,e,n){n(121),Scribd.facebook_login_status=jQuery.Deferred(),window.fbAsyncInit=function(){return Scribd.with_named_current_user((function(){return Scribd.facebook=new Scribd.Facebook,Scribd.Facebook.loaded.resolve()}))},Scribd.Facebook=function(){function t(){this.cookie=new Scribd.JSONCookie("session_metadata"),this.connect(),$(document).trigger("facebook:initialized")}return t.loaded=$.Deferred(),t.setup=function(){var t;if(!Scribd.facebook_disabled){try{document.cookie}catch(t){return void 0}return(t=document.createElement("script")).type="text/javascript",t.src=document.location.protocol+"//connect.facebook.net/en_US/sdk.js",t.async=!0,document.getElementById("fb-root").appendChild(t)}},t.prototype.get_config=function(t){var e,n;return"undefined"!=typeof Scribd&&null!==Scribd&&null!=(e=Scribd.config)&&null!=(n=e.facebook)?n[t]:void 0},t.prototype.login=function(t){var e,n;return n=this,e=function(e){return(null!=e?e.authResponse:void 0)?(n.session=e.authResponse,Scribd.with_named_current_user((function(){var t;return(t=Scribd.set_named_current_user(Scribd.named_current_user()||{})).is_facebook_user=!0,t.facebook_user_id=n.session.userID})),null!=t?t.apply(null,arguments):void 0):(n.session=null,"function"==typeof t?t(null):void 0)},FB.login(e,{scope:this.get_config("permissions")})},t.prototype.login_and_link=function(t){return this.login((function(e){return e?$.ajax(Scribd.facebook.link_url,{type:"post",success:function(){return"function"==typeof t?t(!0,e):void 0},error:function(){return"function"==typeof t?t(!1,e):void 0}}):"function"==typeof t?t(!1):void 0}))},t.prototype.with_account=function(t,e){return null==e&&(e=!1),Scribd.with_named_current_user((function(){if(Scribd.named_current_user().is_facebook_user)return FB.getLoginStatus((function(n){var o;return n.authResponse.userID.toString()===Scribd.named_current_user().facebook_user_id.toString()?"function"==typeof t?t():void 0:e?FB.logout((o=this,function(){return FB.login((function(){return o.with_account(t,e)}))})):void 0}))}))},t.prototype.with_permission=function(t,e){return this.check_permission(t).then(e,(n=this,function(){return n.login(e)}));var n},t.prototype.check_permission=function(t){var e;return e=jQuery.Deferred(),FB.api("/me?fields=permissions","get",(function(n){var o,i;return"granted"===(null!=(i=function(){var e,i,r,s;for(s=[],e=0,i=(r=n.permissions.data).length;e<i;e++)(o=r[e]).permission===t&&s.push(o);return s}()[0])?i.status:void 0)?e.resolve(n):e.reject(n)})),e},t.prototype.connect=function(){return FB.init({appId:this.get_config("app_id"),status:!1,cookie:!0,xfbml:!1,oauth:!0,version:"v6.0"}),this.get_session((t=this,function(){return t.instant=new Scribd.Facebook.InstantPersonalize(t)}));var t},t.prototype.get_session=function(t){var e,n;if(this.session=null,!(""+this.cookie.get("active_facebook_session")=="false"&&(e=this.cookie.get("last_facebook_ping"))&&(Scribd.facebook_login_status.reject(),+new Date-e<36e5)))return FB.getLoginStatus((n=this,function(e){return"connected"===e.status?(n.session=e.authResponse,"function"==typeof t&&t(),Scribd.facebook_login_status.resolve(e.status)):(n.cookie.set("active_facebook_session","false"),n.cookie.set("last_facebook_ping",+new Date),n.cookie.save(),Scribd.facebook_login_status.reject(e.status))}))},t}(),Scribd.Facebook.InstantPersonalize=function(){function t(t){this.facebook=null!=t?t:Scribd.facebook,this.cookie=this.facebook.cookie,this.try_remember_id()}return t.context="newhome",t.prototype.try_remember_id=function(){if(this.facebook.session)return this.cookie.set("last_facebook_uid",this.facebook.session.userID),this.cookie.save()},t}()},177:function(t,e){$((function(){return $(document).on("submit","form",(function(t){var e,n,o,i,r,s;if(!(i=$(t.currentTarget)).closest(".auto__base_component").length&&(e=i.find(".flat_btn:not(.no_spinner)")).length){for(o=function(){var n,o,i;for(i=[],n=0,o=e.length;n<o;n++)t=e[n],i.push($(t));return i}(),r=0,s=o.length;r<s;r++)(n=o[r]).addClass("loading"),n.prop("disabled",!0);return i.on("ajax:complete.submit_loading",(function(){var t,e;for(t=0,e=o.length;t<e;t++)(n=o[t]).removeClass("loading"),n.prop("disabled",!1);return i.off("ajax:complete.submit_loading")}))}}))})),$.fn.fancy_select=function(){var t,e,n,o,i,r,s,a;if(!this.length)return this;if((a=(r=(n=this.first()).find("a")).filter(".selected")).length||(a=r.first()),!r.length)throw"no options found";return(s=$("<button class='fancy_select has_ticks'> <span class='fancy_select_label'></span> <span class='sprite white_tri_up'></span> <span class='sprite white_tri_down'></span> </button>")).find(".fancy_select_label").html(a.html()),o=$("<div class='fancy_select_menu'></div>"),t=!0,i=function(){var e;return s.addClass("open"),e=s.offset(),o.appendTo(document.body).css({left:e.left+"px",top:e.top+s.height()+"px"}).stop(!0),t&&(o.height()>300&&$("<div class='fancy_menu_inner'></div>").append(o.children()).appendTo(o),t=!1),o.hide().slideDown("fast")},e=function(){return s.removeClass("open"),o.stop(!0).slideUp("fast",(function(){return o.detach()}))},r.addClass("fancy_option").appendTo(o),s.on("click",(function(t){return s.is(".open")?e():i(),!1})),o.on("click",".fancy_option",(function(t){return e(),n.trigger("scribd:fancy_select",[t.currentTarget])})),n.hide().after(s),$(document.body).click((function(t){if(s.is(".open")&&!$(t.target).closest(o).length)return e()})),this}},178:function(t,e,n){var o;o=function(){function t(t){var e,n;this.options=$.extend({expires:3600,path:"/",domain:Scribd.config.session_domain,secure:""},t),""!==this.options.expires&&(n=+new Date,e=new Date(n+1e3*this.options.expires),this.options.expires="; expires="+e.toGMTString()),""!==this.options.path&&(this.options.path="; path="+escape(this.options.path)),""!==this.options.domain&&(this.options.domain="; domain="+escape(this.options.domain)),this.options.secure?this.options.secure="; secure":this.options.secure=""}return t.prototype.append_string="__CJ_",t.prototype.put=function(t,e){var n;switch(t=this.append_string+t,typeof e){case"undefined":case"function":case"unknown":return!1;case"boolean":case"string":case"number":e=e.toString()}n=t+" = "+escape(JSON.stringify(e));try{return document.cookie=n+this.options.expires+this.options.path+this.options.domain+this.options.secure,!0}catch(t){return!1}},t.prototype.remove=function(t){var e,n,o;o=+new Date,n="; expires="+new Date(o-36e5).toGMTString();try{return e=this.append_string+t+"="+n+this.options.path+this.options.domain+this.options.secure,document.cookie=e,!0}catch(t){return!1}},t.prototype.get=function(t){var e,n;t=this.append_string+t,e=void 0;try{e=document.cookie}catch(t){return void 0}if(n=e.match(t+"=(.*?)(;|$)"))return JSON.parse(unescape(n[1]))},t.prototype.get_keys=function(){var t,e,n,o,i,r,s;i=[],o=new RegExp("^"+this.append_string),t=void 0;try{t=document.cookie}catch(t){return i}for(e=0,r=(s=t.match(/[^=; ]+(?=\=)/g)).length;e<r;e++)(n=s[e]).match(o)&&i.push(n);return i},t.prototype.empty=function(){var t,e,n,o,i;for(i=[],t=0,n=(o=this.get_keys()).length;t<n;t++)e=o[t],i.push(this.remove(e));return i},t}(),t.exports&&(t.exports=o),"undefined"!=typeof window&&(window.CookieJar=o)},179:function(t,e){!function(t){var e,n,o,i={},r=document,s=window,a=r.documentElement,c=t.expando;function u(){var o,c,u,f,d=t(),p=0;if(t.each(i,(function(t,e){var n=e.data.selector,o=e.$element;d=d.add(n?o.find(n):o)})),o=d.length)for(e=e||((f={height:s.innerHeight,width:s.innerWidth}).height||!(c=r.compatMode)&&t.support.boxModel||(f={height:(u="CSS1Compat"===c?a:r.body).clientHeight,width:u.clientWidth}),f),n=n||{top:s.pageYOffset||a.scrollTop||r.body.scrollTop,left:s.pageXOffset||a.scrollLeft||r.body.scrollLeft};p<o;p++)if(t.contains(a,d[p])){var h,l,_,m=t(d[p]),g={height:m.height(),width:m.width()},v=m.offset(),y=m.data("inview");if(!n||!e)return;v.top+g.height>n.top&&v.top<n.top+e.height&&v.left+g.width>n.left&&v.left<n.left+e.width?(_=(h=n.left>v.left?"right":n.left+e.width<v.left+g.width?"left":"both")+"-"+(l=n.top>v.top?"bottom":n.top+e.height<v.top+g.height?"top":"both"),y&&y===_||m.data("inview",_).trigger("inview",[!0,h,l])):y&&m.data("inview",!1).trigger("inview",[!1]).trigger("out_of_view")}}t.event.special.inview={add:function(e){i[e.guid+"-"+this[c]]={data:e,$element:t(this)},o||t.isEmptyObject(i)||(o=setInterval(u,250))},remove:function(e){try{delete i[e.guid+"-"+this[c]]}catch(t){}t.isEmptyObject(i)&&(clearInterval(o),o=null)},run:function(){u()}},t(s).bind("scroll resize",(function(){e=n=null})),!a.addEventListener&&a.attachEvent&&a.attachEvent("onfocusin",(function(){n=null}))}(jQuery)},180:function(t,e,n){}}]);
//# sourceMappingURL=https://www.scribd.com/webpack/monolith/4.131989017af826fa9ea6.js.map