PageSourceSearch

https://goeugovietnam.com/view/default/themes/wp-content/themes/lovetravel/js/myjs.js

js goeugovietnam.com collected 2026-10-05 04:33:02 UTC 5,215 bytes, 164 lines download raw bytes

1var url = jQuery('#site-name').val();
2jQuery(document).ready(function () {
3    jQuery("#DanhMuc1Id").change(function () {
4        if (jQuery('#DanhMuc1Id  option:selected').val() != '') {
5            jQuery.post(url + '/controller/default/ajax_dm.php',
6                {
7                    Tour:jQuery('#DanhMuc1Id  option:selected').val()
8                },
9                function (data, status) {
10                    jQuery("#DanhMuc2Id").html(data);
11
12                });
13        }
14        else {
15            jQuery("#DanhMuc2Id").html('');
16        }
17    });
18
19    jQuery("#en_lang").click(function(){
20        jQuery.ajax({
21            type: 'GET',
22            url: '{SITE-NAME}/controller/default/language.php',
23            data: {
24                giatri: "en",
25            },
26            success: function(data) {
27                location.reload(true)
28            },
29            error: function() {
30                location.reload(true)
31            }
32        });
33    });
34    jQuery("#cn_lang").click(function(){
35        jQuery.ajax({
36            type: 'GET',
37            url: '{SITE-NAME}/controller/default/language.php',
38            data: {
39                giatri: "cn",
40            },
41            success: function(data) {
42                location.reload(true)
43            },
44            error: function() {
45                location.reload(true)
46            }
47        });
48    });
49    jQuery("#display_list").change(function(){
50        value=jQuery('#display_list  option:selected').val()
51        if(value=="grid"){
52            jQuery('#list_result').hide();
53            jQuery('#gird_result').slideDown();
54        }
55        else{
56            jQuery('#gird_result').hide();
57            jQuery('#list_result').slideDown();
58        }
59    });
60    jQuery(".icon_show_menu_mobile").click(function(){
61        jQuery('#main-nav').slideToggle()
62    });
63
64
65    jQuery("#fb_button").click(function () {
66        var formdata = jQuery('#fb_form').serializeArray();
67        for(input in formdata  ){
68            if(formdata[input].name == 'fb_name_tour'){
69                var value = formdata[input].value;
70                if(value){
71                    jQuery('#fb_name_tour_error').hide();
72                }else{
73                    jQuery('#fb_name_tour_error').show();
74                    return;
75                }
76            }
77
78            if(formdata[input].name == 'fb_name_customer'){
79                var value = formdata[input].value;
80                if(value){
81                    jQuery('#fb_name_customer_error').hide();
82                }else{
83                    jQuery('#fb_name_customer_error').show();
84                    return;
85                }
86            }
87
88
89            if(formdata[input].name == 'fb_email'){
90                var value = formdata[input].value;
91                var re = /^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9-]+(?:\.[a-zA-Z0-9-]+)*$/;
92                var is_email = re.test(value);
93                if(is_email){
94                    jQuery('#fb_email_error').hide();
95                }else{
96                    jQuery('#fb_email_error').show();
97                    return;
98                }
99            }
100
101            if(formdata[input].name == 'fb_phone'){
102                var value = formdata[input].value;
103                if(value){
104                    jQuery('#fb_phone_error').hide();
105                }else{
106                    jQuery('#fb_phone_error').show();
107                    return;
108                }
109            }
110
111            if(formdata[input].name == 'fb_start_date'){
112                var value = formdata[input].value;
113                if(value){
114                    jQuery('#fb_start_date_error').hide();
115                }else{
116                    jQuery('#fb_start_date_error').show();
117                    return;
118                }
119            }
120
121            if(formdata[input].name == 'fb_end_date'){
122                var value = formdata[input].value;
123                if(value){
124                    jQuery('#fb_end_date_error').hide();
125                }else{
126                    jQuery('#fb_end_date_error').show();
127                    return;
128                }
129            }
130
131            if(formdata[input].name == 'fb_feedback'){
132                var value = formdata[input].value;
133                if(value){
134                    jQuery('#fb_feedback_error').hide();
135                }else{
136                    jQuery('#fb_feedback_error').show();
137                    return;
138                }
139            }
140        }
141
142        var link = url +'/ajax-danh-gia/';
143        jQuery.ajax({
144            url : link,
145            type : 'POST',
146            data: formdata,
147            success : function (response) {
148                try {
149                    var data = jQuery.parseJSON(response)
150                    if(data.success){
151                        alert(data.mess);
152                        jQuery(location).attr('href',url+ '/danh-gia/')
153                    }
154                }catch (e) {
155                    alert('ph?n h?i th?t b?i');
156                }
157            }
158
159        })
160    });
161
162
163
164});

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.