PageSourceSearch

http://greatnessbook.com/wp-content/themes/swell-lite/asset2/js/jquery.custom.js

js greatnessbook.com collected 2026-09-29 23:14:44 UTC 2,265 bytes, 84 lines download raw bytes

1var isMobile = {
2    Android: function() {
3        return navigator.userAgent.match(/Android/i);
4    },
5    BlackBerry: function() {
6        return navigator.userAgent.match(/BlackBerry/i);
7    },
8    iOS: function() {
9        return navigator.userAgent.match(/iPhone|iPad|iPod/i);
10    },
11    Opera: function() {
12        return navigator.userAgent.match(/Opera Mini/i);
13    },
14    Windows: function() {
15        return navigator.userAgent.match(/IEMobile/i);
16    },
17    any: function() {
18        return (isMobile.Android() || isMobile.BlackBerry() || isMobile.iOS() || isMobile.Opera() || isMobile.Windows());
19    }
20};
21jQuery(document).ready(function(){
22
23});
24
25
26$(document).ready(function() {
27    
28        $(document).mousemove(function(e) {
29        
30            $('#exitpopup').css('left', (window.innerWidth/2 - $('#exitpopup').width()/2));
31            $('#exitpopup').css('top', (window.innerHeight/2 - $('#exitpopup').height()/2));
32        
33            if(e.pageY <= 5)
34            {
35                
36                // Show the exit popup
37                $('#exitpopup_bg').fadeIn();
38                $('#exitpopup').fadeIn();
39            }
40        
41        });
42        
43        $('#exitpopup_bg').click(function(){
44            $('#exitpopup_bg').fadeOut();
45            $('#exitpopup').fadeOut();
46        });
47
48        $('.x, .close').click(function(){
49            $('#exitpopup_bg').fadeOut();
50            $('#exitpopup').fadeOut();
51        });
52
53
54        $(".top-title2").hide();
55
56        $('.openpopupform').click(function(){
57            $(".text-box").hide();
58            $(".top-title").hide();
59            $(".top-title2").show();
60            $("#sign-up-form").show();
61            return false;
62        });
63
64        $('.step2').click(function(){
65            $('.exitpopup').addClass('opened');
66            $('#exitpopup_bg').addClass('opened');
67        });
68
69
70        $('.step1').click(function(){
71            $('.exitpopup').removeClass('opened');
72            $('#exitpopup_bg').removeClass('opened');
73        });
74    
75    });
76
77
78
79$(window).scroll(function() {
80    if ($(document).height() <= ($(window).height() + $(window).scrollTop())) {
81        $('#exitpopup.opened').delay(1200).fadeIn();
82        $('#exitpopup_bg.opened').delay(1200).fadeIn();
83    }
84});

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.