diff --git a/Download/Calculators A First Look at the TI-Nspire CX II.html b/Download/Calculators A First Look at the TI-Nspire CX II.html new file mode 100644 index 0000000..9183f13 --- /dev/null +++ b/Download/Calculators A First Look at the TI-Nspire CX II.html @@ -0,0 +1,606 @@ + + + + + + + + + + + + + + + + + + Calculators : A First Look at the TI-Nspire CX II + + + + + + + + + + + + + + + +
+ +

+ Post New Entry +

+

A First Look at the TI-Nspire CX II

+

by Ta-180m, Apr 12, 2019, 8:59 AM

+
+ +
The TI-Nspire CX II + has been announced, and it’s a disappointment. While it does include a +faster processor and an updated case and user interface, very little has + changed since the release of the first Nspire CX eight years ago. It’s +basically the old CX with a new processor and OS in a new case. Much of +the specifications page + is just a direct copy and paste from the first model. Even worse, the +RAM in this new model is 10 MB less than the original CX. While few +users would need so much RAM, introducing a model with more RAM would +have paved the way for more resource-intensive emulators. While TI could + have spent eight years developing a new, innovative calculator, +instead, they chose to upgrade a few features of the CX and package it +in a new case. TI's monopoly on the graphing calculator market allows it + to make innovations at a snail's pace while making huge profits. +Overall, the TI-Nspire CX II is really just a modest upgrade of the CX.
+
+https://d33wubrfki0l68.cloudfront.net/a994470a77b5e75064a13a0aeba2aa4763a45fdd/7a3f7/img/ti-nspire-cxii-cxii-cas-side-by-side.jpg
+
+
+Specifications
+
+https://lh3.googleusercontent.com/-CSWeVz6fMnA/XLCVlzm3njI/AAAAAAAAC98/cNsyFpGJUc8q2IOk8q4mmPkPdcgR2lryACK8BGAs/s0/2019-04-12.png
+
+Comments:
+Different sources disagree about the screen size, the official +announcement page gives it as 3.5", although it’s more likely to be 3.2”
+90 MB storage memory: A downgrade from the CX
+396 MHz processor speed: 2.5x faster than the CX, may go up to 500 MHz with overclocking
+
+
+Performance benchmark: https://www.youtube.com/watch?v=FFq5rc-vCgs (Note that the TI-Nspire CX II-T is the European version)
+
+Sources: https://education.ti.com/en/bulletinboard/nspire, https://education.ti.com/en/products/calculators/graphing-calculators/ti-nspire-cx-ii-cx-ii-cas
+
+
This post has been edited 2 times. Last edited by Ta-180m, Apr 12, 2019, 12:42 PM
+ +
+ +
+ +
+
+
+
+
+ +

+ Comment +

+
+
+ +

1 Comment

+ +
+
+ The post below has been deleted. Click to close. +
+
+ This post has been deleted. Click here to see post. +
+
+
+
The TiNspire can show stepwise solutions.
+Check out http://www.TiNspireApps.com to learn how to get those Step by Step Apps onto your TiNspire
+
+
+
+
+

+ + by + TiNSpireGuru, May 23, 2021, 11:54 AM +

+
+ +
+
+
+

Discover your calculator's hidden potential. New blog posts irregularly!

+

avatar

+ + Ta-180m + +
+
Archives
+
+
+
+
+ + + - + January 2020 + + + +
+ +
+ + + + + December 2018 + + + +
+ +
+ + + + + October 2018 + + +
+
+ Oiram CE +
+ +
+
+ +
+
+
Shouts
+
+
+ +
Submit +
+
+ +
+
+
  • + nice blog! But I miss you just talking about calculators... :( +

    Jby + babyzombievillager, Nov 23, 2020, 9:07 AM

  • + cool, ill check it out +

    Jby + piphi, Apr 7, 2020, 4:21 PM

  • + New blog ("alpha" version) available now!
    +
    +https://aops.com/community/c1086531 +

    Jby + Ta180m, Mar 26, 2020, 9:51 PM

  • + New blog? +

    Jby + piphi, Feb 20, 2020, 1:33 PM

  • + Delayed due to CSS issues, but will be up soon! +

    Jby + FarmerJoe279, Feb 13, 2020, 10:18 PM

  • + Where is the new blog? +

    Jby + fuegocaliente, Feb 7, 2020, 2:27 PM

  • + If you want more information see https://github.com/ndless-nspire/Ndless/issues/177 +

    Jby + Ta-180m, Oct 16, 2019, 2:26 PM

  • + And they can't make Ndless because they don't have OS 5.0 running on emulator +

    Jby + Ta-180m, Oct 16, 2019, 2:24 PM

  • + The main problem is that the Ndless devs can't boot OS 5.0/5.1 on emulator because they need Ndless to get boot images +

    Jby + Ta-180m, Oct 16, 2019, 2:23 PM

  • + Unfortunately, there's not been too much progress... +

    Jby + Ta-180m, Oct 16, 2019, 2:22 PM

  • + Hey guys, someone has news about the Ndless development for the 5.0/5.1 OS (nspire cx II)? +

    Jby + tpougy, Oct 15, 2019, 11:33 PM

  • + @bobcat1337 there are some programs out there that can let you view +PDFs on your Nspire. They require Ndless and one such is nPDF (http://www.omnimaga.org/ti-nspire-projects/npdf-a-document-viewer-for-the-nspire/) +

    Jby + FarmerJoe279, Oct 10, 2019, 8:12 AM

  • + Does Ndless work on ti-nspire cx ii? +

    Jby + udit_parikh, Sep 22, 2019, 7:51 PM

  • + can you put word documents into the ti nspire cx? mine doesn't allow me + version 4.5 what calculator should I By to upload pdf and word +documents +

    Jby + bobcat1337, Jun 10, 2019, 5:59 PM

  • + new post soon? +

    Jby + piphi, May 31, 2019, 11:13 PM

  • + Some suggestions: http://tiwizard.com/downloads/ +

    Jby + Ta-180m, Apr 27, 2019, 12:02 PM

  • + The TI-84 Plus has some good games, but you'll have to tolerate the black and white display +

    Jby + Ta-180m, Apr 26, 2019, 4:58 PM

  • + Are there any good games for a regular TI-84 Plus? Or are most of the games for a TI-Nspire or a TI-84 Plus CE? +

    Jby + piphi, Apr 24, 2019, 6:50 PM

  • + Just got SMB1 running on my Nspire!
    +Time for some speedrunning... +

    Jby + FarmerJoe279, Apr 18, 2019, 9:15 PM

  • + 100 MB vs. 90 MB, so not too bad of a downgrade +

    Jby + Ta-180m, Apr 16, 2019, 2:02 PM

  • + How much RAM does the TI-Nspire CX have? And how much RAM does the TI-Nspire CX II have? +

    Jby + piphi, Apr 16, 2019, 12:29 PM

  • + https://www.cemetech.net/forum/viewtopic.php?t=6230 +

    Jby + Ta-180m, Apr 12, 2019, 8:48 AM

  • + long time, no see +

    Jby + FarmerJoe279, Apr 12, 2019, 8:25 AM

  • + Wow cool CSS! +

    Jby + Emathmaster, Jan 7, 2019, 7:21 PM

  • + New blog post! Tetris for the TI-84 Plus CE +

    Jby + Ta-180m, Dec 7, 2018, 3:23 PM

  • + From the pictures in this blog TI-Connect CE does look cleaner than TI-Nspire Computer Link +

    Jby + piphi, Nov 26, 2018, 1:07 PM

  • + Is it just me, or does the TI-Connect CE software look cleaner and more modern than the Nspire software? +

    Jby + FarmerJoe279, Nov 21, 2018, 2:17 PM

  • + New Entry: Slime Volleyball!! +

    Jby + FarmerJoe279, Nov 20, 2018, 9:37 PM

  • + wow..... +

    Jby + piphi, Nov 20, 2018, 6:16 PM

  • + There's also a Lua version of it: https://www.ticalc.org/archives/files/fileinfo/457/45729.html
    +Though it's in 2D, it has many features ranging from dungeons to bow and arrows. +

    Jby + FarmerJoe279, Nov 20, 2018, 3:09 PM

  • + Yeah, take a look at this: https://www.ticalc.org/archives/files/fileinfo/460/46054.html
    +You need Ndless and it's missing a lot of functionality... but it's still Minecraft! +

    Jby + Ta-180m, Nov 20, 2018, 2:13 PM

  • + Can you actually download minecraft on a TI-Nspire? +

    Jby + piphi, Nov 20, 2018, 12:34 PM

  • + Yeah, check out this link: https://www.ticalc.org/pub/83plus/ +

    Jby + Ta-180m, Nov 10, 2018, 2:05 PM

  • + I are there any downloadable good games for a TI-84 Plus (not a TI-84 Plus CE)? +

    Jby + piphi, Nov 9, 2018, 5:37 PM

+ 59 shouts +
+
+
Blog Stats
+
+
+
+
    +
  • + Blog created: + Sep 13, 2018 +
  • +
  • + Total entries: + 19 +
  • +
  • + Total visits: + 23462 +
  • +
  • + Total comments: + 21 +
  • + +
+
+
+
+
+
Search Blog
+
+
+
+
+
+ +
+ +
+
+ +
+
+
+ +
+ Invalid username +
+ +
+ Login to AoPS +
+
+
+
+ +
+
+ +
+
+
+
+ +
+
+ +
+
+
+
+
+
+
+ + + +
+ +
+
+
+ + + +
+ + + + + + + + + + + + + + + + + +
+
a
w
m
E
+
+
\ No newline at end of file diff --git a/Download/Calculators A First Look at the TI-Nspire CX II_files/438baaf7bb663380be30de956401aa0e669650e2.png b/Download/Calculators A First Look at the TI-Nspire CX II_files/438baaf7bb663380be30de956401aa0e669650e2.png new file mode 100644 index 0000000..225f7c9 Binary files /dev/null and b/Download/Calculators A First Look at the TI-Nspire CX II_files/438baaf7bb663380be30de956401aa0e669650e2.png differ diff --git a/Download/Calculators A First Look at the TI-Nspire CX II_files/726379.css b/Download/Calculators A First Look at the TI-Nspire CX II_files/726379.css new file mode 100644 index 0000000..ff36b23 --- /dev/null +++ b/Download/Calculators A First Look at the TI-Nspire CX II_files/726379.css @@ -0,0 +1,531 @@ +@import url("https://fonts.googleapis.com/css?family=Titillium+Web:100,200,300,375,400,500,600,700,800,900"); +@import url("https://fonts.googleapis.com/css?family=VT323:100,200,300,375,400,500,600,700,800,900"); +body { +font-family:'Titillium Web', sans-serif; +} + + +#navigation_box{ +height:40px; +position:fixed; +top:0; +border-style:none; +padding:0; +transition:0.25s; +color:rgba(0,0,0,0); +} +#left_navigation_box{ +color: rgba(0,0,0,0); +padding:0; +} +#right_navigation_box{ +color: rgba(0,0,0,0); +} +#navigation_box a{ +font-size:18px; +padding:10px; +padding-top:13px; +padding-bottom:13px; +transition:0.25s; +font-family:'Titillium Web', sans-serif; +font-weight:100; +} +#navigation_box a:nth-child(2){ +border-left-style:solid; +border-right-style:solid; +border-width:1px; +border-color:#f2f2f2; +} +#navigation_box a:nth-last-child(2){ +border-right-style:solid; +border-width:1px; +border-color:#f2f2f2; +} +#right_navigation_box a:nth-child(3){ +border-right-style:solid; +border-right-width:1px; +border-color:#f2f2f2; +} +#left_navigation_box a{ +margin-left:-9px; +margin-right:-9px; +} +#right_navigation_box a{ +margin-left:-7px; +margin-right:-7px; +} +#left_navigation_box{ +margin-left:9px; +} +#right_navigation_box { + margin-left:7px; +} +#navigation_box a:hover{ +background-color:#f2f2f2; +color:#20458c; +} + +#header{ +margin-top:34px; +} +#wrapper{ +border-style:none; +width:100%; +background: #f9f9f9 !important; +padding:0; +} +#content{ +max-width:1100px; +background: #f9f9f9 !important; +margin:auto; +} +#header{ +border-style:none; +height: calc( 50vh - 34px); +margin-top: 34px; +background: black url("https://cdn.artofproblemsolving.com/images/1/5/2/1526cab286b14e1b92ce583f7d82cc322ad746a2.gif") no-repeat fixed top / 40%; + +} +#header h1{ +font-size: 150px; +height: 150px; +text-decoration: none; +cursor: default; +font-family: VT323; +font-weight: 25; +padding:0; +margin-top: calc(30vh - 82px); +color: white; +word-wrap: break-word; +} + + +#feed-wrapper{ +display:none; +} +#main{ +width:calc(100% - 270px); +} + +#post-new-entry-p img{ +display:none; +} +#post-new-entry-p{ +text-align:center; +margin-bottom:0; +} +.entry{ +margin-top:15px !important; +padding-bottom:10px !important; +border-style:none !important +} +.entry h1 a{ +font-size:40px; +font-weight:200; +line-height:40px; +} +.entry h2{ +color:black; +font-weight:375; +padding-left: 4px; +} +.entry h2 img{ +display:none; +} +.entry h2 strong a{ +color:black !important; +font-weight:375 !important; +} +.entrywrap{ +margin-left:2px !important; +} +.message{ +margin-left:4px; +border-style:none !important; +border-left-style:solid !important; +margin-left:4px !important; +background-color:#eaf0fa !important; +border-left-width:5px !important; +border-left-color:#20458c!important; +margin:0 !important; +padding:7px !important; +color:black; +} +.entrywrap .actions{ +padding-left:0; +} +.entrywrap{ +background-color:transparent !important; +padding:0!important; +border-style:none !important; +} +.entrywrap .cmty-post-edit-info{ +display:none !important; +} + +.aops-scroll-outer.aops-scrollbar-not-visible.blog-scroll-outer{ +padding:0; +} +.aops-scroll-content{ +margin-right:0 !important; +width:100% !important; +} +.aops-scroll-outer.aops-scrollbar-not-visible.blog-scroll-outer .aops-scroll-bar{ +display:none !important; +} +.aops-scroll-outer.blog-scroll-outer.aops-scrollbar-visible .aops-scroll-bar{ +display:none !important; +} +.aops-scroll-outer.blog-scroll-outer.aops-scrollbar-visible{ +padding:0; +} +.aops-scroll-content li{ +padding:6px !important; +} +.aops-scroll-inner{ +width:240px !important; +} +.blog-shout-wrapper{ +border-width:1px !important; +} +.blog-tag-wrapper{ +border-width:1px !important; +} +#message-box{ +width:242px !important; +background-color:transparent !important; +border-width:1px; +border-color:black; +box-sizing: none !important; +} +#message{ +width:242px !important; +margin-right:0; +border-width:1px; +border-color:black !important; +background-color:transparent; +} +#shouts-widget .widget-content{ +width:240px !important; +} +.blog-shout-wrapper{ +width:240px !important; +border-color:#7a7a7a !important; +} +#tags-widget .widget-content{ +width:240px !important; +} +.blog-tag-wrapper{ +width:240px !important; +border-color:#7a7a7a !important; +} +.cmty-subject-input{ +font-family:'Titillium Web', sans-serif; +font-size:15px; +padding-left:3px !important; +} +.cmty-post-textarea{ +padding:3px; +font-family:'Titillium Web', sans-serif; +font-size:15px; +} +.cmty-posting-button-row{ +background-color:white; +border-color:white; +} +.cmty-bbcode-other.clickable.cmty-bbcode-btn{ +color:black; +} +.aops-modal-frame.cmty-posting-modal.ui-draggable{ +border-color:white; +} +#side{ +float:left; +} +#main{ +float:right; +} +#archive-widget{ +margin-top:5px; +padding-bottom:10px !important; +margin-bottom:20px !important; +border-bottom-style:dashed; +border-bottom-color: #7a7a7a; +border-bottom-width: 1px; +} +#archive-widget img{ +display:none; +} +#archive-widget .widget-header .widget-title{ +font-weight:50; +font-size:30px; +margin-bottom:5px; +color:black !important; +} +#shouts-widget .widget-header .widget-title{ +font-weight:50; +font-size:30px; +margin-bottom:10px; +color:black !important; +} +#shouts-widget{ +margin-top:5px; +padding-bottom:30px !important; +margin-bottom:20px !important; +border-bottom-style:dashed; +border-bottom-color: #7a7a7a; +border-bottom-width: 1px; +} +.blog-num-shouts{ +display:none!important; +} +#tags-widget{ +margin-top:5px; +padding-bottom:10px !important; +margin-bottom:20px !important; +border-bottom-style:dashed; +border-bottom-color: #7a7a7a; +border-bottom-width: 1px; +} +#tags-widget .widget-header .widget-title{ +font-weight:50; +font-size:30px; +margin-bottom:5px; +color:black !important; +} +#tags-widget .widget-header .widget-title{ +font-weight:50; +font-size:30px; +margin-bottom:5px; +color:black !important; +} +#stats-widget{ +margin-top:5px; +padding-bottom:20px !important; +margin-bottom:20px !important; +border-bottom-style:dashed; +border-bottom-color: #7a7a7a; +border-bottom-width: 1px; +} +#stats-widget img{ +display:none; +} +#stats-widget .widget-header .widget-title{ +font-weight:50; +font-size:30px; +margin-bottom:5px; +color:black !important; +} +#search-widget .widget-header{ +background-color:transparent; +display:none; +} +#search-widget .widget-settings{ +display:none; +} +#search-widget .widget-content{ +background-color:transparent; +border-style:none; +padding:0; +} +#search-widget .widget-footer{ +background-color:transparent; +border-style:none; +} +#blog_searchform input{ +background-color:transparent; +} +#blog_searchform fieldset{ +border-style:none !important; +width:248px; !important;; +display:inline-block !important; +margin:0 !important; +} +#blog_searchform fieldset input#blog_keywords{ +width:calc(100% - 60px); +font-family:'Titillium Web', sans-serif; +border-color:black; +color:black; +} +#blog_searchform fieldset div{ +width:4; +float:right; +margin-top:0 !important; +border-color:black !important; +} +#blog_searchform fieldset div input{ +height:22px; +font-size:12px; +font-family:'Titillium Web', sans-serif; +font-weight:300; +margin-top:0; +border-color:black; +color:black; +} +#blog_searchform{ +margin:0; +} +#search-widget .widget-footer{ +display:none; +} + +#search-widget{ +margin:0 !important; +padding-bottom:px; +} +#search-widget .widget-content{ +margin:0; +} +#search-widget{ +position:fixed !important; +z-index:1000000000000000000 !important; +top:4px !important; +right:50px !important; +padding:0 !important; +} +#right_navigation_box{ +right:210px; +} +#search-widget .button2{ +display:inline; +} + +#message-box{ +height:99px !important; +} +#user-menu-widget{ +padding-bottom:10px !important; +border-bottom-style:dashed; +border-color:#7a7a7a; +border-width:1px; +margin-bottom:17px!important; +} +.user-full a{ +font-weight:300 !important; +} +.message{ +word-wrap:break-word; +} + +#right_navigation_box{ +right:210px; +} + +.entry h2 a { + color: white; +} +a { + +} +a:hover { + color: orange !important; + transition: all 0.5s; + -webkit-transition: all 0.5s; + -moz-transition: all 0.5s; + -o-transition: all 0.5s; +} + +div.total-posts , div.total-posts a{ + color: white; +} + +#blog_keywords{ +border-style:none; +font-size:18px; +font-weight:300; +color:white !important; +} +#blog_keywords::placeholder{ +color:white; +font-style:italic; +} +#main::after { + /* Rule extends %modal-font */ + content: "CSS credit to Mathlete2017"; + position: relative; + top: 2em; + display: block; + color: #aaa; + font-size: 6pt; + text-align: center; +} + +/*Loading bar*/ +@keyframes loading{ + 0%{ + width: 0px; + top: calc(50vh - 50px); + font-family: VT323; + content: "Loading..."; + transition: ease; + text-align: center; + } + 75%{ + width: 300px; + top: calc(50vh - 50px); + font-family: VT323; + content: "Loading..."; + text-align: center; + } + 75.1%{ + width: 300px; + top: calc(50vh - 50px); + font-family: VT323; + content: "Done!"; + text-align: center; + } + 85%{ + top: calc(50vh - 100px); + width: 300px; + font-family: VT323; + content: "Done!"; + text-align: center; + } + 100%{ + top: calc(150vh - 50px); + width: 300px; + font-family: VT323; + content: "Done!"; + text-align: center; + } +} +html::before{ + font-family: VT323; + content: "Loading..."; + height: 100px; + position: fixed !important; + margin: 0px; + padding: 0px; + top: calc(150vh - 50px); + left: calc(50vw - 150px); + background-color: black; + color: white !important; + line-height: 100px; + white-space: nowrap; + font-size: 50px !important; + z-index: 1000000000 !important; + animation: loading 2s ease !important; + width: 300px !important; + box-shadow: 0px 0px 0px 5px white, 0px 50vw 0px calc(50vw + 50vh - 50px) black, 0px 0px 0px 5px white !important; +/*The box shadow that makes the border is put before and after the background shadow, because of order issues (Firefox displays the first one on top, chrome displays the last one on top)*/ + display: block !important; +} +html::after{ + font-family: VT323; + content: "Loading... please wait"; + height: 100px; + width: 0px; + position: fixed !important; + margin: 0px; + padding: 0px; + top: calc(150vh - 50px); + left: calc(50vw - 150px); + background-color: white; + color: black !important; + line-height: 100px; + z-index: 1000000001 !important; + white-space: nowrap; + font-size: 50px !important; + animation: loading 2s ease !important; + overflow: hidden !important; +} \ No newline at end of file diff --git a/Download/Calculators A First Look at the TI-Nspire CX II_files/aops_core.js b/Download/Calculators A First Look at the TI-Nspire CX II_files/aops_core.js new file mode 100644 index 0000000..0ae901e --- /dev/null +++ b/Download/Calculators A First Look at the TI-Nspire CX II_files/aops_core.js @@ -0,0 +1,10 @@ +!function(i){(i.isEpicFailing=function(){return"undefined"==typeof $},i.isEpicFailing())&&(document.getElementById("epicfail").style.display="block")}(window.AoPS||{}); +;$(document).on("ready",(function(){if(jQuery.support.cors=!0,document.getElementById("side-column")&&($("#breadcrumbs-wrapper").addClass("clickable-breadcrumb"),$("#breadcrumbs-wrapper").click((function(){window.innerWidth<840&&($("#side-column-wrapper").toggleClass("active"),$("#submenu-icon").toggleClass("open"))})),$("#side-column .dropdown-box > .title").click((function(e){$(e.currentTarget).parent().toggleClass("open")})),$("#side-column .menu").click((function(e){$("#side-column .submenu-wrapper").removeClass("open"),$(e.currentTarget).find(".submenu-wrapper").addClass("open")}))),$(".infobar").click((function(e){e.target.className.indexOf("infobar-hide")>=0&&($(this).hide(),AoPS.fixFooter(),$("#main-content").trigger($.Event("resize")),$.ajax({url:"/ajax.php",timeout:5e3,type:"post",data:{a:"infobar-hide",key:$(this).data("key")},success:function(e){}}))})),$("#menu-myaops-toggle").click((function(e){$("#menu-myaops").toggle(),e.preventDefault(),e.stopPropagation()})),!document.getElementById("side-column")){var e=document.getElementById("submenu-icon");e&&e.parentNode.removeChild(e)}AoPS.fixFooter(),$(window).on("resize.fix_footer",(function(){AoPS.fixFooter()})),AoPS.login.initialize(),AoPS.inputPlaceholders.initialize(),document.createElementNS&&document.createElementNS("http://www.w3.org/2000/svg","svg").createSVGRect?$("html").addClass("svg"):$("html").addClass("no-svg");var o=$("body"),n=$("#top-bar"),t=$("#main-logo"),i=!1,a=!1,r=!1,s=!1;n.on("mousemove.start_loc",(function(){i=!0})),t.on("mousemove.start_loc",(function(){s=!0})),o.on("mousemove.start_loc",(function(){n.off("mousemove.start_loc"),o.off("mousemove.start_loc"),t.off("mousemove.start_loc"),setTimeout((function(){i=!1,s=!1}),350)})),n.on("mouseenter",(function(){a=!0,setTimeout((function(){!i&&a&&$("#header-popin").animate({opacity:1},150)}),350)})),t.on("mouseenter",(function(){r=!0,setTimeout((function(){!s&&r&&$("#header-popin").animate({opacity:1},150)}),350)})),n.on("mouseleave",(function(){a=!1})),t.on("mouseleave",(function(){r=!1})),$("#header").on("mouseleave",(function(){$("#header-popin").animate({opacity:0},150)})),n.find(".site").hover((function(){var e=$(this);e.addClass("dropdown-visible");var o=e.find(".site-dropdown-wrapper");if(o.length){var n=$(window).width(),t=o.outerWidth(),i=o.offset().left+t+10-n;i>0&&o.css("left",-100-i+"px")}}),(function(){$(this).removeClass("dropdown-visible").find(".site-dropdown-wrapper").css("left","")})),AoPS.checkPrivacy()})),$(window).on("load",(function(){AoPS.fixFooter()})),AoPS.checkPrivacy=function(){if(document.URL.indexOf("/privacy")<0&&AoPS.session&&AoPS.session.show_privacy){var e=["

We've made a few updates to our privacy policy. These updates went into effect on Friday, February 4, 2022.

","

Click ",'here ',"to learn more about the new ",'artofproblemsolving.com policy.

'],o=1,n=document.location.href;(n.indexOf("community")>0||n.indexOf("alcumus")>0||n.indexOf("baeditor")>0||n.indexOf("class/")>0)&&(o=1e3),setTimeout((function(){alert(e.join(""),{onButtonClick:function(){$.post("/ajax.php",{action:"update-accepted"})},max_width:"600px",closeX:!1,force_response:!0})}),o)}},window.classicAlert=window.alert,window.alert=function(e,o){AoPS.hasOwnProperty("Ui")?(AoPS.Ui.Modal.closeTopModal(),void 0===o?AoPS.Ui.Modal.showAlertQuick(e):AoPS.Ui.Modal.showAlertQuick(e,o)):window.classicAlert(e)},AoPS.setBreadcrumbs=function(e){for(var o,n=[],t=0;t'+o+""),n.push(''+o+"");$(".crumb-wrapper").html(n.join(' '))},AoPS.fixFooter=function(){var e=$(window).height(),o=$("body").hasClass("small-footer");e-=$("#header-wrapper").outerHeight(),e-=$("#top-bar").outerHeight(),$("#breadcrumbs-wrapper:visible").length||(e-=26),e-=o?$("#small-footer-wrapper").outerHeight():$("#main-footer").outerHeight(),$("#main-content").css("min-height",e),o&&$("#small-footer-wrapper").show();var n=document.getElementById("side-column-wrapper");n&&$(n).css("min-height",e),AoPS.fixSidebarOnce()},AoPS.makeSidebarAdjustment=function(e,o,n){if(e&&o&&n){var t=0;o.children().each((function(){t+=$(this).outerHeight(!0)})),e.height()!==Math.max(n.outerHeight(!0),t)&&e.css("height",Math.max(n.outerHeight(!0),t))}},AoPS.fixSidebarOnce=function(){var e=$("#side-column-wrapper"),o=$("#side-column"),n=$("#main-column");AoPS.makeSidebarAdjustment(e,o,n)},AoPS.fixSidebarAnimatedOnce=function(e){AoPS.fixSidebarAnimatedOnceOnElement(e,"main-column")},AoPS.fixSidebarAnimatedOnceOnElement=function(e,o){var n=$("#side-column-wrapper"),t=$("#side-column"),i=2+e?e/15:0,a=0;!function e(){a>i||(a++,AoPS.makeSidebarAdjustment(n,t,$("#"+o)),setTimeout(e,15))}()},AoPS.fixSidebarClassObserver=function(e){var o,n=$("#side-column-wrapper"),t=$("#side-column"),i=$("#main-column");e||(e=[]),o=e.attributeFilter?{attributeFilter:e.attributeFilter,attributes:!0,childList:!0,subtree:!0}:{attributeFilter:["class"],attributes:!0,childList:!0,subtree:!0};new MutationObserver((function(){if(e.animation_length){var o=2+e.animation_length/15,a=0;!function e(){a>o||(a++,AoPS.makeSidebarAdjustment(n,t,i),setTimeout(e,15))}()}else AoPS.makeSidebarAdjustment(n,t,i)})).observe(document.getElementById("main-column"),o),e.animation_length?AoPS.fixSidebarAnimatedOnce(e.animation_length/15):AoPS.makeSidebarAdjustment(n,t,i)},AoPS.login={ajaxing:!1,$login_form:$("#login-form"),logout_url:AoPS.bootstrap_data&&AoPS.bootstrap_data.logout_url,user_clicked_logout:!1,user_clicked_login:!1,modal:null,initialize:function(){$(document).on("click",".online-login-button",AoPS.login.display),$("#header-logout, #small-header-logout").on("click",AoPS.login.logout),$("#register-button").on("click",(function(e){e.preventDefault(),AoPS.login.register()})),$("#login-cancel-button").on("click",AoPS.login.close),$("#login-button").on("click",AoPS.login.login),$("#login-password").on("keypress",(function(e){13===e.keyCode&&AoPS.login.login()})),$("#login-username").on("keypress",(function(e){if(13===e.keyCode){var o=document.getElementById("login-username").value;document.getElementById("login-password").value.length?AoPS.login.login():o.length&&document.getElementById("login-password").focus()}}))},logout:function(e){if(!AoPS.login.ajaxing){e.preventDefault(),e.stopPropagation(),AoPS.login.user_clicked_logout=!0,AoPS.login.ajaxing=!0;var o=AoPS.protected_url+"ajax.php",n=location.protocol;void 0!==n&&n.indexOf("https")<0&&(o=o.replace("https","http")),$.ajax({url:o,timeout:1e4,type:"post",crossDomain:!0,xhrFields:{withCredentials:!0},data:{a:"logout"},success:function(e){AoPS.login.ajaxing=!1,AoPS.login.logout_url?window.location=AoPS.login.logout_url:window.location.hash?window.location.reload(!0):window.location.href=window.location.href}})}},register:function(){var e=document.getElementById("login-username").value||"",o=document.getElementById("login-password").value||"";if("function"==typeof(AoPS.Register||{}).display)AoPS.login.close(),AoPS.Register.display({username:e,password:o});else{var n=document.getElementById("registration-form");n.username.value=e,n.password.value=o,n.submit()}},loggedin:function(){},login:function(e){if(!AoPS.login.ajaxing){AoPS.login.user_clicked_login=!0,AoPS.login.ajaxing=!0;var o=AoPS.protected_url+"ajax.php";if(void 0!==e&&!0===e){var n=location.protocol;void 0!==n&&n.indexOf("https")<0&&(o=o.replace("https","http"))}$.ajax({url:o,timeout:1e4,type:"post",data:{a:"login",username:$("#login-username").val(),password:$("#login-password").val(),stay:$("#login-stay-logged-in").is(":checked")},crossDomain:!0,xhrFields:{withCredentials:!0},success:function(e){setTimeout((function(){AoPS.login.ajaxing=!1}),1e3),e.error_msg?($("#login-form > .error").show().html(e.error_msg),e.error_msg.toLowerCase().indexOf("account deactivated")>=0&&$.ajax({url:o,timeout:1e4,type:"post",data:{a:"user-get-registration-disabled",username:$("#login-username").val()},crossDomain:!0,xhrFields:{withCredentials:!0},success:function(e){$("#register-button").hide(),window.location.href.includes("register.php")&&window.location.reload(!0)}})):e.error_code?$("#login-from > .error").show().html(e.error_code):document.location.href.indexOf("com/online?login")>0?document.location="/online":window.location.hash?window.location.reload(!0):window.location.href=window.location.href},error:function(o){void 0!==e&&!0===e?(AoPS.login.user_clicked_login=!1,setTimeout((function(){AoPS.login.ajaxing=!1}),1e3),$("#login-form > .error").show().html("There was an error communicating with the server. Please try again.")):(AoPS.login.ajaxing=!1,AoPS.login.login(!0))}})}},close:function(){AoPS.login.modal&&(AoPS.Ui.Modal.removeModal(AoPS.login.modal),AoPS.login.modal=null),$(document).off("keyup",AoPS.login.checkKeyPress)},display:function(e){e=!1!==e,0===AoPS.login.$login_form.length&&(window.location.href="/user/login.php?redirect="+encodeURIComponent(window.location.href)),$("#login-cancel-button").toggle(e),$.ajax({url:"/ajax.php",timeout:5e3,type:"get",data:{a:"check-invalid-registration-cookie"},success:function(e){e.response&&$("#register-button").hide()}}),$("#login-password").attr("type","password"),AoPS.login.modal&&AoPS.Ui.Modal.removeModal(AoPS.login.modal),AoPS.login.modal=AoPS.login.$login_form.showPlainModal({max_width:"500px",closeX:e,force_response:!e,scrollable:!0}),setTimeout((function(){$("#login-username").focus()}),1),e&&$(document).on("keyup",AoPS.login.checkKeyPress)},checkKeyPress:function(e){27===e.keyCode&&AoPS.login.close()},onUserAjaxLogout:function(){AoPS.session.logged_in||($("#header .myaops").remove(),$("#header-login").show())},onUserAjaxLogin:function(){document.location.reload(!0)}},$((function(){var e=$(".menubar-label, .login-dropdown"),o=!1;e.on("click",(function(e){o&&(e.preventDefault(),e.stopPropagation())})).on("mouseover",(function(e){if(o)e.preventDefault();else{var n=$(this);n.prop("hoverTimeout")&&n.prop("hoverTimeout",clearTimeout(n.prop("hoverTimeout"))),n.prop("hoverIntent",setTimeout((function(){n.addClass("open")}),50))}})).on("mouseleave",(function(e){if(o)e.preventDefault();else{var n=$(this);n.prop("hoverIntent")&&n.prop("hoverIntent",clearTimeout(n.prop("hoverIntent"))),n.prop("hoverTimeout",setTimeout((function(){n.removeClass("open")}),50))}}));var n=window.navigator.msPointerEnabled?"MSPointerDown":"touchstart";("ontouchstart"in document.documentElement||"MSPointerDown"===n)&&e.each((function(){var t=$(this);this.addEventListener(n,(function(i){if(("MSPointerDown"===n||1===i.touches.length)&&(window.innerWidth>700||t.hasClass("login-dropdown")))if(i.stopPropagation(),t.hasClass("open"))o=!1;else{o=!0,i.target!==this&&i.target.parentNode!==this||i.preventDefault(),e.removeClass("open"),t.addClass("open");document.addEventListener(n,(function e(n){n.stopPropagation(),t.removeClass("open"),document.removeEventListener("touchstart",e),o=!1}))}}),!1)}))})),AoPS.updateLayout=function(){},"undefined"!=typeof Backbone&&(AoPS.Model=Backbone.Model.extend({}),AoPS.Collection=Backbone.Collection.extend({debug:function(){console.log(this),console.log(this.length),console.log(this.models)}}),AoPS.View=Backbone.View.extend({getTemplate:function(e,o){var n=AoPS.View.compileTemplate(e);return $.parseHTML($.trim(n&&n(o)))},compile:function(e){return AoPS.View.compileTemplate(e)},display:function(e,o){this.$el.html($.parseHTML($.trim(e(o))))},debug:function(){console.log("View.model:",this.model),console.log("View.tagName:",this.tagName),console.log("View.className:",this.className),console.log("View.el:",this.el),console.log("View.$el:",this.$el)},hide:function(){this.$el.hide()},show:function(){this.$el.show()},close:function(){this.remove(),this.unbind(),"function"==typeof this.onClose&&this.onClose()},showLoadingModal:function(){this.loadingModal=AoPS.Ui.Modal.showMessage('',{closeX:!1,force_response:!0,frame_class:"loading-modal-frame"})},closeLoadingModal:function(){AoPS.Ui.Modal.closeParticularModal(this.loadingModal)}}),AoPS.View.template_cache={},AoPS.View.compileTemplate=function(e){var o=AoPS.View.template_cache;if(!o.hasOwnProperty(e)){var n=$(e),t=Handlebars.templates&&Handlebars.templates[e.slice(1)];n.length?o[e]=Handlebars.compile(n.html()):t&&(o[e]=t)}return o[e]}),AoPS.inputPlaceholders={initialize:function(){"placeholder"in document.createElement("input")||($("[placeholder]").focus((function(){var e=$(this);e.val()===e.attr("placeholder")&&(e.val(""),e.removeClass("placeholder"))})).blur((function(){var e=$(this);""!==e.val()&&e.val()!==e.attr("placeholder")||(e.addClass("placeholder"),e.val(e.attr("placeholder")))})).blur(),$(["placeholder"]).parents("form").submit(AoPS.inputPlaceholders.clear),AoPS.inputPlaceholders.clear=function(){$("[placeholder]").each((function(){var e=$(this);e.val()===e.attr("placeholder")&&e.val("")}))})},clear:function(){}},AoPS.doFastMathJax=function(e){AoPS.FastMathJax.push(e)},AoPS.FastMathJax={_elements:[],_isProcessing:!1,_process:function(){if(!this._isProcessing)if(this._elements.length){this._isProcessing=!0;var e=$("
").css({position:"fixed",top:"-100vh",left:"-100vw",opacity:0,"z-index":-9999,"pointer-events":"none"}).appendTo($(document.body)),o=this,n=this._elements.splice(0,250);_.each(n,(function(o){o.$hidden=o.$el.clone().removeClass().appendTo(e)})),MathJax.Hub.Queue(["Typeset",MathJax.Hub,e.get(0)]),MathJax.Hub.Queue([function(){_.each(n,(function(e){e.$el.html("").append(e.$hidden.clone()),e.$hidden.remove()})),e.remove(),o._isProcessing=!1,o._process()}])}else this._isProcessing=!1},push:function(e){window.MathJax&&(e instanceof jQuery||_.isArray(e)?_.each(e,_.bind((function(e){this._elements.push({$el:$(e)})}),this)):this._elements.push({$el:$(e)}),setTimeout(_.bind((function(){this._process()}),this),50))}},AoPS.importJavaScript=function(e){var o=document.createElement("script");o.setAttribute("type","text/javascript"),o.setAttribute("src",e),document.getElementsByTagName("head")[0].appendChild(o)},window.number_format=function(e,o,n,t){e=(e+"").replace(/[^0-9+\-Ee.]/g,"");var i,a,r,s=isFinite(+e)?+e:0,l=isFinite(+o)?Math.abs(o):0,c=void 0===t?",":t,u=void 0===n?".":n,d="";return(d=(l?(i=s,a=l,r=Math.pow(10,a),""+(Math.round(i*r)/r).toFixed(a)):""+Math.round(s)).split("."))[0].length>3&&(d[0]=d[0].replace(/\B(?=(?:\d{3})+(?!\d))/g,c)),(d[1]||"").length-1)&&(parseInt(o)||!1)}(t=t||"init_time");if(!1!==i){var a=function(e){if(!document||_.isUndefined(document.cookie)||!navigator||!navigator.cookieEnabled)return!1;for(var o,n=new RegExp("^\\s*"+e+"_init_time\\s*=\\s*(.*?)\\s*$"),t=document.cookie.split(";"),i=0;i=i?function(){if(!e){e=!0;var o=document.createElement("STYLE"),n=document.createTextNode("body {display: none;}");o.appendChild(n),document.head.appendChild(o),console.log("About to refresh the page due to back button use."),setTimeout((function(){window.location.reload(!0)}),2e3)}}():setTimeout((function(){e||(document.cookie=n+"_init_time="+i+"; path=/")}),3e3)}}}}(),AoPS.isUserLimited=function(){return AoPS.user_is_limited},AoPS.user_is_limited=AoPS.hasOwnProperty("session")&&AoPS.session.hasOwnProperty("role")&&-1!==AoPS.session.role.indexOf("limited_user"),AoPS.isUserNew=function(){return AoPS.user_is_new},AoPS.user_is_new=AoPS.hasOwnProperty("session")&&AoPS.session.hasOwnProperty("role")&&-1!==AoPS.session.role.indexOf("new_user"),AoPS.in_academy=AoPS.bootstrap_data&&AoPS.bootstrap_data.hasOwnProperty("in_academy")&&1===parseInt(AoPS.bootstrap_data.in_academy),AoPS.convertSmartQuotes=function(e){return e.replace(/[\u2018\u2019]/g,"'").replace(/[\u201C\u201D]/g,'"').replace(/[\u2013\u2014]/g,"-").replace(/[\u2026]/g,"...")};var gOldOnError=window.onerror;window.onerror=function(e,o,n,t,i){return!!gOldOnError&&gOldOnError(e,o,n)},window.onImageLoad=function(){},window.handlebars=function(e,o){var n="";if(o||(o={}),e instanceof Element)n=e.innerHTML;else if("undefined"!=typeof jQuery&&e instanceof jQuery)n=e.html();else{if("string"!=typeof e)return!1;try{var t=document.querySelector(e);n=null===t?e:t.innerHTML}catch(r){n=e}}if("undefined"!=typeof Handlebars)return Handlebars.compile(n)(o);for(var i in o){var a=new RegExp("{{"+i+"}}","g");n=n.replace(a,o[i])}return n},AoPS.handleLocationHash=function(e){var o=function(e){var o=e.offset().top,n=$("#main-menubar").outerHeight();return Math.min(Math.floor(o-n),Math.max($("html").prop("scrollHeight")-$(window).height(),$("body").prop("scrollHeight")-$(window).height()))},n={};function t(e){if(!n.animating){n.animating=!0;var i=o(e);$("html, body").animate({scrollTop:i},{duration:0,step:function(n,t){t.end=o(e)},always:function(){n.animating=!1,Math.abs($(window).scrollTop()-o(e))>n.threshold&&t(e)}})}}setTimeout((function(){if(location.hash){var e=$(document).find(location.hash);e.length&&t(e)}}),0)},AoPS.handleLocationHash2=function(e,o){o||(o={});var n=function(e){var o=$("#header"),n=$("#main-menubar"),t=n.outerHeight();t=$(window).width()<=700?0:"fixed"===o.css("position")?n.outerHeight():n.outerHeight()+70;var i=e.offset().top;return Math.min(Math.floor(i-t),Math.max($("html").prop("scrollHeight")-$(window).height(),$("body").prop("scrollHeight")-$(window).height()))},t={};function i(e){if(!t.animating){t.animating=!0;var a=n(e);$("html, body").animate({scrollTop:a},{duration:o&&o.duration?o.duration:0,step:function(o,t){t.end=n(e)},always:function(){t.animating=!1,Math.abs($(window).scrollTop()-n(e))>5&&(o.duration=0,i(e))}})}}setTimeout((function(){if(e)e.length&&i(e);else if(location.hash){var o=$(document).find(location.hash);o.length&&i(o)}}),0)}; +;AoPS.hasOwnProperty("Ui")&&AoPS.hasOwnProperty("ui_main_loaded")||(AoPS.Ui=function(e){var t;t=$(window).height(),setInterval((function(){var e=$(window).height();e!=t&&(t=e,$(window).trigger("resize"))}),100),$(window).on("resize",(function(){t=$(window).height()})),e.buildTableRow=function(e){var t=$(""),o=(e=_.defaults(e,{is_header:!1})).is_header?"th":"td";return _.each(e.data,(function(e){t.append($.parseHTML("<"+o+">"+e+""))})),e.is_header&&t.addClass("aops-no-sort"),t},e.buildTable=function(t){var o,s,a=0,i=!1,n=!1;return t=_.defaults(t,{sortable:!1,table_id:"",sort_on_build:!1,table_class:"",sort_col:0,sort_order:"asc",repeating_header:0}),o=$("",{id:t.table_id,class:t.table_class}),s=$("").appendTo(o),t.hasOwnProperty("footer")&&$("").prependTo(o).append(e.buildTableRow({data:t.footer,is_header:!0})),t.hasOwnProperty("header")&&$("").prependTo(o).append(e.buildTableRow({data:t.header,is_header:!0})),t.hasOwnProperty("rows")&&_.each(t.rows,(function(o){s.append(e.buildTableRow({data:o})),a++,t.repeating_header>0&&a%t.repeating_header==0&&s.append(e.buildTableRow({data:t.header,is_header:!0}))})),t.sortable&&(o.tablesorter(t.sort_on_build?{sortList:t.hasOwnProperty("sortList")?t.sortList:[[t.sort_col,"asc"===t.sort_order?0:1]]}:{}),t.repeating_header>0&&(o.bind("sortStart",(function(){i?(i=!1,n=!0):(i=!0,s.find(".aops-no-sort").remove(),o.trigger("update"))})),o.bind("sortEnd",(function(){n?n=!1:s.find("tr:nth-child("+t.repeating_header+"n)").after(e.buildTableRow({data:t.header,is_header:!0}))})))),o},e.Flyout=function(){var e,t={},o=[],s={width:300,height:150,class:"",time:5e3,animation_time:1e3,close_function:"close"};function a(){if(o.length&&document.body){var e=document.getElementById("flyout");if(!e||!e.parentNode){var t=o.shift();i(t.html,t.opts)}}}function i(o,a){a=$.extend({},s,a),e=a;var i=document.createElement("div");i.id="flyout",i.style.width=a.width+"px",i.style.height=a.height+"px",i.style.right=-a.width+"px",i.className=a.class,i.innerHTML='
'+o,document.body.appendChild(i),$("#flyout").animate({right:0},a.animation_time,(function(){t.timeout=setTimeout((function(){n()}),a.time)}))}function n(){$("#flyout").animate({right:-e.width},e.animation_time,(function(){t.timeout=0;var e=document.getElementById("flyout");e&&(e.parentNode.removeChild(e),a())}))}return t.display=function(e,s){document.body?(t.close(),o=[],i(e,s)):(AoPS.ErrorUtil.log("E_EARLY_FLYOUT"),t.queue(e,s))},t.queue=function(e,t){o.push({html:e,opts:t}),a()},t.close=function(){if(document.body){t.timeout&&clearTimeout(t.timeout),o=[];var e=document.getElementById("flyout");e&&e.parentNode&&e.parentNode.removeChild(e)}},t.closeWithoutClearingQueue=function(){document.body&&(t.timeout&&clearTimeout(t.timeout),n())},$(a),t}(),$.fn.extend({showUnstyledModal:function(e){var t=_.defaults({$obj:this},arguments.length>0?arguments[0]:{});return this.show(),AoPS.Ui.Modal.show$Object(t)},showPlainModal:function(e){var t=_.defaults({body:this},arguments.length>0?arguments[0]:{});return this.show(),AoPS.Ui.Modal.show(t)},showPlainBodyModal:function(e){var t=_.defaults({body:this},arguments.length>0?arguments[0]:{});return this.show(),AoPS.Ui.Modal.showPlainBody(t)},showModal:function(e){var t=arguments.length>0?arguments[0]:{};return this.show(),AoPS.Ui.Modal.showMessage(this,t)},showModalQuick:function(e){var t=arguments.length>0?arguments[0]:{};return this.show(),AoPS.Ui.Modal.showMessageQuick(this,t)},showPlainAlert:function(e){var t=_.defaults({body:this,type:"alert"},arguments.length>0?arguments[0]:{});return this.show(),AoPS.Ui.Modal.show(t)},showAlertQuick:function(e){var t=arguments.length>0?arguments[0]:{};return this.show(),AoPS.Ui.Modal.showAlertQuick(this,t)},showAlert:function(e){var t=arguments.length>0?arguments[0]:{};return this.show(),AoPS.Ui.Modal.showAlert(this,t)},cloneToPlainModal:function(e){var t=this.clone(!0),o=_.defaults({body:t,type:"message"},arguments.length>0?arguments[0]:{});return t.show(),AoPS.Ui.Modal.showPlain(o)},cloneToUnstyledModal:function(e){var t=this.clone(!0),o=_.defaults({$obj:t},arguments.length>0?arguments[0]:{});return this.show(),AoPS.Ui.Modal.show$Object(o)},cloneToModal:function(e){var t=this.clone(!0),o=_.extend({},arguments.length>0?arguments[0]:{});return t.show(),AoPS.Ui.Modal.showMessage(t,o)},replaceTopModalPlain:function(e){var t=_.defaults({body:this,frame_class:"",type:"message"},arguments.length>0?arguments[0]:{}),o=AoPS.Ui.Modal.replace(t);return this.show(),o},replaceTopModalUnstyled:function(e){var t=_.defaults({$obj:this,type:"$"},arguments.length>0?arguments[0]:{}),o=AoPS.Ui.Modal.replace(t);return this.show(),o},replaceTopModal:function(e){var t=_.extend({type:"message",frame_class:"aops-modal-standard",body:this},arguments.length>0?arguments[0]:{}),o=AoPS.Ui.Modal.replace(t);return this.show(),o}});var o=1e5;return e.Modal={active_modals:[],fitMasks:function(){function e(){var e={height:$(window).outerHeight(),width:$(window).outerWidth()};function t(t,o){var s=t.options["max_"+o];return"%"===s.substr(s.length-1,1)?Math.min(parseFloat(s)/100*e[o],t.options.overall_max_width):Math.min(parseFloat(s),t.options.overall_max_width)}_.each(this.active_modals,(function(e){var o={height:t(e,"height"),width:t(e,"width")};e.$obj.css({"max-height":"","max-width":""}),e.$obj.css({height:e.options.height,width:e.options.width}),_.each(["width","height"],(function(t){var s=Math.round(o[t]);("height"===t?e.$obj.outerHeight():e.$obj.outerWidth())>=s&&e.$obj[t](s)}));var s=Math.min(1e3,window.innerWidth-12)+"px";e.$obj.css({"max-height":e.options.max_height,"max-width":s})}))}function t(){$("body").toggleClass("modal-page-overflow",$("body").height()>$(window).height()),_.each(this.active_modals,(function(e){e.$wrapper.css({overflow:"hidden"}),e.$obj.css({position:"absolute"}),e.$obj.css({top:parseInt(Math.max(0,($(window).height()-e.$obj.outerHeight())/2*.8)),left:parseInt(Math.max(0,($(window).width()-e.$obj.outerWidth())/2))})}))}e.apply(this),e.apply(this),setTimeout(_.bind((function(){e.apply(this),t.apply(this)}),this),5),t.apply(this)},show$Object:function(e){var t={$wrapper:$("
",{class:"aops-modal-wrapper"}),$mask:$("
",{class:"aops-modal-mask"}),$obj:e.$obj,options:this.appendDefaults(e)};return $("body").addClass("aops-modal-open"),t.$wrapper.append(t.$obj),this.setZIndices(t),$("body").append(t.$mask),$("body").append(t.$wrapper),t.options.hasOwnProperty("onShow")&&setTimeout((function(){t.options.onShow()}),100),this.active_modals.push(t),this.setZIndices(t),t.$mask.fadeTo(e.mask_fade_in_speed,t.options.mask_alpha),t.$wrapper.fadeIn(e.mask_fade_in_speed,(function(){"alert"===e.type&&e.focus_on_alert&&t.$obj.find("button").first().focus()})),t.options.draggable&&t.$obj.draggable&&t.$obj.draggable(t.options.draggable_options),this.parseForceResponse(t),this.fitMasks(),!("activeElement"in document)||_.isUndefined(document.activeElement)||_.isNull(document.activeElement)||document.activeElement.blur(),t.options.mathjax&&window.MathJax&&MathJax.Hub.Queue(["Typeset",MathJax.Hub,t.$obj[0]]),t.$obj.trigger("modal_shown"),t},show:function(e){var t;switch((t=this.prepareOptions.apply(this,arguments)).type){case"$":return this.show$Object(t);case"unframed_html":return $($.parseHTML(t.body));case"ignore-loading":break;default:return this.show$Object(_.extend({$obj:this.makeFramed$Object(t)},t))}},extFrameClass:function(e,t){return e+(t.hasOwnProperty("frame_class")?" "+t.frame_class:"")},showPlain:function(e){return this.show(e)},showQuick:function(e){return this.show(_.defaults({frame_class:this.extFrameClass("aops-modal-standard aops-modal-quick",e)},e))},showPlainBody:function(e){return this.show(_.defaults({frame_class:this.extFrameClass("aops-modal-plain-body",e)},e))},showMessage:function(e){var t,o=arguments.length>1?arguments[1]:{};return t=o.hasOwnProperty("buttons")?"buttons":"message",this.show(_.extend({type:t,body:e,frame_class:this.extFrameClass("aops-modal-standard",o)},o))},showMessageQuick:function(e){return this.showQuick(_.extend({type:"message",body:e},arguments.length>1?arguments[1]:{}))},showAlert:function(e){var t=arguments.length>1?arguments[1]:{};return this.show(_.extend({type:"alert",body:e,frame_class:this.extFrameClass("aops-modal-standard",t)},t))},showAlertQuick:function(e){return this.showQuick(_.extend({type:"alert",body:e},arguments.length>1?arguments[1]:{}))},showConfirm:function(e,t){var o=arguments.length>2?arguments[2]:{},s=this.show(_.extend({type:"confirm",body:e,onButtonClick:t,frame_class:this.extFrameClass("aops-modal-standard",o)},o));return s.$obj.find(".aops-modal-btn").first().focus(),s},showConfirmQuick:function(e,t){var o=this.showQuick(_.extend({type:"confirm",body:e,onButtonClick:t},arguments.length>2?arguments[2]:{}));return o.$obj.find(".aops-modal-btn").first().focus(),o},showButtons:function(e,t,o){var s=arguments.length>3?arguments[3]:{};return this.show(_.extend({type:"buttons",buttons:t,body:e,onButtonClick:o,frame_class:this.extFrameClass("aops-modal-standard",s)},s))},showButtonsQuick:function(e,t,o,s){return s=s||{},this.showQuick(_.extend({type:"buttons",buttons:t,body:e,onButtonClick:o},s))},makeFramed$Object:function(e){var t,o,s=null,a=null,i=this,n=$("
",{class:e.scrollable?"aops-scroll-content":"aops-modal-noscroll"});function r(e){var t="";return e.removeDefaultBtnCss||(t=" btn-primary"),e.btnClass&&(t=" "+e.btnClass),$("