Suoritettu

Quick JS function needed

This is a very tiny job. I need a function written to prepend browse: to http: for iOS. BUDGET IS $25.

So, the code below detects if the agent is iOS or Android and assigns the proper CSS file (FOR REFERENCE ONLY). THIS CODE WORKS - the job is not to modify it.

***!!!!!***!**!**!*!* The job is TO ADD a function for IOS ONLY that changes <a href="http: TO <a href="browse:http:

IF YOU DO NOT KNOW JAVASCRIPT DO NOT BID. DO NOT SEND SOME KIND OF "ANSWER" YOU FOUND ON STACK OVERFLOW. THE SOLUTION MUST WORK WHEN SUBMITTED AND MUST BE PRETESTED BY YOU.

<script type="text/javascript">

function addCSS(cssFile) {

var newlink = [url removed, login to view]("link")

[url removed, login to view]("href", cssFile);

[url removed, login to view]("type", "text/css");

[url removed, login to view]("rel", "stylesheet");

[url removed, login to view](newlink);

}

//addCSS('[url removed, login to view]');

//addCSS('[url removed, login to view]');

//addCSS('[url removed, login to view]');

//addCSS('[url removed, login to view]');

//addCSS('[url removed, login to view]');

//var retina = [url removed, login to view] > 1;

if(/(iPhone|iPad)/[url removed, login to view]([url removed, login to view])){

if(window.screen.height==568) {

addCSS('css/[url removed, login to view]');

}

else {

addCSS('css/[url removed, login to view]');

}

}

else if(/(iPad)/[url removed, login to view]([url removed, login to view])){

//alert("iPad");

addCSS('css/[url removed, login to view]');

//if(/OS [5]_\d(_\d)? like Mac OS X/[url removed, login to view]([url removed, login to view])) {

//if (retina) {

//addCSS('[url removed, login to view]');

//}

//else {

//addCSS('[url removed, login to view]');

//}

//}

}

else if(/(Android)/[url removed, login to view]([url removed, login to view])){

if(/(Mobile)/[url removed, login to view]([url removed, login to view])) {

if(window.screen.width==600) {

addCSS('css/fps_scroll_styles_ios');

}

else

addCSS('css/fps_scroll_styles_ios');

}

else {

//alert("Android");

addCSS('css/fps_scroll_styles_ios');

}

}

</script>

Taidot: Javascript, jQuery / Prototype, PHP

Näytä lisää: test js, prototype reference, prototype jquery mobile, prototype alert, ipad os, ios alert, css height jquery, css agent, x js, need js file, d prototype, script head http, prototype needed script, android mobile css, css mobile stylesheet, css navigator, php head script, agent alert, jquery modify, job alert script, agent android, navigator css, mobile prototype jquery, jquery mac, css tiny

Tietoa työnantajasta:
( 34 arvostelua ) Parrish, United States

Projektin tunnus: #5696189

Myönnetty käyttäjälle:

kartnip

I could do this JS work for you. I have extensive experience in JS and JQUERY. I have no other projects in progress and could start right away!

$50 USD 3 päivässä
(37 Arvostelua)
6.1

4 freelanceria on tarjonnut keskimäärin %project_bid_stats_avg_sub_26% %project_currencyDetails_sign_sub_27% tähän työhön

kchg

Hello,its nice to meet you. i am top 8th in freelancer. I am interest your project. I hope to work with you. I am working as Wordpress developer last 5 years and have in-depth knowledge about theme/ plug-in cust Lisää

$154 USD 3 päivässä
(136 arvostelua)
8.1
novaemp

Hello,it's nice to meet you. I am interesting in your job. please give me a chance. i will do my best to do for your job. please,see this url : [login to view URL] this is my web history. thank you

$33 USD 0 päivässä
(68 arvostelua)
5.8
codeteam

We can do this in quick time. We are a team of expert web developers with lots of experience in web development.

$100 USD 1 päivässä
(7 arvostelua)
4.3