PageSourceSearch

https://govisitsrilanka.com/comming/assets/js/scripts.js

js govisitsrilanka.com collected 2026-10-06 13:15:45 UTC 3,788 bytes, 128 lines download raw bytes

1/*
2Template Name: Material Design Coming Soon Template
3Created By: TrendyTheme
4Envato Profile: https://themeforest.net/user/trendytheme
5Website: http://trendytheme.net
6Version: 1.0
7Support: http://trendytheme.net/support
8*/
9
10;(function () {
11
12    "use strict"; // use strict to start
13
14    $(document).ready(function () {
15
16
17        /* === Preloader === */
18        $("#preloader").delay(200).fadeOut("slow");
19
20
21        /* === Page scrolling feature - requires jQuery Easing plugin === */
22
23        $('a.page-scroll').on('click', function(event) {
24            var $anchor = $(this);
25            $('html, body').stop().animate({
26                scrollTop: $($anchor.attr('href')).offset().top - 60
27            }, 1500, 'easeInOutExpo');
28            event.preventDefault();
29        });
30        
31
32        /* === Full Screen Banner === */
33        $(window).on('resizeEnd', function () {
34            $(".fullscreen-banner").height($(window).height());
35        });
36
37        $(window).resize(function () {
38            if (this.resizeTO) clearTimeout(this.resizeTO);
39            this.resizeTO = setTimeout(function () {
40                $(this).trigger('resizeEnd');
41            }, 300);
42        }).trigger("resize");
43
44
45
46        /* === Detect IE version === */
47        (function () {
48            
49            function getIEVersion() {
50                var match = navigator.userAgent.match(/(?:MSIE |Trident\/.*; rv:)(\d+)/);
51                return match ? parseInt(match[1], 10) : false;
52            }
53
54            if( getIEVersion() ){
55                $('html').addClass('ie'+getIEVersion());
56            }
57
58        }());
59
60
61        /* === CountDown === */
62        if ($('.countdown').length > 0) {
63            $(".countdown").countdown({
64                date: "31 december 2017 12:00:00",
65                format: "on"
66            });
67        }
68
69
70        /* === Progress Bar === */
71        $('.progress').on('inview', function(event, visible, visiblePartX, visiblePartY) {
72            if (visible) {
73                $.each($('div.progress-bar'),function(){
74                    $(this).css('width', $(this).attr('aria-valuenow')+'%');
75                });
76                $(this).off('inview');
77            }
78        });
79
80
81        /* ======= Contact Form ======= */
82        $('#contactForm').on('submit',function(e){
83
84            e.preventDefault();
85
86            var $action = $(this).prop('action');
87            var $data = $(this).serialize();
88            var $this = $(this);
89
90            $this.prevAll('.alert').remove();
91
92            $.post( $action, $data, function( data ) {
93
94                if( data.response=='error' ){
95
96                    $this.before( '<div class="alert danger-border"><button type="button" class="close" data-dismiss="alert" aria-label="Close"><span aria-hidden="true">&times;</span></button> <i class="fa fa-times-circle"></i> '+data.message+'</div>' );
97                }
98
99                if( data.response=='success' ){
100
101                    $this.before( '<div class="alert success-border"><button type="button" class="close" data-dismiss="alert" aria-label="Close"><span aria-hidden="true">&times;</span></button><i class="fa fa-thumbs-o-up"></i> '+data.message+'</div>' );
102                    $this.find('input, textarea').val('');
103                }
104
105            }, "json");
106
107        });
108
109
110        /* ======= Stellar for background scrolling ======= */
111        if ($('.parallax-bg').length > 0) {
112            $('.parallax-bg').imagesLoaded( function() {
113
114            	$(window).stellar({
115                    horizontalScrolling: false,
116                    verticalOffset: 0,
117                    horizontalOffset: 0,
118                    responsive: true,
119                    hideDistantElements: true
120                });
121            });
122        }
123
124    });
125
126
127})(jQuery);
128

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.