Find Jobs
Hire Freelancers

App to modify .js and .htm files

$30-5000 USD

Completed
Posted almost 14 years ago

$30-5000 USD

Paid on delivery
In a single directory, I? have multiple folders containing packages of .js and .htm files, all with the same filenames and folder structure. I need an app that will modify two specific (hard-coded) files in each of these packages. The exact changes needed are specified in the detailed description. ## Deliverables The attached file contains two folders. Each of these folders is one of the packages of the type that will need to be modified. Please use them for reference and testing. First, the program will require two pieces of input from the user: 1. The directory where the packages are located 2. A? "Time"? variable? (integer representing? the number of seconds) Then, it will modify two files in each package. /js/dynapi/src/[login to view URL] **1. Replace these lines: ** ? ? ? ? onload = function() { [login to view URL](); } ? ? ? ? onunload = function() { [login to view URL](); } ? ? ? ? **With these:** ? ? ? ? onload = function() { [login to view URL](); WindowLoad();} ? ? ? ? onunload = function() { [login to view URL](); WindowLoad();} /html/assessments/[login to view URL] **1. Add the following <script> items. NOTE: In the last function call, the text "TIME" should be replaced with the Time variable collected above.** <script type="text/javascript"> var _countDowncontainer=0; var _currentSeconds=0; function ActivateCountDown(strContainerID, initialValue) { ? _countDowncontainer = [login to view URL](strContainerID); ? ? if (!_countDowncontainer) { ? ? alert("count down error: container does not exist: "+strContainerID+ ? ? ? "\nmake sure html element with this ID exists"); ? ? return; ? } ? ? SetCountdownText(initialValue); ? [login to view URL]("CountDownTick()", 1000); } function CountDownTick() { ? if (_currentSeconds <= 0) { ? ? alert("Your time to complete this assessment has expired. Your exam will now be scored."); ? ? submitJudgeAssessment('scoreButton');promp_check_001143D70F3F13F809A312060003C6E1 =? true; ? ? return; ? } ? ? SetCountdownText(_currentSeconds-1); ? [login to view URL]("CountDownTick()", 1000); } function SetCountdownText(seconds) { ? //store: ? _currentSeconds = seconds; ? ? //get minutes: ? var minutes=parseInt(seconds/60); ? ? //shrink: ? seconds = (seconds%60); ? ? //get hours: ? var hours=parseInt(minutes/60); ? ? //shrink: ? minutes = (minutes%60); ? ? //build text: ? var strText = AddZero(hours) + ":" + AddZero(minutes) + ":" + AddZero(seconds); ? ? //apply: ? [login to view URL] = strText; } function AddZero(num) { ? return ((num >= 0)&&(num < 10))?"0"+num:num+""; } </script> <script type="text/javascript"> window.onload=WindowLoad; function WindowLoad(event) { ? ActivateCountDown("CountDownPanel", **TIME**); } </script> **2. After the tag? <input name="seqAction" type="hidden" value=""/>:** - Delete the </td> - After the </form>, place the following code:? <br><span style="color:#322804; font-family:arial; font-size:14px;">Time Left: <span id='CountDownPanel'></span></span> That's it. If you have any questions at all, please don't hesitate to ask. Thanks for bidding!
Project ID: 3452372

About the project

9 proposals
Remote project
Active 14 yrs ago

Looking to make some money?

Benefits of bidding on Freelancer

Set your budget and timeframe
Get paid for your work
Outline your proposal
It's free to sign up and bid on jobs
Awarded to:
User Avatar
See private message.
$12 USD in 2 days
5.0 (37 reviews)
4.8
4.8
9 freelancers are bidding on average $55 USD for this job
User Avatar
See private message.
$102 USD in 2 days
5.0 (102 reviews)
6.7
6.7
User Avatar
See private message.
$42.50 USD in 2 days
5.0 (33 reviews)
5.4
5.4
User Avatar
See private message.
$85 USD in 2 days
5.0 (51 reviews)
5.0
5.0
User Avatar
See private message.
$34 USD in 2 days
5.0 (7 reviews)
4.7
4.7
User Avatar
See private message.
$63.75 USD in 2 days
5.0 (31 reviews)
4.5
4.5
User Avatar
See private message.
$24.65 USD in 2 days
5.0 (35 reviews)
4.4
4.4
User Avatar
See private message.
$42.50 USD in 2 days
4.9 (9 reviews)
3.7
3.7
User Avatar
See private message.
$85 USD in 2 days
3.4 (14 reviews)
3.9
3.9

About the client

Flag of UNITED STATES
Roanoke, United States
5.0
78
Payment method verified
Member since Nov 28, 2007

Client Verification

Thanks! We’ve emailed you a link to claim your free credit.
Something went wrong while sending your email. Please try again.
Registered Users Total Jobs Posted
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Loading preview
Permission granted for Geolocation.
Your login session has expired and you have been logged out. Please log in again.