Hiya
I managed to use existing javascript libraries to produce this effect:
whenever I click on a drag-and-dropped PDF resource file, the PDF opens up inside a fully-functioning pop-up window. All without leaving the Moodle page.
Figure 1. This window pops out after the user has clicked on a "previously dragged-and-dropped-into-the-coursepage" PDF resource file.
Figure 2. The pop-up window is fully-functioning.
Figure 3. An animated spinner image (rubik's cube) to indicate loading time.
Figure 4. I can begin reading the PDF document's contents even though the entire document has not finished loading.
I have tested it on multiple platforms: iPad, Mac, PC and Android. All working.
It's not a plugin. It requires a slight modification to a core file within Moodle. Plus the necessary javascript and CSS files need to added into the theme's subfolder. Just wondering if this kinda thing might be useful for teachers who drag and drop PDF files into the coursepage. Or is just useful to me?
Regards
Frankie Kam
Malaysia