Skip to content

Commit cccf8c2

Browse files
committed
optional hint class
1 parent 54ff1b1 commit cccf8c2

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

intro.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,11 @@
165165
}
166166

167167
function createHint(){
168-
var hint = $('<div class="intro-hint"><div class="intro-circle"></div></div>');
168+
var hintClasses = 'intro-hint';
169+
if (base.options.hintClass) {
170+
hintClasses += ' ' + base.options.hintClass;
171+
}
172+
var hint = $('<div class="'+ hintClasses +'"><div class="intro-circle"></div></div>');
169173
hint.hide();
170174
$('body').append(hint);
171175
return hint;

0 commit comments

Comments
 (0)