Signup | Login

Home | Videos | Models | Calculations | Code | Mission | Thanks

See Python Code

Submit an Improvement



Suggested Improvements

This is just the client-side code with the three jQuery listeners instead of one.
<!DOCTYPE html>

<html>
	<head>
		<title>Open Mars</title>
		<!--<link rel="SHORTCUT ICON" href="/favicon.ico" />!-->
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.6.2/jquery.min.js">
</script>
<script type="text/javascript">
$(document).ready(function(){
$("#flip1").click(function(){
    $("#panel1").slideToggle("slow");
  });
$("#flip2").click(function(){
    $("#panel2").slideToggle("slow");
  });
$("#flip3").click(function(){
    $("#panel3").slideToggle("slow");
  });
});
</script>




	
	<style types = "text/css">
	
	
		body {
			font-family: sans-serif;
			width: 800px;
			margin: 0 auto;
			padding: 10px
			margin: 0 auto
		}
		
		.login-link {
			color: black;
			text-decoration: none;
		}

		.login-link:visited {
			color: black;
		}

		.login-link:hover {
			color: Blue;
		}

		hr {
			margin: 20px auto;
		}
	
		.content + .content {
			margin-top: 20px;
		}
	
		.content-heading {
			position: relative;
		}
		
		.content-subject {
			text-decoration: none;
			color: black;
			font-weight: bold;
			font-size: 30px;
		}
	
		.content-body {
			margin: 0;
			font-size: 26px;
		}
		
		.content-link {
			margin: 0;
			font-size: 26px;
			color: blue;
		}
		
		.content-date {
			position: absolute;
			right: 0px;
			bottom: 0px;
			color: #999;
		}
		
		my_h {
			font-family: sans-serif;
			font-weight: bold;
			font-size: 45px;
			color: grey;
		}	
		
		cache_check {
			font-family: sans-serif;
			font-weight: bold;
			font-size: 10px;
			color: grey;
		}
		
		.mypage-link {
			color: #0000A0;
			text-decoration: none;
			font-size: 26px;
		}

		.mypage-link:visited {
			color: #0000A0;
		}

		.mypage-link:hover {
			color: purple;
		}		
		
div.panel,p.flip
{
margin:0px;
padding:5px;
text-align:center;
background:white;
border:solid 1px #c3c3c3;
}
div.panel
{
height:120px;
display:none;
}
</style>
</head>
		

		
	

	
	<body>
	<a href="/"><img src="http://i.imgur.com/6xwTh.png" title="Hosted by imgur.com" alt="" /></a>


	<!--</a>-->
	<br>

	<a href="/" class =login-link><b>Home |</b></a>
	<a href="/videos" class =login-link><b>Videos |</b></a>
	<a href="/calculations" class =login-link><b>Calculations |</b></a>
	<a href="/codepage" class =login-link><b>Code |</b></a>
	<a href="/mission" class =login-link><b>Mission |</b></a>
	<a href="/thumbsup" class =login-link><b>Thanks</b></a>

	<div style="float:right; clear:right;"><b> kjay227 - </b> 
	<a href="/logout" class =login-link ><b> Logout </b></a>
    
	</div>
	<hr>
	<br>

	
	
		<div class= "content">
		<div class="content-heading">
		<div class = "content-subject">Mission Statement</div>
		<a href="/missionstatementhistory" class =content-date>History</a>
		
		</div>
		<div class= "content-body">The Open Mars Project seeks to empower Earthlings to work together to bring low cost remote control space exploration into homes around the world by 2032.</div>
		</div>
<div id="panel1">
<p>	

	<form method="post">
		<label>
			<textarea name="mission_edit" rows="3" cols="80">The Open Mars Project seeks to empower Earthlings to work together to bring low cost remote control space exploration into homes around the world by 2032.</textarea>
		</label>
		<br>
		<input type="submit" value="Submit Change">
	</form>
		
	<br>
</p>
</div>	
<p id="flip1">Edit</p>

	
	
<br>
	<div class= "content">
	<div class="content-subject">Background</div>
<ul>	
<li><a href="http://en.wikipedia.org/wiki/Exploration_of_Mars" class =mypage-link><b>Exploration of Mars</b></a>
</ul>
<ul>	
<li><a href="http://en.wikipedia.org/wiki/Private_spaceflight" class =mypage-link><b>Private Spaceflight</b></a>
</ul>	
<ul>	
<li><a href="http://en.wikipedia.org/wiki/Robotic_spacecraft" class =mypage-link><b>Robotic Spacecraft</b></a>
</ul>
<ul>	
<li><a href="http://en.wikipedia.org/wiki/Microbot" class =mypage-link><b>Microbots</b></a>
</ul>
<ul>	
<li><a href="http://en.wikipedia.org/wiki/Crowdsourcing" class =mypage-link><b>Crowdsourcing</b></a>
</ul>
</div>


		<div class= "content">
		<div class="content-heading">
		<div class = "content-subject">Market</div>
		<a href="/markethistory" class =content-date>History</a>
		</div>
		<div class= "content-body">Currently only a few lucky scientists and engineers get to control robots on Mars, but in the future with Micro-Martians and the Open Mars Project students, scientists, engineers, and explorers everywhere can participate in discovering a new world.</div>
		</div>
<div id="panel2">
<p>	
	<form method="post">
		<label>
			<textarea name="market_edit" rows="3" cols="80">Currently only a few lucky scientists and engineers get to control robots on Mars, but in the future with Micro-Martians and the Open Mars Project students, scientists, engineers, and explorers everywhere can participate in discovering a new world.</textarea>
		</label>
		<br>
		<input type="submit" value="Submit Change">
	</form>
	<br>
</p>
</div>	
<p id="flip2">Edit</p>
	<hr>
	
	
	
<div class= "content">
<div class="content-subject">Goals</div>


<ul>		
	<li>	<div class= "content-body">Build tiny remote control robots or Micro-Martians using nanotechnology and 3D printing</div> </li>
		</ul>


	
	
	
<ul>		
	<li>	<div class= "content-body">Build a pod to house Micro-Martians</div> </li>
		</ul>


	
	
	
<ul>		
	<li>	<div class= "content-body">Contract out a company to deliver Pod</div> </li>
		</ul>


	
	
	
<ul>		
	<li>	<div class= "content-body">Land a pod full of Micro-Martians on Mars</div> </li>
		</ul>


	
	
	
		</div>
<div id="panel3">
<p>	
	<form method="post">
		<label>
			<textarea name="goals_edit" rows="3" cols="80">New goal...</textarea>
		</label>
		<br>
		<input type="submit" value="Submit Goal">
	</form>
	<br>
</p>
</div>	
<p id="flip3">Add New Goal</p>
<br>
<hr>
	</body>

<center>
<a rel="license" href="http://creativecommons.org/licenses/by-sa/3.0/"><img alt="Creative Commons License" style="border-width:0" src="http://i.creativecommons.org/l/by-sa/3.0/88x31.png" /></a><br /><span xmlns:dct="http://purl.org/dc/terms/" property="dct:title">Open-Mars</span> by <span xmlns:cc="http://creativecommons.org/ns#" property="cc:attributionName">Jack Scott</span> is licensed under a <a rel="license" href="http://creativecommons.org/licenses/by-sa/3.0/">Creative Commons Attribution-ShareAlike 3.0 Unported License</a>.
<br>
micromartian@gmail.com
</center>





</html>

Write a function to do this translation.
        if podcost_a == "trillion":
            podcost_n = 1000000000000
        if podcost_a == "billion":
            podcost_n = 1000000000
        if podcost_a == "million":
            podcost_n = 1000000
        if podcost_a == "thousand":
            podcost_n = 1000
        if podcost_a == "-------":
            podcost_n = 1

Creative Commons License
Open-Mars by Jack Scott is licensed under a Creative Commons Attribution-ShareAlike 3.0 Unported License. micromartian@gmail.com