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