<bootstrap-alert>
  <div if={ opts.type } class="alert alert-{ opts.type }">
    <strong>{ opts.type != 'warning' ? 'Error :' : '' }</strong><div id="alert_message"></div>
  </div>

  <script>
    this.alert_message.innerHTML = opts.message;
    $('#wrapper').addClass('alert-wrapper');

    if (opts.type) {
      // アラートの位置まで移動
      $('html, body').animate({
        scrollTop: $('.alert-wrapper').offset().top
      }, 500);
    }

  </script>
</bootstrap-alert>