vlcsolutions commited on
Commit
63e765f
·
verified ·
1 Parent(s): 54d07c5

Manual changes saved

Browse files
Files changed (1) hide show
  1. index.html +231 -0
index.html CHANGED
@@ -172,6 +172,237 @@
172
  </script>
173
 
174
  </style>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
175
  </head>
176
 
177
  <body class="font-sans antialiased bg-white">
 
172
  </script>
173
 
174
  </style>
175
+ <script src="./js/google_js_api/jquery.min.js"></script>
176
+
177
+ <!-- <script src="./js/custom.js"></script>-->
178
+
179
+ <script type="application/javascript">
180
+
181
+
182
+ $(document).ready(function(){
183
+
184
+ let domains = [
185
+ /* Default domains included */
186
+ "mdkm.com","1.com","2.com","3.com","4.com","5.com","6.com","7.com","8.com","9.com","10.com", "skincareproductoffers.com", "aol.com", "att.net", "comcast.net", "facebook.com", "gmail.com", "gmx.com", "googlemail.com",
187
+ "google.com", "someemail.com", "hotmail.com", "hotmail.co.uk", "mac.com", "me.com", "mail.com", "msn.com",
188
+ "live.com", "sbcglobal.net", "verizon.net", "yahoo.com", "yahoo.co.uk","aim.com", "example.com",
189
+
190
+ /* Other global domains */
191
+ "email.com", "fastmail.fm", "games.com" /* AOL */, "gmx.net", "hush.com", "hushmail.com", "icloud.com",
192
+ "iname.com", "inbox.com", "lavabit.com", "love.com" /* AOL */, "outlook.com", "pobox.com", "protonmail.com",
193
+ "rocketmail.com" /* Yahoo */, "safe-mail.net", "wow.com" /* AOL */, "ygm.com" /* AOL */,
194
+ "ymail.com" /* Yahoo */, "zoho.com", "yandex.com",
195
+
196
+ /* United States ISP domains */
197
+ "bellsouth.net", "charter.net", "cox.net", "earthlink.net", "juno.com",
198
+
199
+ /* British ISP domains */
200
+ "btinternet.com", "virginmedia.com", "blueyonder.co.uk", "freeserve.co.uk", "live.co.uk",
201
+ "ntlworld.com", "o2.co.uk", "orange.net", "sky.com", "talktalk.co.uk", "tiscali.co.uk",
202
+ "virgin.net", "wanadoo.co.uk", "bt.com",
203
+
204
+ /* Domains used in Asia */
205
+ "sina.com", "sina.cn", "qq.com", "naver.com", "hanmail.net", "daum.net", "nate.com", "yahoo.co.jp", "yahoo.co.kr", "yahoo.co.id", "yahoo.co.in", "yahoo.com.sg", "yahoo.com.ph", "163.com", "126.com", "aliyun.com", "foxmail.com",
206
+
207
+ /* French ISP domains */
208
+ "hotmail.fr", "live.fr", "laposte.net", "yahoo.fr", "wanadoo.fr", "orange.fr", "gmx.fr", "sfr.fr", "neuf.fr", "free.fr",
209
+
210
+ /* German ISP domains */
211
+ "gmx.de", "hotmail.de", "live.de", "online.de", "t-online.de" /* T-Mobile */, "web.de", "yahoo.de",
212
+
213
+ /* Italian ISP domains */
214
+ "libero.it", "virgilio.it", "hotmail.it", "aol.it", "tiscali.it", "alice.it", "live.it", "yahoo.it", "email.it", "tin.it", "poste.it", "teletu.it",
215
+
216
+ /* Russian ISP domains */
217
+ "mail.ru", "rambler.ru", "yandex.ru", "ya.ru", "list.ru",
218
+
219
+ /* Belgian ISP domains */
220
+ "hotmail.be", "live.be", "skynet.be", "voo.be", "tvcablenet.be", "telenet.be",
221
+
222
+ /* Argentinian ISP domains */
223
+ "hotmail.com.ar", "live.com.ar", "yahoo.com.ar", "fibertel.com.ar", "speedy.com.ar", "arnet.com.ar",
224
+
225
+ /* Domains used in Mexico */
226
+ "yahoo.com.mx", "live.com.mx", "hotmail.es", "hotmail.com.mx", "prodigy.net.mx",
227
+
228
+ /* Domains used in Brazil */
229
+ "yahoo.com.br", "hotmail.com.br", "outlook.com.br", "uol.com.br", "bol.com.br", "terra.com.br", "ig.com.br", "itelefonica.com.br", "r7.com", "zipmail.com.br", "globo.com", "globomail.com", "oi.com.br"
230
+ ];
231
+
232
+ function isBusinessEmail(domainNameP){
233
+ var i;
234
+ for (i = 0; i < domains.length; i++) {
235
+ //console.log(domains[i] + ' ' + domainNameP);
236
+ if(domains[i] === domainNameP)
237
+ {
238
+ $('#error').show();
239
+ $('#magento_connector').prop('disabled', true);
240
+ return;
241
+ }else {
242
+ $('#error').hide();
243
+ $('#magento_connector').prop('disabled', false);
244
+ }
245
+ }
246
+ }
247
+
248
+ $('#magento_connector').prop('disabled', true);
249
+
250
+ $('#customer_email').keyup(function() {
251
+ var inputVal = $(this).val();
252
+ var emailReg = /^([A-Za-z0-9_\-\.])+\@([A-Za-z0-9_\-\.])+\.([A-Za-z]{2,4})$/;///^([\w-\.]+@([\w-]+\.)+[\w-]{2,4})?$/;
253
+ if (emailReg.test(inputVal)) {
254
+ $('#error').hide();
255
+ $('#magento_connector').prop('disabled', false);
256
+ }else{
257
+ $('#error').show();
258
+ $('#magento_connector').prop('disabled', true);
259
+ return;
260
+ }
261
+
262
+ var aSplit = inputVal.split("@");
263
+ isBusinessEmail(aSplit[1]);
264
+
265
+ });
266
+
267
+
268
+ });
269
+
270
+
271
+ </script>
272
+
273
+ <script type="application/javascript">
274
+
275
+
276
+ $(document).ready(function() {
277
+ $(window).scroll(function() {
278
+ if ($(this).scrollTop() > 50) {
279
+ $('#toTopBtn').fadeIn();
280
+ } else {
281
+ $('#toTopBtn').fadeOut();
282
+ }
283
+ });
284
+
285
+ $('#toTopBtn').click(function() {
286
+ $("html, body").animate({
287
+ scrollTop: 0
288
+ }, 1000);
289
+ return false;
290
+ });
291
+ });
292
+
293
+ $(document).ready(function(){
294
+
295
+ function getUrlVars()
296
+ {
297
+ let vars = [], hash;
298
+ let hashes = window.location.href.slice(window.location.href.indexOf('?') + 1).split('&');
299
+ for(let i = 0; i < hashes.length; i++)
300
+ {
301
+ hash = hashes[i].split('=');
302
+ vars.push(hash[0]);
303
+ vars[hash[0]] = hash[1];
304
+ }
305
+ return vars;
306
+ }
307
+
308
+ $('#fail_email').hide();
309
+ $('#success_email').hide();
310
+
311
+ let result = getUrlVars()["result"];
312
+
313
+ if(typeof(result) != 'undefined'){
314
+
315
+ if(result.includes('success'))
316
+ {
317
+ $('#success_email').show();
318
+ $('#fail_email').hide();
319
+ }
320
+ else
321
+ {
322
+ $('#fail_email').show();
323
+ $('#success_email').hide();
324
+ }
325
+
326
+ }
327
+
328
+
329
+ });
330
+
331
+ function removeQuery() {
332
+
333
+ let url = window.location.href;
334
+
335
+ let a = url.indexOf("?");
336
+ let b = url.substring(a);
337
+ let c = url.replace(b,"");
338
+ window.location.href = c;
339
+
340
+ }
341
+
342
+
343
+ </script>
344
+
345
+ <script src="https://www.google.com/recaptcha/api.js?render=6LfWu2YcAAAAAPooSewjuw82sSxhAdh657M4VvzT"></script>
346
+
347
+ <script>
348
+ grecaptcha.ready(function() {
349
+ // do request for recaptcha token
350
+ // response is promise with passed token
351
+ grecaptcha.execute('6LfWu2YcAAAAAPooSewjuw82sSxhAdh657M4VvzT', {action:'validate_captcha'})
352
+ .then(function(token) {
353
+ // add token value to form
354
+ document.getElementById('g-recaptcha-response').value = token;
355
+ });
356
+ });
357
+ </script>
358
+ <script>
359
+ document.addEventListener("DOMContentLoaded", function () {
360
+
361
+ const successAlert = document.getElementById("success_email");
362
+ const failAlert = document.getElementById("fail_email");
363
+
364
+ // Hide both initially
365
+ successAlert.classList.add("hidden");
366
+ failAlert.classList.add("hidden");
367
+
368
+ // Show based on URL query
369
+ const params = new URLSearchParams(window.location.search);
370
+ if (params.get("email") === "success") {
371
+ successAlert.classList.remove("hidden");
372
+ }
373
+ if (params.get("email") === "fail") {
374
+ failAlert.classList.remove("hidden");
375
+ }
376
+
377
+ // Close button logic
378
+ document.querySelectorAll(".close-alert").forEach(btn => {
379
+ btn.addEventListener("click", () => {
380
+ successAlert.classList.add("hidden");
381
+ failAlert.classList.add("hidden");
382
+ removeQuery();
383
+ });
384
+ });
385
+
386
+ // Feather icons render
387
+ if (window.feather) {
388
+ feather.replace();
389
+ }
390
+
391
+ // Auto-close after 5 seconds (optional)
392
+ setTimeout(() => {
393
+ successAlert.classList.add("hidden");
394
+ failAlert.classList.add("hidden");
395
+ removeQuery();
396
+ }, 5000);
397
+ });
398
+
399
+ // Remove URL query without refresh
400
+ function removeQuery() {
401
+ const url = new URL(window.location);
402
+ url.search = "";
403
+ window.history.replaceState({}, document.title, url);
404
+ }
405
+ </script>
406
  </head>
407
 
408
  <body class="font-sans antialiased bg-white">