DokuWiki

It's better when it's simple

User Tools

Site Tools


plugin:inlinejs

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
plugin:inlinejs [2014-05-17 15:15] – [inlinejs Plugin] s.saharaplugin:inlinejs [2020-02-05 09:12] (current) – Version upped Aleksandr
Line 1: Line 1:
-====== inlinejs Plugin ======+====== InlineJS Plugin ======
  
 ---- plugin ---- ---- plugin ----
-description: Allow inline JavaScript and StyleSheet in pages. Support both preloading in `<head>` section and embedding in `<body>` section of HTML. Additonal macro for a few elements of $_SERVER array is available.+description: Allow inline JavaScript and StyleSheet in wiki pages
 author     : S.Sahara  author     : S.Sahara 
 email      : sahara.satoshi@gmail.com  email      : sahara.satoshi@gmail.com 
 type       : syntax, action, helper type       : syntax, action, helper
-lastupdate : 2014-05-17 +lastupdate : 2019-10-05 
-compatible : Adora BelleWeatherWaxBinky2014-05-05 "Ponder Stibbons"+compatible : 2014-09-292015-08-102016-06-262017-02-19
 depends    :  depends    : 
 conflicts  conflicts 
Line 23: Line 23:
  
 ===== Installation ===== ===== Installation =====
-Install the plugin using the [[plugin:plugin|Plugin Manager]] and the download URL above, which points to latest version of the plugin. Refer to [[:Plugins]] on how to install plugins manually.+Search and install the plugin using the [[plugin:extension|Extension Manager]]. Refer to [[:Plugins]] on how to install plugins manually.
  
-Even though this plugin installed successfully, you may need [[#Configuration and Settings|additional configuration]] in the configuration manager in order to make the plugin effective. By default, any syntax of "Inline JavaScript" plugin" (InlineJSdo **NOT** work if [[:config:htmlok]] is disabled. Please see [[#Configuration and Settings]] section below. +Even though this plugin installed successfully, you may need [[#Configuration and Settings|additional configuration]] in the configuration manager in order to make the plugin effective (except Macro syntax). Please see [[#Configuration and Settings]] section below.
- +
-^ :!: This is a security risk when used on a freely accessible site because it enables Cross Site Scripting attacks! Prior to use this plugin, you are strongly recommended to refer [[:config:htmlok]], [[:security#plugin_security]] and [[:wiki:syntax#embedding_html_and_php|syntax]] pages.^+
  
  
Line 64: Line 62:
 JavaScript and Stylesheet preloader in <nowiki><head></nowiki> section of HTML. JavaScript and Stylesheet preloader in <nowiki><head></nowiki> section of HTML.
 <code><PRELOAD> <code><PRELOAD>
 +/path/to/javascript.js
 /path/to/stylesheet.css /path/to/stylesheet.css
-/path/to/javascript.js+<link rel="stylesheet" href="http://example.com/css?key=value">
 </PRELOAD></code> </PRELOAD></code>
  
-  * HTML output:\\ <file html>+HTML output:\\ <file html>
 <head> <head>
 +<script type="text/javascript" charset="utf-8" src="/path/to/javascript.js"></script>
 <link rel="stylesheet" type="text/css" href="/path/to/stylesheet.css"/> <link rel="stylesheet" type="text/css" href="/path/to/stylesheet.css"/>
-<script type="text/javascriptcharset="utf-8" src="/path/to/javascript.js"></script>+<link rel="stylesheet" type="text/csshref="http://example.com/css?key=value"/>
 </head> </head>
 </file> </file>
Line 85: Line 85:
 <code><JS> ... </JS> or <js> ... </js></code> <code><JS> ... </JS> or <js> ... </js></code>
  
-  * HTML output:\\ <file html>+HTML output:\\ <file html>
 <script type="text/javascript"> <script type="text/javascript">
 /*<![CDATA[*/ /*<![CDATA[*/
Line 101: Line 101:
 <code><CSS> ... </CSS></code> <code><CSS> ... </CSS></code>
  
-  * HTML output:\\ <file html>+HTML output:\\ <file html>
 <style type="text/css"> <style type="text/css">
 <!-- <!--
Line 108: Line 108:
 </style> </style>
 </file> </file>
- 
  
  
Line 128: Line 127:
 no plan... no plan...
  
-===== FAQ ===== 
  
-//[discussions should ideally be deleted and turned into FAQ entries along the way]//+===== Known Bugs and Issues ===== 
 + 
 +===== FAQ =====
  
 ===== Discussion ===== ===== Discussion =====
plugin/inlinejs.1400332540.txt.gz · Last modified: 2014-05-17 15:15 by s.sahara

Except where otherwise noted, content on this wiki is licensed under the following license: CC Attribution-Share Alike 4.0 International
CC Attribution-Share Alike 4.0 International Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki