Last active
December 21, 2015 13:08
-
-
Save asethwright/6310173 to your computer and use it in GitHub Desktop.
Use a single ViewMedica embed and external links to open your ViewMedica player to custom locations.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Below are directions for embedding ViewMedica on a single page. You can then create links that will open that single embed to all of the animations in your personal ViewMedica library. | |
# 1. Create a page with the main ViewMedica embed | |
You can retrieve this information from your ViewMedica account at http://swarminteractive.com/vm/. After you log in click on the "Installation Support" tab. The code you want will look something like this: | |
------------------------------------------------------------------ | |
<!-- ViewMedica Embed Start --> | |
<div id="vm"></div> | |
<script type="text/javascript" src="http://www.swarminteractive.com/js/vm.js"></script> | |
<script type="text/javascript">client="CLIENTID"; width="580"; vm_open();</script> | |
<!-- ViewMedica Embed End --> | |
------------------------------------------------------------------ | |
Paste that code into your page and then keep the page's URL, we will use it in a second. | |
# 2. Create links to the page with a ViewMedica openthis parameter | |
Now you can create links to your page and use URL variables to dispatch information to the ViewMedica player. Let's say for example the page I created was http://www.example.com/viewmedica.html. | |
I can now go to my ViewMedica account at http://swarminteractive.com/vm/ under the Installation Support section and get the "openthis" plugin code that is needed (only animation codes will work here). | |
I will want to format my links like so: | |
------------------------------------------------------------------ | |
http://www.example.com/viewmedica.html#vm_A_1234567 | |
------------------------------------------------------------------ | |
Notice that I am using the openthis part of the embed code after the #vm_. Now that link should open viewmedica to the animation as soon as the page is loaded at http://www.example.com/viewmedica.html. | |
# 3. Help | |
For further information, please contact Swarm Interactive (http://swarminteractive.com/contact.html). |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment