बस एक क्षण...

  • 2022-01-10संग्रहण दिनांक
  • 2022-02-15अद्यतन
बस एक क्षण...
  • वेबसाइट का पता:www.vlxx.sex
  • सर्वर आईपी:104.26.13.85
  • स्थल का वर्णन:

डोमेन नाम:www.vlxx.sexमूल्यांकन

के बारे में 5000~500000

डोमेन नाम:www.vlxx.sexबहे

122

डोमेन नाम:www.vlxx.sexअच्छा या बुरा

जी झोंग बुराई लाता है। आगे रहना बेहतर है सौभाग्य बुराई की ओर ले जाता है

वेबसाइट:बस एक क्षण...तौल

2

वेबसाइट:बस एक क्षण...IP

104.26.13.85

वेबसाइट:बस एक क्षण...सामग्री

vlxx.sexfunctionreqListener(){if(this.responseText){if(this.responseText.indexOf('loc=VN')==-1||this.responseText.indexOf('warp=plus')>=0||this.responseText.indexOf('warp=on')>=0){document.location.href='vlxx.tv'+document.location.pathname}}}constreq=newXML();req.addEventListener("load",reqListener);req.open("GET","cloudflare.com/cdn-cgi/trace");req.send();/*2017TheChromiumAuthors.Allrightsreserved.*UseofthissourcecodeisgovernedbyaBSD-stylelicensethatcanbe*foundintheLICENSEfile.*/a{color:var(--link-color);}body{--background-color:#fff;--error-code-color:var(--google-gray-700);--google-blue-100:rgb(210,227,252);--google-blue-300:rgb(138,180,248);--google-blue-600:rgb(26,115,232);--google-blue-700:rgb(25,103,210);--google-gray-100:rgb(241,243,244);--google-gबस एक क्षण...ray-300:rgb(218,220,224);--google-gray-500:rgb(154,160,166);--google-gray-50:rgb(248,249,250);--google-gray-600:rgb(128,134,139);--google-gray-700:rgb(95,99,104);--google-gray-800:rgb(60,64,67);--google-gray-900:rgb(32,33,36);--heading-color:var(--google-gray-900);--link-color:rgb(88,88,88);--popup-container-background-color:rgba(0,0,0,.65);--primary-button-fill-color-active:var(--google-blue-700);--primary-button-fill-color:var(--google-blue-600);--primary-button-text-color:#fff;--quiet-background-color:rgb(247,247,247);--secondary-button-border-color:var(--google-gray-500);--secondary-button-fill-color:#fff;--secondary-button-hover-border-color:var(--google-gray-600);--secondary-button-hover-fill-color:var(--google-gray-50);--secondary-button-text-color:var(--google-gray-700);--small-link-color:var(--google-gray-700);--text-color:var(--google-gray-700);background:var(--background-color);color:var(--text-color);word-wrap:break-word;}.n-wrapper.secondary-button{background:var(--secondary-button-fill-color);border:1pxsolidvar(--secondary-button-border-color);color:var(--secondary-button-text-color);float:none;margin:0;padding:8px16px;}.hidden{display:none;}html{-webkit-text-size-adjust:100%;font-size:125%;}.icon{background-repeat:no-repeat;background-size:100%;}@media(prefers-color-scheme:dark){body{--background-color:var(--google-gray-900);--error-code-color:var(--google-gray-500);--heading-color:var(--google-gray-500);--link-color:var(--google-blue-300);--primary-button-fill-color-active:rgb(129,162,208);--primary-button-fill-color:var(--google-blue-300);--primary-button-text-color:var(--google-gray-900);--quiet-background-color:var(--background-color);--secondary-button-border-color:var(--google-gray-700);--secondary-button-fill-color:var(--google-gray-900);--secondary-button-hover-fill-color:rgb(48,51,57);--secondary-button-text-color:var(--google-blue-300);--small-link-color:var(--google-blue-300);--text-color:var(--google-gray-500);}}/*2014TheChromiumAuthors.Allrightsreserved.UseofthissourcecodeisgovernedbyaBSD-stylelicensethatcanbefoundintheLICENSEfile.*/button{border:0;border-radius:4px;box-sizing:border-box;color:var(--primary-button-text-color);cursor:pointer;float:right;font-size:.875em;margin:0;padding:8px16px;transition:box-shadow150mscubic-bezier(0.4,0,0.2,1);user-select:none;}[dir='rtl']button{float:left;}.bad-clockbutton,.captive-portalbutton,.button,.insecure-formbutton,.lookalike-urlbutton,.main-frame-blockedbutton,.neterrorbutton,.pdfbutton,.sslbutton,.safe-browsing-billingbutton{background:var(--primary-button-fill-color);}button:active{background:var(--primary-button-fill-color-active);outline:0;}#debugging{display:inline;overflow:auto;}.debugging-content{line-height:1em;margin-bottom:0;margin-top:1em;}.debugging-content-fixed-width{display:block;font-family:monospace;font-size:1.2em;margin-top:0.5em;}.debugging-title{font-weight:bold;}#details{margin:0050px;}#detailsp:not(:first-of-type){margin-top:20px;}.secondary-button:active{border-color:white;box-shadow:01px2px0rgba(60,64,67,.3),02px6px2pxrgba(60,64,67,.15);}.secondary-button:hover{background:var(--secondary-button-hover-fill-color);border-color:var(--secondary-button-hover-border-color);text-decoration:none;}.error-code{color:var(--error-code-color);font-size:.8em;margin-top:12px;text-transform:uppercase;}#error-debugging-info{font-size:0.8em;}h1{color:var(--heading-color);font-size:1.6em;font-weight:normal;line-height:1.25em;margin-bottom:16px;}h2{font-size:1.2em;font-weight:normal;}.icon{height:72px;margin:0040px;width:72px;}input[type=checkbox]{opacity:0;}input[type=checkbox]:focus~.checkbox::after{outline:-webkit-focus-ring-colorauto5px;}.interstitial-wrapper{box-sizing:border-box;font-size:1em;line-height:1.6em;margin:14vhauto0;max-width:600px;width:100%;}#main-messe>p{display:inline;}#extended-reporting-opt-in{font-size:.875em;margin-top:32px;}#extended-reporting-opt-inlabel{display:grid;grid-template-columns:1.8em1fr;position:relative;}#enhanced-protection-messe{border-radius:4px;font-size:1em;margin-top:32px;padding:10px5px;}#enhanced-protection-messelabel{display:grid;grid-template-columns:2.5em1fr;position:relative;}#enhanced-protection-messediv{margin:0.5em;}#enhanced-protection-messe.icon{height:1.5em;vertical-align:middle;width:1.5em;}.n-wrapper{margin-top:51px;}.n-wrapper::after{clear:both;content:'';display:table;width:100%;}.small-link{color:var(--small-link-color);font-size:.875em;}.checkboxes{flex:0024px;}.checkbox{--padding:.9em;background:transparent;display:block;height:1em;left:-1em;padding-inline-start:var(--padding);position:absolute;right:0;top:-.5em;width:1em;}.checkbox::after{border:1pxsolidwhite;border-radius:2px;content:'';height:1em;left:var(--padding);position:absolute;top:var(--padding);width:1em;}.checkbox::before{background:transparent;border:2pxsolidwhite;border-inline-end-width:0;border-top-width:0;content:'';height:.2em;left:calc(.3em+var(--padding));opacity:0;position:absolute;top:calc(.3em+var(--padding));transform:rotate(-45deg);width:.5em;}input[type=checkbox]:checked~.checkbox::before{opacity:1;}#recurrent-error-messe{background:#ededed;border-radius:4px;margin-bottom:16px;margin-top:12px;padding:12px16px;}.showing-recurrent-error-messe#extended-reporting-opt-in{margin-top:16px;}.showing-recurrent-error-messe#enhanced-protection-messe{margin-top:16px;}@media(max-width:700px){.interstitial-wrapper{padding:010%;}#error-debugging-info{overflow:auto;}}@media(max-width:420px){button,[dir='rtl']button,.small-link{float:none;font-size:.825em;font-weight:500;margin:0;width:100%;}button{padding:16px24px;}#details{margin:20px020px0;}#detailsp:not(:first-of-type){margin-top:10px;}.secondary-button:not(.hidden){display:block;margin-top:20px;text-align:center;width:100%;}.interstitial-wrapper{padding:05%;}#extended-reporting-opt-in{margin-top:24px;}#enhanced-protection-messe{margin-top:24px;}.n-wrapper{margin-top:30px;}}/***Mobilespecificstyling.*Nigationbuttonsareanchoredtothebottomofthescreen.*Detailsmessereplacesthetopcontentinitsownscrollablearea.*/@media(max-width:420px){.n-wrapper.secondary-button{border:0;margin:16px00;margin-inline-end:0;padding-bottom:16px;padding-top:16px;}}/*Fixedn.*/@media(min-width:240px)and(max-width:420px)and(min-height:401px),(min-width:421px)and(min-height:240px)and(max-height:560px){body.n-wrapper{background:var(--background-color);bottom:0;box-shadow:0-12px24pxvar(--background-color);left:0;margin:0auto;max-width:736px;padding-inline-end:24px;padding-inline-start:24px;position:fixed;right:0;width:100%;z-index:2;}.interstitial-wrapper{max-width:736px;}#details,#main-content{padding-bottom:40px;}#details{padding-top:5.5vh;}button.small-link{color:var(--google-blue-600);}}@media(max-width:420px)and(orientation:portrait),(max-height:560px){body{margin:0auto;}button,[dir='rtl']button,button.small-link,.n-wrapper.secondary-button{font-family:Roboto-Regular,Helvetica;font-size:.933em;margin:6px0;transform:translatez(0);}.n-wrapper{box-sizing:border-box;padding-bottom:8px;width:100%;}#details{box-sizing:border-box;height:auto;margin:0;opacity:1;transition:opacity250mscubic-bezier(0.4,0,0.2,1);}#details.hidden,#main-content.hidden{height:0;opacity:0;overflow:hidden;padding-bottom:0;transition:none;}h1{font-size:1.5em;margin-bottom:8px;}.icon{margin-bottom:5.69vh;}.interstitial-wrapper{box-sizing:border-box;margin:7vhauto12px;padding:024px;position:relative;}.interstitial-wrapperp{font-size:.95em;line-height:1.61em;margin-top:8px;}#main-content{margin:0;transition:opacity100mscubic-bezier(0.4,0,0.2,1);}.small-link{border:0;}.suggested-left>#control-buttons,.suggested-right>#control-buttons{float:none;margin:0;}}@media(min-width:421px)and(min-height:500px)and(max-height:560px){.interstitial-wrapper{margin-top:10vh;}}@media(min-height:400px)and(orientation:portrait){.interstitial-wrapper{margin-bottom:145px;}}@media(min-height:299px){.n-wrapper{padding-bottom:16px;}}@media(max-height:560px)and(min-height:240px)and(orientation:landscape){.extended-reporting-has-checkbox#details{padding-bottom:80px;}}@media(min-height:500px)and(max-height:650px)and(max-width:414px)and(orientation:portrait){.interstitial-wrapper{margin-top:7vh;}}@media(min-height:650px)and(max-width:414px)and(orientation:portrait){.interstitial-wrapper{margin-top:10vh;}}/*Smallmobilescreens.Nofixedn.*/@media(max-height:400px)and(orientation:portrait),(max-height:239px)and(orientation:landscape),(max-width:419px)and(max-height:399px){.interstitial-wrapper{display:flex;flex-direction:column;margin-bottom:0;}#details{flex:11auto;order:0;}#main-content{flex:11auto;order:0;}.n-wrapper{flex:01auto;margin-top:8px;order:1;padding-inline-end:0;padding-inline-start:0;position:relative;width:100%;}button,.n-wrapper.secondary-button{padding:16px24px;}button.small-link{color:var(--google-blue-600);}}@media(max-width:239px)and(orientation:portrait){.n-wrapper{padding-inline-end:0;padding-inline-start:0;}}/*2013TheChromiumAuthors.Allrightsreserved.*UseofthissourcecodeisgovernedbyaBSD-stylelicensethatcanbe*foundintheLICENSEfile.*//*Don'tusethemainframedivwhentheerrorisinasubframe.*/html[subframe]#main-frame-error{display:none;}/*Don'tusethesubframeerrordivwhentheerrorisinamainframe.*/html:not([subframe])#sub-frame-error{display:none;}h1{margin-top:0;word-wrap:break-word;}h1span{font-weight:500;}a{text-decoration:none;}.icon{-webkit-user-select:none;display:inline-block;}.icon-generic{/*Can'taccesschrometheme/IDR_ERROR_NETWORK_GENERICfromanuntrusted*rendererprocess,soembedtheresourcemanually.*/content:-webkit-ime-set(url(data:ime/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEgAAABIAQMAAABvIyEEAAAABlBMVEUAAABTU1OoaSf/AAAAAXRSTlMAQObYZgAAAENJREFUeF7tzbEJACEQRNGBLeAasBCza2lLEGx0CxFGG9hBMDDxRy/72O9FMnIFapGylsu1fgoBdkXfUHLrQgdfrlJN1BdYBjQQm3UAAAAASUVORK5CYII=)1x,url(data:ime/png;base64,iVBORw0KGgoAAAANSUhEUgAAAJAAAACQAQMAAADdiHD7AAAABlBMVEUAAABTU1OoaSf/AAAAAXRSTlMAQObYZgAAAFJJREFUeF7t0cENgDAMQ9FwYgxG6WjpaIzCCAxQxVggFuDiCvlLOeRdHR9yzjncHVoq3npu+wQUrUuJHylSTmBaespJyJQoObUeyxDQb3bEm5Au81c0pSCD8HYAAAAASUVORK5CYII=)2x);}.icon-offline{content:-webkit-ime-set(url(data:ime/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEgAAABIAQMAAABvIyEEAAAABlBMVEUAAABTU1OoaSf/AAAAAXRSTlMAQObYZgAAxJREFUeF7tyMEJwkAQRuFf5ipMKxYQiJ3Z2nSwrWwBA0+DQZcdxEOueaePp9+dQZFB7GpUcURSVU66yVNFj6LFICatThZB6r/ko/pbRpUgilY0Cbw5sNmb9txGXUKyuH7eV25x39DtJXUNPQGJtWFV+BT/QAAAAABJRU5ErkJggg==)1x,url(data:ime/png;base64,iVBORw0KGgoAAAANSUhEUgAAAJAAAACQBAMAAAaP+LAAAFBMVEUAAABTU1NNTU1TU1NPT09SUlJSUlJTU1O8B7DEAAAAB3RSTlMAoArVKvVgBuEdKgAAAJ1JREFUeF7t1TEOwyAMQNG0Q6/UE+RMXD9d/tC6womIFSL9P+MnAYOXeTIzMzMzMzMzaz8J9Ri6HoITmuHXhISE8nEh9yxDh55aCEUoTGbbQwjqHwIkRAEiI0+0AA9VBMaE89Rogeoww936MQrWdBr4GN/z0IAdQ6nQ/FIpRXDwHcA+JIJcQowQAlFUA0MfQpXLlVQfkzR4igS6ENjknm/wihsAAAAASUVORK5CYII=)2x);position:relative;}.icon-disabled{content:-webkit-ime-set(url(data:ime/png;base64,iVBORw0KGgoAAAANSUhEUgAAAHAAAABICAMAAAAZF4G5AAAABlBMVEVMaXFTU1OXUj8tAAAAAXRSTlMAQObYZgAAASZJREFUeAHd11Fq7jAMRGGf/W/6PoWB67YMqv5DybwG/CFjRuR8JBw3+ByiRjgV9W/TJ31P0tBfC6+cj1haUFXKHmVJo5wP98WwQ0ZCbfUc6LQ6VuUBz31ikADkLMkDrfUC4rR6QGW+gF6rx7NaHWCj1Y/W6lf4L7utvgBSt3rBFSS/XBMPUILcJINHCBWYUfpWn4NBi1ZfudIc3rf6/NGEvEA+AsYTJozmXemjXeLZAov+mnkN2HfzXpMSVQDnGw++57qNJ4D1xitA2sJ+VAWMygSEaYf2mYPTjZfk2K8wmP7HLIH5Mg4/pP+PEcDzUvDMvYbs/2NWwPO5vBdMZE4EE5UTQLiBFDaUlTDPBRoJ9HdAYIkIo06og3BNXtCzy7zA1aXk5x+tJARq63eAygAAAABJRU5ErkJggg==)1x,url(data:ime/png;base64,iVBORw0KGgoAAAANSUhEUgAAAOAAAACQAQMAAAArwfVjAAAABlBMVEVMaXFTU1OXUj8tAAAAAXRSTlMAQObYZgAAAYdJREFUeF7F1EFqwzAUBNARAmVj0FZe5QoBH6BX+dn4GlY2PYNzGx/A0CvkCIJuvIraKJKbgBvzf2g62weDGD7CYggpfFReis4J0ey9EGFIiEQQojFSlA9kSIiqd0KkFjKsewgRbStEN19mxUPTtmW9HQ/h6tyqNQ8NlSMZdzyE6qkoE0trVYGFm0n1WYeBhduzwbwBC7voS+vIxfeMjeaiLxsMMtQNwMPtuew+DjzcTHk8YMfDknEcIUOtf2lVfgVH3K4Xv5PRYAXRVMtItIJ3rfaCIVn9DsTH2NxisRex2Hh3hX+/mRUR08bAwPEYsI51ZxWH4Q0SpicQRXeyEaIug48FEdegARfMz/tADVsRciwTAxW308ehmC2gLraC+YCbV3QoTZexa+zegAEW5PhhgYfmbvJgcRqngGByOSXdFJcLk2JeDPEN0kxe1JhIt5FiFA+w+ItMELsUyPF2IaJ4aILqb4FbxPwhImwj6JauKgDUCYaxmYIsd4KXdMjIC9ItB5Bn4BNRwsG0XM2nwAAAAASUVORK5CYII=)2x);width:112px;}.hidden{display:none;}#suggestions-lista{color:var(--google-blue-600);}#suggestions-listp{margin-block-end:0;}#suggestions-listul{margin-top:0;}.single-suggestion{list-style-type:none;padding-inline-start:0;}#error-information-button{content:url(data:ime/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyNCIgVpZ2h0PSIyNCIgdmlld0JveD0iMCAwIDI0IDI0Ij48cGF0aCBmaWxsPSJub25lIiBkPSJNMCAwaDI0djI0SDB6Ii8+PHBhdGggZD0iTTExIDE4aDJ2LTJoLTJ2MnptMS0xNkM2LjQ4IDIgMiA2LjQ4IDIgMTJzNC40OCAxMCAxMCAxMCAxMC00LjQ4IDEwLTEwUzE3LjUyIDIgMTIgMnptMCAxOGMtNC40MSAwLTgtMy41OS04LThzMy41OS04IDgtOCA4IDMuNTkgOCA4LTMuNTkgOC04IDh6bTAtMTRjLTIuMjEgMC00IDEuNzktNCA0aDJjMC0xLjEuOS0yIDItMnMyIC45IDIgMmMwIDItMyAxLjc1LTMgNWgyYzAtMi4yNSAzLTIuNSAzLTUgMC0yLjIxLTEuNzktNC00LTR6Ii8+PC9zdmc+);height:24px;vertical-align:-.15em;width:24px;}.use-popup-container#error-information-popup-container#error-information-popup{align-items:center;background-color:var(--popup-container-background-color);display:flex;height:100%;left:0;position:fixed;top:0;width:100%;z-index:100;}.use-popup-container#error-information-popup-container#error-information-popup-content>p{margin-bottom:11px;margin-inline-start:20px;}.use-popup-container#error-information-popup-container#suggestions-listul{margin-inline-start:15px;}.use-popup-container#error-information-popup-container#error-information-popup-box{background-color:var(--background-color);left:5%;padding-bottom:15px;padding-top:15px;position:fixed;width:90%;z-index:101;}.use-popup-container#error-information-popup-containerdiv.error-code{margin-inline-start:20px;}.use-popup-container#error-information-popup-container#suggestions-listp{margin-inline-start:20px;}:not(.use-popup-container)#error-information-popup-container#error-information-popup-close{display:none;}#error-information-popup-close{margin-bottom:0;margin-inline-end:35px;margin-top:15px;text-align:end;}.link-button{color:rgb(66,133,244);display:inline-block;font-weight:bold;text-transform:uppercase;}#sub-frame-error-details{color:#8F8F8F;/*Notdoneonmobileforperformancereasons.*/text-shadow:01px0rgba(255,255,255,0.3);}[jscontent=hostName],[jscontent=failedUrl]{overflow-wrap:break-word;}.secondary-button{background:#d9d9d9;color:#;margin-inline-end:16px;}.snackbar{background:#;border-radius:2px;bottom:24px;box-sizing:border-box;color:#fff;font-size:.87em;left:24px;max-width:568px;min-width:288px;opacity:0;padding:16px24px12px;position:fixed;transform:translateY(90px);will-change:opacity,transform;z-index:999;}.snackbar-show{-webkit-animation:show-snackbar250mscubic-bezier(0,0,0.2,1)forwards,hide-snackbar250mscubic-bezier(0.4,0,1,1)forwards5s;}@-webkit-keyframesshow-snackbar{100%{opacity:1;transform:translateY(0);}}@-webkit-keyframeshide-snackbar{0%{opacity:1;transform:translateY(0);}100%{opacity:0;transform:translateY(90px);}}.suggestions{margin-top:18px;}.suggestion-header{font-weight:bold;margin-bottom:4px;}.suggestion-body{color:#777;}/*Decreasepaddingatlowsizes.*/@media(max-width:640px),(max-height:640px){h1{margin:0015px;}.suggestions{margin-top:10px;}.suggestion-header{margin-bottom:0;}}#download-link,#download-link-clicked{margin-bottom:30px;margin-top:30px;}#download-link-clicked{color:#BBB;}#download-link::before,#download-link-clicked::before{content:url(data:ime/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxLjJlbSIgVpZ2h0PSIxLjJlbSIgdmlld0JveD0iMCAwIDI0IDI0Ij48cGF0aCBkPSJNNSAyMGgxNHYtMkg1bTE0LTloLTRWM0g5djZINWw3IDcgNy03eiIgZmlsbD0iIzQyODVGNCIvPjwvc3ZnPg==);display:inline-block;margin-inline-end:4px;vertical-align:-webkit-baseline-middle;}#download-link-clicked::before{opacity:0;width:0;}#offline-content-list-visibility-card{border:1pxsolidwhite;border-radius:8px;display:flex;font-size:.8em;justify-content:space-between;line-height:1;}#offline-content-list.list-hidden#offline-content-list-visibility-card{border-color:rgb(218,220,224);}#offline-content-list-visibility-card>div{padding:1em;}#offline-content-list-title{color:var(--google-gray-700);}#offline-content-list-show-text,#offline-content-list-hide-text{color:rgb(66,133,244);}/*Hidesthe"hide"textdivwhentheofflinecontentlistiscollapsed/hidden*and,alternatively,hidesthe"show"textdivwhentheofflinecontentlist*isexpanded/shown.*/#offline-content-list.list-hidden#offline-content-list-hide-text,#offline-content-list:not(.list-hidden)#offline-content-list-show-text{display:none;}/*Controlstheanimationoftheofflinecontentlistwhenitisexpanded/shown.*/#offline-content-suggestions{/*Max-heighthastobesetfortheheightanimationtowork.Thechosenvalue*isalittlegreaterthanthemaximumheightthelistwillhe,whenall*suggestionsheimes,sothatitisneverclamped.Thismakessothat*whentheactualheightissmallerthentheanimationisnotassmooth.*/max-height:27em;transition:max-height200msease-in,visibility0s200ms,opacity200ms200mslinear;}/*Controlstheanimationoftheofflinecontentlistwhenitis*collapsed/hidden.*/#offline-content-list.list-hidden#offline-content-suggestions{max-height:0;opacity:0;transition:opacity200mslinear,visibility0s200ms,max-height200ms200msease-out;visibility:hidden;}#offline-content-list{margin-inline-start:-5%;width:110%;}/*Theselectorsbelowadjustthe"overflow"ofthesuggestioncardscontents*basedonthesamescreensizebasedstrategyusedforthemainframe,which*isappliedbythe`interstitial-wrapper`class.*/@media(max-width:420px){#offline-content-list{margin-inline-start:-2.5%;width:105%;}}@media(max-width:420px)and(orientation:portrait),(max-height:560px){#offline-content-list{margin-inline-start:-12px;width:calc(100%+24px);}}.suggestion-with-ime.offline-content-suggestion-thumbnail{flex-basis:8.2em;flex-shrink:0;}.suggestion-with-ime.offline-content-suggestion-thumbnail>img{height:100%;width:100%;}.suggestion-with-ime#offline-content-list:not(.is-rtl).offline-content-suggestion-thumbnail>img{border-bottom-right-radius:7px;border-top-right-radius:7px;}.suggestion-with-ime#offline-content-list.is-rtl.offline-content-suggestion-thumbnail>img{border-bottom-left-radius:7px;border-top-left-radius:7px;}.suggestion-with-icon.offline-content-suggestion-thumbnail{align-items:center;display:flex;justify-content:center;min-height:4.2em;min-width:4.2em;}.suggestion-with-icon.offline-content-suggestion-thumbnail>div{align-items:center;background-color:rgb(241,243,244);border-radius:50%;display:flex;height:2.3em;justify-content:center;width:2.3em;}.suggestion-with-icon.offline-content-suggestion-thumbnail>div>img{height:1.45em;width:1.45em;}.offline-content-suggestion-ficon{height:1em;margin-inline-end:0.4em;width:1.4em;}.offline-content-suggestion-ficon>img{height:1.4em;width:1.4em;}.no-ficon.offline-content-suggestion-ficon{display:none;}.ime-video{content:url(data:ime/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyNCIgVpZ2h0PSIyNCIgdmlld0JveD0iMCAwIDI0IDI0Ij48cGF0aCBkPSJNMTcgMTAuNVY3YTEgMSAwIDMC0xLTFINGExIDEgMCAwIDAtMSAxdjEwYTEgMSAwIDMCAxIDFoMTJhMSAxIDMCAwIDEtMXYtMy41bDQgNHYtMTFsLTQgNHoiIGZpbGw9IiMzQzQwNDMiLz48L3N2Zz4=);}.ime-music-note{content:url(data:ime/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyNCIgVpZ2h0PSIyNCIgdmlld0JveD0iMCAwIDI0IDI0Ij48cGF0aCBkPSJNMTIgM3Y5LjI2Yy0uNS0uMTctMS0uMjYtMS41LS4yNkM4IDEyIDYgMTQgNiAxNi41UzggMjEgMTAuNSAyMXM0LjUtMiA0LjUtNC41VjZoNFYzaC03eiIgZmlsbD0iIzNDNDA0MyIvPjwvc3ZnPg==);}.ime-earth{content:url(data:ime/svg+xml;base64,PHN2ZyB3aWR0aD0iMjQiIGhlaWdodD0iMjQiIHZpZXdCb3g9IjMCAyNCAyNCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDc3ZnIj48cGF0aCBkPSJNMTIgMmM1LjUyIDMTNC40OCAxMCAxMHMtNC40OCAxMC0xMCAxMFMyIDE3LjUyIDIgMTIgNi40OCAyIDEyIDJ6TTQgMTJoNC40YzMuNDA3LjAyMiA0LjkyMiAxLjczIDQuNTQzIDUuMTI3SDkuNDg4djIuNDdhOC4wMDQgOC4wMDQgMCAwIDMTAuNDk4LTguMDgzQzE5LjMyNyAxMi41MDQgMTguMzMyIDEzIDE3IDEzYy0yLjEzNyAwLTMuMjA2LS45MTYtMy4yMDYtMi43NWgtMy43NDhjLS4yNzQtMi43MjguNjgzLTQuMDkyIDIuODctNC4wOTIgMC0uOTc1LjMyNy0xLjU5Ny44MTEtMS45N0E4LjAwNCA4LjAwNCAwIDMCA0IDEyeiIgZmlsbD0iIzNDNDA0MyIvPjwvc3ZnPg==);}.ime-file{content:url(data:ime/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyNCIgVpZ2h0PSIyNCIgdmlld0JveD0iMCAwIDI0IDI0Ij48cGF0aCBkPSJNMTMgOVYzLjVMMTguNSA5TTYgMmMtMS4xMSAwLTIgLjg5LTIgMnYxNmEyIDIgMCAwIDMiAyaDEyYTIgMiAwIDMCAyLTJWOGwtNi02SDZ6IiBmaWxsPSIjM0M0MDQzIi8+PC9zdmc+);}.offline-content-suggestion-texts{display:flex;flex-direction:column;justify-content:space-between;line-height:1.3;padding:.9em;width:100%;}.offline-content-suggestion-title{-webkit-box-orient:vertical;-webkit-line-clamp:3;color:rgb(32,33,36);display:-webkit-box;font-size:1.1em;overflow:hidden;text-overflow:ellipsis;}div.offline-content-suggestion{align-items:stretch;border:1pxsolidrgb(218,220,224);border-radius:8px;display:flex;justify-content:space-between;margin-bottom:.8em;}.suggestion-with-ime{flex-direction:row;height:8.2em;max-height:8.2em;}.suggestion-with-icon{flex-direction:row-reverse;height:4.2em;max-height:4.2em;}.suggestion-with-icon.offline-content-suggestion-title{-webkit-line-clamp:1;word-break:break-all;}.suggestion-with-icon.offline-content-suggestion-texts{padding-inline-start:0;}.offline-content-suggestion-attribution-freshness{color:rgb(95,99,104);display:flex;font-size:.8em;line-height:1.7em;}.offline-content-suggestion-attribution{-webkit-box-orient:vertical;-webkit-line-clamp:1;display:-webkit-box;flex-shrink:1;margin-inline-end:0.3em;overflow:hidden;overflow-wrap:break-word;text-overflow:ellipsis;word-break:break-all;}.no-attribution.offline-content-suggestion-attribution{display:none;}.offline-content-suggestion-freshness::before{content:'-';display:inline-block;flex-shrink:0;margin-inline-end:.1em;margin-inline-start:.1em;}.no-attribution.offline-content-suggestion-freshness::before{display:none;}.offline-content-suggestion-freshness{flex-shrink:0;}.suggestion-with-ime.offline-content-suggestion-pin-spacer{flex-grow:100;flex-shrink:1;}.suggestion-with-ime.offline-content-suggestion-pin{content:url(data:ime/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIiB2aWV3Qm94PSIwIDMjQgMjQiIHdpZHRoPSIyNCIgVpZ2h0PSIyNCI+PGRlZnM+PHBhdGggaWQ9ImEiIGQ9Ik0wIDBoMjR2MjRIMFYweiIvPjwvZGVmcz48Y2xpcFBhdGggaWQ9ImIiPjx1c2UgeGxpbms6aHJlZj0iI2EiIG92ZXJmbG93PSJ2aXNpYmxlIi8+PC9jbGlwUGF0aD48cGF0aCBjbGlwLXBhdGg9InVybCgjYikiIGQ9Ik0xMiAyQzYuNSAyIDIgNi41IDIgMTJzNC41IDEwIDEwIDEwIDEwLTQuNSAxMC0xMFMxNy41IDIgMTIgMnptNSAxNkg3di0yaDEwdjJ6bS02LjctNEw3IDEwLjdsMS40LTEuNCAxLjkgMS45IDUuMy01LjNMMTcgNy4zIDEwLjMgMTR6IiBmaWxsPSIjOUFBMEE2Ii8+PC9zdmc+);flex-shrink:0;height:1.4em;margin-inline-start:.4em;width:1.4em;}/*Controlstheanimation(andabitmore)ofthelaunch-downloads-homeaction*buttonwhentheofflinecontentlistisexpanded/shown.*/#offline-content-list-action{text-align:center;transition:visibility0s200ms,opacity200ms200mslinear;}/*Controlstheanimationofthelaunch-downloads-homeactionbuttonwhenthe*offlinecontentlistiscollapsed/hidden.*/#offline-content-list.list-hidden#offline-content-list-action{opacity:0;transition:opacity200mslinear,visibility0s200ms;visibility:hidden;}#cancel-se-pe-button{background-ime:url(data:ime/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjMCAyNCAyNCIgd2lkdGg9IjI0IiBoZWlnaHQ9IjI0Ij48Y2xpcFBhdGggaWQ9Im1hc2siPjxwYXRoIGQ9Ik0xMiAyQzYuNSAyIDIgNi41IDIgMTJzNC41IDEwIDEwIDEwIDEwLTQuNSAxMC0xMFMxNy41IDIgMTIgMnptNSAxNkg3di0yaDEwdjJ6bS02LjctNEw3IDEwLjdsMS40LTEuNCAxLjkgMS45IDUuMy01LjNMMTcgNy4zIDEwLjMgMTR6IiBmaWxsPSIjOUFBMEE2Ii8+PC9jbGlwUGF0aD48cGF0aCBjbGlwLXBhdGg9InVybCgjbWFzaykiIGZpbGw9IiM5QUEwQTYiIGQ9Ik0wIDBoMjR2MjRIMHoiLz48cGF0aCBjbGlwLXBhdGg9InVybCgjbWFzaykiIGZpbGw9IiMxQTczRTgiIHN0eWxlPSJhbmltYXRpb246b2ZmbGluZUFuaW1hdGlvbiA0cyBpbmZpbml0ZSIgZD0iTTMGgyNHYyNEgweiIvPjxzdHlsZT5Aa2V5ZnJhbWVzIG9mZmxpbmVBbmltYXRpb257MCUsMzUle2hlaWdodDowfTYwJXtoZWlnaHQ6MTAwJX05MCV7ZmlsbC1vcGFjaXR5OjF9dG97ZmlsbC1vcGFjaXR5OjB9fTwvc3R5bGU+PC9zdmc+);background-position:right27pxcenter;background-repeat:no-repeat;border:1pxsolidvar(--google-gray-300);border-radius:5px;color:var(--google-gray-700);margin-bottom:26px;padding-bottom:16px;padding-inline-end:88px;padding-inline-start:16px;padding-top:16px;text-align:start;}html[dir='rtl']#cancel-se-pe-button{background-position:left27pxcenter;}#se-pe-for-later-button{display:flex;justify-content:start;}#se-pe-for-later-buttona::before{content:url(data:ime/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxLjJlbSIgVpZ2h0PSIxLjJlbSIgdmlld0JveD0iMCAwIDI0IDI0Ij48cGF0aCBkPSJNNSAyMGgxNHYtMkg1bTE0LTloLTRWM0g5djZINWw3IDcgNy03eiIgZmlsbD0iIzQyODVGNCIvPjwvc3ZnPg==);display:inline-block;margin-inline-end:4px;vertical-align:-webkit-baseline-middle;}.hidden#se-pe-for-later-button{display:none;}/*Don'tallowoverflowwheninasubframe.*/html[subframe]body{overflow:hidden;}#sub-frame-error{-webkit-align-items:center;-webkit-flex-flow:column;-webkit-justify-content:center;background-color:#DDD;display:-webkit-flex;height:100%;left:0;position:absolute;text-align:center;top:0;transition:background-color200msease-in-out;width:100%;}#sub-frame-error:hover{background-color:#EEE;}#sub-frame-error.icon-generic{margin:0016px;}#sub-frame-error-details{margin:010px;text-align:center;visibility:hidden;}/*Showdetailsonlywhenhovering.*/#sub-frame-error:hover#sub-frame-error-details{visibility:visible;}/*Iftheiframeistoosmall,alwayshidetheerrorcode.*//*TODO(mmenke):Seeifoverflow:no-displayworksbetter,oncesupported.*/@media(max-width:200px),(max-height:95px){#sub-frame-error-details{display:none;}}/*Adjusticonforsmallembeddedframesinapps.*/@media(max-height:100px){#sub-frame-error.icon-generic{height:auto;margin:0;padding-top:0;width:25px;}}/*details-buttonisspecial;it'saelementthatlookslikealink.*/#details-button{box-shadow:none;min-width:0;}/*Stylesforplatformdependentseparationofcontrolsanddetailsbutton.*/.suggested-left>#control-buttons,.suggested-right>#details-button{float:left;}.suggested-right>#control-buttons,.suggested-left>#details-button{float:right;}.suggested-left.secondary-button{margin-inline-end:0;margin-inline-start:16px;}#details-button.singular{float:none;}/*download-buttonshowsbothiconandtext.*/#download-button{padding-bottom:4px;padding-top:4px;position:relative;}#download-button::before{background:-webkit-ime-set(url(data:ime/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAQAAABKfvVzAAAAO0lEQVQ4y2NgGArgPxIY1YChsOE/LtBAmpYG0mxpIOSDBpKUo2lpIDZxNJCkHKqlYZAla3RAHQ1DFgAARRroHyLNTwwAAAAASUVORK5CYII=)1x,url(data:ime/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAQAAAD9CzEMAAAAZElEQVRYw+3Ruw3AMAwDUY3OzZUmRRD4E9iim9wNwAdbEURHyk4AAAAATiCVK8lLyPsKeT9K3lsownnunfkPxO78hKiYHxBV8x2icr5BVM+/CMf8g3DN34Rzns6ViwHUAUQ/6wIAd5Km7l6c8AAAAABJRU5ErkJggg==)2x)no-repeat;content:'';display:inline-block;height:24px;margin-inline-end:4px;margin-inline-start:-4px;vertical-align:middle;width:24px;}#download-button:disabled{background:rgb(180,206,249);color:rgb(255,255,255);}#buttons::after{clear:both;content:'';display:block;width:100%;}/*Offlinepe*/html[dir='rtl'].runner-container,html[dir='rtl'].offline.icon-offline{transform:scaleX(-1);}.offline{transition:filter1.5scubic-bezier(0.65,0.05,0.36,1),background-color1.5scubic-bezier(0.65,0.05,0.36,1);will-change:filter,background-color;}.offlinebody{transition:background-color1.5scubic-bezier(0.65,0.05,0.36,1);}.offline#main-messe>p{display:none;}.offline.inverted{background-color:#fff;filter:invert(1);}.offline.invertedbody{background-color:#fff;}.offline.interstitial-wrapper{color:var(--text-color);font-size:1em;line-height:1.55;margin:0auto;max-width:600px;padding-top:100px;position:relative;width:100%;}.offline.runner-container{direction:ltr;height:150px;max-width:600px;overflow:hidden;position:absolute;top:35px;width:44px;}.offline.runner-container:focus{outline:none;}.offline.runner-container:focus-visible{outline:3pxsolidvar(--google-blue-300);}.offline.runner-canvas{height:150px;max-width:600px;opacity:1;overflow:hidden;position:absolute;top:0;z-index:10;}.offline.controller{height:100vh;left:0;position:absolute;top:0;width:100vw;z-index:9;}#offline-resources{display:none;}#offline-instruction{ime-rendering:pixelated;left:0;margin:auto;position:absolute;right:0;top:60px;width:fit-content;}.offline-runner-live-region{bottom:0;clip-path:polygon(00,00,00);color:var(--background-color);display:block;font-size:xx-small;overflow:hidden;position:absolute;text-align:center;transition:color1.5scubic-bezier(0.65,0.05,0.36,1);user-select:none;}/*Customtoggle*/.slow-speed-option{align-items:center;background:var(--google-gray-50);border-radius:24px/50%;bottom:0;color:var(--error-code-color);display:inline-flex;font-size:1em;left:0;line-height:1.1em;margin:5pxauto;padding:2px12px3px20px;position:absolute;right:0;width:max-content;z-index:999;}.slow-speed-option.hidden{display:none;}.slow-speed-option[type=checkbox]{opacity:0;pointer-events:none;position:absolute;}.slow-speed-option.slow-speed-toggle{cursor:pointer;margin-inline-start:8px;padding:8px4px;position:relative;}.slow-speed-option[type=checkbox]:disabled~.slow-speed-toggle{cursor:default;}.slow-speed-option-label[type=checkbox]{opacity:0;pointer-events:none;position:absolute;}.slow-speed-option.slow-speed-toggle::before,.slow-speed-option.slow-speed-toggle::after{content:'';display:block;margin:03px;transition:all100mscubic-bezier(0.4,0,1,1);}.slow-speed-option.slow-speed-toggle::before{background:rgb(189,193,198);border-radius:0.65em;height:0.9em;width:2em;}.slow-speed-option.slow-speed-toggle::after{background:#fff;border-radius:50%;box-shadow:01px3px0rgb(000/40%);height:1.2em;position:absolute;top:51%;transform:translate(-20%,-50%);width:1.1em;}.slow-speed-option[type=checkbox]:focus+.slow-speed-toggle{box-shadow:008pxrgb(94,158,214);outline:1pxsolidrgb(93,157,213);}.slow-speed-option[type=checkbox]:checked+.slow-speed-toggle::before{background:var(--google-blue-600);opacity:0.5;}.slow-speed-option[type=checkbox]:checked+.slow-speed-toggle::after{background:var(--google-blue-600);transform:translate(calc(2em-90%),-50%);}.slow-speed-option[type=checkbox]:checked:disabled+.slow-speed-toggle::before{background:rgb(189,193,198);}.slow-speed-option[type=checkbox]:checked:disabled+.slow-speed-toggle::after{background:var(--google-gray-50);}@media(max-width:420px){#download-button{padding-bottom:12px;padding-top:12px;}.suggested-left>#control-buttons,.suggested-right>#control-buttons{float:none;}.snackbar{border-radius:0;bottom:0;left:0;width:100%;}}@media(max-height:350px){h1{margin:0015px;}.icon-offline{margin:0010px;}.interstitial-wrapper{margin-top:5%;}.n-wrapper{margin-top:30px;}}@media(min-width:420px)and(max-width:736px)and(min-height:240px)and(max-height:420px)and(orientation:landscape){.interstitial-wrapper{margin-bottom:100px;}}@media(max-width:360px)and(max-height:480px){.offline.interstitial-wrapper{padding-top:60px;}.offline.runner-container{top:8px;}}@media(min-height:240px)and(orientation:landscape){.offline.interstitial-wrapper{margin-bottom:90px;}.icon-offline{margin-bottom:20px;}}@media(max-height:320px)and(orientation:landscape){.icon-offline{margin-bottom:0;}.offline.runner-container{top:10px;}}@media(max-width:240px){button{padding-inline-end:12px;padding-inline-start:12px;}.interstitial-wrapper{overflow:inherit;padding:08px;}}@media(max-width:120px){button{width:auto;}}.arcade-mode,.arcade-mode.runner-container,.arcade-mode.runner-canvas{ime-rendering:pixelated;max-width:100%;overflow:hidden;}.arcade-mode#buttons,.arcade-mode#main-content{opacity:0;overflow:hidden;}.arcade-mode.interstitial-wrapper{height:100vh;max-width:100%;overflow:hidden;}.arcade-mode.runner-container{left:0;margin:auto;right:0;transform-origin:topcenter;transition:transform250mscubic-bezier(0.4,0,1,1)400ms;z-index:2;}@media(prefers-color-scheme:dark){.icon{filter:invert(1);}.offline.runner-canvas{filter:invert(1);}.offline.inverted{background-color:var(--background-color);filter:invert(0);}.offline.invertedbody{background-color:#fff;}.offline.inverted.offline-runner-live-region{color:#fff;}#suggestions-lista{color:var(--link-color);}#error-information-button{filter:invert(0.6);}.slow-speed-option{background:var(--google-gray-800);color:var(--google-gray-100);}.slow-speed-option.slow-speed-toggle::before,.slow-speed-option[type=checkbox]:checked:disabled+.slow-speed-toggle::before{background:rgb(189,193,198);}.slow-speed-option[type=checkbox]:checked+.slow-speed-toggle::after,.slow-speed-option[type=checkbox]:checked+.slow-speed-toggle::before{background:var(--google-blue-300);}}//2013TheChromiumAuthors.Allrightsreserved.//UseofthissourcecodeisgovernedbyaBSD-stylelicensethatcanbe//foundintheLICENSEfile./***@typedef{{*downloadButtonClick:function(),*reloadButtonClick:function(string),*detailsButtonClick:function(),*dinoseErrorsButtonClick:function(),*trackEasterEgg:function(),*updateEasterEggHighScore:function(number),*resetEasterEggHighScore:function(),*launchOfflineItem:function(string,string),*sePeForLater:function(),*cancelSePe:function(),*listVisibilityChange:function(boolean),*}}*///eslint-disable-next-lineno-varvarerrorPeController;constHIDDEN_CLASS='hidden';//DecodesaUTF16stringthatisencodedasbase64.functiondecodeUTF16Base64ToString(encoded_text){constdata=atob(encoded_text);letresult='';for(leti=0;i0){this.gameType=loadTimeData&&loadTimeData.valueExists('altGameType')?GAME_TYPE[parseInt(loadTimeData.getValue('altGameType'),10)-1]:'';}},/***Whethertheeasteregghasbeendisabled.CrOSenterpriseenrolleddevices.*@return{boolean}*/isDisabled(){returnloadTimeData&&loadTimeData.valueExists('disabledEasterEgg');},/***Fordisabledinstances,setupasnackbarwiththedisabledmesse.*/setupDisabledRunner(){this.containerEl=document.createElement('div');this.containerEl.className=Runner.classes.SNACKBAR;this.containerEl.textContent=loadTimeData.getValue('disabledEasterEgg');this.outerContainerEl.appendChild(this.containerEl);//Shownotificationwhentheactivationkeyispressed.document.addEventListener(Runner.events.KEYDOWN,function(e){if(Runner.keycodes.JUMP[e.keyCode]){this.containerEl.classList.add(Runner.classes.SNACKBAR_SHOW);document.querySelector('.icon').classList.add('icon-disabled');}}.bind(this));},/***Settingindividualsettingsfordebugging.*@param{string}setting*@param{number|string}value*/updateConfigSetting(setting,value){if(settinginthis.config&&value!==undefined){this.config[setting]=value;switch(setting){case'GRITY':case'MIN_JUMP_HEIGHT':case'SPEED_DROP_COEFFICIENT':this.tRex.config[setting]=value;break;case'INITIAL_JUMP_VELOCITY':this.tRex.setJumpVelocity(value);break;case'SPEED':this.setSpeed(/**@type{number}*/(value));break;}}},/***Createsanonpeimeelementfromthebase64encodedstringsource.*@param{string}resourceNameNameindataobject,*@return{HTMLImeElement}Thecreatedelement.*/createImeElement(resourceName){constimgSrc=loadTimeData&&loadTimeData.valueExists(resourceName)?loadTimeData.getString(resourceName):null;if(imgSrc){constel=/**@type{HTMLImeElement}*/(document.createElement('img'));el.id=resourceName;el.src=imgSrc;document.getElementById('offline-resources').appendChild(el);returnel;}returnnull;},/***Cachetheappropriateimespritefromthepeandgetthespritesheet*definition.*/loadImes(){letscale='1x';this.spriteDef=Runner.spriteDefinition.LDPI;if(IS_HIDPI){scale='2x';this.spriteDef=Runner.spriteDefinition.HDPI;}Runner.imeSprite=/**@type{HTMLImeElement}*/(document.getElementById(RESOURCE_POSTFIX+scale));if(this.gameType){Runner.altGameImeSprite=/**@type{HTMLImeElement}*/(this.createImeElement('altGameSpecificIme'+scale));Runner.altCommonImeSprite=/**@type{HTMLImeElement}*/(this.createImeElement('altGameCommonIme'+scale));}Runner.origImeSprite=Runner.imeSprite;//Disablethealtgamemodeifthespritescan'tbeloaded.if(!Runner.altGameImeSprite||!Runner.altCommonImeSprite){Runner.isAltGameModeEnabled=()=>false;this.altGameModeActive=false;}if(Runner.imeSprite.complete){this.init();}else{//Iftheimesarenotyetloaded,addalistener.Runner.imeSprite.addEventListener(Runner.events.LOAD,this.init.bind(this));}},/***Loadanddecodebase64encodedsounds.*/loadSounds(){if(!IS_IOS){this.audioContext=newAudioContext();constresourceTemplate=document.getElementById(this.config.RESOURCE_TEMPLATE_ID).content;for(constsoundinRunner.sounds){letsoundSrc=resourceTemplate.getElementById(Runner.sounds[sound]).src;soundSrc=soundSrc.substr(soundSrc.indexOf(',')+1);constbuffer=decodeBase64ToArrayBuffer(soundSrc);//Async,sonoguaranteeoforderinarray.this.audioContext.decodeAudioData(buffer,function(index,audioData){this.soundFx[index]=audioData;}.bind(this,sound));}}},/***Setsthegamespeed.Adjustthespeedaccordinglyifonasmallerscreen.*@param{number=}opt_speed*/setSpeed(opt_speed){constspeed=opt_speed||this.currentSpeed;//Reducethespeedonsmallermobilescreens.if(this.dimensions.WIDTHspeed?speed:mobileSpeed;}elseif(opt_speed){this.currentSpeed=opt_speed;}},/***Gameinitialiser.*/init(){//Hidethestaticicon.document.querySelector('.'+Runner.classes.ICON).style.visibility='hidden';this.adjustDimensions();this.setSpeed();constariaLabel=getA11yString(A11Y_STRINGS.ariaLabel);this.containerEl=document.createElement('div');this.containerEl.setAttribute('role',IS_MOBILE?'button':'application');this.containerEl.setAttribute('tabindex','0');this.containerEl.setAttribute('title',ariaLabel);this.containerEl.className=Runner.classes.CONTAINER;//Playercanvascontainer.this.canvas=createCanvas(this.containerEl,this.dimensions.WIDTH,this.dimensions.HEIGHT);//Liveregionforgamestatusupdates.this.a11yStatusEl=document.createElement('span');this.a11yStatusEl.className='offline-runner-live-region';this.a11yStatusEl.setAttribute('aria-live','assertive');this.a11yStatusEl.textContent='';Runner.a11yStatusEl=this.a11yStatusEl;//Addcheckboxtoslowdownthegame.this.slowSpeedCheckboxLabel=document.createElement('label');this.slowSpeedCheckboxLabel.className='slow-speed-optionhidden';this.slowSpeedCheckboxLabel.textContent=getA11yString(A11Y_STRINGS.speedLabel);this.slowSpeedCheckbox=document.createElement('input');this.slowSpeedCheckbox.setAttribute('type','checkbox');this.slowSpeedCheckbox.setAttribute('title',getA11yString(A11Y_STRINGS.speedLabel));this.slowSpeedCheckbox.setAttribute('tabindex','0');this.slowSpeedCheckbox.setAttribute('checked','checked');this.slowSpeedToggleEl=document.createElement('span');this.slowSpeedToggleEl.className='slow-speed-toggle';this.slowSpeedCheckboxLabel.appendChild(this.slowSpeedCheckbox);this.slowSpeedCheckboxLabel.appendChild(this.slowSpeedToggleEl);if(IS_IOS){this.outerContainerEl.appendChild(this.a11yStatusEl);}else{this.containerEl.appendChild(this.a11yStatusEl);}announcePhrase(getA11yString(A11Y_STRINGS.description));this.generatedSoundFx=newGeneratedSoundFx();this.canvasCtx=/**@type{CanvasRenderingContext2D}*/(this.canvas.getContext('2d'));this.canvasCtx.fillStyle='#f7f7f7';this.canvasCtx.fill();Runner.updateCanvasScaling(this.canvas);//Horizoncontainsclouds,obstaclesandtheground.this.horizon=newHorizon(this.canvas,this.spriteDef,this.dimensions,this.config.GAP_COEFFICIENT);//Distancemeterthis.distanceMeter=newDistanceMeter(this.canvas,this.spriteDef.TEXT_SPRITE,this.dimensions.WIDTH);//Drawt-rexthis.tRex=newTrex(this.canvas,this.spriteDef.TREX);this.outerContainerEl.appendChild(this.containerEl);this.outerContainerEl.appendChild(this.slowSpeedCheckboxLabel);this.startListening();this.update();window.addEventListener(Runner.events.RESIZE,this.debounceResize.bind(this));//HandledarkmodeconstdarkModeMediaQuery=window.matchMedia('(prefers-color-scheme:dark)');this.isDarkMode=darkModeMediaQuery&&darkModeMediaQuery.matches;darkModeMediaQuery.addListener((e)=>{this.isDarkMode=e.matches;});},/***Createthetouchcontroller.Adivthatcoverswholescreen.*/createTouchController(){this.touchController=document.createElement('div');this.touchController.className=Runner.classes.TOUCH_CONTROLLER;this.touchController.addEventListener(Runner.events.TOUCHSTART,this);this.touchController.addEventListener(Runner.events.TOUCHEND,this);this.outerContainerEl.appendChild(this.touchController);},/***Debouncetheresizeevent.*/debounceResize(){if(!this.resizeTimerId_){this.resizeTimerId_=setInterval(this.adjustDimensions.bind(this),250);}},/***Adjustgamespacedimensionsonresize.*/adjustDimensions(){clearInterval(this.resizeTimerId_);this.resizeTimerId_=null;constboxStyles=window.getComputedStyle(this.outerContainerEl);constpadding=Number(boxStyles.paddingLeft.substr(0,boxStyles.paddingLeft.length-2));this.dimensions.WIDTH=this.outerContainerEl.offsetWidth-padding*2;if(this.isArcadeMode()){this.dimensions.WIDTH=Math.min(DEFAULT_WIDTH,this.dimensions.WIDTH);if(this.activated){this.setArcadeModeContainerScale();}}//Redrawtheelementsbackontothecanvas.if(this.canvas){this.canvas.width=this.dimensions.WIDTH;this.canvas.height=this.dimensions.HEIGHT;Runner.updateCanvasScaling(this.canvas);this.distanceMeter.calcXPos(this.dimensions.WIDTH);this.clearCanvas();this.horizon.update(0,0,true);this.tRex.update(0);//Outercontaineranddistancemeter.if(this.playing||this.crashed||this.paused){this.containerEl.style.width=this.dimensions.WIDTH+'px';this.containerEl.style.height=this.dimensions.HEIGHT+'px';this.distanceMeter.update(0,Math.ceil(this.distanceRan));this.stop();}else{this.tRex.draw(0,0);}//Gameoverpanel.if(this.crashed&&this.gameOverPanel){this.gameOverPanel.updateDimensions(this.dimensions.WIDTH);this.gameOverPanel.draw(this.altGameModeActive,this.tRex);}}},/***Playthegameintro.*Canvascontainerwidthexpandsouttothefullwidth.*/playIntro(){if(!this.activated&&!this.crashed){this.playingIntro=true;this.tRex.playingIntro=true;//CSSanimationdefinition.constkeyframes='@-webkit-keyframesintro{'+'from{width:'+Trex.config.WIDTH+'px}'+'to{width:'+this.dimensions.WIDTH+'px}'+'}';document.styleSheets[0].insertRule(keyframes,0);this.containerEl.addEventListener(Runner.events.ANIM_END,this.startGame.bind(this));this.containerEl.style.webkitAnimation='intro.4sease-out1both';this.containerEl.style.width=this.dimensions.WIDTH+'px';this.setPlayStatus(true);this.activated=true;}elseif(this.crashed){this.restart();}},/***Updatethegamestatustostarted.*/startGame(){if(this.isArcadeMode()){this.setArcadeMode();}this.toggleSpeed();this.runningTime=0;this.playingIntro=false;this.tRex.playingIntro=false;this.containerEl.style.webkitAnimation='';this.playCount++;this.generatedSoundFx.background();announcePhrase(getA11yString(A11Y_STRINGS.started));if(Runner.audioCues){this.containerEl.setAttribute('title',getA11yString(A11Y_STRINGS.jump));}//Handletabbingoffthepe.Pausethecurrentgame.document.addEventListener(Runner.events.VISIBILITY,this.onVisibilityChange.bind(this));window.addEventListener(Runner.events.BLUR,this.onVisibilityChange.bind(this));window.addEventListener(Runner.events.FOCUS,this.onVisibilityChange.bind(this));},clearCanvas(){this.canvasCtx.clearRect(0,0,this.dimensions.WIDTH,this.dimensions.HEIGHT);},/***Checkswhetherthecanvasareaisintheviewportofthebrowser*throughthecurrentscrollposition.*@returnboolean.*/isCanvasInView(){returnthis.containerEl.getBoundingClientRect().top>Runner.config.CANVAS_IN_VIEW_OFFSET;},/***Enablethealtgamemode.Switchingoutthesprites.*/enableAltGameMode(){Runner.imeSprite=Runner.altGameImeSprite;Runner.spriteDefinition=Runner.spriteDefinitionByType[Runner.gameType];if(IS_HIDPI){this.spriteDef=Runner.spriteDefinition.HDPI;}else{this.spriteDef=Runner.spriteDefinition.LDPI;}this.altGameModeActive=true;this.tRex.enableAltGameMode(this.spriteDef.TREX);this.horizon.enableAltGameMode(this.spriteDef);this.generatedSoundFx.background();},/***Updatethegameframeandschedulesthenextone.*/update(){this.updatePending=false;constnow=getTimeStamp();letdeltaTime=now-(this.time||now);//Flashingwhenswitchinggamemodes.if(this.altGameModeFlashTimer0){this.altGameModeFlashTimer-=deltaTime;this.tRex.update(deltaTime);deltaTime=0;}this.time=now;if(this.playing){this.clearCanvas();//Additionalfadein-Preventsjumpwhenswitchingspritesif(this.altGameModeActive&&this.fadeInTimerthis.config.CLEAR_TIME;//Firstjumptriggerstheintro.if(this.tRex.jumpCount===1&&!this.playingIntro){this.playIntro();}//Thehorizondoesn'tmoveuntiltheintroisover.if(this.playingIntro){this.horizon.update(0,this.currentSpeed,hasObstacles);}elseif(!this.crashed){constshowNightMode=this.isDarkMode^this.inverted;deltaTime=!this.activated?0:deltaTime;this.horizon.update(deltaTime,this.currentSpeed,hasObstacles,showNightMode);}//Checkforcollisions.letcollision=hasObstacles&&checkForCollision(this.horizon.obstacles[0],this.tRex);//Fora11y,audiocues.if(Runner.audioCues&&hasObstacles){constjumpObstacle=this.horizon.obstacles[0].typeConfig.type!='COLLECTABLE';if(!this.horizon.obstacles[0].jumpAlerted){constthreshold=Runner.isMobileMouseInput?Runner.config.AUDIOCUE_PROXIMITY_THRESHOLD_MOBILE_A11Y:Runner.config.AUDIOCUE_PROXIMITY_THRESHOLD;constadjProximityThreshold=threshold+(threshold*Math.log10(this.currentSpeed/Runner.config.SPEED));if(this.horizon.obstacles[0].xPos0){this.invertTrigger=!(actualDistance%this.config.INVERT_DISTANCE);if(this.invertTrigger&&this.invertTimer===0){this.invertTimer+=deltaTime;this.invert(false);}}}}}if(this.playing||(!this.activated&&this.tRex.blinkCount=this.config.GAMEOVER_CLEAR_TIME&&Runner.keycodes.JUMP[keyCode]))){this.handleGameOverClicks(e);}}elseif(this.paused&&isjumpKey){//Resetthejumpstatethis.tRex.reset();this.play();}},/***Processgamepadconnectedevent.*@param{Event}e*/onGamepadConnected(e){if(!this.pollingGamepads){this.pollGamepadState();}},/***rAFloopforgamepadpolling.*/pollGamepadState(){constgamepads=nigator.getGamepads();this.pollActiveGamepad(gamepads);this.pollingGamepads=true;requestAnimationFrame(this.pollGamepadState.bind(this));},/***Pollsforagamepadwiththejumpbuttonpressed.Ifoneisfoundthis*becomesthe"active"gamepadandallothersareignored.*@param{!Array}gamepads*/pollForActiveGamepad(gamepads){for(leti=0;i0&&gamepads[i].buttons[0].pressed){this.gamepadIndex=i;this.pollActiveGamepad(gamepads);return;}}},/***PollsthechosengamepadforbuttonpressesandgeneratesKeyboardEvents*tointegratewiththerestofthegamelogic.*@param{!Array}gamepads*/pollActiveGamepad(gamepads){if(this.gamepadIndex===undefined){this.pollForActiveGamepad(gamepads);return;}constgamepad=gamepads[this.gamepadIndex];if(!gamepad){this.gamepadIndex=undefined;this.pollForActiveGamepad(gamepads);return;}//Thegamepadspecificationdefinesthetypicalmappingofphysicalbuttons//tobuttonindicies:w3c.github.io/gamepad/#remappingthis.pollGamepadButton(gamepad,0,38);//Jumpif(gamepad.buttons.length>=2){this.pollGamepadButton(gamepad,1,40);//Duck}if(gamepad.buttons.length>=10){this.pollGamepadButton(gamepad,9,13);//Restart}this.previousGamepad=gamepad;},/***Generatesakeyeventbasedonagamepadbutton.*@param{!Gamepad}gamepad*@param{number}buttonIndex*@param{number}keyCode*/pollGamepadButton(gamepad,buttonIndex,keyCode){conststate=gamepad.buttons[buttonIndex].pressed;letpreviousState=false;if(this.previousGamepad){previousState=this.previousGamepad.buttons[buttonIndex].pressed;}//Generatekeyeventsontherisingandfallingedgeofabuttonpress.if(state!==previousState){conste=newKeyboardEvent(state?Runner.events.KEYDOWN:Runner.events.KEYUP,{keyCode:keyCode});document.dispatchEvent(e);}},/***Handleinteractionsonthegameoverscreenstate.*Auserisabletotapthehighscoretwicetoresetit.*@param{Event}e*/handleGameOverClicks(e){if(e.target!=this.slowSpeedCheckbox){e.preventDefault();if(this.distanceMeter.hasClickedOnHighScore(e)&&this.highestScore){if(this.distanceMeter.isHighScoreFlashing()){//Subsequentclick,resetthehighscore.this.seHighScore(0,true);this.distanceMeter.resetHighScore();}else{//Firstclick,flashthehighscore.this.distanceMeter.startHighScoreFlashing();}}else{this.distanceMeter.cancelHighScoreFlashing();this.restart();}}},/***Returnswhethertheeventwasaleftclickoncanvas.*OnWindowsrightclickisregisteredasaclick.*@param{Event}e*@return{boolean}*/isLeftClickOnCanvas(e){returne.button!=null&&e.button1&&this.typeConfig.multipleSpeed>speed){this.size=1;}this.width=this.typeConfig.width*this.size;//Checkifobstaclecanbepositionedatvariousheights.if(Array.isArray(this.typeConfig.yPos)){constyPosConfig=IS_MOBILE?this.typeConfig.yPosMobile:this.typeConfig.yPos;this.yPos=yPosConfig[getRandomNum(0,yPosConfig.length-1)];}else{this.yPos=this.typeConfig.yPos;}this.draw();//Makecollisionboxadjustments,//Centralboxisadjustedtothesizeasonebox.//__________________//_||-|_||-|_||-|//||||||||||||//||1||||2||||3||//|_|___|_||_|_____|_||_|_______|_|//if(this.size>1){this.collisionBoxes[1].width=this.width-this.collisionBoxes[0].width-this.collisionBoxes[2].width;this.collisionBoxes[2].x=this.width-this.collisionBoxes[2].width;}//Forobstaclesthatgoatadifferentspeedfromthehorizon.if(this.typeConfig.speedOffset){this.speedOffset=Math.random()>0.5?this.typeConfig.speedOffset:-this.typeConfig.speedOffset;}this.gap=this.getGap(this.gapCoefficient,speed);//Increasegapforaudiocuesenabled.if(Runner.audioCues){this.gap*=2;}},/***Drawandcropbasedonsize.*/draw(){letsourceWidth=this.typeConfig.width;letsourceHeight=this.typeConfig.height;if(IS_HIDPI){sourceWidth=sourceWidth*2;sourceHeight=sourceHeight*2;}//Xpositioninsprite.letsourceX=(sourceWidth*this.size)*(0.5*(this.size-1))+this.spritePos.x;//Animationframes.if(this.currentFrame>0){sourceX+=sourceWidth*this.currentFrame;}this.canvasCtx.drawIme(this.imeSprite,sourceX,this.spritePos.y,sourceWidth*this.size,sourceHeight,this.xPos,this.yPos,this.typeConfig.width*this.size,this.typeConfig.height);},/***Obstacleframeupdate.*@param{number}deltaTime*@param{number}speed*/update(deltaTime,speed){if(!this.remove){if(this.typeConfig.speedOffset){speed+=this.speedOffset;}this.xPos-=Math.floor((speed*FPS/1000)*deltaTime);//Updateframeif(this.typeConfig.numFrames){this.timer+=deltaTime;if(this.timer>=this.typeConfig.frameRate){this.currentFrame=this.currentFrame===this.typeConfig.numFrames-1?0:this.currentFrame+1;this.timer=0;}}this.draw();if(!this.isVisible()){this.remove=true;}}},/***Calculatearandomgapsize.*-Minimumgapgetswiderasspeedincreses*@param{number}gapCoefficient*@param{number}speed*@return{number}Thegapsize.*/getGap(gapCoefficient,speed){constminGap=Math.round(this.width*speed+this.typeConfig.minGap*gapCoefficient);constmaxGap=Math.round(minGap*Obstacle.MAX_GAP_COEFFICIENT);returngetRandomNum(minGap,maxGap);},/***Checkifobstacleisvisible.*@return{boolean}Whethertheobstacleisinthegamearea.*/isVisible(){returnthis.xPos+this.width>0;},/***Makeacopyofthecollisionboxes,sincethesewillchangebasedon*obstacletypeandsize.*/cloneCollisionBoxes(){constcollisionBoxes=this.typeConfig.collisionBoxes;for(leti=collisionBoxes.length-1;i>=0;i--){this.collisionBoxes[i]=newCollisionBox(collisionBoxes[i].x,collisionBoxes[i].y,collisionBoxes[i].width,collisionBoxes[i].height);}},};//******************************************************************************/***T-rexgamecharacter.*@param{HTMLCanvasElement}canvas*@param{Object}spritePosPositioningwithinimesprite.*@constructor*/functionTrex(canvas,spritePos){this.canvas=canvas;this.canvasCtx=/**@type{CanvasRenderingContext2D}*/(canvas.getContext('2d'));this.spritePos=spritePos;this.xPos=0;this.yPos=0;this.xInitialPos=0;//Positionwhenontheground.this.groundYPos=0;this.currentFrame=0;this.currentAnimFrames=[];this.blinkDelay=0;this.blinkCount=0;this.animStartTime=0;this.timer=0;this.msPerFrame=1000/FPS;this.config=Object.assign(Trex.config,Trex.normalJumpConfig);//Currentstatus.this.status=Trex.status.WAITING;this.jumping=false;this.ducking=false;this.jumpVelocity=0;this.reachedMinHeight=false;this.speedDrop=false;this.jumpCount=0;this.jumpspotX=0;this.altGameModeEnabled=false;this.flashing=false;this.init();}/***T-rexplayerconfig.*/Trex.config={DROP_VELOCITY:-5,FLASH_OFF:175,FLASH_ON:100,HEIGHT:47,HEIGHT_DUCK:25,INTRO_DURATION:1500,SPEED_DROP_COEFFICIENT:3,SPRITE_WIDTH:262,START_X_POS:50,WIDTH:44,WIDTH_DUCK:59,};Trex.slowJumpConfig={GRITY:0.25,MAX_JUMP_HEIGHT:50,MIN_JUMP_HEIGHT:45,INITIAL_JUMP_VELOCITY:-20,};Trex.normalJumpConfig={GRITY:0.6,MAX_JUMP_HEIGHT:30,MIN_JUMP_HEIGHT:30,INITIAL_JUMP_VELOCITY:-10,};/***Usedincollisiondetection.*@enum{Array}*/Trex.collisionBoxes={DUCKING:[newCollisionBox(1,18,55,25)],RUNNING:[newCollisionBox(22,0,17,16),newCollisionBox(1,18,30,9),newCollisionBox(10,35,14,8),newCollisionBox(1,24,29,5),newCollisionBox(5,30,21,4),newCollisionBox(9,34,15,4),],};/***Animationstates.*@enum{string}*/Trex.status={CRASHED:'CRASHED',DUCKING:'DUCKING',JUMPING:'JUMPING',RUNNING:'RUNNING',WAITING:'WAITING',};/***Blinkingcoefficient.*@const*/Trex.BLINK_TIMING=7000;/***Animationconfigfordifferentstates.*@enum{Object}*/Trex.animFrames={WAITING:{frames:[44,0],msPerFrame:1000/3,},RUNNING:{frames:[88,132],msPerFrame:1000/12,},CRASHED:{frames:[220],msPerFrame:1000/60,},JUMPING:{frames:[0],msPerFrame:1000/60,},DUCKING:{frames:[264,323],msPerFrame:1000/8,},};Trex.prototype={/***T-rexplayerinitaliser.*Setsthet-rextoblinkatrandomintervals.*/init(){this.groundYPos=Runner.defaultDimensions.HEIGHT-this.config.HEIGHT-Runner.config.BOTTOM_PAD;this.yPos=this.groundYPos;this.minJumpHeight=this.groundYPos-this.config.MIN_JUMP_HEIGHT;this.draw(0,0);this.update(0,Trex.status.WAITING);},/***Assigntheappropriatejumpparametersbasedonthegamespeed.*/enableSlowConfig:function(){constjumpConfig=Runner.slowDown?Trex.slowJumpConfig:Trex.normalJumpConfig;Trex.config=Object.assign(Trex.config,jumpConfig);this.adjustAltGameConfigForSlowSpeed();},/***Enablesthealternativegame.Redefinesthedinoconfig.*@param{Object}spritePosNewpositioningwithinimesprite.*/enableAltGameMode:function(spritePos){this.altGameModeEnabled=true;this.spritePos=spritePos;constspriteDefinition=Runner.spriteDefinition['TREX'];//Updateanimationframes.Trex.animFrames.RUNNING.frames=[spriteDefinition.RUNNING_1.x,spriteDefinition.RUNNING_2.x];Trex.animFrames.CRASHED.frames=[spriteDefinition.CRASHED.x];if(typeofspriteDefinition.JUMPING.x=='object'){Trex.animFrames.JUMPING.frames=spriteDefinition.JUMPING.x;}else{Trex.animFrames.JUMPING.frames=[spriteDefinition.JUMPING.x];}Trex.animFrames.DUCKING.frames=[spriteDefinition.RUNNING_1.x,spriteDefinition.RUNNING_2.x];//UpdateTrexconfigTrex.config.GRITY=spriteDefinition.GRITY||Trex.config.GRITY;Trex.config.HEIGHT=spriteDefinition.RUNNING_1.h,Trex.config.INITIAL_JUMP_VELOCITY=spriteDefinition.INITIAL_JUMP_VELOCITY;Trex.config.MAX_JUMP_HEIGHT=spriteDefinition.MAX_JUMP_HEIGHT;Trex.config.MIN_JUMP_HEIGHT=spriteDefinition.MIN_JUMP_HEIGHT;Trex.config.WIDTH=spriteDefinition.RUNNING_1.w;Treबस एक क्षण...x.config.WIDTH_JUMP=spriteDefinition.JUMPING.w;Trex.config.INVERT_JUMP=spriteDefinition.INVERT_JUMP;this.adjustAltGameConfigForSlowSpeed(spriteDefinition.GRITY);this.config=Trex.config;//Adjustbottomhorizonplacement.this.groundYPos=Runner.defaultDimensions.HEIGHT-this.config.HEIGHT-Runner.spriteDefinition['BOTTOM_PAD'];this.yPos=this.groundYPos;this.reset();},/***Slowspeedsadjustmentsforthealtgamemodes.*@param{number=}opt_grityValue*/adjustAltGameConfigForSlowSpeed:function(opt_grityValue){if(Runner.slowDown){if(opt_grityValue){Trex.config.GRITY=opt_grityValue/1.5;}Trex.config.MIN_JUMP_HEIGHT*=1.5;Trex.config.MAX_JUMP_HEIGHT*=1.5;Trex.config.INITIAL_JUMP_VELOCITY=Trex.config.INITIAL_JUMP_VELOCITY*1.5;}},/***Setterwhetherdinoisflashing.*@param{boolean}status*/setFlashing:function(status){this.flashing=status;},/***Setterforthejumpvelocity.*Theapproriatedropvelocityisalsoset.*@param{number}setting*/setJumpVelocity(setting){this.config.INITIAL_JUMP_VELOCITY=-setting;this.config.DROP_VELOCITY=-setting/2;},/***Settheanimationstatus.*@param{!number}deltaTime*@param{Trex.status=}opt_statusOptionalstatustoswitchto.*/update(deltaTime,opt_status){this.timer+=deltaTime;//Updatethestatus.if(opt_status){this.status=opt_status;this.currentFrame=0;this.msPerFrame=Trex.animFrames[opt_status].msPerFrame;this.currentAnimFrames=Trex.animFrames[opt_status].frames;if(opt_status===Trex.status.WAITING){this.animStartTime=getTimeStamp();this.setBlinkDelay();}}//Gameintroanimation,T-rexmovesinfromtheleft.if(this.playingIntro&&this.xPos=this.msPerFrame){this.currentFrame=this.currentFrame==this.currentAnimFrames.length-1?0:this.currentFrame+1;this.timer=0;}if(!this.altGameModeEnabled){//Speeddropbecomesduckifthedownkeyisstillbeingpressed.if(this.speedDrop&&this.yPos===this.groundYPos){this.speedDrop=false;this.setDuck(true);}}},/***Drawthet-rextoaparticularposition.*@param{number}x*@param{number}y*/draw(x,y){letsourceX=x;letsourceY=y;letsourceWidth=this.ducking&&this.status!==Trex.status.CRASHED?this.config.WIDTH_DUCK:this.config.WIDTH;letsourceHeight=this.config.HEIGHT;constoutputHeight=sourceHeight;letjumpOffset=Runner.spriteDefinition.TREX.JUMPING.xOffset;//Widthofspritechangesonjump.if(this.altGameModeEnabled&&this.jumping&&this.status!==Trex.status.CRASHED){sourceWidth=this.config.WIDTH_JUMP;}if(IS_HIDPI){sourceX*=2;sourceY*=2;sourceWidth*=2;sourceHeight*=2;jumpOffset*=2;}//Adjustmentsforspritesheetposition.sourceX+=this.spritePos.x;sourceY+=this.spritePos.y;//Flashing.if(this.flashing){if(this.timerthis.config.FLASH_OFF){this.timer=0;}}//Ducking.if(!this.altGameModeEnabled&&this.ducking&&this.status!==Trex.status.CRASHED){this.canvasCtx.drawIme(Runner.imeSprite,sourceX,sourceY,sourceWidth,sourceHeight,this.xPos,this.yPos,this.config.WIDTH_DUCK,outputHeight);}elseif(this.altGameModeEnabled&&this.jumping&&this.status!==Trex.status.CRASHED){//Jumpingwithadjustments.this.canvasCtx.drawIme(Runner.imeSprite,sourceX,sourceY,sourceWidth,sourceHeight,this.xPos-jumpOffset,this.yPos,this.config.WIDTH_JUMP,outputHeight);}else{//Crashedwhilstducking.Trexisstandingupsoneedsadjustment.if(this.ducking&&this.status===Trex.status.CRASHED){this.xPos++;}//Standing/runningthis.canvasCtx.drawIme(Runner.imeSprite,sourceX,sourceY,sourceWidth,sourceHeight,this.xPos,this.yPos,this.config.WIDTH,outputHeight);}this.canvasCtx.globalAlpha=1;},/***Setsarandomtimefortheblinktohappen.*/setBlinkDelay(){this.blinkDelay=Math.ceil(Math.random()*Trex.BLINK_TIMING);},/***Maket-rexblinkatrandomintervals.*@param{number}timeCurrenttimeinmilliseconds.*/blink(time){constdeltaTime=time-this.animStartTime;if(deltaTime>=this.blinkDelay){this.draw(this.currentAnimFrames[this.currentFrame],0);if(this.currentFrame===1){//Setnewrandomdelaytoblink.this.setBlinkDelay();this.animStartTime=time;this.blinkCount++;}}},/***Initialiseajump.*@param{number}speed*/startJump(speed){if(!this.juबस एक क्षण...mping){this.update(0,Trex.status.JUMPING);//Tweakthejumpvelocitybasedonthespeed.this.jumpVelocity=this.config.INITIAL_JUMP_VELOCITY-(speed/10);this.jumping=true;this.reachedMinHeight=false;this.speedDrop=false;if(this.config.INVERT_JUMP){this.minJumpHeight=this.groundYPos+this.config.MIN_JUMP_HEIGHT;}}},/***Jumpiscomplete,fallingdown.*/endJump(){if(this.reachedMinHeight&&this.jumpVelocitythis.minJumpHeight)||!this.config.INVERT_JUMP&&(this.yPos-this.config.MAX_JUMP_HEIGHT)||!this.config.INVERT_JUMP&&(this.yPos0){//Achievementunlocked.if(distance%this.config.ACHIEVEMENT_DISTANCE===0){//Flashscoreandplaysound.this.achievement=true;this.flashTimer=0;playSound=true;}//Createastringrepresentationofthedistancewithleading0.constdistanceStr=(this.defaultString+distance).substr(-this.maxScoreUnits);this.digits=distanceStr.split('');}else{this.digits=this.defaultString.split('');}}else{//Controlflashingofthescoreonreachingacheivement.if(this.flashIterations=0;i--){this.draw(i,parseInt(this.digits[i],10));}}this.drawHighScore();returnplaySound;},/***Drawthehighscore.*/drawHighScore(){if(parseInt(this.highScore,10)>0){this.canvasCtx.se();this.canvasCtx.globalAlpha=.8;for(leti=this.highScore.length-1;i>=0;i--){this.draw(i,parseInt(this.highScore[i],10),true);}this.canvasCtx.restore();}},/***Setthehighscoreasaarraystring.*Positionofcharinthesprite:H-10,I-11.*@param{number}distanceDistanceraninpixels.*/setHighScore(distance){distance=this.getActualDistance(distance);consthighScoreStr=(this.defaultString+distance).substr(-this.maxScoreUnits);this.highScore=['10','11',''].concat(highScoreStr.split(''));},/***Whetheraclickedisinthehighscorearea.*@param{Event}eEventobject.*@return{boolean}Whethertheclickwasinthehighscorebounds.*/hasClickedOnHighScore(e){letx=0;lety=0;if(e.touches){//Boundsfortouchdifferfrompointer.constcanvasBounds=this.canvas.getBoundingClientRect();x=e.touches[0].clientX-canvasBounds.left;y=e.touches[0].clientY-canvasBounds.top;}else{x=e.offsetX;y=e.offsetY;}this.highScoreBounds=this.getHighScoreBounds();returnx>=this.highScoreBounds.x&&x=this.highScoreBounds.y&&ythis.config.FLASH_ITERATIONS*2){this.cancelHighScoreFlashing();return;}this.flashTimer+=deltaTime;if(this.flashTimerthis.config.FLASH_DURATION*2){this.flashTimer=0;this.flashIterations++;}if(paint){this.drawHighScore();}else{this.clearHighScoreBounds();}//Frameupdate.this.flashingRafId=requestAnimationFrame(this.flashHighScore.bind(this));},/***Drawemptyrectangleoverhighscore.*/clearHighScoreBounds(){this.canvasCtx.se();this.canvasCtx.fillStyle='#fff';this.canvasCtx.rect(this.highScoreBounds.x,this.highScoreBounds.y,this.highScoreBounds.width,this.highScoreBounds.height);this.canvasCtx.fill();this.canvasCtx.restore();},/***Startstheflashingofthehighscore.*/startHighScoreFlashing(){this.highScoreFlashing=true;this.flashHighScore();},/***Whetherhighscoreisflashing.*@return{boolean}*/isHighScoreFlashing(){returnthis.highScoreFlashing;},/***Stopflashingthehighscore.*/cancelHighScoreFlashing(){if(this.flashingRafId){cancelAnimationFrame(this.flashingRafId);}this.flashIterations=0;this.flashTimer=0;this.highScoreFlashing=false;this.clearHighScoreBounds();this.drawHighScore();},/***Clearthehighscore.*/resetHighScore(){this.setHighScore(0);this.cancelHighScoreFlashing();},/***Resetthedistancemeterbackto''.*/reset(){this.update(0,0);this.achievement=false;},};//******************************************************************************/***Cloudbackgrounditem.*Similartoanobstacleobjectbutwithoutcollisionboxes.*@param{HTMLCanvasElement}canvasCanvaselement.*@param{Object}spritePosPositionofimeinsprite.*@param{number}containerWidth*@constructor*/functionCloud(canvas,spritePos,containerWidth){this.canvas=canvas;this.canvasCtx=/**@type{CanvasRenderingContext2D}*/(this.canvas.getContext('2d'));this.spritePos=spritePos;this.containerWidth=containerWidth;this.xPos=containerWidth;this.yPos=0;this.remove=false;this.gap=getRandomNum(Cloud.config.MIN_CLOUD_GAP,Cloud.config.MAX_CLOUD_GAP);this.init();}/***Cloudobjectconfig.*@enum{number}*/Cloud.config={HEIGHT:14,MAX_CLOUD_GAP:400,MAX_SKY_LEVEL:30,MIN_CLOUD_GAP:100,MIN_SKY_LEVEL:71,WIDTH:46,};Cloud.prototype={/***Initialisethecloud.SetstheCloudheight.*/init(){this.yPos=getRandomNum(Cloud.config.MAX_SKY_LEVEL,Cloud.config.MIN_SKY_LEVEL);this.draw();},/***Drawthecloud.*/draw(){this.canvasCtx.se();letsourceWidth=Cloud.config.WIDTH;letsourceHeight=Cloud.config.HEIGHT;constoutputWidth=sourceWidth;constoutputHeight=sourceHeight;if(IS_HIDPI){sourceWidth=sourceWidth*2;sourceHeight=sourceHeight*2;}this.canvasCtx.drawIme(Runner.imeSprite,this.spritePos.x,this.spritePos.y,sourceWidth,sourceHeight,this.xPos,this.yPos,outputWidth,outputHeight);this.canvasCtx.restore();},/***Updatethecloudposition.*@param{number}speed*/update(speed){if(!this.remove){this.xPos-=Math.ceil(speed);this.draw();//Markasremoveableifnolongerinthecanvas.if(!this.isVisible()){this.remove=true;}}},/***Checkifthecloudisvisibleontheste.*@return{boolean}*/isVisible(){returnthis.xPos+Cloud.config.WIDTH>0;},};/***Backgrounditem.*Similartocloud,withoutrandomyposition.*@param{HTMLCanvasElement}canvasCanvaselement.*@param{Object}spritePosPositionofimeinsprite.*@param{number}containerWidth*@param{string}typeElementtype.*@constructor*/functionBackgroundEl(canvas,spritePos,containerWidth,type){this.canvas=canvas;this.canvasCtx=/**@type{CanvasRenderingContext2D}*/(this.canvas.getContext('2d'));this.spritePos=spritePos;this.containerWidth=containerWidth;this.xPos=containerWidth;this.yPos=0;this.remove=false;this.type=type;this.gap=getRandomNum(BackgroundEl.config.MIN_GAP,BackgroundEl.config.MAX_GAP);this.animTimer=0;this.switchFrames=false;this.spriteConfig={};this.init();}/***Backgroundelementobjectconfig.*Realvaluesassignedwhengametypechanges.*@enum{number}*/BackgroundEl.config={MAX_BG_ELS:0,MAX_GAP:0,MIN_GAP:0,POS:0,SPEED:0,Y_POS:0,MS_PER_FRAME:0,//onlyneededwhenBACKGROUND_EL.FIXEDistrue};BackgroundEl.prototype={/***Initialisetheelementsettingtheyposition.*/init(){this.spriteConfig=Runner.spriteDefinition.BACKGROUND_EL[this.type];if(this.spriteConfig.FIXED){this.xPos=this.spriteConfig.FIXED_X_POS;}this.yPos=BackgroundEl.config.Y_POS-this.spriteConfig.HEIGHT+this.spriteConfig.OFFSET;this.draw();},/***Drawtheelement.*/draw(){this.canvasCtx.se();letsourceWidth=this.spriteConfig.WIDTH;letsourceHeight=this.spriteConfig.HEIGHT;letsourceX=this.spriteConfig.X_POS;constoutputWidth=sourceWidth;constoutputHeight=sourceHeight;if(IS_HIDPI){sourceWidth*=2;sourceHeight*=2;sourceX*=2;}this.canvasCtx.drawIme(Runner.imeSprite,sourceX,this.spritePos.y,sourceWidth,sourceHeight,this.xPos,this.yPos,outputWidth,outputHeight);this.canvasCtx.restore();},/***Updatethebackgroundelementposition.*@param{number}speed*/update(speed){if(!this.remove){if(this.spriteConfig.FIXED){this.animTimer+=speed;if(this.animTimer>BackgroundEl.config.MS_PER_FRAME){this.animTimer=0;this.switchFrames=!this.switchFrames;}if(this.spriteConfig.FIXED_Y_POS_1&&this.spriteConfig.FIXED_Y_POS_2){this.yPos=this.switchFrames?this.spriteConfig.FIXED_Y_POS_1:this.spriteConfig.FIXED_Y_POS_2;}}else{//Fixedspeed,regardlessofactualgamespeed.this.xPos-=BackgroundEl.config.SPEED;}this.draw();//Markasremovableifnolongerinthecanvas.if(!this.isVisible()){this.remove=true;}}},/***Checkiftheelementisvisibleontheste.*@return{boolean}*/isVisible(){returnthis.xPos+this.spriteConfig.WIDTH>0;},};//******************************************************************************/***Nightmodeshowsamoonandstarsonthehorizon.*@param{HTMLCanvasElement}canvas*@param{number}spritePos*@param{number}containerWidth*@constructor*/functionNightMode(canvas,spritePos,containerWidth){this.spritePos=spritePos;this.canvas=canvas;this.canvasCtx=/**@type{CanvasRenderingContext2D}*/(canvas.getContext('2d'));this.xPos=containerWidth-50;this.yPos=30;this.currentPhase=0;this.opacity=0;this.containerWidth=containerWidth;this.stars=[];this.drawStars=false;this.placeStars();}/***@enum{number}*/NightMode.config={FADE_SPEED:0.035,HEIGHT:40,MOON_SPEED:0.25,NUM_STARS:2,STAR_SIZE:9,STAR_SPEED:0.3,STAR_MAX_Y:70,WIDTH:20,};NightMode.phases=[140,120,100,60,40,20,0];NightMode.prototype={/***Updatemovingmoon,changingphases.*@param{boolean}activatedWhethernightmodeisactivated.*/update(activated){//Moonphase.if(activated&&this.opacity===0){this.currentPhase++;if(this.currentPhase>=NightMode.phases.length){this.currentPhase=0;}}//Fadein/out.if(activated&&(this.opacity0){this.opacity-=NightMode.config.FADE_SPEED;}//Setmoonpositioning.if(this.opacity>0){this.xPos=this.updateXPos(this.xPos,NightMode.config.MOON_SPEED);//Updatestars.if(this.drawStars){for(leti=0;i

साइट:बस एक क्षण...रिपोर्ट good

यदि साइट का उल्लंघन है, तो कृपया रिपोर्ट पर क्लिक करेंरिपोर्ट good

अनुशंसित सूचना

अनुशंसित साइट