mirror of
https://github.com/ACSPRI/queXS
synced 2024-04-02 12:12:16 +00:00
Updated alternate interface to look nicer based on changes by Zimi
This commit is contained in:
26
js/headerexpandmanual_interface2.js
Normal file
26
js/headerexpandmanual_interface2.js
Normal file
@@ -0,0 +1,26 @@
|
||||
//Apply to all items of class header
|
||||
$(document).ready(function(){
|
||||
$("#headerexpandimage").click(headertogglemanual);
|
||||
|
||||
});
|
||||
|
||||
function headerforcecontract()
|
||||
{
|
||||
$("#headerexpandimage").attr('src',"./images/arrow-down-2.jpg");
|
||||
headercontract();
|
||||
}
|
||||
|
||||
function headertogglemanual()
|
||||
{
|
||||
if ($("#headerexpandimage").attr('src') == './images/arrow-up-2.jpg')
|
||||
{
|
||||
$("#headerexpandimage").attr('src',"./images/arrow-down-2.jpg");
|
||||
headercontract();
|
||||
}
|
||||
else
|
||||
{
|
||||
$("#headerexpandimage").attr('src',"./images/arrow-up-2.jpg");
|
||||
headerexpand();
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user