Advertisement
Guest User

Untitled

a guest
Jun 26th, 2017
61
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. if ( $(this).val().length > 3 ) {
  2.                         var term = $(this).val().replace(' ','+'),
  3.                             country = $('#appAdviceCountry').val();
  4.                         // Is it an ID?
  5.                         if ( term.match(/id[0-9]{0,9}/g) || term.match(/[0-9]{0,9}/g) {
  6.                            
  7.                         }
  8.                         // Is it an URL?
  9.                         else if ( term.substr(0,3) == 'http' ) {
  10.                            
  11.                         }
  12.                         // Must be a search query
  13.                         else {
  14.                             queryApple(term, country);
  15.                         }
  16.                     }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement