# Journal to Canvas Slideshow
- [WARNING](#warning)
- [Journal to Canvas Slideshow](#journal-to-canvas-slideshow)
- [Feature Requests & The Future of Journal to Canvas Slideshow 01-16-2022](#feature-requests--the-future-of-journal-to-canvas-slideshow-01-16-2022)
- [WARNING](#warning)
- [About the Project](#about-the-project)
- [Built With](#built-with)
- [Installation and Getting Started](#installation-and-getting-started)
- [How to Use](#how-to-use)
- [Full Video Tutorial (Walkthrough of New Features Included)](#full-video-tutorial-walkthrough-of-new-features-included)
- [Written Tutorial with Gifs](#written-tutorial-with-gifs)
- [Videos in Journal](#videos-in-journal)
- [Display In Window and Module Settings](#display-in-window-and-module-settings)
- [Auto-Activate or Auto-Show Toggle](#auto-activate-or-auto-show-toggle)
- [Changelog](#changelog)
- [**v0.1.8 - v0.1.9** - 2022-01-16](#v018---v019---2022-01-16)
- [**v0.1.7** - 2021-08-26](#v017---2021-08-26)
- [**v0.1.6** - 2021-06-09](#v016---2021-06-09)
- [**v0.1.5** - 2021-05-23](#v015---2021-05-23)
- [Default Tile Control Tools](#default-tile-control-tools)
- [Tile Control Tools with Hide Tile Buttons Turned On](#tile-control-tools-with-hide-tile-buttons-turned-on)
- [**v0.1.4** - 2021-03-19](#v014---2021-03-19)
- [**v0.1.3** - 2021-01-22](#v013---2021-01-22)
- [**v0.1.2** - 2021-01-03](#v012---2021-01-03)
- [**v0.1.1** - 2020-12-28](#v011---2020-12-28)
- [**Added**](#added)
- [**Changes**](#changes)
- [Roadmap](#roadmap)
- [Code Explanation](#code-explanation)
- [Motivation](#motivation)
- [Credits](#credits)
- [Contact Me](#contact-me)
Table of contents generated with markdown-toc
## Feature Requests & The Future of Journal to Canvas Slideshow 01-16-2022
With my school workload, I unfortunately don't have time to implement any new features for this module going forward. I will try to fix any bugs that pop up, tweak any minor issues, and continue to keep it updated for major Foundry versions. If you want more/cooler/more flexible features, I would suggest checking out @DarKDinDoN 's amazing module Share Media, which was inspired by and improves upon this module :)
https://github.com/DarKDinDoN/share-media
## WARNING
If your image's source is from somewhere online, there's a chance there will be a CORS issue, and clicking on the image in the journal won't change the tile due to this error. Take a look at the dev console (F12 on Windows) and see if there's an error like this: https://i.imgur.com/SBHQPka.png
If so, for now, try saving/downloading the image and placing it in your Foundry data folder somewhere, then in the journal entry, have the image's source link to that file path instead. I'll try to see if I can find a way around this.
# About the Project
This project brings functionality to images and videos in your Foundry journal entries and allows you to create a Display Scene. You can click on journal images and videos, which will change a tile in the Display Scene to match the image in the journal.
!["Demonstration of module"](https://media4.giphy.com/media/nCBKGGweEGVYObw3ZB/giphy.gif)
This is meant to make sharing art with your players while narrating or reading your notes a lot more seamless. It fits well with Theater of the Mind style play.
## Built With
- JavaScript
- JQuery
- HTML
# Installation and Getting Started
To install this module, go to the Configuration and Setup options in Foundry VTT, click on "Add-on Modules", then "Install Module".
There will be a text box toward the bottom where you can paste this Manifest URL:
https://raw.githubusercontent.com/EvanesceExotica/Journal-To-Canvas-Slideshow/master/module.json
Then click "Install".
# How to Use
## Full Video Tutorial (Walkthrough of New Features Included)
Please click on the image below for a full video tutorial with walk-throughs of new features included:
[![Alt text](https://img.youtube.com/vi/t4NX55vs9gU/0.jpg)](https://www.youtube.com/watch?v=t4NX55vs9gU)
(Click this link if the above doesn't work for some reason):
https://youtu.be/t4NX55vs9gU
---
## Written Tutorial with Gifs
(**NOTE:** The instructions below are a bit outdated compared to the above video which includes explanations of new features and settings, but they still generally apply. )
1. Open your game in FoundryVTT and navigate to the "Scenes" tab.
2. At the bottom of this tab, there will be a button that reads "Create or Show Display Scene".
3. Click that button. A new scene will be generated named "Display", with a single tile with a dark background.
!["Demonstration of Create or Show Display Scene button"](https://media4.giphy.com/media/PHOiojIZhG3hyg4uIm/giphy.gif)
4. If you click on this button again while the Display scene already exists, it will activate the Display scene instead of creating a new one. ~~(**Warning**: _Do not_ rename this scene, as the script searches for a scene named "Display" specifically. I may try to change this in the future so it keeps track of and searches for the scene's ID instead.)~~ (No longer true in v0.1.4 -- see Change Log below for details)
5. You can change the scene's background image and add extra tiles for decoration, ~~but
make sure that the very first tile on the canvas is the tile you wish to display your images.~~ (No longer necessary in version 0.1.4 -- see Change Log below for details)
6. Open up a journal entry with images (**Note**: This should work with Image Mode journal entries too). You should notice the images highlight and gain a shadow when you hover over them.
7. Clicking on them will cause the tile in the Display scene to resize/reposition and change to match the image you clicked on.
8. Have fun!
---
## Videos in Journal
This project does support .webm and .mp4 files, however inserting a video into a journal entry requires a different approach than using an image.
1. Check out this page: https://www.w3schools.com/html/html5_video.asp and scroll down a bit to the part that says "Example".
2. Open up your journal entry, click the edit button, then click the button along the top that looks like this "< >" to access the entry's source code.
!["Clicking on source code button"](https://i.imgur.com/dUgvvBS.png?1)
3. You can copy and paste the code example shown on the above w3schools site into the source code, and change the file path in quotations (where it says