     type_classes: 'fl-message-icon-time fl-message-success'
 
 in_screen_time = 3000
-removal_delay = 350 # Should be larger than notification_transition_time
 content = """
   <div class="fl-message">
     <div class="fl-message-icon"></div><span class="fl-message-content fl-js-message"></span>

    frame = new FactlinkJailRoot.ControlIframe()
    fillFrame()
    positionFrame()
    frame.$el.addClass 'factlink-control-visible'
    setTimeout(remove, in_screen_time)

  fillFrame = ->
    frame.setContent($.parseHTML(content)[0])

      position: 'fixed',
      marginLeft: "-#{frame.$el.width()/2}px"

  doTransition = ->
    frame
      .fadeIn()
      .then(-> FactlinkJailRoot.Timer(in_screen_time))
      .then(-> frame.fadeOut())
      .then(-> frame.destroy())

  renderFrame()
  return
