Web Development Intern

Web Development Intern


“;
$(“.ui-autocomplete”).append(“

  • “+footer+”
  • “);
    }
    else {
    var no_result_found = “

    CLICK HERE FOR MORE RESULTS

    “;
    response([{ label: no_result_found, val: -1}]);
    }
    }
    });
    },
    search: function(){
    $(this).addClass(“header-search-autocomplete-loading”);
    $(“.ui-autocomplete”).remove(“li.autocomplete-response-text”);
    },
    minLength: 1,
    select: function( event, ui ) {
    self.location = ui.item.link
    },
    open: function(event, ui){
    $(‘.ui-autocomplete’).css(‘width’, “310px”);
    $(‘.ui-autocomplete’).css(‘height’, ‘300px’);
    $(‘.ui-autocomplete’).css(‘overflow-y’, ‘scroll’);
    $(‘.ui-autocomplete’).css(‘z-index’, ‘10000’);
    $(this).removeClass(“header-search-autocomplete-loading”);
    }
    })
    .data(“ui-autocomplete”)._renderItem = function (ul, item) {
    var sub = “http://e27.co/”;
    var html = “http://e27.co/”;
    if (item.category) {

    var li;
    if ( item.category != currentCategory ) {
    ul.append( “

  • ” + item.category + “

  • ” );
    currentCategory = item.category;
    }

    }

    if(item.icon) {
    var html = ‘‘;
    html += ”;
    html += ‘
    ‘;
    }

    html += ‘

    ‘;
    html += ‘

    ‘+item.label+’

    ‘;
    if(item.location){
    html += ‘

    ‘+item.location+’

    ‘;
    }
    html += ‘

    ‘;
    return $(“

  • “)
    .data(“ui-autocomplete-item”, item)
    .append(html)
    .appendTo($(ul).addClass(“navbar-search-list”));
    };

    $(“.new-mobile-header-search”).autocomplete({
    source: function(request, response) {
    $.ajax({
    url:…

  • Read the full article at foxnews.com…

    Leave a Reply

    Your email address will not be published. Required fields are marked *