Markdown & Code Help

Markdown & Code Help margaret Fri, 10/21/2011 - 15:32

onchange refers only to values typed in by the user

variable names can only use letters, not numerals or special characters…


Expand/Collapse sbrewer Wed, 10/26/2011 - 17:51

Here'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:

Nested drop downs?

New drop down test

New drop down test kdorfman Tue, 10/02/2018 - 15:20

Show details Your markdown content here

mouse anti-LAMP1 (lysosomes)

GeneTex GTX13523


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



Images kdorfman Wed, 12/07/2011 - 16:11

Images with Links

Images with Links margaret Wed, 11/09/2011 - 14:39

Images With Links

To create an image with a link, create an image and then surround it with the usual link syntax.

Or, create a link and then insert the image syntax where the text would usually go.

Tar Heels

Here it is for real:

Tar Heels

Importing an Image-How I did it

Importing an Image-How I did it margaret Wed, 11/09/2011 - 15:44

Select 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:09


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=""></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.

Sample Image

Sample Image margaret Wed, 11/09/2011 - 14:46




Round kdorfman Thu, 02/04/2016 - 21:08

Round 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:57

First 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:22
To make FP-units Final Product
add: ingred1-units Ingredient 1
add: ingred2-units Ingredient 2
add: ingred3-units Ingredient 3
add: ingred4-units Ingredient 4

14 ingredients

14 ingredients kdorfman Mon, 07/28/2014 - 16:55
To make units final product
start with units ingredient 1
add: units ingredient 2
add: units ingredient 3
add: units ingredient 4
add: units ingredient 5
add: units ingredient 6
add: units ingredient 7
add: units ingredient 8
add: units ingredient 9
add: units ingredient 10
add: units ingredient 11
bring to units ingredient 12
add: units ingredient 13
autoclave for units last ingredient


Dilution kdorfman Mon, 01/18/2016 - 20:19
to make a final volume of: mL
from this initial concentration: ci
at this final concentration: cf
start with: mL stock solution

cell size, sig figs

cell size, sig figs kdorfman Tue, 12/13/2016 - 21:42


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:14

Calculations with changeable MW

MW of stuff:
Concentration: M
to make: mL
add: g dry stuff

stock calc vary conc

stock calc vary conc kdorfman Mon, 01/18/2016 - 19:29

Calculations with changing w/vol

to make: mL solution
at this concentration: mg/ml
add: g dry stuff

stock calcs

stock calcs kdorfman Wed, 08/06/2014 - 19:07

Calculations with non-changing MW

Concentration: input type = "text" onchange = "g.value = 58.44 * M.value * mL.value /1000" value="5" name="M"/> M
to make: input type="text" onchange = "g.value = 58.44 * M.value * mL.value /1000"; value="1000" name="mL"/> mL
add: input type="text" onchange = "g.value = 58.44 * M.value * mL.value /1000"; value="292.2" name="g"/> g dry stuff

test henderson hasselbalch

test henderson hasselbalch kdorfman Mon, 06/05/2017 - 18:25
if pH =

if pH =

if pH =

href tag

href tag kdorfman Tue, 12/13/2011 - 18:53