Move addons js function out of footer.html
Signed-off-by: Thomas Dietrich <Thomas.Dietrich@tu-ilmenau.de>pull/532/merge
parent
f0487deb5d
commit
3d207ca37c
|
@ -23,32 +23,5 @@
|
||||||
<script src="{{base}}/js/materialize.min.js"></script>
|
<script src="{{base}}/js/materialize.min.js"></script>
|
||||||
<script src="{{base}}/js/init.js"></script>
|
<script src="{{base}}/js/init.js"></script>
|
||||||
<script src="{{base}}/js/functions.js"></script>
|
<script src="{{base}}/js/functions.js"></script>
|
||||||
|
|
||||||
<script>
|
|
||||||
$(document).ready(function () {
|
|
||||||
|
|
||||||
$('#oh2-checkbox').change(function () {
|
|
||||||
if (this.checked) $('.since-2x').show('slow');
|
|
||||||
else $('.source-oh2').hide('slow');
|
|
||||||
});
|
|
||||||
|
|
||||||
$('#oh1-checkbox').change(function () {
|
|
||||||
if (this.checked) $('.since-1x').show('slow');
|
|
||||||
else $('.source-oh1').hide('slow');
|
|
||||||
});
|
|
||||||
|
|
||||||
$('#legacy-checkbox').change(function () {
|
|
||||||
if (this.checked) $('.install-legacy').show('slow');
|
|
||||||
else $('.install-legacy').hide('slow');
|
|
||||||
});
|
|
||||||
|
|
||||||
$('#manual-checkbox').change(function () {
|
|
||||||
if (this.checked) $('.install-manual').show('slow');
|
|
||||||
else $('.install-manual').hide('slow');
|
|
||||||
});
|
|
||||||
|
|
||||||
});
|
|
||||||
</script>
|
|
||||||
|
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
|
|
@ -1,3 +1,26 @@
|
||||||
|
$(document).ready(function () {
|
||||||
|
|
||||||
|
$('#oh2-checkbox').change(function () {
|
||||||
|
if (this.checked) $('.since-2x').show('slow');
|
||||||
|
else $('.source-oh2').hide('slow');
|
||||||
|
});
|
||||||
|
|
||||||
|
$('#oh1-checkbox').change(function () {
|
||||||
|
if (this.checked) $('.since-1x').show('slow');
|
||||||
|
else $('.source-oh1').hide('slow');
|
||||||
|
});
|
||||||
|
|
||||||
|
$('#legacy-checkbox').change(function () {
|
||||||
|
if (this.checked) $('.install-legacy').show('slow');
|
||||||
|
else $('.install-legacy').hide('slow');
|
||||||
|
});
|
||||||
|
|
||||||
|
$('#manual-checkbox').change(function () {
|
||||||
|
if (this.checked) $('.install-manual').show('slow');
|
||||||
|
else $('.install-manual').hide('slow');
|
||||||
|
});
|
||||||
|
});
|
||||||
|
|
||||||
function printPage() {
|
function printPage() {
|
||||||
|
|
||||||
var allContent = document.getElementsByClassName('content');
|
var allContent = document.getElementsByClassName('content');
|
||||||
|
@ -19,4 +42,3 @@ function printPage() {
|
||||||
}
|
}
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue