can someone make me a javascript for this

Discussion in 'iPod touch' started by botty, Jan 16, 2008.

  1. botty macrumors newbie

    Jan 16, 2008
    ive done the basics set up my page view thts a far as i can get i have no idea how to add this article for my app i need it for beingon the move around the area so i can keep my jump proram up for my collge basketball team cansome one plz help me ill show u wat ive dunso far for the basics ill post my java script

    Plugins.load( "UIKit" );

    var window = new UIWindow( UIHardware.fullScreenApplicationContentRect );
    window.setHidden( false );
    window.backgroundColor = [ 0.8 , 0 , 0, 1 ];

    var mainView = new UIScroller();
    mainView.contentSize = [ window.bounds[ 2 ] * 2 , window.bounds[ 3 ] * 2 ];
    mainView.backgroundColor = [ 0 , 0 , 0 , 0 ];

    window.setContentView( mainView );

    var hello = new UITextLabel( [ 20 , 20 , window.bounds[ 2 ] - 40 , 100 ] );

    hello.text = "air alert III!";
    hello.backgroundColor = [ 0 , 0 , 0 , 0.25 ];
    hello.setFont( new Font( "Trebuchet MS" , 2 , 46 ) );
    hello.color = [ 1 , 1 , 1 , 1 ];
    hello.centersHorizontally = true;

    mainView.addSubview( hello );

    the article below is wat i want turing into a javascript i wud greatily aprreciate it thnk u

    For the past 11 years TMT Sports has sold the most popular jump training program on the market, Air Alert II: The Complete Vertical Jump Program - Revised. Although Air Alert II has become a favorite around the world, we have worked to improve it. The Air Alert III upgrade is the improved Air Alert. We changed the number of sets and reps, and, most importantly, we changed the number of days per week that the program will be completed which will help with overall muscle recovery and strength development. We also added one new exercise, Squat Hops™ to greatly benefit your vertical. Any topic that you see on the Air Alert III upgrade MUST BE READ and followed as written. When you see a word "CHANGE" beside of a heading, this means that a change has been made from Air Alert II to Air Alert III.
    Air Alert II verses Air Alert III
    The exercises for Air Alert III are exactly the same with the exception of one. The technique of each exercise will not change for Air Alert III.
    Frequency (changed)
    Air Alert III is designed to be done 3 days per week with the exception of week 15 which is designed to be done 4 days. The 3 days workout schedule alternates from week to week which allows for ample muscle and strength recovery for your legs. This is extremely important in building the strength required for giving you the lift you need.
    The Air Alert III workout chart will provide you with 2 charts. You will notice that the odd numbered weeks and the even numbered weeks instrict the same order sequence for each exercise, but that the actual days of the week are different. Do the workout exactly as prescribed on the days designed for the respective week. The odd weeks are to be done on Monday-Wednesday-Friday and the even weeks are to be done on Tuesday-Wednesday-Thursday. Week 13 is designed as a complete muscle recovery week. Air Alert III should not be completed at all during week 13. Week 15, the final week, is designed to completely break down the muscles, shock them and prepare them for the final recovery. This last week will help to add an additional 1-2 inches on your jumping ability. You are required to do week 15 four (4) days that week. You will do Air Alert III on Monday-Tuesday-Thursday-Friday of the week.
    The Air Alert III workout consists of multiple sets and repetitions for each exercise. After completing 1st set of an exercise, do not rest anymore than 2 minutes before completing the second or third set for the respective exercise. During the 2 minute resting period, it is important to massage the muscle that you are currently working on. If you are doing Leap ups, be sure to massage your thighs while resting. When moving from 1 exercise to a new exercise (for example, from Leap ups to Calf raises), do not rest at all. Move immediately to the next exercise.
    The Air Alert III exercises are identical to the Air Alert II exercises with the exception of a new exercise, Squat Hops™ (see below). See Air Alert II for instructions regarding the first 5 exercises. Be sure to follow all warm up and cool down instructions identified in the Air Alert II.

    Step 1 - For balance, hold a basketball or volleyball at chest level. You can hold the ball with your hands at each side of the ball or hug the ball.
    Step 2 - Squat down into a sitting position while holding the ball. Make sure that you are looking straight ahead, with your back straight and that you are elevated on the balls of your feet (half tiptoed). And most importantly, make sure that your thighs are parallel to the ground.
    Step 3 - Hop or bounce in the seated position between 3-5 inches per hop. Keep your thighs parallel. When you land, that completes 1 repetition.
    Step 4 - After you complete each repetition (each landing), you land back in the original, seated position. Jump up again for the next repetition.
    Step 5 - At the completion (the last rep) of the required set, blast off as high as you possibly can. For example, if you are required to do 1 set of 15 repetitions, you will do 14 Squat Hops (3-5 inches per jump) and on the 15th Squat Hop, you will blast off as high as you possibly can.

    Leapups (with/without rope)

    This exercise can be done without the use of a jump rope if you desire. When jumping, keep your hands by your side or in front of you for assistance in jumping and follow the same procedures just described.

    Step1: When beginning, bend down to a 1/4 squat position
    Step2: Turn the rope and jump back into the air to a minimum of 8 to 10 inches. (You may jump 10 to 12 inches if this is too easy). When you land this completes 1 repetition.
    Step3: Continue repeating this motion for each repetition.

    Step1: When beginning, bend down to a 1/4 squat position with your hands out in front of you and jump up
    Step2: Jump up into the air to a minimum of 8 to 10 inches. (You may jump 10 to 12 inches if this is too easy) When in the air, your hands should be back by your side. When you land, this completes 1 repetition.
    Step3: Same as step 1. Step 3 begins repetition 2
    Step4: Same as step 2
    Calf raises

    Step1: Your starting position will be with the heel below the book or stair step rested on by your entire body.
    Step2: Raise yourself as high up as you can with only the one calf
    Step3: Lower your body back to the original, starting position. This completes 1 repetition. Step4: begin second repetition.

    Step1: Begin with one thigh on the chair parallel to the ground.
    Step2: With all of your strength, push off of the elevated leg and leap off of the chair as high as you can.
    Step3: Crisscross or switch your legs in the air.
    Step4: Land with the opposite leg elevated in the chair as in step 1. Repeat the procedure until you are back to step 1. This completes 1 repetition.
    Thrust ups

    Step1: Begin with your legs straight.
    Step2: Thrust (or bounce) yourself up as high as you possibly can.
    Step3: The split second and you hit the ground, thrust back up as high as you can trying not to bend your legs. It is helpful to use your arms to throw yourself back up into the air.

    Step1: Elevated as high as you possible can on your tiptoes to assure that you work the high end of your claves.
    Step2: As quickly as you possibly can, jump repeatedly no more than 1/2 to1 inch off of the ground making sure to keep yourself elevated as high on your tiptoes as possible ensuring that you are working the upper calf muscles.

    Rest 1-2 minutes between sets.

    During the days that you are not doing Air Alert III, it is important that you help your legs get used to normal jumping situations. Air Alert III will increase your vertical, but you will need to train your legs to actual jumping situations. On your days off from Air Alert III, go out and play. And, practice jumping aggressively when you play. This helps to develop muscle memory.
  2. botty thread starter macrumors newbie

    Jan 16, 2008

Share This Page