{"name":"Popup Wav/M4A Player","key":"popupwavplayer","version":"1.0.1","instructions":"This is a popup wav/m4a player. Place it on a page and it will scan the page for wav or m4a links and create popup players. ","showatto":"1","showplayers":"0","requirecss":"","requirejs":"","shim":"","defaults":"","amd":"1","body":"[Handling WAV files in popup]\n\n<!-- Modal -->\n<div class=\"modal fade\" id=\"@@AUTOID@@_trigger\" tabindex=\"-1\" role=\"dialog\" aria-labelledby=\"exampleModalCenterTitle\" aria-hidden=\"true\">\n  <div class=\"modal-dialog modal-dialog-centered\" role=\"document\">\n    <div class=\"modal-content\">\n      <div class=\"modal-header\">\n        <h5 class=\"modal-title\" id=\"exampleModalLongTitle\">Record Audio</h5>\n        <button type=\"button\" class=\"close\" data-dismiss=\"modal\" aria-label=\"Close\">\n          <span aria-hidden=\"true\">&times;</span>\n        </button>\n      </div>\n      <div class=\"modal-body\">\n        <audio id=\"@@AUTOID@@_audioplayer\" class=\"nomediaplugin\" controls/>\n      </div> \n    </div>\n  </div>\n</div>\n","bodyend":"","script":"//init modal\nvar modal = $('#' + @@AUTOID@@ + '_trigger');\nmodal.modal({ show: false})\n\n\n$(\"a[href*='.wav'],a[href*='.m4a']\").each(\n\n  function() {\n\nvar theurl = $(this).attr('href').replace('forcedownload=1','');\n  $(this).on(\"click\",function(){\n$(\"#\" + @@AUTOID@@ + \"_audioplayer\").attr('src',theurl);\nmodal.modal('show');\nreturn false;\n});\n});\n","style":"","dataset":"","datasetvars":"","alternate":"","alternateend":""}