{"name":"fancybox","key":"fancybox","version":"1.0.1","instructions":"Add an image between the tags on the page.","showatto":"1","showplayers":"0","requirecss":"//cdnjs.cloudflare.com/ajax/libs/fancybox/3.1.20/jquery.fancybox.min.css","requirejs":"","shim":"","defaults":"linktext=\"Click Me\"","amd":"1","body":"<a class=\"@@AUTOID@@\" href='#' >@@linktext@@</a>\n<div class=\"@@AUTOID@@_pic hide\">\n","bodyend":"</div>\n","script":"//here we load up the url of the thumbnail and the big image\nvar imgurl = $('.' + @@AUTOID@@ + '_pic img').attr('src');\n$('.' + @@AUTOID@@).attr(\"href\",imgurl);\n\n//if the fancybox script is loaded, we call fancybox\nif($.fn.fancybox){\n  $('.' + @@AUTOID@@).fancybox();\n\n//else we create an array of ids, and require the fancybox script if we did not already\n// push the current id to the array\n}else{\n  if('fancyboxids' in window){\n  window.fancyboxids.push( @@AUTOID@@);\n}else{\n //create the array to hold ids \n window.fancyboxids=[];\n  window.fancyboxids.push( @@AUTOID@@);\n\n //this is the script load. In the callback we fancyboxify all those ids we have been saving\n//this is also the way to load jquery plugins that are not amd friendly\n  $.getScript('https://cdnjs.cloudflare.com/ajax/libs/fancybox/3.1.20/jquery.fancybox.min.js', function(){\n     $.each(window.fancyboxids,function(key,value){\n         $('.' + value).fancybox();\n     });\n  });\n}\n}","style":"","dataset":"","datasetvars":"","alternate":"","alternateend":""}