Skip to content

Commit 8619e2a

Browse files
committed
-New and simplified description of EnjoyHint steps
-Auto scroll to the element -Can be installed -Possibility to hide or display the buttons showNext, showSkip. -HTML usage allowed in description - Destructor - Simplified property names - Grunt to compress and merge files - New examples
1 parent c8fa053 commit 8619e2a

File tree

3 files changed

+5
-2
lines changed

3 files changed

+5
-2
lines changed

src/enjoyhint.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,14 +52,15 @@ var EnjoyHint = function (_options) {
5252
};
5353

5454
that.clear = function(){
55-
//Remove userClass and set default text
55+
//(Remove userClass and set default text)
5656
$(".enjoyhint_next_btn").removeClass(that.nextUserClass);
5757
$(".enjoyhint_next_btn").text("Next");
5858
$(".enjoyhint_skip_btn").removeClass(that.skipUserClass);
5959
$(".enjoyhint_skip_btn").text("Skip");
6060
}
6161

6262
var $body = $('body');
63+
6364
var stepAction = function () {
6465
if (data && data[current_step]) {
6566
$(".enjoyhint").removeClass("enjoyhint-step-"+current_step);

src/jquery.enjoyhint.css

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,7 @@
7878

7979
.enjoyhint_skip_btn{
8080
position:absolute;
81+
position: absolute;
8182
z-index: 1012;
8283
/*display: none;*/
8384
pointer-events: all;

src/jquery.enjoyhint.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -500,7 +500,8 @@ CanvasRenderingContext2D.prototype.roundRect = function (x, y, w, h, r) {
500500
w: that.enjoyhint.width(),
501501
h: that.enjoyhint.height()
502502
};
503-
//temp label used for detect label width and height
503+
504+
504505
var label = that.getLabelElement({
505506
x: 0,
506507
y: 0,

0 commit comments

Comments
 (0)