mirror of
https://github.com/postgres/pgweb.git
synced 2025-08-01 15:54:53 +00:00
Move debian/ubuntu downloads javascript into main.js
This commit is contained in:
@ -3,3 +3,12 @@ $(document).ready(function() {
|
|||||||
$(".navbar").toggleClass("compressed", $(window).scrollTop() >= 20);
|
$(".navbar").toggleClass("compressed", $(window).scrollTop() >= 20);
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Debian/Ubuntu download dropdowns
|
||||||
|
*/
|
||||||
|
function updateDebianSeries(select) {
|
||||||
|
var deb = document.getElementById('series-deb');
|
||||||
|
deb.innerHTML = select.value;
|
||||||
|
}
|
||||||
|
@ -11,15 +11,6 @@ The PostgreSQL project also maintains an <a href="#apt">apt repository</a> with
|
|||||||
of PostgreSQL available.
|
of PostgreSQL available.
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
<script type="text/javascript">
|
|
||||||
<!--
|
|
||||||
function updateSeries(select) {
|
|
||||||
var deb = document.getElementById('series-deb');
|
|
||||||
deb.innerHTML = select.value;
|
|
||||||
}
|
|
||||||
-->
|
|
||||||
</script>
|
|
||||||
|
|
||||||
<a name="apt"></a>
|
<a name="apt"></a>
|
||||||
<h2>PostgreSQL Apt Repository</h2>
|
<h2>PostgreSQL Apt Repository</h2>
|
||||||
<p>
|
<p>
|
||||||
@ -49,7 +40,7 @@ To use the apt repository, follow these steps:
|
|||||||
</p>
|
</p>
|
||||||
<ol>
|
<ol>
|
||||||
<li>
|
<li>
|
||||||
<select id="field.series" name="field.series" class="custom-select" onchange='updateSeries(this);'>
|
<select id="field.series" name="field.series" class="custom-select" onchange='updateDebianSeries(this);'>
|
||||||
<option selected="selected" value="YOUR_DEBIAN_VERSION_HERE">Choose your Debian version</option>
|
<option selected="selected" value="YOUR_DEBIAN_VERSION_HERE">Choose your Debian version</option>
|
||||||
<option value="stretch">Stretch (9.x)</option>
|
<option value="stretch">Stretch (9.x)</option>
|
||||||
<option value="jessie">Jessie (8.x)</option>
|
<option value="jessie">Jessie (8.x)</option>
|
||||||
|
@ -11,15 +11,6 @@ versions of PostgreSQL are available through the PostgreSQL apt
|
|||||||
repository.
|
repository.
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
<script type="text/javascript">
|
|
||||||
<!--
|
|
||||||
function updateSeries(select) {
|
|
||||||
var deb = document.getElementById('series-deb');
|
|
||||||
deb.innerHTML = select.value;
|
|
||||||
}
|
|
||||||
-->
|
|
||||||
</script>
|
|
||||||
|
|
||||||
<h2>PostgreSQL Apt Repository</h2>
|
<h2>PostgreSQL Apt Repository</h2>
|
||||||
<p>
|
<p>
|
||||||
If the version included in your version of Ubuntu is not the one you want,
|
If the version included in your version of Ubuntu is not the one you want,
|
||||||
@ -50,7 +41,7 @@ To use the apt repository, follow these steps:
|
|||||||
</p>
|
</p>
|
||||||
<ul>
|
<ul>
|
||||||
<li>
|
<li>
|
||||||
<select id="field.series" name="field.series" class="custom-select" onchange='updateSeries(this);'>
|
<select id="field.series" name="field.series" class="custom-select" onchange='updateDebianSeries(this);'>
|
||||||
<option selected="selected" value="YOUR_UBUNTU_VERSION_HERE">Choose your Ubuntu version</option>
|
<option selected="selected" value="YOUR_UBUNTU_VERSION_HERE">Choose your Ubuntu version</option>
|
||||||
<option value="bionic">Bionic (18.04)</option>
|
<option value="bionic">Bionic (18.04)</option>
|
||||||
<option value="xenial">Xenial (16.04)</option>
|
<option value="xenial">Xenial (16.04)</option>
|
||||||
|
Reference in New Issue
Block a user