Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
<!DOCTYPE html
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"></meta>
<title>Send Out The Data</title>
<link rel="stylesheet" href="Style.css" type="text/css"></link>
<script src="sample.js" type="text/javascript"></script>
</head>
<body>
<h3>Submissions Form</h3>
<form name="SubmissionForm" action="mailto:HungryMan@DonnerParty.com" enctype="multipart/form-data">
<table class="Fatscope">
<tr>
<td class="DescriptorCell">Function Name:</td>
<td class="ContentCell"><input type="text" size="100" id="FunctionName"></input></td>
</tr>
<tr>
<td class="DescriptorCell">Module which contains Function:</td>
<td class="ContentCell"><input type="text" size="100" id="ModuleName"></input></td>
</tr>
<tr>
<td class="DescriptorCell">Module Location:</td>
<td class="ContentCell"><input type="text" size="100" id="ModuleLocation"></input></td>
</tr>
<tr>
<td class="DescriptorCell">Function Description:</td>
<td class="ContentCell"><textarea cols="75" rows="5" id="FunctionDescription"></textarea></td>
</tr>
<tr>
<td class="DescriptorCell">Function Parameters:</td>
<td class="ContentCell"><input type="text" size="100" id="FunctionParameters"></input></td>
</tr>
<tr>
<td class="DescriptorCell">Function Example Call:</td>
<td class="ContentCell"><input type="text" size="100" id="FunctionExample"></input></td>
</tr>
<tr>
<td class="DescriptorCell">Programmer Name:</td>
<td class="ContentCell"><input type="text" size="100" id="ProgrammerName"></input></td>
</tr>
</table>
<p class="CenteredContent"><input type="reset" value="Clear All Entries" class="PDButton"></input></p>
</form>
<form name="ProxyForm" enctype="text/plain" method="post" action ="mailto:HungryMan@DonnerParty.com?subject=Reuseable Code Library Submission" onsubmit="update_message_body();return true;">
<p class="CenteredContent"><input type="submit" value="Submit New Function" class="PDButton"></input></p>
<input type="hidden" id="MessageBody" name="MessageBody"></input>
</form>
</body>
</html>
function update_message_body()
// This function composes an e-mail message using the contents of
// another form on the same page.
{
var FunctionName = document.SubmissionForm.FunctionName.value;
var ModuleName = document.SubmissionForm.ModuleName.value;
var ModuleLocation = document.SubmissionForm.ModuleLocation.value;
var FunctionDescription = document.SubmissionForm.FunctionDescription.value;
var FunctionParameters = document.SubmissionForm.FunctionParameters.value;
var FunctionExample = document.SubmissionForm.FunctionExample.value;
var ProgrammerName = document.SubmissionForm.ProgrammerName.value;
var CurrentDate = new Date();
document.ProxyForm.MessageBody.value = "\n\n" + "-= Start of Message =-" + "\n\n"
+ "Reuseable Code Library Submission" + "\n\n"
+ "Time received: " + CurrentDate + "\n\n"
+ "Function Name: " + FunctionName + "\n\n"
+ "Module Name: " + ModuleName + "\n\n"
+ "Module Location: " + ModuleLocation + "\n\n"
+ "Function Description: " + FunctionDescription + "\n\n"
+ "Function Parameters: " + FunctionParameters + "\n\n"
+ "Function Example Call: " + FunctionExample + "\n\n"
+ "Submitted by: " + ProgrammerName + "\n\n" + "-= End of Message =-";
return true;
}