UNCLASSIFIED

index.html 10.5 KB
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267
<html>

<head>

    <!--<script src="../assets/js/naval_letter.js"></script>-->
    <script src="js/bundle.js"></script>
    <script src="js/filesaver.js"></script>

    <!-- Bootstrap -->
    <link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.5.2/css/bootstrap.min.css" integrity="sha384-JcKb8q3iqJ61gNV9KGb8thSsNjpSL0n8PARn9HuZOnIxN0hoP+VmmDGMN5t9UJ0Z" crossorigin="anonymous">
</head>

<body style="background-color:#3b3b3b;">
    <div class="container" style="background-color: slategray">
        
    <img src="images/MarineCoders.png" class="img-fluid" alt="Responsive image">

    <h1  style="text-align:center">Naval Letter Format Generator</h1>

    <fieldset>  
        <legend > File Name Information: </legend>
        <label>
            <div class="input-group mb-3">
                <div class="input-group-prepend">
                    <span class="input-group-text" id="basic-addon3">Enter Your Desired Filename:</span>
            <input class="form-control" type="text" name="Filename" id="filename" size="30" maxlength="30">
                </div>
            </div>
        </label>
        <br />
    </fieldset>
    <br />

    <!-- Destination e-mail address? -->
           
    <!-- Header Address Information -->
    <fieldset>
        <legend > Address Information: </legend>
        <label>
            <div class="input-group mb-3">
                <div class="input-group-prepend">
                    <span class="input-group-text" id="basic-addon3">Line 1 (Unit Name):</span>
            <input class="form-control" type="text" name="line1" id="line1" size="30" >
            </div>
        </div>
        </label>
        <br/>
        <label>
            <div class="input-group mb-3">
                <div class="input-group-prepend">
                    <span class="input-group-text" id="basic-addon3">Line 2 (Address Line 1):</span>
            <input class="form-control" type="text" name="line2" id="line2" size="30" >
                </div>
                </div>
        </label>
        <br/>
        <label>

            <div class="input-group mb-3">
                <div class="input-group-prepend">
                    <span class="input-group-text" id="basic-addon3">Line 3 (Address Line 2):</span>
            <input class="form-control"  type="text" name="line3" id="line3" size="30" >
        </div>
    </div>
                </label>
    </fieldset>

    <br />


            <!-- Header Information -->
            <fieldset>
                <legend > Header Information: </legend>
                <label>
                    <div class="input-group mb-3">
                        <div class="input-group-prepend">
                            <span class="input-group-text" id="basic-addon3">Enter your SSIC:</span>
                    <input class="form-control" type="text" name="SSIC" id="ssic" size="30" maxlength="4">
                    </div>
                </div>
                </label>
                <br/>
                <label>
                    <div class="input-group mb-3">
                        <div class="input-group-prepend">
                            <span class="input-group-text" id="basic-addon3">Enter Your Reply Code:</span>
                    <input class="form-control" type="text" name="ReplyCode" id="reply" size="30" maxlength="13">
                        </div>
                        </div>
                </label>
                <br/>
                <label>

                    <div class="input-group mb-3">
                        <div class="input-group-prepend">
                            <span class="input-group-text" id="basic-addon3">Enter The Date (DD Mmm YY):</span>
                    <input class="form-control" type="text" name="Date" id="date" size="30" maxlength="9">
                </div>
            </div>
                        </label>
            </fieldset>
            
            <br />
            
            <!-- Reply Information -->
            <fieldset>
                <legend > Reply Block: </legend>
                <label>
                    <div class="input-group mb-3">
                        <div class="input-group-prepend">
                            <span class="input-group-text" id="basic-addon3">From (Full Identifier or Billet and Unit Name):</span>
                    <input class="form-control" type="text" name="From" id="from" size="60" maxlength="150">
                    </div>
                    </div>
                        </label>
                        <br/>
                <label>

                    <div class="input-group mb-3">
                        <div class="input-group-prepend">
                            <span class="input-group-text" id="basic-addon3">To (Billet and unit Name or identifier here):</span>
                    <input class="form-control" type="text" name="To" id="to" size="60" maxlength="150">
                        </div>
                        </div>
                        </label>
                        <br/>
                <label>
                    <div class="input-group mb-3">
                        <div class="input-group-prepend">
                            <span class="input-group-text" id="basic-addon3">Enter The Subject (ALWAYS IN ALL CAPS):</span>
                    <input class="form-control" type="text" name="Subj" id="subj" size="60" maxlength="150">
                    </div>
                    </div>
                </label>
            </fieldset>
            
            <br />
            
            <!-- Optional Portions -->
            <fieldset>
                <legend > Optional Items: </legend>
                
		<label >Do you have a VIA?</label>
  		<input type="radio" name="ifVia" id="rad1" value="yes" onclick="generatorBundle.showHideDiv('rad1','ViaTextBoxContainer')"> Yes </label>
		<input type="radio" name="ifVia" checked="checked" id="rad2" value="no" onclick="generatorBundle.showHideDiv('rad1','ViaTextBoxContainer')"> No</label>

		<div style="display: none;" class="label" id="ViaTextBoxContainer">
		<label >
            Enter The Via (Title, name of activity (Code), location when needed):
        </label>
		<input id="btnAdd" type="button" value="Add Via" onclick="generatorBundle.addVia()" />
		<input class="form-control" name = "ViaTextBox" size="60" type="text"/>

		</br>
		</div>

</br>
		<label >Do you have References ?</label>
  		<input type="radio" name="ifRef" id="rad3" value="yes" onclick="generatorBundle.showHideDiv('rad3','RefTextBoxContainer')"> Yes </label>
		<input type="radio" name="ifRef" checked="checked" id="rad4" value="no" onclick="generatorBundle.showHideDiv('rad3','RefTextBoxContainer')"> No</label>

		<div style="display: none;" class="label" id="RefTextBoxContainer">
                    <label >
                        Enter The References (ALWAYS IN CAPS, ABBREVIATIONS ALLOWED):
            <input id="btnAdd" type="button" value="Add Ref" onclick="generatorBundle.addRef()" />
		<input class="form-control" name = "RefTextBox"  size="60" type="text"/>

		</br>
		</div>
                <br />
     
		<label >Do you have Enclosures?</label>
  		<input type="radio" name="ifEncl" id="rad5" value="yes" onclick="generatorBundle.showHideDiv('rad5','EnclTextBoxContainer')"> Yes </label>
		<input type="radio" name="ifEncl" checked="checked" id="rad6" value="no" onclick="generatorBundle.showHideDiv('rad5','EnclTextBoxContainer')"> No</label>

		<div style="display: none;" class="label" id="EnclTextBoxContainer">
                <label >
                   Enter The Enclosures (ALWAYS IN CAPS, ABBREVIATIONS ALLOWED):
		<input id="btnAdd" type="button" value="Add Encl" onclick="generatorBundle.addEnc()" />
		<input class="form-control" name = "EnclTextBox"  size="60" type="text"/>

		</br>
		</div>
                <br />
         
            </fieldset>
            
            <br />
            
            <!-- Body of the message -->
            <fieldset>
                <legend > Body Block: </legend>
                
                <div>
                <label  for = "body">
                    Enter a body paragraph:
                </label>
                </div>

       		<div class="label" id="BodyTextBoxContainer">
                <textarea class="form-control" rows = "8" cols = "40" id="BodyBlocks" name="BodyBlocks"></textarea>
		            
	<label  for = "bodylvl">
                    Select the body level:
                </label>
	<select id="BodyLevel" name="BodyLevel" >
	<option SELECTED value=1>1</option>
	<option value=2>2</option>
	<option value=3>3</option>
	</select>   
<!--
	<textarea rows = "8" cols = "80" id="BodyBlocks" name="BodyBlocks" value = "' + value + '" > 
	</textarea>
  	<label for = "bodylvl"> Select the body level: </label>
	<select id="BodyLevel" name="BodyLevel" >
	<option SELECTED value=1>1</option>
	<option value=2>2</option>
	<option value=3>3</option>
	</select>
	<input type="button" value="Remove Paragraph" onclick = "RemoveBodyTextBox(this)" >  
-->
		</br>
		</div>
		</br>
<input id="btnAdd" type="button" value="Add Another Body Paragraph" onclick="generatorBundle.addBody()" /> 
                <br />

</fieldset>

<br />

<fieldset>
                <legend > Closing Block: </legend>
		</br>
                <div>
                <label >
                    <div class="input-group mb-3">
                        <div class="input-group-prepend">
                            <span class="input-group-text" id="basic-addon3">Enter The Signature (FI. MI. LNAME):</span>
                    <input class="form-control" type="text" name="Sig" id="sig" size="60" maxlength="150">
                    </div>
                    </div>
                </label>
                </div>
                

</br>
<label >Do you have Copy To?</label>
  		<input type="radio" name="ifCopy" id="rad7" value="yes" onclick="generatorBundle.showHideDiv('rad7','CopyTextBoxContainer')"> Yes </label>
		<input type="radio" name="ifCopy" checked="checked" id="rad8" value="no" onclick="generatorBundle.showHideDiv('rad7','CopyTextBoxContainer')"> No</label>

		<div style="display: none;" class="label" id="CopyTextBoxContainer">
                <label    >
                   Enter An Adressee (Billet and unit Name or identifier here):
		<input id="btnAdd" type="button" value="Add Copy To" onclick="generatorBundle.addCopy()" />
		<input class="form-control" name = "CopyTextBox" size="60" type="text"/>
		</br>
		</div>
                <br />

            </fieldset>
            <br />

    <button type="button" onclick="generatorBundle.generateDoc()">Click to generate document</button>
</body>

</html>