tutorial: Remove low-quality alert bar onboarding flow.

This alert bar thing was buggy and didn't look that good, so let's
just remove it.  We can always write a nicer thing advertising the
desktop app later.
This commit is contained in:
Tim Abbott 2016-10-28 22:45:18 -07:00
parent 2506c691b8
commit ebe959f2b0
2 changed files with 0 additions and 65 deletions

View File

@ -202,16 +202,6 @@ function send_delayed_stream_message(stream, topic, content, delay) {
}, delay * 1000); // delay is in seconds.
}
function hide_app_alert() {
$('#alert-bar-container').slideUp(100);
}
function show_app_alert(contents) {
$('#custom-alert-bar-content').html(contents);
$('#alert-bar-container').show();
$('#alert-bar-container .close-alert-icon').expectOne().click(hide_app_alert);
}
function disable_event_handlers() {
$('body').css({'overflow':'hidden'}); // prevents scrolling the feed
_.each(["keydown", "keyup", "keypress", "scroll"], function (event_name) {
@ -354,15 +344,6 @@ function finale(skip) {
});
deferred_work = [];
var alert_contents;
if (page_params.prompt_for_invites) {
alert_contents = "<i class='icon-vector-heart alert-icon'></i>It's lonely in here! <a href='#invite-user' data-toggle='modal'>Invite some users</a>.";
} else {
alert_contents = "<i class='icon-vector-desktop alert-icon'></i>What's better than " + page_params.product_name + " in your browser? The <a href='/apps' target='_blank'>"+ page_params.product_name + " desktop app</a>!";
}
show_app_alert(alert_contents);
// We start you in a narrow so it's not overwhelming.
if (stream_data.in_home_view(page_params.notifications_stream)) {
narrow.activate([{operator: "stream", operand: page_params.notifications_stream}]);

View File

@ -2406,52 +2406,6 @@ button.topic_edit_cancel {
margin-top: 41px;
}
#home .alert-bar-container {
position: fixed;
top: 41px;
left: 320px;
z-index: 101;
}
#home .alert-bar {
width: 100%;
max-width: 1210px;
margin: auto;
text-align: center;
}
#home .alert-bar-contents {
background: rgba(163,211,147,0.95);
font-weight: 400;
padding: 10px 35px 10px 10px;
display: inline-block;
position: relative;
z-index: 101;
}
#home .alert-bar .alert-icon {
font-size: 20px;
margin-right: 10px;
line-height: 5px;
}
#home .alert-bar .close-alert-icon {
display: block;
height: 100%;
width: 28px;
line-height: 38px;
font-size: 15px;
opacity: 0.5;
position: absolute;
top: 0px;
right: 0px;
}
#home .alert-bar .close-alert-icon:hover {
opacity: 0.7;
cursor: pointer;
}
.message-pane {
padding-left: 0.3em;
}