Develop JavaScript code to inject in browser extension

Closed Posted Sep 13, 2014 Paid on delivery
Closed Paid on delivery

JS injection project

General

Develop a javascript that will search through all images in current url and add a layer iframe on top of the images according to parameters (size, max images to add iframe etc). When the user rolls over his mouse over the image, it needs to show the iframe according an effect (passed in the query string) – the iframe needs to be centered within the image and depending on the effect with sufficient padding/margin.

Script will be tested and used by injecting it via browser extension on various websites – it needs to be working well on all sites with images!! find the images, add the iframe etc.

The script takes parameters via the src address query string:

Params:

- Size* – the size of the layered iframe (widthXheight) – if no size Is passed then a default list of width and heights are checked to see if they can find a match*

- pId – number to be passed to the iframe

- subid - number to be passed to the iframe

- Source – string passed to the iframe (optional)

- maxi – max number of images to find – default 1.

- Effect – type passed in query string. 6 possible effects (it should be flexible so more effects can be added in the future):

1. Fade in (default),

2. Horizontal Flip (example: [url removed, login to view]

3. Vertical Flip (example: [url removed, login to view] - also for horizintal)

4. Slide up

5. Slide Down

6. Slide from left

7. Slide from right

Example query string:

Src=’[url removed, login to view]

These params need to be passed also to the iframe src url.

The script needs a to check current url - and not execute if run from certain domain (exclude list). If you read through this document, write back ‘js rocks’ when applying for this job.

The script CANNOT use any libraries such as jquery etc. – it needs to be as small as possible in terms of file size.

The script has to load FAST!

Compatibility:

IE7 +

Chrome

FireFox

Documantation:

Code needs to be VERY WELL documented so our tech guys can understand each step you are doing.

*Size list example:

sizeList = [{'w': 300, 'h': 250}, {'w': 468, 'h': 60}…];

JavaScript

Project ID: #6451186

About the project

5 proposals Remote project Active Oct 20, 2014

5 freelancers are bidding on average $273 for this job

hemanshusondhi

Dear Employer, We are really interested in this project as it is exactly within our scope of expertise. Working with a team who has both inhouse DESIGNERS and PROGRAMMERS means that you can take advantage of both More

$368 USD in 10 days
(2 Reviews)
5.1
tekrangers

Hi, Thank you for invite us for bid. Yes , we can say that , we are able to do this activity. Well when can you be available for more discussion so that we can start work on it. Thank you,

$294 USD in 3 days
(9 Reviews)
3.7
Armref

A proposal has not yet been provided

$252 USD in 3 days
(1 Review)
1.1
closure

Greetings! I’m a frontend and cloud developer. an ex-Googler with 3.5 years of experience. I’ve prior experience with Google AppScript. I’m well versed with Javascript and during my tenure at Google I worked More

$250 USD in 20 days
(0 Reviews)
0.0