如何在顶部菜单上添加活动类,在侧边栏菜单上添加活动类和图标?

时间:2015-12-18 10:11:42

标签: jquery css

所以我有这个网站,我希望当用户点击顶部菜单只添加活动课程,但当他从侧边栏菜单中选择一些东西时,在它旁边添加图标箭头。任何建议我该怎么做?

http://muzej.midori.lapps.ws/visiting-us/

这是我在每个链接上添加课程的方式

var city;
var state;
var timeZone;
var contactPhone;
var contactEmail;
var contactName;
var address1;
var address2;
var postalCode;

//hosts
var host;
var specialGuest;
var cohost;


//tiers
var tierTitle;
var tierDecription;
var tierPrice;
var tierRaiser;
var tierMax;
var tierQuantity;

var shiftStart;
var shiftEnd;       //getting all nested records


evt.locations.forEach(function(locations, i, array) {
    //location data
    city= evt.locations[i].city;
    state= evt.locations[i].state;
    timeZone= evt.locations[i].timezone;
    contactPhone= evt.locations[i].contactPhone;
    contactEmail= evt.locations[i].contactEmail;
    contactName= evt.locations[i].contactName;
    address1= evt.locations[i].address1;
    address2= evt.locations[i].address2;
    postalCode= evt.locations[i].postalCode;

    //hosts
    host= evt.locations[i].tags.host;
    specialGuest=evt.locations[i].tags.specialGuest;
    cohost=evt.locations[i].tags.cohost;


    //tiers
    tierTitle= evt.locations[i].tiers[i].title;
    tierDecription= evt.locations[i].tiers[i].decription;
    tierPrice=evt.locations[i].tiers[i].price;
    tierRaiser=evt.locations[i].tiers[i].raiser;
    tierMax=evt.locations[i].tiers[i].maxNum;
    tierQuantity=evt.locations[i].tiers[i].quantity;

    shiftStart= evt.locations[i].shifts[i].startDate;
    shiftEnd= evt.locations[i].shifts[i].endDate;

    console.log(evt.locations[i].city)

});

1 个答案:

答案 0 :(得分:1)

将活动类添加到motor-b标记时,请写一点css。

添加此代码,您将在侧边栏区OUTPUT

中看到类似内容
a

这段代码将为a标签添加一个角度。