%[if %("%id=embed_in_extracontent%" == "true")% ]%
%[endif]%
%[if %("%id=embed_type%" == "adsense")% ]% %id=adsense_code% %[endif]% %[if %("%id=embed_type%" == "csv")% ]% %%[[if !edit]]%% \n\n"; $f = fopen("%id=csv_path -href%", "r"); while (($line = fgetcsv($f)) !== false) { echo ""; foreach ($line as $cell) { echo "" . htmlspecialchars($cell) . ""; } echo "\n"; } fclose($f); echo "\n"; ?> %%[[endif]]%% %[endif]% %[if %("%id=embed_type%" == "document")% ]% %[endif]% %[if %("%id=embed_type%" == "facebook_post")% ]% %id=facebook_post_code% %[endif]% %[if %("%id=embed_type%" == "html5_audio")% ]% %[endif]% %[if %("%id=embed_type%" == "html5_video")% ]% %[endif]% %[if %("%id=embed_type%" == "hype")% ]% %%[[if !edit]]%% %id=hype_code% %%[[endif]]%% %%[[if edit]]%%
Hype Animation embed setup instructions:
  1. Export your animation from Tumult Hype (use File > Export as HTML5... in the main menu)
  2. Open the exported Hype HTML file in your preferred code editor (e.g. Atom, Espresso, TextWrangler, Sublime)
  3. Focus your attention towards the markup between the <!-- copy these lines to your document --> and <!-- end copy --> comments
  4. Delete the whole line that starts <script and ends with </script>. This Javascript call is not required by Embed stack
  5. Copy the remaining divisional HTML markup between the <!-- copy these lines to your document --> and <!-- end copy --> comments
  6. Paste this HTML code into the Embed stack, into the Hype Code box (in the settings)
  7. Drag and drop the complete .hyperesources folder into the Resources section, of the RapidWeaver side panel
  8. Within the Embed settings, click the Javascript Link button, to set the link to the Javascript file;
  9. Set the path to the resourced Javascript file for your animation. Normally named _hype_generated_script.js or similar

Note: Responsive animations are only supported by Hype Pro. For animations exported from Hype as movies, use the HTML5 Video embed method instead.

%%[[endif]]%% %[endif]% %[if %("%id=embed_type%" == "iframe")% ]% %[endif]% %[if %("%id=embed_type%" == "image")% ]% %id=image_alt% %[endif]% %[if %("%id=embed_type%" == "imagedir")% ]% %%[[if !edit]]%% %%[[endif]]%% %[endif]% %[if %("%id=embed_type%" == "instagram_post")% ]% %id=instagram_post_code% %[endif]% %[if %("%id=embed_type%" == "plaintext")% ]% %[if !edit]%
%[if %("%id=embedtype%" == "0")% ]% %[endif]% %[if %("%id=embedtype%" == "1")% ]% %[endif]%
%[endif]% %[endif]% %[if %("%id=embed_type%" == "youtube")% ]%
%id=video_embed_code%
%[endif]%
%[if %("%id=embed_in_extracontent%" == "true")% ]%
%[endif]%