Skip to content

Commit 2bfa3fa

Browse files
author
Coder daemon
committed
tweaks to first use intro
1 parent 5e917ae commit 2bfa3fa

File tree

2 files changed

+23
-6
lines changed

2 files changed

+23
-6
lines changed

coder-base/static/apps/coder/js/index.js

Lines changed: 19 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,13 +66,30 @@ $(document).ready( function() {
6666
});
6767

6868
if ( typeof getParams['firstuse'] !== 'undefined' ) {
69-
buildIntroduction();
69+
setTimeout( function(){
70+
buildIntroduction();
71+
}, 400 );
72+
} else {
73+
$('#introduction').css('display','none');
7074
}
7175
});
7276

7377

7478
var buildIntroduction = function() {
75-
$('#introduction').fadeIn();
79+
$('#introduction').css({
80+
'display': 'none',
81+
'visibility': 'visible'
82+
}).fadeIn( 'slow', function() {
83+
setTimeout( function() {
84+
$('#myapps_tip').css({'visibility':'visible'}).hide().fadeIn();
85+
}, 1000);
86+
setTimeout( function() {
87+
$('#newapp_tip').css({'visibility':'visible'}).hide().fadeIn();
88+
}, 2000);
89+
setTimeout( function() {
90+
$('#settings_tip').css({'visibility':'visible'}).hide().fadeIn();
91+
}, 3000);
92+
});
7693
$('.gotit').click( function() {
7794
$('#introduction').fadeOut(function() {
7895
$(this).hide();

coder-base/views/apps/coder/index.html

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ <h1>Settings</h1>
120120
<div class="cancel">Cancel</div>
121121
</div>
122122

123-
<div id="introduction" style="display:none">
123+
<div id="introduction" style="visibility:hidden">
124124

125125
<div class="intromessage">
126126
<h1>Getting Started</h1>
@@ -129,9 +129,9 @@ <h1>Getting Started</h1>
129129
<div class="gotit">Got It</div>
130130
</div>
131131
</div>
132-
<img src="/static/apps/coder/media/myapps_tip.png" id="myapps_tip" />
133-
<img src="/static/apps/coder/media/settings_tip.png" id="settings_tip"/>
134-
<img src="/static/apps/coder/media/newapp_tip.png" id="newapp_tip"/>
132+
<img src="/static/apps/coder/media/myapps_tip.png" id="myapps_tip" style="visibility:hidden"/>
133+
<img src="/static/apps/coder/media/settings_tip.png" id="settings_tip" style="visibility:hidden"/>
134+
<img src="/static/apps/coder/media/newapp_tip.png" id="newapp_tip" style="visibility:hidden"/>
135135

136136
</div>
137137

0 commit comments

Comments
 (0)