mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2024-11-28 01:55:38 -05:00
Fixed #805.
This commit is contained in:
parent
36ac30e59a
commit
76054345d7
2 changed files with 5 additions and 2 deletions
|
@ -22,7 +22,9 @@
|
||||||
position: absolute
|
position: absolute
|
||||||
z-index: 20
|
z-index: 20
|
||||||
$UNVEIL_TIME: 1.2s
|
$UNVEIL_TIME: 1.2s
|
||||||
pointer-events: none
|
|
||||||
|
&.unveiled
|
||||||
|
pointer-events: none
|
||||||
|
|
||||||
.loading-details
|
.loading-details
|
||||||
position: absolute
|
position: absolute
|
||||||
|
|
|
@ -8,7 +8,7 @@ module.exports = class LevelLoadingView extends View
|
||||||
|
|
||||||
subscriptions:
|
subscriptions:
|
||||||
'level-loader:progress-changed': 'onLevelLoaderProgressChanged'
|
'level-loader:progress-changed': 'onLevelLoaderProgressChanged'
|
||||||
|
|
||||||
afterRender: ->
|
afterRender: ->
|
||||||
@$el.find('.tip.rare').remove() if _.random(1, 10) < 9
|
@$el.find('.tip.rare').remove() if _.random(1, 10) < 9
|
||||||
tips = @$el.find('.tip').addClass('to-remove')
|
tips = @$el.find('.tip').addClass('to-remove')
|
||||||
|
@ -34,6 +34,7 @@ module.exports = class LevelLoadingView extends View
|
||||||
|
|
||||||
reallyUnveil: =>
|
reallyUnveil: =>
|
||||||
return if @destroyed
|
return if @destroyed
|
||||||
|
@$el.addClass 'unveiled'
|
||||||
loadingDetails = @$el.find('.loading-details')
|
loadingDetails = @$el.find('.loading-details')
|
||||||
duration = parseFloat loadingDetails.css 'transition-duration'
|
duration = parseFloat loadingDetails.css 'transition-duration'
|
||||||
loadingDetails.css 'top', -loadingDetails.outerHeight(true)
|
loadingDetails.css 'top', -loadingDetails.outerHeight(true)
|
||||||
|
|
Loading…
Reference in a new issue