VERSION HISTORY F/A-18 DDI Emulator Written by Bobby Martin Mad props to the original Hornet DDI system builder. Rebuilding it all in HTML/CSS/JS has been (and still is) quite a challenge. Known bugs: **FIXED**-Boxes stay boxed when leaving page. Might have to use some object oriented coding to fix that. The PITA is that the boxes are messing with the size of the DIVs, de-centering the bottom row. **FIXED**-Stores page, PT6 weapon select canvas is stretching the div making it about 5 pixels taller than it should be. Don't know why, pisses me off. -The waypoint number on both the HSI and Data pages is supposed to be between the up and down arrows. It's not. Not sure how I'm going to fix that or if I'm even going to. Things to do: **FIXED**-Vertical text is not centered horizontally or vertically. Buttons requiring two lines or text are covered and need wider divs. **Started**-Most system programming (everything inside the tactical display). **Started**-Most page programming (for everything in the non-tactical region). **Complete**-Some type of data entry, perhaps even formatted to look like an Up Front Control. -Call all html with JS to safeguard code IP. -Reformat CSS to be completely fluid, all percentage based so the page can be rescaled as necessary to fit on a user's screen. -Properly document this code, because I am a horrible, terrible person. **Complete**-I'd like to have a map that scales out to 160 NM and an underlaid map that shows a sequence so a user can see what a sequence should look like in the jet before ever getting in. This would help quite a bit jumping in a Bravo. v0.43 -Update for iPads/iPhones: Users can no longer zoom on the device. This is actually better behavior because quickly tapping twice zooms the whole display in. It was really annoying when tested. v0.42 - 06 Aug 2013 -Minor bugfixes involving turning the TACAN on when not on the HSI page. -Bugfixes for UFC activation on the A/C and Data pages. v0.41 - 03 Aug 2013 -UFC graphic is now installed. -Wife said I needed a gradient in the background so it's easier on the eyes. Done. v0.40 - 02 Aug 2013 -The UFC code has received a major overhaul making it easier for me to program and works better across all of its applications. It's not complete, however. -TACANs got a big upgrade. Can't colonize T/R and X-Ray at the same time in its current state. I doubt you'll use Y in the jet in FAMs, though. Good for sight picture, low priority to fix. -Waypoints can now be entered on the data page! Remember that in real life WP 0 won't ever change, but in this trainer you can use WP 0 to change the location of the jet. You can do this to check B/R from another WP or Tacan or see what a sequence looks like if you can't see it when zoom out to 160NM at the field. -Now has a A/C page and you can enter the MVAR. Doesn't do anything, but it's good for habit patterns. -The most notable change is the inclusion of the new DDI graphic that I jacked from a powerpoint slide. It adds a lot to the feel of the trainer. Currently trying to do that same for the UFC. -Optimized courseline/heading code. -Optimized WP change code. v0.37 -A/A and REF WPs are now selectable and will stay selected with appropriate waypoints until deselected. -Sequences can now be cycled through on the HSI->data subpage. v0.36 -Options not selectable/not programmed are now greyed out. If clicking on it doesn't do anything at all it's grey. -All SL's are loaded and selectable at the top of the page. -Started working on the HSI. Numbers/cardinals rotate around the HSI, but are not aligned up and down as they are in the jet. Don't know how to fix it, not a priority. -Created a TACAN input in the UFC and implemented it into the HSI page. Gives range/bearing from notional A/C location (WP 0). -Added radio knobs for the sole purpose of turning off the UFC. -Shout out to my wife for doing some funky trig to calculate the pixel coordinates relative to ownship position to correctly plot sequences/TACANs/and WYPTs on the HSI. -Sequences on the HSI page now work and sequence properly. -Scale now works. -Sequences are properly populated on the HSI->data subpage. SEQUFC still not programmed, however. -Courselines/headings are able to be turned on and can be changed. Headings don't match the HSI yet, though. v0.35 -FCS Page statically displayed -Moved the 9X's where they are supposed to be. -Add a static VSI to the HUD repeater. -Started the HSI page. Currently all waypoints are working. When you cycle through the WPs on the HSI page you will get bearing/range from current location (Waypoint 0) to the WP. -SL1-5 are set up and selectable. Once clicked the SL will be loaded and the user is brought back to the TAC menu. I actually have to input SL2-5, though. -Changed out a bunch of bad, sloppy code: --Either border has been removed and replaced with the 'outline' CSS modifier, or border-boxing has been added. --Sizing is now completed... better. Better than it was anyway. --Stores page is complete, minus PGM and some gun specifics, which I don't know. Users can enter and store programs completely and the information is retained until the browser is reloaded. v0.34 -CAS Page inputted, ZTime works but nothing else is inputtable yet. -HUD is drawn, static. -Stores page is about 80% complete. Just need to write the code to input and save even program that is entered. I might do JDAM one day, but that will be down the road. -Took numbers off the Radar Attack display until I get clarification on what numbers can actually be shown there. I believe this is all secret, but if it's in MS FSX it's going in this trainer. -Bit page, FLIR Maint, users can now change LLE to MGRS and such. Only cosmetic, not functionality. -Fuel page drawn, all static. Might throw all the numbers on a timer with some simple math so the fuel drains depending on how long you've had the trainer loaded. -Checklist page done, should link the A/C weight to the total fuel on the fuel page, maybe link it to the stores page, too. -ENG page drawn, all static. XX's because I believe those numbers are secret. Need some clarification on this, too. -Declared HTML 5 DOCTYPE. Don't know how I missed that. -Put the 9X's on the stores page(D) with some sort of currency character. Whatever, it works, less work for me. v0.33 -Switched out the 'MENU' button for the mmss display that pilots see. v0.32 -Vertical text is now centered, except for spaces with two lines. -Horizontal text is now centered vertically. Done using a MAGIC. v0.31 -Created objects, created a standard "loader" to make the page more dynamic and hopefully make my life a little easier in the coding process. -Boxes will now stay boxed when you leave a page. This isn't completely bug free but it's much better than it was. Boxes will be cleared when moving from page to page but when you return to the page you set the box on, it will be there. v0.3 -Recoded HTML to be written and formatted purely with divs and CSS. All unordered lists have been removed for a smooth transition and greater flexibility. Sizing is mostly dynamic now. -All images replaced with CSS formatted text. -Created Stores page. -Created Data page. -Created sequence button sequencing on HSI page, PT15. v0.2 -Rewritten in Javascript. Page loads much faster. v0.1 -Written in PHP.