Alert Messages : fail email means give me: Could not send an email! Please try again later, success_email means give me meeage : We have sent you an email. Please check your inbox. If you cannot view it in your primary inbox, please check your Spam or Junk folder.
Browse files- index.html +18 -28
index.html
CHANGED
|
@@ -11,8 +11,8 @@
|
|
| 11 |
|
| 12 |
<main id="main" class="w-full">
|
| 13 |
<!-- Alert Messages -->
|
| 14 |
-
<notification-component id="fail_email" class="
|
| 15 |
-
<notification-component id="success_email" class="
|
| 16 |
<!---Twitter Card data -->
|
| 17 |
<meta name="twitter:card" content="summary_large_image">
|
| 18 |
<meta name="twitter:title" content="Magento Connector with Dynamics 365 Business Central">
|
|
@@ -112,10 +112,9 @@
|
|
| 112 |
|
| 113 |
/* Dropdown: show on hover and keyboard focus */
|
| 114 |
.nav-group:focus-within .nav-panel, .nav-group:hover .nav-panel{ opacity:1; visibility:visible; transform:translateY(0) }
|
| 115 |
-
|
| 116 |
-
|
| 117 |
-
|
| 118 |
-
<!-- Google tag (gtag.js) -->
|
| 119 |
<script async src="https://www.googletagmanager.com/gtag/js?id=G-GH6WBJWXS8"></script>
|
| 120 |
|
| 121 |
<script type="application/ld+json">
|
|
@@ -149,9 +148,10 @@
|
|
| 149 |
"image": "https://huggingface.co/spaces/vlcsolutions/vlc-e-commerce-powerbridge/resolve/main/images/magento%20page.png"
|
| 150 |
}
|
| 151 |
</script>
|
|
|
|
| 152 |
</style>
|
| 153 |
-
<script src="components/notification.js"></script>
|
| 154 |
</head>
|
|
|
|
| 155 |
<body class="font-sans antialiased bg-white">
|
| 156 |
<a href="#main" class="sr-only focus:not-sr-only focus:fixed focus:top-2 focus:left-2 focus:bg-white focus:text-[var(--vlc-navy)] focus:px-3 focus:py-2 focus:rounded">Skip to content</a>
|
| 157 |
|
|
@@ -437,15 +437,11 @@
|
|
| 437 |
return false;
|
| 438 |
});
|
| 439 |
});
|
| 440 |
-
|
| 441 |
$(document).ready(function(){
|
| 442 |
-
|
| 443 |
-
function getUrlVars()
|
| 444 |
-
{
|
| 445 |
let vars = [], hash;
|
| 446 |
let hashes = window.location.href.slice(window.location.href.indexOf('?') + 1).split('&');
|
| 447 |
-
for(let i = 0; i < hashes.length; i++)
|
| 448 |
-
{
|
| 449 |
hash = hashes[i].split('=');
|
| 450 |
vars.push(hash[0]);
|
| 451 |
vars[hash[0]] = hash[1];
|
|
@@ -453,22 +449,16 @@
|
|
| 453 |
return vars;
|
| 454 |
}
|
| 455 |
|
| 456 |
-
|
| 457 |
-
|
| 458 |
-
|
| 459 |
-
|
| 460 |
-
|
| 461 |
-
|
| 462 |
-
|
| 463 |
-
notification.show('success', 'We have sent you an email. Please check your inbox. If you cannot view it in your primary inbox, please check your Spam or Junk folder.');
|
| 464 |
-
} else {
|
| 465 |
-
notification.show('error', 'Could not send an email! Please try again later.');
|
| 466 |
}
|
| 467 |
-
|
| 468 |
-
|
| 469 |
-
});
|
| 470 |
-
|
| 471 |
-
function removeQuery() {
|
| 472 |
|
| 473 |
let url = window.location.href;
|
| 474 |
|
|
|
|
| 11 |
|
| 12 |
<main id="main" class="w-full">
|
| 13 |
<!-- Alert Messages -->
|
| 14 |
+
<notification-component id="fail_email" class="error"></notification-component>
|
| 15 |
+
<notification-component id="success_email" class="success"></notification-component>
|
| 16 |
<!---Twitter Card data -->
|
| 17 |
<meta name="twitter:card" content="summary_large_image">
|
| 18 |
<meta name="twitter:title" content="Magento Connector with Dynamics 365 Business Central">
|
|
|
|
| 112 |
|
| 113 |
/* Dropdown: show on hover and keyboard focus */
|
| 114 |
.nav-group:focus-within .nav-panel, .nav-group:hover .nav-panel{ opacity:1; visibility:visible; transform:translateY(0) }
|
| 115 |
+
<script src="components/notification.js"></script>
|
| 116 |
+
<script src="https://analytics.ahrefs.com/analytics.js" data-key="jcrS4NwPF1CB1Z4lNmgDKQ" async></script>
|
| 117 |
+
<!-- Google tag (gtag.js) -->
|
|
|
|
| 118 |
<script async src="https://www.googletagmanager.com/gtag/js?id=G-GH6WBJWXS8"></script>
|
| 119 |
|
| 120 |
<script type="application/ld+json">
|
|
|
|
| 148 |
"image": "https://huggingface.co/spaces/vlcsolutions/vlc-e-commerce-powerbridge/resolve/main/images/magento%20page.png"
|
| 149 |
}
|
| 150 |
</script>
|
| 151 |
+
|
| 152 |
</style>
|
|
|
|
| 153 |
</head>
|
| 154 |
+
|
| 155 |
<body class="font-sans antialiased bg-white">
|
| 156 |
<a href="#main" class="sr-only focus:not-sr-only focus:fixed focus:top-2 focus:left-2 focus:bg-white focus:text-[var(--vlc-navy)] focus:px-3 focus:py-2 focus:rounded">Skip to content</a>
|
| 157 |
|
|
|
|
| 437 |
return false;
|
| 438 |
});
|
| 439 |
});
|
|
|
|
| 440 |
$(document).ready(function(){
|
| 441 |
+
function getUrlVars() {
|
|
|
|
|
|
|
| 442 |
let vars = [], hash;
|
| 443 |
let hashes = window.location.href.slice(window.location.href.indexOf('?') + 1).split('&');
|
| 444 |
+
for(let i = 0; i < hashes.length; i++) {
|
|
|
|
| 445 |
hash = hashes[i].split('=');
|
| 446 |
vars.push(hash[0]);
|
| 447 |
vars[hash[0]] = hash[1];
|
|
|
|
| 449 |
return vars;
|
| 450 |
}
|
| 451 |
|
| 452 |
+
let result = getUrlVars()["result"];
|
| 453 |
+
if(typeof(result) != 'undefined') {
|
| 454 |
+
if(result.includes('success')) {
|
| 455 |
+
document.getElementById('success_email').show('success');
|
| 456 |
+
} else {
|
| 457 |
+
document.getElementById('fail_email').show('error');
|
| 458 |
+
}
|
|
|
|
|
|
|
|
|
|
| 459 |
}
|
| 460 |
+
});
|
| 461 |
+
function removeQuery() {
|
|
|
|
|
|
|
|
|
|
| 462 |
|
| 463 |
let url = window.location.href;
|
| 464 |
|