From 0d163d33c6bd95905e675826661e2023a0417ed6 Mon Sep 17 00:00:00 2001 From: MohamadReza Mash'al Date: Mon, 19 Oct 2020 19:12:10 +0330 Subject: [PATCH] Removing the jQuery CDN from the virtual gateway html to function when offline (#121) Removing the jQuery CDN from the virtual gateway html to function when offline (#121) --- src/Parbad/Parbad.csproj | 5 ++--- src/Parbad/Properties/Resources.resx | 10 ++++------ 2 files changed, 6 insertions(+), 9 deletions(-) diff --git a/src/Parbad/Parbad.csproj b/src/Parbad/Parbad.csproj index 3b994cdd..f6fa9b25 100644 --- a/src/Parbad/Parbad.csproj +++ b/src/Parbad/Parbad.csproj @@ -3,7 +3,7 @@ netstandard2.0;netcoreapp3.0 latest - 3.5.1 + 3.5.2 Parbad Sina Soltani Parbad is a free, open-source, integrated and extensible library which connects your web applications to online payment gateways. Gateways can be added or developed by you. The Virtual Gateway also simulates the online payment process, which helps the application development. @@ -21,8 +21,7 @@ More information: https://github.com/Sina-Soltani/Parbad true parbad Payment Gateway virtual virtual-gateway Bank Iran Shetab IranKish Mellat Melli Sadad Parsian Pasargad Saman Asan-Pardakht پرداخت درگاه بانک ایران شتاب ایران-کیش ملت ملی سداد پارسیان پاسارگاد سامان آسان-پرداخت true - All messages can be configured now. -Logging can be enabled or disabled by you. + jQuery CDN is removed from the Virtual Gateway html to work without internet. diff --git a/src/Parbad/Properties/Resources.resx b/src/Parbad/Properties/Resources.resx index d4432a7b..8a7a6f27 100644 --- a/src/Parbad/Properties/Resources.resx +++ b/src/Parbad/Properties/Resources.resx @@ -187,12 +187,11 @@ <div class="col-sm-2"></div> </div> </div> - <script src="https://code.jquery.com/jquery-3.3.1.slim.min.js" integrity="sha384-q8i/X+965DzO0rT7abK41JStQIAqVgRVzpbzo5smXKp4YfRvH+8abtTE1Pi6jizo" crossorigin="anonymous"></script> <script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.7/umd/popper.min.js" integrity="sha384-UO2eT0CpHqdSJQ6hJty5KVphtPhzWj9WO1clHTMGa3JDZwrnQq4sF86dIHNDz0W1" crossorigin="anonymous"></script> <script src="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/js/bootstrap.min.js" integrity="sha384-JjSmVgyd0p3pXB1rRibZUAYoIIy6OrQ6VrjIEaFf/nJGzIxFDsf4x0xIM+B07jRM" crossorigin="anonymous"></script> <script type="text/javascript"> function pay() { - $('#IsPaid').val(true); + document.getElementById('IsPaid').value = 'true'; return true; } </script> @@ -247,7 +246,7 @@ <br/> <div class="alert alert-primary"> <i class="glyphicon glyphicon-info-sign"></i> - Page will redirects automatically in <strong id="counter">5</strong> second(s)... + Page will redirect automatically in <strong id="counter">5</strong> second(s)... </div> </div> <div class="card-footer text-center"> @@ -260,7 +259,6 @@ <div class="col-sm-2"></div> </div> </div> - <script src="https://code.jquery.com/jquery-3.3.1.slim.min.js" integrity="sha384-q8i/X+965DzO0rT7abK41JStQIAqVgRVzpbzo5smXKp4YfRvH+8abtTE1Pi6jizo" crossorigin="anonymous"></script> <script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.7/umd/popper.min.js" integrity="sha384-UO2eT0CpHqdSJQ6hJty5KVphtPhzWj9WO1clHTMGa3JDZwrnQq4sF86dIHNDz0W1" crossorigin="anonymous"></script> <script src="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/js/bootstrap.min.js" integrity="sha384-JjSmVgyd0p3pXB1rRibZUAYoIIy6OrQ6VrjIEaFf/nJGzIxFDsf4x0xIM+B07jRM" crossorigin="anonymous"></script> <script type="text/javascript"> @@ -268,13 +266,13 @@ var seconds = 5; function submitForm() { - $("#paymentForm").submit(); + document.getElementById('paymentForm').submit(); } function countDown() { seconds--; - $("#counter").text(seconds); + document.getElementById('counter').innerHTML = seconds; if (seconds <= 0) { clearInterval(timer);