Add functions to typo generator
- or -
Post a project like this$
- Posted:
- Proposals: 6
- Remote
- #1634947
- Expired
✪ Top Rated PPH Expert for Wordpress | Website Designing | Web Development | Mobile App Development | Woocommerce | Squarespace | Shopify | WebRTC Development | iOS & Android Development
Islamabad
Top rated PHP Web Development | WordPress | Magento | Drupal | OpenCart | PrestaShop | Joomla
Leicester
16858244696541050754154530717382661751174
Description
Experience Level: Entry
INTRODUCTION:
There is an existing typo generator attached to this job, written in JavaScript.
I need some new functions to be added.
It should be easy to add the new functions because you can copy the existing functions in the code and modify them to make the new functionality.
Please see my notes below, I have described how I think you can create each of the new functions by duplicating the existing code and modifying it.
The new functions are also listed in the HTML file but they don’t work yet.
FUNCTIONS TO BE ADDED:
FUNCTION 1
Insert 2 Letters (example > erdxample, edgxample)
This should be straightforward, please duplicate the existing typo_letter_insert_letter function and modify it so that it adds 2 letters instead of 1
I need it to go through as follows:
aa, ab, ac, ad ... etc
and then
ba, bb, bc, bd ... etc
please run through all the letters from a-z and then all the numbers from 0-9 and then all of the following characters - = [ ] ; ' \ , . / `
FUNCTION 2
2 Wrong Letter Keys (example > rdample, ghample)
This should be straightforward, please duplicate the existing typo_letter_wrong_letter_key function and modify it to make 2 wrong letters instead of 1.
I need it to go through as follows:
aa, ab, ac, ad ... etc
and then
ba, bb, bc, bd ... etc
please run through all the letters from a-z and then all the numbers from 0-9 and then all of the following characters - = [ ] ; ' \ , . / `
FUNCTION 3 - Single letter caps (example > Example, eXample, exAmple, etc)
This should be straightforward, please duplicate the existing typo_letter_wrong_letter_key function and simplify it so that it will convert each character to a capital instead of changing the character.
FUNCTION 4 - Caps Lock (example > EXAMPLE)
Please duplicate what you just created in #3 above, and modify it so that it converts all the characters to a capital instead of doing each character individually.
FUNCTION 5 - Convert the typo_extension or “add ending” function from a single line into a multi line.
First you would need to add a simple function to split the multi line box into an array, use a command like this: tmp_typo_extension.split(“\n”);.
Then I suggest you could look through and find all the existing bits of script that mention typo_extension and convert them to a loop so that they will run once for each line of the extension text box.
So the result would be that now if you enter the following into the multi line “endings” box:
1234
2345
And you enter the word “example” into the generator, then you will get the whole of the previous output multiplied by 3 with the following endings:
example
example1234
example2345
DELIVERY OF THE WORK:
If possible I would like work in progress to be hosted on a web site somewhere so I can test it online.
After this job is done successfully, it is quite possible that I will need more functions to be added, so there might be another job of a similar size to be done in addition.
There is an existing typo generator attached to this job, written in JavaScript.
I need some new functions to be added.
It should be easy to add the new functions because you can copy the existing functions in the code and modify them to make the new functionality.
Please see my notes below, I have described how I think you can create each of the new functions by duplicating the existing code and modifying it.
The new functions are also listed in the HTML file but they don’t work yet.
FUNCTIONS TO BE ADDED:
FUNCTION 1
Insert 2 Letters (example > erdxample, edgxample)
This should be straightforward, please duplicate the existing typo_letter_insert_letter function and modify it so that it adds 2 letters instead of 1
I need it to go through as follows:
aa, ab, ac, ad ... etc
and then
ba, bb, bc, bd ... etc
please run through all the letters from a-z and then all the numbers from 0-9 and then all of the following characters - = [ ] ; ' \ , . / `
FUNCTION 2
2 Wrong Letter Keys (example > rdample, ghample)
This should be straightforward, please duplicate the existing typo_letter_wrong_letter_key function and modify it to make 2 wrong letters instead of 1.
I need it to go through as follows:
aa, ab, ac, ad ... etc
and then
ba, bb, bc, bd ... etc
please run through all the letters from a-z and then all the numbers from 0-9 and then all of the following characters - = [ ] ; ' \ , . / `
FUNCTION 3 - Single letter caps (example > Example, eXample, exAmple, etc)
This should be straightforward, please duplicate the existing typo_letter_wrong_letter_key function and simplify it so that it will convert each character to a capital instead of changing the character.
FUNCTION 4 - Caps Lock (example > EXAMPLE)
Please duplicate what you just created in #3 above, and modify it so that it converts all the characters to a capital instead of doing each character individually.
FUNCTION 5 - Convert the typo_extension or “add ending” function from a single line into a multi line.
First you would need to add a simple function to split the multi line box into an array, use a command like this: tmp_typo_extension.split(“\n”);.
Then I suggest you could look through and find all the existing bits of script that mention typo_extension and convert them to a loop so that they will run once for each line of the extension text box.
So the result would be that now if you enter the following into the multi line “endings” box:
1234
2345
And you enter the word “example” into the generator, then you will get the whole of the previous output multiplied by 3 with the following endings:
example
example1234
example2345
DELIVERY OF THE WORK:
If possible I would like work in progress to be hosted on a web site somewhere so I can test it online.
After this job is done successfully, it is quite possible that I will need more functions to be added, so there might be another job of a similar size to be done in addition.
Tom S.
100% (1)Projects Completed
2
Freelancers worked with
2
Projects awarded
0%
Last project
15 Aug 2017
United Kingdom
New Proposal
Login to your account and send a proposal now to get this project.
Log inClarification Board Ask a Question
-
There are no clarification messages.
We collect cookies to enable the proper functioning and security of our website, and to enhance your experience. By clicking on 'Accept All Cookies', you consent to the use of these cookies. You can change your 'Cookies Settings' at any time. For more information, please read ourCookie Policy
Cookie Settings
Accept All Cookies