韩国的汽车共享创业公司SoCar开进马来西亚

<! –




“;
$( “UI-自动完成。 ”)附加(“

  • ”+页脚+“
  • ”)。
    }
    else {
    var no_result_found =“

    点击此处查看更多结果

    ”;
    响应([{ label: no_result_found, val: -1}]);
    }
    }
    });
    },
    search:function(){
    $(本).addClass(“头搜索,自动完成负载”);
    $( “UI-自动填充 ”)除去(“ li.autocomplete – 响应 – 文本”);
    },
    minLength:1,
    选择:function(event,ui){
    self.location = ui.item.link
    },
    打开: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');
    $(本).removeClass(“头搜索,自动完成负载”);
    }
    })
    .data(“ui-autocomplete”)._ renderItem = function(ul,item){
    var sub =“”;
    var html =“”;
    if(item.category){

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

  • ”+ item.category +“

  • ”);
    currentCategory = item.category;
    }

    }

    if(item.icon){
    var html ='';
    html + =' Generic placeholder image ';
    html + ='
    ';
    }

    html + ='

    ';
    html + ='

    '+ item.label +'

    ';
    如果(item.location){
    html + ='

    '+ item.location +'

    ';
    }
    html + ='

    ';
    return $(“

  • ”)
    .data(“ui-autocomplete-item”,item)
    .append(HTML)
    .appendTo($(UL).addClass( “导航栏搜索列表”));
    };

    $(“新的移动头搜索”)。自动完成({
    source:function(request,response){
    $就({
    网址:“https://e27.co/index/main_search_new”,
    // url:“http://e27beta.co/index/main_search_new”,
    // url:“http://e27beta.co/_html/header_search.json”,
    dataType:“json”,
    数据:{
    q:request.term
    },
    成功:功能(数据){
    //console.log("search“);
    $(“#statssaver”)。attr(“src”,“https://e27.co/stats/log”);
    尝试{
    ga('send','pageview','/ index / main_search_new?q =“+ searchq);
    }
    捕捉(E){
    }
    if(data.length> 0){
    响应(数据);
    var footer =“

    点击这里获得更多的结果

    ”;
    $( “UI-自动完成。 ”)附加(“

  • ”+页脚+“
  • ”)。
    }
    else {
    var no_result_found =“

    点击此处查看更多结果

    ”;
    响应([{ label: no_result_found, val: -1}]);
    }
    }
    });
    },
    search:function(){
    $(本).addClass(“头搜索,自动完成负载”);
    $( “UI-自动填充 ”)除去(“ li.autocomplete – 响应 – 文本”);
    },
    minLength:1,
    选择:function(event,ui){
    self.location = ui.item.link
    },
    打开:function(event,ui){
    $('。ui-autocomplete').css('width',“100%”);
    $('。ui-autocomplete')。css('height','300px');
    $('。ui-autocomplete').css('overflow-y','scroll');
    $('。ui-autocomplete')。css('z-index','10000');
    $(本).removeClass(“头搜索,自动完成负载”);
    }
    })
    .data(“ui-autocomplete”)._ renderItem = function(ul,item){
    var sub =“”;
    var html =“”;
    if(item.category){

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

  • ”+ item.category +“

  • ”);
    currentCategory = item.category;
    }

    }

    if(item.icon){
    var html ='';
    html + =' Generic placeholder image ';
    html + ='
    ';
    }

    html + ='

    ';
    html + ='

    '+ item.label +'

    ';
    如果(item.location){
    html + ='

    '+ item.location +'

    ';
    }
    html + ='

    ';
    return $(“

  • ”)
    .data(“ui-autocomplete-item”,item)
    .append(HTML)
    .appendTo($(UL).addClass( “导航栏搜索列表”));
    };
    });
    GlobalJS.onLoad(函数(){
    $('。navbar-mobile> .dropdown> .dropdown-menu')。click(function(e){
    e.stopPropagation();
    });
    $('。navbar-click a')。click(function(e){
    var ulElem = $(this).parent()。find('ul');
    如果(ulElem.hasClass('navbar-open')){
    。ulElem.removeClass( '导航栏开')addClass( '导航栏闭');
    }
    其他{
    ulElem.removeClass(“导航栏闭”)addClass(“导航栏开”);
    }
    });
    });

    function viewAnnoucement(){
    }

    <! –

    – >

    阅读更多

  • About travel

    Check Also

    前往新加坡的游客可使用自动车道加快出行速度 | 星

    新加坡(彭博社):新加坡移民与 …

    发表回复

    您的电子邮箱地址不会被公开。 必填项已用 * 标注