1// Aurora Menu v1.0 2// Design and conception by Aurora Studio http://www.aurora-studio.co.uk 3// Plugin development by Invent Partners http://www.inventpartners.com 4// Copyright Invent Partners & Aurora Studio 2009 5 6var auroraMenuSpeed = 150; 7 8$(document).ready(function(){ 9 auroraInit(); 10}); 11 12function auroraInit() { 13 $.cookie('testcookie' , 'expanded', {path:'/'}) 14 var auroramenucount = 0; 15 $('.auroramenu').each(function(){ 16 var auroramenuitemcount = 0; 17 $(this).children('li').children('ul').each(function(){ 18 if($.cookie('arMenu_' + auroramenucount + '_arItem_' + auroramenuitemcount) == 1){ 19 $(this).siblings('a').attr('onClick' , 'auroraMenuItem(\'' + auroramenucount + '\' , \'' + auroramenuitemcount + '\' , \'0\'); return false;'); 20 $(this).parent().children('.aurorahide').css("display","inline"); 21 $(this).parent().children('.aurorashow').css("display","none"); 22 } else { 23 $(this).css("display","none"); 24 $(this).siblings('a').attr('onClick' , 'auroraMenuItem(\'' + auroramenucount + '\' , \'' + auroramenuitemcount + '\' , \'1\'); return false;'); 25 $(this).parent().children('.aurorahide').css("display","none"); 26 $(this).parent().children('.aurorashow').css("display","inline"); 27 } 28 auroramenuitemcount ++; 29 }); 30 auroramenucount ++; 31 }); 32} 33 34 35 36function auroraMenuItem(menu , item , show){ 37 $.cookie('arMenu_' + menu + '_arItem_' + item , show, {path:'/'}); 38 var auroramenucount = 0; 39 $('.auroramenu').each(function(){ 40 if(menu == auroramenucount){ 41 var auroramenuitemcount = 0; 42 $(this).children('li').children('ul').each(function(){ 43 if(item == auroramenuitemcount){ 44 if(show == 1){ 45 $(this).slideDown(auroraMenuSpeed); 46 //$(this).click(auroraMenuItemHide(menu , item)); 47 $(this).siblings('a').attr('onClick' , 'auroraMenuItem(\'' + menu + '\' , \'' + item + '\' , \'0\'); return false;'); 48 $(this).parent().children('.aurorahide').css("display","inline"); 49 $(this).parent().children('.aurorashow').css("display","none"); 50 51 } else { 52 $(this).slideUp(auroraMenuSpeed); 53 $(this).siblings('a').attr('onClick' , 'auroraMenuItem(\'' + menu + '\' , \'' + item + '\' , \'1\'); return false;'); 54 $(this).parent().children('.aurorahide').css("display","none"); 55 $(this).parent().children('.aurorashow').css("display","inline"); 56 57 } 58 }else{ 59 60 $(this).slideUp(auroraMenuSpeed); 61 $(this).siblings('a').attr('onClick' , 'auroraMenuItem(\'' + menu + '\' , \'' + auroramenuitemcount + '\' , \'1\'); return false;'); 62 $(this).parent().children('.aurorahide').css("display","none"); 63 $(this).parent().children('.aurorashow').css("display","inline"); 64 $.cookie('arMenu_' + menu + '_arItem_' + auroramenuitemcount , '0' , {path:'/'}); 65 } 66 67 auroramenuitemcount ++; 68 }); 69 } 70 auroramenucount ++; 71 }); 72}
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.