Fix bug 952587 - remove first run survey

This commit is contained in:
Craig Cook 2014-01-07 10:12:34 -08:00
Родитель eabe3d95c4
Коммит 41ea086db3
3 изменённых файлов: 0 добавлений и 37 удалений

Просмотреть файл

@ -39,18 +39,6 @@
</video>
</div>
{% if request.locale in ['en-US', 'en-GB'] %}
<p class="survey">
<a id="launch-survey" role="button" href="https://www.surveygizmo.com/s3/1450052/First-Run-has-the-user-downloaded-Firefox-before">Take a brief survey</a> and help us make Firefox better.
</p>
<div id="survey-wrapper" class="modal-content">
<div class="content">
<iframe src="//www.surveygizmo.com/s3/iframe/1450052/110f3890f6ae" frameborder="0" width="100%" height="500"></iframe>
</div>
</div>
{% endif %}
</article>
{% endblock %}

Просмотреть файл

@ -72,11 +72,6 @@
}
}
p.survey,
#survey-wrapper {
display: none;
}
#colophon {
width: @widthDesktop;
margin: 0 auto;

Просмотреть файл

@ -14,24 +14,4 @@
gaTrack(['_trackEvent', 'first run interaction', action, 'First Run Video']);
});
// Show the download survey to 1% of visitors
var $survey_content = $('#survey-wrapper').show().detach();
if ($survey_content.length > 0) {
var surveyProbability = 0.01;
var showSurvey = (Math.random() < surveyProbability) ? 'yes' : 'no';
if (showSurvey === 'yes') {
$('p.survey').show();
$('#launch-survey').on('click', function(e) {
e.preventDefault();
Mozilla.Modal.createModal(this, $survey_content, {
allowScroll: false
});
});
}
}
})(window.jQuery);