Communication (FOUO) - Col. Veers
|
Post by Fringe Pioneer on Jan 2, 2011 0:32:15 GMT
FOR OFFICIAL USE ONLY (FOUO)
To the Commander of the Phoenix:
High Commander, it has come to my attention that your men are evaluating others for positions in the armed forces. Might I suggest a JavaScript rank calculator for the top of your board so that anyone may input various statistics to quickly determine what rank they would be provided? Such a code would be easy enough to script, and it would be easy to use for calculating rank.
Thank you for considering the request, High Commander.
Col. Maximilian Veers Col. Maximilian Veers
|
|
|
Post by FoxtrotZero on Jan 2, 2011 5:14:56 GMT
RE. DISPATCH No 25873 FR. PHOENIX HIGHCOM [CPHX_FOX] TO. MAXIMILIAN VEERS [COL_VEERS]
Colonel, your offer is intriguing, and would assuredly be a better allocation of resources than the current arrangements. If you are willing to program such a calculator, then I believe it would be an excellent addition to the Phoenix Federation Commongrounds. However, for ease of access, I believe the calculator ought to be placed at the bottom of the page.
CPHX James Tyler Fox Phoenix Commander James T. Fox
|
|
|
Post by QwertyuiopThePie on Jan 2, 2011 6:38:10 GMT
Couldn't we just determine the rank automatically from the profiles of everyone that posts and add it to their signature while in this board? I mean, all the details are right there in their mini-profiles. It's far more complicated, but far more interesting.
|
|
|
Post by FoxtrotZero on Jan 2, 2011 16:18:34 GMT
We could, but its kind of sad if you're checking your rank EVERY day. So no, I think a calculator between the Quick Reply and the Chat is easier and more reasonable.
|
|
|
Post by QwertyuiopThePie on Jan 2, 2011 22:36:54 GMT
Awesome, but it doesn't seem to be working for me.
|
|
|
Post by Fringe Pioneer on Jan 3, 2011 0:03:38 GMT
The text won't display, for some reason. What is wrong?
<script language="javascript" type="text/javascript"> var rankPF; var rankArmouredPF = ["Corporal", "Specialist", "Sergeant", "Master Sergeant", "Third Lieutenant", "Second Lieutenant", "First Lieutenant", "Captain", "Lieutenant-Major", "Major", "Lieutenant-Colonel", "Colonel", "Lieutenant-Brigadier", "Brigadier", "Lieutenant-Commander", "Commander"]; var rankNavyPF = ["Ensign", "Specialist", "Warrant Officer", "Chief Warrant Officer", "Third Lieutenant", "Second Lieutenant", "First Lieutenant", "Captain", "Lieutenant-Major", "Major", "Lieutenant-Colonel", "Colonel", "Rear Admiral", "Admiral", "Lieutenant-Commander", "Commander"]; var rankAirForcePF = ["Corporal", "Specialist", "Warrant Officer", "Chief Warrant Officer", "Third Lieutenant", "Second Lieutenant", "First Lieutenant", "Captain", "Lieutenant-Major", "Major", "Lieutenant-Baron", "Baron", "Lieutenant-Marshal", "Air Marshal", "Lieutenant-Commander", "Commander"];
function getDivisionPF() { var divisionPF; switch(document.PFRankCalc.divisionChoicePF.value) { case 0: rankPF = rankArmouredPF; divisionPF = "Armoured Division"; break; case 1: rankPF = rankArmouredPF; divisionPF = "Internal Operations Service"; break; case 2: rankPF = rankNavyPF; divisionPF = "Navy"; break; case 3: rankPF = rankAirForcePF; divisionPF = "Air Force"; break; } return divisionPF; }
function getStaffPF() { var staff = 0; switch(document.PFRankCalc.staffChoicePF.selectedIndex) { case 0: staff = 0; break; case 1: staff = 5000; break; case 2: staff = 10000; break; case 3: staff = 25000; break; default: staff = 0; } return staff; }
function getPostPF() { return isNaN(document.PFRankCalc.postTextPF.value) ? 0 : document.PFRankCalc.postTextPF.value; }
function getKarmaPF() { var karma = (isNaN(document.PFRankCalc.karmaTextPF.value) || (document.PFRankCalc.karmaTextPF.value < 0)) ? 0 : document.PFRankCalc.karmaTextPF.value; }
function getRankPF() { var rankTextPF; var valuePF = (getStaffPF() + (3 * getPostPF()) + (500 * getKarmaPF())); if(valuePF >= 100000) { rankTextPF = rankPF[15]; } else if(valuePF >= 75000) { rankTextPF = rankPF[14]; } else if(valuePF >= 65000) { rankTextPF = rankPF[13]; } else if(valuePF >= 50000) { rankTextPF = rankPF[12]; } else if(valuePF >= 35000) { rankTextPF = rankPF[11]; } else if(valuePF >= 25000) { rankTextPF = rankPF[10]; } else if(valuePF >= 20000) { rankTextPF = rankPF[9]; } else if(valuePF >= 15000) { rankTextPF = rankPF[8]; } else if(valuePF >= 10000) { rankTextPF = rankPF[7]; } else if(valuePF >= 7500) { rankTextPF = rankPF[6]; } else if(valuePF >= 5000) { rankTextPF = rankPF[5]; } else if(valuePF >= 2500) { rankTextPF = rankPF[4]; } else if(valuePF >= 1000) { rankTextPF = rankPF[3]; } else if(valuePF >= 500) { rankTextPF = rankPF[2]; } else if(valuePF >= 100) { rankTextPF = rankPF[1]; } else { rankTextPF = rankPF[0]; } return rankTextPF; }
function displayPF() { document.PFRankCalc.messageTextPF.value = ("You would exist in the " + getDivisionPF() + " as " + getRankPF() + "."); }
function resetPF() { document.PFRankCalc.staffChoicePF.selectedIndex = document.PFRankCalc.divisionChoicePF.selectedIndex = 0; document.PFRankCalc.karmaTextPF.value = document.PFRankCalc.postTextPF.value = 0; document.PFRankCalc.messageTextPF.value = ""; } </script>
<center> <div width="951" align="center"> <form name="PFRankCalc"> <table class="bordercolor" cellpadding="3" cellspacing="2" width="850" align="center"> <tr> <td align="center" class="titlebg" width="100%" height="26" colspan="4"> Phoenix Federation Rank Calculator © 2011 "General Veers" </td> </tr> <tr> <td align="center" class="windowbg" width="25%"> Desired Division <br> <select name="divisionChoicePF"> <option value="0" selected="selected">Armoured Division</option> <option value="1">Internal Operations Service</option> <option value="2">Navy</option> <option value="3">Air Force</option> </select> </td> <td align="center" class="windowbg" width="25%"> Forum Staffship <br> <select name="staffChoicePF"> <option value="0" selected="selected">Member</option> <option value="1">Moderator</option> <option value="2">Global Moderator</option> <option value="3">Administrator</option> </select> </td> <td align="center" class="windowbg" width="25%"> Post Count <br> <input name="postTextPF" /> </td> <td align="center" class="windowbg" width="25%"> Karma <br> <input name="karmaTextPF" /> </td> </tr> <tr> <td align="center" class="windowbg" width="100%" colspan="4"> <input name="messageTextPF" size="100" readonly /> </td> </tr> <tr> <td align="center" class="windowbg" width="50%" colspan="2"> <input type="button" value="Calculate" onClick="displayPF()" /> </td> <td align="center" class="windowbg" width="50%" colspan="2"> <input type="button" value="Reset" onClick="resetPF()" /> </td> </tr> </table> </form> </div> </center>
|
|
|
Post by FoxtrotZero on Jan 3, 2011 0:10:46 GMT
Unfortunately, I couldn't find your problem.
I changed 'Armoured Division' to 'Armoured', 'Navy' to 'Naval', and 'Air Force' to Airborne.
I would have changed the ouput text, but I couldn't quite decipher the code.
Anyway, if its easier, you can copy this with the above changes made, or you can put them in yourself at your convenience.
<script language="javascript" type="text/javascript"> var rankPF; var rankArmouredPF = ["Corporal", "Specialist", "Sergeant", "Master Sergeant", "Third Lieutenant", "Second Lieutenant", "First Lieutenant", "Captain", "Lieutenant-Major", "Major", "Lieutenant-Colonel", "Colonel", "Lieutenant-Brigadier", "Brigadier", "Lieutenant-Commander", "Commander"]; var rankNavalPF = ["Ensign", "Specialist", "Warrant Officer", "Chief Warrant Officer", "Third Lieutenant", "Second Lieutenant", "First Lieutenant", "Captain", "Lieutenant-Major", "Major", "Lieutenant-Colonel", "Colonel", "Rear Admiral", "Admiral", "Lieutenant-Commander", "Commander"]; var rankAirForcePF = ["Corporal", "Specialist", "Warrant Officer", "Chief Warrant Officer", "Third Lieutenant", "Second Lieutenant", "First Lieutenant", "Captain", "Lieutenant-Major", "Major", "Lieutenant-Baron", "Baron", "Lieutenant-Marshal", "Air Marshal", "Lieutenant-Commander", "Commander"];
function getDivisionPF() { var divisionPF; switch(document.PFRankCalc.divisionChoicePF.value) { case 0: rankPF = rankArmouredPF; divisionPF = "Armoured"; break; case 1: rankPF = rankArmouredPF; divisionPF = "Internal Operations Service"; break; case 2: rankPF = rankNavalPF; divisionPF = "Naval"; break; case 3: rankPF = rankAirForcePF; divisionPF = "Airborne"; break; } return divisionPF; }
function getStaffPF() { var staff = 0; switch(document.PFRankCalc.staffChoicePF.selectedIndex) { case 0: staff = 0; break; case 1: staff = 5000; break; case 2: staff = 10000; break; case 3: staff = 25000; break; default: staff = 0; } return staff; }
function getPostPF() { return isNaN(document.PFRankCalc.postTextPF.value) ? 0 : document.PFRankCalc.postTextPF.value; }
function getKarmaPF() { var karma = (isNaN(document.PFRankCalc.karmaTextPF.value) || (document.PFRankCalc.karmaTextPF.value < 0)) ? 0 : document.PFRankCalc.karmaTextPF.value; }
function getRankPF() { var rankTextPF; var valuePF = (getStaffPF() + (3 * getPostPF()) + (500 * getKarmaPF())); if(valuePF >= 100000) { rankTextPF = rankPF[15]; } else if(valuePF >= 75000) { rankTextPF = rankPF[14]; } else if(valuePF >= 65000) { rankTextPF = rankPF[13]; } else if(valuePF >= 50000) { rankTextPF = rankPF[12]; } else if(valuePF >= 35000) { rankTextPF = rankPF[11]; } else if(valuePF >= 25000) { rankTextPF = rankPF[10]; } else if(valuePF >= 20000) { rankTextPF = rankPF[9]; } else if(valuePF >= 15000) { rankTextPF = rankPF[8]; } else if(valuePF >= 10000) { rankTextPF = rankPF[7]; } else if(valuePF >= 7500) { rankTextPF = rankPF[6]; } else if(valuePF >= 5000) { rankTextPF = rankPF[5]; } else if(valuePF >= 2500) { rankTextPF = rankPF[4]; } else if(valuePF >= 1000) { rankTextPF = rankPF[3]; } else if(valuePF >= 500) { rankTextPF = rankPF[2]; } else if(valuePF >= 100) { rankTextPF = rankPF[1]; } else { rankTextPF = rankPF[0]; } return rankTextPF; }
function displayPF() { document.PFRankCalc.messageTextPF.value = ("You would exist in the " + getDivisionPF() + " as " + getRankPF() + "."); }
function resetPF() { document.PFRankCalc.staffChoicePF.selectedIndex = document.PFRankCalc.divisionChoicePF.selectedIndex = 0; document.PFRankCalc.karmaTextPF.value = document.PFRankCalc.postTextPF.value = 0; document.PFRankCalc.messageTextPF.value = ""; } </script>
<center> <div width="951" align="center"> <form name="PFRankCalc"> <table class="bordercolor" cellpadding="3" cellspacing="2" width="850" align="center"> <tr> <td align="center" class="titlebg" width="100%" height="26" colspan="4"> Phoenix Federation Rank Calculator © 2011 "General Veers" </td> </tr> <tr> <td align="center" class="windowbg" width="25%"> Desired Division <br> <select name="divisionChoicePF"> <option value="0" selected="selected">Armoured</option> <option value="1">Internal Operations Service</option> <option value="2">Naval</option> <option value="3">Airborne</option> </select> </td> <td align="center" class="windowbg" width="25%"> Forum Staffship <br> <select name="staffChoicePF"> <option value="0" selected="selected">Member</option> <option value="1">Moderator</option> <option value="2">Global Moderator</option> <option value="3">Administrator</option> </select> </td> <td align="center" class="windowbg" width="25%"> Post Count <br> <input name="postTextPF" /> </td> <td align="center" class="windowbg" width="25%"> Karma <br> <input name="karmaTextPF" /> </td> </tr> <tr> <td align="center" class="windowbg" width="100%" colspan="4"> <input name="messageTextPF" size="100" readonly /> </td> </tr> <tr> <td align="center" class="windowbg" width="50%" colspan="2"> <input type="button" value="Calculate" onClick="displayPF()" /> </td> <td align="center" class="windowbg" width="50%" colspan="2"> <input type="button" value="Reset" onClick="resetPF()" /> </td> </tr> </table> </form> </div> </center>
|
|
|
Post by Fringe Pioneer on Jan 3, 2011 4:35:35 GMT
FOR OFFICIAL USE ONLY (FOUO)
RE. DISPATCH No 25873 FR. MAXIMILIAN VEERS [COL_VEERS] TO. PHOENIX HIGHCOM [CPHX_FOX]
Commander, I am pleased to announce the creation and publication of the Phoenix Federation Rank Calculator. One may use the calculator by choosing the desired division, choosing what level of staff (if applicable) a member is, typing in the post count, and typing in the amount of karma one has, and pressing "Calculate." A message indicating the corresponding rank for the correct division should appear. The calculator can be set back to its defaults by clicking "Reset."
I do hope the calculator can serve recruits well.
Col. Maximilian Veers Col. Maximilian Veers
|
|
|
Post by FoxtrotZero on Jan 3, 2011 19:40:55 GMT
RE. DISPATCH No 25873 FR. PHOENIX HIGHCOM [CPHX_FOX] TO. MAXIMILIAN VEERS [COL_VEERS]
News of your success is well recieved, Colenel. Your work is appreciated. I will see of a way to compensate you for your work, but even I am bound by policy.
There may be more work for you in the future along these lines. There is always room for improvement.
CPHX James Tyler Fox Phoenix Commander James T. Fox
Excellently done, General. Once I know you have recieved this, i'm going to delete the thread (or you can do it yourself). If you'd like to think of somewhere to store these types of communications, thats fine, but I never really intended for other people to make threads in the board, so as soon as they have served their purpose, I think they ought to be deleted to prevent clutter.
As we both know, the Phoenix Federation's Canon remains a work in progress, and as we fill in the map and dab away the black ink, there may be additions, or modifications, or replacements, or counterparts to be made to your calculator. One thing I have in mind is making certain Phoenix Decorations coincide with Forum Achievements and Badges.
Once again, thank you for your help. --Fox
|
|
|