Markdown & Code Help
Markdown & Code Help margaret Fri, 10/21/2011 - 15:32onchange refers only to values typed in by the user
variable names can only use letters, not numerals or special characters
http://www.barebones.com/products/textwrangler/features.html
http://daringfireball.net/projects/markdown/syntax
http://michelf.com/projects/php-markdown/extra/
http://support.mashery.com/docs/customizing_your_portal/Markdown_Cheat_…
Expand/Collapse
Expand/Collapse sbrewer Wed, 10/26/2011 - 17:51Here's an example for building collapsible links. Note that you have to also switch from markdown to full-html to make it work.
Always put the javascript code on the page with the drop-downs.
Copy this code:
Then change Goatweasel to the title of the expandable section.
See also: http://www.sothink.com/product/treemenu/samples/statecode/statecode.php
Nested drop downs?
New drop down test
New drop down test kdorfman Tue, 10/02/2018 - 15:20
Show details
Your markdown content here
IgG
1 mg/mL
4C short term
Freeze 1 µL aliquots
dilute 1:100 - 1:750 in 0.1% BSA in PBS
rinse in PBS
Fix in 4% paraformaldehyde 15 min for endosomes
in cold methanol for Golgi
0.5% saponin 5 min
1% BSA in PBS 30 min
1o Ab stain (0.1% BSA) overnight at 4C
wash 30 min in PBS
2o Ab 1 h 37C
wash 30 min PBS
mount in DAPI
mouse anti-LAMP1 (lysosomes)
Footnotes
Footnotes kdorfman Thu, 06/01/2023 - 15:49To create a footnote in Markdown, add a number inside the square brackets followed by a caret symbol [^].
At the bottom, repeat the square brackets, caret, number, but follow with a colon, then the footnote text [^]:
Images
Images kdorfman Wed, 12/07/2011 - 16:11Images with Links
Images with Links margaret Wed, 11/09/2011 - 14:39Importing an Image-How I did it
Importing an Image-How I did it margaret Wed, 11/09/2011 - 15:44Select your Image from the image viewing software that you use. I use Picassa. Same as a small Image-size matters-on your desk top. 2MB which = 2048KB Open Wahoo Site File attachment-upload file Now you can see the URL for the file under the Attach File box Copy the URL into your formula.
Inserting an Image -Cartoon style
Inserting an Image -Cartoon style margaret Mon, 10/24/2011 - 16:09Images
Like a normal link, an image is created in two steps. The first step is to insert the image alt text and a reference id at the position desired within your content. The second step is to add the remainder of the image information at the bottom of Markdown entry. Here's an example:
This is my content and I want to display our website logo.
![BPALL Logo] [1]
... (more content until we reach the bottom of this entry) ...
[1]: <a href="http://www.bpall.org/images/BP50logoFinal_color75h.png">http://www.bpall.org/images/BP50logoFinal_color75h.png</a> "Berwyn Paoli Area Little League!"
In the first step, I typed the image alt text enclosed by square brackets, a space and then the reference id (a unique number also enclosed by square brackets). It's just like the first step in the link process. Or is it? Look at the start of the entry. There is an exclamation point right before the first square bracket. You need that exclamation point for the image to appear.
In the second step, I typed the reference id followed by a colon, a space, the image url, another space and the image title (the text that pops up when you hover over the image). Note that the title is enclosed by quotes.
Logo 2
Logo 2 margaret Mon, 11/14/2011 - 16:14Sample Image
Sample Image margaret Wed, 11/09/2011 - 14:46Round
Round kdorfman Thu, 02/04/2016 - 21:08Round to nearest integer: Math.round(2.5)
Round to no more than 2 decimals: Math.round(num * 100) / 100
block quotes
block quotes kdorfman Wed, 12/07/2011 - 15:57First you type the main section of the text.
Then you put a greater than in front of the text to be indented as a block quote. Of course, it doesn't have to actually be a quote - it just has to be text that you want to have set off from the rest.
If you don't put a greater than in front of the next sentence, it will be left justified again.
Two greater than signs
calculator template
calculator template kdorfman Thu, 12/27/2012 - 15:2214 ingredients
14 ingredients kdorfman Mon, 07/28/2014 - 16:55Dilution
Dilution kdorfman Mon, 01/18/2016 - 20:19addition calculator
addition calculator kdorfman Fri, 04/21/2023 - 13:58The + sign juxtaposes the two values, unless they are actual numerals.
So if a.value = 2 and b.value = 3 then a.value + b.value = 23
See calculator below:
But 2+3 = 5 if you write the numerals instead of the variable names.
subtraction works:
a.value - b.value = -1
You can cheat, as in this second calculator:
result.value = (- firstnumber.value - secondnumber.value) * -1
Not sure how to do plain old addition
cell size, sig figs
cell size, sig figs kdorfman Tue, 12/13/2016 - 21:42size="5";
ingred.value = Math.round(calculation goes here)
ingred.value = Number(Math.round((finalvol.value * 0.0052)+'e2')+'e-2');
where 2 is the number of significant digits
stoc calcs change MW
stoc calcs change MW kdorfman Wed, 08/06/2014 - 19:14Calculations with changeable MW
stock calc vary conc
stock calc vary conc kdorfman Mon, 01/18/2016 - 19:29Calculations with changing w/vol
stock calcs
stock calcs kdorfman Wed, 08/06/2014 - 19:07Calculations with non-changing MW