includes/clientside/static/enano-lib-basic.js
changeset 1070 617366710de2
parent 1046 cfc6c30c5e2d
child 1077 7f621a3a9cbf
equal deleted inserted replaced
1069:d54e7620bd3e 1070:617366710de2
    48 // Detect whether the user is running the Evil One or not...
    48 // Detect whether the user is running the Evil One or not...
    49 
    49 
    50 function checkIt(string) {
    50 function checkIt(string) {
    51   place = detect.indexOf(string) + 1;
    51   place = detect.indexOf(string) + 1;
    52   thestring = string;
    52   thestring = string;
    53   return place;
    53   return place ? true : false;
    54 }
    54 }
    55 if (checkIt('msie')) IE = true;
    55 if (checkIt('msie')) IE = true;
    56 else IE = false;
    56 else IE = false;
    57 
    57 
    58 var is_Opera = ( checkIt('opera') ) ? true : false;
    58 var is_Opera = checkIt('opera') ? true : false;
    59 var is_iPhone = ( checkIt('iphone') || checkIt('ipod') ) ? true : false;
    59 var is_iPhone = checkIt('iphone') || checkIt('ipod');
    60 var is_firefox2 = ( checkIt('firefox/2.') ) ? true : false;
    60 var is_iPhone_3 = checkIt('iphone os 3_');
       
    61 var is_firefox2 = checkIt('firefox/2.');
    61 
    62 
    62 var KILL_SWITCH = false;
    63 var KILL_SWITCH = false;
    63 
    64 
    64 if ( IE )
    65 if ( IE )
    65 {
    66 {