Move addons js function out of footer.html

Signed-off-by: Thomas Dietrich <Thomas.Dietrich@tu-ilmenau.de>
pull/532/merge
Thomas Dietrich 2017-09-24 16:39:05 +02:00 committed by Kai Kreuzer
parent f0487deb5d
commit 3d207ca37c
2 changed files with 23 additions and 28 deletions

View File

@ -23,32 +23,5 @@
<script src="{{base}}/js/materialize.min.js"></script>
<script src="{{base}}/js/init.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>
</html>

View File

@ -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() {
var allContent = document.getElementsByClassName('content');
@ -19,4 +42,3 @@ function printPage() {
}
return false;
}