PageSourceSearch

https://baystateinterpreters.com/assets/js/header.js

js baystateinterpreters.com collected 2026-10-02 21:29:07 UTC 10,577 bytes, 283 lines download raw bytes

1{
2  /* <li><a class="nav-link scrollto active" href="index.html">Home</a></li> */
3}
4
5function validMail(mail) {
6  var emailPattern = /^[a-zA-Z0-9._-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,6}$/; let res = false;
7
8  res = emailPattern.test(mail) ? true : false;
9  return res;
10}
11function footerSendmailValidation(event) {
12  event.preventDefault();
13  let isvalidtion = footerValidation();
14  if (!isvalidtion.Hisvalid) {
15    alert(isvalidtion.HerrorMessage);
16
17  } else {
18    let getgrecaptchaValue = grecaptcha.getResponse();
19    if (getgrecaptchaValue.length == 0 || getgrecaptchaValue == "") {
20      document.getElementById('captchaerror').innerHTML = "You can't leave Captcha Code empty";
21      setTimeout(() => {
22        document.getElementById('captchaerror').innerHTML="";
23            }, 5000);
24      return false;
25    }
26    else {
27      footerSendmail();
28      return true;
29
30    }
31
32  }
33
34
35}
36function footerValidation() {
37  let isvalid = true;
38  let errorMessage = "";
39
40  let Hfname = $('#footerMailName').val().trim() || '';
41  let Hmail = $('#footerMailEmail').val().trim() || '';
42
43  if (!Hfname) {
44    isvalid = false;
45    errorMessage += 'Please enter your name.\n';
46  }
47  if (!Hmail || !validMail(Hmail)) {
48    isvalid = false;
49    errorMessage += 'Please enter a valid email id.\n';
50  }
51  return { Hisvalid: isvalid, HerrorMessage: errorMessage };
52}
53function footerSendmail() {
54  let fname = $('#footerMailName').val();
55  let mail = $('#footerMailEmail').val();
56  /* alert('Are you sure that you want to Share this details to us?'); */
57  $("#formSubmitButton").prop("disabled", true)
58  $("#formSubmitButton").html(`Submit  <i class="fas fa-circle-notch fa-spin"></i>`)
59  let headCaptchaKey = grecaptcha.getResponse();
60  $.ajax({
61    url: 'contact-us.php',
62    type: 'POST',
63    data: {
64      fullname: fname,
65      mail: mail,
66      captcha: headCaptchaKey
67    },
68    success: function (response) {
69      $('#footerMailName').val("")
70      $('#footerMailEmail').val("");
71      grecaptcha.reset();
72      alert(response);
73      $("#formSubmitButton").html(`Submit`)
74      $("#formSubmitButton").prop("disabled", false)
75    },
76    error: function () {
77      $("#formSubmitButton").html(`Submit`)
78      $("#formSubmitButton").prop("disabled", false)
79      alert('Failed to send email.');
80    }
81  });
82
83}
84
85
86
87
88let Htmlheader = ` <div class="container-fluid container-xl d-flex align-items-center justify-content-between">
89
90<a href="index.html" class="logo d-flex align-items-center">
91  <img src="assets/img/baystate_logo.png" alt="Baystate Interpreters" title="Baystate Interpreters">
92</a>
93
94<nav id="navbar" class="navbar">
95  <ul>
96
97    <li class="dropdown"><a href="#"><span>Services</span> <i class="bi bi-chevron-down"></i></a>
98      <ul>
99        <li><a href="onsite_interpreter.html">Onsite Interpretation</a></li>
100        <li><a href="interpreter.html">Written Translation</a></li>
101        <li><a href="telephone-interpretation.html">Over-the-Phone Interpretation</a></li>
102        <li><a href="virtual-interpretation.html">Video Remote Interpretation</a></li>
103         <li><a href="additional_services.html">Additional Services</a></li>
104      </ul>
105    </li>
106
107    <li class="dropdown"><a href="#"><span>About Us</span> <i class="bi bi-chevron-down"></i></a>
108      <ul>
109        <li><a href="about-us.html">Overview</a></li>
110        <li><a href="why-choose.html">Why Baystate</a></li>
111        <li><a href="industries.html">Industries</a></li>
112        <li><a href="integrations.html">Integrations</a></li>
113      </ul>
114    </li>
115
116    <li class="dropdown"><a href="#"><span>Resources</span> <i class="bi bi-chevron-down"></i></a>
117      <ul>
118        <li><a href="language.html">Language List</a></li>
119      </ul>
120    </li>
121
122    <li class="dropdown"><a href="https://apply.workable.com/baystate-interpreters/" target="_blank"><span>Careers</span></a>
123    </li>
124    <li><a class="getstarted-Outline effect effect-1" href="https://lsp.totallanguage.com/baystateinterpreters" target="_blank">Sign In</a></li>
125    <li><a href="contact-us.html" class="getstarted effect effect-1 scrollto">
126      Contact Us
127    </a></li>
128  </ul>
129  <i class="bi bi-list mobile-nav-toggle"></i>
130</nav>
131
132</div>
133
134`;
135
136let Htmlfooter = `
137  <div class="footer-top">
138    <div class="container">
139      <div class="row">
140        <div class="col-lg-7 col-md-12 footer-contact text-center align-self-center text-md-start">
141        <form action="contact-us.php" onsubmit="return false;" class="contact-form" method="post" id="footerForm" >
142          <div class="footer-info">
143          <h1>Contact Us</h1>
144          <h6>Contact us today for more information on how Baystate Interpreters can be the solution to all your language service needs.</h6>
145          <div class="row">
146          <div class="col-md-5">
147          <input type="text" id="footerMailName" class="footer-control" name ="fullname" id="txtFooterName" placeholder="Your Name">
148          </div>
149          <div class="col-md-5">
150          <input type="text" id="footerMailEmail" class="footer-control" id="txtFootermail" name="mail" placeholder="Your Email address">
151          </div>
152         <div class="col-md-5">
153          <div class="g-recaptcha" id="rcaptcha" data-sitekey="6Lcg7GMqAAAAALxP8g1OiqoHXpzBzrRMBIs2kgzd"></div>
154                <span id="captchaerror" style="color:red"></span>
155          </div>
156
157          <div class="col-md-2">
158          <button type="submit" id="formSubmitButton" class="footer-btn" onclick="footerSendmailValidation(event);">Submit </button>
159          </div>
160           </div>
161        </form>
162      </div>
163        </div>
164        <div class="col-lg-1">
165        </div>
166          <div class="col-lg-4 col-md-12 footer-contact text-center text-md-start">
167          <div class="footer-right">
168          <div class="footer-circle">
169          <div class="circle__inner">
170            <h4 class="mb-0">Office Hours</h4>
171            <div id="officetime-container">
172      <ul class="office-hours">
173        <li class="officetime-item">Monday<span>8 AM–6 PM</span></li>
174        <li class="officetime-item">Tuesday<span>8 AM–6 PM</span></li>
175        <li class="officetime-item">Wednesday<span>8 AM–6 PM</span></li>
176        <li class="officetime-item">Thursday<span>8 AM–6 PM</span></li>
177        <li class="officetime-item">Friday<span>8 AM–6 PM</span></li>
178      </ul>
179      <div class="text-center">
180            <p style="color:#253858;font-weight:600"><i class="far fa-square-phone pe-2 fa-lg"></i>Phone: (978) 632-1662</p>
181          </div>
182  </div>
183          </div>
184        </div>
185          </div>
186        </div>
187      </div>
188    </div>
189  </div>
190  <div class="footer-middle position-relative">
191  <div class="container container-sh">
192  <div class="row">
193    <div class="col-lg-2 d-none d-sm-block d-md-none d-lg-block">
194      <div class="footer-menucontact">
195      <a href="index.html" class="logo">
196      <img src="assets/img/baystate_logo_white.png" alt="Baystate Interpreters" title="Baystate Interpreters" style="width:160px;margin-bottom:20px">
197    </a>
198        <p class="mb-2 text-white">Connect with us</p>
199        <div class="social-links justify-content-start  mb-3 mb-lg-0">
200          <a href="https://www.linkedin.com/company/baystate-interpreters/" target="_blank" class="linkedin"><i class="bi bi-linkedin fa-lg"></i></a>
201          <a href="https://www.facebook.com/profile.php?id=100078723713361" target="_blank" class="twitter"><i class="fa-brands fa-facebook-square fa-lg"></i></a>
202      </div>
203      </div>
204    </div>
205    <div class="col-lg-10 col-xs-12">
206      <div class="row">
207        <div class="col-md-3 col-sm-3">
208          <div class="footer-mlink">
209            <h3>Services</h3>
210            <a href="onsite_interpreter.html">Onsite Interpretation</a>
211            <a href="interpreter.html">Written Translation</a>
212            <a href="telephone-interpretation.html">Over-the-Phone Interpretation</a>
213            <a href="virtual-interpretation.html">Virtual Interpretation</a>
214            <a href="additional_services.html">Additional Services</a>
215          </div>
216        </div>
217
218        <div class="col-md-3 col-sm-3">
219          <div class="footer-mlink">
220            <h3>About Us</h3>
221            <a href="about-us.html">Overview</a>
222            <a href="why-choose.html">Why Baystate</a>
223            <a href="industries.html">Industries</a>
224            <a href="#">Integrations</a>
225          </div>
226        </div>
227
228        <div class="col-md-3 col-sm-3">
229          <div class="footer-mlink">
230            <h3>Resources</h3>
231            <a href="about-us.html">About Us</a>
232            <a href="language.html">Language List</a>
233            <a href="https://vendor.totallanguage.com/baystateInterpreters/vendor" target="_blank">Baystate Vendor Form</a>
234          </div>
235        </div>
236        <div class="col-md-3 col-sm-3">
237          <div class="footer-menucontact">
238            <h3>Contact Us</h3>
239            <p>Baystate Interpreters</p>
240            <p>205 School St 4th FLoor</p>
241            <p>Gardner, MA 01440</p>
242            <p>Phone: (978) 632-1662</p>
243            <p><a href="mailto:[email protected]" style="color:#fff; font-size:15px;">[email protected]</a></p>
244          </div>
245        </div>
246      </div>
247    </div>
248  </div>
249  </div>
250
251  </div>
252  <div class="footer-bottom">
253  <div class="container container-sh">
254  <div class="row py-4">
255  <div class="col-md-5 d-none d-sm-block">
256  <div class="footer-link">
257    <a href="privacy_policy.html" class="">Privacy Policy</a>
258    <a href="terms_condition.html" class="">Terms & Conditions</a>
259  </div>
260  </div>
261  <div class="col-md-7">
262    <div class="copyright">
263    Copyright | &copy; ${new Date().getFullYear()} <strong><span>Baystate Interpreters</span></strong> | All Rights Reserved
264    </div>
265  </div>
266  </div>
267  </div>
268  </div>
vendor: 82 bytes, lines 268-269
268
269   <script src="https://www.google.com/recaptcha/api.js" async defer></script>
270</script>
271  `;
272
273
274{
275  /* <div class="col-md-3">
276<div class="social-links  mb-3 mb-lg-0">
277<a href="#" class="linkedin"><i class="bi bi-linkedin fa-lg"></i></a>
278  <a href="#" class="twitter"><i class="fa-brands fa-facebook-square fa-lg"></i></a>
279  <a href="#" class="twitter"><i class="bi bi-twitter fa-lg"></i></a>
280  <a href="#" class="facebook"><i class="bi bi-youtube fa-lg"></i></a>
281</div>
282</div> */
283}

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.