add studio survey button to header. am: f887aec708
am: cc81c16143
am: ec1a297d39
* commit 'ec1a297d39ee983dd82353ffc53428eb6da09f0c':
add studio survey button to header.
Change-Id: I4608a02f570358c8efaec0568517f1923f59e65e
This commit is contained in:
@@ -21,6 +21,8 @@ $.ajaxSetup({
|
|||||||
|
|
||||||
$(document).ready(function() {
|
$(document).ready(function() {
|
||||||
|
|
||||||
|
showStudioSurveyButton();
|
||||||
|
|
||||||
// show lang dialog if the URL includes /intl/
|
// show lang dialog if the URL includes /intl/
|
||||||
//if (location.pathname.substring(0,6) == "/intl/") {
|
//if (location.pathname.substring(0,6) == "/intl/") {
|
||||||
// var lang = location.pathname.split('/')[2];
|
// var lang = location.pathname.split('/')[2];
|
||||||
@@ -5375,3 +5377,17 @@ function showSamples() {
|
|||||||
$(document)
|
$(document)
|
||||||
.on('click.toggle', '[data-toggle="section"]', Toggle.prototype.toggle);
|
.on('click.toggle', '[data-toggle="section"]', Toggle.prototype.toggle);
|
||||||
})(jQuery);
|
})(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();
|
||||||
|
}
|
||||||
|
}
|
@@ -86,7 +86,13 @@
|
|||||||
<span class="dac-sprite dac-google-play"></span>
|
<span class="dac-sprite dac-google-play"></span>
|
||||||
<span class="dac-visible-desktop-inline">Developer</span>
|
<span class="dac-visible-desktop-inline">Developer</span>
|
||||||
Console
|
Console
|
||||||
</a><?cs /if ?>
|
</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 ?>
|
||||||
|
|
||||||
</div><!-- end header-wrap.wrap -->
|
</div><!-- end header-wrap.wrap -->
|
||||||
</div><!-- end header -->
|
</div><!-- end header -->
|
||||||
|
Reference in New Issue
Block a user