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:640, innerHeight:390}); 9 $(".vimeo").colorbox({iframe:true, innerWidth:500, innerHeight:409}); 10 $(".iframe").colorbox({iframe:true, width:"80%", height:"80%"}); 11 $(".inline").colorbox({inline:true, width:"50%"}); 12 $(".callbacks").colorbox({ 13 onOpen:function(){ alert('onOpen: colorbox is about to open'); }, 14 onLoad:function(){ alert('onLoad: colorbox has started to load the targeted content'); }, 15 onComplete:function(){ alert('onComplete: colorbox has displayed the loaded content'); }, 16 onCleanup:function(){ alert('onCleanup: colorbox has begun the close process'); }, 17 onClosed:function(){ alert('onClosed: colorbox has completely closed'); } 18 }); 19 20 $('.non-retina').colorbox({rel:'group5', transition:'none'}) 21 $('.retina').colorbox({rel:'group5', transition:'none', retinaImage:true, retinaUrl:true}); 22 23 //Example of preserving a JavaScript event for inline calls. 24 $("#click").click(function(){ 25 $('#click').css({"background-color":"#f00", "color":"#fff", "cursor":"inherit"}).text("Open this window again and this message will still be here."); 26 return false; 27 }); 28 });
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.