File tree Expand file tree Collapse file tree 1 file changed +40
-0
lines changed Expand file tree Collapse file tree 1 file changed +40
-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
+ } else {
1382
+ _populateHints . call ( this , this . _targetElement ) ;
1383
+ }
1384
+ } ;
1385
+
1386
+ /**
1387
+ * Show a hint
1388
+ *
1389
+ * @api private
1390
+ * @method _showHint
1391
+ */
1392
+ function _showHint ( stepId ) {
1393
+ var hint = this . _targetElement . querySelector ( '.introjs-hint[data-step="' + stepId + '"]' ) ;
1394
+
1395
+ if ( hint ) {
1396
+ hint . className = hint . className . replace ( / i n t r o j s \- h i d e h i n t / g, '' ) ;
1397
+ }
1398
+ } ;
1399
+
1368
1400
/**
1369
1401
* Add all available hints to the page
1370
1402
*
1767
1799
hideHints : function ( ) {
1768
1800
_hideHints . call ( this ) ;
1769
1801
return this ;
1802
+ } ,
1803
+ showHint : function ( stepId ) {
1804
+ _showHint . call ( this , stepId ) ;
1805
+ return this ;
1806
+ } ,
1807
+ showHints : function ( ) {
1808
+ _showHints . call ( this ) ;
1809
+ return this ;
1770
1810
}
1771
1811
} ;
1772
1812
You can’t perform that action at this time.
0 commit comments