I need a senior JS programmer to make JS templates that use variables that will be defined in the JS file.
You should have a solid knowledge of javascript.
----------------
The JS objects show HTML or script tags that have been included in it a set number of views when the browser loads.
- Example: show the html (or script called) 3 times per user (cookie variable updates).
**** final version of JS template should be minified and encrypted. Will need the unencrypted versions too for backup/future changes. ***
The JS have all variables used defined at the top:
-clientID
-fileID
- view cap: number of times viewed (cookie variable is updated- cookie needs to be created with a fileID variable linked to the number of views since there will be multiple JS files loading)
- iframe: 0 or 1, draw an iframe or not draw an iframe around the html/js
- random number generated each time JS is loaded to stop browser caching. Ability to call this variable within the js or html loaded.
- view cap time period. Defaults is per 24 hour period. example 1 per 24 hours.
- viewinterval:. per day variable. If set, could be 1 per 30 days as an example
- defaultcontent: (expressed as a variable number and called as ###.js) if defined then this shows if the criteria has been met. Example if view cap of 3 and there is a 4th view, default content should show. this willbe a number that gets .js added to the end. Need the ability to call the same js file within
- geography: not used in script but needs to be included- could be: all, us, uk
- content: the html or script displayed
- pb1, pb2,pb3,pb4,pb5,pb6,pb7,pb8,pb9,,pb10,pb11,pb12,pb13 (up to 30): urls can be called (images, etc). These are just [login to view URL] that load in addition to the content. There could be up to 30 defined and are also fileIDs, example 1234. These should load the Js template- example [login to view URL] if 1234 (basically the master template calling another copy of the template but not loading content- just script or image tags) Example: html could be displayed, and when displayed it loads other urls that are run like images or hit trackers. Does not open in a new window and no redirect.
- status variable: On/Off/Default (1,0,2): If updated to default the default automatically loads. If Off.,Object ID should serve a blank JS template.
- weekday: If weekday variable is defined the content loads otherwise the default loads. 1-7 for each day of the week starting with Sunday. If not the day of the week, the default should load.
- Keyword: If kwd variable is passed to an object tag and it matches the keyword set in the template, the object will serve. This one is easy. Example [login to view URL] *If test was the keyword defined in the template, the content should serve otherwise the default should show.
- addvalue: can store a variable in the cookie. Need a seperate cookie for each clientID. How many max variables could be stored?
- storedvalue: if variable is defined and is read from the cookie, the content shows, otherwise show the default content or do nothing if no default is defined.
- Addvaluetime: Sets the expiration of the cookie value in days for the addvalue variable. 365 days is the maximum value.
**** Not sure if this is possible but would also like: ability to pass custom variables to the JS and these variables can be used in the JS/HTML served. These can be predefined. Var1, var2,var3,var4,var5,var6 (up to 30). If they cant be passed, maybe they can just be defined at the top like the other variables and then inserted wherever needed later. Such as ##var1##
****
Bonus will be paid if completed quickly and well.