<?xml version="1.0" encoding="UTF-8"?>
<!-- This XML file has been created by Easy JavaScript Simulations (EjsS). Visit http://www.um.es/fem/Ejs. -->
<!-- Please, save the file to your hard disk on your Ejs' user directory and open it with Ejs. -->
<Osejs version="6.1 BETA">
<Osejs.Information>
<Title><![CDATA[Reading Scale Simulator]]></Title>
<Copyright><![CDATA[creative commons attribution]]></Copyright>
<Keywords><![CDATA[]]></Keywords>
<Level><![CDATA[primary]]></Level>
<Language><![CDATA[english]]></Language>
<Abstract><![CDATA[]]></Abstract>
<FixedNavigationBar>false</FixedNavigationBar>
<RunAlways>true</RunAlways>
<UseInterpreter>true</UseInterpreter>
<UseDeltaForODE>false</UseDeltaForODE>
<ModelTab></ModelTab>
<ModelTabTitle><![CDATA[]]></ModelTabTitle>
<ModelName><![CDATA[]]></ModelName>
<CSSFile></CSSFile>
<StaticImages>
</StaticImages>
<HTMLHead><![CDATA[<script async="true" src="https://www.googletagmanager.com/gtag/js?id=UA-3326007-19"></script>
<script>
  window.dataLayer = window.dataLayer || [];
  function gtag(){dataLayer.push(arguments);}
  gtag('js', new Date());
  gtag('config', 'UA-3326007-19');
</script>
<script data-ad-client="ca-pub-0121577198857509" async="true" src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>

<style type="text/css">
.metadata { display: none; }
</style>]]></HTMLHead>
<Logo>./massscale/Screen Shot 2017-05-23 at 11.29.31 AM (2).png</Logo>
<Author><![CDATA[lookang]]></Author>
<AuthorLogo>./01authorlookang50x50.png</AuthorLogo>
<DetectedFiles><![CDATA[./01authorlookang50x50.png;./massscale/Screen Shot 2017-05-23 at 11.29.31 AM (2).png;./massscale/Singapore-One-dollar-Coin.png;./massscale/Single_apple.png;./massscale/kilogramblankscalergb.jpg;./massscale/pineapple01-md.jpg;./massscale/reading scales.html;]]></DetectedFiles>
<AuxiliaryFiles><![CDATA[./massscale/;]]></AuxiliaryFiles>
</Osejs.Information>
<Osejs.Description>
<Osejs.Description.Page>
<Type>DESCRIPTION_EDITOR</Type>
<Name>Intro Page</Name>
<Active>true</Active>
<Internal>true</Internal>
<Content>
<OneHTMLPage>
  <Locale>_default_</Locale>
  <Title>Intro Page</Title>
  <External>true</External>
  <![CDATA[
./massscale/reading scales.html
]]>
</OneHTMLPage>
</Content>
</Osejs.Description.Page>
</Osejs.Description>
<Osejs.Model>
<Osejs.Model.FramesPerSecond>20</Osejs.Model.FramesPerSecond>
<Osejs.Model.StepsPerDisplay>1</Osejs.Model.StepsPerDisplay>
<Osejs.Model.Autostart>true</Osejs.Model.Autostart>
<Osejs.Model.Variables>
<Osejs.Model.Variables.Page>
<Type>VARIABLE_EDITOR</Type>
<Name>Var Table</Name>
<Active>true</Active>
<Internal>false</Internal>
<Content>
<PageComment><![CDATA[]]></PageComment>
<Variable>
<Name><![CDATA[inputdropmenu]]></Name>
<Value><![CDATA[true]]></Value>
<Type><![CDATA[boolean]]></Type>
<Dimension><![CDATA[]]></Dimension>
<Domain><![CDATA[public]]></Domain>
<Comment><![CDATA[]]></Comment>
</Variable>
<Variable>
<Name><![CDATA[font]]></Name>
<Value><![CDATA["normal normal 1.5vw "]]></Value>
<Type><![CDATA[String]]></Type>
<Dimension><![CDATA[]]></Dimension>
<Domain><![CDATA[public]]></Domain>
<Comment><![CDATA[]]></Comment>
</Variable>
<Variable>
<Name><![CDATA[gramshow]]></Name>
<Value><![CDATA[true]]></Value>
<Type><![CDATA[boolean]]></Type>
<Dimension><![CDATA[]]></Dimension>
<Domain><![CDATA[public]]></Domain>
<Comment><![CDATA[]]></Comment>
</Variable>
<Variable>
<Name><![CDATA[factor]]></Name>
<Value><![CDATA[1]]></Value>
<Type><![CDATA[double]]></Type>
<Dimension><![CDATA[]]></Dimension>
<Domain><![CDATA[public]]></Domain>
<Comment><![CDATA[]]></Comment>
</Variable>
<Variable>
<Name><![CDATA[xmin]]></Name>
<Value><![CDATA[-1]]></Value>
<Type><![CDATA[double]]></Type>
<Dimension><![CDATA[]]></Dimension>
<Domain><![CDATA[public]]></Domain>
<Comment><![CDATA[]]></Comment>
</Variable>
<Variable>
<Name><![CDATA[xmax]]></Name>
<Value><![CDATA[1]]></Value>
<Type><![CDATA[double]]></Type>
<Dimension><![CDATA[]]></Dimension>
<Domain><![CDATA[public]]></Domain>
<Comment><![CDATA[]]></Comment>
</Variable>
<Variable>
<Name><![CDATA[ymin]]></Name>
<Value><![CDATA[-1]]></Value>
<Type><![CDATA[double]]></Type>
<Dimension><![CDATA[]]></Dimension>
<Domain><![CDATA[public]]></Domain>
<Comment><![CDATA[]]></Comment>
</Variable>
<Variable>
<Name><![CDATA[ymax]]></Name>
<Value><![CDATA[1]]></Value>
<Type><![CDATA[double]]></Type>
<Dimension><![CDATA[]]></Dimension>
<Domain><![CDATA[public]]></Domain>
<Comment><![CDATA[]]></Comment>
</Variable>
<Variable>
<Name><![CDATA[rangex]]></Name>
<Value><![CDATA[xmax-xmin]]></Value>
<Type><![CDATA[double]]></Type>
<Dimension><![CDATA[]]></Dimension>
<Domain><![CDATA[public]]></Domain>
<Comment><![CDATA[]]></Comment>
</Variable>
<Variable>
<Name><![CDATA[rangey]]></Name>
<Value><![CDATA[ymax-ymin]]></Value>
<Type><![CDATA[double]]></Type>
<Dimension><![CDATA[]]></Dimension>
<Domain><![CDATA[public]]></Domain>
<Comment><![CDATA[]]></Comment>
</Variable>
<Variable>
<Name><![CDATA[sizex]]></Name>
<Value><![CDATA[rangex/20]]></Value>
<Type><![CDATA[double]]></Type>
<Dimension><![CDATA[]]></Dimension>
<Domain><![CDATA[public]]></Domain>
<Comment><![CDATA[]]></Comment>
</Variable>
<Variable>
<Name><![CDATA[sizey]]></Name>
<Value><![CDATA[rangey/20]]></Value>
<Type><![CDATA[String]]></Type>
<Dimension><![CDATA[]]></Dimension>
<Domain><![CDATA[public]]></Domain>
<Comment><![CDATA[]]></Comment>
</Variable>
<Variable>
<Name><![CDATA[elementinteracted]]></Name>
<Value><![CDATA[0]]></Value>
<Type><![CDATA[int]]></Type>
<Dimension><![CDATA[]]></Dimension>
<Domain><![CDATA[public]]></Domain>
<Comment><![CDATA[]]></Comment>
</Variable>
<Variable>
<Name><![CDATA[selected]]></Name>
<Value><![CDATA[""]]></Value>
<Type><![CDATA[String]]></Type>
<Dimension><![CDATA[[1]]]></Dimension>
<Domain><![CDATA[public]]></Domain>
<Comment><![CDATA[]]></Comment>
</Variable>
<Variable>
<Name><![CDATA[decimal]]></Name>
<Value><![CDATA[2]]></Value>
<Type><![CDATA[int]]></Type>
<Dimension><![CDATA[]]></Dimension>
<Domain><![CDATA[public]]></Domain>
<Comment><![CDATA[]]></Comment>
</Variable>
<Variable>
<Name><![CDATA[text]]></Name>
<Value><![CDATA["click reset \nto generate random mass reading"]]></Value>
<Type><![CDATA[String]]></Type>
<Dimension><![CDATA[]]></Dimension>
<Domain><![CDATA[public]]></Domain>
<Comment><![CDATA[]]></Comment>
</Variable>
<Variable>
<Name><![CDATA[pi]]></Name>
<Value><![CDATA[Math.PI]]></Value>
<Type><![CDATA[double]]></Type>
<Dimension><![CDATA[]]></Dimension>
<Domain><![CDATA[public]]></Domain>
<Comment><![CDATA[]]></Comment>
</Variable>
<Variable>
<Name><![CDATA[y1]]></Name>
<Value><![CDATA[sizey*5/2]]></Value>
<Type><![CDATA[double]]></Type>
<Dimension><![CDATA[]]></Dimension>
<Domain><![CDATA[public]]></Domain>
<Comment><![CDATA[]]></Comment>
</Variable>
<Variable>
<Name><![CDATA[ysize]]></Name>
<Value><![CDATA[0.2]]></Value>
<Type><![CDATA[double]]></Type>
<Dimension><![CDATA[]]></Dimension>
<Domain><![CDATA[public]]></Domain>
<Comment><![CDATA[]]></Comment>
</Variable>
<Variable>
<Name><![CDATA[g]]></Name>
<Value><![CDATA[9.81]]></Value>
<Type><![CDATA[double]]></Type>
<Dimension><![CDATA[]]></Dimension>
<Domain><![CDATA[public]]></Domain>
<Comment><![CDATA[]]></Comment>
</Variable>
<Variable>
<Name><![CDATA[vvst]]></Name>
<Value><![CDATA[true]]></Value>
<Type><![CDATA[boolean]]></Type>
<Dimension><![CDATA[]]></Dimension>
<Domain><![CDATA[public]]></Domain>
<Comment><![CDATA[]]></Comment>
</Variable>
<Variable>
<Name><![CDATA[avst]]></Name>
<Value><![CDATA[true]]></Value>
<Type><![CDATA[boolean]]></Type>
<Dimension><![CDATA[]]></Dimension>
<Domain><![CDATA[public]]></Domain>
<Comment><![CDATA[]]></Comment>
</Variable>
</Content>
</Osejs.Model.Variables.Page>
<Osejs.Model.Variables.Page>
<Type>VARIABLE_EDITOR</Type>
<Name>simplespring</Name>
<Active>true</Active>
<Internal>false</Internal>
<Content>
<PageComment><![CDATA[]]></PageComment>
<Variable>
<Name><![CDATA[m]]></Name>
<Value><![CDATA[1]]></Value>
<Type><![CDATA[double]]></Type>
<Dimension><![CDATA[]]></Dimension>
<Domain><![CDATA[public]]></Domain>
<Comment><![CDATA[]]></Comment>
</Variable>
<Variable>
<Name><![CDATA[scaletype]]></Name>
<Value><![CDATA[1]]></Value>
<Type><![CDATA[double]]></Type>
<Dimension><![CDATA[]]></Dimension>
<Domain><![CDATA[public]]></Domain>
<Comment><![CDATA[1,4,5]]></Comment>
</Variable>
<Variable>
<Name><![CDATA[massscale]]></Name>
<Value><![CDATA[0]]></Value>
<Type><![CDATA[double]]></Type>
<Dimension><![CDATA[]]></Dimension>
<Domain><![CDATA[public]]></Domain>
<Comment><![CDATA[]]></Comment>
</Variable>
<Variable>
<Name><![CDATA[massscaleo]]></Name>
<Value><![CDATA[Math.round(Math.random()*10)*0.5]]></Value>
<Type><![CDATA[double]]></Type>
<Dimension><![CDATA[]]></Dimension>
<Domain><![CDATA[public]]></Domain>
<Comment><![CDATA[]]></Comment>
</Variable>
<Variable>
<Name><![CDATA[k]]></Name>
<Value><![CDATA[10]]></Value>
<Type><![CDATA[double]]></Type>
<Dimension><![CDATA[]]></Dimension>
<Domain><![CDATA[public]]></Domain>
<Comment><![CDATA[]]></Comment>
</Variable>
<Variable>
<Name><![CDATA[l]]></Name>
<Value><![CDATA[0]]></Value>
<Type><![CDATA[double]]></Type>
<Dimension><![CDATA[]]></Dimension>
<Domain><![CDATA[public]]></Domain>
<Comment><![CDATA[]]></Comment>
</Variable>
<Variable>
<Name><![CDATA[x]]></Name>
<Value><![CDATA[0.72]]></Value>
<Type><![CDATA[double]]></Type>
<Dimension><![CDATA[]]></Dimension>
<Domain><![CDATA[public]]></Domain>
<Comment><![CDATA[]]></Comment>
</Variable>
<Variable>
<Name><![CDATA[xo]]></Name>
<Value><![CDATA[0]]></Value>
<Type><![CDATA[double]]></Type>
<Dimension><![CDATA[]]></Dimension>
<Domain><![CDATA[public]]></Domain>
<Comment><![CDATA[]]></Comment>
</Variable>
<Variable>
<Name><![CDATA[y]]></Name>
<Value><![CDATA[0]]></Value>
<Type><![CDATA[double]]></Type>
<Dimension><![CDATA[]]></Dimension>
<Domain><![CDATA[public]]></Domain>
<Comment><![CDATA[]]></Comment>
</Variable>
<Variable>
<Name><![CDATA[yo]]></Name>
<Value><![CDATA[0]]></Value>
<Type><![CDATA[double]]></Type>
<Dimension><![CDATA[]]></Dimension>
<Domain><![CDATA[public]]></Domain>
<Comment><![CDATA[]]></Comment>
</Variable>
<Variable>
<Name><![CDATA[ye]]></Name>
<Value><![CDATA[-g*m/k]]></Value>
<Type><![CDATA[double]]></Type>
<Dimension><![CDATA[]]></Dimension>
<Domain><![CDATA[public]]></Domain>
<Comment><![CDATA[]]></Comment>
</Variable>
<Variable>
<Name><![CDATA[vx]]></Name>
<Value><![CDATA[0]]></Value>
<Type><![CDATA[double]]></Type>
<Dimension><![CDATA[]]></Dimension>
<Domain><![CDATA[public]]></Domain>
<Comment><![CDATA[]]></Comment>
</Variable>
<Variable>
<Name><![CDATA[vy]]></Name>
<Value><![CDATA[0]]></Value>
<Type><![CDATA[double]]></Type>
<Dimension><![CDATA[]]></Dimension>
<Domain><![CDATA[public]]></Domain>
<Comment><![CDATA[]]></Comment>
</Variable>
<Variable>
<Name><![CDATA[v]]></Name>
<Value><![CDATA[0]]></Value>
<Type><![CDATA[double]]></Type>
<Dimension><![CDATA[]]></Dimension>
<Domain><![CDATA[public]]></Domain>
<Comment><![CDATA[]]></Comment>
</Variable>
<Variable>
<Name><![CDATA[t]]></Name>
<Value><![CDATA[0]]></Value>
<Type><![CDATA[double]]></Type>
<Dimension><![CDATA[]]></Dimension>
<Domain><![CDATA[public]]></Domain>
<Comment><![CDATA[]]></Comment>
</Variable>
<Variable>
<Name><![CDATA[tcst]]></Name>
<Value><![CDATA[0]]></Value>
<Type><![CDATA[double]]></Type>
<Dimension><![CDATA[]]></Dimension>
<Domain><![CDATA[public]]></Domain>
<Comment><![CDATA[]]></Comment>
</Variable>
<Variable>
<Name><![CDATA[X]]></Name>
<Value><![CDATA[x-l]]></Value>
<Type><![CDATA[double]]></Type>
<Dimension><![CDATA[]]></Dimension>
<Domain><![CDATA[public]]></Domain>
<Comment><![CDATA[]]></Comment>
</Variable>
<Variable>
<Name><![CDATA[T]]></Name>
<Value><![CDATA[2*pi*Math.sqrt(m/k)]]></Value>
<Type><![CDATA[double]]></Type>
<Dimension><![CDATA[]]></Dimension>
<Domain><![CDATA[public]]></Domain>
<Comment><![CDATA[]]></Comment>
</Variable>
<Variable>
<Name><![CDATA[dt]]></Name>
<Value><![CDATA[T/50]]></Value>
<Type><![CDATA[double]]></Type>
<Dimension><![CDATA[]]></Dimension>
<Domain><![CDATA[public]]></Domain>
<Comment><![CDATA[]]></Comment>
</Variable>
<Variable>
<Name><![CDATA[w]]></Name>
<Value><![CDATA[2*pi/T]]></Value>
<Type><![CDATA[double]]></Type>
<Dimension><![CDATA[]]></Dimension>
<Domain><![CDATA[public]]></Domain>
<Comment><![CDATA[]]></Comment>
</Variable>
<Variable>
<Name><![CDATA[a]]></Name>
<Value><![CDATA[-w^2*x]]></Value>
<Type><![CDATA[double]]></Type>
<Dimension><![CDATA[]]></Dimension>
<Domain><![CDATA[public]]></Domain>
<Comment><![CDATA[]]></Comment>
</Variable>
<Variable>
<Name><![CDATA[f]]></Name>
<Value><![CDATA[0]]></Value>
<Type><![CDATA[double]]></Type>
<Dimension><![CDATA[]]></Dimension>
<Domain><![CDATA[public]]></Domain>
<Comment><![CDATA[]]></Comment>
</Variable>
<Variable>
<Name><![CDATA[]]></Name>
<Value><![CDATA[]]></Value>
<Type><![CDATA[double]]></Type>
<Dimension><![CDATA[]]></Dimension>
<Domain><![CDATA[public]]></Domain>
<Comment><![CDATA[]]></Comment>
</Variable>
</Content>
</Osejs.Model.Variables.Page>
<Osejs.Model.Variables.Page>
<Type>VARIABLE_EDITOR</Type>
<Name>pendulum</Name>
<Active>true</Active>
<Internal>false</Internal>
<Content>
<PageComment><![CDATA[]]></PageComment>
<Variable>
<Name><![CDATA[theta]]></Name>
<Value><![CDATA[2*pi]]></Value>
<Type><![CDATA[double]]></Type>
<Dimension><![CDATA[]]></Dimension>
<Domain><![CDATA[public]]></Domain>
<Comment><![CDATA[]]></Comment>
</Variable>
<Variable>
<Name><![CDATA[thetas]]></Name>
<Value><![CDATA[theta]]></Value>
<Type><![CDATA[double]]></Type>
<Dimension><![CDATA[]]></Dimension>
<Domain><![CDATA[public]]></Domain>
<Comment><![CDATA[]]></Comment>
</Variable>
<Variable>
<Name><![CDATA[thetadegrees]]></Name>
<Value><![CDATA[theta*180/pi]]></Value>
<Type><![CDATA[double]]></Type>
<Dimension><![CDATA[]]></Dimension>
<Domain><![CDATA[public]]></Domain>
<Comment><![CDATA[]]></Comment>
</Variable>
<Variable>
<Name><![CDATA[thetao]]></Name>
<Value><![CDATA[2*pi-massscaleo/5*(2*pi)]]></Value>
<Type><![CDATA[double]]></Type>
<Dimension><![CDATA[]]></Dimension>
<Domain><![CDATA[public]]></Domain>
<Comment><![CDATA[]]></Comment>
</Variable>
<Variable>
<Name><![CDATA[thetaodegrees]]></Name>
<Value><![CDATA[thetao*180/pi]]></Value>
<Type><![CDATA[double]]></Type>
<Dimension><![CDATA[]]></Dimension>
<Domain><![CDATA[public]]></Domain>
<Comment><![CDATA[]]></Comment>
</Variable>
<Variable>
<Name><![CDATA[omega]]></Name>
<Value><![CDATA[0]]></Value>
<Type><![CDATA[double]]></Type>
<Dimension><![CDATA[]]></Dimension>
<Domain><![CDATA[public]]></Domain>
<Comment><![CDATA[]]></Comment>
</Variable>
<Variable>
<Name><![CDATA[omegas]]></Name>
<Value><![CDATA[0]]></Value>
<Type><![CDATA[double]]></Type>
<Dimension><![CDATA[]]></Dimension>
<Domain><![CDATA[public]]></Domain>
<Comment><![CDATA[]]></Comment>
</Variable>
<Variable>
<Name><![CDATA[omegao]]></Name>
<Value><![CDATA[0]]></Value>
<Type><![CDATA[double]]></Type>
<Dimension><![CDATA[]]></Dimension>
<Domain><![CDATA[public]]></Domain>
<Comment><![CDATA[]]></Comment>
</Variable>
<Variable>
<Name><![CDATA[alpha]]></Name>
<Value><![CDATA[0]]></Value>
<Type><![CDATA[double]]></Type>
<Dimension><![CDATA[]]></Dimension>
<Domain><![CDATA[public]]></Domain>
<Comment><![CDATA[]]></Comment>
</Variable>
<Variable>
<Name><![CDATA[alphas]]></Name>
<Value><![CDATA[0]]></Value>
<Type><![CDATA[double]]></Type>
<Dimension><![CDATA[]]></Dimension>
<Domain><![CDATA[public]]></Domain>
<Comment><![CDATA[]]></Comment>
</Variable>
<Variable>
<Name><![CDATA[L]]></Name>
<Value><![CDATA[0.72]]></Value>
<Type><![CDATA[double]]></Type>
<Dimension><![CDATA[]]></Dimension>
<Domain><![CDATA[public]]></Domain>
<Comment><![CDATA[]]></Comment>
</Variable>
<Variable>
<Name><![CDATA[xs]]></Name>
<Value><![CDATA[0]]></Value>
<Type><![CDATA[double]]></Type>
<Dimension><![CDATA[]]></Dimension>
<Domain><![CDATA[public]]></Domain>
<Comment><![CDATA[]]></Comment>
</Variable>
<Variable>
<Name><![CDATA[ys]]></Name>
<Value><![CDATA[0]]></Value>
<Type><![CDATA[double]]></Type>
<Dimension><![CDATA[]]></Dimension>
<Domain><![CDATA[public]]></Domain>
<Comment><![CDATA[]]></Comment>
</Variable>
<Variable>
<Name><![CDATA[vxs]]></Name>
<Value><![CDATA[0]]></Value>
<Type><![CDATA[double]]></Type>
<Dimension><![CDATA[]]></Dimension>
<Domain><![CDATA[public]]></Domain>
<Comment><![CDATA[]]></Comment>
</Variable>
<Variable>
<Name><![CDATA[vys]]></Name>
<Value><![CDATA[0]]></Value>
<Type><![CDATA[double]]></Type>
<Dimension><![CDATA[]]></Dimension>
<Domain><![CDATA[public]]></Domain>
<Comment><![CDATA[]]></Comment>
</Variable>
<Variable>
<Name><![CDATA[answershow]]></Name>
<Value><![CDATA[]]></Value>
<Type><![CDATA[boolean]]></Type>
<Dimension><![CDATA[]]></Dimension>
<Domain><![CDATA[public]]></Domain>
<Comment><![CDATA[]]></Comment>
</Variable>
<Variable>
<Name><![CDATA[]]></Name>
<Value><![CDATA[]]></Value>
<Type><![CDATA[double]]></Type>
<Dimension><![CDATA[]]></Dimension>
<Domain><![CDATA[public]]></Domain>
<Comment><![CDATA[]]></Comment>
</Variable>
</Content>
</Osejs.Model.Variables.Page>
<Osejs.Model.Variables.Page>
<Type>VARIABLE_EDITOR</Type>
<Name>advancedspring</Name>
<Active>true</Active>
<Internal>false</Internal>
<Content>
<PageComment><![CDATA[]]></PageComment>
<Variable>
<Name><![CDATA[b]]></Name>
<Value><![CDATA[2]]></Value>
<Type><![CDATA[double]]></Type>
<Dimension><![CDATA[]]></Dimension>
<Domain><![CDATA[public]]></Domain>
<Comment><![CDATA[]]></Comment>
</Variable>
<Variable>
<Name><![CDATA[amplitude]]></Name>
<Value><![CDATA[0.5]]></Value>
<Type><![CDATA[double]]></Type>
<Dimension><![CDATA[]]></Dimension>
<Domain><![CDATA[public]]></Domain>
<Comment><![CDATA[]]></Comment>
</Variable>
<Variable>
<Name><![CDATA[frequency]]></Name>
<Value><![CDATA[0]]></Value>
<Type><![CDATA[double]]></Type>
<Dimension><![CDATA[]]></Dimension>
<Domain><![CDATA[public]]></Domain>
<Comment><![CDATA[]]></Comment>
</Variable>
<Variable>
<Name><![CDATA[potentialEnergy]]></Name>
<Value><![CDATA[0]]></Value>
<Type><![CDATA[double]]></Type>
<Dimension><![CDATA[]]></Dimension>
<Domain><![CDATA[public]]></Domain>
<Comment><![CDATA[]]></Comment>
</Variable>
<Variable>
<Name><![CDATA[kineticEnergy]]></Name>
<Value><![CDATA[0]]></Value>
<Type><![CDATA[double]]></Type>
<Dimension><![CDATA[]]></Dimension>
<Domain><![CDATA[public]]></Domain>
<Comment><![CDATA[]]></Comment>
</Variable>
<Variable>
<Name><![CDATA[totalEnergy]]></Name>
<Value><![CDATA[0]]></Value>
<Type><![CDATA[double]]></Type>
<Dimension><![CDATA[]]></Dimension>
<Domain><![CDATA[public]]></Domain>
<Comment><![CDATA[]]></Comment>
</Variable>
<Variable>
<Name><![CDATA[afrequency]]></Name>
<Value><![CDATA[0]]></Value>
<Type><![CDATA[double]]></Type>
<Dimension><![CDATA[]]></Dimension>
<Domain><![CDATA[public]]></Domain>
<Comment><![CDATA[]]></Comment>
</Variable>
<Variable>
<Name><![CDATA[Hertz]]></Name>
<Value><![CDATA[0]]></Value>
<Type><![CDATA[double]]></Type>
<Dimension><![CDATA[]]></Dimension>
<Domain><![CDATA[public]]></Domain>
<Comment><![CDATA[]]></Comment>
</Variable>
<Variable>
<Name><![CDATA[]]></Name>
<Value><![CDATA[]]></Value>
<Type><![CDATA[double]]></Type>
<Dimension><![CDATA[]]></Dimension>
<Domain><![CDATA[public]]></Domain>
<Comment><![CDATA[]]></Comment>
</Variable>
</Content>
</Osejs.Model.Variables.Page>
<Osejs.Model.Variables.Page>
<Type>VARIABLE_EDITOR</Type>
<Name>peroid</Name>
<Active>true</Active>
<Internal>false</Internal>
<Content>
<PageComment><![CDATA[]]></PageComment>
<Variable>
<Name><![CDATA[n1]]></Name>
<Value><![CDATA[0]]></Value>
<Type><![CDATA[int]]></Type>
<Dimension><![CDATA[]]></Dimension>
<Domain><![CDATA[public]]></Domain>
<Comment><![CDATA[]]></Comment>
</Variable>
<Variable>
<Name><![CDATA[nc]]></Name>
<Value><![CDATA[0]]></Value>
<Type><![CDATA[int]]></Type>
<Dimension><![CDATA[]]></Dimension>
<Domain><![CDATA[public]]></Domain>
<Comment><![CDATA[]]></Comment>
</Variable>
<Variable>
<Name><![CDATA[numberofswing]]></Name>
<Value><![CDATA[0]]></Value>
<Type><![CDATA[double]]></Type>
<Dimension><![CDATA[]]></Dimension>
<Domain><![CDATA[public]]></Domain>
<Comment><![CDATA[]]></Comment>
</Variable>
<Variable>
<Name><![CDATA[omegastored]]></Name>
<Value><![CDATA[0]]></Value>
<Type><![CDATA[double]]></Type>
<Dimension><![CDATA[]]></Dimension>
<Domain><![CDATA[public]]></Domain>
<Comment><![CDATA[]]></Comment>
</Variable>
<Variable>
<Name><![CDATA[T1]]></Name>
<Value><![CDATA[0]]></Value>
<Type><![CDATA[double]]></Type>
<Dimension><![CDATA[[100]]]></Dimension>
<Domain><![CDATA[public]]></Domain>
<Comment><![CDATA[]]></Comment>
</Variable>
<Variable>
<Name><![CDATA[ts]]></Name>
<Value><![CDATA[0]]></Value>
<Type><![CDATA[double]]></Type>
<Dimension><![CDATA[]]></Dimension>
<Domain><![CDATA[public]]></Domain>
<Comment><![CDATA[]]></Comment>
</Variable>
<Variable>
<Name><![CDATA[]]></Name>
<Value><![CDATA[]]></Value>
<Type><![CDATA[double]]></Type>
<Dimension><![CDATA[]]></Dimension>
<Domain><![CDATA[public]]></Domain>
<Comment><![CDATA[]]></Comment>
</Variable>
</Content>
</Osejs.Model.Variables.Page>
<Osejs.Model.Variables.Page>
<Type>VARIABLE_EDITOR</Type>
<Name>check</Name>
<Active>true</Active>
<Internal>false</Internal>
<Content>
<PageComment><![CDATA[]]></PageComment>
<Variable>
<Name><![CDATA[showAnswerFlag]]></Name>
<Value><![CDATA[false]]></Value>
<Type><![CDATA[boolean]]></Type>
<Dimension><![CDATA[]]></Dimension>
<Domain><![CDATA[public]]></Domain>
<Comment><![CDATA[]]></Comment>
</Variable>
<Variable>
<Name><![CDATA[K1fcorrect]]></Name>
<Value><![CDATA[""]]></Value>
<Type><![CDATA[String]]></Type>
<Dimension><![CDATA[]]></Dimension>
<Domain><![CDATA[public]]></Domain>
<Comment><![CDATA[]]></Comment>
</Variable>
<Variable>
<Name><![CDATA[l_enterK1f]]></Name>
<Value><![CDATA[""]]></Value>
<Type><![CDATA[String]]></Type>
<Dimension><![CDATA[]]></Dimension>
<Domain><![CDATA[public]]></Domain>
<Comment><![CDATA[]]></Comment>
</Variable>
<Variable>
<Name><![CDATA[K1fcorrectbackground]]></Name>
<Value><![CDATA[""]]></Value>
<Type><![CDATA[String]]></Type>
<Dimension><![CDATA[]]></Dimension>
<Domain><![CDATA[public]]></Domain>
<Comment><![CDATA[]]></Comment>
</Variable>
<Variable>
<Name><![CDATA[enterK1f]]></Name>
<Value><![CDATA[0]]></Value>
<Type><![CDATA[double]]></Type>
<Dimension><![CDATA[]]></Dimension>
<Domain><![CDATA[public]]></Domain>
<Comment><![CDATA[]]></Comment>
</Variable>
<Variable>
<Name><![CDATA[l_answer]]></Name>
<Value><![CDATA[""]]></Value>
<Type><![CDATA[String]]></Type>
<Dimension><![CDATA[]]></Dimension>
<Domain><![CDATA[public]]></Domain>
<Comment><![CDATA[]]></Comment>
</Variable>
<Variable>
<Name><![CDATA[]]></Name>
<Value><![CDATA[]]></Value>
<Type><![CDATA[double]]></Type>
<Dimension><![CDATA[]]></Dimension>
<Domain><![CDATA[public]]></Domain>
<Comment><![CDATA[]]></Comment>
</Variable>
</Content>
</Osejs.Model.Variables.Page>
<Osejs.Model.Variables.Page>
<Type>VARIABLE_EDITOR</Type>
<Name>layout</Name>
<Active>true</Active>
<Internal>false</Internal>
<Content>
<PageComment><![CDATA[]]></PageComment>
<Variable>
<Name><![CDATA[isAndroid]]></Name>
<Value><![CDATA[checkAndroid()]]></Value>
<Type><![CDATA[boolean]]></Type>
<Dimension><![CDATA[]]></Dimension>
<Domain><![CDATA[public]]></Domain>
<Comment><![CDATA[]]></Comment>
</Variable>
<Variable>
<Name><![CDATA[Android]]></Name>
<Value><![CDATA[/Android|android/i.test(navigator.userAgent)]]></Value>
<Type><![CDATA[boolean]]></Type>
<Dimension><![CDATA[]]></Dimension>
<Domain><![CDATA[public]]></Domain>
<Comment><![CDATA[]]></Comment>
</Variable>
<Variable>
<Name><![CDATA[iOS]]></Name>
<Value><![CDATA[/iPad|iPhone|iPod/.test(navigator.userAgent) && !window.MSStream]]></Value>
<Type><![CDATA[boolean]]></Type>
<Dimension><![CDATA[]]></Dimension>
<Domain><![CDATA[public]]></Domain>
<Comment><![CDATA[http://stackoverflow.com/questions/9038625/detect-if-device-is-ios]]></Comment>
</Variable>
<Variable>
<Name><![CDATA[iPad]]></Name>
<Value><![CDATA[/iPad/.test(navigator.userAgent) && !window.MSStream]]></Value>
<Type><![CDATA[boolean]]></Type>
<Dimension><![CDATA[]]></Dimension>
<Domain><![CDATA[public]]></Domain>
<Comment><![CDATA[http://stackoverflow.com/questions/9038625/detect-if-device-is-ios]]></Comment>
</Variable>
<Variable>
<Name><![CDATA[iPhone]]></Name>
<Value><![CDATA[/iPhone|iPod/.test(navigator.userAgent) && !window.MSStream]]></Value>
<Type><![CDATA[boolean]]></Type>
<Dimension><![CDATA[]]></Dimension>
<Domain><![CDATA[public]]></Domain>
<Comment><![CDATA[http://stackoverflow.com/questions/9038625/detect-if-device-is-ios]]></Comment>
</Variable>
<Variable>
<Name><![CDATA[Width]]></Name>
<Value><![CDATA[(_isEPub)?"400":"100%"]]></Value>
<Type><![CDATA[String]]></Type>
<Dimension><![CDATA[]]></Dimension>
<Domain><![CDATA[public]]></Domain>
<Comment><![CDATA[display width]]></Comment>
</Variable>
<Variable>
<Name><![CDATA[selectedview]]></Name>
<Value><![CDATA["world"]]></Value>
<Type><![CDATA[String]]></Type>
<Dimension><![CDATA[[1]]]></Dimension>
<Domain><![CDATA[public]]></Domain>
<Comment><![CDATA[]]></Comment>
</Variable>
<Variable>
<Name><![CDATA[Height]]></Name>
<Value><![CDATA[(_isEPub)?"500":"100%"]]></Value>
<Type><![CDATA[String]]></Type>
<Dimension><![CDATA[]]></Dimension>
<Domain><![CDATA[public]]></Domain>
<Comment><![CDATA[]]></Comment>
</Variable>
<Variable>
<Name><![CDATA[Width1]]></Name>
<Value><![CDATA[]]></Value>
<Type><![CDATA[String]]></Type>
<Dimension><![CDATA[]]></Dimension>
<Domain><![CDATA[public]]></Domain>
<Comment><![CDATA[display width]]></Comment>
</Variable>
<Variable>
<Name><![CDATA[Width2]]></Name>
<Value><![CDATA[]]></Value>
<Type><![CDATA[String]]></Type>
<Dimension><![CDATA[]]></Dimension>
<Domain><![CDATA[public]]></Domain>
<Comment><![CDATA[display width]]></Comment>
</Variable>
<Variable>
<Name><![CDATA[disabledworld]]></Name>
<Value><![CDATA[]]></Value>
<Type><![CDATA[boolean]]></Type>
<Dimension><![CDATA[]]></Dimension>
<Domain><![CDATA[public]]></Domain>
<Comment><![CDATA[]]></Comment>
</Variable>
<Variable>
<Name><![CDATA[disabled]]></Name>
<Value><![CDATA[false]]></Value>
<Type><![CDATA[boolean]]></Type>
<Dimension><![CDATA[]]></Dimension>
<Domain><![CDATA[public]]></Domain>
<Comment><![CDATA[]]></Comment>
</Variable>
<Variable>
<Name><![CDATA[iOSapp]]></Name>
<Value><![CDATA[]]></Value>
<Type><![CDATA[boolean]]></Type>
<Dimension><![CDATA[]]></Dimension>
<Domain><![CDATA[public]]></Domain>
<Comment><![CDATA[]]></Comment>
</Variable>
<Variable>
<Name><![CDATA[Androidapp]]></Name>
<Value><![CDATA[]]></Value>
<Type><![CDATA[boolean]]></Type>
<Dimension><![CDATA[]]></Dimension>
<Domain><![CDATA[public]]></Domain>
<Comment><![CDATA[]]></Comment>
</Variable>
<Variable>
<Name><![CDATA[]]></Name>
<Value><![CDATA[]]></Value>
<Type><![CDATA[boolean]]></Type>
<Dimension><![CDATA[]]></Dimension>
<Domain><![CDATA[public]]></Domain>
<Comment><![CDATA[]]></Comment>
</Variable>
</Content>
</Osejs.Model.Variables.Page>
<Osejs.Model.Variables.Page>
<Type>VARIABLE_EDITOR</Type>
<Name>draw</Name>
<Active>true</Active>
<Internal>false</Internal>
<Content>
<PageComment><![CDATA[]]></PageComment>
<Variable>
<Name><![CDATA[maxy]]></Name>
<Value><![CDATA[1]]></Value>
<Type><![CDATA[double]]></Type>
<Dimension><![CDATA[]]></Dimension>
<Domain><![CDATA[public]]></Domain>
<Comment><![CDATA[]]></Comment>
</Variable>
<Variable>
<Name><![CDATA[n]]></Name>
<Value><![CDATA[10]]></Value>
<Type><![CDATA[int]]></Type>
<Dimension><![CDATA[]]></Dimension>
<Domain><![CDATA[public]]></Domain>
<Comment><![CDATA[]]></Comment>
</Variable>
<Variable>
<Name><![CDATA[n2]]></Name>
<Value><![CDATA[n*10]]></Value>
<Type><![CDATA[int]]></Type>
<Dimension><![CDATA[]]></Dimension>
<Domain><![CDATA[public]]></Domain>
<Comment><![CDATA[number of ticks of the clock 60]]></Comment>
</Variable>
<Variable>
<Name><![CDATA[c]]></Name>
<Value><![CDATA[pi*2/n]]></Value>
<Type><![CDATA[double]]></Type>
<Dimension><![CDATA[]]></Dimension>
<Domain><![CDATA[public]]></Domain>
<Comment><![CDATA[]]></Comment>
</Variable>
<Variable>
<Name><![CDATA[cs]]></Name>
<Value><![CDATA[0]]></Value>
<Type><![CDATA[double]]></Type>
<Dimension><![CDATA[[n]]]></Dimension>
<Domain><![CDATA[public]]></Domain>
<Comment><![CDATA[]]></Comment>
</Variable>
<Variable>
<Name><![CDATA[xline]]></Name>
<Value><![CDATA[0.0]]></Value>
<Type><![CDATA[double]]></Type>
<Dimension><![CDATA[[n]]]></Dimension>
<Domain><![CDATA[public]]></Domain>
<Comment><![CDATA[]]></Comment>
</Variable>
<Variable>
<Name><![CDATA[yline]]></Name>
<Value><![CDATA[0.0]]></Value>
<Type><![CDATA[double]]></Type>
<Dimension><![CDATA[[n]]]></Dimension>
<Domain><![CDATA[public]]></Domain>
<Comment><![CDATA[]]></Comment>
</Variable>
<Variable>
<Name><![CDATA[msg]]></Name>
<Value><![CDATA[""]]></Value>
<Type><![CDATA[String]]></Type>
<Dimension><![CDATA[[n]]]></Dimension>
<Domain><![CDATA[public]]></Domain>
<Comment><![CDATA[]]></Comment>
</Variable>
<Variable>
<Name><![CDATA[Rs]]></Name>
<Value><![CDATA[xmax*0.75]]></Value>
<Type><![CDATA[double]]></Type>
<Dimension><![CDATA[]]></Dimension>
<Domain><![CDATA[public]]></Domain>
<Comment><![CDATA[]]></Comment>
</Variable>
<Variable>
<Name><![CDATA[dxs]]></Name>
<Value><![CDATA[0.0]]></Value>
<Type><![CDATA[double]]></Type>
<Dimension><![CDATA[[n2]]]></Dimension>
<Domain><![CDATA[public]]></Domain>
<Comment><![CDATA[]]></Comment>
</Variable>
<Variable>
<Name><![CDATA[ds]]></Name>
<Value><![CDATA[Rs*0.045]]></Value>
<Type><![CDATA[double]]></Type>
<Dimension><![CDATA[]]></Dimension>
<Domain><![CDATA[public]]></Domain>
<Comment><![CDATA[]]></Comment>
</Variable>
<Variable>
<Name><![CDATA[xline2]]></Name>
<Value><![CDATA[0.0]]></Value>
<Type><![CDATA[double]]></Type>
<Dimension><![CDATA[[n]]]></Dimension>
<Domain><![CDATA[public]]></Domain>
<Comment><![CDATA[]]></Comment>
</Variable>
<Variable>
<Name><![CDATA[yline2]]></Name>
<Value><![CDATA[0.0]]></Value>
<Type><![CDATA[double]]></Type>
<Dimension><![CDATA[[n]]]></Dimension>
<Domain><![CDATA[public]]></Domain>
<Comment><![CDATA[]]></Comment>
</Variable>
<Variable>
<Name><![CDATA[dys]]></Name>
<Value><![CDATA[0.0]]></Value>
<Type><![CDATA[double]]></Type>
<Dimension><![CDATA[[n2]]]></Dimension>
<Domain><![CDATA[public]]></Domain>
<Comment><![CDATA[]]></Comment>
</Variable>
<Variable>
<Name><![CDATA[D]]></Name>
<Value><![CDATA[(xmax-xmin)*0.9]]></Value>
<Type><![CDATA[double]]></Type>
<Dimension><![CDATA[]]></Dimension>
<Domain><![CDATA[public]]></Domain>
<Comment><![CDATA[]]></Comment>
</Variable>
<Variable>
<Name><![CDATA[D2]]></Name>
<Value><![CDATA[D/2]]></Value>
<Type><![CDATA[double]]></Type>
<Dimension><![CDATA[]]></Dimension>
<Domain><![CDATA[public]]></Domain>
<Comment><![CDATA[]]></Comment>
</Variable>
<Variable>
<Name><![CDATA[red]]></Name>
<Value><![CDATA[Math.floor((Math.random()*255)+1)]]></Value>
<Type><![CDATA[int]]></Type>
<Dimension><![CDATA[]]></Dimension>
<Domain><![CDATA[public]]></Domain>
<Comment><![CDATA[]]></Comment>
</Variable>
<Variable>
<Name><![CDATA[green]]></Name>
<Value><![CDATA[Math.floor((Math.random()*255)+1)]]></Value>
<Type><![CDATA[int]]></Type>
<Dimension><![CDATA[]]></Dimension>
<Domain><![CDATA[public]]></Domain>
<Comment><![CDATA[]]></Comment>
</Variable>
<Variable>
<Name><![CDATA[blue]]></Name>
<Value><![CDATA[Math.floor((Math.random()*255)+1)]]></Value>
<Type><![CDATA[int]]></Type>
<Dimension><![CDATA[]]></Dimension>
<Domain><![CDATA[public]]></Domain>
<Comment><![CDATA[]]></Comment>
</Variable>
<Variable>
<Name><![CDATA[color]]></Name>
<Value><![CDATA["rgba(%red%,%green%,%blue%,255)"]]></Value>
<Type><![CDATA[String]]></Type>
<Dimension><![CDATA[[n2]]]></Dimension>
<Domain><![CDATA[public]]></Domain>
<Comment><![CDATA[]]></Comment>
</Variable>
<Variable>
<Name><![CDATA[stroke]]></Name>
<Value><![CDATA[1]]></Value>
<Type><![CDATA[int]]></Type>
<Dimension><![CDATA[[n2]]]></Dimension>
<Domain><![CDATA[public]]></Domain>
<Comment><![CDATA[]]></Comment>
</Variable>
<Variable>
<Name><![CDATA[]]></Name>
<Value><![CDATA[]]></Value>
<Type><![CDATA[String]]></Type>
<Dimension><![CDATA[]]></Dimension>
<Domain><![CDATA[public]]></Domain>
<Comment><![CDATA[]]></Comment>
</Variable>
</Content>
</Osejs.Model.Variables.Page>
<Osejs.Model.Variables.Page>
<Type>VARIABLE_EDITOR</Type>
<Name>dragable</Name>
<Active>true</Active>
<Internal>false</Internal>
<Content>
<PageComment><![CDATA[]]></PageComment>
<Variable>
<Name><![CDATA[xdrag]]></Name>
<Value><![CDATA[x]]></Value>
<Type><![CDATA[double]]></Type>
<Dimension><![CDATA[]]></Dimension>
<Domain><![CDATA[public]]></Domain>
<Comment><![CDATA[]]></Comment>
</Variable>
<Variable>
<Name><![CDATA[ydrag]]></Name>
<Value><![CDATA[y]]></Value>
<Type><![CDATA[double]]></Type>
<Dimension><![CDATA[]]></Dimension>
<Domain><![CDATA[public]]></Domain>
<Comment><![CDATA[]]></Comment>
</Variable>
<Variable>
<Name><![CDATA[thetadrag]]></Name>
<Value><![CDATA[theta]]></Value>
<Type><![CDATA[double]]></Type>
<Dimension><![CDATA[]]></Dimension>
<Domain><![CDATA[public]]></Domain>
<Comment><![CDATA[]]></Comment>
</Variable>
<Variable>
<Name><![CDATA[]]></Name>
<Value><![CDATA[]]></Value>
<Type><![CDATA[double]]></Type>
<Dimension><![CDATA[]]></Dimension>
<Domain><![CDATA[public]]></Domain>
<Comment><![CDATA[]]></Comment>
</Variable>
<Variable>
<Name><![CDATA[xdragtop]]></Name>
<Value><![CDATA[y]]></Value>
<Type><![CDATA[double]]></Type>
<Dimension><![CDATA[]]></Dimension>
<Domain><![CDATA[public]]></Domain>
<Comment><![CDATA[]]></Comment>
</Variable>
<Variable>
<Name><![CDATA[ydragtop]]></Name>
<Value><![CDATA[x]]></Value>
<Type><![CDATA[double]]></Type>
<Dimension><![CDATA[]]></Dimension>
<Domain><![CDATA[public]]></Domain>
<Comment><![CDATA[]]></Comment>
</Variable>
<Variable>
<Name><![CDATA[thetadragtop]]></Name>
<Value><![CDATA[theta]]></Value>
<Type><![CDATA[double]]></Type>
<Dimension><![CDATA[]]></Dimension>
<Domain><![CDATA[public]]></Domain>
<Comment><![CDATA[]]></Comment>
</Variable>
<Variable>
<Name><![CDATA[]]></Name>
<Value><![CDATA[]]></Value>
<Type><![CDATA[double]]></Type>
<Dimension><![CDATA[]]></Dimension>
<Domain><![CDATA[public]]></Domain>
<Comment><![CDATA[]]></Comment>
</Variable>
<Variable>
<Name><![CDATA[xodragtop]]></Name>
<Value><![CDATA[y]]></Value>
<Type><![CDATA[double]]></Type>
<Dimension><![CDATA[]]></Dimension>
<Domain><![CDATA[public]]></Domain>
<Comment><![CDATA[]]></Comment>
</Variable>
<Variable>
<Name><![CDATA[yodragtop]]></Name>
<Value><![CDATA[x]]></Value>
<Type><![CDATA[double]]></Type>
<Dimension><![CDATA[]]></Dimension>
<Domain><![CDATA[public]]></Domain>
<Comment><![CDATA[]]></Comment>
</Variable>
<Variable>
<Name><![CDATA[thetaodragtop]]></Name>
<Value><![CDATA[theta]]></Value>
<Type><![CDATA[double]]></Type>
<Dimension><![CDATA[]]></Dimension>
<Domain><![CDATA[public]]></Domain>
<Comment><![CDATA[]]></Comment>
</Variable>
<Variable>
<Name><![CDATA[]]></Name>
<Value><![CDATA[]]></Value>
<Type><![CDATA[double]]></Type>
<Dimension><![CDATA[]]></Dimension>
<Domain><![CDATA[public]]></Domain>
<Comment><![CDATA[]]></Comment>
</Variable>
</Content>
</Osejs.Model.Variables.Page>
<Osejs.Model.Variables.Page>
<Type>VARIABLE_EDITOR</Type>
<Name>functionY</Name>
<Active>true</Active>
<Internal>false</Internal>
<Content>
<PageComment><![CDATA[]]></PageComment>
<Variable>
<Name><![CDATA[counter]]></Name>
<Value><![CDATA[0]]></Value>
<Type><![CDATA[int]]></Type>
<Dimension><![CDATA[]]></Dimension>
<Domain><![CDATA[public]]></Domain>
<Comment><![CDATA[]]></Comment>
</Variable>
<Variable>
<Name><![CDATA[selectedmodel]]></Name>
<Value><![CDATA["0"]]></Value>
<Type><![CDATA[String]]></Type>
<Dimension><![CDATA[[1]]]></Dimension>
<Domain><![CDATA[public]]></Domain>
<Comment><![CDATA[]]></Comment>
</Variable>
<Variable>
<Name><![CDATA[functionY]]></Name>
<Value><![CDATA[selectedmodel+""]]></Value>
<Type><![CDATA[String]]></Type>
<Dimension><![CDATA[]]></Dimension>
<Domain><![CDATA[public]]></Domain>
<Comment><![CDATA[]]></Comment>
</Variable>
<Variable>
<Name><![CDATA[functionY2]]></Name>
<Value><![CDATA[selectedmodel+""]]></Value>
<Type><![CDATA[String]]></Type>
<Dimension><![CDATA[]]></Dimension>
<Domain><![CDATA[public]]></Domain>
<Comment><![CDATA[]]></Comment>
</Variable>
<Variable>
<Name><![CDATA[xmodel]]></Name>
<Value><![CDATA[]]></Value>
<Type><![CDATA[double]]></Type>
<Dimension><![CDATA[]]></Dimension>
<Domain><![CDATA[public]]></Domain>
<Comment><![CDATA[]]></Comment>
</Variable>
<Variable>
<Name><![CDATA[showmodel]]></Name>
<Value><![CDATA[false]]></Value>
<Type><![CDATA[boolean]]></Type>
<Dimension><![CDATA[]]></Dimension>
<Domain><![CDATA[public]]></Domain>
<Comment><![CDATA[]]></Comment>
</Variable>
</Content>
</Osejs.Model.Variables.Page>
<Osejs.Model.Variables.Page>
<Type>VARIABLE_EDITOR</Type>
<Name>object</Name>
<Active>true</Active>
<Internal>false</Internal>
<Content>
<PageComment><![CDATA[]]></PageComment>
<Variable>
<Name><![CDATA[appleshow]]></Name>
<Value><![CDATA[]]></Value>
<Type><![CDATA[boolean]]></Type>
<Dimension><![CDATA[]]></Dimension>
<Domain><![CDATA[public]]></Domain>
<Comment><![CDATA[]]></Comment>
</Variable>
<Variable>
<Name><![CDATA[pineappleshow]]></Name>
<Value><![CDATA[]]></Value>
<Type><![CDATA[boolean]]></Type>
<Dimension><![CDATA[]]></Dimension>
<Domain><![CDATA[public]]></Domain>
<Comment><![CDATA[]]></Comment>
</Variable>
<Variable>
<Name><![CDATA[coinshow]]></Name>
<Value><![CDATA[]]></Value>
<Type><![CDATA[double]]></Type>
<Dimension><![CDATA[]]></Dimension>
<Domain><![CDATA[public]]></Domain>
<Comment><![CDATA[]]></Comment>
</Variable>
<Variable>
<Name><![CDATA[]]></Name>
<Value><![CDATA[]]></Value>
<Type><![CDATA[double]]></Type>
<Dimension><![CDATA[]]></Dimension>
<Domain><![CDATA[public]]></Domain>
<Comment><![CDATA[]]></Comment>
</Variable>
</Content>
</Osejs.Model.Variables.Page>
</Osejs.Model.Variables>
<Osejs.Model.Initialization>
<Osejs.Model.Initialization.Page>
<Type>CODE_EDITOR</Type>
<Name>undefined</Name>
<Active>true</Active>
<Internal>false</Internal>
<Content>
<Comment><![CDATA[]]></Comment>
<Code><![CDATA[


if (answershow==undefined){
answershow = false;
  } 

  if (Width1==undefined){
Width1 = "100%";
  }
  if (Width2==undefined){
Width2 = "0%";
  }
  //appleshow
 if (appleshow==undefined){
appleshow = false;
  }
  if (pineappleshow==undefined){
pineappleshow = false;
  }
  //coinshow
  if (coinshow==undefined){
coinshow = false;
  }

]]></Code>
</Content>
</Osejs.Model.Initialization.Page>
<Osejs.Model.Initialization.Page>
<Type>CODE_EDITOR</Type>
<Name>draw</Name>
<Active>true</Active>
<Internal>false</Internal>
<Content>
<Comment><![CDATA[]]></Comment>
<Code><![CDATA[
scaletype =1; //set scale
// if (selected[0]==undefined){ //strange need this to render correctly
  //   selected[0]="1.00 kg";
    
   //  }
// alert(selected[0]);   
    
//if ( selected[0]=="1.00 kg"){
n =10;
n2 =n*10
var c=Math.PI*2/n;
var j;
for(var i=0;i<n;i++){
  j=i+1;
  cs[i]=-c*j;
  xline[i]=Rs*0.7*Math.sin(c*j);
  yline[i]=Rs*0.7*Math.cos(c*j);
  if (j ===n){
    msg[i]="0";
    }
    else {
      msg[i]=j+"00";
          }
}

var c2=Math.PI*2/n2;

// draw lines ticks on the clock
var ci;
for(var i=0;i<n2;i++){
 ci=c2*i;
 xline2[i]=L*Math.sin(ci);
 yline2[i]=L*Math.cos(ci);
 dxs[i]=-ds*Math.sin(ci);
 dys[i]=-ds*Math.cos(ci);
 color[i]= rgb(0,0,0);
 stroke[i]=2;
 if(i%5===0){
  dxs[i]=2*dxs[i];
  dys[i]=2*dys[i];
  color[i]= rgb(255,0,0);
  stroke[i]=2;
 }
 if(i%10===0){
  dxs[i]=2.2*dxs[i];
  dys[i]=2.2*dys[i];
  color[i]= rgb(255,0,255);
  stroke[i]=3;
 }
}

//}

/*

else if ( _view.comboBox.getProperty("SelectedOptions")=="4.00 kg"){
n =4;
n2 =n*20; //change to 20 for finer spaced lines
var c=Math.PI*2/n;
var j;
for(var i=0;i<n;i++){
  j=i+1;
  cs[i]=-c*j;
  xline[i]=Rs*0.7*Math.sin(c*j);
  yline[i]=Rs*0.7*Math.cos(c*j);
  if (j ===n){
    msg[i]="4.00 kg";
    }
    else {
      msg[i]=j+".00 kg";
          }
}

var c2=Math.PI*2/n2;

// draw lines ticks on the clock
var ci;
for(var i=0;i<n2;i++){
 ci=c2*i;
 xline2[i]=L*Math.sin(ci);
 yline2[i]=L*Math.cos(ci);
 dxs[i]=-ds*Math.sin(ci);
 dys[i]=-ds*Math.cos(ci);
 color[i]= rgb(0,0,0);
 stroke[i]=2;
 if(i%2===0){
  dxs[i]=2*dxs[i];
  dys[i]=2*dys[i];
  color[i]= rgb(0,0,0);
  stroke[i]=2;
 }
 if(i%10===0){
  dxs[i]=1.5*dxs[i];
  dys[i]=1.5*dys[i];
  color[i]= rgb(255,0,0);
  stroke[i]=3;
 }
 if(i%20===0){
  dxs[i]=1.2*dxs[i];
  dys[i]=1.2*dys[i];
  color[i]= rgb(255,0,0);
  stroke[i]=4;
 }
}
}
*/

/*
if (_view.comboBox.getProperty("SelectedOptions")=="5.0 kg"){
  n =5;
n2 =n*10; //change to 20 for finer spaced lines
var c=Math.PI*2/n;
var j;
for(var i=0;i<n;i++){
  j=i+1;
  cs[i]=-c*j;
  xline[i]=Rs*0.7*Math.sin(c*j);
  yline[i]=Rs*0.7*Math.cos(c*j);
  if (j ===n){
    msg[i]="0.0 kg";
    }
    else {
      msg[i]=j+".0 kg";
          }
}

var c2=Math.PI*2/n2;

// draw lines ticks on the clock
var ci;
for(var i=0;i<n2;i++){
 ci=c2*i;
 xline2[i]=L*Math.sin(ci);
 yline2[i]=L*Math.cos(ci);
 dxs[i]=-ds*Math.sin(ci);
 dys[i]=-ds*Math.cos(ci);
 color[i]= rgb(0,0,0);
 stroke[i]=2;
 if(i%5===0){
  dxs[i]=2*dxs[i];
  dys[i]=2*dys[i];
  color[i]= rgb(255,0,0);
  stroke[i]=2;
 }
 if(i%10===0){
  dxs[i]=1.5*dxs[i];
  dys[i]=1.5*dys[i];
  color[i]= rgb(255,0,0);
  stroke[i]=3;
 }
 if(i%20===0){
  dxs[i]=1.2*dxs[i];
  dys[i]=1.2*dys[i];
  color[i]= rgb(255,0,0);
  stroke[i]=4;
 }
}
}

*/
]]></Code>
</Content>
</Osejs.Model.Initialization.Page>
<Osejs.Model.Initialization.Page>
<Type>CODE_EDITOR</Type>
<Name>svgradial</Name>
<Active>true</Active>
<Internal>false</Internal>
<Content>
<Comment><![CDATA[]]></Comment>
<Code><![CDATA[
var container = document.createElement('div');
var svggradient = '<svg xmlns="http://www.w3.org/2000/svg" version="1.1"><defs>'+
  '  <radialGradient id="mygrandient" cx="50%" cy="50%" r="80%" fx="30%" fy="30%">'+
  '    <stop offset="10%" style="stop-color:rgb(255,255,255); stop-opacity:1" />'+
  '    <stop offset="100%" style="stop-color:rgb(0,255,255);stop-opacity:1" />'+
  '  </radialGradient>'+
  '</defs></svg>';
container.innerHTML = svggradient;
document.body.appendChild(container);


]]></Code>
</Content>
</Osejs.Model.Initialization.Page>
<Osejs.Model.Initialization.Page>
<Type>CODE_EDITOR</Type>
<Name>axes</Name>
<Active>true</Active>
<Internal>false</Internal>
<Content>
<Comment><![CDATA[]]></Comment>
<Code><![CDATA[
_view.plottingPanelxvst.getAxisX().setPosition([0,0.045]);
_view.plottingPanelxvst.getTitleX().setPosition([0.95,0.045]);
_view.plottingPanelxvst.getAxisY().setPosition([0.045,0]);
_view.plottingPanelxvst.getTitleY().setPosition([0.075,0.9]);
]]></Code>
</Content>
</Osejs.Model.Initialization.Page>
<Osejs.Model.Initialization.Page>
<Type>CODE_EDITOR</Type>
<Name>zoom</Name>
<Active>true</Active>
<Internal>false</Internal>
<Content>
<Comment><![CDATA[]]></Comment>
<Code><![CDATA[
_view.plottingPanel.setZoomLimits([0.7,8]);
]]></Code>
</Content>
</Osejs.Model.Initialization.Page>
<Osejs.Model.Initialization.Page>
<Type>CODE_EDITOR</Type>
<Name>App</Name>
<Active>true</Active>
<Internal>false</Internal>
<Content>
<Comment><![CDATA[]]></Comment>
<Code><![CDATA[
try { // allow code to run in Student Learning Space 
   iOSapp =  (typeof parent.device != 'undefined' && parent.device.platform == "iOS");
   Androidapp = (typeof parent.device != 'undefined' && parent.device.platform == "Android");
} catch(e) {
   iOSapp = false;
   Androidapp = false;
}
]]></Code>
</Content>
</Osejs.Model.Initialization.Page>
</Osejs.Model.Initialization>
<Osejs.Model.Evolution>
<Osejs.Model.Evolution.Page>
<Type>ODE_EDITOR</Type>
<Name>Evol Page</Name>
<Active>true</Active>
<Internal>false</Internal>
<Content>
<PreliminaryCode>
<Comment><![CDATA[Code to be executed before rate equations are evaluated]]></Comment>
<Code><![CDATA[

]]></Code>
</PreliminaryCode>
<ErrorHandling>
</ErrorHandling>
<DelayInitialCondition>
<Comment><![CDATA[]]></Comment>
<Code><![CDATA[

]]></Code>
</DelayInitialCondition>
<Discontinuities>
</Discontinuities>
<Events>
<Event.Page>
<Type>EVENT_EDITOR</Type>
<Name>Event</Name>
<Active>true</Active>
<Internal>false</Internal>
<EventContent>
<EventType>CROSSING_EVENT</EventType>
<Method>BISECTION</Method>
<Iterations>100</Iterations>
<Tolerance><![CDATA[1.0e-5]]></Tolerance>
<StopAtEvent>true</StopAtEvent>
<ZeroCondition><![CDATA[

//return (theta -thetao)-0.0001;
return (theta -thetao); // debugging what sometime 4 n 5 kg random is weird

]]></ZeroCondition>
<Action><![CDATA[
_pause();
disabled=true;
text = "paused, select your answer \n from the dropdown menu";

]]></Action>
<Comment><![CDATA[]]></Comment>
</EventContent>
</Event.Page>
</Events>
<IndependentVariable>t</IndependentVariable>
<Increment>dt</Increment>
<Rate state="theta">omega</Rate>
<Rate state="omega">-k*((theta)-(thetao))/m-b*(omega)/m</Rate>
<Method>RungeKuttaFehlberg</Method>
<Tolerance></Tolerance>
<InternalStep></InternalStep>
<MemoryLength></MemoryLength>
<MaximumStep></MaximumStep>
<MaximumNumberOfSteps>10000</MaximumNumberOfSteps>
<AbsoluteTolerance>0.00001</AbsoluteTolerance>
<RelativeTolerance></RelativeTolerance>
<EstimateFirstStep>false</EstimateFirstStep>
<AccelerationIndependentOfVelocity>false</AccelerationIndependentOfVelocity>
<ForceSynchronization>false</ForceSynchronization>
<UseBestInterpolation>false</UseBestInterpolation>
<EventMaximumStep></EventMaximumStep>
<DelayList><![CDATA[]]></DelayList>
<DelayMaximum><![CDATA[]]></DelayMaximum>
<DelayAddDiscont><![CDATA[]]></DelayAddDiscont>
<DirectIncidenceMatrix><![CDATA[]]></DirectIncidenceMatrix>
<Comment><![CDATA[choose cash-karp better than runge-kutta solve 4n5kg thetao wrong sometimes SPD =5 causes set back to 1]]></Comment>
</Content>
</Osejs.Model.Evolution.Page>
</Osejs.Model.Evolution>
<Osejs.Model.Constraints>
<Osejs.Model.Constraints.Page>
<Type>CODE_EDITOR</Type>
<Name>FixRel Page</Name>
<Active>true</Active>
<Internal>false</Internal>
<Content>
<Comment><![CDATA[]]></Comment>
<Code><![CDATA[
x= L*Math.cos(theta);
y = L*Math.sin(theta);
//xdragtop = x/0.72*Math.sin(theta); // sync dragable to actual
//ydragtop = y/0.72*Math.sin(theta);
thetadegrees = theta*180/pi;
vx = -omega*L*Math.sin(theta);
vy = omega*L*Math.cos(theta);
v = Math.sqrt(vx*vx+vy*vy);



xo= L*Math.cos(thetao);
yo = L*Math.sin(thetao);

]]></Code>
</Content>
</Osejs.Model.Constraints.Page>
<Osejs.Model.Constraints.Page>
<Type>CODE_EDITOR</Type>
<Name>angletomass</Name>
<Active>true</Active>
<Internal>false</Internal>
<Content>
<Comment><![CDATA[]]></Comment>
<Code><![CDATA[
//if ( _view.comboBox.getProperty("SelectedOptions")=="1.00 kg"){
if ( scaletype==1){
  maxy=1;
}

//else if ( _view.comboBox.getProperty("SelectedOptions")=="4.00 kg"){
else if ( scaletype==4){
  maxy=4;
}
//else if ( _view.comboBox.getProperty("SelectedOptions")=="5.0 kg"){
else if ( scaletype==5){
  maxy=5;
}
massscale = -(theta)*maxy/(2*pi);
massscaleo=maxy/(2*pi)*((2*pi)-thetao);
//if (massscale <0){
 // massscale = maxy+massscale;
 // massscaleo=massscale; // sync store with actual for input checking
 // }
//massscale=maxy/(2*pi)*((2*pi)-theta);


]]></Code>
</Content>
</Osejs.Model.Constraints.Page>
<Osejs.Model.Constraints.Page>
<Type>CODE_EDITOR</Type>
<Name>getcorrectl_answer</Name>
<Active>true</Active>
<Internal>false</Internal>
<Content>
<Comment><![CDATA[]]></Comment>
<Code><![CDATA[
//if ( _view.comboBox.getProperty("SelectedOptions")=="1.00 kg"||_view.comboBox.getProperty("SelectedOptions")=="4.00 kg"){

if ( (scaletype==1||scaletype==4)&&!gramshow){
l_answer=_view._format(massscaleo,"0.00")+"";
 
}
// else if ( _view.comboBox.getProperty("SelectedOptions")=="5.0 kg"){
  else if (( scaletype==5)&&!gramshow){
l_answer=_view._format(massscaleo,"0.0")+"";
}
else if ( (scaletype==1||scaletype==4)&&gramshow){
l_answer=_view._format(massscaleo*1000,"0")+"";
}
// else if ( _view.comboBox.getProperty("SelectedOptions")=="5.0 kg"){
  else if (( scaletype==5)&&gramshow){
l_answer=_view._format(massscaleo*1000,"0")+"";
}
]]></Code>
</Content>
</Osejs.Model.Constraints.Page>
<Osejs.Model.Constraints.Page>
<Type>CODE_EDITOR</Type>
<Name>check</Name>
<Active>true</Active>
<Internal>false</Internal>
<Content>
<Comment><![CDATA[]]></Comment>
<Code><![CDATA[


var gramerror = 100;
var kiloerror = 0.1;
if (showAnswerFlag==false)
{ 
K1fcorrect = "";
}
else if (counter>0) // added to make show dislog box once
{
//l_enterK1f===_view._format(l_answer,"0.0"))
  //  if(Math.abs(massscaleo-functionY)<0.005){
    if((l_answer==functionY)&&(scaletype==1||scaletype==4)&&!gramshow){
K1fcorrect = "Great! You have \nthe right answer!";
K1fcorrectbackground = "rgba(0,255,0,255)";
EJSS_INTERFACE.BoxPanel.showOkDialog("Great!<br/>You have the right answer!");
 
}
else if((l_answer==functionY)&&(scaletype==5)&&!gramshow){
K1fcorrect = "Great! You have \nthe right answer!";
K1fcorrectbackground = "rgba(0,255,0,255)";
EJSS_INTERFACE.BoxPanel.showOkDialog(K1fcorrect);
 
}
else if((l_answer==functionY)&&(scaletype==1||scaletype==4)&&gramshow){
K1fcorrect = "Great! You have \nthe right gram answer!";
K1fcorrectbackground = "rgba(0,255,0,255)";
 EJSS_INTERFACE.BoxPanel.showOkDialog("Great!<br/>You have the right gram answer!");
 //alert();
}
else if((l_answer==functionY)&&(scaletype==5)&&gramshow){
K1fcorrect = "Great! You have \nthe right answer!";
K1fcorrectbackground = "rgba(0,255,0,255)";
EJSS_INTERFACE.BoxPanel.showOkDialog(K1fcorrect);
 
}




 else if((Math.abs(l_answer-functionY)<1.e-7&&!gramshow)){// same value but different digits or incorrect format
K1fcorrect = " Check the number \nof digits ";
K1fcorrectbackground = "rgba(255,200,0,255)";
 EJSS_INTERFACE.BoxPanel.showOkDialog(K1fcorrect); // doesnt seems to work now 20170823
 
 }
 
 else if (Math.abs(l_answer-functionY)>0.01&&!gramshow){ //assume 0.01 kg difference maximum
K1fcorrect = " Incorrect,\nyour input is \nout by " + _view._format((massscaleo-functionY),"0.00") ;
K1fcorrectbackground = "rgba(255,0,0,255)";
EJSS_INTERFACE.BoxPanel.showOkDialog(K1fcorrect);
}
 else if (Math.abs(l_answer-functionY)>10&&gramshow){ //assume 10 grams difference maximum
K1fcorrect = " Incorrect,\nyour input is \nout by " + _view._format((massscaleo*1000-functionY),"0") ;
K1fcorrectbackground = "rgba(255,0,0,255)";
EJSS_INTERFACE.BoxPanel.showOkDialog(K1fcorrect);
//alert(functionY);
//alert(massscaleo);
 }
 


counter =0; // make speak once

}
 

]]></Code>
</Content>
</Osejs.Model.Constraints.Page>
</Osejs.Model.Constraints>
<Osejs.Model.Library>
<Osejs.Model.Library.Page>
<Type>LIBRARY_EDITOR</Type>
<Name>Lib Page</Name>
<Active>true</Active>
<Internal>false</Internal>
<Content>
<Comment><![CDATA[]]></Comment>
<Code><![CDATA[
function rgb(r, g, b){
  return "rgb("+r+","+g+","+b+")";
}
]]></Code>
</Content>
</Osejs.Model.Library.Page>
<Osejs.Model.Library.Page>
<Type>LIBRARY_EDITOR</Type>
<Name>AdsMob</Name>
<Active>true</Active>
<Internal>false</Internal>
<Content>
<Comment><![CDATA[]]></Comment>
<Code><![CDATA[
function showRewardVideo() {
		const e = new Event("click");
		try { // allow code to run in normal browser
		const element = parent.document.getElementById("banner");
		element.dispatchEvent(e);
		} catch(e) {
		 const element = false; 
		  }
	}
	function showBannerAd() {
		const e = new Event("click");
		try { // allow code to run in Snormal browser 
		const element = parent.document.getElementById("reward");
		element.dispatchEvent(e);
		} catch(e) {
		 const element = false; 
		  }
	}
	function showInterstitialAds() {
		const e = new Event("click");
		try { // allow code to run in normal browser
		const element = parent.document.getElementById("interstitial");
		element.dispatchEvent(e);
		} catch(e) {
		 const element = false; 
		  }
	}
]]></Code>
</Content>
</Osejs.Model.Library.Page>
<Osejs.Model.Library.Page>
<Type>LIBRARY_EDITOR</Type>
<Name>AdsMob 2</Name>
<Active>false</Active>
<Internal>false</Internal>
<Content>
<Comment><![CDATA[]]></Comment>
<Code><![CDATA[
function showRewardVideo() {
		const e = new Event("click");
		const element = parent.document.getElementById("banner");
		element.dispatchEvent(e);
	}
	function showBannerAd() {
		const e = new Event("click");
		const element = parent.document.getElementById("reward");
		element.dispatchEvent(e);
	}
	function showInterstitialAds() {
		const e = new Event("click");
		const element = parent.document.getElementById("interstitial");
		element.dispatchEvent(e);
	}
]]></Code>
</Content>
</Osejs.Model.Library.Page>
<Osejs.Model.Library.Page>
<Type>LIBRARY_EDITOR</Type>
<Name>Lib Page 2</Name>
<Active>true</Active>
<Internal>false</Internal>
<Content>
<Comment><![CDATA[]]></Comment>
<Code><![CDATA[
//https://developer.mozilla.org/en-US/docs/Web/Guide/API/DOM/Using_full_screen_mode
// does not work for iOS 
/*jslint browser:true */
function toggleFullScreen() {
  if (!document.fullscreenElement &&    // alternative standard method
      !document.mozFullScreenElement && !document.webkitFullscreenElement && !document.msFullscreenElement ) {  // current working methods
    if (document.documentElement.requestFullscreen) {
      document.documentElement.requestFullscreen();
    } else if (document.documentElement.msRequestFullscreen) {
      document.documentElement.msRequestFullscreen();
    } else if (document.documentElement.mozRequestFullScreen) {
      document.documentElement.mozRequestFullScreen();
    } else if (document.documentElement.webkitRequestFullscreen) {
      document.documentElement.webkitRequestFullscreen();
    }
  } else {
    if (document.exitFullscreen) {
      document.exitFullscreen();
    } else if (document.msExitFullscreen) {
      document.msExitFullscreen();
    } else if (document.mozCancelFullScreen) {
      document.mozCancelFullScreen();
    } else if (document.webkitExitFullscreen) {
      document.webkitExitFullscreen();
    }
  }
}
]]></Code>
</Content>
</Osejs.Model.Library.Page>
<Osejs.Model.Library.Page>
<Type>LIBRARY_EDITOR</Type>
<Name>android</Name>
<Active>true</Active>
<Internal>false</Internal>
<Content>
<Comment><![CDATA[]]></Comment>
<Code><![CDATA[
//code reference: http://davidwalsh.name/detect-android
function checkAndroid () {
  var ua = navigator.userAgent.toLowerCase();
  return ua.indexOf("android") > -1; //&& ua.indexOf("mobile");
}
]]></Code>
</Content>
</Osejs.Model.Library.Page>
<Osejs.Model.Library.Page>
<Type>LIBRARY_EDITOR</Type>
<Name>changeOrientation</Name>
<Active>true</Active>
<Internal>false</Internal>
<Content>
<Comment><![CDATA[]]></Comment>
<Code><![CDATA[
// code to be copied to EJSS source code under Custom and used in drawingPanel3D and plottingPanel2D
// address the problem is height difference is iOS app , epub, and Firefox
// user need to change only k and kepub
// copy %changeOrientation()% into the Height Field of drawingPanel3D and plottingPanel2D
function changeOrientation() {
 
var k =0.9 ; // k control height 1 is for full screen, 0.9 shorten etc
var kepub =0.9 ;
// check platform for Apps
try { // allow code to run in Student Learning Space 
  var iOSapp =  (typeof parent.device != 'undefined' && parent.device.platform == "iOS");
  var Androidapp = (typeof parent.device != 'undefined' && parent.device.platform == "Android");
} catch(e) {
  var iOSapp = false;
  var Androidapp = false;
}
// check platform for web browsers
var iOS =/iPad|iPhone|iPod/.test(navigator.userAgent) && !window.MSStream;
var iPad =/iPad/.test(navigator.userAgent) && !window.MSStream;
var iPhone = /iPhone|iPod/.test(navigator.userAgent) && !window.MSStream;
var Android= /Android|android/i.test(navigator.userAgent);

//navigator
var Firefox = navigator.userAgent.indexOf("Firefox") != -1;
 
switch (window.orientation) { // using window.orientation as deciding factor
  case 0:
  case 180:
    this.screenOrientation = 'portrait';
    if (iOSapp){ // does not seems to work
      
      return window.screen.height*k;  //0.1 for app and 0.1 for nonfullscreenapp  
    
    }
    else if (_isEPub){ // does not seems to work
      //   return Math.max(window.screen.width,window.screen.height)*0.9;
      return window.innerHeight*kepub;  //0.1 for app and 0.1 for nonfullscreenapp  
      // return window.screen.height;
      //  return window.innerHeight;
      // return document.documentElement.clientHeight;
    }
   
    else {
     
      return 100*k+"vh";
    }
    break;
  case 90:
  case -90:
    this.screenOrientation = 'landscape';
 
    if (iOSapp){ // App
      return window.screen.width*k;  
      // return window.screen.height;
      //  return window.innerHeight;
      //  return document.documentElement.clientHeight;
    }
    else if (_isEPub){ // does not seems to work
      //   return Math.max(window.screen.width,window.screen.height)*0.9;
      return window.innerHeight*kepub;  //0.1 for app and 0.1 for nonfullscreenapp  
      // return window.screen.height;
      //  return window.innerHeight;
      // return document.documentElement.clientHeight;
    }
   
    else {
      return 100*k+"vh";
      }
    break;
  default:
    this.screenOrientation = 'unknown';
    //       return (iPad)?""+(window.screen.width+window.screen.height)*0.4:((iPhone)?""+window.screen.width:_view._format(window.innerHeight*0.9,"0"));
     if (Firefox){
      return window.innerHeight*k;// number as of 20180831 Firefox does not support vh yet so need a separate line to handle
      }
      
      else {
        return 100*k+"vh"; // string every other solid deployment, Android Android App web chrome etc
        //console.log('hello');
}

}
 
}
]]></Code>
</Content>
</Osejs.Model.Library.Page>
</Osejs.Model.Library>
<Osejs.Model.Elements>
</Osejs.Model.Elements>
</Osejs.Model>
<Osejs.HtmlView>
<Osejs.HtmlView.Page>
<Type>HTML_VIEW_EDITOR</Type>
<Name>HtmlView Page</Name>
<Active>true</Active>
<Internal>false</Internal>
<Content>
<RootProperties>
</RootProperties>
<Tree>
<HtmlView.Element>
<Expanded>true</Expanded>
<Type>Elements.Panel</Type>
<Name><![CDATA[fullscreen]]></Name>
<Property name="Height"><![CDATA[Height]]></Property>
<Property name="Width"><![CDATA[Width]]></Property>
<Property name="OnClick"><![CDATA[showBannerAd();]]></Property>
</HtmlView.Element>
<HtmlView.Element>
<Expanded>true</Expanded>
<Type>Elements.Panel</Type>
<Name><![CDATA[bottomPanel2]]></Name>
<Parent><![CDATA[fullscreen]]></Parent>
<Property name="Width"><![CDATA["100%"]]></Property>
<Property name="Display"><![CDATA["inline-flex"]]></Property>
</HtmlView.Element>
<HtmlView.Element>
<Type>Elements.ComboBox</Type>
<Name><![CDATA[comboBox]]></Name>
<Parent><![CDATA[bottomPanel2]]></Parent>
<Property name="Options"><![CDATA[["random","$1 coin","apple","pineapple","","scale type⚖","1.00 kg","4.00 kg","5.0 kg","","hint","hint off"]]]></Property>
<Property name="Tooltip"><![CDATA["select user_defined and drag the mass"]]></Property>
<Property name="OnChange"><![CDATA[var opts = _view.comboBox.getProperty("SelectedOptions");  // array of options
    var option = (opts.length > 0)? opts[0]:""; // selected option 

// text 1 to 12 on the clock
if ( option=="1.00 kg"){
  scaletype=1;
   massscaleo = Math.round(Math.random()*10)*0.5 ;//random the reading
 thetao = 2*pi-massscaleo/5*(2*pi) ; // real mass angle set to random
 _play(); // to activate to move to actual mass
 
  decimal = 2;
  showAnswerFlag=false;
n =10;
n2 =n*10
var c=Math.PI*2/n;
var j;
for(var i=0;i<n;i++){
  j=i+1;
  cs[i]=-c*j;
  xline[i]=Rs*0.7*Math.sin(c*j);
  yline[i]=Rs*0.7*Math.cos(c*j);
  if (j ===n){
    msg[i]="0";
    }
    else {
      msg[i]=j+"00";
          }
}

var c2=Math.PI*2/n2;

// draw lines ticks on the clock
var ci;
for(var i=0;i<n2;i++){
 ci=c2*i;
 xline2[i]=L*Math.sin(ci);
 yline2[i]=L*Math.cos(ci);
 dxs[i]=-ds*Math.sin(ci);
 dys[i]=-ds*Math.cos(ci);
 color[i]= rgb(0,0,0);
 stroke[i]=2;
 if(i%5===0){
  dxs[i]=2*dxs[i];
  dys[i]=2*dys[i];
  color[i]= rgb(255,0,0);
  stroke[i]=2;
 }
 if(i%10===0){
  dxs[i]=2.2*dxs[i];
  dys[i]=2.2*dys[i];
  color[i]= rgb(255,0,0);
  stroke[i]=4;
 }
}


}



 if ( option=="4.00 kg"){
  scaletype=4;
   massscaleo = Math.round(Math.random()*10)/2 ;//random the reading 0.0 to 4.0
  //alert(massscaleo);
thetao = 2*pi-massscaleo/5*(2*pi) ; // real mass angle set to random
 _play(); // to activate to move to actual mass
 
  showAnswerFlag=false;
  decimal = 2;
n =4;
n2 =n*20; //change to 20 for finer spaced lines
var c=Math.PI*2/n;
var j;
for(var i=0;i<n;i++){
  j=i+1;
  cs[i]=-c*j;
  xline[i]=Rs*0.7*Math.sin(c*j);
  yline[i]=Rs*0.7*Math.cos(c*j);
  if (j ===n){
    msg[i]="4.00 kg";
    }
    else {
      msg[i]=j+".00 kg";
          }
}

var c2=Math.PI*2/n2;

// draw lines ticks on the clock
var ci;
for(var i=0;i<n2;i++){
 ci=c2*i;
 xline2[i]=L*Math.sin(ci);
 yline2[i]=L*Math.cos(ci);
 dxs[i]=-ds*Math.sin(ci);
 dys[i]=-ds*Math.cos(ci);
 color[i]= rgb(0,0,0);
 stroke[i]=2;
 if(i%2===0){
  dxs[i]=2*dxs[i];
  dys[i]=2*dys[i];
  color[i]= rgb(0,0,0);
  stroke[i]=2;
 }
 if(i%10===0){
  dxs[i]=1.5*dxs[i];
  dys[i]=1.5*dys[i];
  color[i]= rgb(255,0,0);
  stroke[i]=3;
 }
 if(i%20===0){
  dxs[i]=1.2*dxs[i];
  dys[i]=1.2*dys[i];
  color[i]= rgb(255,0,0);
  stroke[i]=4;
 }

}

}


 if ( option=="5.0 kg"){
  scaletype=5;
  massscaleo = Math.round(Math.random()*50)/10 ;//random the reading

 thetao = 2*pi-massscaleo/5*(2*pi) ; // real mass angle set to random
 _play(); // to activate to move to actual mass
 showAnswerFlag=false;
  decimal = 1;
  n =5;
n2 =n*10; //change to 20 for finer spaced lines
var c=Math.PI*2/n;
var j;
for(var i=0;i<n;i++){
  j=i+1;
  cs[i]=-c*j;
  xline[i]=Rs*0.7*Math.sin(c*j);
  yline[i]=Rs*0.7*Math.cos(c*j);
  if (j ===n){
    msg[i]="0.0 kg";
    }
    else {
      msg[i]=j+".0 kg";
          }
}

var c2=Math.PI*2/n2;

// draw lines ticks on the clock
var ci;
for(var i=0;i<n2;i++){
 ci=c2*i;
 xline2[i]=L*Math.sin(ci);
 yline2[i]=L*Math.cos(ci);
 dxs[i]=-ds*Math.sin(ci);
 dys[i]=-ds*Math.cos(ci);
 color[i]= rgb(0,0,0);
 stroke[i]=2;
 if(i%5===0){
  dxs[i]=2*dxs[i];
  dys[i]=2*dys[i];
  color[i]= rgb(255,0,0);
  stroke[i]=2;
 }
 if(i%10===0){
  dxs[i]=1.5*dxs[i];
  dys[i]=1.5*dys[i];
  color[i]= rgb(255,0,0);
  stroke[i]=3;
 }
 if(i%20===0){
  dxs[i]=1.2*dxs[i];
  dys[i]=1.2*dys[i];
  color[i]= rgb(255,0,0);
  stroke[i]=4;
 }
}

}


 if (option =="hint"){
  answershow=true;
  }
  else if (option =="hint off"){
  answershow=false;
  }
 
 
  if (option =="apple"){
  appleshow=true;
   ymin=-1;
  ymax=1.75;
_view.plottingPanel.setProperty("MaximumY",1.7);
_view.plottingPanel.setProperty("MinimumY",-1);

  pineappleshow=false;
  coinshow=false;
 // theta =2*pi-massscaleo/5*(2*pi);
 // thetao =2*pi-massscaleo/5*(2*pi);
 if (scaletype==1){
   theta =5.65486677646128;
  thetao =5.65486677646128;
  }
  else if (scaletype==4){
   theta =6.1225;
  thetao =6.1225;
  }
  else if (scaletype==5){
   theta =6.154;
  thetao =6.154;
  }

  }
  
  //pineapple
  if (option =="pineapple"){
  
  appleshow=false;
  ymin=-1;
  ymax=2.5;
  _view.plottingPanel.setProperty("MaximumY",3);
_view.plottingPanel.setProperty("MinimumY",-1);
  pineappleshow=true;
  coinshow=false;
 // theta =2*pi-massscaleo/5*(2*pi);
 // thetao =2*pi-massscaleo/5*(2*pi);
 if (scaletype==1){
   theta =0.63;
  thetao =0.63;
  }
  else if (scaletype==4){
   theta =4.8675;
  thetao =4.8675;
  }
  else if (scaletype==5){
   theta =5.15;
  thetao =5.15;
  }
 

  }
  //$1 coin 16.85g = 0.02
  
  if (option =="$1 coin"){
  
  appleshow=false;
  pineappleshow=false;
  coinshow=true;
   ymin=-1;
  ymax=1.5;
  _view.plottingPanel.setProperty("MaximumY",1.5);
_view.plottingPanel.setProperty("MinimumY",-1);
 // theta =2*pi-massscaleo/5*(2*pi);
 // thetao =2*pi-massscaleo/5*(2*pi);
 if (scaletype==1){
   theta =6.154;
  thetao =6.154;
  }
  else if (scaletype==4){
   theta =6.2485;
  thetao =6.2485;
  }
  else if (scaletype==5){
   theta =6.2548;
  thetao =6.2548;
  }

  }
  else if (option =="random"){
    appleshow=false;
  pineappleshow=false;
  coinshow=false;
  _reset();
    }
  
   //handle dual cases
   //insert to make apple correct reading
if (scaletype==1&&appleshow==true){
   theta =5.65486677646128; //need the fine numbers 
  thetao =5.65486677646128;
  }
  else if (scaletype==4&&appleshow==true){
   theta =6.1225;
  thetao =6.1225;
  }
  else if (scaletype==5&&appleshow==true){
   theta =6.154;
  thetao =6.154;
  }
// end of insert
//pineapple
if (scaletype==1&&pineappleshow==true){
     theta =0.63;
  thetao =0.63;
  }
  else if (scaletype==4&&pineappleshow==true){
  theta =4.8675;
  thetao =4.8675;
  }
  else if (scaletype==5&&pineappleshow==true){
    theta =5.15;
  thetao =5.15;
  }
  //coin
if (scaletype==1&&coinshow==true){
     theta =6.157521601;
  thetao =6.157521601;
  }
  else if (scaletype==4&&coinshow==true){
  theta =6.2485;
  thetao =6.2485;
  }
  else if (scaletype==5&&coinshow==true){
    theta =6.2548;
  thetao =6.2548;
  }
   
   
   
]]></Property>
<Property name="Font"><![CDATA[font]]></Property>
</HtmlView.Element>
<HtmlView.Element>
<Type>Elements.Label</Type>
<Name><![CDATA[answer]]></Name>
<Parent><![CDATA[bottomPanel2]]></Parent>
<Property name="Background"><![CDATA[K1fcorrectbackground]]></Property>
<Property name="Tooltip"><![CDATA["click to change to input field for keying in using keyboard"]]></Property>
<Property name="Text"><![CDATA["?="]]></Property>
<Property name="OnClick"><![CDATA[if (inputdropmenu==true){
  inputdropmenu=false;
  }
  else if (inputdropmenu==false){
  inputdropmenu=true;
  }]]></Property>
<Property name="Font"><![CDATA[font]]></Property>
</HtmlView.Element>
<HtmlView.Element>
<Type>Elements.ComboBox</Type>
<Name><![CDATA[models2gram]]></Name>
<Parent><![CDATA[bottomPanel2]]></Parent>
<Property name="Options"><![CDATA[["0","20","40","60","80","100","120","140","160","180","200","220","240","260","280","300","320","340","360","380","400","420","440","460","480","500","520","540","560","580","600","620","640","660","680","700","720","740","760","780","800","820","840","860","880","900","920","940","960","980","1000","show me"]]]></Property>
<Property name="Background"><![CDATA[K1fcorrectbackground]]></Property>
<Property name="Tooltip"><![CDATA["select suggested models"]]></Property>
<Property name="OnChange"><![CDATA[var opts = _view.models2gram.getProperty("SelectedOptions");  // array of options
    var option = (opts.length > 0)? opts[0]:""; // selected option 

showmodel=true;
showAnswerFlag=true;
functionY=option+"";
if (option=="show me"){
//functionY= _view._format(massscaleo*1000,"0");  
functionY=l_answer;
_view.models2gram.setSelectedOptions([l_answer]);
//alert(_view.models2gram.setSelectedOptions([l_answer]));
//functionY2= +_view._format(x1part+x2part,"0");  

 //if ( scaletype==1||scaletype==4){
//functionY=_view._format(massscaleo*1000,"0");

//}
//else if ( scaletype==5){
//functionY=_view._format(massscaleo*1000,"0");
//}
//alert("The correct Weighing Scale Reading is "+functionY+ " kg");



//showAnswerFlag=false;

}


counter =1; // make speak once]]></Property>
<Property name="Font"><![CDATA[font]]></Property>
<Property name="Display"><![CDATA[(inputdropmenu&&gramshow&&scaletype==1)?"inline-block":"none"]]></Property>
</HtmlView.Element>
<HtmlView.Element>
<Type>Elements.ComboBox</Type>
<Name><![CDATA[models2]]></Name>
<Parent><![CDATA[bottomPanel2]]></Parent>
<Property name="Options"><![CDATA[["0.00","0.02","0.04","0.06","0.08","0.10","0.12","0.14","0.16","0.18","0.20","0.22","0.24","0.26","0.28","0.30","0.30","0.32","0.34","0.36","0.38","0.40","0.42","0.44","0.46","0.48","0.50","0.52","0.54","0.56","0.58","0.60","0.60","0.62","0.64","0.66","0.68","0.70","0.72","0.74","0.76","0.78","0.80","0.82","0.84","0.86","0.88","0.90","0.92","0.94","0.96","0.98","1.00","show me"]]]></Property>
<Property name="Background"><![CDATA[K1fcorrectbackground]]></Property>
<Property name="Tooltip"><![CDATA["select suggested models"]]></Property>
<Property name="OnChange"><![CDATA[var opts = _view.models2.getProperty("SelectedOptions");  // array of options
    var option = (opts.length > 0)? opts[0]:""; // selected option 

showmodel=true;
showAnswerFlag=true;
functionY=option+"";
if (option=="show me"){
//functionY= _view._format(massscaleo*1000,"0");  
functionY=l_answer;
_view.models2.setSelectedOptions([l_answer]);


}


counter =1; // make speak once]]></Property>
<Property name="Font"><![CDATA[font]]></Property>
<Property name="Display"><![CDATA[(inputdropmenu&&scaletype==1&&!gramshow)?"inline-block":"none"]]></Property>
</HtmlView.Element>
<HtmlView.Element>
<Type>Elements.ComboBox</Type>
<Name><![CDATA[models3scaletype4]]></Name>
<Parent><![CDATA[bottomPanel2]]></Parent>
<Property name="Options"><![CDATA[["0","50","100","150","200","250","300","350","400","450","500","550","600","650","700","750","800","850","900","950","1000","1050","1100","1150","1200","1250","1300","1350","1400","1450","1500","1550","1600","1650","1700","1750","1800","1850","1900","1950","2000","2050","2100","2150","2200","2250","2300","2350","2400","2450","2500","2550","2600","2650","2700","2750","2800","2850","2900","2950","3000","3050","3100","3150","3200","3250","3300","3350","3400","3450","3500","3550","3600","3650","3700","3750","3800","3850","3900","3950","4000","show me"]]]></Property>
<Property name="Background"><![CDATA[K1fcorrectbackground]]></Property>
<Property name="Tooltip"><![CDATA["select suggested models"]]></Property>
<Property name="OnChange"><![CDATA[var opts = _view.models3scaletype4.getProperty("SelectedOptions");  // array of options
    var option = (opts.length > 0)? opts[0]:""; // selected option 

showmodel=true;
showAnswerFlag=true;
functionY=option+"";
if (option=="show me"){
//functionY= _view._format(massscaleo*1000,"0");  
functionY=l_answer;
_view.models3scaletype4.setSelectedOptions([l_answer]);


}


counter =1; // make speak once]]></Property>
<Property name="Font"><![CDATA[font]]></Property>
<Property name="Display"><![CDATA[(inputdropmenu&&gramshow&&scaletype==4)?"inline-block":"none"]]></Property>
</HtmlView.Element>
<HtmlView.Element>
<Type>Elements.ComboBox</Type>
<Name><![CDATA[models3]]></Name>
<Parent><![CDATA[bottomPanel2]]></Parent>
<Property name="Options"><![CDATA[["0.00","0.05","0.10","0.15","0.20","0.25","0.30","0.35","0.40","0.45","0.50","0.55","0.60","0.65","0.70","0.75","0.80","0.85","0.90","0.95","1.00","1.05","1.10","1.15","1.20","1.25","1.30","1.35","1.40","1.45","1.50","1.55","1.60","1.65","1.70","1.75","1.80","1.85","1.90","1.95","2.00","2.05","2.10","2.15","2.20","2.25","2.30","2.35","2.40","2.45","2.50","2.55","2.60","2.65","2.70","2.75","2.80","2.85","2.90","2.95","3.00","3.05","3.10","3.15","3.20","3.25","3.30","3.35","3.40","3.45","3.50","3.55","3.60","3.65","3.70","3.75","3.80","3.85","3.90","3.95","4.00","show me"]]]></Property>
<Property name="Background"><![CDATA[K1fcorrectbackground]]></Property>
<Property name="Tooltip"><![CDATA["select suggested models"]]></Property>
<Property name="OnChange"><![CDATA[var opts = _view.models3.getProperty("SelectedOptions");  // array of options
    var option = (opts.length > 0)? opts[0]:""; // selected option 

showmodel=true;
showAnswerFlag=true;
functionY=option+"";
if (option=="show me"){
//functionY= _view._format(massscaleo*1000,"0");  
functionY=l_answer;
_view.models3.setSelectedOptions([l_answer]);


}

counter =1; // make speak once
  

]]></Property>
<Property name="Font"><![CDATA[font]]></Property>
<Property name="Display"><![CDATA[(inputdropmenu&&scaletype==4&&!gramshow)?"inline-block":"none"]]></Property>
</HtmlView.Element>
<HtmlView.Element>
<Type>Elements.ComboBox</Type>
<Name><![CDATA[modelsscaletype5]]></Name>
<Parent><![CDATA[bottomPanel2]]></Parent>
<Property name="Options"><![CDATA[["0","100","200","300","400","500","600","700","800","900","1000","1100","1200","1300","1400","1500","1600","1700","1800","1900","2000","2100","2200","2300","2400","2500","2600","2700","2800","2900","3000","3100","3200","3300","3400","3500","3600","3700","3800","3900","4000","4100","4200","4300","4400","4500","4600","4700","4800","4900","5000","show me"]]]></Property>
<Property name="Background"><![CDATA[K1fcorrectbackground]]></Property>
<Property name="Tooltip"><![CDATA["select suggested models"]]></Property>
<Property name="OnChange"><![CDATA[var opts = _view.modelsscaletype5.getProperty("SelectedOptions");  // array of options
    var option = (opts.length > 0)? opts[0]:""; // selected option 

showmodel=true;
showAnswerFlag=true;
functionY=option+"";
if (option=="show me"){
//functionY= _view._format(massscaleo*1000,"0");  
functionY=l_answer;
_view.modelsscaletype5.setSelectedOptions([l_answer]);


}


counter =1; // make speak once]]></Property>
<Property name="Font"><![CDATA[font]]></Property>
<Property name="Display"><![CDATA[(inputdropmenu&&gramshow&&scaletype==5)?"inline-block":"none"]]></Property>
</HtmlView.Element>
<HtmlView.Element>
<Type>Elements.ComboBox</Type>
<Name><![CDATA[models]]></Name>
<Parent><![CDATA[bottomPanel2]]></Parent>
<Property name="Options"><![CDATA[["0.0","0.1","0.2","0.3","0.4","0.5","0.6","0.7","0.8","0.9","1.0","1.1","1.2","1.3","1.4","1.5","1.6","1.7","1.8","1.9","2.0","2.1","2.2","2.3","2.4","2.5","2.6","2.7","2.8","2.9","3.0","3.1","3.2","3.3","3.4","3.5","3.6","3.7","3.8","3.9","4.0","4.1","4.2","4.3","4.4","4.5","4.6","4.7","4.8","4.9","5.0","show me"]]]></Property>
<Property name="Background"><![CDATA[K1fcorrectbackground]]></Property>
<Property name="Tooltip"><![CDATA["select suggested models"]]></Property>
<Property name="OnChange"><![CDATA[//var opts = _view.models.getProperty("SelectedOptions");  // array of options
 //   var option = (opts.length > 0)? opts[0]:""; // selected option 
option = _view.models.getProperty("SelectedOptions");
showmodel=true;
showAnswerFlag=true;
functionY=option+"";
if (option=="show me"){
//functionY= _view._format(massscaleo*1000,"0");  
functionY=l_answer;
_view.models.setSelectedOptions([l_answer]);


}
counter =1; // make speak once

]]></Property>
<Property name="Font"><![CDATA[font]]></Property>
<Property name="Display"><![CDATA[(inputdropmenu&&scaletype==5&&!gramshow)?"inline-block":"none"]]></Property>
</HtmlView.Element>
<HtmlView.Element>
<Type>Elements.Function</Type>
<Name><![CDATA[fField]]></Name>
<Parent><![CDATA[bottomPanel2]]></Parent>
<Property name="Background"><![CDATA[K1fcorrectbackground]]></Property>
<Property name="Tooltip"><![CDATA["model input field"]]></Property>
<Property name="Value"><![CDATA[%functionY%]]></Property>
<Property name="OnChange"><![CDATA[showmodel=true;
showAnswerFlag=true;
//xmodel=_view.fField.evaluate({ t : t, x : xmodel }); 
//checkanswer();
counter =1; // make speak once]]></Property>
<Property name="Width"><![CDATA["10vw"]]></Property>
<Property name="Font"><![CDATA[font]]></Property>
<Property name="Display"><![CDATA[!inputdropmenu?"inline-block":"none"]]></Property>
</HtmlView.Element>
<HtmlView.Element>
<Type>Elements.Label</Type>
<Name><![CDATA[g]]></Name>
<Parent><![CDATA[bottomPanel2]]></Parent>
<Property name="Background"><![CDATA[K1fcorrectbackground]]></Property>
<Property name="Tooltip"><![CDATA["gram"]]></Property>
<Property name="Text"><![CDATA[" g "]]></Property>
<Property name="Visibility"><![CDATA[gramshow]]></Property>
<Property name="OnClick"><![CDATA[//var opts = _view.models2gram.getProperty("SelectedOptions");  // array of options
//    var option = (opts.length > 0)? opts[0]:""; // selected option 

gramshow=false;

]]></Property>
<Property name="Font"><![CDATA[font]]></Property>
<Property name="Display"><![CDATA[(gramshow)?"inline-block":"none"]]></Property>
</HtmlView.Element>
<HtmlView.Element>
<Type>Elements.Label</Type>
<Name><![CDATA[kg]]></Name>
<Parent><![CDATA[bottomPanel2]]></Parent>
<Property name="Background"><![CDATA[K1fcorrectbackground]]></Property>
<Property name="Tooltip"><![CDATA["kilogram"]]></Property>
<Property name="Text"><![CDATA[" kg "]]></Property>
<Property name="Visibility"><![CDATA[!gramshow]]></Property>
<Property name="OnClick"><![CDATA[gramshow=true;

]]></Property>
<Property name="Font"><![CDATA[font]]></Property>
<Property name="Display"><![CDATA[(!gramshow)?"inline-block":"none"]]></Property>
</HtmlView.Element>
<HtmlView.Element>
<Type>Elements.TwoStateButton</Type>
<Name><![CDATA[playPauseButton]]></Name>
<Parent><![CDATA[bottomPanel2]]></Parent>
<Property name="OffClick"><![CDATA[text="paused";
isPaused=true;
_pause();]]></Property>
<Property name="TextOn"><![CDATA["►Play"]]></Property>
<Property name="State"><![CDATA[_isPaused]]></Property>
<Property name="Tooltip"><![CDATA["Play/Pause"]]></Property>
<Property name="TextOff"><![CDATA["❚❚Pause"]]></Property>
<Property name="Disabled"><![CDATA[disabled]]></Property>
<Property name="OnClick"><![CDATA[_play();
isPaused=false;
text="playing";]]></Property>
<Property name="Width"><![CDATA["15vw"]]></Property>
<Property name="Font"><![CDATA[font]]></Property>
</HtmlView.Element>
<HtmlView.Element>
<Type>Elements.Button</Type>
<Name><![CDATA[userreset]]></Name>
<Parent><![CDATA[bottomPanel2]]></Parent>
<Property name="Tooltip"><![CDATA["user restart or replay"]]></Property>
<Property name="Text"><![CDATA["⏮Restart"]]></Property>
<Property name="Width"><![CDATA["15vw"]]></Property>
<Property name="OnClick"><![CDATA[//showInterstitialAds();
//t=0;
theta=2*pi;
x = 0.72*Math.sin(theta)*ydragtop;
y = 0.72*Math.sin(theta)*xdragtop;
thetadragtop = Math.atan2(ydragtop,xdragtop);
//theta=(thetadragtop-pi/2)%(2*pi);
//theta = 2*pi-massscale/5*(2*pi);
massscale = -(theta)*maxy/(2*pi);
if (massscale <0){
  massscale = maxy+massscale;
  }


//x=0;
//y=0; // fake reset to allow dropmenu to stay same
_play();
disabled=false;
]]></Property>
<Property name="Font"><![CDATA[font]]></Property>
</HtmlView.Element>
<HtmlView.Element>
<Type>Elements.Button</Type>
<Name><![CDATA[Ads2]]></Name>
<Parent><![CDATA[bottomPanel2]]></Parent>
<Property name="Tooltip"><![CDATA["Watch an Ads to support the development. Thank you!"]]></Property>
<Property name="Text"><![CDATA["🎥⏮👍Ads"]]></Property>
<Property name="Width"><![CDATA["15vw"]]></Property>
<Property name="OnClick"><![CDATA[showBannerAd();
if (Math.random()<0.5){
showInterstitialAds();
}
else{

showRewardVideo();
}

//t=0;
theta=2*pi;
x = 0.72*Math.sin(theta)*ydragtop;
y = 0.72*Math.sin(theta)*xdragtop;
thetadragtop = Math.atan2(ydragtop,xdragtop);
//theta=(thetadragtop-pi/2)%(2*pi);
//theta = 2*pi-massscale/5*(2*pi);
massscale = -(theta)*maxy/(2*pi);
if (massscale <0){
  massscale = maxy+massscale;
  }


//x=0;
//y=0; // fake reset to allow dropmenu to stay same
_play();
disabled=false;
]]></Property>
<Property name="Font"><![CDATA[font]]></Property>
<Property name="Display"><![CDATA[(iOSapp||Androidapp)?"inline-block":"none"]]></Property>
</HtmlView.Element>
<HtmlView.Element>
<Type>Elements.Button</Type>
<Name><![CDATA[resetButton2]]></Name>
<Parent><![CDATA[bottomPanel2]]></Parent>
<Property name="Tooltip"><![CDATA["full reset"]]></Property>
<Property name="Text"><![CDATA["↻Reset"]]></Property>
<Property name="Width"><![CDATA["15vw"]]></Property>
<Property name="OnClick"><![CDATA[_reset();

showBannerAd();
//showInterstitialAds();]]></Property>
<Property name="Font"><![CDATA[font]]></Property>
</HtmlView.Element>
<HtmlView.Element>
<Expanded>false</Expanded>
<Type>Elements.Panel</Type>
<Name><![CDATA[panel]]></Name>
<Parent><![CDATA[fullscreen]]></Parent>
<Property name="Height"><![CDATA["100%"]]></Property>
<Property name="Width"><![CDATA["100%"]]></Property>
</HtmlView.Element>
<HtmlView.Element>
<Expanded>false</Expanded>
<Type>Elements.PlottingPanel</Type>
<Name><![CDATA[plottingPanel]]></Name>
<Parent><![CDATA[panel]]></Parent>
<Property name="Gutters"><![CDATA[[0,0,0,0]]]></Property>
<Property name="ShowAreaRectangle"><![CDATA[false]]></Property>
<Property name="XTicks"><![CDATA[1]]></Property>
<Property name="EnabledZooming"><![CDATA[true]]></Property>
<Property name="XFixedTick"><![CDATA[0]]></Property>
<Property name="OnDoubleClick"><![CDATA[toggleFullScreen();]]></Property>
<Property name="YFixedTick"><![CDATA[0]]></Property>
<Property name="TRMessage"><![CDATA[%K1fcorrect%]]></Property>
<Property name="XAutoTicks"><![CDATA[false]]></Property>
<Property name="Height"><![CDATA[%changeOrientation()%]]></Property>
<Property name="Width"><![CDATA[Width1]]></Property>
<Property name="TLMessage"><![CDATA[%text%]]></Property>
<Property name="Enabled"><![CDATA[true]]></Property>
<Property name="Title"><![CDATA["Weighing or \nMass Scale Model"]]></Property>
<Property name="SquareAspect"><![CDATA[true]]></Property>
<Property name="YTicks"><![CDATA[1]]></Property>
<Property name="MaximumY"><![CDATA[1]]></Property>
<Property name="OnDrag"><![CDATA[
_view.plottingPanel.setProperty("MinimumY",Math.max(_view.plottingPanel.getProperty("MinimumY"),-1));
_view.plottingPanel.setProperty("MaximumY",Math.min(_view.plottingPanel.getProperty("MaximumY"),3));
]]></Property>
<Property name="MaximumX"><![CDATA[1]]></Property>
<Property name="EnabledDragging"><![CDATA["ENABLED_Y"]]></Property>
<Property name="YAutoTicks"><![CDATA[false]]></Property>
<Property name="MinimumX"><![CDATA[-1]]></Property>
<Property name="MinimumY"><![CDATA[-1]]></Property>
<Property name="AutoScaleY"><![CDATA[false]]></Property>
<Property name="OnZoom"><![CDATA[_view.plottingPanel.setZoomLimits([0.5,3]);
_view.plottingPanel.setProperty("MinimumY",Math.max(_view.plottingPanel.getProperty("MinimumY"),-1));
_view.plottingPanel.setProperty("MaximumY",Math.min(_view.plottingPanel.getProperty("MaximumY"),3));

]]></Property>
<Property name="AutoScaleX"><![CDATA[false]]></Property>
<Property name="BRMessage"><![CDATA[" t = "+_view._format(t,"0.00") + " s "]]></Property>
</HtmlView.Element>
<HtmlView.Element>
<Type>Elements.Image2D</Type>
<Name><![CDATA[image]]></Name>
<Parent><![CDATA[plottingPanel]]></Parent>
<Property name="SizeX"><![CDATA[2]]></Property>
<Property name="RelativePosition"><![CDATA["CENTERED"]]></Property>
<Property name="X"><![CDATA[0]]></Property>
<Property name="ImageUrl"><![CDATA["./massscale/kilogramblankscalergb.jpg"]]></Property>
<Property name="Y"><![CDATA[0]]></Property>
<Property name="SizeY"><![CDATA[2]]></Property>
</HtmlView.Element>
<HtmlView.Element>
<Expanded>false</Expanded>
<Type>Elements.Group2D</Type>
<Name><![CDATA[centre]]></Name>
<Parent><![CDATA[plottingPanel]]></Parent>
<Property name="X"><![CDATA[0]]></Property>
<Property name="Y"><![CDATA[0]]></Property>
</HtmlView.Element>
<HtmlView.Element>
<Type>Elements.Shape2D</Type>
<Name><![CDATA[circle]]></Name>
<Parent><![CDATA[centre]]></Parent>
<Property name="FillColor"><![CDATA["url(#mygrandient)"]]></Property>
<Property name="SizeX"><![CDATA[L*2]]></Property>
<Property name="ShapeType"><![CDATA["ELLIPSE"]]></Property>
<Property name="X"><![CDATA[0]]></Property>
<Property name="Y"><![CDATA[0]]></Property>
<Property name="SizeY"><![CDATA[L*2]]></Property>
</HtmlView.Element>
<HtmlView.Element>
<Type>Elements.SegmentSet2D</Type>
<Name><![CDATA[segmentSet]]></Name>
<Parent><![CDATA[centre]]></Parent>
<Property name="NumberOfElements"><![CDATA[n2]]></Property>
<Property name="SizeX"><![CDATA[dxs]]></Property>
<Property name="X"><![CDATA[xline2]]></Property>
<Property name="LineColor"><![CDATA[%color%]]></Property>
<Property name="Y"><![CDATA[yline2]]></Property>
<Property name="SizeY"><![CDATA[dys]]></Property>
<Property name="LineWidth"><![CDATA[%stroke%]]></Property>
</HtmlView.Element>
<HtmlView.Element>
<Expanded>false</Expanded>
<Type>Elements.Group2D</Type>
<Name><![CDATA[group]]></Name>
<Parent><![CDATA[plottingPanel]]></Parent>
<Property name="Transformation"><![CDATA[pi/2]]></Property>
<Property name="X"><![CDATA[0]]></Property>
<Property name="Y"><![CDATA[0]]></Property>
</HtmlView.Element>
<HtmlView.Element>
<Type>Elements.Segment2D</Type>
<Name><![CDATA[thetao]]></Name>
<Parent><![CDATA[group]]></Parent>
<Property name="SizeX"><![CDATA[xo]]></Property>
<Property name="LineColor"><![CDATA["Green"]]></Property>
<Property name="X"><![CDATA[0]]></Property>
<Property name="Y"><![CDATA[0]]></Property>
<Property name="Visibility"><![CDATA[answershow]]></Property>
<Property name="SizeY"><![CDATA[yo]]></Property>
<Property name="LineWidth"><![CDATA[3]]></Property>
<Property name="EnabledPosition"><![CDATA["ENABLED_ANY"]]></Property>
</HtmlView.Element>
<HtmlView.Element>
<Type>Elements.Arrow2D</Type>
<Name><![CDATA[theta]]></Name>
<Parent><![CDATA[group]]></Parent>
<Property name="FillColor"><![CDATA["Blue"]]></Property>
<Property name="SizeX"><![CDATA[x]]></Property>
<Property name="LineColor"><![CDATA["Blue"]]></Property>
<Property name="X"><![CDATA[0]]></Property>
<Property name="Y"><![CDATA[0]]></Property>
<Property name="SizeY"><![CDATA[y]]></Property>
<Property name="LineWidth"><![CDATA[5]]></Property>
<Property name="DrawFill"><![CDATA[true]]></Property>
<Property name="EnabledPosition"><![CDATA["ENABLED_ANY"]]></Property>
<Property name="Offset"><![CDATA["SOUTH_WEST"]]></Property>
</HtmlView.Element>
<HtmlView.Element>
<Type>Elements.Text2D</Type>
<Name><![CDATA[hint2]]></Name>
<Parent><![CDATA[group]]></Parent>
<Property name="Transformation"><![CDATA[-pi/2]]></Property>
<Property name="FillColor"><![CDATA["Red"]]></Property>
<Property name="X"><![CDATA[xo*1.2]]></Property>
<Property name="OnEnter"><![CDATA[var option = ""+massscaleo.toFixed(2) + " kg";
]]></Property>
<Property name="Y"><![CDATA[yo*1.2]]></Property>
<Property name="Text"><![CDATA[""+massscaleo.toFixed(2) + " kg"]]></Property>
<Property name="Visibility"><![CDATA[decimal==2&&answershow]]></Property>
<Property name="EnabledPosition"><![CDATA["ENABLED_NO_MOVE"]]></Property>
<Property name="Font"><![CDATA[font]]></Property>
</HtmlView.Element>
<HtmlView.Element>
<Type>Elements.Text2D</Type>
<Name><![CDATA[hint]]></Name>
<Parent><![CDATA[group]]></Parent>
<Property name="Transformation"><![CDATA[-pi/2]]></Property>
<Property name="FillColor"><![CDATA["Red"]]></Property>
<Property name="X"><![CDATA[xo*1.2]]></Property>
<Property name="OnEnter"><![CDATA[var option = ""+massscaleo.toFixed(1) + " kg";
]]></Property>
<Property name="Y"><![CDATA[yo*1.2]]></Property>
<Property name="Text"><![CDATA[""+massscaleo.toFixed(1)+ " kg"]]></Property>
<Property name="Visibility"><![CDATA[decimal==1&&answershow]]></Property>
<Property name="EnabledPosition"><![CDATA["ENABLED_NO_MOVE"]]></Property>
<Property name="Font"><![CDATA[font]]></Property>
</HtmlView.Element>
<HtmlView.Element>
<Expanded>false</Expanded>
<Type>Elements.Group2D</Type>
<Name><![CDATA[centre2]]></Name>
<Parent><![CDATA[plottingPanel]]></Parent>
<Property name="X"><![CDATA[0]]></Property>
<Property name="Y"><![CDATA[0]]></Property>
</HtmlView.Element>
<HtmlView.Element>
<Type>Elements.TextSet2D</Type>
<Name><![CDATA[textSet2]]></Name>
<Parent><![CDATA[centre2]]></Parent>
<Property name="NumberOfElements"><![CDATA[n]]></Property>
<Property name="SizeX"><![CDATA[sizex]]></Property>
<Property name="X"><![CDATA[xline]]></Property>
<Property name="Y"><![CDATA[yline]]></Property>
<Property name="Text"><![CDATA[%msg%]]></Property>
<Property name="SizeY"><![CDATA[sizey]]></Property>
<Property name="Font"><![CDATA[font]]></Property>
<Property name="ElementInteracted"><![CDATA[elementinteracted]]></Property>
</HtmlView.Element>
<HtmlView.Element>
<Type>Elements.Shape2D</Type>
<Name><![CDATA[shapedrago]]></Name>
<Parent><![CDATA[plottingPanel]]></Parent>
<Property name="FillColor"><![CDATA["rgba(0,0,0,0)"]]></Property>
<Property name="ShapeType"><![CDATA["WHEEL"]]></Property>
<Property name="OnDrag"><![CDATA[//restrict to fix length
xodragtop= L*Math.cos(Math.atan2(yodragtop,xodragtop));
yodragtop= L*Math.sin(Math.atan2(yodragtop,xodragtop));


xo = 0.72*Math.sin(thetao)*yodragtop;
yo = 0.72*Math.sin(thetao)*xodragtop;

if (scaletype!=5){
thetaodragtop = Math.round(Math.atan2(yodragtop,xodragtop)/(2*pi)*n2)/n2*(2*pi);
}
else {
// thetadragtop = Math.floor(Math.atan2(ydragtop,xdragtop)/(2*pi)*n2)/n2*(2*pi); 
 thetaodragtop = Math.round(Math.atan2(yodragtop,xodragtop)/(2*pi)*(n2))/(n2)*(2*pi)+pi/50;
  }


//thetaodragtop = Math.atan2(yodragtop,xodragtop);
thetao=(thetaodragtop-pi/2)%(2*pi);
//theta = 2*pi-massscale/5*(2*pi);
massscaleo = -(thetao)*maxy/(2*pi);
if (massscaleo <0){
  massscaleo = maxy+massscaleo;
  }

]]></Property>
<Property name="OnRelease"><![CDATA[// sync position to be at exact marking
xodragtop = L*Math.cos(thetaodragtop);
yodragtop = L*Math.sin(thetaodragtop);



thetao = 2*pi+thetao;
]]></Property>
<Property name="SizeX"><![CDATA[30]]></Property>
<Property name="X"><![CDATA[xodragtop]]></Property>
<Property name="LineColor"><![CDATA["Green"]]></Property>
<Property name="Y"><![CDATA[yodragtop]]></Property>
<Property name="OnPress"><![CDATA[disabled=false;]]></Property>
<Property name="SizeY"><![CDATA[30]]></Property>
<Property name="PixelSize"><![CDATA[true]]></Property>
<Property name="LineWidth"><![CDATA[3]]></Property>
<Property name="EnabledPosition"><![CDATA["ENABLED_ANY"]]></Property>
</HtmlView.Element>
<HtmlView.Element>
<Type>Elements.Shape2D</Type>
<Name><![CDATA[shapedrag2]]></Name>
<Parent><![CDATA[plottingPanel]]></Parent>
<Property name="FillColor"><![CDATA["rgba(0,0,0,0)"]]></Property>
<Property name="ShapeType"><![CDATA["WHEEL"]]></Property>
<Property name="OnDrag"><![CDATA[//restrict to fix length
//xdragtop= Math.sqrt(L*L-ydragtop*ydragtop);
//ydragtop= Math.sqrt(L*L-xdragtop*xdragtop);
xdragtop= L*Math.cos(Math.atan2(ydragtop,xdragtop));
ydragtop= L*Math.sin(Math.atan2(ydragtop,xdragtop));



x = 0.72*Math.sin(theta)*ydragtop;
y = 0.72*Math.sin(theta)*xdragtop;
//ctam = Math.round(Math.atan2(mx,my)/(2*pi)*60)/60*(2*pi);
if (scaletype!=5){
thetadragtop = Math.round(Math.atan2(ydragtop,xdragtop)/(2*pi)*n2)/n2*(2*pi);
}
else {
// thetadragtop = Math.floor(Math.atan2(ydragtop,xdragtop)/(2*pi)*n2)/n2*(2*pi); 
 thetadragtop = Math.round(Math.atan2(ydragtop,xdragtop)/(2*pi)*(n2))/(n2)*(2*pi)+pi/50;
  }
theta=(thetadragtop-pi/2)%(2*pi);
//theta = 2*pi-massscale/5*(2*pi);
massscale = -(theta)*maxy/(2*pi);
massscaleo=massscale; // sync store with actual for input checking
if (massscale <0){
  massscale = maxy+massscale;
  massscaleo=massscale; // sync store with actual for input checking
  }

]]></Property>
<Property name="OnRelease"><![CDATA[// sync position to be at exact marking
xdragtop = L*Math.cos(thetadragtop);
ydragtop = L*Math.sin(thetadragtop);

theta = 2*pi+theta;
massscaleo=massscale; // sync store with actual for input checking
]]></Property>
<Property name="SizeX"><![CDATA[30]]></Property>
<Property name="X"><![CDATA[xdragtop]]></Property>
<Property name="LineColor"><![CDATA["Yellow"]]></Property>
<Property name="Y"><![CDATA[ydragtop]]></Property>
<Property name="OnPress"><![CDATA[disabled=false;]]></Property>
<Property name="SizeY"><![CDATA[30]]></Property>
<Property name="PixelSize"><![CDATA[true]]></Property>
<Property name="LineWidth"><![CDATA[3]]></Property>
<Property name="EnabledPosition"><![CDATA["ENABLED_ANY"]]></Property>
</HtmlView.Element>
<HtmlView.Element>
<Type>Elements.Shape2D</Type>
<Name><![CDATA[shapedrag]]></Name>
<Parent><![CDATA[plottingPanel]]></Parent>
<Property name="FillColor"><![CDATA["rgba(0,0,0,0)"]]></Property>
<Property name="SizeX"><![CDATA[30]]></Property>
<Property name="ShapeType"><![CDATA["ELLIPSE"]]></Property>
<Property name="X"><![CDATA[xdrag]]></Property>
<Property name="LineColor"><![CDATA["Black"]]></Property>
<Property name="Y"><![CDATA[ydrag]]></Property>
<Property name="Visibility"><![CDATA[false]]></Property>
<Property name="SizeY"><![CDATA[30]]></Property>
<Property name="PixelSize"><![CDATA[true]]></Property>
<Property name="LineWidth"><![CDATA[4]]></Property>
<Property name="EnabledPosition"><![CDATA["ENABLED_ANY"]]></Property>
<Property name="OnDrag"><![CDATA[thetadrag = Math.atan2(ydrag,xdrag)-pi/2;
_view.comboBox.setSelectedOptions(["user defined"]);
//selected[0]="user_defined";
]]></Property>
</HtmlView.Element>
<HtmlView.Element>
<Type>Elements.Shape2D</Type>
<Name><![CDATA[shape2]]></Name>
<Parent><![CDATA[plottingPanel]]></Parent>
<Property name="FillColor"><![CDATA["rgba(0,0,0,0)"]]></Property>
<Property name="SizeX"><![CDATA[30]]></Property>
<Property name="ShapeType"><![CDATA["ELLIPSE"]]></Property>
<Property name="X"><![CDATA[x]]></Property>
<Property name="LineColor"><![CDATA["Black"]]></Property>
<Property name="Y"><![CDATA[y]]></Property>
<Property name="Visibility"><![CDATA[false]]></Property>
<Property name="SizeY"><![CDATA[30]]></Property>
<Property name="PixelSize"><![CDATA[true]]></Property>
<Property name="EnabledPosition"><![CDATA["ENABLED_ANY"]]></Property>
<Property name="OnDrag"><![CDATA[theta = Math.atan2(y,x)-pi/2;
_view.comboBox.setSelectedOptions(["user defined"]);
//selected[0]="user_defined";
]]></Property>
</HtmlView.Element>
<HtmlView.Element>
<Type>Elements.Text2D</Type>
<Name><![CDATA[_K1fcorrect_]]></Name>
<Parent><![CDATA[plottingPanel]]></Parent>
<Property name="FillColor"><![CDATA[K1fcorrectbackground]]></Property>
<Property name="X"><![CDATA[0]]></Property>
<Property name="Y"><![CDATA[0.35]]></Property>
<Property name="Text"><![CDATA[%K1fcorrect%]]></Property>
<Property name="Visibility"><![CDATA[false]]></Property>
<Property name="Font"><![CDATA["normal normal 4vw "]]></Property>
<Property name="EnabledPosition"><![CDATA["ENABLED_Y"]]></Property>
</HtmlView.Element>
<HtmlView.Element>
<Type>Elements.Image2D</Type>
<Name><![CDATA[coin]]></Name>
<Parent><![CDATA[plottingPanel]]></Parent>
<Property name="SizeX"><![CDATA[rangex/4]]></Property>
<Property name="RelativePosition"><![CDATA["SOUTH"]]></Property>
<Property name="ImageUrl"><![CDATA["./massscale/Singapore-One-dollar-Coin.png"]]></Property>
<Property name="Y"><![CDATA[1]]></Property>
<Property name="Visibility"><![CDATA[coinshow]]></Property>
<Property name="SizeY"><![CDATA[rangey/4]]></Property>
</HtmlView.Element>
<HtmlView.Element>
<Type>Elements.Image2D</Type>
<Name><![CDATA[pineapple]]></Name>
<Parent><![CDATA[plottingPanel]]></Parent>
<Property name="SizeX"><![CDATA[rangex/2.5]]></Property>
<Property name="RelativePosition"><![CDATA["SOUTH"]]></Property>
<Property name="ImageUrl"><![CDATA["./massscale/pineapple01-md.jpg"]]></Property>
<Property name="Y"><![CDATA[1]]></Property>
<Property name="Visibility"><![CDATA[pineappleshow]]></Property>
<Property name="SizeY"><![CDATA[rangey*1.1]]></Property>
</HtmlView.Element>
<HtmlView.Element>
<Type>Elements.Image2D</Type>
<Name><![CDATA[apple]]></Name>
<Parent><![CDATA[plottingPanel]]></Parent>
<Property name="SizeX"><![CDATA[rangex/4]]></Property>
<Property name="RelativePosition"><![CDATA["SOUTH"]]></Property>
<Property name="ImageUrl"><![CDATA["./massscale/Single_apple.png"]]></Property>
<Property name="Y"><![CDATA[1]]></Property>
<Property name="Visibility"><![CDATA[appleshow]]></Property>
<Property name="SizeY"><![CDATA[rangey/3]]></Property>
</HtmlView.Element>
<HtmlView.Element>
<Expanded>false</Expanded>
<Type>Elements.Group2D</Type>
<Name><![CDATA[step]]></Name>
<Parent><![CDATA[plottingPanel]]></Parent>
<Property name="X"><![CDATA[0]]></Property>
<Property name="Y"><![CDATA[0]]></Property>
<Property name="Visibility"><![CDATA[false]]></Property>
</HtmlView.Element>
<HtmlView.Element>
<Type>Elements.Arrow2D</Type>
<Name><![CDATA[arrow2]]></Name>
<Parent><![CDATA[step]]></Parent>
<Property name="MarkEnd"><![CDATA["TRIANGLE"]]></Property>
<Property name="SizeX"><![CDATA[0]]></Property>
<Property name="LineColor"><![CDATA["rgba(0,150,0,1.0)"]]></Property>
<Property name="OnPress"><![CDATA[ymax=ymax+0.25;
ymin=ymin-0.25;
if (ymax>2.5)ymax=2.5;
if (ymin<-1)ymin=-1;
]]></Property>
<Property name="SizeY"><![CDATA[20]]></Property>
<Property name="PixelSize"><![CDATA[true]]></Property>
<Property name="EnabledPosition"><![CDATA["ENABLED_NO_MOVE"]]></Property>
</HtmlView.Element>
<HtmlView.Element>
<Type>Elements.Arrow2D</Type>
<Name><![CDATA[arrow]]></Name>
<Parent><![CDATA[step]]></Parent>
<Property name="MarkEnd"><![CDATA["TRIANGLE"]]></Property>
<Property name="SizeX"><![CDATA[0]]></Property>
<Property name="LineColor"><![CDATA["rgba(0,150,0,1.0)"]]></Property>
<Property name="OnPress"><![CDATA[ymax=ymax-0.25;
ymin=ymin+0.25;
if (ymax<0.75)ymax=0.75;
if (ymin>-0.75)ymin=-0.75;
]]></Property>
<Property name="SizeY"><![CDATA[-20]]></Property>
<Property name="PixelSize"><![CDATA[true]]></Property>
<Property name="EnabledPosition"><![CDATA["ENABLED_NO_MOVE"]]></Property>
</HtmlView.Element>
<HtmlView.Element>
<Expanded>false</Expanded>
<Type>Elements.PlottingPanel</Type>
<Name><![CDATA[plottingPanelxvst]]></Name>
<Parent><![CDATA[panel]]></Parent>
<Property name="Gutters"><![CDATA[[0,0,0,0]]]></Property>
<Property name="YScalePrecision"><![CDATA[2]]></Property>
<Property name="XFixedTick"><![CDATA[0]]></Property>
<Property name="Title"><![CDATA["mass  vs. Time"]]></Property>
<Property name="MaximumY"><![CDATA[maxy]]></Property>
<Property name="MaximumX"><![CDATA[T]]></Property>
<Property name="YFixedTick"><![CDATA[0]]></Property>
<Property name="YAutoTicks"><![CDATA[false]]></Property>
<Property name="MinimumX"><![CDATA[0]]></Property>
<Property name="MinimumY"><![CDATA[0]]></Property>
<Property name="XTickStep"><![CDATA[1]]></Property>
<Property name="TitleY"><![CDATA["mass  (kg)"]]></Property>
<Property name="YTickStep"><![CDATA[maxy/10]]></Property>
<Property name="TitleX"><![CDATA["Time (s)"]]></Property>
<Property name="AutoScaleY"><![CDATA[false]]></Property>
<Property name="AutoScaleX"><![CDATA[true]]></Property>
<Property name="MarginX"><![CDATA[10]]></Property>
<Property name="MarginY"><![CDATA[10]]></Property>
<Property name="XAutoTicks"><![CDATA[false]]></Property>
<Property name="Height"><![CDATA[%changeOrientation()%]]></Property>
<Property name="Width"><![CDATA[Width2]]></Property>
<Property name="BRMessage"><![CDATA[%K1fcorrect%]]></Property>
<Property name="Display"><![CDATA["none"]]></Property>
</HtmlView.Element>
<HtmlView.Element>
<Type>Elements.Trail2D</Type>
<Name><![CDATA[trail2]]></Name>
<Parent><![CDATA[plottingPanelxvst]]></Parent>
<Property name="Active"><![CDATA[t>0]]></Property>
<Property name="Connected"><![CDATA[t>0]]></Property>
<Property name="LineColor"><![CDATA["Blue"]]></Property>
<Property name="InputX"><![CDATA[t]]></Property>
<Property name="InputY"><![CDATA[massscale]]></Property>
<Property name="LineWidth"><![CDATA[1.5]]></Property>
</HtmlView.Element>
<HtmlView.Element>
<Type>Elements.Shape2D</Type>
<Name><![CDATA[trailDot22]]></Name>
<Parent><![CDATA[plottingPanelxvst]]></Parent>
<Property name="FillColor"><![CDATA["Blue"]]></Property>
<Property name="SizeX"><![CDATA[10]]></Property>
<Property name="LineColor"><![CDATA["Black"]]></Property>
<Property name="X"><![CDATA[t]]></Property>
<Property name="Y"><![CDATA[massscale]]></Property>
<Property name="SizeY"><![CDATA[10]]></Property>
<Property name="PixelSize"><![CDATA[true]]></Property>
</HtmlView.Element>
<HtmlView.Element>
<Type>Elements.Trail2D</Type>
<Name><![CDATA[equilibrium]]></Name>
<Parent><![CDATA[plottingPanelxvst]]></Parent>
<Property name="LineColor"><![CDATA["Green"]]></Property>
<Property name="InputX"><![CDATA[t]]></Property>
<Property name="InputY"><![CDATA[massscaleo]]></Property>
<Property name="LineWidth"><![CDATA[1.5]]></Property>
</HtmlView.Element>
</Tree>
</Content>
</Osejs.HtmlView.Page>
</Osejs.HtmlView>
</Osejs>
