Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 20324e21 authored by Scott Main's avatar Scott Main Committed by android-build-merger
Browse files

Revert "add studio survey button to header." 40k responses is probably enough....

Revert "add studio survey button to header." 40k responses is probably enough. am: 4d6e15df am: fa46661a
am: 3ff492de

* commit '3ff492de':
  Revert "add studio survey button to header." 40k responses is probably enough.

Change-Id: Ib0bfd417c340f1f5d734f4551813cd6079b28f3e
parents 69ef9866 3ff492de
Loading
Loading
Loading
Loading
+0 −16
Original line number Diff line number Diff line
@@ -21,8 +21,6 @@ $.ajaxSetup({

$(document).ready(function() {

  showStudioSurveyButton();

  // show lang dialog if the URL includes /intl/
  //if (location.pathname.substring(0,6) == "/intl/") {
  //  var lang = location.pathname.split('/')[2];
@@ -5377,17 +5375,3 @@ function showSamples() {
  $(document)
    .on('click.toggle', '[data-toggle="section"]', Toggle.prototype.toggle);
})(jQuery);


var STUDIO_SURVEY_CLICKED = 'studio-survey-20160429-clicked';

function onClickStudioSurvey() {
  localStorage.setItem(STUDIO_SURVEY_CLICKED, 'true');
  $("#studio-survey-button").fadeOut();
}

function showStudioSurveyButton() {
  if (localStorage.getItem(STUDIO_SURVEY_CLICKED) == null) {
    $("#studio-survey-button").show();
  }
}
 No newline at end of file
+1 −7
Original line number Diff line number Diff line
@@ -86,13 +86,7 @@
          <span class="dac-sprite dac-google-play"></span>
          <span class="dac-visible-desktop-inline">Developer</span>
          Console
        </a>
        <a class="dac-header-console-btn" id="studio-survey-button"
          href="http://goo.gl/forms/dOQUuzwBsX"
          onclick="onClickStudioSurvey()"
          target="_blank" style="background:#FFE0B2;display:none"
        >Take a 1 min survey</a>
        <?cs /if ?>
        </a><?cs /if ?>

      </div><!-- end header-wrap.wrap -->
    </div><!-- end header -->