{"name":"Flashcards(PoodLL)","key":"flashcards","version":"1.0.0","instructions":"This is some flashcards. ","showatto":"1","showplayers":"0","requirecss":"","requirejs":"","shim":"","defaults":"width=400,height=300,cardwidth=300,cardheight=150,randomize=yes,qname=,cardset=-1,cardtype=poodll,frontcolor=0xDDDDDD,backcolor=0x000000","amd":"1","body":"Flashcards\n<iframe id='@@AUTOID@@' width='@@width@@' height='@@height@@' style='border: none'></iframe>\n","bodyend":"","script":"var fetchdataurl='';\nif(@@cardset@@.length >4 && @@cardset@@.indexof('http')==0){\n fetchdataurl = @@cardset@@;\n}else if (@@cardset@@.length >4 && @@cardset@@.indexof('.xml')>4){\n fetchdataurl = M.cfg.wwwroot + '/poodlldata/' + @@cardset@@;\n}else{\n var d= new Date();\n fetchdataurl = M.cfg.wwwroot + '/filter/poodll/poodlllogiclib.php?datatype=poodllflashcards&courseid=' + @@COURSE:id@@ + '&paramone=' + @@cardset@@ + '&paramtwo=' + @@qname@@ + '&paramthree=' + @@frontcolor@@ + '&paramfour=' + @@backcolor@@ + '&cachekiller=' + d.getTime();\n}\n\nvar params = '?cardset=' + encodeURIComponent(fetchdataurl); \nparams += '&qname=' + @@qname@@; \nparams += '&cardwidth=' + @@cardwidth@@; \nparams += '&cardheight=' + @@cardheight@@; \nparams += '&randomize=' + @@randomize@@; \nparams += '&frontcolor=' + @@frontcolor@@; \nparams += '&backcolor=' + @@backcolor@@; \nvar widget = 'flashcards.lzx.js';\n\nvar iframeurl = M.cfg.wwwroot + '/filter/poodll/js/poodlliframe.php'; \nvar fullurl =iframeurl + \"?paramstring=\" +  encodeURIComponent(params);\nfullurl += \"&widget=\" + widget;\nfullurl += \"&width=\" + @@width@@;\nfullurl += \"&height=\" + @@height@@;\n\n$('#'+ @@AUTOID@@).attr('src', fullurl);\n\n","style":"","dataset":"","datasetvars":"","alternate":"","alternateend":""}