mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2025-04-27 06:23:41 -04:00
A/B Test quick victory save/continue buttons
Fixing typo in hu.coffee
This commit is contained in:
parent
499666d7b3
commit
b69bdfd360
3 changed files with 14 additions and 2 deletions
app
|
@ -278,7 +278,7 @@ module.exports = nativeDescription: "magyar", englishDescription: "Hungarian", t
|
|||
tip_morale_improves: "A töltés addig folytatódik, amíg a morál javul."
|
||||
tip_all_species: "Hisszük, hogy minden fajnak egyenlő lehetőségekkel kell bírnia a programozás megtanulására."
|
||||
# tip_reticulating: "Reticulating spines."
|
||||
tip_harry: "Te, Mágus, "
|
||||
tip_harry: "Te, Mágus, "
|
||||
tip_great_responsibility: "Nagy kódolási képességgel nagy hibaelhárítási felelősség jár."
|
||||
# tip_munchkin: "If you don't eat your vegetables, a munchkin will come after you while you're asleep."
|
||||
tip_binary: "A világon csak 10 féle ember van: azok, akik értik a kettes számrendszert és azok, akik nem.."
|
||||
|
|
|
@ -115,6 +115,17 @@ module.exports = class User extends CocoModel
|
|||
application.tracker.identify announcesActionAudioGroup: @announcesActionAudioGroup unless me.isAdmin()
|
||||
@announcesActionAudioGroup
|
||||
|
||||
getFastVictoryModalGroup: ->
|
||||
# A/B Testing no delay showing the signup and continue buttons in hero victory modal
|
||||
return @fastVictoryModalGroup if @fastVictoryModalGroup
|
||||
group = me.get('testGroupNumber') % 2
|
||||
@fastVictoryModalGroup = switch group
|
||||
when 0 then 'normal'
|
||||
when 1 then 'fast'
|
||||
@fastVictoryModalGroup = 'fast' if me.isAdmin()
|
||||
application.tracker.identify fastVictoryModalGroup: @fastVictoryModalGroup unless me.isAdmin()
|
||||
@fastVictoryModalGroup
|
||||
|
||||
getGemPromptGroup: ->
|
||||
return @gemPromptGroup if @gemPromptGroup
|
||||
group = me.get('testGroupNumber') % 8
|
||||
|
|
|
@ -283,7 +283,8 @@ module.exports = class HeroVictoryModal extends ModalView
|
|||
Backbone.Mediator.publish 'music-player:enter-menu', terrain: @level.get('terrain', true)
|
||||
|
||||
updateSavingProgressStatus: ->
|
||||
return unless @animationComplete
|
||||
# A/B Testing no delay showing the signup and continue buttons in hero victory modal
|
||||
return unless @animationComplete or me.getFastVictoryModalGroup() is 'fast'
|
||||
@$el.find('#saving-progress-label').toggleClass('hide', @readyToContinue)
|
||||
@$el.find('.next-level-button').toggleClass('hide', not @readyToContinue)
|
||||
@$el.find('.sign-up-poke').toggleClass('hide', not @readyToContinue)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue