you can use a js macro (set module-type to macro, and type to
application/javascript):
/*jslint node: true, browser: true */
/*global $tw: false */
"use strict";
exports.name = "yam";
exports.params = [{name: "container"},{name: "id"}
];
/*
Run the macro
*/
exports.run = function(container,id) {
yam.connect.embedFeed({
container: "#"+container,
network: "tiddlywiki",
feedType: "group",
feedId: id
});
return "";
}
and as Jed said put
<script type="text/javascript" src="
https://s0.assets-yammer.com/assets/platform_embed.js"></script>
in a tid tagged with
$:/tags/RawMarkup
then call it from a tid:
<div id="embedded-feed" style="height:800px;width:100%;"></div>
<<yam """embedded-feed""" "15224909">>
all the best
BJ
On Friday, June 15, 2018 at 4:36:48 AM UTC+2, TonyM wrote:
>
> Hi Folks,
>
> I am trying to determine how to make the following work in TiddlyWiki, It
> allows a user to embed a Yammer conversation into a TiddlyWiki.
>
> <div id="embedded-feed" style="height:800px;width:100%;"></div>
> <script type="text/javascript" src="
> https://s0.assets-yammer.com/assets/platform_embed.js"></script>
> <script type="text/javascript">
> yam.connect.embedFeed({
> container: "#embedded-feed",
> network: "tiddlywiki",
> feedType: "group",
> feedId: "15224909"
> });
> </script>
>
> Of Course in the above, the display occurs with
> <div id="embedded-feed" style="height:800px;width:100%;"></div>
>
> It will make discussing a specific wiki simple. I can past this into Raw
> HTML on a website, or in a WordPress Post and it works. It uses external
> script code, So I imagine it would be easy to implement.
>
> However imbeding java script is out side my skills in TiddlWiki so far.
>
> I have tried placing the contents of
> https://s0.assets-yammer.com/assets/platform_embed.js
> then
> yam.connect.embedFeed({
> container: "#embedded-feed",
> network: "tiddlywiki",
> feedType: "group",
> feedId: "15224909"
> });
>
> in a tiddler of type application, to no effect
>
> Thanks in advance
> Tony
>
>
--
You received this message because you are subscribed to the Google Groups
"TiddlyWikiDev" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/tiddlywikidev.
To view this discussion on the web visit
https://groups.google.com/d/msgid/tiddlywikidev/1ecb3cfe-45b4-4411-b701-f7d62a8d38fe%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.