Doing more achievement work-ish.
This commit is contained in:
parent
9760208632
commit
204f1dd8bd
@ -121,9 +121,8 @@ function buildList() {
|
|||||||
B("#levelup-user-"+idName).append(userNameSpan.text(userName));
|
B("#levelup-user-"+idName).append(userNameSpan.text(userName));
|
||||||
B("#levelup-user-"+idName).append(B("<div>").attr('id','levelup-user-'+idName+'-smalllevel').addClass('levelup-smalllevel').text("Level "+userLevel));
|
B("#levelup-user-"+idName).append(B("<div>").attr('id','levelup-user-'+idName+'-smalllevel').addClass('levelup-smalllevel').text("Level "+userLevel));
|
||||||
B("#levelup-user-"+idName).append(B("<div>").attr('id','levelup-user-'+idName+'-xp').addClass('levelup-xp').text("("+xp+"/"+toNext+")"));
|
B("#levelup-user-"+idName).append(B("<div>").attr('id','levelup-user-'+idName+'-xp').addClass('levelup-xp').text("("+xp+"/"+toNext+")"));
|
||||||
|
|
||||||
B('.levelup-user').on('click', function() {
|
|
||||||
console.log("Load User Profile: "+B(this).attr('data-username'));
|
|
||||||
});
|
|
||||||
}
|
}
|
||||||
|
B('.levelup-user').on('click', function() {
|
||||||
|
window.location.href = '/levelup/profile/'+B(this).attr('data-username');
|
||||||
|
});
|
||||||
}
|
}
|
||||||
|
@ -8,6 +8,7 @@ import (
|
|||||||
|
|
||||||
/*
|
/*
|
||||||
* General Message Processor
|
* General Message Processor
|
||||||
|
* Handles general message stuff, stats, etc.
|
||||||
*/
|
*/
|
||||||
type generalProcessor struct{}
|
type generalProcessor struct{}
|
||||||
|
|
||||||
|
@ -90,6 +90,7 @@ func (wm *levelUpAchieveWebModule) GetName() string {
|
|||||||
func (wm *levelUpAchieveWebModule) GetRoutes() map[string]func(http.ResponseWriter, *http.Request) {
|
func (wm *levelUpAchieveWebModule) GetRoutes() map[string]func(http.ResponseWriter, *http.Request) {
|
||||||
ret := make(map[string]func(http.ResponseWriter, *http.Request))
|
ret := make(map[string]func(http.ResponseWriter, *http.Request))
|
||||||
ret["/levelup/achieve"] = wm.handleLevelUpAchieveGeneral
|
ret["/levelup/achieve"] = wm.handleLevelUpAchieveGeneral
|
||||||
|
ret["/levelup/achieve/admin"] = wm.handleLevelUpAchieveAdmin
|
||||||
return ret
|
return ret
|
||||||
}
|
}
|
||||||
func (wm *levelUpAchieveWebModule) Register() {
|
func (wm *levelUpAchieveWebModule) Register() {
|
||||||
@ -107,6 +108,11 @@ func (wm *levelUpAchieveWebModule) GetBottomMenuEntries() []menuItem {
|
|||||||
return ret
|
return ret
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func (wm *levelUpAchieveWebModule) handleLevelUpAchieveAdmin(w http.ResponseWriter, req *http.Request) {
|
||||||
|
// TODO: Test for admin login
|
||||||
|
initRequest(w, req)
|
||||||
|
}
|
||||||
|
|
||||||
func (wm *levelUpAchieveWebModule) handleLevelUpAchieveGeneral(w http.ResponseWriter, req *http.Request) {
|
func (wm *levelUpAchieveWebModule) handleLevelUpAchieveGeneral(w http.ResponseWriter, req *http.Request) {
|
||||||
initRequest(w, req)
|
initRequest(w, req)
|
||||||
//setMenuItemActive("Achieve GET!")
|
//setMenuItemActive("Achieve GET!")
|
||||||
|
Loading…
Reference in New Issue
Block a user