1 $(document).ready(function(){ 2 //Examples of how to assign the ColorBox event to elements 3 $(".group1").colorbox({rel:'group1'}); 4 $(".group2").colorbox({rel:'group2', transition:"fade"}); 5 $(".group3").colorbox({rel:'group3', transition:"none", width:"75%", height:"75%"}); 6 $(".group4").colorbox({rel:'group4', slideshow:true}); 7 $(".ajax").colorbox(); 8 $(".youtube").colorbox({iframe:true, innerWidth:425, innerHeight:344}); 9 $(".iframe").colorbox({iframe:true, width:"80%", height:"90%"}); 10 $(".inline").colorbox({inline:true, width:"50%"}); 11 $(".callbacks").colorbox({ 12 onOpen:function(){ alert('onOpen: colorbox is about to open'); }, 13 onLoad:function(){ alert('onLoad: colorbox has started to load the targeted content'); }, 14 onComplete:function(){ alert('onComplete: colorbox has displayed the loaded content'); }, 15 onCleanup:function(){ alert('onCleanup: colorbox has begun the close process'); }, 16 onClosed:function(){ alert('onClosed: colorbox has completely closed'); } 17 }); 18 19 //Example of preserving a JavaScript event for inline calls. 20 $("#click").click(function(){ 21 $('#click').css({"background-color":"#f00", "color":"#fff", "cursor":"inherit"}).text("Open this window again and this message will still be here."); 22 return false; 23 }); 24 });
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.