• Hello,
    can you tell me where to add the following script. In my previous template I had it installed in top.php and it worked perfectly. I have tried installing it in head.php, immediately before </head> but it isn’t working.

    Thanks………

    <script type=’text/javascript’>
    // updatepage();

    $(document).ready(function() {

    $(‘#btnStressTestSubmit’).click(function() {

    var totalChecked=$(‘[name=”chkChoice”]:checked’).length;

    if(totalChecked<=7){
    ShowResults(1);
    }
    if(totalChecked>=8 && totalChecked<=14){
    ShowResults(2);
    }
    if(totalChecked>=15 && totalChecked<=21){
    ShowResults(3);
    }
    if(totalChecked>=22){
    ShowResults(4);
    }
    });

    function ShowResults(resultPanelNumber){
    $(‘#questionPanel’).hide();
    $(document).scrollTop(220);
    $(‘#result_’+resultPanelNumber).show();
    }
    });

    </script>

Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Where to add script for Java in Graphene template’ is closed to new replies.