PageSourceSearch

https://chuchutv.com/wp-content/themes/chuchutvnew/js/msops.js?rand=3303&ver=6.8.10

js chuchutv.com collected 2026-10-02 13:02:29 UTC 3,232 bytes, 121 lines download raw bytes

1    /* JS Ops */
2
3function mswProcessOKWait() {
4  jQuery('body').css({'opacity' : '1.0'});
5  jQuery('div[class="overlaySpinner"]').hide();
6}
7
8function mswProcessOK() {
9 $('.form-success').text('');
10  //jQuery('#mswform').reset();
11  $('#sname').val('');
12  $('#semail').val('');
13  $('#ssubject').val('');
14  $('#scomment').val('');
15  $('#inpCCODE').val('');
16  //$('#cap_code').val('');
17  setTimeout("ReloadSupport();refreshCaptcha();",1000);
18  $('.support-section-main').slideUp(); 
19  $(".support-open").css("display","block");
20  $("#bntSupport").css("display","block");
21  setTimeout(function(){
22    $("#support-dialog.onload-overlay").hide();
23  },1000);
24}
25
26function mswProcessMultiPart() {
27  jQuery('#mswform').submit();
28}
29// post-submit callback
30function mswProcessMultiPartCallBack(responseText, statusText, xhr, $form)  {
31 // alert("Callback");
32 switch (responseText['status']) {
33    case 'ok':
34      switch(responseText['field']) {
35        case 'redirect':
36        $("#bntSupport").css("display","none");
37        $('.form-success').text('Your support request has been placed. We will respond on it soon.');
38        //mswAlert('Your ticket successfully submitted. We will respond you soon.', responseText['sys'], 'succ');
39          setTimeout(function() {
40        mswProcessOK();
41      }, 8000);
42          
43          break;
44        default:
45          setTimeout(function() {
46        mswProcessOK();
47      }, 8000);
48          break;
49      }
50      break;
51    /* case 'reload':
52      mswProcessOKWait();
53      setTimeout(function() {
54        window.location.reload();
55      }, 500);
56      break;*/
57    case 'err':
58     $("#bntSupport").css("display","none");
59     $('.form-success').text('There is an error on submitted. Please try again sometimes later');
60      setTimeout(function() {
61        mswProcessOK();
62      }, 8000);
63      //mswAlert(responseText['msg'], responseText['sys'], 'err');
64      break;
65    default:
66      setTimeout(function() {
67        mswProcessOK();
68      }, 8000);
69      break;
70  }
71}
72
73
74function mswShowSpinner() {
75  jQuery('body').css({'opacity' : '0.7'});
76  jQuery('.overlaySpinner').css({
77    'left' : '50%',
78    'top' : '50%',
79    'position' : 'fixed',
80    'margin-left' : -jQuery('.overlaySpinner').outerWidth()/2,
81    'margin-top' : -jQuery('.overlaySpinner').outerHeight()/2
82  });
83  jQuery('div[class="overlaySpinner"]').show();
84}
85/*
86
87*/
88function mswAlert(msg, txt, type) {
89  jQuery('div[class="modal-backdrop fade in"]').remove();
90  jQuery('#bootlogbox').remove();
91  switch (type) {
92    case 'err':
93      BootstrapDialog.show({
94        title: '<i class="fa fa-warning fa-fw"></i> ' + txt,
95        message: msg,
96        type: BootstrapDialog.TYPE_DANGER,
97        id: 'bootlogbox',
98        cssClass: 'mswdialog',
99        draggable: true,
100        onshown: function() {
101        }
102      });
103      break;
104    default:
105      BootstrapDialog.show({
106        title: txt,
107        message: msg,
108        type: BootstrapDialog.TYPE_PRIMARY,
109        id: 'bootlogbox',
110        cssClass: 'mswdialog',
111        draggable: true,
112        onshown: function() {
113        }
114      });
115      break;
116  }
117}
118function validateEmail($email) {
119  var emailReg = /^([\w-\.]+@([\w-]+\.)+[\w-]{2,4})?$/;
120  return emailReg.test( $email );
121}

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.