Signin  Pricing  Examples  Support

Libraries > 98eefd0d7946b8688dac316f165ab9f2.js

98eefd0d7946b8688dac316f165ab9f2.js - Search Live Website Code
It's like doing CTRL+F on millions of websites' source code



NerdyData is a search engine for source code. Search the source code of 200 million websites.


JAVASCRIPT FILE http://i.annihil.us/u/prod/marvel/s/js/98eefd0d7946b8688dac316f165ab9f2.js

Function Explorer



































Libraries on i.annihil.us


a34a58f2cb251dcc855a41c95c77b81e.js

a4e10de2ebb8fc01929c19913e9636e9.js

d3223c949ff71f0d82eb87ce2384b1e4.js

d4815ae131cba6721c918275c7b6d8e0.js



Explore More


jquery.hoverIntent.js

jquery.imageflip.js

jquery.jscrollpane.min.js

jquery.tooltip.js

98eefd0d7946b8688dac316f165ab9f2.js
				
var janrain=(function(b){var g={message:"Enter Marvel.com, the best place to connect with other fans and get news about comics & greatest super-heroes: Iron Man, Thor, Captain America, the X-Men, and more.",title:"Marve.com",description:"Enter Marvel.com, the best place to connect with other fans and get news about comics & greatest super-heroes: Iron Man, Thor, Captain America, the X-Men, and more."};function e(){c();f();d()}function c(){b.settings=b.settings||{};b.settings.share=b.settings.share||{};b.settings.packages=b.settings.packages||[];b.settings.packages.push("share");b.settings.share.message=g.message;b.settings.share.title=g.title;b.settings.share.url="http://marvel.com/";b.settings.share.description=g.description}function d(){var j=document.createElement("script");j.type="text/javascript";j.id="janrainWidgets";if(document.location.protocol==="https:"){j.src=URLs.rpxWidgetUrlSecure}else{j.src=URLs.rpxWidgetUrl}var h=document.getElementsByTagName("script")[0];h.parentNode.insertBefore(j,h)}function f(){a().setReadyBinds();a().setClickBinds()}function a(){return{setReadyBinds:function(){function h(){janrain.ready=true}if(document.addEventListener){document.addEventListener("DOMContentLoaded",h,false)}else{window.attachEvent("onload",h)}},setClickBinds:function(){function h(){var n=this.getAttribute("data-janrain-sharebtn");var q=this.getAttribute("data-janrain-forcemeta");if(typeof q==="string"&&q.length>0){try{q=JSON.parse(this.getAttribute("data-janrain-forcemeta"))}catch(p){throw"invalid JSON passed"}}else{q={}}var m={event_value:"share",social_channel:n,link_shared:window.location.href};var l=jQuery.data(this,"reportingData");if(l){m=_.extend(m,l)}m.event_type=m.event_type||"blogpost";Uatu.report(m);janrain.engage.share.reset();var o=q.title||getMetaContent("og:title");function k(r){var s=r.provider;if(s==="twitter"){setTimeout(function(){janrain.engage.share.setMessage(o)},0)}else{janrain.engage.share.setMessage("")}}function j(){janrain.events.onShareProviderSelect.eventHandlers=[];janrain.events.onModalClose.eventHandlers=[];window.listeningToJanrainInThisHack=false}if(!window.listeningToJanrainInThisHack){janrain.events.onShareProviderSelect.addHandler(k);janrain.events.onModalClose.addHandler(j);window.listeningToJanrainInThisHack=true}if(n==="twitter"){q.message=o}setMetaContent(q);janrain.engage.share.showProvider(n);janrain.engage.share.show()}$(document).on("click","*[data-janrain-sharebtn]",function(j){j.preventDefault();h.call(this)});$(document).on("click","[data-id='googlePlusButton']",function(j){Uatu.report({event_type:"blogpost",event_value:"share",social_channel:"google+"})})}}}e();return b})(janrain||{});function janrainShareOnload(){if(typeof gallery!=="undefined"||typeof Juggernaut.overRideJanrain!=="undefined"){return false}janrain.events.onModalOpen.addHandler(function(a){setMetaContent()})}function setMetaContent(b){b=b||{};var a={message:getMetaContent(""),title:getMetaContent("og:title"),image:getMetaContent("og:image"),desc:getMetaContent("og:description"),url:getMetaContent("og:url")};b=$.extend({},a,b);janrain.engage.share.setMessage(b.message);janrain.engage.share.setTitle(b.title);janrain.engage.share.setImage(b.image);janrain.engage.share.setDescription(b.desc);janrain.engage.share.setUrl(b.url)}function getMetaContent(a){var b=document.getElementsByTagName("meta");for(i=0;i<b.length;i++){if(b[i].getAttribute("name")==a||b[i].getAttribute("property")==a){return b[i].getAttribute("content").trim()}}return""}$(document).on("focus blur",".findashop input[type=text]",function(b){var a=b.type;if(a==="focusin"&&this.value===this.defaultValue){this.value=""}else{if(a==="focusout"&&this.value===""){this.value=this.defaultValue}}});$(document).on("click","a[data-collapse-trigger]",function(b){b.preventDefault();var a=this.getAttribute("data-collapse-trigger");$("[data-collapse-item="+a+"]").slideToggle();if(this.innerHTML.toUpperCase()==="HIDE"){this.innerHTML="Show More"}else{if(this.innerHTML.toUpperCase()==="SHOW MORE"){this.innerHTML="Hide"}}});$(document).on("click","span[data-squeezed-toggler], a[data-squeezed-toggler]",function(a){a.preventDefault();var b=this.getAttribute("data-squeezed-toggler");$("*[data-squeezed-wrap="+b+"]").fadeToggle()});$(document).on("click","a[data-blurb-trigger]",function(d){d.preventDefault();var b=this.getAttribute("data-blurb-trigger"),c=$(this),a=$("*[data-blurb-trigger="+b+"]");if(c.html().toUpperCase().search("LESS")>=0){a.html(" more")}else{a.html(" less")}$("*[data-blurb="+b+"]").toggle(0)});$(document).on("click","*[data-dialoghelp]",function(c){var b=$(this).data("dialoghelp"),a=$("#"+b);a.show();$("#"+b).find(".close").click(function(){a.hide()})});$(document).on("click.enlargeImage","a[data-dpop-image-detail]",function(b){b.preventDefault();var a=this.getAttribute("data-dpop-image-detail");a='<img src="'+a+'" alt="printSizeImage" />';dPop.create(a,{css:"imageDetail",hasMask:true,XButton:true,fixPosition:false})});$(document).on("click.enlargeImageWJCGallery","[data-dpop-image-jcgallery]",function(h){h.preventDefault();if(JCGallery){var d=Juggernaut.mustache,f=tplToJs.mustache,c=$.parseJSON(this.getAttribute("data-dpop-image-jcgallery"));if(!d.hasTpl("structure")){Mustache.compilePartial("JCGallery/partials/topcontrols",f.topcontrols);Mustache.compilePartial("JCGallery/partials/slider",f.slider)}var k=Juggernaut.mustache.load("structure");var a="dPop_image-detail-gallery",j=document.getElementById("dPop_image-detail-gallery");if(!j){j=document.createElement("div");j.id=a;document.body.appendChild(j)}var g="JCGallery-DetailJS";j.innerHTML=k({UI:{JCGallery:{id:g}}});console.log(c);var b={count:1,index:0,slides:[{abstractMetaData:[],connected:null,connectedMeta:[],description:c.description,gallery_title:c.gallery_title,img:c.img,id:c.id,index:0,preloaded_slide:false,showLinkText:true,thumb:c.img,title:c.title,toggleLinkText:"More"}]};var l={isMobile:Juggernaut.client.hasTouch,title:c.gallery_title,interstitial_interval:0,count:b.count,lastSlideIndex:b.slides[b.slides.length-1].index,googleAnalytics:{contentId:c.contentId,galleryType:c.galleryType},contentID:c.contentId,galleryType:c.galleryType};var m=$("#"+g);JCGalleryDetailInt=new JCGallery();JCGalleryDetailInt.init(m,b,l);console.log("gallery data : ",b,"Instance data : ",l);m.find(".pwrSldr").one("pwrSldr_draw",function(){setTimeout(JCGalleryDetailInt.toggleFullscreen,350)});$("a.fullscreen-toggle").one("click",function(){setTimeout(function(){delete JCGalleryDetailInt;j.innerHTML=""},1200)})}else{$(document).off("click.enlargeImageWJCGallery")}});function smoothScroll(f,c){var b=window.pageYOffset;var a=$(f);c=c||{};var k=c.limitDirection||null,e=c.offsetY||0,d=typeof c.duration==="number"?c.duration:500,j=c.callback||function(){},g=c.easing||"swing";var h;if(typeof f==="number"){h=f}else{if(a.offset()){h=a.offset().top+e}else{return true}}h=a.offset().top+e;if(b<h&&k==="top"||b>h&&k==="bottom"){return true}$("html, body").stop().animate({scrollTop:h},d,g,j)}$(document).on("jtap","*[data-scrollto]",function(c){var a=this.getAttribute("data-scrollto"),b={};try{b=JSON.parse(a);a=b.selector;if(Juggernaut.client.hasTouch&&!b.duration){b.duration=0}}catch(c){console.warn(c)}smoothScroll(a,b)});$("div[data-sld]").each(function(){$this=$(this);if(!$this.data("pwrSldr")){$this.addClass("pwrSldr");PwrSldrInstantiator.run()}});Juggernaut.UI.JCAccordion=(function(k){var b=$([]),c=[300,800,2100,5500],g=["_sSize","_mSize","_lSize","_xlSize"];function h(n){for(var m=0;m<c.length;m++){if(n<c[m]){var l=g[m];break}}return l||""}function f(){b=$("[data-jcaccordion]");b.children("dd._expanded").each(function(){var l=$(this).prev("dt");l.addClass("_expanded")});a();j()}function e(l){var n=$(this),q=n.next("dd"),m=h(q[0].scrollHeight);function p(){q.addClass(m);setTimeout(function(){q.addClass("_animable");setTimeout(function(){q.removeClass(g.join(" ")+" _expanded");n.removeClass("_expanded")},50)},50)}function o(){q.one(k,function(){console.log("done");q.removeClass("_animable");q.removeClass(m);q.off(k)});q.addClass("_animable");q.addClass("_expanded "+m);n.addClass("_expanded")}if(q.hasClass("_expanded")||l==="collapse"){p()}else{if(l==="expand"){o()}else{o()}}}function d(){var l;if(!this.nodeName){l=$(document)}else{if(this.nodeName==="dl"){l=$(this)}else{l=$(this).closest("dl")}}$("dd, dt",l).removeClass("_animable _expanded")}function a(){b.children("dt").off("click.jcAccordion")}function j(){b.children("dt").on("click.jcAccordion",function(){e.call(this)})}f();return{_reinit:f,expandCollapse:e,collapseAll:d}})(Juggernaut.evCheck.transitionEnd);Juggernaut.stickyFooter=function(c,h){var a=h.body,e=h.documentElement;var g=function(){return Math.max(a.scrollHeight,a.offsetHeight,e.clientHeight,e.scrollHeight,e.offsetHeight)};var j=function(){return c.innerHeight};var f=function(d){$(d).removeClass("stickyFooter")};var b=function(d){var k=h.getElementById("marvel_bottomnav_ad").parentNode;if(!!d){f(k)}if(g()<=j()){k.className+=" stickyFooter";return true}else{return false}};return{getHeight:g,stickIt:b}}(window,document);Juggernaut.stickyFooter.stickIt();$(window).resize(Juggernaut.utilities.debounce(function(){Juggernaut.stickyFooter.stickIt(true)},500,false));$(document).on("Juggernaut.filter.updatedlist",Juggernaut.utilities.debounce(function(){Juggernaut.stickyFooter.stickIt(true)},300,false));var scrollbind=(function(f){var c={};var b={};var e={inboundsCB:function(){},outboundsCB:function(){},compareBoundsCB:function(){},withinBoundsOf:null};function j(){h()}function a(l,n,m){f(l).each(function(p){var s=f(this),r=s.offset().top-(n.offset||0),q=r>0?r:0;if(n.withinBoundsOf){n.compareObjectHeight=n.withinBoundsOf.outerHeight()||null;n.compareObjectOffsetTop=n.withinBoundsOf.offset().top||null;n.selectorHeight=l.height()||null}var o=f.extend({},e,n);o.elem=s;c[q]=o})}function k(l){var n;for(var m in c){if(c[m].elem.is(l)){n=f.extend({},c[m]);delete c[m]}}delete n.elem;return n}function g(l){var m=k(l);a(l,m)}function h(){d().setScrollBinds()}function d(){return{setScrollBinds:function(){function l(){var m=window,n=m.document;if(m.pageYOffset!=null){return m.pageYOffset}if(document.compatMode=="CSS1Compat"){return n.documentElement.scrollTop}return n.body.scrollTop}f(window).on("scroll.scrollbind",function(){var o=l();for(var m in c){var n=c[m].elem;if(o>parseInt(m)){c[m].inboundsCB(n)}else{if(o<=parseInt(m)){c[m].outboundsCB(n)}}if(o>(c[m].compareObjectOffsetTop+c[m].compareObjectHeight)-c[m].selectorHeight){c[m].compareBoundsCB(n)}}})}}}j();return{bindOffsets:a,deleteOffsets:k,recalculateOffsets:g,_offsets:c}})(jQuery);scrollbind.bindOffsets("*[data-sticky-register]",{inboundsCB:function(a){a.addClass("sticky")},outboundsCB:function(a){a.removeClass("sticky")}});(function(){if(document.getElementById("nav1_0Detect")){return}if(typeof window.janrain!=="object"){window.janrain={}}if(typeof window.janrain.settings!=="object"){window.janrain.settings={}}janrain.settings.tokenUrl=window.marvelJanrainTokenUrl;janrain.settings.type="embed";janrain.settings.appId=window.marvelJanrainAppId;janrain.settings.appUrl=window.marvelJanrainAppUrl;janrain.settings.providers=["facebook","googleplus","twitter","yahoo"];janrain.settings.providersPerPage="6";janrain.settings.format="one row";janrain.settings.actionText="Sign in";janrain.settings.showAttribution=false;janrain.settings.fontColor="#0d0d0d";janrain.settings.fontFamily="TradeGothic,Arial,Helvetica,Lucida Grande,Verdana,sans-serif";janrain.settings.backgroundColor="transparent";janrain.settings.width="236";janrain.settings.borderRadius="0";janrain.settings.borderColor="transparent";janrain.settings.buttonBorderColor="transparent";janrain.settings.buttonBorderRadius="0";janrain.settings.buttonBackgroundStyle="white";janrain.settings.language="en";janrain.settings.linkClass="janrainEngage";function b(){janrain.ready=true}if(document.addEventListener){document.addEventListener("DOMContentLoaded",b,false)}else{window.attachEvent("onload",b)}janrain.ready=true;var c=document.createElement("script");c.type="text/javascript";c.id="janrainAuthWidget";if(document.location.protocol==="https:"){c.src=URLs.rpxWidgetUrlSecure||"https://rpxnow.com/js/lib/marvel-eval/engage.js"}else{c.src=URLs.rpxWidgetUrl||"http://widget-cdn.rpxnow.com/js/lib/marvel-eval/engage.js"}var a=document.getElementsByTagName("script")[0];a.parentNode.insertBefore(c,a)})();(function(p,D){var f=p.navigator.msPointerEnabled,j=(f)?"MSPointerDown":"ontouchstart" in p?"touchstart":"mousedown",v=(f)?"MSPointerMove":"ontouchstart" in p?"touchmove":"mousemove",o=(f)?"MSPointerUp":"ontouchstart" in p?"touchend":"mouseup";var u=function(w){if(window.MarvelWidgets&&window.MarvelWidgets.tracking&&window.MarvelWidgets.tracking.iframe){var d={start_location:"widget"};w=q({},d,w);MarvelWidgets.tracking.iframe.report(w)}else{if(window.Uatu){var d={start_location:"widget"};w=q({},d,w);window.Uatu.report(w)}}};var q=function(d){d=d||{};for(var L=1;L<arguments.length;L++){var M=arguments[L];if(!M){continue}for(var w in M){if(M.hasOwnProperty(w)){if(typeof M[w]==="object"){d[w]=q(d[w],M[w])}else{d[w]=M[w]}}}}return d};(function(L,w){L[w]||(L[w]=function(d){return this.querySelectorAll("."+d)},Element.prototype[w]=L[w])})(document,"getElementsByClassName");!window.addEventListener&&function(N,w,P,M,d,L,O){N[M]=w[M]=P[M]=function(R,Q){var S=this;O.unshift([S,R,Q,function(T){T.currentTarget=S;T.preventDefault=function(){T.returnValue=false};T.stopPropagation=function(){T.cancelBubble=true};T.target=T.srcElement||S;Q.call(S,T)}]);this.attachEvent("on"+R,O[0][3])};N[d]=w[d]=P[d]=function(S,Q){for(var T=0,R;R=O[T];++T){if(R[0]==this&&R[1]==S&&R[2]==Q){return this.detachEvent("on"+S,O.splice(T,1)[0][3])}}};N[L]=w[L]=P[L]=function(Q){return this.fireEvent("on"+Q.type,Q)}}(Window.prototype,HTMLDocument.prototype,Element.prototype,"addEventListener","removeEventListener","dispatchEvent",[]);if(typeof document!=="undefined"&&!("classList" in document.createElement("a"))){(function(O){var X="classList",S="prototype",L=(O.HTMLElement||O.Element)[S],W=Object,N=String[S].trim||function(){return this.replace(/^\s+|\s+$/g,"")},V=Array[S].indexOf||function(d){var Y=0,Z=this.length;for(;Y<Z;Y++){if(Y in this&&this[Y]===d){return Y}}return -1},w=function(Y,d){this.name=Y;this.code=DOMException[Y];this.message=d},R=function(d,Y){if(Y===""){throw new w("SYNTAX_ERR","An invalid or illegal string was specified")}if(/\s/.test(Y)){throw new w("INVALID_CHARACTER_ERR","String contains an invalid character")}return V.call(d,Y)},U=function(d){var Y=N.call(d.className),Z=Y?Y.split(/\s+/):[],aa=0,ab=Z.length;for(;aa<ab;aa++){this.push(Z[aa])}this._updateClassName=function(){d.className=this.toString()}},T=U[S]=[],P=function(){return new U(this)};w[S]=Error[S];T.item=function(d){return this[d]||null};T.contains=function(d){d+="";return R(this,d)!==-1};T.add=function(d){d+="";if(R(this,d)===-1){this.push(d);this._updateClassName()}};T.remove=function(d){d+="";var Y=R(this,d);if(Y!==-1){this.splice(Y,1);this._updateClassName()}};T.toggle=function(d){d+="";if(R(this,d)===-1){this.add(d)}else{this.remove(d)}};T.toString=function(){return this.join(" ")};if(W.defineProperty){var M={get:P,enumerable:true,configurable:true};try{W.defineProperty(L,X,M)}catch(Q){if(Q.number===-2146823252){M.enumerable=false;W.defineProperty(L,X,M)}}}else{if(W[S].__defineGetter__){L.__defineGetter__(X,P)}}}(self))}var t="It really is only here to try to generate a new hash in constrictor for the minified file";function z(){return C&&H&&b}function s(){var Q=window.innerWidth;var L=document.querySelectorAll("#txtSearcher")[0];var S=document.querySelectorAll(".responsive #marvel_topnav ul li .dropdown .signedout, .responsive #marvel_topnav.inner ul li .dropdown .signedout");if(Q<900){for(var O=S.length-1;O>=0;O--){S[O].style.opacity="0"}if(L){L.style.display="block";document.getElementById("search_mobile").style.display="block"}var N=document.querySelectorAll("#marvel_topnav .dropdown.signin")[0];var P=document.querySelectorAll("#marvel_topnav .dropdown.signin")[1];var M=document.getElementById("marvel_topnav_ul_wrapper");document.addEventListener(j,function(U){var T=U.target;if(T.className=="icon-account _topnavicon "||T.className=="icon-account _topnavicon alert"){if(M.className=="active"){M.classList.remove("active");document.getElementById("icon-menu").classList.remove("active");var w=document.querySelectorAll(".signedout");w[0].style.display="block"}if(N){N.style.cssText="top:30px; display:block; opacity:1"}}else{if(N){N.style.cssText="top:-530px; opacity:0"}}});if(L){L.addEventListener(j,function(w){this.focus()})}}else{var R=document.getElementById("marvel_topnav_user_button");R.addEventListener(j,function(U){u({event_type:"topnav",event_value:"click_signin",link_name:"Sign In | Show Widget",click_location:"Sign In | header"});var T=U.target;var w=document.querySelectorAll("#marvel_topnav .dropdown.signin")[1];var V=document.getElementById("marvel_topnav_ul_wrapper");document.addEventListener(j,function(Y){var X=Y.target;if(X.className=="icon-account _topnavicon "||X.className=="icon-account _topnavicon alert"||X.className=="login_button"){if(V.className=="active"){V.classList.remove("active");document.getElementById("icon-menu").classList.remove("active");var W=document.querySelectorAll(".signedout");W[1].style.display="block"}if(w){w.style.cssText="top:30px; display:block; opacity:1"}}else{if(w){w.style.cssText="top:-530px; opacity:0"}}})});for(var O=S.length-1;O>=0;O--){S[O].removeAttribute("style")}var d=document.querySelectorAll(".signin");for(var O=d.length-1;O>=0;O--){d[O].removeAttribute("style")}}}function K(d){d=d.replace(/[\[]/,"\\[").replace(/[\]]/,"\\]");var L=new RegExp("[\\?&]"+d+"=([^&#]*)"),w=L.exec(location.search);return w===null?"":decodeURIComponent(w[1].replace(/\+/g," "))}function G(){return c}var g=D.getElementById("icon-menu"),C=D.getElementById("icon-search"),c=D.querySelectorAll(".icon-account")[0],H=D.getElementById("txtSearch"),J=D.getElementById("marvel_topnav_ul_wrapper"),b=D.getElementById("marvel_topnav_search"),r=D.getElementById("marvel_topnav_ul"),F=D.getElementById("marvel_subnav"),n=D.getElementById("marvel_subnav_li"),m=D.getElementById("marvel_subnav_ul"),y=D.getElementById("marvel_subnav_div"),a=function(){return p.innerHeight+44+"px"},l=false,e;function I(){k();x();A()}function x(){setTimeout(function(){var L=document.querySelectorAll(".marvelWidget_Container"),d=j!="mousedown"?"device_HASTOUCH":"device_NOT_HASTOUCH";for(var w=0;w<L.length;w++){L[w].classList.add(d)}},1000)}function k(){if(D.addEventListener){h().touchBinds()}h().initBinds()}function B(){setTimeout(window.scrollTo(0,0),100)}function h(){return{touchBinds:function(){if(g){function N(V){V.preventDefault();V.stopPropagation();setTimeout(function(){window.scroll(0,0)},1000);g.classList.toggle("active");if(n!==null){n.classList.remove("active");y.classList.remove("active");r.style.display="block"}if(z()){C.classList.remove("active");b.classList.remove("active")}if(J.className=="active"){J.className="";setTimeout(function(){e.destroy();e=undefined;E()},250)}else{var W=document.querySelectorAll(".dropdown.signin");for(var U=W.length-1;U>=0;U--){W[U].style.display="none"}J.style.height=a();J.className="active";if(typeof e==="undefined"){setTimeout(function(){e=new iScroll(J);e.on("scrollEndTap",function(){var X=e.e;if(X.target.offsetParent.className.indexOf("dropdown-container")===-1){if(e.e.target.href!==undefined){window.location.href=e.e.target.href;return}if(e.e.target.parentElement.href!==undefined){window.location.href=e.e.target.parentElement.href}}else{X.target.offsetParent.classList.toggle("active");e.refresh()}})},500)}if(z()){C.classList.remove("active");b.classList.remove("active")}if(n){m.classList.remove("active");n.classList.remove("active")}}}g.removeEventListener(j,N,false);g.addEventListener(j,N,false)}(function(){var U=setInterval(function(){clearInterval(U);s();window.onresize=function(aU){s()};var aK=(window.navigator.msPointerEnabled)?"MSPointerDown":"ontouchstart" in window?"touchstart":"mousedown";var ad=document.getElementById("mastercard_top");if(ad){var aC=ad.href;var aS=ad.text;ad.addEventListener(aK,function(aU){u({event_type:"creditcard",event_value:"click_button",link_name:aS+" | "+aC,link_url:aC,cc_click_location:aS+" | header"})})}var W=document.getElementById("shop_top");if(W){var ai=W.href;var aq=W.text;W.addEventListener(aK,function(aU){u({event_type:"topnav",event_value:"click_button",link_name:aq+" | "+ai,link_url:ai,click_location:aq+" | header"})})}var ac=document.getElementById("insider_top");if(ac){var ab=ac.href;var az=ac.text;ac.addEventListener(aK,function(aU){u({event_type:"topnav",event_value:"click_insider",link_name:az+" | "+ab,link_url:ab,click_location:az+" | header"})})}var Z=document.getElementById("mastercard_top_mobile");if(Z){var aA=Z.href;var aQ=Z.text;Z.addEventListener(aK,function(aU){u({event_type:"creditcard",event_value:"click_button",link_name:aQ+" | "+aA,link_url:aA,cc_click_location:aQ+" | header"})})}if(aJ){var aJ=document.getElementById("shop_top_mobile");var an=aJ.href;var X=aJ.text;aJ.addEventListener(aK,function(aU){u({event_type:"topnav",event_value:"click_button",link_name:X+" | "+an,link_url:an,click_location:X+" | header"})})}var Y=document.getElementById("insider_top_mobile");if(Y){var aG=Y.href;var ax=Y.text;Y.addEventListener(aK,function(aU){u({event_type:"topnav",event_value:"click_insider",link_name:ax+" | "+ab,link_url:aG,click_location:ax+" | header"})})}var V=document.getElementById("facebook_top");if(V){var ar=V.href;var am="facebook";V.addEventListener(aK,function(aU){u({event_type:"topnav",event_value:"click_button",link_name:am+" | "+ar,link_url:ar,click_location:am+" | header"})})}var ah=document.getElementById("facebook_top_mobile");if(ah){var af=ah.href;var ak="facebook";ah.addEventListener(aK,function(aU){u({event_type:"topnav",event_value:"click_button",link_name:ak+" | "+af,link_url:af,click_location:ak+" | header"})})}var aw=document.getElementById("twitter_top");if(aw){var ag=aw.href;var aP="twitter";aw.addEventListener(aK,function(aU){u({event_type:"topnav",event_value:"click_button",link_name:aP+" | "+ag,link_url:ag,click_location:aP+" | header"})})}var aF=document.getElementById("twitter_top_mobile");if(aF){var at=aF.href;var aM="twitter";aF.addEventListener(aK,function(aU){u({event_type:"topnav",event_value:"click_button",link_name:aM+" | "+at,link_url:at,click_location:aM+" | header"})})}var aa=document.getElementById("youtube_top");if(aa){var aO=aa.href;var ay="youtube";aa.addEventListener(aK,function(aU){u({event_type:"topnav",event_value:"click_button",link_name:ay+" | "+aO,link_url:aO,click_location:ay+" | header"})})}var aI=document.getElementById("youtube_top_mobile");if(aI){var aT=aI.href;var au="youtube";aI.addEventListener(aK,function(aU){u({event_type:"topnav",event_value:"click_button",link_name:au+" | "+aT,link_url:aT,click_location:au+" | header"})})}var ap=document.getElementsByClassName("btn-facebook");for(var aN=0;aN<ap.length;aN++){ap[aN].addEventListener(aK,function(aY){aY.stopPropagation();u({event_type:"registration",event_value:"login",login_type:"facebook"});var aX=new Date(),aW="",aU=1;aX.setDate(aX.getDate()+aU);aW=escape(p.location.href)+((aU===null)?"":"; expires="+aX.toUTCString());D.cookie="regRefererUrl="+aW+";domain=marvel.com;path=/";var a0=K("use_oauth_host");var aZ=K("client_id");var aV=K("state");D.cookie="use_oauth_host="+a0+";domain=marvel.com;path=/";D.cookie="client_id="+aZ+";domain=marvel.com;path=/";D.cookie="state="+aV+";domain=marvel.com;path=/";janrain.engage.signin.triggerFlow("facebook")})}var aR=document.getElementsByClassName("twitter");if(aR){for(var aN=0;aN<aR.length;aN++){aR[aN].addEventListener(aK,function(aU){aU.stopPropagation();u({event_type:"registration",event_value:"login",login_type:"twitter"});janrain.engage.signin.triggerFlow("twitter")})}}var ae=document.getElementsByClassName("sprite-icon small social google-plus");if(ae){for(var aN=0;aN<ae.length;aN++){ae[aN].addEventListener(aK,function(aU){aU.stopPropagation();u({event_type:"registration",event_value:"login",login_type:"google"});janrain.engage.signin.triggerFlow("googleplus")})}}var aL=document.getElementsByClassName("yahoo");if(aL){for(var aN=0;aN<aL.length;aN++){aL[aN].addEventListener(aK,function(aU){aU.stopPropagation();u({event_type:"registration",event_value:"login",login_type:"yahoo"});janrain.engage.signin.triggerFlow("yahoo")})}}var ae=document.querySelectorAll(".signedout .btn-google");for(var aN=0;aN<ae.length;aN++){ae[aN].addEventListener(aK,function(aY){aY.stopPropagation();u({event_type:"registration",event_value:"login",login_type:"google"});var aX=new Date(),aW="",aU=1;aX.setDate(aX.getDate()+aU);aW=escape(p.location.href)+((aU===null)?"":"; expires="+aX.toUTCString());D.cookie="regRefererUrl="+aW+";domain=marvel.com;path=/";var a0=K("use_oauth_host");var aZ=K("client_id");var aV=K("state");D.cookie="use_oauth_host="+a0+";domain=marvel.com;path=/";D.cookie="client_id="+aZ+";domain=marvel.com;path=/";D.cookie="state="+aV+";domain=marvel.com;path=/";janrain.engage.signin.triggerFlow("googleplus")})}var aB=document.querySelectorAll(".signedout .btn-trans");for(var aN=0;aN<aB.length;aN++){aB[aN].addEventListener(aK,function(aX){aX.stopPropagation();u({event_type:"registration",event_value:"click_widget_login",login_type:"email"});var aW=new Date(),aV="",aU=1;aW.setDate(aW.getDate()+aU);aV=escape(p.location.href)+((aU==null)?"":"; expires="+aW.toUTCString());D.cookie="regRefererUrl="+aV+";domain=marvel.com;path=/"})}var al=document.querySelectorAll(".signedin #resendConfirmation");for(var aN=0;aN<al.length;aN++){al[aN].addEventListener(aK,function(aU){aU.stopPropagation();u({event_value:"confirmation_click"})})}var aD=document.querySelectorAll(".signedin .unlimitedupgrade");for(var aN=0;aN<aD.length;aN++){aD[aN].addEventListener(aK,function(aU){aU.stopPropagation();u({event_value:"upgrade_click"})})}var ao=document.querySelectorAll(".signedin .lightdark ul li a");for(var aN=0;aN<ao.length;aN++){ao[aN].addEventListener(aK,function(aU){aU.stopPropagation()})}var av=document.querySelectorAll(".signedin .lightdark .btn");for(var aN=0;aN<av.length;aN++){av[aN].addEventListener(aK,function(aU){aU.stopPropagation();u({event_type:"registration",event_value:"logout"})})}var aj=document.querySelectorAll(".signedout .lightdark .btn");for(var aN=0;aN<aj.length;aN++){aj[aN].addEventListener(aK,function(aU){aU.stopPropagation()})}var aE=document.querySelectorAll(".signedout .btn.btn-red");for(var aN=0;aN<aE.length;aN++){aE[aN].addEventListener(aK,function(aX){aX.stopPropagation();u({event_type:"registration",event_value:"click_widget_signup",login_type:"email"});var aW=new Date(),aV="",aU=1;aW.setDate(aW.getDate()+aU);aV=escape(p.location.href)+((aU==null)?"":"; expires="+aW.toUTCString());D.cookie="regRefererUrl="+aV+";domain=marvel.com;path=/"})}var aH=document.querySelectorAll("#resendConfirmation");for(var aN=0;aN<aH.length;aN++){aH[aN].addEventListener(aK,function(aU){aU.stopPropagation();u({event_value:"resend_confirmation_click"})})}var aH=document.querySelectorAll("#resendConfirmationMobile");for(var aN=0;aN<aH.length;aN++){aH[aN].addEventListener(aK,function(aU){aU.stopPropagation();u({event_value:"resend_confirmation_click"})})}},100)})();if(c&&(j!=="mousedown")){function L(U){c.parentNode.parentNode.classList.toggle("active")}c.removeEventListener(j,L,false);c.addEventListener(j,L,false)}if(c&&(j=="touchstart")){var M=document.querySelectorAll("#marvel_topnav .dropdown.signin")[0];var d=document.getElementById("marvel_topnav_ul_wrapper");var R=document.getElementById("marvel_topnav_mobile");document.getElementById("marvel_topnav_user_button").addEventListener("touchstart",function(){console.log("hi there");var U=M.style.cssText;if(U=="top: 66px; display: block; opacity: 1; z-index: 10;"){M.style.cssText="top:66px; display:block; opacity:0 ; z-index:10";R.style.display="none"}else{M.style.cssText="top:66px; display:block; opacity:1 ; z-index:10";R.style.display="block"}})}if(z()){function Q(U){U.preventDefault();U.stopPropagation();C.classList.toggle("active");b.classList.toggle("active");if(C.classList.contains("active")){H.focus()}else{H.blur();p.scrollTo(0,1)}g.classList.remove("active");J.classList.remove("active");if(n!==null){n.classList.remove("active");y.classList.remove("active")}if(!l){D.getElementById("marvel_topnav_search").addEventListener(j,function(W){var V=D.createEvent("UIEvent");V.initUIEvent("touchstart",true,true);if(W.target.nodeName==="DIV"){W.preventDefault();W.stopPropagation();C.dispatchEvent(V)}});l=true}}C.removeEventListener(j,Q,false);C.addEventListener(j,Q,false)}if(F){var O={};function w(V){var U=V.touches?V.touches[0]:V;O={moved:false,startY:U.pageY,dist:0,uloffsetHeight:m.offsetHeight,ulscrollerHeight:m.scrollerHeight,getComputedPosition:T()};V.preventDefault();V.stopPropagation()}function S(W){var U=W.touches?W.touches[0]:W,X=T(),V;O.dist=U.pageY-O.startY;if(Math.abs(O.dist)>10){O.moved=true}if(X.height+88<window.innerHeight){return}if(O.dist<0&&X.height+X.y<210){return}if(X.y>9){m.style.top="0px";return}if(O.moved){V=O.getComputedPosition.y+O.dist;if(V>0){return}m.style.top=V+"px"}W.preventDefault();W.stopPropagation()}function P(U){if(O.moved){return false}if(!O.move&&U.target.href!==undefined&&U.target.href.length>0){window.location.href=U.target.href;return}if(!O.move&&U.target.href===""&&U.target.offsetParent.classList.contains("dropdown-container")){U.target.offsetParent.classList.toggle("active");return}n.classList.toggle("active");y.classList.toggle("active");C.classList.remove("active");b.classList.remove("active");g.classList.remove("active");J.classList.remove("active");U.preventDefault();U.stopPropagation()}function T(){var V=window.getComputedStyle(m,null),U,W;W=+V.top.replace(/[^-\d]/g,"");height=parseInt(V.height,10);return{y:W,height:height}}F.addEventListener(j,w,false);F.addEventListener(v,S,false);F.addEventListener(o,P,false)}},initBinds:function(){var d;p.addEventListener("resize",function(){clearTimeout(d);d=setTimeout(function(){if(J){J.style.height=g.className.search("active")>=0?a():0}},500);E()});function w(L){D.getElementById("marvel_topnav_search").classList.toggle("open");D.getElementById("marvel_topnav_search_button").classList.toggle("active");setTimeout(function(){D.getElementById("txtSearch").focus()},500);L.preventDefault();L.stopPropagation();return}if(D.getElementById("marvel_topnav_search_button")){D.getElementById("marvel_topnav_search_button").addEventListener(j,w)}if(D.getElementById("marvel_topnav_search_close")){D.getElementById("marvel_topnav_search_close").addEventListener(j,w)}}}}function E(){if(r){r.parentNode.setAttribute("style","")}}function A(M){var L,d;function w(N){if(window.innerWidth>900&&(j==="touchstart"||j==="MSPointerDown")){if(G()){c.parentNode.parentNode.classList.remove("active")}if(N.target.nodeName.toLowerCase()==="span"&&N.target.offsetParent.classList.contains("btn")){window.location.href=N.target.offsetParent.href;N.preventDefault();N.stopPropagation();return}L=N.target.offsetParent;if(d&&d!==L){d.classList.remove("active")}if(L.className.indexOf("dropdown-container")===-1){if(N.target.href!==undefined){window.location.href=N.target.href;N.preventDefault();N.stopPropagation();return}if(N.target.parentElement.className.indexOf("icon-user")){L.classList.toggle("active");d=L;N.preventDefault();N.stopPropagation();return}}else{L.classList.toggle("active");d=L;N.preventDefault();E()}}}if(J){J.addEventListener(j,w,false)}}I()})(window,document);var _ga=_ga||{};_ga.getSocialActionTrackers_=function(d,a,b,c){return ga("send",{hitType:"social",socialAction:a,socialTarget:b,page:c})};_ga.trackFacebook=function(a){try{if(FB&&FB.Event&&FB.Event.subscribe){FB.Event.subscribe("edge.create",function(c){_ga.getSocialActionTrackers_("facebook","like",c,a)});FB.Event.subscribe("edge.remove",function(c){_ga.getSocialActionTrackers_("facebook","unlike",c,a)});FB.Event.subscribe("message.send",function(c){_ga.getSocialActionTrackers_("facebook","send",c,a)})}}catch(b){}};_ga.trackTwitterHandler_=function(a,d){var c;if(a&&a.type=="tweet"||a.type=="click"){if(a.target.nodeName=="IFRAME"){c=_ga.extractParamFromUri_(a.target.src,"url")}var b=a.type+((a.type=="click")?"-"+a.region:"");ga(_ga.getSocialActionTrackers_("twitter",b,c,d))}};_ga.trackTwitter=function(a){intent_handler=function(b){_ga.trackTwitterHandler_(b,a)};twttr.events.bind("click",intent_handler);twttr.events.bind("tweet",intent_handler)};_ga.extractParamFromUri_=function(b,c){if(!b){return}var a=new RegExp("[\\?&#]"+c+"=([^&#]*)");var d=a.exec(b);if(d!=null){return unescape(d[1])}return};(function(){var a=["iamgroot"];var j="http://i.annihil.us/u/prod/marvel/i/am/groot/";var f=[];var k="71,82,79,79,84";var g=this.document;function l(){e();h()}function e(){var o=g.createElement("div");var m=g.body;var d=!!g.createElement("audio").canPlayType("audio/ogg");var n=d?".ogg":"mp3";var r;o.id="jukebox";for(var p=a.length-1;p>=0;p--){var q=j+a[p]+n;r=g.createElement("audio");r.src=q;r.id="jukebox-"+a[p];r.preload="auto";o.appendChild(r)}m.appendChild(o)}function h(){$(window).on("keydown",b)}function c(m){console.log("I am Groot");var d=g.getElementById("jukebox-"+m)||g.getElementById("jukebox-havenofear");d.load();d.play()}function b(d){f.push(d.keyCode);var m=f.toString();if(m.indexOf(k)>=0){f=[];c(a[Math.floor(Math.random()*a.length)])}else{if(k.indexOf(m)!==0){f=[]}}}l()})();Juggernaut.OO.Uatu=Juggernaut.OO.utils.extendClass(Juggernaut.OO.Models.Model,{getProps:{tealiumVars:null},pubMethods:{init:function(a){this._tealiumVars=a.tealiumVars;this.bindAll(this);this._stash();this._listen()},_stash:function(){this.$topNav=document.getElementById("marvel_topnav_wrapper");this.$search=document.getElementById("marvel_topnav_search");this.$notice=document.getElementById("marvel_topnav_storyalert");this.$searchIcon=document.getElementById("marvel_topnav_search_button");this.$searchClose=document.getElementById("marvel_topnav_search_close");this.$searchForm=this.$topNav.querySelectorAll("form")[0];this.$tag=document.getElementById("marvel_tag");this.$Chartag=document.getElementById("character_tag");if(this.$searchForm){this.$searchCategory=this.$searchForm.querySelectorAll('input[name="category"]')[0];this.$searchQuery=this.$searchForm.querySelectorAll('input[name="q"]')[0]}},_listen:function(){var c=(window.navigator.msPointerEnabled)?"MSPointerDown":"ontouchstart" in window?"touchstart":"mousedown";if(this.$searchForm){this.$searchCategory.addEventListener("change",this._onSearchCategoryChange);this.$searchForm.addEventListener("submit",this._onSearchFormSumbit);this.$searchIcon.addEventListener(c,this._onSearchIconClick);this.$searchClose.addEventListener(c,this._onSearchCloseClick)}if(this.$tag){this.$tag.addEventListener(c,this._onTagClick)}if(this.$Chartag){this.$Chartag.addEventListener(c,this._onCharTagClick)}if(this.$notice){var b=this.$notice.getElementsByTagName("a");for(var a=b.length-1;a>=0;a--){b[a].addEventListener(c,this._onStoryAlertClick)}}},report:function(a){a=_.extend(_.clone(this.tealiumVars),a);if(utag){utag.link(a)}},_onSearchCategoryChange:function(a){this.report({event_type:"search",event_value:"category_select",search_category:this.$searchCategory.value})},_onSearchFormSumbit:function(a){this.report({event_type:"search",event_value:"form_submit",search_category:this.$searchCategory.value,search_query:this.$searchQuery.value})},_onSearchIconClick:function(b){var a;if(this.$search.classList){a=this.$search.classList.contains("open")}else{a=new RegExp("(^| )open( |$)","gi").test(this.$search.className)}this.report({event_type:"search",event_value:"search_icon_click",action:(a)?"open":"close"})},_onSearchCloseClick:function(a){this.report({event_type:"search",event_value:"search_close_click"})},_onTagClick:function(b){var a=b.target.innerHTML.toLowerCase();this.report({event_type:"blogpost",event_value:"tag_click",tag_value:a+" (tag)"})},_onCharTagClick:function(b){var a=b.target.innerHTML.toLowerCase();this.report({event_type:"blogpost",event_value:"tag_click",tag_value:a+" (char)"})},_onStoryAlertClick:function(b){b.preventDefault();var a=b.target.innerHTML.toLowerCase();var c=b.target.href;this.report({event_type:"alert",event_value:"click_top_nav",link_name:a+" | "+c,link_url:c})}}});if(typeof define==="function"&&define.amd){define("Model.Uatu",[],function(){return Juggernaut.OO.Uatu})};


A B C D E F G H I J K L M N O P Q R S T U V W X Y Z