Skip to content

Commit

Permalink
Removing the jQuery CDN from the virtual gateway html to function whe…
Browse files Browse the repository at this point in the history
…n offline (#121)

Removing the jQuery CDN from the virtual gateway html to function when offline (#121)
  • Loading branch information
mrmashal authored Oct 19, 2020
1 parent 18df367 commit 0d163d3
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 9 deletions.
5 changes: 2 additions & 3 deletions src/Parbad/Parbad.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<PropertyGroup>
<TargetFrameworks>netstandard2.0;netcoreapp3.0</TargetFrameworks>
<LangVersion>latest</LangVersion>
<VersionPrefix>3.5.1</VersionPrefix>
<VersionPrefix>3.5.2</VersionPrefix>
<Authors>Parbad Sina Soltani</Authors>
<Description>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.
Expand All @@ -21,8 +21,7 @@ More information: https://github.com/Sina-Soltani/Parbad
<PackageRequireLicenseAcceptance>true</PackageRequireLicenseAcceptance>
<PackageTags>parbad Payment Gateway virtual virtual-gateway Bank Iran Shetab IranKish Mellat Melli Sadad Parsian Pasargad Saman Asan-Pardakht پرداخت درگاه بانک ایران شتاب ایران-کیش ملت ملی سداد پارسیان پاسارگاد سامان آسان-پرداخت</PackageTags>
<GenerateDocumentationFile>true</GenerateDocumentationFile>
<PackageReleaseNotes>All messages can be configured now.
Logging can be enabled or disabled by you.</PackageReleaseNotes>
<PackageReleaseNotes>jQuery CDN is removed from the Virtual Gateway html to work without internet.</PackageReleaseNotes>
</PropertyGroup>

<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|AnyCPU'">
Expand Down
10 changes: 4 additions & 6 deletions src/Parbad/Properties/Resources.resx
Original file line number Diff line number Diff line change
Expand Up @@ -187,12 +187,11 @@
&lt;div class="col-sm-2"&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;script src="https://code.jquery.com/jquery-3.3.1.slim.min.js" integrity="sha384-q8i/X+965DzO0rT7abK41JStQIAqVgRVzpbzo5smXKp4YfRvH+8abtTE1Pi6jizo" crossorigin="anonymous"&gt;&lt;/script&gt;
&lt;script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.7/umd/popper.min.js" integrity="sha384-UO2eT0CpHqdSJQ6hJty5KVphtPhzWj9WO1clHTMGa3JDZwrnQq4sF86dIHNDz0W1" crossorigin="anonymous"&gt;&lt;/script&gt;
&lt;script src="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/js/bootstrap.min.js" integrity="sha384-JjSmVgyd0p3pXB1rRibZUAYoIIy6OrQ6VrjIEaFf/nJGzIxFDsf4x0xIM+B07jRM" crossorigin="anonymous"&gt;&lt;/script&gt;
&lt;script type="text/javascript"&gt;
function pay() {
$('#IsPaid').val(true);
document.getElementById('IsPaid').value = 'true';
return true;
}
&lt;/script&gt;
Expand Down Expand Up @@ -247,7 +246,7 @@
&lt;br/&gt;
&lt;div class="alert alert-primary"&gt;
&lt;i class="glyphicon glyphicon-info-sign"&gt;&lt;/i&gt;
Page will redirects automatically in &lt;strong id="counter"&gt;5&lt;/strong&gt; second(s)...
Page will redirect automatically in &lt;strong id="counter"&gt;5&lt;/strong&gt; second(s)...
&lt;/div&gt;
&lt;/div&gt;
&lt;div class="card-footer text-center"&gt;
Expand All @@ -260,21 +259,20 @@
&lt;div class="col-sm-2"&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;script src="https://code.jquery.com/jquery-3.3.1.slim.min.js" integrity="sha384-q8i/X+965DzO0rT7abK41JStQIAqVgRVzpbzo5smXKp4YfRvH+8abtTE1Pi6jizo" crossorigin="anonymous"&gt;&lt;/script&gt;
&lt;script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.7/umd/popper.min.js" integrity="sha384-UO2eT0CpHqdSJQ6hJty5KVphtPhzWj9WO1clHTMGa3JDZwrnQq4sF86dIHNDz0W1" crossorigin="anonymous"&gt;&lt;/script&gt;
&lt;script src="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/js/bootstrap.min.js" integrity="sha384-JjSmVgyd0p3pXB1rRibZUAYoIIy6OrQ6VrjIEaFf/nJGzIxFDsf4x0xIM+B07jRM" crossorigin="anonymous"&gt;&lt;/script&gt;
&lt;script type="text/javascript"&gt;
var timer;
var seconds = 5;

function submitForm() {
$("#paymentForm").submit();
document.getElementById('paymentForm').submit();
}

function countDown() {
seconds--;

$("#counter").text(seconds);
document.getElementById('counter').innerHTML = seconds;

if (seconds &lt;= 0) {
clearInterval(timer);
Expand Down

0 comments on commit 0d163d3

Please sign in to comment.