Everyone is permitted to copy and distribute verbatim or modified copies of this license document, and changing it is allowed as long as the name is changed. DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION 0. You just DO WHAT THE FUCK YOU WANT TO. ------------------------------------------------------------------------------ TOPIC: I used to display my processing applets (http://www.processing.org) with the applet Cookbook (http://www.pmwiki.org/wiki/Cookbook/Applet) but thing goes wrong on recent macos X since new java version 1.6. This cookbook is processing specifique, not java generic but more simple than applet.php. USAGE: Processing applet files are into pub/applets subdirectory. On a PmWiki page: (:processing codebase="SampleProcessing" code="SampleProcessing" archive="SampleProcessing.jar,core.jar" width="600" height="600":) For: codebase : the name of subdirectory where are located applet files. code : Entry point class. archive : The applet jar archive name. width & height : dimensions in pixel of the applet CREDITS: It is originally based on how processing 1.51 make his own index.html and on applet.php - see below : * applet - Embed java applets into PmWiki 2.0 pages * Copyright 2005-2007 by D.Faure (dfaure@cpan.org) * Thanks to Shayne Steele (steele cs fsu edu) for the * article at: http://ww2.cs.fsu.edu/~steele/XHTML/appletObject.html * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell * copies of the Software, and to permit persons to whom the Software is * furnished to do so, subject to the following conditions: * * The above copyright notice and this permission notice shall be included in * all copies or substantial portions of the Software. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE * SOFTWARE. * * See http://www.pmwiki.org/wiki/Cookbook/Applet for info. */ $RecipeInfo['Processing']['Version'] = '20150815'; if(function_exists('Markup_e')) { Markup_e('processing', 'directives', "/\\(:processing(\\s+.*)\\s*:\\)/", "ProcessingMarkup(\$m[1])"); } else { Markup('processing', 'directives', "/\\(:processing(\\s+.*)\\s*:\\)/e", "ProcessingMarkup(PSS('$1'))"); } function ProcessingMarkup($args) { return PApplet(ParseArgs($args, '(?>([\\w\\.]+)[:=])')); } function PApplet($opt) { global $FarmPubDirUrl, $ProcessingRootCodebase; SDV($ProcessingRootCodebase, "$FarmPubDirUrl/applets"); $opt = array_merge((array)$AppletParams, (array)$opt); unset($opt['#'], $opt['-'], $opt['+'], $opt['']); $code = @$opt['code']; unset($opt['code']); $archive = @$opt['archive']; unset($opt['archive']); $width = @$opt['width']; unset($opt['width']); $height = @$opt['height']; unset($opt['height']); $codebase = @preg_replace('!^/?!', "$ProcessingRootCodebase/", $opt['codebase']); unset($opt['codebase']); $out = ' '; // '<:block> évite de générer un

englobant autour du résultat return '<:block>'.Keep($out); } ?>