Difference between revisions of "Jmol in Wikis and Blogs"

From Jmol
Jump to navigation Jump to search
m (moved Jmol in Wikis to Jmol in Wikis and Blogs: expand to blogs)
(MicroJmol widget)
Line 5: Line 5:
  
 
You can see a list of wikis that already use Jmol: [[Wikis Using Jmol]].
 
You can see a list of wikis that already use Jmol: [[Wikis Using Jmol]].
 +
 +
 +
Jmol can be used in blogs, discussion boards and similar environments:
 +
 +
* [http://www.widgetbox.com/widget/microjmol MicroJmol widget] by jsmoore
 +
:A portable version of Jmol viewer that loads the user-provided Jmol-readable file at startup. Used to share 3D structures on blogs, discussion boards and inside of other widgets that use the [http://www.widgetbox.com/ widgetbox]. Instructions or comments can be added to the text field.
 +
 +
:Uses this code:
 +
<pre>
 +
<script src="http://cdn.widgetserver.com/syndication/subscriber/InsertWidget.js"
 +
type="text/javascript">
 +
</script>
 +
<script>
 +
if (WIDGETBOX) WIDGETBOX.renderWidget('ec6af128-5436-4d7b-97c9-7f2f4b528859');
 +
</script>
 +
<noscript>
 +
Get the <a href="http://www.widgetbox.com/widget/microjmol">MicroJmol</a> widget
 +
and many other <a href="http://www.widgetbox.com/">great free widgets</a>
 +
at <a href="http://www.widgetbox.com">Widgetbox</a>!
 +
Not seeing a widget?
 +
(<a href="http://docs.widgetbox.com/using-widgets/installing-widgets/why-cant-i-see-my-widget/">More info</a>)
 +
</noscript>
 +
</pre>
 +
And, as a result, this kind of code gets inserted in the page:
 +
<pre>
 +
<iframe hspace="0" vspace="0" marginheight="0" marginwidth="0"
 +
src="http://markup.widgetserver.com/syndication/get_widget.html?
 +
  instructions=One%20of%20my%20favorite%20molecules...
 +
  &amp;bgcolor=%2366FFCC
 +
  &amp;Jmol_file=http%3A%2%2Fnetfiles.uiuc.edu%2Fjsmoore%2Fwww%2FJmolpages%2Fcaffeine.xyz
 +
  &amp;widget.appId=4e4d1afb-565c-4d70-9c6e-8c1c8b2894b3
 +
  &amp;widget.regId=56b796d2-1b71-42ae-bcc1-ccc14fab461d
 +
  &amp;widget.friendlyId=microjmol
 +
  &amp;widget.name=MicroJmol
 +
  &amp;widget.token=4ea9b00c1b2c22e17a88ba756153e71526921144000001246889ecdf
 +
  &amp;widget.id=0
 +
  &amp;widget.location=http%3A%2F%2Fwww.widgetbox.com%2Fwidget%2Fmicrojmol
 +
  &amp;widget.timestamp=1255889032432
 +
  &amp;widget.serviceLevel=0
 +
  &amp;widget.provServiceLevel=0
 +
  &amp;widget.instServiceLevel=0
 +
  &amp;widget.width=150
 +
  &amp;widget.height=150
 +
  &amp;widget.wrapper=JAVASCRIPT
 +
  &amp;widget.isAdFriendly=true
 +
  &amp;widget.isAdEnabled=true
 +
  &amp;widget.adChannels=137%3D125x125
 +
  &amp;widget.adPlacement=
 +
  &amp;widget.output=htmlcontent
 +
  "
 +
border="0"
 +
id="widgetbox_widget_iframe_0"
 +
name="widgetbox_widget_iframe_0"
 +
frameborder="0"
 +
height="150"
 +
width="150"
 +
scrolling="no"
 +
>
 +
</iframe>
 +
</pre>

Revision as of 17:59, 18 October 2009

Jmol can be embedded in wiki pages using special processors.

You can see a list of wikis that already use Jmol: Wikis Using Jmol.


Jmol can be used in blogs, discussion boards and similar environments:

A portable version of Jmol viewer that loads the user-provided Jmol-readable file at startup. Used to share 3D structures on blogs, discussion boards and inside of other widgets that use the widgetbox. Instructions or comments can be added to the text field.
Uses this code:
<script src="http://cdn.widgetserver.com/syndication/subscriber/InsertWidget.js"
type="text/javascript">
</script>
<script>
if (WIDGETBOX) WIDGETBOX.renderWidget('ec6af128-5436-4d7b-97c9-7f2f4b528859');
</script>
<noscript>
Get the <a href="http://www.widgetbox.com/widget/microjmol">MicroJmol</a> widget 
and many other <a href="http://www.widgetbox.com/">great free widgets</a> 
at <a href="http://www.widgetbox.com">Widgetbox</a>! 
Not seeing a widget? 
(<a href="http://docs.widgetbox.com/using-widgets/installing-widgets/why-cant-i-see-my-widget/">More info</a>)
</noscript>

And, as a result, this kind of code gets inserted in the page:

<iframe hspace="0" vspace="0" marginheight="0" marginwidth="0" 
src="http://markup.widgetserver.com/syndication/get_widget.html?
  instructions=One%20of%20my%20favorite%20molecules...
  &bgcolor=%2366FFCC
  &Jmol_file=http%3A%2%2Fnetfiles.uiuc.edu%2Fjsmoore%2Fwww%2FJmolpages%2Fcaffeine.xyz
  &widget.appId=4e4d1afb-565c-4d70-9c6e-8c1c8b2894b3
  &widget.regId=56b796d2-1b71-42ae-bcc1-ccc14fab461d
  &widget.friendlyId=microjmol
  &widget.name=MicroJmol
  &widget.token=4ea9b00c1b2c22e17a88ba756153e71526921144000001246889ecdf
  &widget.id=0
  &widget.location=http%3A%2F%2Fwww.widgetbox.com%2Fwidget%2Fmicrojmol
  &widget.timestamp=1255889032432
  &widget.serviceLevel=0
  &widget.provServiceLevel=0
  &widget.instServiceLevel=0
  &widget.width=150
  &widget.height=150
  &widget.wrapper=JAVASCRIPT
  &widget.isAdFriendly=true
  &widget.isAdEnabled=true
  &widget.adChannels=137%3D125x125
  &widget.adPlacement=
  &widget.output=htmlcontent
  " 
border="0" 
id="widgetbox_widget_iframe_0" 
name="widgetbox_widget_iframe_0" 
frameborder="0" 
height="150" 
width="150"
scrolling="no" 
>
</iframe>