File tree Expand file tree Collapse file tree 1 file changed +38
-0
lines changed Expand file tree Collapse file tree 1 file changed +38
-0
lines changed Original file line number Diff line number Diff line change 1365
1365
}
1366
1366
} ;
1367
1367
1368
+ /**
1369
+ * Show all hints
1370
+ *
1371
+ * @api private
1372
+ * @method _showHints
1373
+ */
1374
+ function _showHints ( ) {
1375
+ var hints = this . _targetElement . querySelectorAll ( '.introjs-hint' ) ;
1376
+
1377
+ if ( hints && hints . length > 0 ) {
1378
+ for ( var i = 0 ; i < hints . length ; i ++ ) {
1379
+ _showHint . call ( this , hints [ i ] . getAttribute ( 'data-step' ) ) ;
1380
+ }
1381
+ }
1382
+ } ;
1383
+
1384
+ /**
1385
+ * Show a hint
1386
+ *
1387
+ * @api private
1388
+ * @method _showHint
1389
+ */
1390
+ function _showHint ( stepId ) {
1391
+ var hint = this . _targetElement . querySelector ( '.introjs-hint[data-step="' + stepId + '"]' ) ;
1392
+
1393
+ if ( hint ) {
1394
+ hint . className = hint . className . replace ( 'introjs-hidehint' , '' ) ;
1395
+ }
1396
+ } ;
1397
+
1368
1398
/**
1369
1399
* Add all available hints to the page
1370
1400
*
1767
1797
hideHints : function ( ) {
1768
1798
_hideHints . call ( this ) ;
1769
1799
return this ;
1800
+ } ,
1801
+ showHint : function ( stepId ) {
1802
+ _showHint . call ( this , stepId ) ;
1803
+ return this ;
1804
+ } ,
1805
+ showHints : function ( ) {
1806
+ _showHints . call ( this ) ;
1807
+ return this ;
1770
1808
}
1771
1809
} ;
1772
1810
You can’t perform that action at this time.
0 commit comments