Template:JS: Difference between revisions
Jump to navigation
Jump to search
(Created page with "<noinclude> == Purpose == Show Javascript code with distinctive colour and background == Usage == {{JS|text=<script><br>alert('path is '+path)}} {{JS|text=ODBGet(path)<br></sc...") |
No edit summary |
||
Line 3: | Line 3: | ||
Show Javascript code with distinctive colour and background | Show Javascript code with distinctive colour and background | ||
== Usage == | == Usage == | ||
{{JS|text= | Enclose in 2 curley brackets: '''JS | text=''' ''<your javascript code>'' | ||
{{JS|text=ODBGet(path) | {{JS|text=alert('path is '+path)}} | ||
{{JS|text=ODBGet(path)}} | |||
</noinclude> | </noinclude> | ||
<div style="background-color:floralwhite; color:steelblue; font-style:italic;"> | <div style="background-color:floralwhite; color:steelblue; font-style:italic;"> | ||
:{{{text|JS text}}} | :{{{text|// JS text}}} | ||
</div> | </div> |
Latest revision as of 17:20, 26 September 2014
Purpose
Show Javascript code with distinctive colour and background
Usage
Enclose in 2 curley brackets: JS | text= <your javascript code>
- alert('path is '+path)
- ODBGet(path)
- // JS text