--- a/jpoker/sites/Makefile Mon Apr 19 15:00:59 2010 +0000 +++ b/jpoker/sites/Makefile Mon Apr 19 05:40:37 2010 +0200 @@ -15,7 +15,7 @@ # along with this program. If not, see <http://www.gnu.org/licenses/>. # -SITES=pokersource.eu +SITES=pokersource.eu-2009 pokersource.eu all build install clobber clean maintainer-clean check:: for i in ${SITES} ; do ${MAKE} -C $$i $@ ; done
--- a/jpoker/themes/Makefile Mon Apr 19 15:00:59 2010 +0000 +++ b/jpoker/themes/Makefile Mon Apr 19 05:40:37 2010 +0200 @@ -24,7 +24,7 @@ # name/sounds # swf sound files required by jpoker. # name/skin # HTML files demonstrating each aspect of the theme. # -THEMES=pokersource.eu-2009 +THEMES=pokersource.eu-2009 pokersource.eu all build install clobber clean maintainer-clean check:: for i in ${THEMES} ; do ${MAKE} -C $$i $@ ; done
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/jpoker/sites/pokersource.eu-2009/Makefile Mon Apr 19 05:40:37 2010 +0200 @@ -0,0 +1,18 @@ +# +# Copyright (C) 2008 - 2010 Loic Dachary <loic@dachary.org> +# +# This program is free software: you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program. If not, see <http://www.gnu.org/licenses/>. +# +all build install clobber clean maintainer-clean check:: + ${MAKE} -C sources $@
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/jpoker/sites/pokersource.eu-2009/sources/JpokerPlugin/JpokerPlugin.tiddler Mon Apr 19 05:40:37 2010 +0200 @@ -0,0 +1,151 @@ +/*** +|''Name:''|jpokerPlugin| +|''Description:''|| +|''Author:''|Loic Dachary (loic@dachary.org)| +|''Source:''|http://jspoker.pokersource.info/jpoker/#JpokerPlugin.tiddler| +|''Code Repository:''|http://upstream.jspoker.pokersource.info/| +|''Version:''|2.0| +|''Date:''|Apr 18, 2010| +|''License:''|[[GNU GPLv3+|http://gnu.org/licenses/gpl.txt]]| +|''~CoreVersion:''|2.3.0| +***/ +//{{{ + +//config.jpoker = { restURL : 'http://pokersource.eu/POKER_REST' }; +//config.jpoker = { restURL : 'http://jspoker.pokersource.info/POKER_REST' }; +//config.jpoker = { restURL : 'http://pok01.prodin.orbus.fr:19384/POKER_REST' }; +//config.jpoker = { restURL : 'http://127.0.0.1/POKER_REST' }; +//config.jpoker = { restURL : 'http://127.0.0.1:19384/REST' }; +config.jpoker = { restURL : '/POKER_REST' }; +config.options.chkSinglePagePermalink = false; + +$.jpoker.server.defaults.spawnTable = function(server, packet) { + var title = " Table " + packet.name; + var lang = $("html").attr("lang"); + server.setLocale(lang, packet.game_id); + config.shadowTiddlers[title] = "<<jpokerTable '" + server.url + "' " + packet.game_id + " '" + packet.name + "'>>"; + story.displayTiddler(null, title, 1); +}; + +$.jpoker.server.defaults.tourneyRowClick = function(server, packet) { + var title = " TourneyDetails " + packet.name; + config.shadowTiddlers[title] = "<<jpokerTourneyDetails '" + server.url + "' " + packet.game_id + " '" + packet.name + "'>>"; + story.displayTiddler(null, title, 1); +}; + +$.jpoker.server.defaults.rankClick = function(server, tourney_serial) { + var title = " TourneyDetails "; + config.shadowTiddlers[title] = "<<jpokerTourneyDetails '" + server.url + "' " + game_id + " 'unknown name'>>"; + story.displayTiddler(null, title, 1); +}; + +$.jpoker.server.defaults.placeTourneyRowClick = function(server, id) { + var title = " TourneyPlaceholder " + id; + config.shadowTiddlers[title] = "<<jpokerTourneyPlaceholder '" + server.url + "' " + id + ">>"; + story.displayTiddler(null, title, 1); +}; + +$.jpoker.verbose = 6; +$.jpoker.sound_directory = '../../../themes/pokersource.eu-2009/sounds/'; + +$(document).ready(function() { + $.jpoker.copyright(); +}); + +config.macros.jpokerTable = { + handler: function(place, macroName, params, wikifier, paramString, tiddler) { + $(place).jpoker('table', params[0], params[1], params[2]); + } +}; + +config.macros.jpokerLogin = { + handler: function(place, macroName, params, wikifier, paramString, tiddler) { + $(place).jpoker('login', config.jpoker.restURL); + } +}; + +config.macros.jpokerQuit = { + handler: function(place, macroName, params, wikifier, paramString, tiddler) { + var confirmQuit = function() { + $(place).html("The connection to the poker server has been terminated. Please reload the page to establish a new connection"); + }; + $(place).html('Disconnecting from the poker server ... '); + $.jpoker.quit(confirmQuit); + } +}; + +config.macros.jpokerServerStatus = { + handler: function(place, macroName, params, wikifier, paramString, tiddler) { + $(place).jpoker('serverStatus', config.jpoker.restURL); + } +}; + +config.macros.jpokerTableList = { + handler: function(place, macroName, params, wikifier, paramString, tiddler) { + $(place).jpoker('tableList', config.jpoker.restURL); + } +}; + +config.macros.jpokerRegularTourneyList = { + handler: function(place, macroName, params, wikifier, paramString, tiddler) { + $(place).jpoker('regularTourneyList', config.jpoker.restURL); + } +}; + +config.macros.jpokerSitngoTourneyList = { + handler: function(place, macroName, params, wikifier, paramString, tiddler) { + $(place).jpoker('sitngoTourneyList', config.jpoker.restURL); + } +}; + +config.macros.jpokerTourneyDetails = { + handler: function(place, macroName, params, wikifier, paramString, tiddler) { + $(place).jpoker('tourneyDetails', params[0], params[1], params[2]); + } +}; + +config.macros.jpokerFeaturedTable = { + handler: function(place, macroName, params, wikifier, paramString, tiddler) { + $(place).jpoker('featuredTable', config.jpoker.restURL); + } +}; + +config.macros.jpokerUserInfo = { + handler: function(place, macroName, params, wikifier, paramString, tiddler) { + $(place).jpoker('userInfo', config.jpoker.restURL); + } +}; + +config.macros.jpokerPlaces = { + handler: function(place, macroName, params, wikifier, paramString, tiddler) { + $(place).jpoker('places', config.jpoker.restURL); + } +}; + +config.macros.jpokerPlayerLookup = { + handler: function(place, macroName, params, wikifier, paramString, tiddler) { + $(place).jpoker('playerLookup', config.jpoker.restURL); + } +}; + +config.macros.jpokerCashier = { + handler: function(place, macroName, params, wikifier, paramString, tiddler) { + $(place).jpoker('cashier', config.jpoker.restURL); + } +}; + +config.macros.jpokerTablePicker = { + handler: function(place, macroName, params, wikifier, paramString, tiddler) { + $(place).jpoker('tablepicker', config.jpoker.restURL); + } +}; + +config.macros.jpokerTourneyPlaceholder = { + handler: function(place, macroName, params, wikifier, paramString, tiddler) { + $(place).jpoker('tourneyPlaceholder', params[0], params[1]); + } +}; + +//}}} +//!END-PLUGIN-CODE +// %/
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/jpoker/sites/pokersource.eu-2009/sources/JpokerPlugin/JpokerPlugin.tiddler.div Mon Apr 19 05:40:37 2010 +0200 @@ -0,0 +1,1 @@ +title="JpokerPlugin" modifier="loic" modified="200804051018" created="200804051018" tags="systemConfig" \ No newline at end of file
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/jpoker/sites/pokersource.eu-2009/sources/JpokerPlugin/JpokerPluginRestOverride.tiddler Mon Apr 19 05:40:37 2010 +0200 @@ -0,0 +1,1 @@ +//config.jpoker.restURL = 'http://jspoker.pokersource.info/POKER_REST';
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/jpoker/sites/pokersource.eu-2009/sources/JpokerPlugin/JpokerPluginRestOverride.tiddler.div Mon Apr 19 05:40:37 2010 +0200 @@ -0,0 +1,1 @@ +title="JpokerPluginRestOverride" modifier="saq" modified="200809051018" created="200804051018" tags="systemConfig"
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/jpoker/sites/pokersource.eu-2009/sources/Makefile Mon Apr 19 05:40:37 2010 +0200 @@ -0,0 +1,114 @@ +# +# Copyright (C) 2008 - 2010 Loic Dachary <loic@dachary.org> +# +# This program is free software: you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program. If not, see <http://www.gnu.org/licenses/>. +# +SHELL=/bin/bash +BINDIR=../binary +JPOKERDIR = ../../.. +LANGDIR = ${JPOKERDIR}/l10n +THEMEDIR = ${JPOKERDIR}/themes/pokersource.eu-2009 + +all build install clobber clean maintainer-clean check:: + +build:: makedir cook check + +check:: + python test-generateLangTiddlers.py + +clean:: + rm -fr standalone-temp-* *.pyc + +maintainer-clean:: clean + rm -fr ${BINDIR} + +clobber:: maintainer-clean + rm -fr gems + +makedir: + mkdir -p ${BINDIR}/standalone + +LINGUAS = $(shell grep -v ^\# ${LANGDIR}/LINGUAS) +STANDALONE_TW = $(LINGUAS:%=${BINDIR}/standalone/index-%.html) +# +# because english is the default language, it has no +# associated .json file +# +LANG_JSON = $(LINGUAS:%=${LANGDIR}/jpoker-%.json) +LANG_TW = $(LINGUAS:%=${BINDIR}/index-%.html) + +update_gems: + rm -fr gems + ${MAKE} gems/bin/tiddlywiki_cp + +# retry at most 4 times if there is an error because gem randomly fails +gems/bin/tiddlywiki_cp: + gem install --include-dependencies --no-rdoc --no-ri --install-dir gems tiddlywiki_cp + patch -d gems/gems/tiddlywiki_cp-0.5.3 -p1 < tiddlywiki_cp_locale2lang.patch + # ruby1.8 & rubygems backward compatibility fix for when the gems is built with ruby1.9 and + # used with ruby1.8 + # http://code.whytheluckystiff.net/list/shoes/2008/11/14/4469-re-hacking-shoes.html + perl -pi -e 's/ s.respond_to\? :required_rubygems_version=/ s.public_methods.include?("required_rubygems_version=")/' gems/specifications/*.gemspec + perl -pi -e 's/ s.respond_to\? :specification_version / s.public_methods.include?("specification_version=") /' gems/specifications/*.gemspec + +${BINDIR}/index-%.html: gems/bin/tiddlywiki_cp +${BINDIR}/index.html: gems/bin/tiddlywiki_cp +#${BINDIR}/standalone/index-%.html : gems/bin/tiddlywiki_cp + +GEMSCONTEXT=GEM_HOME=gems gems/bin/ + +EMPTY=tiddlywiki-2.3.html + +${BINDIR}/index-%.html: JpokerPlugin/* index-*/* index/* tiddlers/* markup/* gems/bin/tiddlywiki_cp + cp ${EMPTY} $@ + ${RUBY} ${GEMSCONTEXT}tiddlywiki_cp -a JpokerPlugin index-$* index tiddlers markup $@ + +${BINDIR}/index.html: ${BINDIR}/index-en.html + cp ${BINDIR}/index-en.html ${BINDIR}/index.html + +# +# Gather css, js and l10n files that are to be inlined in the TiddlyWiki +# +standalone-temp-% : markup/MarkupPostBody.tiddler ${JPOKERDIR}/js/* ${JPOKERDIR}/jquery/* ${THEMEDIR}/css/* tiddlers-standalone/* + rm -fr $@ ; mkdir $@ + # + # Parse MarkupPostBody for list of js files, copy them and create .div files. + declare -i a=1 ; sed -ne 's/.*src="\([^"]*\)".*/\1/p' < markup/MarkupPostBody.tiddler | while read file ; do printf 'title="%02d_%s" author="script" tags="excludeLists excludeSearch systemConfig"\n' $$a "$$file" > standalone-temp-$*/$${file##*/}.div ; cp $$file standalone-temp-$*/; let a++ ; done + # + # Flatten all css files to one file and create a .div file + ruby getcss.rb ${THEMEDIR}/css/jpoker.css -d $@/jpoker.css + printf 'title="JpokerStyleSheet" author="script"\n' > $@/"jpoker.css.div"; + # + # If lang is not en, convert json file to a plugin js file and create .div file + if [ -a ${LANGDIR}/jpoker-$*.json ]; then sed "1i\$$.gt.setLang('$*');$$.gt.messages.$*=" ${LANGDIR}/jpoker-$*.json > $@/"jpoker-$*.js"; printf 'title="%s-JpokerJson" author="script" tags="excludeLists excludeSearch systemConfig"\n' $* > $@/"jpoker-$*.js.div"; fi + +# +# Create standalone files with inlined CSS, JavaScript and l10n +# +${BINDIR}/standalone/images: + cp -R -f ${THEMEDIR}/css/images ${BINDIR}/standalone + +${BINDIR}/standalone/i: + cp -R -f ${THEMEDIR}/css/jpoker_jquery_ui/i ${BINDIR}/standalone + +${BINDIR}/standalone/index-%.html: JpokerPlugin/* index-*/* index/* tiddlers/* tiddlers-standalone/* standalone-temp-% gems/bin/tiddlywiki_cp ${BINDIR}/standalone/images ${BINDIR}/standalone/i + cp -f ${EMPTY} $@ + ${RUBY} ${GEMSCONTEXT}tiddlywiki_cp -a JpokerPlugin index-$* index tiddlers tiddlers-standalone/* standalone-temp-$*/* $@ + +${BINDIR}/standalone/index.html: ${BINDIR}/standalone/index-en.html + cp ${BINDIR}/standalone/index-en.html $@ + +${BINDIR}/standalone: ${STANDALONE_TW} ${BINDIR}/standalone/index.html + +cook: ${LANG_TW} ${BINDIR}/index.html ${BINDIR}/standalone
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/jpoker/sites/pokersource.eu-2009/sources/generateLangTiddlers.py Mon Apr 19 05:40:37 2010 +0200 @@ -0,0 +1,70 @@ +#!/usr/bin/python +# -*- mode: python -*- +# +# Copyright (C) 2008 Johan Euphrosine <proppy@aminche.com> +# +# This program is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 3 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program; if not, write to the Free Software +# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA. +# + +import os +import string +import uuid +import datetime + +class GenerateLangTiddlers: + def getTiddler(self, lang, langs): + def lang2wiki(l): + if l == lang: return l + elif l == 'en': return '[[en|index.html]]' + else: return '[[%s|index-%s.html]]' % (l, l) + return string.join([lang2wiki(l) for l in langs], ' | ') + + def run(self, path, time=datetime.datetime.today().strftime('%Y%m%d%H%M')): + f = open(path + '/l10n/LINGUAS') + langs = [l for l in f.read().strip().split('\n') if '#' not in l] + f.close() + for lang in langs: + directory = path + '/index-%s' % lang + if not os.path.exists(directory): + os.mkdir(directory) + fake_translation_tiddler = directory + '/FakeTranslation.tiddler' + fake_translation_tiddler_div = fake_translation_tiddler + '.div' + f = open(fake_translation_tiddler, 'w') + f.write('config.locale = "%s"; // W3C language tag' % lang) + f.close() + f = open(fake_translation_tiddler_div, 'w') + f.write('title="FakeTranslation" modifier="script" created="%s" changecount="1" tags="systemConfig"' % time) + f.close() + lang_tiddler = directory + '/lang.tiddler' + lang_tiddler_div = lang_tiddler + '.div' + skin_lang_tiddler = directory + '/skin-lang.tiddler' + skin_lang_tiddler_div = skin_lang_tiddler + '.div' + tiddler = self.getTiddler(lang, langs) + f = open(lang_tiddler, 'w') + f.write(tiddler+'<<tiddler SiteStats>>') + f.close() + f = open(lang_tiddler_div, 'w') + f.write('title="lang" modifier="script" created="%s" changecount="1"' % time) + f.close() + f = open(skin_lang_tiddler, 'w') + f.write(tiddler) + f.close() + f = open(skin_lang_tiddler_div, 'w') + f.write('title="skin-lang" modifier="script" created="%s" changecount="1"' % time) + f.close() + +if __name__ == '__main__': + g = GenerateLangTiddlers() + g.run('jpoker')
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/jpoker/sites/pokersource.eu-2009/sources/getcss.rb Mon Apr 19 05:40:37 2010 +0200 @@ -0,0 +1,92 @@ +require 'ftools' +require 'uri' +require 'optparse' +require 'ostruct' + +class String + def to_file(file_name) #:nodoc: + File.open(file_name,"w") { |f| f << self } + end +end + +class GetRecursiveCSS + + def initialize(file,outfile="") + @outfile = outfile + @out = "" + @dirname ="." + readFile(file) + end + + def readFile(filename) + if File.exist?(filename) + open(filename) do |file| + file.each_line { |line| processLine(line,filename)} + end + else + $stderr.puts("ERROR - File '#{filename}' does not exist.") + exit + end + end + + def processLine(line,filename) + if(line =~ /@import/) + file = /"(.*)"/.match(line)[1].to_s + @dirname = File.dirname(filename) + #file = File.join(@dirname,@dirname == "."? file : File.basename(file)) + file = File.join(@dirname,file) + readFile(file) + else + @out << line + end + end + + def to_s + @out.to_s + end + + def to_file + @out.to_file(@outfile) + end + +end + +class Optparse + def self.parse(args) + + options = OpenStruct.new + options.dest = "" + + opts = OptionParser.new do |opts| + opts.banner = "GetCSS" + opts.banner += "Usage: getcss.rb startfile [options]" + opts.separator "" + opts.separator "Specific options:" + + opts.on("-d", "--dest DESTINATION", "Destination path") do |dest| + options.dest = dest + end + + options.help = opts + opts.on_tail("-h", "--help", "Show this message") do + exit 64 + puts options.help + end + end + opts.parse!(args) + options + end + + def self.run(args) + options = Optparse.parse(args) + + if(args.empty?) + puts options.help + exit + else + GetRecursiveCSS.new(args[0],options.dest).to_file + end + end +end + +Optparse.run(ARGV) unless(ARGV[0] == "testing")
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/jpoker/sites/pokersource.eu-2009/sources/index-da/FakeTranslation.tiddler Mon Apr 19 05:40:37 2010 +0200 @@ -0,0 +1,1 @@ +config.locale = "da"; // W3C language tag \ No newline at end of file
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/jpoker/sites/pokersource.eu-2009/sources/index-da/FakeTranslation.tiddler.div Mon Apr 19 05:40:37 2010 +0200 @@ -0,0 +1,1 @@ +title="FakeTranslation" modifier="script" created="200811270256" changecount="1" tags="systemConfig" \ No newline at end of file
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/jpoker/sites/pokersource.eu-2009/sources/index-da/lang.tiddler Mon Apr 19 05:40:37 2010 +0200 @@ -0,0 +1,1 @@ +da | [[de|index-de.html]] | [[en|index.html]] | [[en_CA|index-en_CA.html]] | [[en_US|index-en_US.html]] | [[es|index-es.html]] | [[fi|index-fi.html]] | [[fr|index-fr.html]] | [[fr_BE|index-fr_BE.html]] | [[fr_CA|index-fr_CA.html]] | [[fr_FX|index-fr_FX.html]] | [[it|index-it.html]] | [[ja|index-ja.html]] | [[nb|index-nb.html]] | [[nl|index-nl.html]] | [[pt|index-pt.html]] | [[sv|index-sv.html]]<<tiddler SiteStats>> \ No newline at end of file
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/jpoker/sites/pokersource.eu-2009/sources/index-da/lang.tiddler.div Mon Apr 19 05:40:37 2010 +0200 @@ -0,0 +1,1 @@ +title="lang" modifier="script" created="200811270256" changecount="1" \ No newline at end of file
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/jpoker/sites/pokersource.eu-2009/sources/index-da/skin-lang.tiddler Mon Apr 19 05:40:37 2010 +0200 @@ -0,0 +1,1 @@ +da | [[de|index-de.html]] | [[en|index.html]] | [[en_CA|index-en_CA.html]] | [[en_US|index-en_US.html]] | [[es|index-es.html]] | [[fi|index-fi.html]] | [[fr|index-fr.html]] | [[fr_BE|index-fr_BE.html]] | [[fr_CA|index-fr_CA.html]] | [[fr_FX|index-fr_FX.html]] | [[it|index-it.html]] | [[ja|index-ja.html]] | [[nb|index-nb.html]] | [[nl|index-nl.html]] | [[pt|index-pt.html]] | [[sv|index-sv.html]] \ No newline at end of file
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/jpoker/sites/pokersource.eu-2009/sources/index-da/skin-lang.tiddler.div Mon Apr 19 05:40:37 2010 +0200 @@ -0,0 +1,1 @@ +title="skin-lang" modifier="script" created="200811270256" changecount="1" \ No newline at end of file
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/jpoker/sites/pokersource.eu-2009/sources/index-de/FakeTranslation.tiddler Mon Apr 19 05:40:37 2010 +0200 @@ -0,0 +1,1 @@ +config.locale = "de"; // W3C language tag \ No newline at end of file
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/jpoker/sites/pokersource.eu-2009/sources/index-de/FakeTranslation.tiddler.div Mon Apr 19 05:40:37 2010 +0200 @@ -0,0 +1,1 @@ +title="FakeTranslation" modifier="script" created="200811270256" changecount="1" tags="systemConfig" \ No newline at end of file
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/jpoker/sites/pokersource.eu-2009/sources/index-de/lang.tiddler Mon Apr 19 05:40:37 2010 +0200 @@ -0,0 +1,1 @@ +[[da|index-da.html]] | de | [[en|index.html]] | [[en_CA|index-en_CA.html]] | [[en_US|index-en_US.html]] | [[es|index-es.html]] | [[fi|index-fi.html]] | [[fr|index-fr.html]] | [[fr_BE|index-fr_BE.html]] | [[fr_CA|index-fr_CA.html]] | [[fr_FX|index-fr_FX.html]] | [[it|index-it.html]] | [[ja|index-ja.html]] | [[nb|index-nb.html]] | [[nl|index-nl.html]] | [[pt|index-pt.html]] | [[sv|index-sv.html]]<<tiddler SiteStats>> \ No newline at end of file
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/jpoker/sites/pokersource.eu-2009/sources/index-de/lang.tiddler.div Mon Apr 19 05:40:37 2010 +0200 @@ -0,0 +1,1 @@ +title="lang" modifier="script" created="200811270256" changecount="1" \ No newline at end of file
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/jpoker/sites/pokersource.eu-2009/sources/index-de/skin-lang.tiddler Mon Apr 19 05:40:37 2010 +0200 @@ -0,0 +1,1 @@ +[[da|index-da.html]] | de | [[en|index.html]] | [[en_CA|index-en_CA.html]] | [[en_US|index-en_US.html]] | [[es|index-es.html]] | [[fi|index-fi.html]] | [[fr|index-fr.html]] | [[fr_BE|index-fr_BE.html]] | [[fr_CA|index-fr_CA.html]] | [[fr_FX|index-fr_FX.html]] | [[it|index-it.html]] | [[ja|index-ja.html]] | [[nb|index-nb.html]] | [[nl|index-nl.html]] | [[pt|index-pt.html]] | [[sv|index-sv.html]] \ No newline at end of file
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/jpoker/sites/pokersource.eu-2009/sources/index-de/skin-lang.tiddler.div Mon Apr 19 05:40:37 2010 +0200 @@ -0,0 +1,1 @@ +title="skin-lang" modifier="script" created="200811270256" changecount="1" \ No newline at end of file
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/jpoker/sites/pokersource.eu-2009/sources/index-en/lang.tiddler Mon Apr 19 05:40:37 2010 +0200 @@ -0,0 +1,1 @@ +[[da|index-da.html]] | [[de|index-de.html]] | en | [[en_CA|index-en_CA.html]] | [[en_US|index-en_US.html]] | [[es|index-es.html]] | [[fi|index-fi.html]] | [[fr|index-fr.html]] | [[fr_BE|index-fr_BE.html]] | [[fr_CA|index-fr_CA.html]] | [[fr_FX|index-fr_FX.html]] | [[it|index-it.html]] | [[ja|index-ja.html]] | [[nb|index-nb.html]] | [[nl|index-nl.html]] | [[pt|index-pt.html]] | [[sv|index-sv.html]]<<tiddler SiteStats>> \ No newline at end of file
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/jpoker/sites/pokersource.eu-2009/sources/index-en/lang.tiddler.div Mon Apr 19 05:40:37 2010 +0200 @@ -0,0 +1,1 @@ +title="lang" modifier="script" created="200811270256" changecount="1" \ No newline at end of file
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/jpoker/sites/pokersource.eu-2009/sources/index-en/skin-lang.tiddler Mon Apr 19 05:40:37 2010 +0200 @@ -0,0 +1,1 @@ +[[da|index-da.html]] | [[de|index-de.html]] | en | [[en_CA|index-en_CA.html]] | [[en_US|index-en_US.html]] | [[es|index-es.html]] | [[fi|index-fi.html]] | [[fr|index-fr.html]] | [[fr_BE|index-fr_BE.html]] | [[fr_CA|index-fr_CA.html]] | [[fr_FX|index-fr_FX.html]] | [[it|index-it.html]] | [[ja|index-ja.html]] | [[nb|index-nb.html]] | [[nl|index-nl.html]] | [[pt|index-pt.html]] | [[sv|index-sv.html]] \ No newline at end of file
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/jpoker/sites/pokersource.eu-2009/sources/index-en/skin-lang.tiddler.div Mon Apr 19 05:40:37 2010 +0200 @@ -0,0 +1,1 @@ +title="skin-lang" modifier="script" created="200811270256" changecount="1" \ No newline at end of file
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/jpoker/sites/pokersource.eu-2009/sources/index-en_CA/FakeTranslation.tiddler Mon Apr 19 05:40:37 2010 +0200 @@ -0,0 +1,1 @@ +config.locale = "en_CA"; // W3C language tag \ No newline at end of file
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/jpoker/sites/pokersource.eu-2009/sources/index-en_CA/FakeTranslation.tiddler.div Mon Apr 19 05:40:37 2010 +0200 @@ -0,0 +1,1 @@ +title="FakeTranslation" modifier="script" created="200811270256" changecount="1" tags="systemConfig" \ No newline at end of file
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/jpoker/sites/pokersource.eu-2009/sources/index-en_CA/lang.tiddler Mon Apr 19 05:40:37 2010 +0200 @@ -0,0 +1,1 @@ +[[da|index-da.html]] | [[de|index-de.html]] | [[en|index.html]] | en_CA | [[en_US|index-en_US.html]] | [[es|index-es.html]] | [[fi|index-fi.html]] | [[fr|index-fr.html]] | [[fr_BE|index-fr_BE.html]] | [[fr_CA|index-fr_CA.html]] | [[fr_FX|index-fr_FX.html]] | [[it|index-it.html]] | [[ja|index-ja.html]] | [[nb|index-nb.html]] | [[nl|index-nl.html]] | [[pt|index-pt.html]] | [[sv|index-sv.html]]<<tiddler SiteStats>> \ No newline at end of file
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/jpoker/sites/pokersource.eu-2009/sources/index-en_CA/lang.tiddler.div Mon Apr 19 05:40:37 2010 +0200 @@ -0,0 +1,1 @@ +title="lang" modifier="script" created="200811270256" changecount="1" \ No newline at end of file
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/jpoker/sites/pokersource.eu-2009/sources/index-en_CA/skin-lang.tiddler Mon Apr 19 05:40:37 2010 +0200 @@ -0,0 +1,1 @@ +[[da|index-da.html]] | [[de|index-de.html]] | [[en|index.html]] | en_CA | [[en_US|index-en_US.html]] | [[es|index-es.html]] | [[fi|index-fi.html]] | [[fr|index-fr.html]] | [[fr_BE|index-fr_BE.html]] | [[fr_CA|index-fr_CA.html]] | [[fr_FX|index-fr_FX.html]] | [[it|index-it.html]] | [[ja|index-ja.html]] | [[nb|index-nb.html]] | [[nl|index-nl.html]] | [[pt|index-pt.html]] | [[sv|index-sv.html]] \ No newline at end of file
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/jpoker/sites/pokersource.eu-2009/sources/index-en_CA/skin-lang.tiddler.div Mon Apr 19 05:40:37 2010 +0200 @@ -0,0 +1,1 @@ +title="skin-lang" modifier="script" created="200811270256" changecount="1" \ No newline at end of file
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/jpoker/sites/pokersource.eu-2009/sources/index-en_US/FakeTranslation.tiddler Mon Apr 19 05:40:37 2010 +0200 @@ -0,0 +1,1 @@ +config.locale = "en_US"; // W3C language tag \ No newline at end of file
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/jpoker/sites/pokersource.eu-2009/sources/index-en_US/FakeTranslation.tiddler.div Mon Apr 19 05:40:37 2010 +0200 @@ -0,0 +1,1 @@ +title="FakeTranslation" modifier="script" created="200811270256" changecount="1" tags="systemConfig" \ No newline at end of file
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/jpoker/sites/pokersource.eu-2009/sources/index-en_US/lang.tiddler Mon Apr 19 05:40:37 2010 +0200 @@ -0,0 +1,1 @@ +[[da|index-da.html]] | [[de|index-de.html]] | [[en|index.html]] | [[en_CA|index-en_CA.html]] | en_US | [[es|index-es.html]] | [[fi|index-fi.html]] | [[fr|index-fr.html]] | [[fr_BE|index-fr_BE.html]] | [[fr_CA|index-fr_CA.html]] | [[fr_FX|index-fr_FX.html]] | [[it|index-it.html]] | [[ja|index-ja.html]] | [[nb|index-nb.html]] | [[nl|index-nl.html]] | [[pt|index-pt.html]] | [[sv|index-sv.html]]<<tiddler SiteStats>> \ No newline at end of file
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/jpoker/sites/pokersource.eu-2009/sources/index-en_US/lang.tiddler.div Mon Apr 19 05:40:37 2010 +0200 @@ -0,0 +1,1 @@ +title="lang" modifier="script" created="200811270256" changecount="1" \ No newline at end of file
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/jpoker/sites/pokersource.eu-2009/sources/index-en_US/skin-lang.tiddler Mon Apr 19 05:40:37 2010 +0200 @@ -0,0 +1,1 @@ +[[da|index-da.html]] | [[de|index-de.html]] | [[en|index.html]] | [[en_CA|index-en_CA.html]] | en_US | [[es|index-es.html]] | [[fi|index-fi.html]] | [[fr|index-fr.html]] | [[fr_BE|index-fr_BE.html]] | [[fr_CA|index-fr_CA.html]] | [[fr_FX|index-fr_FX.html]] | [[it|index-it.html]] | [[ja|index-ja.html]] | [[nb|index-nb.html]] | [[nl|index-nl.html]] | [[pt|index-pt.html]] | [[sv|index-sv.html]] \ No newline at end of file
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/jpoker/sites/pokersource.eu-2009/sources/index-en_US/skin-lang.tiddler.div Mon Apr 19 05:40:37 2010 +0200 @@ -0,0 +1,1 @@ +title="skin-lang" modifier="script" created="200811270256" changecount="1" \ No newline at end of file
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/jpoker/sites/pokersource.eu-2009/sources/index-es/FakeTranslation.tiddler Mon Apr 19 05:40:37 2010 +0200 @@ -0,0 +1,1 @@ +config.locale = "es"; // W3C language tag \ No newline at end of file
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/jpoker/sites/pokersource.eu-2009/sources/index-es/FakeTranslation.tiddler.div Mon Apr 19 05:40:37 2010 +0200 @@ -0,0 +1,1 @@ +title="FakeTranslation" modifier="script" created="200811270256" changecount="1" tags="systemConfig" \ No newline at end of file
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/jpoker/sites/pokersource.eu-2009/sources/index-es/lang.tiddler Mon Apr 19 05:40:37 2010 +0200 @@ -0,0 +1,1 @@ +[[da|index-da.html]] | [[de|index-de.html]] | [[en|index.html]] | [[en_CA|index-en_CA.html]] | [[en_US|index-en_US.html]] | es | [[fi|index-fi.html]] | [[fr|index-fr.html]] | [[fr_BE|index-fr_BE.html]] | [[fr_CA|index-fr_CA.html]] | [[fr_FX|index-fr_FX.html]] | [[it|index-it.html]] | [[ja|index-ja.html]] | [[nb|index-nb.html]] | [[nl|index-nl.html]] | [[pt|index-pt.html]] | [[sv|index-sv.html]]<<tiddler SiteStats>> \ No newline at end of file
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/jpoker/sites/pokersource.eu-2009/sources/index-es/lang.tiddler.div Mon Apr 19 05:40:37 2010 +0200 @@ -0,0 +1,1 @@ +title="lang" modifier="script" created="200811270256" changecount="1" \ No newline at end of file
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/jpoker/sites/pokersource.eu-2009/sources/index-es/skin-lang.tiddler Mon Apr 19 05:40:37 2010 +0200 @@ -0,0 +1,1 @@ +[[da|index-da.html]] | [[de|index-de.html]] | [[en|index.html]] | [[en_CA|index-en_CA.html]] | [[en_US|index-en_US.html]] | es | [[fi|index-fi.html]] | [[fr|index-fr.html]] | [[fr_BE|index-fr_BE.html]] | [[fr_CA|index-fr_CA.html]] | [[fr_FX|index-fr_FX.html]] | [[it|index-it.html]] | [[ja|index-ja.html]] | [[nb|index-nb.html]] | [[nl|index-nl.html]] | [[pt|index-pt.html]] | [[sv|index-sv.html]] \ No newline at end of file
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/jpoker/sites/pokersource.eu-2009/sources/index-es/skin-lang.tiddler.div Mon Apr 19 05:40:37 2010 +0200 @@ -0,0 +1,1 @@ +title="skin-lang" modifier="script" created="200811270256" changecount="1" \ No newline at end of file
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/jpoker/sites/pokersource.eu-2009/sources/index-fi/FakeTranslation.tiddler Mon Apr 19 05:40:37 2010 +0200 @@ -0,0 +1,1 @@ +config.locale = "fi"; // W3C language tag \ No newline at end of file
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/jpoker/sites/pokersource.eu-2009/sources/index-fi/FakeTranslation.tiddler.div Mon Apr 19 05:40:37 2010 +0200 @@ -0,0 +1,1 @@ +title="FakeTranslation" modifier="script" created="200811270256" changecount="1" tags="systemConfig" \ No newline at end of file
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/jpoker/sites/pokersource.eu-2009/sources/index-fi/lang.tiddler Mon Apr 19 05:40:37 2010 +0200 @@ -0,0 +1,1 @@ +[[da|index-da.html]] | [[de|index-de.html]] | [[en|index.html]] | [[en_CA|index-en_CA.html]] | [[en_US|index-en_US.html]] | [[es|index-es.html]] | fi | [[fr|index-fr.html]] | [[fr_BE|index-fr_BE.html]] | [[fr_CA|index-fr_CA.html]] | [[fr_FX|index-fr_FX.html]] | [[it|index-it.html]] | [[ja|index-ja.html]] | [[nb|index-nb.html]] | [[nl|index-nl.html]] | [[pt|index-pt.html]] | [[sv|index-sv.html]]<<tiddler SiteStats>> \ No newline at end of file
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/jpoker/sites/pokersource.eu-2009/sources/index-fi/lang.tiddler.div Mon Apr 19 05:40:37 2010 +0200 @@ -0,0 +1,1 @@ +title="lang" modifier="script" created="200811270256" changecount="1" \ No newline at end of file
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/jpoker/sites/pokersource.eu-2009/sources/index-fi/skin-lang.tiddler Mon Apr 19 05:40:37 2010 +0200 @@ -0,0 +1,1 @@ +[[da|index-da.html]] | [[de|index-de.html]] | [[en|index.html]] | [[en_CA|index-en_CA.html]] | [[en_US|index-en_US.html]] | [[es|index-es.html]] | fi | [[fr|index-fr.html]] | [[fr_BE|index-fr_BE.html]] | [[fr_CA|index-fr_CA.html]] | [[fr_FX|index-fr_FX.html]] | [[it|index-it.html]] | [[ja|index-ja.html]] | [[nb|index-nb.html]] | [[nl|index-nl.html]] | [[pt|index-pt.html]] | [[sv|index-sv.html]] \ No newline at end of file
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/jpoker/sites/pokersource.eu-2009/sources/index-fi/skin-lang.tiddler.div Mon Apr 19 05:40:37 2010 +0200 @@ -0,0 +1,1 @@ +title="skin-lang" modifier="script" created="200811270256" changecount="1" \ No newline at end of file
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/jpoker/sites/pokersource.eu-2009/sources/index-fr/FrenchTranslationPlugin.tiddler Mon Apr 19 05:40:37 2010 +0200 @@ -0,0 +1,409 @@ +/*** +|''Name:''|FrenchTranslationPlugin| +|''Description:''|Translation of TiddlyWiki into French| +|''Author:''|ocalTW (ocalTW (at) gmail (dot) com)| +|''Source:''|www.tiddlywiki.fr | +|''CodeRepository:''|http://svn.tiddlywiki.org/Trunk/association/locales/core/fr/locale.fr.js | +|''Version:''|2.3.0 fr| +|''Date:''|Jan 24, 2008| +|''Comments:''|Please make comments at http://groups.google.co.uk/group/TiddlyWikiDev | +|''License:''|[[Creative Commons Attribution-ShareAlike 3.0 License|http://creativecommons.org/licenses/by-sa/3.0/]] | +***/ +//{{{ +//-- +//-- Translateable strings +//-- +// Strings in "double quotes" should be translated; strings in 'single quotes' should be left alone +config.locale = "fr"; // W3C language tag +if (config.options.txtUserName == 'YourName') // do not translate this line, but do translate the next line + merge(config.options,{txtUserName: "VotreNom"}); +merge(config.tasks,{ + save: {text: "sauvegarder", tooltip: "Sauvegarde vos modifications dans ce bloc-notes TiddlyWiki", action: saveChanges}, + sync: {text: "synchroniser", tooltip: "Synchronise les modifications avec d'autres fichiers ou d'autres serveurs TiddlyWiki", content: '<<sync>>'}, + importTask: {text: "importer", tooltip: "Importe des éléments et des extensions depuis d'autres fichiers ou d'autres serveurs TiddlyWiki", content: '<<importTiddlers>>'}, + tweak: {text: "réglages", tooltip: "Adapte l'apparence et le comportement de ce bloc-notes TiddlyWiki", content: '<<options>>'}, + plugins: {text: "extensions", tooltip: "Gère les extensions déjà installées", content: '<<plugins>>'} +}); +// Options that can be set in the options panel and/or cookies +merge(config.optionsDesc,{ + txtUserName: "Nom d'utilisateur qui signe les modifications", + chkRegExpSearch: "Activer les expressions régulières pour les recherches", + chkCaseSensitiveSearch: "La recherche est sensible à la casse des mots", + chkAnimate: "Activer les animations", + chkSaveBackups: "Générer un fichier backup lors de l'enregistrement des modifications", + chkAutoSave: "Enregistrer automatiquement les modifications", + chkGenerateAnRssFeed: "Générer un flux RSS lors de l'enregistrement des modifications", + chkSaveEmptyTemplate: "Générer un fichier de démarrage initial 'empty.html' lors de l'enregistrement des modifications", + chkOpenInNewWindow: "Ouvrir un lien externe dans une nouvelle fenêtre", + chkToggleLinks: "Fermer les éléments lorsque l'on clique sur des liens qu'ils contiennent", + chkHttpReadOnly: "Masquer les caractéristiques d'édition lorsqu'il est accédé par HTTP", + chkForceMinorUpdate: "Ne modifier ni le nom de l'utilisateur ni la date lors de l'édition des éléments", + chkConfirmDelete: "Demander une confirmation lors d'une suppression d'un élément", + chkInsertTabs: "Utiliser la touche 'tab' pour insérer une tabulation au lieu de changer de champs", + txtBackupFolder: "Nom du dossier dans lequel seront conservés les backups", + txtMaxEditRows: "Nombre maximum de lignes dans les zones d'édition", + txtFileSystemCharSet: "Jeux de caractères à utiliser lors de l'enregistrement des modifications (uniquement pour Firefox/Mozilla)"}); +merge(config.messages,{ + customConfigError: "Problèmes rencontrés lors du chargement d'extensions. Consulter le 'PluginManager' (menu 'extensions') pour les détails", + pluginError: "Erreur : %0", + pluginDisabled: "L'extension a été désactivée par positionnement de l'index 'systemConfigDisable'", + pluginForced: "L'exécution a été forcée à cause de l'index 'systemConfigForce'", + pluginVersionError: "L'extension a été désactivée car elle nécessite une version plus récente de TiddlyWiki", + nothingSelected: "Aucune sélection faite. Il vous faut d'abord sélectionner au moins un item", + savedSnapshotError: "Ce bloc-notes TiddlyWiki ne semble pas conforme. Reportez-vous à http://www.tiddlywiki.com/#DownloadSoftware ", + subtitleUnknown: "(inconnu)", + undefinedTiddlerToolTip: "L'élément '%0' n'est pas encore créé.", + shadowedTiddlerToolTip: "L'élément '%0' n'est pas encore créé, mais a un contenu par défaut.", + tiddlerLinkTooltip: "%0 - %1, %2", + externalLinkTooltip: "Lien externe vers %0", + noTags: "Il n'y a pas d'éléments indexés.", + notFileUrlError: "Vous devez sauvegarder ce bloc-notes TiddlyWiki dans un fichier avant de pouvoir enregistrer vos modifications", + cantSaveError: "Sauvegarde impossible : \n- soit votre navigateur ne permet pas de sauvegarder les sauvegardes (FireFox, Internet Explorer, Safari et Opera fonctionnent s'ils sont configurés corectement),\n- soit le chemin d'accès à votre fichier contient des caractères invalides\n- soit le fichier de ce bloc-notes TiddlyWiki a été déplacé ou renommé", + invalidFileError: "Le fichier '%0' choisi ne semble pas être un TiddlyWiki valide", + backupSaved: "Sauvegarde effectuée", + backupFailed: "Echec de l'enregistrement du fichier de backup", + rssSaved: "Flux RSS sauvegardé", + rssFailed: "Echec de l'enregistrement du fichier de flux RSS", + emptySaved: "Fichier de démarrage initial 'empty.html' enregistré", + emptyFailed: "Echec de l'enregistrement du fichier de démarrage initial 'empty.html'", + mainSaved: "Fichier principal du bloc-notes TiddlyWiki enregistré", + mainFailed: "Echec de l'enregistrement du fichier principal TiddlyWiki. Vos modifications n'ont pas été enregistrées", + macroError: "Erreur dans la macro <<\%0>>", + macroErrorDetails: "Erreur d'exécution de la macro <<\%0>>:\n%1", + missingMacro: "Macro non trouvée", + overwriteWarning: "Il y a déjà un élément nommé '%0'. Confirmez pour le remplacer", + unsavedChangesWarning: "ATTENTION! Les dernières modifications de ce bloc-notes TiddlyWiki n'ont pas été enregistrées.\n\nOK pour les enregistrer\nANNULER pour les abandonner", + confirmExit: "--------------------------------\n\nCertaines modifications n'ont pas été enregistrées dans ce bloc-notes TiddlyWiki.\n\n Si vous quittez maintenant vous les perdrez définitievement.\n\n--------------------------------", + saveInstructions: "Sauvegarder", + unsupportedTWFormat: "Format de TiddlyWiki non supporté '%0'", + tiddlerSaveError: "Erreur lors de l'enregistrement de l'élément '%0'", + tiddlerLoadError: "Erreur lors du chargement de l'élément '%0'", + wrongSaveFormat: "Impossible d'enregistrer avec le format '%0'. Le format standard est utilisé pour sauvegarder.", + invalidFieldName: "Nom de champ invalide %0", + fieldCannotBeChanged: "Le champ '%0' ne peut être changé", + loadingMissingTiddler: "Tentative de récupération de l'élément '%0' à partir du serveur '%1' server à :\n\n'%2' dans l'espace de travail '%3'"}); +merge(config.messages.messageClose,{ + text: "fermer", + tooltip: "fermer cette zone de messages"}); +config.messages.backstage = { + open: {text: "barre de services", tooltip: "Ouvre la barre de services pour effectuer des tâches de rédaction et d'edition"}, + close: {text: "fermer", tooltip: "Fermer la barre de services"}, + prompt: "services : ", + decal: { + edit: {text: "éditer", tooltip: "Editer l'élément '%0'"} + } +}; +config.messages.listView = { + tiddlerTooltip: "Cliquer pour une vue complète de cet élément", + previewUnavailable: "(aperçu non disponible)" +}; +config.messages.dates.months = ["janvier", "février", "mars", "avril", "mai", "juin", "juillet", "août", "septembre", "octobre", "novembre","décembre"]; +config.messages.dates.days = ["dimanche", "lundi","mardi", "mercredi", "jeudi", "vendredi", "samedi"]; + +config.messages.dates.shortDays = ["dim.", "lun.", "mar.", "mer.", "jeu.", "ven.", "sam."]; +// suffixes pour les dates, par exemple "1er", +config.messages.dates.daySuffixes = ["er","","","","","","","","","", + "","","","","","","","","","", + "","","","","","","","","","", + ""]; +config.messages.dates.am = "matin"; +config.messages.dates.pm = "après-midi"; +merge(config.messages.tiddlerPopup,{ + }); +merge(config.views.wikified.tag,{ + labelNoTags: "pas d'index", + labelTags: "Index : ", + openTag: "Ouvrir l'index '%0'", + tooltip: "Afficher les éléments indexés avec '%0'", + openAllText: "Tout ouvrir", + openAllTooltip: "Ouvrir tous les éléments avec cet index", + popupNone: "Pas d'autres éléments indexés avec '%0'"}); +merge(config.views.wikified,{ + defaultText: "L'élément '%0' n'a pas encore été créé. Double-cliquer pour le créer.", + defaultModifier: "(manquant)", + shadowModifier: "(élément masqué installé par défaut)", + dateFormat: "DD MMM YYYY", // Utilisé pour changer le format de la date (ici : "YYYY MMM DD"), ne pas changer les lettres D (jour), M (mois) ou Y (année) + createdPrompt: "créé le"}); +merge(config.views.editor,{ + tagPrompt: "Mettre un espace entre chaque index, si nécessaire [[entre doubles crochets]], ou associer un index existant", + defaultText: "Entrer le texte de '%0'"}); +merge(config.views.editor.tagChooser,{ + text: "index", + tooltip: "Sélectionner les index existants à associer à cet élément", + popupNone: "Aucun d'index déjà été défini", + tagTooltip: "Associer l'index '%0'"}); +merge(config.messages,{ + sizeTemplates: + [ + {unit: 1024*1024*1024, template: "%0\u00a0GB"}, + {unit: 1024*1024, template: "%0\u00a0MB"}, + {unit: 1024, template: "%0\u00a0KB"}, + {unit: 1, template: "%0\u00a0B"} + ]}); +merge(config.macros.search,{ + label: "chercher", + prompt: "Rechercher dans ce bloc-notes TiddlyWiki", + accessKey: "F", + successMsg: "%0 éléments répondent au critère %1", + failureMsg: "Aucun élément ne répond au critère %0"}); +merge(config.macros.tagging,{ + label: "éléments indexés : ", + labelNotTag: "pas d'index", + tooltip: "Afficher les éléments indexés avec '%0'"}); +merge(config.macros.timeline,{ + dateFormat: "DD MMM YYYY"}); // Utilisé pour changer le format de la date (ici : "YYYY MMM DD"), ne pas changer les lettres D (jour), M (mois) ou Y (année) +merge(config.macros.allTags,{ + tooltip: "Afficher les éléments avec comme index '%0'", + noTags: "Aucun élément n'a d'index"}); +config.macros.list.all.prompt = "Tous les éléments classés par ordre alphabétique"; +config.macros.list.missing.prompt = "Eléments référencés par un lien mais qui ne sont pas non créés"; +config.macros.list.orphans.prompt = "Eléments orphelins qui ne pas référencés par un lien dans d'autres éléments"; +config.macros.list.shadowed.prompt = "Eléments masqués avec toujours leur contenu initial du modèle de référence TiddlyWiki"; +config.macros.list.touched.prompt = "Eléments ayant été modifiés localement"; +merge(config.macros.closeAll,{ + label: "tout fermer", + prompt: "Fermer tous les éléments affichés (sauf ceux en cours d'édition)"}); +merge(config.macros.permaview,{ + label: "permalien", + prompt: "Lien vers l'URL qui référence la page avec tous les éléments actuellement affichés"}); +merge(config.macros.saveChanges,{ + label: "sauvegarde des modifications", + prompt: "Sauvegarde tous les éléments du bloc-notes TiddlyWiki", + accessKey: "S"}); +merge(config.macros.newTiddler,{ + label: "nouvel élément", + prompt: "Crée un nouvel élément", + title: "Nouvel Elément", + accessKey: "N"}); +merge(config.macros.newJournal,{ + label: "nouveau journal", + prompt: "Crée un nouvel élément avec la date courante", + accessKey: "J"}); +merge(config.macros.options,{ + wizardTitle: "Réglage des options avancées", + step1Title: "Ces options sont enregistrées dans des cookies de votre navigateur", + step1Html: "<input type='hidden' name='markList'></input><br><input type='checkbox' checked='false' name='chkUnknown'>Afficher les options inconnues</input>", + unknownDescription: "//(inconnu)//", + listViewTemplate: { + columns: [ + {name: 'Option', field: 'option', title: "Option", type: 'String'}, + {name: 'Description', field: 'description', title: "Description", type: 'WikiText'}, + {name: 'Name', field: 'name', title: "Nom", type: 'String'} + ], + rowClasses: [ + {className: 'lowlight', field: 'lowlight'} + ]} + }); +merge(config.macros.plugins,{ + wizardTitle: "Gestionnaire des extensions", + step1Title: "Extensions actuellement chargées", + step1Html: "<input type='hidden' name='markList'></input>", // DO NOT TRANSLATE + skippedText: "(Cette extension n'a pas été éxecutée car elle a été ajoutée après le démarrage de ce bloc-notes TiddlyWiki)", + noPluginText: "Aucune extension n'est installée", + confirmDeleteText: "Etes vous sûr(e) de vouloir supprimer ces extensions :\n\n%0", + removeLabel: "Supprimer l'index 'systemConfig'", + removePrompt: "Supprime l'index 'systemConfig'", + deleteLabel: "supprimer", + deletePrompt: "Suppression définititve de ces éléments", + listViewTemplate: { + columns: [ + {name: 'Selected', field: 'Selected', rowName: 'title', type: 'Selector'}, + {name: 'Tiddler', field: 'tiddler', title: "Elément", type: 'Tiddler'}, + {name: 'Size', field: 'size', tiddlerLink: 'size', title: "Taille", type: 'Size'}, + {name: 'Forced', field: 'forced', title: "Exécution forcée", tag: 'systemConfigForce', type: 'TagCheckbox'}, + {name: 'Disabled', field: 'disabled', title: "Désactivé", tag: 'systemConfigDisable', type: 'TagCheckbox'}, + {name: 'Executed', field: 'executed', title: "Chargé", type: 'Boolean', trueText: "Yes", falseText: "No"}, + {name: 'Startup Time', field: 'startupTime', title: "Durée de lancement", type: 'String'}, + {name: 'Error', field: 'error', title: "Etat", type: 'Boolean', trueText: "Error", falseText: "OK"}, + {name: 'Log', field: 'log', title: "Log", type: 'StringList'} + ], + rowClasses: [ + {className: 'error', field: 'error'}, + {className: 'warning', field: 'warning'} + ]} + }); +merge(config.macros.toolbar,{ + moreLabel: "(suite)", + morePrompt: "Affiche des commandes supplémentaires" + }); +merge(config.macros.refreshDisplay,{ + label: "réafficher", + prompt: "Réaffiche le contenu complet du bloc-notes TiddlyWiki" + }); +merge(config.macros.importTiddlers,{ + readOnlyWarning: "Il n'est pas possible d'importer dans un bloc-notes TiddlyWiki qui n'est qu'en lecture seule. Essayez de l'ouvrir en local à partir d'une URL 'file://'", + wizardTitle: "Importer des éléments depuis un autre fichier ou un serveur", + step1Title: "Etape 1 : localiser le serveur ou le ficher du bloc-notes TiddlyWiki à importer", + step1Html: "Spécifier le type du serveur : <select name='selTypes'><option value=''>Choisir ...</option></select><br>Indiquer l'URL ou le chemin : <input type='text' size=50 name='txtPath'><br>... ou rechercher un fichier en local : <input type='file' size=50 name='txtBrowse'><br><hr>... ou selectionner une source pré-définie : <select name='selFeeds'><option value=''>Choisir ...</option></select>", + openLabel: "ouvrir", + openPrompt: "Ouvre la connexion vers ce fichier ou ce serveur", + openError: "Il y a des erreurs lors de l'accès au fichier contenant le bloc-notes TiddlyWiki", + statusOpenHost: "Hôte en cours d'ouverture", + statusGetWorkspaceList: "Obtenir la liste des espaces de travail disponibles", + step2Title: "Etape 2 : choisir l'espace de travail", + step2Html: "Entrer le nom d'un espace de travail : <input type='text' size=50 name='txtWorkspace'><br>... ou selectionner un espace de travail : <select name='selWorkspace'><option value=''>Choisir ...</option></select>", + cancelLabel: "annuler", + cancelPrompt: "Annule cette importation", + statusOpenWorkspace: "Ouverture de l'espace de travail", + statusGetTiddlerList: "Obtenir la liste des éléments disponibles", + step3Title: "Etape 3: Choisir les éléments à importer", + step3Html: "<input type='hidden' name='markList'></input><br><input type='checkbox' checked='true' name='chkSync'>Conserver ces éléments liés à ce serveur pour pouvoir synchroniser avec les changements ultérieurs</input><br><input type='checkbox' name='chkSave'>Enregistrer les détails de ce serveur dans un élément 'systemServer' nommé :</input> <input type='text' size=25 name='txtSaveTiddler'>", + importLabel: "importer", + importPrompt: "Importe ces éléments", + confirmOverwriteText: "Etes-vous sûr de vouloir écraser ces éléments :\n\n%0", + step4Title: "Etape 4 : Importe %0 élément(s)", + step4Html: "<input type='hidden' name='markReport'></input>", // DO NOT TRANSLATE + doneLabel: "fait", + donePrompt: "Ferme cet assistant", + statusDoingImport: "Importe ces éléments", + statusDoneImport: "Tous les éléments ont été importés", + systemServerNamePattern: "%2 sur %1", + systemServerNamePatternNoWorkspace: "%1", + confirmOverwriteSaveTiddler: "Cet élément '%0' existe déjà. Cliquer sur 'OK' pour l'écraser avec les caractéristiques de ce serveur ou 'Annule' pour les conserver en l'état", + serverSaveTemplate: "|''Type :''|%0|\n|''URL :''|%1|\n|''Espace de travail :''|%2|\n\nCet élément avait été automatiquement créé pour enregistrer les détails de ce serveur", + serverSaveModifier: "(Système)", + listViewTemplate: { + columns: [ + {name: 'Selected', field: 'Selected', rowName: 'title', type: 'Selector'}, + {name: 'Tiddler', field: 'tiddler', title: "Elément", type: 'Tiddler'}, + {name: 'Size', field: 'size', tiddlerLink: 'size', title: "Taille", type: 'Size'}, + {name: 'Tags', field: 'tags', title: "Index", type: 'Tags'} + ], + rowClasses: [ + ]} + }); +merge(config.macros.sync,{ + listViewTemplate: { + columns: [ + {name: 'Selected', field: 'selected', rowName: 'title', type: 'Selector'}, + {name: 'Tiddler', field: 'tiddler', title: "Elément", type: 'Tiddler'}, + {name: 'Server Type', field: 'serverType', title: "Type de serveur", type: 'String'}, + {name: 'Server Host', field: 'serverHost', title: "Hôte serveur", type: 'String'}, + {name: 'Server Workspace', field: 'serverWorkspace', title: "Espace de travail du serveur", type: 'String'}, + {name: 'Status', field: 'status', title: "Etat de la synchronisation", type: 'String'}, + {name: 'Server URL', field: 'serverUrl', title: "URL du serveur", text: "View", type: 'Link'} + ], + rowClasses: [ + ], + buttons: [ + {caption: "Synchronise ces éléments", name: 'sync'} + ]}, + wizardTitle: "Synchronisation avec des serveurs externes et des fichiers", + step1Title: "Choisir les éléments à synchroniser", + step1Html: "<input type='hidden' name='markList'></input>", // DO NOT TRANSLATE + syncLabel: "synchroniser", + syncPrompt: "Synchronise ces éléments", + hasChanged: "Modifié pendant la déconnection", + hasNotChanged: "Non modifié pendant la déconnexion", + syncStatusList: { + none: {text: "...", color: "transparent"}, + changedServer: {text: "Modifié sur le serveur", color: '#80ff80'}, + changedLocally: {text: "Modifié pendant la déconnexion", color: '#80ff80'}, + changedBoth: {text: "Changé pendant la déconnexion et sur le serveur", color: '#ff8080'}, + notFound: {text: "Non trouvé sur le serveur", color: '#ffff80'}, + putToServer: {text: "Modifications enregistrées sur le serveur", color: '#ff80ff'}, + gotFromServer: {text: "Récupéré les modifications depuis le serveur", color: '#80ffff'} + } + }); +merge(config.commands.closeTiddler,{ + text: "fermer", + tooltip: "Ferme cet élément"}); +merge(config.commands.closeOthers,{ + text: "isoler", + tooltip: "Ferme tous les autres éléments"}); +merge(config.commands.editTiddler,{ + text: "éditer", + tooltip: "Editer cet élément", + readOnlyText: "voir", + readOnlyTooltip: "Affiche la source de cet élément"}); +merge(config.commands.saveTiddler,{ + text: "valider", + tooltip: "Valide les modifications effectuées sur cet élément"}); +merge(config.commands.cancelTiddler,{ + text: "annuler", + tooltip: "Abandon des modifications effectuées sur cet élément", + warning: "Confirmez-vous l'abandon de vos modifications de l'élément '%0'?", + readOnlyText: "retour", + readOnlyTooltip: "Revenir à l'affichage normal de cet élément"}); +merge(config.commands.deleteTiddler,{ + text: "supprimer", + tooltip: "Supprime cet élément", + warning: "Confirmez-vous la suppression de '%0'?"}); +merge(config.commands.permalink,{ + text: "permalien", + tooltip: "Permalien pour cet élément"}); +merge(config.commands.references,{ + text: "références", + tooltip: "Affiche les éléments qui font référence à l'élément courant", + popupNone: "Pas de référent(s)"}); +merge(config.commands.jump,{ + text: "aller vers", + tooltip: "Permet d'atteindre l'un des éléments déjà ouvert dans le bloc-notes TiddlyWiki courant"}); +merge(config.commands.syncing,{ + text: "synchronisation", + tooltip: "Contrôle la synchronisation de cet élément avec un serveur ou un fichier externe", + currentlySyncing: "<div>Actuellement en cours de synchronisation avec <span class='popupHighlight'>'%0'</span> vers :</"+"div><div>host: <span class='popupHighlight'>%1</span></"+"div><div>workspace: <span class='popupHighlight'>%2</span></"+"div>", // Note escaping of closing <div> tag + notCurrentlySyncing: "Pas de synchronisation en cours", + captionUnSync: "Arrête la synchronisation de cet élément", + chooseServer: "Synchronise cet élément avec un autre serveur :", + currServerMarker: "\u25cf ", + notCurrServerMarker: " "}); +merge(config.commands.fields,{ + text: "champs", + tooltip: "Affiche les champs supplémentaires de cet élément", + emptyText: "Il n'y a pas de champs supplémentaires pour cet élément", + listViewTemplate: { + columns: [ + {name: 'Field', field: 'field', title: "Champ", type: 'String'}, + {name: 'Value', field: 'value', title: "Valeur", type: 'String'} + ], + rowClasses: [ + ], + buttons: [ + ]}}); +merge(config.shadowTiddlers,{ + DefaultTiddlers: "GettingStarted", + MainMenu: "GettingStarted", + TranslatedGettingStarted: "Pour utiliser ce //bloc-notes// TiddlyWiki, commencez par modifier les //éléments// suivants (''//tiddlers//'' dans le jargon TiddlyWiki) :\n* __SiteTitle__ et __SiteSubtitle__ : Le titre et le sous-titre de ce //bloc-notes// TiddlyWiki. Après modification, ils apparaîtront aussi dans la barre de titre du navigateur)\n* __MainMenu__: Le menu principal (généralement à gauche)\n* __DefaultTiddlers__ : La liste les noms des //éléments// que vous voulez voir s'afficher à l'ouverture de ce //bloc-notes// TiddlyWiki. \n* Entrez également le ''nom d'utilisateur'' avec lequel seront signés vos ajouts ou vos modifications dans les //éléments// :\n** <<option txtUserName>>", + SiteTitle: "Mon TiddlyWiki", + SiteSubtitle: "organiseur personnel web interactif et autoporteur, voir http://www.tiddlywiki.com pour le site TiddlyWiki original en anglais", + SiteUrl: "http://www.tiddlywiki.com/", + OptionsPanel: "Les options de configuration de ce bloc-notes TiddlyWiki sont sauvegardées dans des cookies de votre navigateur.\n\nNom d'utilisateur avec lequel seront signés vos ajouts ou vos modifications dans les éléments (par exemple Jeremy_Ruston).\n\n<<option txtUserName>>\n<<option chkSaveBackups>> Backup de chaque version\n<<option chkAutoSave>> Backup à chaque modification\n<<option chkRegExpSearch>> Expression régulières dans les recherches\n<<option chkCaseSensitiveSearch>> Respecter la casse dans les recherches\n<<option chkAnimate>> Animations à l'ouverture des éléments\n", + SideBarOptions: '<<search>><<closeAll>><<permaview>><<newTiddler>><<newJournal "DD MMM YYYY" "journal">><<saveChanges>><<slider chkSliderOptionsPanel OptionsPanel "options »" "Modifie les options supplémentaires de ce bloc-notes ~TiddlyWiki">>', + SideBarTabs: '<<tabs txtMainTab "Chrono" "Affichage chronologique" TabTimeline "Alpha" "Liste alphabétique des éléments" TabAll "Index" "Liste de tous les index" TabTags "Autres" "Autres listes" TabMore>>', + TabMore: '<<tabs txtMoreTab "Manquants" "Eléments manquants" TabMoreMissing "Orphelins" "Eléments orphelins" TabMoreOrphans "Masqués" "Eléments masqués" TabMoreShadowed>>'}); +merge(config.annotations,{ + AdvancedOptions: "Cet élément masqué permet d'accéder à différentes options avancées", + ColorPalette: "Les valeurs de cet élément masqué détermine la palette des couleurs utilisées pour l'interface utilisateur de ~TiddlyWiki", + DefaultTiddlers: "Les éléments enumérés dans cet élément seront automatiquement affichés au démarrage de ~TiddlyWiki", + EditTemplate: "Le gabarit HTML dans cet élément masqué détermine la manière dont les éléments sont présentés lorsqu'ils sont édités", + GettingStarted: "Cet élément fournit quelques instructions basiques pour utiliser un bloc-notes ~TiddlyWiki", + ImportTiddlers: "Cet élément par défaut fournit l'accès à l'interface d'importation d'éléments", + MainMenu: "Le contenu de cet élément défini le menu de la colonne de gauche de cette feuille HTML", + MarkupPreHead: "Le contenu de cet élément est inséré au début de la section <head> du fichier HTML de ce bloc-notes ~TiddlyWiki", + MarkupPostHead: "Le contenu de cet élément est inséré à la fin de la section <head> du fichier HTML de ce bloc-notes ~TiddlyWiki", + MarkupPreBody: "Le contenu de cet élément est inséré au début de la section <body> du fichier HTML de ce bloc-notes ~TiddlyWiki", + MarkupPostBody: "Le contenu de cet élément est inséré à la fin de la section <body> du fichier HTML de ce bloc-notes ~TiddlyWiki, immédiatement avant le bloc 'script'", + OptionsPanel: "Le contenu de cet élément par défaut est utilisé par le panneau déroulant des options dans la colonne de droite de cette feuille HTML", + PageTemplate: "Le gabarit HTML de cet élément masqué détermine la mise en page générale de ce bloc-notes ~TiddlyWiki", + PluginManager: "Cet élément masqué permet d'accéder au gestionnaire d'extensions", + SideBarOptions: "Le contenu de cet élément par défaut est utilisé par le panneau des options dans la barre de droite de la feuille HTML", + SideBarTabs: "Le contenu de cet élément par défaut est utilisé par le panneau des onglets dans la barre de droite de la feuille HTML", + SiteSubtitle: "Cet élément est utilisé comme deuxième partie du titre de la page", + SiteTitle: "Cet élément est utilisé comme première partie du titre de la page", + SiteUrl: "Cet élément par défaut doit contenir l'URL complet du site utilisé pour la publication", + StyleSheetColours: "Cet élément par défaut contient des définitions CSS concernant les couleurs des composants de page", + StyleSheet: "Cet éléments par défaut contient des définitions CSS personnalisées", + StyleSheetLayout: "Cet éléments par défaut contient des définitions CSS concernant la mise en page de composants", + StyleSheetLocale: "Cet élément par défaut contient des définitions CSS concernant la traduction ", + StyleSheetPrint: "Cet élément par défaut contient des définitions CSS pour l'impression", + TabAll: "Le contenu de cet élément par défaut est utilisé par le panneau de l'onglet 'Alpha' dans la colonne de droite de cette feuille HTML", + TabMore: "Cet élément par défaut contient le contenu de l'onglet 'Suite' dans la barre de droite de l'écran", + TabMoreMissing: "Cet élément par défaut contient le contenu de l'onglet 'Manquants' dans la colonne de droite de cette feuille HTML", + TabMoreOrphans: "Cet élément par défaut contient le contenu de l'onglet 'Orphelins' dans la colonne de droite de cette feuille HTML", + TabMoreShadowed: "Cet élément par défaut contient le contenu de l'onglet 'Défaut' dans la colonne de droite de cette feuille HTML", + TabTags: "Cet élément par défaut contient le contenu de l'onglet 'Index' dans la colonne de droite de cette feuille HTML", + TabTimeline: "Cet élément par défaut contient le contenu de l'onglet 'Chrono' dans la colonne de droite de cette feuille HTML", + ViewTemplate: "Le gabarit HTML dans cet élément par défaut determine comment sont présentés les éléments" + }); +//}}} \ No newline at end of file
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/jpoker/sites/pokersource.eu-2009/sources/index-fr/FrenchTranslationPlugin.tiddler.div Mon Apr 19 05:40:37 2010 +0200 @@ -0,0 +1,1 @@ +title="FrenchTranslationPlugin" modifier="ocalTW" created="200712311200" tags="systemConfig" \ No newline at end of file
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/jpoker/sites/pokersource.eu-2009/sources/index-fr/lang.tiddler Mon Apr 19 05:40:37 2010 +0200 @@ -0,0 +1,1 @@ +[[da|index-da.html]] | [[de|index-de.html]] | [[en|index.html]] | [[en_CA|index-en_CA.html]] | [[en_US|index-en_US.html]] | [[es|index-es.html]] | [[fi|index-fi.html]] | fr | [[fr_BE|index-fr_BE.html]] | [[fr_CA|index-fr_CA.html]] | [[fr_FX|index-fr_FX.html]] | [[it|index-it.html]] | [[ja|index-ja.html]] | [[nb|index-nb.html]] | [[nl|index-nl.html]] | [[pt|index-pt.html]] | [[sv|index-sv.html]]<<tiddler SiteStats>> \ No newline at end of file
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/jpoker/sites/pokersource.eu-2009/sources/index-fr/lang.tiddler.div Mon Apr 19 05:40:37 2010 +0200 @@ -0,0 +1,1 @@ +title="lang" modifier="script" created="200811270256" changecount="1" \ No newline at end of file
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/jpoker/sites/pokersource.eu-2009/sources/index-fr/skin-lang.tiddler Mon Apr 19 05:40:37 2010 +0200 @@ -0,0 +1,1 @@ +[[da|index-da.html]] | [[de|index-de.html]] | [[en|index.html]] | [[en_CA|index-en_CA.html]] | [[en_US|index-en_US.html]] | [[es|index-es.html]] | [[fi|index-fi.html]] | fr | [[fr_BE|index-fr_BE.html]] | [[fr_CA|index-fr_CA.html]] | [[fr_FX|index-fr_FX.html]] | [[it|index-it.html]] | [[ja|index-ja.html]] | [[nb|index-nb.html]] | [[nl|index-nl.html]] | [[pt|index-pt.html]] | [[sv|index-sv.html]] \ No newline at end of file
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/jpoker/sites/pokersource.eu-2009/sources/index-fr/skin-lang.tiddler.div Mon Apr 19 05:40:37 2010 +0200 @@ -0,0 +1,1 @@ +title="skin-lang" modifier="script" created="200811270256" changecount="1" \ No newline at end of file
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/jpoker/sites/pokersource.eu-2009/sources/index-fr_BE/FakeTranslation.tiddler Mon Apr 19 05:40:37 2010 +0200 @@ -0,0 +1,1 @@ +config.locale = "fr_BE"; // W3C language tag \ No newline at end of file
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/jpoker/sites/pokersource.eu-2009/sources/index-fr_BE/FakeTranslation.tiddler.div Mon Apr 19 05:40:37 2010 +0200 @@ -0,0 +1,1 @@ +title="FakeTranslation" modifier="script" created="200811270256" changecount="1" tags="systemConfig" \ No newline at end of file
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/jpoker/sites/pokersource.eu-2009/sources/index-fr_BE/lang.tiddler Mon Apr 19 05:40:37 2010 +0200 @@ -0,0 +1,1 @@ +[[da|index-da.html]] | [[de|index-de.html]] | [[en|index.html]] | [[en_CA|index-en_CA.html]] | [[en_US|index-en_US.html]] | [[es|index-es.html]] | [[fi|index-fi.html]] | [[fr|index-fr.html]] | fr_BE | [[fr_CA|index-fr_CA.html]] | [[fr_FX|index-fr_FX.html]] | [[it|index-it.html]] | [[ja|index-ja.html]] | [[nb|index-nb.html]] | [[nl|index-nl.html]] | [[pt|index-pt.html]] | [[sv|index-sv.html]]<<tiddler SiteStats>> \ No newline at end of file
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/jpoker/sites/pokersource.eu-2009/sources/index-fr_BE/lang.tiddler.div Mon Apr 19 05:40:37 2010 +0200 @@ -0,0 +1,1 @@ +title="lang" modifier="script" created="200811270256" changecount="1" \ No newline at end of file
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/jpoker/sites/pokersource.eu-2009/sources/index-fr_BE/skin-lang.tiddler Mon Apr 19 05:40:37 2010 +0200 @@ -0,0 +1,1 @@ +[[da|index-da.html]] | [[de|index-de.html]] | [[en|index.html]] | [[en_CA|index-en_CA.html]] | [[en_US|index-en_US.html]] | [[es|index-es.html]] | [[fi|index-fi.html]] | [[fr|index-fr.html]] | fr_BE | [[fr_CA|index-fr_CA.html]] | [[fr_FX|index-fr_FX.html]] | [[it|index-it.html]] | [[ja|index-ja.html]] | [[nb|index-nb.html]] | [[nl|index-nl.html]] | [[pt|index-pt.html]] | [[sv|index-sv.html]] \ No newline at end of file
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/jpoker/sites/pokersource.eu-2009/sources/index-fr_BE/skin-lang.tiddler.div Mon Apr 19 05:40:37 2010 +0200 @@ -0,0 +1,1 @@ +title="skin-lang" modifier="script" created="200811270256" changecount="1" \ No newline at end of file
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/jpoker/sites/pokersource.eu-2009/sources/index-fr_CA/FakeTranslation.tiddler Mon Apr 19 05:40:37 2010 +0200 @@ -0,0 +1,1 @@ +config.locale = "fr_CA"; // W3C language tag \ No newline at end of file
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/jpoker/sites/pokersource.eu-2009/sources/index-fr_CA/FakeTranslation.tiddler.div Mon Apr 19 05:40:37 2010 +0200 @@ -0,0 +1,1 @@ +title="FakeTranslation" modifier="script" created="200811270256" changecount="1" tags="systemConfig" \ No newline at end of file
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/jpoker/sites/pokersource.eu-2009/sources/index-fr_CA/lang.tiddler Mon Apr 19 05:40:37 2010 +0200 @@ -0,0 +1,1 @@ +[[da|index-da.html]] | [[de|index-de.html]] | [[en|index.html]] | [[en_CA|index-en_CA.html]] | [[en_US|index-en_US.html]] | [[es|index-es.html]] | [[fi|index-fi.html]] | [[fr|index-fr.html]] | [[fr_BE|index-fr_BE.html]] | fr_CA | [[fr_FX|index-fr_FX.html]] | [[it|index-it.html]] | [[ja|index-ja.html]] | [[nb|index-nb.html]] | [[nl|index-nl.html]] | [[pt|index-pt.html]] | [[sv|index-sv.html]]<<tiddler SiteStats>> \ No newline at end of file
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/jpoker/sites/pokersource.eu-2009/sources/index-fr_CA/lang.tiddler.div Mon Apr 19 05:40:37 2010 +0200 @@ -0,0 +1,1 @@ +title="lang" modifier="script" created="200811270256" changecount="1" \ No newline at end of file
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/jpoker/sites/pokersource.eu-2009/sources/index-fr_CA/skin-lang.tiddler Mon Apr 19 05:40:37 2010 +0200 @@ -0,0 +1,1 @@ +[[da|index-da.html]] | [[de|index-de.html]] | [[en|index.html]] | [[en_CA|index-en_CA.html]] | [[en_US|index-en_US.html]] | [[es|index-es.html]] | [[fi|index-fi.html]] | [[fr|index-fr.html]] | [[fr_BE|index-fr_BE.html]] | fr_CA | [[fr_FX|index-fr_FX.html]] | [[it|index-it.html]] | [[ja|index-ja.html]] | [[nb|index-nb.html]] | [[nl|index-nl.html]] | [[pt|index-pt.html]] | [[sv|index-sv.html]] \ No newline at end of file
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/jpoker/sites/pokersource.eu-2009/sources/index-fr_CA/skin-lang.tiddler.div Mon Apr 19 05:40:37 2010 +0200 @@ -0,0 +1,1 @@ +title="skin-lang" modifier="script" created="200811270256" changecount="1" \ No newline at end of file
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/jpoker/sites/pokersource.eu-2009/sources/index-fr_FX/FakeTranslation.tiddler Mon Apr 19 05:40:37 2010 +0200 @@ -0,0 +1,1 @@ +config.locale = "fr_FX"; // W3C language tag \ No newline at end of file
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/jpoker/sites/pokersource.eu-2009/sources/index-fr_FX/FakeTranslation.tiddler.div Mon Apr 19 05:40:37 2010 +0200 @@ -0,0 +1,1 @@ +title="FakeTranslation" modifier="script" created="200811270256" changecount="1" tags="systemConfig" \ No newline at end of file
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/jpoker/sites/pokersource.eu-2009/sources/index-fr_FX/lang.tiddler Mon Apr 19 05:40:37 2010 +0200 @@ -0,0 +1,1 @@ +[[da|index-da.html]] | [[de|index-de.html]] | [[en|index.html]] | [[en_CA|index-en_CA.html]] | [[en_US|index-en_US.html]] | [[es|index-es.html]] | [[fi|index-fi.html]] | [[fr|index-fr.html]] | [[fr_BE|index-fr_BE.html]] | [[fr_CA|index-fr_CA.html]] | fr_FX | [[it|index-it.html]] | [[ja|index-ja.html]] | [[nb|index-nb.html]] | [[nl|index-nl.html]] | [[pt|index-pt.html]] | [[sv|index-sv.html]]<<tiddler SiteStats>> \ No newline at end of file
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/jpoker/sites/pokersource.eu-2009/sources/index-fr_FX/lang.tiddler.div Mon Apr 19 05:40:37 2010 +0200 @@ -0,0 +1,1 @@ +title="lang" modifier="script" created="200811270256" changecount="1" \ No newline at end of file
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/jpoker/sites/pokersource.eu-2009/sources/index-fr_FX/skin-lang.tiddler Mon Apr 19 05:40:37 2010 +0200 @@ -0,0 +1,1 @@ +[[da|index-da.html]] | [[de|index-de.html]] | [[en|index.html]] | [[en_CA|index-en_CA.html]] | [[en_US|index-en_US.html]] | [[es|index-es.html]] | [[fi|index-fi.html]] | [[fr|index-fr.html]] | [[fr_BE|index-fr_BE.html]] | [[fr_CA|index-fr_CA.html]] | fr_FX | [[it|index-it.html]] | [[ja|index-ja.html]] | [[nb|index-nb.html]] | [[nl|index-nl.html]] | [[pt|index-pt.html]] | [[sv|index-sv.html]] \ No newline at end of file
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/jpoker/sites/pokersource.eu-2009/sources/index-fr_FX/skin-lang.tiddler.div Mon Apr 19 05:40:37 2010 +0200 @@ -0,0 +1,1 @@ +title="skin-lang" modifier="script" created="200811270256" changecount="1" \ No newline at end of file
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/jpoker/sites/pokersource.eu-2009/sources/index-it/FakeTranslation.tiddler Mon Apr 19 05:40:37 2010 +0200 @@ -0,0 +1,1 @@ +config.locale = "it"; // W3C language tag \ No newline at end of file
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/jpoker/sites/pokersource.eu-2009/sources/index-it/FakeTranslation.tiddler.div Mon Apr 19 05:40:37 2010 +0200 @@ -0,0 +1,1 @@ +title="FakeTranslation" modifier="script" created="200811270256" changecount="1" tags="systemConfig" \ No newline at end of file
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/jpoker/sites/pokersource.eu-2009/sources/index-it/lang.tiddler Mon Apr 19 05:40:37 2010 +0200 @@ -0,0 +1,1 @@ +[[da|index-da.html]] | [[de|index-de.html]] | [[en|index.html]] | [[en_CA|index-en_CA.html]] | [[en_US|index-en_US.html]] | [[es|index-es.html]] | [[fi|index-fi.html]] | [[fr|index-fr.html]] | [[fr_BE|index-fr_BE.html]] | [[fr_CA|index-fr_CA.html]] | [[fr_FX|index-fr_FX.html]] | it | [[ja|index-ja.html]] | [[nb|index-nb.html]] | [[nl|index-nl.html]] | [[pt|index-pt.html]] | [[sv|index-sv.html]]<<tiddler SiteStats>> \ No newline at end of file
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/jpoker/sites/pokersource.eu-2009/sources/index-it/lang.tiddler.div Mon Apr 19 05:40:37 2010 +0200 @@ -0,0 +1,1 @@ +title="lang" modifier="script" created="200811270256" changecount="1" \ No newline at end of file
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/jpoker/sites/pokersource.eu-2009/sources/index-it/skin-lang.tiddler Mon Apr 19 05:40:37 2010 +0200 @@ -0,0 +1,1 @@ +[[da|index-da.html]] | [[de|index-de.html]] | [[en|index.html]] | [[en_CA|index-en_CA.html]] | [[en_US|index-en_US.html]] | [[es|index-es.html]] | [[fi|index-fi.html]] | [[fr|index-fr.html]] | [[fr_BE|index-fr_BE.html]] | [[fr_CA|index-fr_CA.html]] | [[fr_FX|index-fr_FX.html]] | it | [[ja|index-ja.html]] | [[nb|index-nb.html]] | [[nl|index-nl.html]] | [[pt|index-pt.html]] | [[sv|index-sv.html]] \ No newline at end of file
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/jpoker/sites/pokersource.eu-2009/sources/index-it/skin-lang.tiddler.div Mon Apr 19 05:40:37 2010 +0200 @@ -0,0 +1,1 @@ +title="skin-lang" modifier="script" created="200811270256" changecount="1" \ No newline at end of file
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/jpoker/sites/pokersource.eu-2009/sources/index-ja/JapaneseTranslation.js Mon Apr 19 05:40:37 2010 +0200 @@ -0,0 +1,441 @@ +/*** +|''Name:''|JapaneseTranslation| +|''Description:''|Translation of TiddlyWiki into Japanese| +|''Author:''|FURUKAWA, Masashi(Zephyr)| +|''Source:''|http://flow.dip.jp/mt/archives/u/twmemo.html#JapaneseTranslation| +|''Version:''|0.3.0| +|''Date:''|Mar. 26, 2007| +|''License:''|[[Creative Commons Attribution-ShareAlike 2.1 Japan License|http://creativecommons.org/licenses/by-sa/2.1/jp/]]| +|''~CoreVersion:''|2.1.3| +TiddlyWikiを日本語化するプラグインです。 +http://trac.tiddlywiki.org/tiddlywiki/wiki/Translations に書いてあるように、svn.tiddlywiki.orgからlocale.en.jsを持ってきて作り直しました。 +しかし、svn版は既に現行バージョンとは違うようで、エラーが出たり明らかに使われていない所はコメントや未訳のままにしてあります。 +以前の日本語化プラグインはOldJapaneseTranslationにあります。 +元のライセンスがCCのBY-SAなので、それに相当する日本語版のCCライセンスにしてあります。また、原著作者のクレジットもそのまま残してあります。 +***/ + +/*** +|''Name:''|EnglishTranslationPlugin| +|''Description:''|Translation of TiddlyWiki into English| +|''Author:''|MartinBudden (mjbudden (at) gmail (dot) com)| +|''Source:''|www.???.com | +|''Subversion:''|http://svn.tiddlywiki.org/Trunk/association/locales/core/en/locale.en.js | +|''Version:''|0.3.0| +|''Date:''|Mar 4, 2007| +|''Comments:''|Please make comments at http://groups.google.co.uk/group/TiddlyWikiDev | +|''License:''|[[Creative Commons Attribution-ShareAlike 2.5 License|http://creativecommons.org/licenses/by-sa/2.5/ ]]| +|''~CoreVersion:''|2.1.3| +***/ + +/*{{{*/ +//-- +//-- Translateable strings +//-- + +// Strings in "double quotes" should be translated; strings in 'single quotes' should be left alone + +config.locale = "ja"; // W3C language tag + +if (config.options.txtUserName == "YourName") + merge(config.options,{ + txtUserName: "お名前"}); + +config.tasks = { + save: {text: "save", tooltip: "Save your changes to this TiddlyWiki", action: saveChanges}, + sync: {text: "同期", tooltip: "他のTiddlyWikiファイルやサーバと同期をとります", content: '<<sync>>'}, + importTask: {text: "取り込み", tooltip: "他のTiddlyWikiファイルやサーバからtiddlerやプラグインを取り込みます", content: '<<importTiddlers>>'}, + tweak: {text: "tweak", tooltip: "Tweak the appearance and behaviour of TiddlyWiki", content: '<<options>>'}, + plugins: {text: "プラグイン", tooltip: "プラグインを管理します", content: '<<plugins>>'} +}; + +// Options that can be set in the options panel and/or cookies +/* +config.optionsDesc = { + txtUserName: "Username for signing your edits", + chkRegExpSearch: "Enable regular expressions for searches", + chkCaseSensitiveSearch: "Case-sensitive searching", + chkAnimate: "Enable animations", + chkSaveBackups: "Keep backup file when saving changes", + chkAutoSave: "Automatically save changes", + chkGenerateAnRssFeed: "Generate an RSS feed when saving changes", + chkSaveEmptyTemplate: "Generate an empty template when saving changes", + chkOpenInNewWindow: "Open external links in a new window", + chkToggleLinks: "Clicking on links to open tiddlers causes them to close", + chkHttpReadOnly: "Hide editing features when viewed over HTTP", + chkForceMinorUpdate: "Don't update modifier username and date when editing tiddlers", + chkConfirmDelete: "Require confirmation before deleting tiddlers", + chkInsertTabs: "Use the tab key to insert tab characters instead of moving between fields", + chkShowTiddlerDetails: "Always show the tiddler details panel when displaying a tiddler", + txtBackupFolder: "Name of folder to use for backups", + txtMaxEditRows: "Maximum number of rows in edit boxes", + txtFileSystemCharSet: "Default character set for saving changes" + }; +*/ + +merge(config.messages,{ + customConfigError: "プラグインの読み込みで問題が発生しました。詳細はPluginManager参照", + pluginError: "エラー: %0", + pluginDisabled: "'systemConfigDisable'タグにより実行が禁止されました", + pluginForced: "'systemConfigForce'タグにより強制的に実行されました", + pluginVersionError: "このプラグインの実行にはより新しいバージョンのTiddlyWikiが必要です", + nothingSelected: "選択されていません。一つ以上選択してください", + savedSnapshotError: "このTiddlyWikiは正常に保存されていません。詳細は http://www.tiddlywiki.com/#DownloadSoftware をご覧ください", + subtitleUnknown: "", + undefinedTiddlerToolTip: "'%0'tiddlerはまだ作成されていません", + shadowedTiddlerToolTip: "'%0'tiddlerはまだ作成されていませんが、隠し既定値があります", + tiddlerLinkTooltip: "%0 - %1, %2", + externalLinkTooltip: "(外部リンク) %0", + noTags: "タグの付いたtiddlerはありません", + notFileUrlError: "変更を保存するには、このTiddlyWikiをファイルに保存(ダウンロード)する必要があります", + cantSaveError: "変更を保存できません。以下の理由が考えられます:\n- ブラウザが保存に対応していない (Firefox, Internet Explorer, Safari そして Opera は正しく設定されていれば保存できます)\n- TiddlyWikiファイルのPath名に不正な文字が含まれている\n- TiddlyWikiファイルを移動または名前を変更された", + invalidFileError: "元のファイル '%0' は妥当なTiddlyWikiのファイルではありません", + backupSaved: "バックアップを保存しました", + backupFailed: "バックアップの保存に失敗しました", + rssSaved: "RSSフィードを保存しました", + rssFailed: "RSSフィードの保存に失敗しました", + emptySaved: "空テンプレートを保存しました", + emptyFailed: "空テンプレートの保存に失敗しました", + mainSaved: "TiddlyWikiファイルを保存しました", + mainFailed: "TiddlyWikiファイルの保存に失敗しました。変更内容は保存されていません", + macroError: "マクロ<<%0>>でエラー", + macroErrorDetails: "マクロ<<%0>>実行中にエラー発生:\n%1", + missingMacro: "マクロがありません", + overwriteWarning: "'%0'tiddlerは既に存在します。OKで上書きします", + unsavedChangesWarning: "WARNING! TiddlyWikiの変更が保存されていません\n\nOKで保存します\nCANCELで変更を破棄します", + confirmExit: "--------------------------------\n\nTiddlyWikiの変更が保存されていません。このまま続けると変更が失われます\n\n--------------------------------", + saveInstructions: "SaveChanges", + unsupportedTWFormat: "TiddlyWiki書式 '%0' は未サポートです", + tiddlerSaveError: "tiddler '%0' 保存時にエラー", + tiddlerLoadError: "tiddler '%0' 読み込み時にエラー", + wrongSaveFormat: "保存書式 '%0' で保存できません。標準書式で保存します", + invalidFieldName: "%0 は不正なファイル名です", + fieldCannotBeChanged: "領域 '%0' を変更できません"}); + +merge(config.messages.messageClose,{ + text: "確認", + tooltip: "このメッセージを閉じます"}); + +/* +config.messages.backstage = { + open: {text: "backstage", icon: "?", iconIE: "←", tooltip: "Open the backstage area to perform authoring and editing tasks"}, + close: {text: "close", icon: "?", iconIE: "→", tooltip: "Close the backstage area"}, + prompt: "backstage: " +}; + +config.messages.listView = { + tiddlerTooltip: "Click for the full text of this tiddler", + previewUnavailable: "(preview not available)" +}; +*/ + +config.messages.dates.months = ["January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November","December"]; +config.messages.dates.days = ["Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday"]; +config.messages.dates.shortMonths = ["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"]; +config.messages.dates.shortDays = ["Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"]; +// suffixes for dates, eg "1st","2nd","3rd"..."30th","31st" +config.messages.dates.daySuffixes = ["st","nd","rd","th","th","th","th","th","th","th", + "th","th","th","th","th","th","th","th","th","th", + "st","nd","rd","th","th","th","th","th","th","th", + "st"]; +config.messages.dates.am = "am"; +config.messages.dates.pm = "pm"; + +merge(config.views.wikified.tag,{ + labelNoTags: "タグ無し", + labelTags: "タグ: ", + openTag: "'%0'タグを開く", + tooltip: "'%0'タグの付いたtiddlerを表示", + openAllText: "すべて開く", + openAllTooltip: "以下のtiddlerをすべて開く", + popupNone: "'%0'タグの付いたtiddlerは他にありません"}); + +merge(config.views.wikified,{ + defaultText: "'%0'はまだ作成されていません。ダブルクリックで作成できます", + defaultModifier: "(missing)", + shadowModifier: "(built-in shadow tiddler)", + dateFormat: "YYYY年MM月DD日", + createdPrompt: "作成"}); + +merge(config.views.editor,{ + tagPrompt: "タグはスペース区切りで入力します。必要なら[[二重の 角カッコで 囲みます]]。既存の", + defaultText: "'%0'の内容を入力してください"}); + +merge(config.views.editor.tagChooser,{ + text: "タグ", + tooltip: "既存のタグを選択して追加します", + popupNone: "タグが定義されていません", + tagTooltip: "'%0'タグを追加"}); + +/* +merge(config.messages,{ + sizeTemplates: + [ + {unit: 1024*1024*1024, template: "%0\u00a0GB"}, + {unit: 1024*1024, template: "%0\u00a0MB"}, + {unit: 1024, template: "%0\u00a0KB"}, + {unit: 1, template: "%0\u00a0B"} + ]}); +*/ + +merge(config.macros.search,{ + label: "検索", + prompt: "このTiddlyWiki内を検索します", + accessKey: "F", + successMsg: "%0件のtiddlerで%1が見つかりました", + failureMsg: "%0は見つかりませんでした"}); + +merge(config.macros.tagging,{ + label: "タグ付け: ", + labelNotTag: "タグ付け無し", + tooltip: "'%0'タグを付けたtiddler一覧"}); + +merge(config.macros.timeline,{ + dateFormat: "YYYY年MM月DD日"}); + +merge(config.macros.allTags,{ + tooltip: "'%0'タグの付いたtiddlerを表示", + noTags: "タグの付いたtiddlerはありません"}); + +config.macros.list.all.prompt = "アルファベット順のtiddler一覧"; +config.macros.list.missing.prompt = "リンクされているが定義されていないtiddler一覧"; +config.macros.list.orphans.prompt = "リンクされていないtiddler一覧"; +config.macros.list.shadowed.prompt = "既定の隠しtiddler"; +// config.macros.list.touched.prompt = "Tiddlers that have been modified locally"; + +merge(config.macros.closeAll,{ + label: "すべて閉じる", + prompt: "表示されているすべてのtiddler(編集中以外)を閉じます"}); + +merge(config.macros.permaview,{ + label: "現状URL", + prompt: "表示されているすべてのtiddlerを取り出すURL(permaview)"}); + +merge(config.macros.saveChanges,{ + label: "保存", + prompt: "すべてのtiddlerを保存します", + accessKey: "S"}); + +merge(config.macros.newTiddler,{ + label: "新規作成", + prompt: "新しいtiddlerを作成します", + title: "New Tiddler", + accessKey: "N"}); + +merge(config.macros.newJournal,{ + label: "新規日報", + prompt: "日時がタイトルの新しいtiddlerを作成します", + accessKey: "J"}); + +/* +merge(config.macros.options,{ + wizardTitle: "Tweak advanced options", + step1Title: "These options are saved in cookies in your browser", + step1Html: "<input type='hidden' name='markList'></input><br><input type='checkbox' checked='false' name='chkHidden'>Show hidden options</input>", + unknownDescription: "//(hidden)//", + listViewTemplate: { + columns: [ + {name: 'Option', field: 'option', title: "Option", type: 'String'}, + {name: 'Description', field: 'description', title: "Description", type: 'WikiText'}, + {name: 'Name', field: 'name', title: "Name", type: 'String'} + ], + rowClasses: [ + {className: 'lowlight', field: 'lowlight'} + ]} + }); +*/ + +merge(config.macros.plugins,{ + skippedText: "(このプラグインは起動後に追加されたので実行していません)", + noPluginText: "プラグインがインストールされていません", + confirmDeleteText: "これらのプラグインを削除してよろしいですか:\n\n%0", + listViewTemplate : { + columns: [ + {name: 'Selected', field: 'Selected', rowName: 'title', type: 'Selector'}, + {name: 'Title', field: 'title', tiddlerLink: 'title', title: "Title", type: 'TiddlerLink'}, + {name: 'Forced', field: 'forced', title: "Forced", tag: 'systemConfigForce', type: 'TagCheckbox'}, + {name: 'Disabled', field: 'disabled', title: "Disabled", tag: 'systemConfigDisable', type: 'TagCheckbox'}, + {name: 'Executed', field: 'executed', title: "Loaded", type: 'Boolean', trueText: "Yes", falseText: "No"}, + {name: 'Error', field: 'error', title: "Status", type: 'Boolean', trueText: "Error", falseText: "OK"}, + {name: 'Log', field: 'log', title: "Log", type: 'StringList'} + ], + rowClasses: [ + {className: 'error', field: 'error'}, + {className: 'warning', field: 'warning'} + ], + actions: [ + {caption: "次の動作...", name: ''}, + {caption: "systemConfigタグを外す", name: 'remove'}, + {caption: "これらのtiddlerを削除する", name: 'delete'} + ]} + }); + +merge(config.macros.toolbar,{ + moreLabel: "more", + morePrompt: "Reveal further commands" + }); + +merge(config.macros.refreshDisplay,{ + label: "再表示", + prompt: "TiddlyWikiを再表示します" + }); + +merge(config.macros.importTiddlers,{ + readOnlyWarning: "読み込み専用のTiddlyWikiには取り込めません。TiddlyWikiファイルをfile://のURLで開いてみてください", + defaultPath: "http://www.tiddlywiki.com/index.html", + fetchLabel: "取得", + fetchPrompt: "TiddlyWikiファイルを取得します", + fetchError: "TiddlyWikiファイルの取得に問題が発生しました", + confirmOverwriteText: "これらのtiddlerを上書きしてよろしいですか:\n\n%0", + wizardTitle: "他のTiddlyWikiファイルからtiddlerを取り込む", + step1: "手順1: TiddlyWikiファイルの場所を指定", + step1prompt: "URLまたはパス名を入力: ", + step1promptFile: "...またはファイルを選択: ", + step1promptFeeds: "...または既定のフィードを選択: ", + step1feedPrompt: "選択...", + step2: "手順2: TiddlyWikiファイル読み込み", + step2Text: "%0 からファイルを読み込むまでお待ちください", + step3: "手順3: 取り込むtiddlerの選択", + step4: "%0個のtiddlerを取り込みました", + step5: "完了", + listViewTemplate: { + columns: [ + {name: 'Selected', field: 'Selected', rowName: 'title', type: 'Selector'}, + {name: 'Title', field: 'title', title: "Title", type: 'String'}, + {name: 'Snippet', field: 'text', title: "Snippet", type: 'String'}, + {name: 'Tags', field: 'tags', title: "Tags", type: 'Tags'} + ], + rowClasses: [ + ], + actions: [ + {caption: "次の動作...", name: ''}, + {caption: "これらのtiddlerを取り込む", name: 'import'} + ]} + }); + +/* +merge(config.macros.sync,{ + listViewTemplate: { + columns: [ + {name: 'Selected', field: 'selected', rowName: 'title', type: 'Selector'}, + {name: 'Tiddler', field: 'tiddler', title: "Tiddler", type: 'Tiddler'}, + {name: 'Server Type', field: 'serverType', title: "Server type", type: 'String'}, + {name: 'Server Host', field: 'serverHost', title: "Server host", type: 'String'}, + {name: 'Server Workspace', field: 'serverWorkspace', title: "Server workspace", type: 'String'}, + {name: 'Status', field: 'status', title: "Synchronisation status", type: 'String'}, + {name: 'Server URL', field: 'serverUrl', title: "Server URL", text: "View", type: 'Link'} + ], + rowClasses: [ + ], + buttons: [ + {caption: "Sync these tiddlers", name: 'sync'} + ]}, + wizardTitle: "Synchronize with external servers and files", + step1Title: "Choose the tiddlers you want to synchronize", + step1Html: "<input type='hidden' name='markList'></input>", // DO NOT TRANSLATE + syncLabel: "sync", + syncPrompt: "Sync these tiddlers", + hasChanged: "Changed while unplugged", + hasNotChanged: "Unchanged while unplugged", + syncStatusList: { + none: {text: "...", color: "none"}, + changedServer: {text: "Changed on server", color: "#80ff80"}, + changedLocally: {text: "Changed while unplugged", color: "#80ff80"}, + changedBoth: {text: "Changed while unplugged and on server", color: "#ff8080"}, + notFound: {text: "Not found on server", color: "#ffff80"}, + putToServer: {text: "Saved update on server", color: "#ff80ff"}, + gotFromServer: {text: "Retrieved update from server", color: "#80ffff"} + } + }); + +merge(config.macros.viewDetails,{ + label: "...", + prompt: "Show additional information about this tiddler", + hideLabel: "(hide details)", + hidePrompt: "Hide this panel of additional information", + emptyDetailsText: "There are no extended fields for this tiddler", + listViewTemplate: { + columns: [ + {name: 'Field', field: 'field', title: "Field", type: 'String'}, + {name: 'Value', field: 'value', title: "Value", type: 'String'} + ], + rowClasses: [ + ], + buttons: [ + ]} + }); +*/ + +merge(config.commands.closeTiddler,{ + text: "閉じる", + tooltip: "このtiddlerを閉じます"}); + +merge(config.commands.closeOthers,{ + text: "他を閉じる", + tooltip: "他のtiddlerを全て閉じます"}); + +merge(config.commands.editTiddler,{ + text: "編集", + tooltip: "このtiddlerを編集します", + readOnlyText: "閲覧", + readOnlyTooltip: "このtiddlerの内容を閲覧します"}); + +merge(config.commands.saveTiddler,{ + text: "確定", + tooltip: "編集内容を確定します"}); + +merge(config.commands.cancelTiddler,{ + text: "編集中止", + tooltip: "編集内容を破棄します", + warning: "'%0'の変更を破棄してよろしいですか?", + readOnlyText: "終了", + readOnlyTooltip: "通常のtiddler表示にします"}); + +merge(config.commands.deleteTiddler,{ + text: "削除", + tooltip: "このtiddlerを削除します", + warning: "'%0'を削除してよろしいですか?"}); + +merge(config.commands.permalink,{ + text: "URL", + tooltip: "このtiddlerのURL(permalink)"}); + +merge(config.commands.references,{ + text: "参照一覧", + tooltip: "このtiddlerのリンク元一覧を表示します", + popupNone: "参照されていません"}); + +merge(config.commands.jump,{ + text: "移動", + tooltip: "開いている他のtiddlerに移動"}); + +/* +merge(config.commands.syncing,{ + text: "syncing", + tooltip: "Control synchronisation of this tiddler with a server or external file", + currentlySyncing: "<div>Currently syncing via <span class='popupHighlight'>'%0'</span> to:</div><div>host: <span class='popupHighlight'>%1</span></div><div>workspace: <span class='popupHighlight'>%2</span></div>", + notCurrentlySyncing: "Not currently syncing", + captionUnSync: "Stop synchronising this tiddler", + chooseServer: "Synchronise this tiddler with another server:", + currServerMarker: "● ", + notCurrServerMarker: " "}); +*/ + +merge(config.shadowTiddlers,{ + DefaultTiddlers: "[[TranslatedGettingStarted]]", + MainMenu: "[[TranslatedGettingStarted]]", + SiteTitle: "My TiddlyWiki", + SiteSubtitle: "a reusable non-linear personal web notebook", + SiteUrl: "http://www.tiddlywiki.com/", + SideBarOptions: '<<search>><<closeAll>><<permaview>><<newTiddler>><<newJournal "YYYY年MM月DD日">><<saveChanges>><<slider chkSliderOptionsPanel OptionsPanel "設定 ≫" "TiddlyWikiの設定を変更します">>', + SideBarTabs: '<<tabs txtMainTab "更新順" "更新順に表示する" TabTimeline "全部" "すべてのtiddler" TabAll "タグ" "タグ一覧" TabTags "詳細" "詳細" TabMore>>', + TabTimeline: '<<timeline>>', + TabAll: '<<list all>>', + TabTags: '<<allTags excludeLists>>', + TabMore: '<<tabs txtMoreTab "定義なし" "定義されていないtiddler" TabMoreMissing "リンク無し" "リンクされていないtiddler" TabMoreOrphans "隠し" "隠しtiddler" TabMoreShadowed>>', + TabMoreMissing: '<<list missing>>', + TabMoreOrphans: '<<list orphans>>', + TabMoreShadowed: '<<list shadowed>>', + PluginManager: '<<plugins>>', + ImportTiddlers: '<<importTiddlers>>'}); + +/*}}}*/ \ No newline at end of file
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/jpoker/sites/pokersource.eu-2009/sources/index-ja/JapaneseTranslation.js.div Mon Apr 19 05:40:37 2010 +0200 @@ -0,0 +1,1 @@ +title="JapaneseTranslation" modifier="Zephyr" modified="200703260549" created="200701110228" tags="systemConfig" \ No newline at end of file
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/jpoker/sites/pokersource.eu-2009/sources/index-ja/lang.tiddler Mon Apr 19 05:40:37 2010 +0200 @@ -0,0 +1,1 @@ +[[da|index-da.html]] | [[de|index-de.html]] | [[en|index.html]] | [[en_CA|index-en_CA.html]] | [[en_US|index-en_US.html]] | [[es|index-es.html]] | [[fi|index-fi.html]] | [[fr|index-fr.html]] | [[fr_BE|index-fr_BE.html]] | [[fr_CA|index-fr_CA.html]] | [[fr_FX|index-fr_FX.html]] | [[it|index-it.html]] | ja | [[nb|index-nb.html]] | [[nl|index-nl.html]] | [[pt|index-pt.html]] | [[sv|index-sv.html]]<<tiddler SiteStats>> \ No newline at end of file
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/jpoker/sites/pokersource.eu-2009/sources/index-ja/lang.tiddler.div Mon Apr 19 05:40:37 2010 +0200 @@ -0,0 +1,1 @@ +title="lang" modifier="script" created="200811270256" changecount="1" \ No newline at end of file
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/jpoker/sites/pokersource.eu-2009/sources/index-ja/skin-lang.tiddler Mon Apr 19 05:40:37 2010 +0200 @@ -0,0 +1,1 @@ +[[da|index-da.html]] | [[de|index-de.html]] | [[en|index.html]] | [[en_CA|index-en_CA.html]] | [[en_US|index-en_US.html]] | [[es|index-es.html]] | [[fi|index-fi.html]] | [[fr|index-fr.html]] | [[fr_BE|index-fr_BE.html]] | [[fr_CA|index-fr_CA.html]] | [[fr_FX|index-fr_FX.html]] | [[it|index-it.html]] | ja | [[nb|index-nb.html]] | [[nl|index-nl.html]] | [[pt|index-pt.html]] | [[sv|index-sv.html]] \ No newline at end of file
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/jpoker/sites/pokersource.eu-2009/sources/index-ja/skin-lang.tiddler.div Mon Apr 19 05:40:37 2010 +0200 @@ -0,0 +1,1 @@ +title="skin-lang" modifier="script" created="200811270256" changecount="1" \ No newline at end of file
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/jpoker/sites/pokersource.eu-2009/sources/index-nb/FakeTranslation.tiddler Mon Apr 19 05:40:37 2010 +0200 @@ -0,0 +1,1 @@ +config.locale = "nb"; // W3C language tag \ No newline at end of file
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/jpoker/sites/pokersource.eu-2009/sources/index-nb/FakeTranslation.tiddler.div Mon Apr 19 05:40:37 2010 +0200 @@ -0,0 +1,1 @@ +title="FakeTranslation" modifier="script" created="200811270256" changecount="1" tags="systemConfig" \ No newline at end of file
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/jpoker/sites/pokersource.eu-2009/sources/index-nb/lang.tiddler Mon Apr 19 05:40:37 2010 +0200 @@ -0,0 +1,1 @@ +[[da|index-da.html]] | [[de|index-de.html]] | [[en|index.html]] | [[en_CA|index-en_CA.html]] | [[en_US|index-en_US.html]] | [[es|index-es.html]] | [[fi|index-fi.html]] | [[fr|index-fr.html]] | [[fr_BE|index-fr_BE.html]] | [[fr_CA|index-fr_CA.html]] | [[fr_FX|index-fr_FX.html]] | [[it|index-it.html]] | [[ja|index-ja.html]] | nb | [[nl|index-nl.html]] | [[pt|index-pt.html]] | [[sv|index-sv.html]]<<tiddler SiteStats>> \ No newline at end of file
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/jpoker/sites/pokersource.eu-2009/sources/index-nb/lang.tiddler.div Mon Apr 19 05:40:37 2010 +0200 @@ -0,0 +1,1 @@ +title="lang" modifier="script" created="200811270256" changecount="1" \ No newline at end of file
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/jpoker/sites/pokersource.eu-2009/sources/index-nb/skin-lang.tiddler Mon Apr 19 05:40:37 2010 +0200 @@ -0,0 +1,1 @@ +[[da|index-da.html]] | [[de|index-de.html]] | [[en|index.html]] | [[en_CA|index-en_CA.html]] | [[en_US|index-en_US.html]] | [[es|index-es.html]] | [[fi|index-fi.html]] | [[fr|index-fr.html]] | [[fr_BE|index-fr_BE.html]] | [[fr_CA|index-fr_CA.html]] | [[fr_FX|index-fr_FX.html]] | [[it|index-it.html]] | [[ja|index-ja.html]] | nb | [[nl|index-nl.html]] | [[pt|index-pt.html]] | [[sv|index-sv.html]] \ No newline at end of file
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/jpoker/sites/pokersource.eu-2009/sources/index-nb/skin-lang.tiddler.div Mon Apr 19 05:40:37 2010 +0200 @@ -0,0 +1,1 @@ +title="skin-lang" modifier="script" created="200811270256" changecount="1" \ No newline at end of file
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/jpoker/sites/pokersource.eu-2009/sources/index-nl/FakeTranslation.tiddler Mon Apr 19 05:40:37 2010 +0200 @@ -0,0 +1,1 @@ +config.locale = "nl"; // W3C language tag \ No newline at end of file
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/jpoker/sites/pokersource.eu-2009/sources/index-nl/FakeTranslation.tiddler.div Mon Apr 19 05:40:37 2010 +0200 @@ -0,0 +1,1 @@ +title="FakeTranslation" modifier="script" created="200811270256" changecount="1" tags="systemConfig" \ No newline at end of file
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/jpoker/sites/pokersource.eu-2009/sources/index-nl/lang.tiddler Mon Apr 19 05:40:37 2010 +0200 @@ -0,0 +1,1 @@ +[[da|index-da.html]] | [[de|index-de.html]] | [[en|index.html]] | [[en_CA|index-en_CA.html]] | [[en_US|index-en_US.html]] | [[es|index-es.html]] | [[fi|index-fi.html]] | [[fr|index-fr.html]] | [[fr_BE|index-fr_BE.html]] | [[fr_CA|index-fr_CA.html]] | [[fr_FX|index-fr_FX.html]] | [[it|index-it.html]] | [[ja|index-ja.html]] | [[nb|index-nb.html]] | nl | [[pt|index-pt.html]] | [[sv|index-sv.html]]<<tiddler SiteStats>> \ No newline at end of file
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/jpoker/sites/pokersource.eu-2009/sources/index-nl/lang.tiddler.div Mon Apr 19 05:40:37 2010 +0200 @@ -0,0 +1,1 @@ +title="lang" modifier="script" created="200811270256" changecount="1" \ No newline at end of file
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/jpoker/sites/pokersource.eu-2009/sources/index-nl/skin-lang.tiddler Mon Apr 19 05:40:37 2010 +0200 @@ -0,0 +1,1 @@ +[[da|index-da.html]] | [[de|index-de.html]] | [[en|index.html]] | [[en_CA|index-en_CA.html]] | [[en_US|index-en_US.html]] | [[es|index-es.html]] | [[fi|index-fi.html]] | [[fr|index-fr.html]] | [[fr_BE|index-fr_BE.html]] | [[fr_CA|index-fr_CA.html]] | [[fr_FX|index-fr_FX.html]] | [[it|index-it.html]] | [[ja|index-ja.html]] | [[nb|index-nb.html]] | nl | [[pt|index-pt.html]] | [[sv|index-sv.html]] \ No newline at end of file
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/jpoker/sites/pokersource.eu-2009/sources/index-nl/skin-lang.tiddler.div Mon Apr 19 05:40:37 2010 +0200 @@ -0,0 +1,1 @@ +title="skin-lang" modifier="script" created="200811270256" changecount="1" \ No newline at end of file
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/jpoker/sites/pokersource.eu-2009/sources/index-pt/FakeTranslation.tiddler Mon Apr 19 05:40:37 2010 +0200 @@ -0,0 +1,1 @@ +config.locale = "pt"; // W3C language tag \ No newline at end of file
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/jpoker/sites/pokersource.eu-2009/sources/index-pt/FakeTranslation.tiddler.div Mon Apr 19 05:40:37 2010 +0200 @@ -0,0 +1,1 @@ +title="FakeTranslation" modifier="script" created="200811270256" changecount="1" tags="systemConfig" \ No newline at end of file
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/jpoker/sites/pokersource.eu-2009/sources/index-pt/lang.tiddler Mon Apr 19 05:40:37 2010 +0200 @@ -0,0 +1,1 @@ +[[da|index-da.html]] | [[de|index-de.html]] | [[en|index.html]] | [[en_CA|index-en_CA.html]] | [[en_US|index-en_US.html]] | [[es|index-es.html]] | [[fi|index-fi.html]] | [[fr|index-fr.html]] | [[fr_BE|index-fr_BE.html]] | [[fr_CA|index-fr_CA.html]] | [[fr_FX|index-fr_FX.html]] | [[it|index-it.html]] | [[ja|index-ja.html]] | [[nb|index-nb.html]] | [[nl|index-nl.html]] | pt | [[sv|index-sv.html]]<<tiddler SiteStats>> \ No newline at end of file
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/jpoker/sites/pokersource.eu-2009/sources/index-pt/lang.tiddler.div Mon Apr 19 05:40:37 2010 +0200 @@ -0,0 +1,1 @@ +title="lang" modifier="script" created="200811270256" changecount="1" \ No newline at end of file
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/jpoker/sites/pokersource.eu-2009/sources/index-pt/skin-lang.tiddler Mon Apr 19 05:40:37 2010 +0200 @@ -0,0 +1,1 @@ +[[da|index-da.html]] | [[de|index-de.html]] | [[en|index.html]] | [[en_CA|index-en_CA.html]] | [[en_US|index-en_US.html]] | [[es|index-es.html]] | [[fi|index-fi.html]] | [[fr|index-fr.html]] | [[fr_BE|index-fr_BE.html]] | [[fr_CA|index-fr_CA.html]] | [[fr_FX|index-fr_FX.html]] | [[it|index-it.html]] | [[ja|index-ja.html]] | [[nb|index-nb.html]] | [[nl|index-nl.html]] | pt | [[sv|index-sv.html]] \ No newline at end of file
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/jpoker/sites/pokersource.eu-2009/sources/index-pt/skin-lang.tiddler.div Mon Apr 19 05:40:37 2010 +0200 @@ -0,0 +1,1 @@ +title="skin-lang" modifier="script" created="200811270256" changecount="1" \ No newline at end of file
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/jpoker/sites/pokersource.eu-2009/sources/index-sv/FakeTranslation.tiddler Mon Apr 19 05:40:37 2010 +0200 @@ -0,0 +1,1 @@ +config.locale = "sv"; // W3C language tag \ No newline at end of file
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/jpoker/sites/pokersource.eu-2009/sources/index-sv/FakeTranslation.tiddler.div Mon Apr 19 05:40:37 2010 +0200 @@ -0,0 +1,1 @@ +title="FakeTranslation" modifier="script" created="200811270256" changecount="1" tags="systemConfig" \ No newline at end of file
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/jpoker/sites/pokersource.eu-2009/sources/index-sv/lang.tiddler Mon Apr 19 05:40:37 2010 +0200 @@ -0,0 +1,1 @@ +[[da|index-da.html]] | [[de|index-de.html]] | [[en|index.html]] | [[en_CA|index-en_CA.html]] | [[en_US|index-en_US.html]] | [[es|index-es.html]] | [[fi|index-fi.html]] | [[fr|index-fr.html]] | [[fr_BE|index-fr_BE.html]] | [[fr_CA|index-fr_CA.html]] | [[fr_FX|index-fr_FX.html]] | [[it|index-it.html]] | [[ja|index-ja.html]] | [[nb|index-nb.html]] | [[nl|index-nl.html]] | [[pt|index-pt.html]] | sv<<tiddler SiteStats>> \ No newline at end of file
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/jpoker/sites/pokersource.eu-2009/sources/index-sv/lang.tiddler.div Mon Apr 19 05:40:37 2010 +0200 @@ -0,0 +1,1 @@ +title="lang" modifier="script" created="200811270256" changecount="1" \ No newline at end of file
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/jpoker/sites/pokersource.eu-2009/sources/index-sv/skin-lang.tiddler Mon Apr 19 05:40:37 2010 +0200 @@ -0,0 +1,1 @@ +[[da|index-da.html]] | [[de|index-de.html]] | [[en|index.html]] | [[en_CA|index-en_CA.html]] | [[en_US|index-en_US.html]] | [[es|index-es.html]] | [[fi|index-fi.html]] | [[fr|index-fr.html]] | [[fr_BE|index-fr_BE.html]] | [[fr_CA|index-fr_CA.html]] | [[fr_FX|index-fr_FX.html]] | [[it|index-it.html]] | [[ja|index-ja.html]] | [[nb|index-nb.html]] | [[nl|index-nl.html]] | [[pt|index-pt.html]] | sv \ No newline at end of file
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/jpoker/sites/pokersource.eu-2009/sources/index-sv/skin-lang.tiddler.div Mon Apr 19 05:40:37 2010 +0200 @@ -0,0 +1,1 @@ +title="skin-lang" modifier="script" created="200811270256" changecount="1" \ No newline at end of file
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/jpoker/sites/pokersource.eu-2009/sources/index/AdminPageTemplate.html Mon Apr 19 05:40:37 2010 +0200 @@ -0,0 +1,26 @@ +<!--{{{--> +<div id="stickybod"> + <div id="header"> + <div id="pokLogin" refresh="content" force="true" tiddler="Login"></div> + <div id="headerTitle" refresh="content" force="true" tiddler="SiteTitle"></div> + <div id="lang" refresh="content" force="true" tiddler="lang"></div> +<!-- + <div id="headerImage"></div> +--> + <div id="menu" refresh="content" force="true" tiddler="MainMenu"> + </div> + </div> + <div id="myDisplayArea"> +<div id='mysidebar'> +<div id='sidebarOptions' refresh='content' tiddler='SideBarOptions'></div> +<div id='sidebarTabs' refresh='content' force='true' tiddler='SideBarTabs'></div> +</div> + <div id="messageArea"></div> + <div id="tiddlerDisplay"></div> + </div> + <div id="push"></div> +</div> +<div id="stickyfooter"> + <div id="footer" refresh="content" force="true" tiddler="Footer"></div> +</div> +<!--}}}-->
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/jpoker/sites/pokersource.eu-2009/sources/index/AdminPageTemplate.html.div Mon Apr 19 05:40:37 2010 +0200 @@ -0,0 +1,1 @@ +title="AdminPageTemplate" modifier="Saq" modified="200709031816" created="200709022007" tags="SuperCookerTheme" changecount="18" \ No newline at end of file
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/jpoker/sites/pokersource.eu-2009/sources/index/Cashier.tiddler Mon Apr 19 05:40:37 2010 +0200 @@ -0,0 +1,1 @@ +<<jpokerCashier>> \ No newline at end of file
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/jpoker/sites/pokersource.eu-2009/sources/index/Cashier.tiddler.div Mon Apr 19 05:40:37 2010 +0200 @@ -0,0 +1,1 @@ +title="Cashier" modifier="proppy" modified="200808301209" created="200808301209" tags="toRSS" changecount="1" \ No newline at end of file
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/jpoker/sites/pokersource.eu-2009/sources/index/DefaultTiddlers.tiddler Mon Apr 19 05:40:37 2010 +0200 @@ -0,0 +1,1 @@ +[[FeaturedTable]] \ No newline at end of file
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/jpoker/sites/pokersource.eu-2009/sources/index/DefaultTiddlers.tiddler.div Mon Apr 19 05:40:37 2010 +0200 @@ -0,0 +1,1 @@ +title="DefaultTiddlers" modifier="YourName" created="200709032322" changecount="1" \ No newline at end of file
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/jpoker/sites/pokersource.eu-2009/sources/index/FeaturedTable.tiddler Mon Apr 19 05:40:37 2010 +0200 @@ -0,0 +1,1 @@ +<<jpokerFeaturedTable>> \ No newline at end of file
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/jpoker/sites/pokersource.eu-2009/sources/index/FeaturedTable.tiddler.div Mon Apr 19 05:40:37 2010 +0200 @@ -0,0 +1,1 @@ +title="FeaturedTable" modifier="loic" created="200805132320" tags="toRSS" changecount="1"
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/jpoker/sites/pokersource.eu-2009/sources/index/Login.tiddler Mon Apr 19 05:40:37 2010 +0200 @@ -0,0 +1,1 @@ +<<jpokerLogin>> \ No newline at end of file
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/jpoker/sites/pokersource.eu-2009/sources/index/Login.tiddler.div Mon Apr 19 05:40:37 2010 +0200 @@ -0,0 +1,1 @@ +title="Login" modifier="Saq" modified="200709031815" created="200709031339" tags="SuperCookerTheme" changecount="6" \ No newline at end of file
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/jpoker/sites/pokersource.eu-2009/sources/index/MainMenu.tiddler Mon Apr 19 05:40:37 2010 +0200 @@ -0,0 +1,13 @@ +*Lobby +**[[Cash games|Tables]] +**[[Tournaments|RegularTourneys]] +**[[Sit and Go|SitngoTourneys]] +**[[Quit]] +*User +**[[UserInfo]] +**[[Places]] +**[[PlayerLookup]] +**[[Cashier]] +*[[Feedback|http://jspoker.pokersource.info/ideas.html]] +*[[Copyright]] +<<dropMenu>><html><div style="clear:both;"></div></html>
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/jpoker/sites/pokersource.eu-2009/sources/index/MainMenu.tiddler.div Mon Apr 19 05:40:37 2010 +0200 @@ -0,0 +1,1 @@ +title="MainMenu" modifier="loic" modified="201004112321" created="200709022346" changecount="4" \ No newline at end of file
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/jpoker/sites/pokersource.eu-2009/sources/index/PageTemplate.html Mon Apr 19 05:40:37 2010 +0200 @@ -0,0 +1,22 @@ +<!--{{{--> +<div id="stickybod"> + <div id="header"> + <div id="pokLogin" refresh="content" force="true" tiddler="Login"></div> + <div id="pokTablePicker" refresh="content" force="true" tiddler="TablePicker"></div> + <div id="headerTitle" refresh="content" force="true" tiddler="SiteTitle"></div> + <div id="lang" refresh="content" force="true" tiddler="lang"></div> +<!-- + <div id="headerImage"></div> +--> + <div id="menu" refresh="content" force="true" tiddler="MainMenu"></div> + </div> + <div id="myDisplayArea"> + <div id="messageArea"></div> + <div id="tiddlerDisplay"></div> + </div> + <div id="push"></div> +</div> +<div id="stickyfooter"> + <div id="footer" refresh="content" force="true" tiddler="Footer"></div> +</div> +<!--}}}-->
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/jpoker/sites/pokersource.eu-2009/sources/index/PageTemplate.html.div Mon Apr 19 05:40:37 2010 +0200 @@ -0,0 +1,1 @@ +title="PageTemplate" modifier="YourName" modified="200804041636" created="200709031403" tags="SuperCookerTheme" changecount="5" \ No newline at end of file
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/jpoker/sites/pokersource.eu-2009/sources/index/Places.tiddler Mon Apr 19 05:40:37 2010 +0200 @@ -0,0 +1,1 @@ +<<jpokerPlaces>> \ No newline at end of file
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/jpoker/sites/pokersource.eu-2009/sources/index/Places.tiddler.div Mon Apr 19 05:40:37 2010 +0200 @@ -0,0 +1,1 @@ +title="Places" modifier="proppy" modified="200808251404" created="200808251404" tags="toRSS" changecount="1" \ No newline at end of file
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/jpoker/sites/pokersource.eu-2009/sources/index/PlayerLookup.tiddler Mon Apr 19 05:40:37 2010 +0200 @@ -0,0 +1,1 @@ +<<jpokerPlayerLookup>> \ No newline at end of file
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/jpoker/sites/pokersource.eu-2009/sources/index/PlayerLookup.tiddler.div Mon Apr 19 05:40:37 2010 +0200 @@ -0,0 +1,1 @@ +title="PlayerLookup" modifier="proppy" modified="200809011434" created="200809011434" tags="toRSS" changecount="1" \ No newline at end of file
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/jpoker/sites/pokersource.eu-2009/sources/index/Quit.tiddler Mon Apr 19 05:40:37 2010 +0200 @@ -0,0 +1,1 @@ +<<jpokerQuit>> \ No newline at end of file
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/jpoker/sites/pokersource.eu-2009/sources/index/Quit.tiddler.div Mon Apr 19 05:40:37 2010 +0200 @@ -0,0 +1,1 @@ +title="Quit" modifier="loic" modified="201004111404" created="201004111404" tags="toRSS" changecount="1" \ No newline at end of file
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/jpoker/sites/pokersource.eu-2009/sources/index/RegularTourneys.tiddler Mon Apr 19 05:40:37 2010 +0200 @@ -0,0 +1,1 @@ +<<jpokerRegularTourneyList>> \ No newline at end of file
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/jpoker/sites/pokersource.eu-2009/sources/index/RegularTourneys.tiddler.div Mon Apr 19 05:40:37 2010 +0200 @@ -0,0 +1,1 @@ +title="RegularTourneys" modifier="proppy" modified="200807161640" created="200807161406" tags="toRSS" changecount="2" \ No newline at end of file
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/jpoker/sites/pokersource.eu-2009/sources/index/SiteStats.tiddler Mon Apr 19 05:40:37 2010 +0200 @@ -0,0 +1,1 @@ +<<jpokerServerStatus>> \ No newline at end of file
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/jpoker/sites/pokersource.eu-2009/sources/index/SiteStats.tiddler.div Mon Apr 19 05:40:37 2010 +0200 @@ -0,0 +1,1 @@ +title="SiteStats" modifier="Saq" modified="200709031816" created="200709031557" tags="SuperCookerTheme" changecount="4" \ No newline at end of file
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/jpoker/sites/pokersource.eu-2009/sources/index/SitngoTourneys.tiddler Mon Apr 19 05:40:37 2010 +0200 @@ -0,0 +1,1 @@ +<<jpokerSitngoTourneyList>> \ No newline at end of file
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/jpoker/sites/pokersource.eu-2009/sources/index/SitngoTourneys.tiddler.div Mon Apr 19 05:40:37 2010 +0200 @@ -0,0 +1,1 @@ +title="SitngoTourneys" modifier="proppy" modified="200807161640" created="200807161640" tags="toRSS" changecount="2" \ No newline at end of file
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/jpoker/sites/pokersource.eu-2009/sources/index/TablePicker.tiddler Mon Apr 19 05:40:37 2010 +0200 @@ -0,0 +1,1 @@ +<<jpokerTablePicker>> \ No newline at end of file
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/jpoker/sites/pokersource.eu-2009/sources/index/TablePicker.tiddler.div Mon Apr 19 05:40:37 2010 +0200 @@ -0,0 +1,1 @@ +title="TablePicker" modifier="proppy" modified="200906221928" created="200906221928" tags="SuperCookerTheme" changecount="1" \ No newline at end of file
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/jpoker/sites/pokersource.eu-2009/sources/index/Tables.tiddler Mon Apr 19 05:40:37 2010 +0200 @@ -0,0 +1,1 @@ +<<jpokerTableList>> \ No newline at end of file
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/jpoker/sites/pokersource.eu-2009/sources/index/Tables.tiddler.div Mon Apr 19 05:40:37 2010 +0200 @@ -0,0 +1,1 @@ +title="Tables" modifier="loic" modified="200709041711" created="200709032320" tags="toRSS" changecount="2" \ No newline at end of file
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/jpoker/sites/pokersource.eu-2009/sources/index/UserInfo.tiddler Mon Apr 19 05:40:37 2010 +0200 @@ -0,0 +1,1 @@ +<<jpokerUserInfo>> \ No newline at end of file
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/jpoker/sites/pokersource.eu-2009/sources/index/UserInfo.tiddler.div Mon Apr 19 05:40:37 2010 +0200 @@ -0,0 +1,1 @@ +title="UserInfo" modifier="proppy" modified="200807211725" created="200807211725" tags="toRSS" changecount="1" \ No newline at end of file
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/jpoker/sites/pokersource.eu-2009/sources/markup/MarkupPostBody.tiddler Mon Apr 19 05:40:37 2010 +0200 @@ -0,0 +1,19 @@ +<!--{{{--> +<script language="JavaScript" type="text/javascript" src="../../../jquery/jquery-1.2.6.js"></script> +<script language="JavaScript" type="text/javascript" src="../../../jquery/ui/ui.core.js"></script> +<script language="JavaScript" type="text/javascript" src="../../../jquery/ui/ui.draggable.js"></script> +<script language="JavaScript" type="text/javascript" src="../../../jquery/ui/ui.resizable.js"></script> +<script language="JavaScript" type="text/javascript" src="../../../jquery/ui/ui.dialog.js"></script> +<script language="JavaScript" type="text/javascript" src="../../../jquery/ui/ui.slider.js"></script> +<script src="../../../js/json2.js" type="text/javascript"></script> +<script src="../../../js/printstacktrace.js" type="text/javascript"></script> +<script src="../../../js/jquery.gettext.js" type="text/javascript"></script> +<script src="../../../js/jquery.strftime.js" type="text/javascript"></script> +<script src="../../../js/jquery.ajaxQueue.js" type="text/javascript"></script> +<script src="../../../js/jquery.tablesorter.js" type="text/javascript"></script> +<script src="../../../js/jquery.tablesorter.pager.js" type="text/javascript"></script> +<script src="../../../js/jquery.form.js" type="text/javascript"></script> +<script src="../../../js/jquery.cookie.js" type="text/javascript"></script> +<script src="../../../js/jquery.jpoker.js" type="text/javascript"></script> +<script src="../../../js/mockup.js" type="text/javascript"></script> +<!--}}}-->
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/jpoker/sites/pokersource.eu-2009/sources/markup/MarkupPostBody.tiddler.div Mon Apr 19 05:40:37 2010 +0200 @@ -0,0 +1,1 @@ +title="MarkupPostBody" modifier="loic" modified="200803312321" created="200803312321" changecount="1" \ No newline at end of file
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/jpoker/sites/pokersource.eu-2009/sources/markup/MarkupPreHead.tiddler Mon Apr 19 05:40:37 2010 +0200 @@ -0,0 +1,22 @@ +<!--{{{--> +<link rel="alternate" type="application/rss+xml" title="RSS" href="index.xml"/> +<link rel="shortcut icon" href="../../../themes/pokersource.eu-2009/css/images/favicon.ico" type="image/x-icon" /> +<link href="../../../l10n/jpoker-da.json" lang="da" rel="gettext"/> +<link href="../../../l10n/jpoker-de.json" lang="de" rel="gettext"/> +<link href="../../../l10n/jpoker-en.json" lang="en" rel="gettext"/> +<link href="../../../l10n/jpoker-en_CA.json" lang="en_CA" rel="gettext"/> +<link href="../../../l10n/jpoker-en_US.json" lang="en_US" rel="gettext"/> +<link href="../../../l10n/jpoker-es.json" lang="es" rel="gettext"/> +<link href="../../../l10n/jpoker-fi.json" lang="fi" rel="gettext"/> +<link href="../../../l10n/jpoker-fr.json" lang="fr" rel="gettext"/> +<link href="../../../l10n/jpoker-fr_BE.json" lang="fr_BE" rel="gettext"/> +<link href="../../../l10n/jpoker-fr_CA.json" lang="fr_CA" rel="gettext"/> +<link href="../../../l10n/jpoker-fr_FX.json" lang="fr_FX" rel="gettext"/> +<link href="../../../l10n/jpoker-it.json" lang="it" rel="gettext"/> +<link href="../../../l10n/jpoker-ja.json" lang="ja" rel="gettext"/> +<link href="../../../l10n/jpoker-nb.json" lang="nb" rel="gettext"/> +<link href="../../../l10n/jpoker-nl.json" lang="nl" rel="gettext"/> +<link href="../../../l10n/jpoker-pt.json" lang="pt" rel="gettext"/> +<link href="../../../l10n/jpoker-sv.json" lang="sv" rel="gettext"/> +<link href="../../../themes/pokersource.eu-2009/css/jpoker.css" rel="stylesheet" type="text/css" /> +<!--}}}-->
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/jpoker/sites/pokersource.eu-2009/sources/markup/MarkupPreHead.tiddler.div Mon Apr 19 05:40:37 2010 +0200 @@ -0,0 +1,1 @@ +title="MarkupPreHead" modifier="script" created="200811270256" changecount="1" \ No newline at end of file
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/jpoker/sites/pokersource.eu-2009/sources/test-generateLangTiddlers.py Mon Apr 19 05:40:37 2010 +0200 @@ -0,0 +1,78 @@ +#!/usr/bin/python +# -*- mode: python -*- +# +# Copyright (C) 2008 Johan Euphrosine <proppy@aminche.com> +# +# This program is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 3 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program; if not, write to the Free Software +# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA. +# + +import unittest +import os +import string +import uuid +import datetime + +from generateLangTiddlers import GenerateLangTiddlers + +class GenerateLangTiddlersGetTiddlerTestCase(unittest.TestCase): + def test(self): + langs = ['en', 'fr', 'ja'] + g = GenerateLangTiddlers() + self.assertEquals('[[en|index.html]] | fr | [[ja|index-ja.html]]', g.getTiddler('fr', langs)) + self.assertEquals('en | [[fr|index-fr.html]] | [[ja|index-ja.html]]', g.getTiddler('en', langs)) + self.assertEquals('[[en|index.html]] | [[fr|index-fr.html]] | ja', g.getTiddler('ja', langs)) + +class GenerateLangTiddlersRunTestCase(unittest.TestCase): + def setUp(self): + self.path = "/tmp/%s" % uuid.uuid4() + self.langs = ['en', 'fr', 'ja'] + os.mkdir(self.path) + os.mkdir(self.path + '/index-fr') + os.mkdir(self.path + '/l10n') + f = open(self.path + '/l10n/LINGUAS', 'w') + f.write(string.join(['#ignore']+self.langs+['\n'], '\n')) + f.close() + os.mkdir(self.path + '/markup') + def test(self): + time = datetime.datetime.today().strftime('%Y%m%d%H%M') + g = GenerateLangTiddlers() + g.run(self.path, time) + for lang in self.langs: + tiddler = g.getTiddler(lang, self.langs) + directory = self.path + '/index-%s' % lang + self.assertEquals(True, os.path.exists(directory)) + lang_tiddler = directory + '/lang.tiddler' + self.assertEquals(True, os.path.exists(lang_tiddler)) + self.assertEquals(tiddler+'<<tiddler SiteStats>>', open(lang_tiddler).read()) + lang_tiddler_div = lang_tiddler + '.div' + self.assertEquals(True, os.path.exists(lang_tiddler_div)) + self.assertEquals('title="lang" modifier="script" created="%s" changecount="1"' % time, open(lang_tiddler_div).read()) + skin_lang_tiddler = directory + '/skin-lang.tiddler' + self.assertEquals(True, os.path.exists(skin_lang_tiddler)) + self.assertEquals(tiddler, open(skin_lang_tiddler).read()) + skin_lang_tiddler_div = skin_lang_tiddler + '.div' + self.assertEquals(True, os.path.exists(skin_lang_tiddler_div)) + self.assertEquals('title="skin-lang" modifier="script" created="%s" changecount="1"' % time, open(skin_lang_tiddler_div).read()) + fake_translation_tiddler = directory + '/FakeTranslation.tiddler' + self.assertEquals(lang != 'fr', os.path.exists(fake_translation_tiddler)) + if lang != 'fr': + self.assertEquals('config.locale = "%s"; // W3C language tag' % lang, open(fake_translation_tiddler).read()) + fake_translation_tiddler_div = fake_translation_tiddler + '.div' + self.assertEquals(lang != 'fr', os.path.exists(fake_translation_tiddler_div)) + if lang != 'fr': + self.assertEquals('title="FakeTranslation" modifier="script" created="%s" changecount="1" tags="systemConfig"' % time, open(fake_translation_tiddler_div).read()) + +if __name__ == '__main__': + unittest.main()
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/jpoker/sites/pokersource.eu-2009/sources/tiddlers-standalone/LoadJpokerStylesPlugin.js Mon Apr 19 05:40:37 2010 +0200 @@ -0,0 +1,2 @@ +//store.addNotification("JpokerStyleSheet",refreshStyles); +setStylesheet(store.getTiddlerText("JpokerStyleSheet"),"JpokerStyleSheet");
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/jpoker/sites/pokersource.eu-2009/sources/tiddlers-standalone/LoadJpokerStylesPlugin.js.div Mon Apr 19 05:40:37 2010 +0200 @@ -0,0 +1,1 @@ +title="000_LoadJpokerStylesPlugin" modifier="Saq" modified="200809031720" created="200709031041" tags="systemConfig excludeLists excludeSearch"
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/jpoker/sites/pokersource.eu-2009/sources/tiddlers/404Plugin.js Mon Apr 19 05:40:37 2010 +0200 @@ -0,0 +1,21 @@ +/*** +|''Name:''|404Plugin| +|''Description:''|| +|''Author:''|Saq Imtiaz ( lewcid@gmail.com )| +|''Source:''|http://tw.lewcid.org/#404Plugin| +|''Code Repository:''|http://tw.lewcid.org/svn/plugins| +|''Version:''|2.0 pre-release| +|''Date:''|| +|''License:''|[[Creative Commons Attribution-ShareAlike 3.0 License|http://creativecommons.org/licenses/by-sa/3.0/]]| +|''~CoreVersion:''|2.2.3| +!!Usage: +* +***/ +// /% +//!BEGIN-PLUGIN-CODE +config.views.wikified.defaultText= "{{fourohfour{\nThe page '%0' doesn't exist.\n\n Try browsing or searching for what you were looking for.\n}}}"; + +setStylesheet(".fourohfour {text-align:center; font-family:'Lucida Grande', Verdana, Sans-Serif; font-size:1.2em; font-weight:bold; font-style:normal;}","404Styles"); + +//!END-PLUGIN-CODE +// %/ \ No newline at end of file
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/jpoker/sites/pokersource.eu-2009/sources/tiddlers/404Plugin.js.div Mon Apr 19 05:40:37 2010 +0200 @@ -0,0 +1,1 @@ +title="404Plugin" modifier="Saq" modified="200708091035" created="200708081231" tags="systemConfig WebsitePluginPackage" \ No newline at end of file
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/jpoker/sites/pokersource.eu-2009/sources/tiddlers/ActiveMenuLinksPlugin.js Mon Apr 19 05:40:37 2010 +0200 @@ -0,0 +1,47 @@ +/*** +|''Name:''|ActiveMenuLinksPlugin| +|''Description:''|| +|''Author:''|Saq Imtiaz ( lewcid@gmail.com )| +|''Source:''|http://tw.lewcid.org/#ActiveMenuLinksPlugin| +|''Code Repository:''|http://tw.lewcid.org/svn/plugins| +|''Version:''|2.0 pre-release| +|''Date:''|| +|''License:''|[[Creative Commons Attribution-ShareAlike 3.0 License|http://creativecommons.org/licenses/by-sa/3.0/]]| +|''~CoreVersion:''|2.2.3| +!!Usage: +* +***/ +// /% +//!BEGIN-PLUGIN-CODE +Story.prototype.refreshTiddler_activelink = Story.prototype.refreshTiddler; +Story.prototype.refreshTiddler = function (title,template,force) +{ + var theTiddler = Story.prototype.refreshTiddler_activelink.apply(this,arguments); + if (!theTiddler) + return theTiddler; + this.highlightActiveLinks(); + return theTiddler; +} + +Story.prototype.highlightActiveLinks = function() +{ + var menu = document.getElementById("menu"); + var links = menu.getElementsByTagName("a"); + for (var i=0; i<links.length; i++){ + if (!links[i].getAttribute("tiddlyLink")) + return; + if (document.getElementById(this.idPrefix+(links[i].getAttribute("tiddlylink")))) + addClass(links[i],"activeLink"); + else + removeClass(links[i],"activeLink"); + } +} + +Story.prototype.closeTiddler_activelink = Story.prototype.closeTiddler; +Story.prototype.closeTiddler = function(title,animate,unused) +{ + this.closeTiddler_activelink.apply(this,arguments); + this.highlightActiveLinks(); +} +//!END-PLUGIN-CODE +// %/ \ No newline at end of file
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/jpoker/sites/pokersource.eu-2009/sources/tiddlers/ActiveMenuLinksPlugin.js.div Mon Apr 19 05:40:37 2010 +0200 @@ -0,0 +1,1 @@ +title="ActiveMenuLinksPlugin" modifier="Saq" modified="200709031720" created="200708081041" tags="systemConfig WebsitePluginPackage" changecount="3" \ No newline at end of file
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/jpoker/sites/pokersource.eu-2009/sources/tiddlers/AdminMode.tiddler Mon Apr 19 05:40:37 2010 +0200 @@ -0,0 +1,11 @@ +|>|!Layout Tiddlers| +|Name:|Admin| +|~PageTemplate:|AdminPageTemplate| +|~StyleSheet:|AdminStyleSheet| +|~ViewTemplate:|AdminViewTemplate| +|~EditTemplate:|AdminEditTemplate| + +|>|!Configuration Options| +|readOnly:|false| +|~SinglePageMode:|false| +|showBackstage:|true| \ No newline at end of file
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/jpoker/sites/pokersource.eu-2009/sources/tiddlers/AdminMode.tiddler.div Mon Apr 19 05:40:37 2010 +0200 @@ -0,0 +1,1 @@ +title="AdminMode" modifier="YourName" created="200806200806" tags="publisherMode excludeLists excludeSearch" changecount="1" \ No newline at end of file
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/jpoker/sites/pokersource.eu-2009/sources/tiddlers/ColorPalette.tiddler Mon Apr 19 05:40:37 2010 +0200 @@ -0,0 +1,16 @@ +Background: #fff +Foreground: #000 +PrimaryPale: #80CF82 +PrimaryLight: #20AB23 +PrimaryMid: #009e03 +PrimaryDark: #17691c +SecondaryPale: #DEFAB9 +SecondaryLight: #BBF471 +SecondaryMid: #5EC93B +SecondaryDark: #009e03 +TertiarySuperPale: #f7f7f7 +TertiaryPale: #eee +TertiaryLight: #ccc +TertiaryMid: #999 +TertiaryDark: #444 +Error: #f88 \ No newline at end of file
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/jpoker/sites/pokersource.eu-2009/sources/tiddlers/ColorPalette.tiddler.div Mon Apr 19 05:40:37 2010 +0200 @@ -0,0 +1,1 @@ +title="ColorPalette" modifier="Saq" modified="200709031814" created="200709030351" tags="SuperCookerTheme" changecount="34" \ No newline at end of file
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/jpoker/sites/pokersource.eu-2009/sources/tiddlers/Copyright.tiddler Mon Apr 19 05:40:37 2010 +0200 @@ -0,0 +1,215 @@ +{{{ +PokerSource is a large system comprised of a number of components: + jpoker, poker-network, poker-engine, pypoker-eval, poker-eval + +Below the copyright and license information for all components. + + jpoker Copyright Info + +Copyright 2008 - 2010 Loic Dachary <mailto:loic@dachary.org> +Copyright 2008 - 2010 Johan Euphrosine <mailto:proppy@aminche.com> +Copyright 2008 Saq Imtiaz <mailto:lewcid@gmail.com> + +jpoker home is at http://jspoker.pokersource.info/ + +jpoker runs on this web browser and is Free Software. You may use +jpoker to run a business without asking the authors permissions. You +may give a copy to your friends. However, the authors do not want +jpoker to be used with proprietary software. + +This program is free software: you can redistribute it and/or modify +it under the terms of the GNU General Public License as published by +the Free Software Foundation, either version 3 of the License, or (at +your option) any later version. + +This program is distributed in the hope that it will be useful, but +WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +General Public License for more details. + +You should have received a copy of the GNU General Public License +along with this program. If not, see <http://www.gnu.org/licenses/>. + +jpoker includes a number of smaller components from others: + + Copyright for: + jpoker/js/jquery.dynDateTime.js + + (c) 2008 thetoolman@gmail.com + Licensed under LGPLv3+ + + Copyright for: + mo2json.py jpoker/jquery.gettext.js jpoker/jquery.printf.js + + (c) 2008 Sabin Iacob (m0n5t3r) <iacobs@m0n5t3r.info> + Licensed under GPLv3+ + + Copyright for: + jpoker/jquery.js jpoker/jquery.ajaxQueue.js + + (c) 2007 John Resig (jquery.com) + Licensed under MIT + + Copyright for: + jpoker/jquery.tablesorter.js + jpoker/jquery.tablesorter.pager.js + + (c) 2007 Christian Bach + (c) 2008 Johan Euphrosine + Dual licensed under the MIT and GPL licenses: + + Copyright for: + jpoker/jquery.form.js + + Dual licensed under the MIT and GPL licenses + + Copyright for: + tiddlywiki as found in jpoker/poker.html + + (c) UnaMesa Association 2004-2007 + Licensed under Modified BSD + + Copyright for: + jpoker/index-fr/FrenchTranslationPlugin.tiddler + + (c) 2008 ocalTW@gmail.com + Creative Commons Attribution-ShareAlike 3.0 + + Copyright for: + jpoker/index/404Plugin.js + jpoker/index/ActiveMenuLinksPlugin.js + jpoker/index/PublisherPluginBeta.js + jpoker/index/SplashScreenPlugin.js + jpoker/index/TiddlerSubtitleTweak.js + jpoker/index/TiddlyLightBoxPlugin.js + + (c) 2006, 2007, 2008 Saq Imtiaz <lewcid@gmail.com> + Creative Commons Attribution-ShareAlike 3.0 + GPLv3+ + + Copyright for: + jpoker/index/WebDavPlugin.js + + (c) 2007, 2008 Saq Imtiaz <lewcid@gmail.com> + Loic Dachary <loic@dachary.org> + Creative Commons Attribution-ShareAlike 3.0 + GPLv3+ + + Copyright for: + jpoker/index/GenerateRssByTagPlugin.js + + (c) 2007 BidiX@bidix.info + Licensed under Modified BSD + + Public domain: + http://www.JSON.org/js.html 2008 jpoker/js/json2.js +######################################################################### + poker-network Copyright Info + + Copyright (C) 2002, 2005, 2006, 2007, 2008, 2009, 2010 Loic Dachary <loic@dachary.org> + Copyright (C) 2008, 2009, 2010 Johan Euphrosine <proppy@aminche.com> + Copyright (C) 2008, 2009 Bradley M. Kuhn <bkuhn@ebb.org> + Copyright (C) 2004, 2005, 2006 Mekensleep <licensing@mekensleep.com> + 24 rue vieille du temple, 75004 Paris + + + poker-network's license gives you freedom; you can copy, convey, + propagate, redistribute and/or modify this program under the terms of + the GNU Affero General Public License (AGPL) as published by the Free + Software Foundation (FSF), either version 3 of the License, or (at your + option) any later version of the AGPL published by the FSF. + + This program is distributed in the hope that it will be useful, but + WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero + General Public License for more details. + + You should have received a copy of the GNU Affero General Public License + along with this program in a file in the toplevel directory called + "AGPLv3". If not, see <http://www.gnu.org/licenses/>. + + Note that the AGPLv3 entitles you to the complete and correpsonding + source code of the running instance of poker-network that you are using. + You should find a link to that source in the site where you used + PokerSource's poker-network. If you did not find such a link, please + contact the copyright holders above. + + Additional copyright holders on smaller parts of poker-network: + Licensed under AGPLv3-or-later: + Copyright (C) 2006 Jerome Jeannin <griim.work@gmail.com> + # Jerome's copyrights only in ./config directory for build system + Licensed AGPLv3-or-later + Licensed under GPLv3-or-later: + Copyright (C) 1993-2006, Free Software Foundation, Inc. + # FSF copyrights appear only in the ./config directory for the build system + Copyright (C) 2007 Miguel Figueiredo <elmig@debianpt.org> + # Miguel's copyrights appear only in ./debian/po/pt.po + Copyright (C) Helge Kreutzmann <debian@helgefjell.de>, 2007. + # Helge's copyrights appear only in ./debian/po/de.po +######################################################################### + poker-engine Copyright Info + + Copyright (C) 2006, 2007, 2008, 2009, 2010 Loic Dachary <loic@dachary.org> + Copyright (C) 2008, 2009 Bradley M. Kuhn <bkuhn@ebb.org> + Copyright (C) 2004, 2005, 2006 Mekensleep <licensing@mekensleep.com> + + This program is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 3 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program; if not, write to the Free Software + Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA. + +######################################################################### + pypoker-eval Copyright Info + + Copyright (C) 2007, 2008, 2009, 2010 Loic Dachary <loic@dachary.org> + Copyright (C) 2004, 2005, 2006 Mekensleep <licensing@mekensleep.com> + + This program is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 3 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License along + with this program; if not, write to the Free Software Foundation, Inc., + 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA. + +######################################################################### + poker-eval Copyright Info + +Copyright (C) 1993-2006 Brian Goetz <brian@quiotix.com> +Copyright (C) 1993-1999 Clifford T. Matthews +Copyright (C) 1993-1999 Keith Miyake +Copyright (C) 1999-2006 Michael Maurer <mjmaurer@yahoo.com> +Copyright (C) 2005-2010 Loic Dachary <loic@dachary.org> +Copyright (C) 2004-2006 Mekensleep <licensing@mekensleep.com> +Copyright (C) 2006 Tim Showalter <tjs@psaux.com> + + This program gives you software freedom; you can copy, convey, + propagate, redistribute and/or modify this program under the terms of + the GNU General Public License (GPL) as published by the Free Software + Foundation (FSF), either version 3 of the License, or (at your option) + any later version of the GPL published by the FSF. + + This program is distributed in the hope that it will be useful, but + WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + General Public License for more details. + + You should have received a copy of the GNU General Public License along + with this program in a file in the toplevel directory called "GPLv3". + If not, see <http://www.gnu.org/licenses/>. +}}}
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/jpoker/sites/pokersource.eu-2009/sources/tiddlers/Copyright.tiddler.div Mon Apr 19 05:40:37 2010 +0200 @@ -0,0 +1,1 @@ +title="Copyright" modifier="loic" modified="200804051814" created="200804051814" \ No newline at end of file
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/jpoker/sites/pokersource.eu-2009/sources/tiddlers/DropDownMenuPlugin.js Mon Apr 19 05:40:37 2010 +0200 @@ -0,0 +1,173 @@ +/*** +|''Name:''|DropDownMenuPlugin| +|''Description:''|Create dropdown menus from unordered lists| +|''Author:''|Saq Imtiaz ( lewcid@gmail.com )| +|''Source:''|http://tw.lewcid.org/#DropDownMenuPlugin| +|''Code Repository:''|http://tw.lewcid.org/svn/plugins| +|''Version:''|2.1| +|''Date:''|11/04/2007| +|''License:''|[[Creative Commons Attribution-ShareAlike 3.0 License|http://creativecommons.org/licenses/by-sa/3.0/]]| +|''~CoreVersion:''|2.2.5| + +!!Usage: +* create a two-level unordered list using wiki syntax, and place {{{<<dropMenu>>}}} on the line after it. +* to create a vertical menu use {{{<<dropMenu vertical>>}}} instead. +* to assign custom classes to the list, just pass them as parameters to the macro {{{<<dropMenu className1 className2 className3>>}}} + +!!Features: +*Supports just a single level of drop-downs, as anything more usually provides a poor experience for the user. +* Very light weight, about 1.5kb of JavaScript and 4kb of CSS. +* Comes with two built in css 'themes', the default horizontal and vertical. + +!!Customizing: +* to customize the appearance of the menu's, you can either add a custom class as described above or, you can edit the CSS via the StyleSheetDropDownMenu shadow tiddler. + +!!Examples: +* [[DropDownMenuDemo]] + +***/ +// /% +//!BEGIN-PLUGIN-CODE +config.macros.dropMenu={ + + dropdownchar: "\u25bc", + + handler : function(place,macroName,params,wikifier,paramString,tiddler){ + list = findRelated(place.lastChild,"UL","tagName","previousSibling"); + if (!list) + return; + addClass(list,"suckerfish"); + if (params.length){ + addClass(list,paramString); + } + this.fixLinks(list); + }, + + fixLinks : function(el){ + var els = el.getElementsByTagName("li"); + for(var i = 0; i < els.length; i++) { + if(els[i].getElementsByTagName("ul").length>0){ + var link = findRelated(els[i].firstChild,"A","tagName","nextSibling"); + if(!link){ + var ih = els[i].firstChild.data; + els[i].removeChild(els[i].firstChild); + var d = createTiddlyElement(null,"a",null,null,ih+this.dropdownchar,{href:"javascript:;"}); + els[i].insertBefore(d,els[i].firstChild); + } + else{ + link.firstChild.data = link.firstChild.data + this.dropdownchar; + removeClass(link,"tiddlyLinkNonExisting"); + } + } + els[i].onmouseover = function() { + addClass(this, "sfhover"); + }; + els[i].onmouseout = function() { + removeClass(this, "sfhover"); + }; + } + } +}; + +config.shadowTiddlers["StyleSheetDropDownMenuPlugin"] = + "/*{{{*/\n"+ + "/***** LAYOUT STYLES - DO NOT EDIT! *****/\n"+ + "ul.suckerfish, ul.suckerfish ul {\n"+ + " margin: 0;\n"+ + " padding: 0;\n"+ + " list-style: none;\n"+ + " line-height:1.4em;\n"+ + "}\n\n"+ + "ul.suckerfish li {\n"+ + " display: inline-block; \n"+ + " display: block;\n"+ + " float: left; \n"+ + "}\n\n"+ + "ul.suckerfish li ul {\n"+ + " position: absolute;\n"+ + " left: -999em;\n"+ + "}\n\n"+ + "ul.suckerfish li:hover ul, ul.suckerfish li.sfhover ul {\n"+ + " left: auto;\n"+ + "}\n\n"+ + "ul.suckerfish ul li {\n"+ + " float: none;\n"+ + " border-right: 0;\n"+ + " border-left:0;\n"+ + "}\n\n"+ + "ul.suckerfish a, ul.suckerfish a:hover {\n"+ + " display: block;\n"+ + "}\n\n"+ + "ul.suckerfish li a.tiddlyLink, ul.suckerfish li a, #mainMenu ul.suckerfish li a {font-weight:bold;}\n"+ + "/**** END LAYOUT STYLES *****/\n"+ + "\n\n"+ + "/**** COLORS AND APPEARANCE - DEFAULT *****/\n"+ + "ul.suckerfish li a {\n"+ + " padding: 0.5em 1.5em;\n"+ + " color: #FFF;\n"+ + " background: #0066aa;\n"+ + " border-bottom: 0;\n"+ + " font-weight:bold;\n"+ + "}\n\n"+ + "ul.suckerfish li:hover a, ul.suckerfish li.sfhover a{\n"+ + " background: #00558F;\n"+ + "}\n\n"+ + "ul.suckerfish li:hover ul a, ul.suckerfish li.sfhover ul a{\n"+ + " color: #000;\n"+ + " background: #eff3fa;\n"+ + " border-top:1px solid #FFF;\n"+ + "}\n\n"+ + "ul.suckerfish ul li a:hover {\n"+ + " background: #e0e8f5;\n"+ + "}\n\n"+ + "ul.suckerfish li a{\n"+ + " width:9em;\n"+ + "}\n\n"+ + "ul.suckerfish ul li a, ul.suckerfish ul li a:hover{\n"+ + " display:inline-block;\n"+ + " width:9em;\n"+ + "}\n\n"+ + "ul.suckerfish li {\n"+ + " border-left: 1px solid #00558F;\n"+ + "}\n"+ + "/***** END COLORS AND APPEARANCE - DEFAULT *****/\n"+ + "\n\n"+ + "/***** LAYOUT AND APPEARANCE: VERTICAL *****/\n"+ + "ul.suckerfish.vertical li{\n"+ + " width:10em;\n"+ + " border-left: 0px solid #00558f;\n"+ + "}\n\n"+ + "ul.suckerfish.vertical ul li, ul.suckerfish.vertical li a, ul.suckerfish.vertical li:hover a, ul.suckerfish.vertical li.sfhover a {\n"+ + " border-left: 0.8em solid #00558f;\n"+ + "}\n\n"+ + "ul.suckerfish.vertical li a, ul.suckerfish.vertical li:hover a, ul.suckerfish.vertical li.sfhover a, ul.suckerfish.vertical li.sfhover a:hover{\n"+ + " width:8em;\n"+ + "}\n\n"+ + "ul.suckerfish.vertical {\n"+ + " width:10em; text-align:left;\n"+ + " float:left;\n"+ + "}\n\n"+ + "ul.suckerfish.vertical li a {\n"+ + " padding: 0.5em 1em 0.5em 1em;\n"+ + " border-top:1px solid #fff;\n"+ + "}\n\n"+ + "ul.suckerfish.vertical, ul.suckerfish.vertical ul {\n"+ + " line-height:1.4em;\n"+ + "}\n\n"+ + "ul.suckerfish.vertical li:hover ul, ul.suckerfish.vertical li.sfhover ul { \n"+ + " margin: -2.4em 0 0 10.9em;\n"+ + "}\n\n"+ + "ul.suckerfish.vertical li:hover ul li a, ul.suckerfish.vertical li.sfhover ul li a {\n"+ + " border: 0px solid #FFF;\n"+ + "}\n\n"+ + "ul.suckerfish.vertical li:hover a, ul.suckerfish.vertical li.sfhover a{\n"+ + " padding-right:1.1em;\n"+ + "}\n\n"+ + "ul.suckerfish.vertical li:hover ul li, ul.suckerfish.vertical li.sfhover ul li {\n"+ + " border-bottom:1px solid #fff;\n"+ + "}\n\n"+ + "/***** END LAYOUT AND APPEARANCE: VERTICAL *****/\n"+ + "/*}}}*/"; +store.addNotification("StyleSheetDropDownMenuPlugin",refreshStyles); +//!END-PLUGIN-CODE +// %/
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/jpoker/sites/pokersource.eu-2009/sources/tiddlers/DropDownMenuPlugin.js.div Mon Apr 19 05:40:37 2010 +0200 @@ -0,0 +1,1 @@ +title="DropDownMenuPlugin" modifier="Saq" modified="200809031815" created="200809022008" tags="systemConfig excludeLists excludeSearch"
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/jpoker/sites/pokersource.eu-2009/sources/tiddlers/Footer.tiddler Mon Apr 19 05:40:37 2010 +0200 @@ -0,0 +1,1 @@ +[[PokerSource.eu|http://pokersource.eu/]] © 2008 - 2010 [[Loic Dachary|mailto:loic@dachary.org]], [[Johan Euphrosine|mailto:proppy@aminche.com]], [[released under GNU GPLv3+|Copyright]] \ No newline at end of file
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/jpoker/sites/pokersource.eu-2009/sources/tiddlers/Footer.tiddler.div Mon Apr 19 05:40:37 2010 +0200 @@ -0,0 +1,1 @@ +title="Footer" modifier="Saq" modified="200709031815" created="200709022008" tags="SuperCookerTheme" changecount="5" \ No newline at end of file
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/jpoker/sites/pokersource.eu-2009/sources/tiddlers/FullScreenPlugin.js Mon Apr 19 05:40:37 2010 +0200 @@ -0,0 +1,72 @@ +/*** +!!custom version for jpoker + +|Name|FullScreenPlugin| +|Created by|SaqImtiaz| +|Location|http://tw.lewcid.org/#FullScreenPlugin| +|Version|1.1| +|Requires|~TW2.x| +!Description: +Toggle between viewing tiddlers fullscreen and normally. Very handy for when you need more viewing space. + +!Demo: +Click the ↕ button in the toolbar for this tiddler. Click it again to turn off fullscreen. + +!Installation: +Copy the contents of this tiddler to your TW, tag with systemConfig, save and reload your TW. +Edit the ViewTemplate to add the fullscreen command to the toolbar. + +!History: +*25-07-06: ver 1.1 +*20-07-06: ver 1.0 + +!Code +***/ +//{{{ +var lewcidFullScreen = false; + +config.commands.fullscreen = +{ + text:" ↕ ", + tooltip:"Fullscreen mode" +}; + +config.commands.fullscreen.handler = function (event,src,title) +{ + if (lewcidFullScreen == false) + { + lewcidFullScreen = true; + setStylesheet('#sidebar, #header, #stickyfooter,#push, #mainMenu{display:none;} #displayArea{margin:0em 0 0 0 !important;}',"lewcidFullScreenStyle"); + } + else + { + lewcidFullScreen = false; + setStylesheet(' ',"lewcidFullScreenStyle"); + } +} + +config.macros.fullscreen={}; +config.macros.fullscreen.handler = function(place,macroName,params,wikifier,paramString,tiddler) +{ + var label = params[0]||" ↕ "; + var tooltip = params[1]||"Fullscreen mode"; + createTiddlyButton(place,label,tooltip,config.commands.fullscreen.handler); +} + +var lewcid_fullscreen_closeTiddler = Story.prototype.closeTiddler; +Story.prototype.closeTiddler =function(title,animate,slowly) +{ + lewcid_fullscreen_closeTiddler.apply(this,arguments); + if (story.isEmpty() && lewcidFullScreen == true) + config.commands.fullscreen.handler(); +} + + +Slider.prototype.lewcidStop = Slider.prototype.stop; +Slider.prototype.stop = function() +{ + this.lewcidStop(); + if (story.isEmpty() && lewcidFullScreen == true) + config.commands.fullscreen.handler(); +} +//}}}
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/jpoker/sites/pokersource.eu-2009/sources/tiddlers/FullScreenPlugin.js.div Mon Apr 19 05:40:37 2010 +0200 @@ -0,0 +1,1 @@ +title="FullScreenPlugin" modifier="saqimtiaz" modified="200809281308" created="200809052156" tags="excludeLists excludeSearch systemConfig"
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/jpoker/sites/pokersource.eu-2009/sources/tiddlers/GenerateRssByTagPlugin.js Mon Apr 19 05:40:37 2010 +0200 @@ -0,0 +1,64 @@ +/*** +|''Name:''|GenerateRssByTagPlugin| +|''Description:''|Only tiddlers with a specific tag are inluded in the RSSFeed. If no tiddlers are selected then works as before. (see ticket #270: http://trac.tiddlywiki.org/tiddlywiki/ticket/270). <br>RssTag: <<option txtRssTag>>| +|''Version:''|1.0.2| +|''Date:''|Apr 20, 2007| +|''Source:''|http://tiddlywiki.bidix.info/#GenerateRssByTagPlugin| +|''Author:''|BidiX (BidiX (at) bidix (dot) info)| +|''[[License]]:''|[[BSD open source license|http://tiddlywiki.bidix.info/#%5B%5BBSD%20open%20source%20license%5D%5D ]]| +|''~CoreVersion:''|2.2.0 (Beta 5)| +***/ +//{{{ +version.extensions.GenerateRssByTagPlugin = { + major: 1, minor: 0, revision: 2, + date: new Date("Apr 20, 2007"), + source: 'http://tiddlywiki.bidix.info/#PasswordOptionPlugin', + author: 'BidiX (BidiX (at) bidix (dot) info', + coreVersion: '2.2.0 (Beta 5)' +}; + +if (!window.bidix) window.bidix = {}; // bidix namespace + +bidix.generateRssByTag = function() +{ + var s = []; + var d = new Date(); + var u = store.getTiddlerText("SiteUrl"); + // Assemble the header + s.push("<" + "?xml version=\"1.0\"" + " encoding='UTF-8' " + "?" + ">"); + s.push("<rss version=\"2.0\">"); + s.push("<channel>"); + s.push("<title" + ">" + wikifyPlain("SiteTitle").htmlEncode() + "</title" + ">"); + if(u) + s.push("<link>" + u.htmlEncode() + "</link>"); + s.push("<description>" + wikifyPlain("SiteSubtitle").htmlEncode() + "</description>"); + s.push("<language>en-us</language>"); + s.push("<copyright>Copyright " + d.getFullYear() + " " + config.options.txtUserName.htmlEncode() + "</copyright>"); + s.push("<pubDate>" + d.toGMTString() + "</pubDate>"); + s.push("<lastBuildDate>" + d.toGMTString() + "</lastBuildDate>"); + s.push("<docs>http://blogs.law.harvard.edu/tech/rss</docs>"); + s.push("<generator>TiddlyWiki " + version.major + "." + version.minor + "." + version.revision + "</generator>"); + // The body + var tiddlers; + if (config.options.txtRssTag && store.getTaggedTiddlers(config.options.txtRssTag).length > 0) + tiddlers = store.getTaggedTiddlers(config.options.txtRssTag,"modified"); + else + tiddlers = store.getTiddlers("modified","[[excludeLists]]"); + var n = config.numRssItems > tiddlers.length ? 0 : tiddlers.length-config.numRssItems; + for (var t=tiddlers.length-1; t>=n; t--) + s.push(tiddlers[t].saveToRss(u)); + // And footer + s.push("</channel>"); + s.push("</rss>"); + // Save it all + return s.join("\n"); +}; + +// +// Initializations +// +bidix.generateRss = generateRss; // backup core version +generateRss = bidix.generateRssByTag; // install new one +config.options.txtRssTag = "toRSS"; // default RssTag. use <<option txtRssTag>> to overwritte +merge(config.optionsDesc,{txtRssTag: "Only tiddlers with this tag will be included in the RSS Feed."}); +//}}} \ No newline at end of file
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/jpoker/sites/pokersource.eu-2009/sources/tiddlers/GenerateRssByTagPlugin.js.div Mon Apr 19 05:40:37 2010 +0200 @@ -0,0 +1,1 @@ +title="GenerateRssByTagPlugin" modifier="BidiX" modified="200705281308" created="200703052156" tags="admin NewsWiki systemConfig" server.host="http://TiddlyHome.bidix.info/systemServer/NewsWiki.html" server.page.revision="200705281308" server.type="file" \ No newline at end of file
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/jpoker/sites/pokersource.eu-2009/sources/tiddlers/GettingStarted.tiddler Mon Apr 19 05:40:37 2010 +0200 @@ -0,0 +1,26 @@ +Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Ut fermentum. Sed ultrices molestie lorem. Etiam pharetra. Duis ultricies. Ut risus ante, facilisis sed, luctus eu, imperdiet ac, enim. Quisque tellus nulla, nonummy vel, mattis id, imperdiet in, velit. Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Quisque mi turpis, semper id, commodo porttitor, pharetra at, urna. Nam velit enim, ultrices ut, condimentum molestie, porttitor vel, lorem. Proin rutrum blandit erat. Pellentesque placerat neque vel nulla. Sed enim justo, molestie vitae, euismod id, accumsan vitae, enim. Aenean et augue at massa ornare elementum. Donec scelerisque, pede vel vehicula varius, turpis lectus elementum nisi, eu ultricies nibh sapien ac sem. + +Proin euismod rutrum lectus. Integer vulputate posuere dui. Donec posuere posuere ligula. Suspendisse placerat. Sed elementum purus at neque. Vestibulum elementum mi et dui. Nullam adipiscing tempus lorem. Integer felis. Pellentesque eu lorem quis ipsum pellentesque bibendum. Ut eget nisl. Nulla nibh. Nunc eget orci ac magna porttitor luctus. Morbi eleifend vestibulum nisl. Nunc et risus. Sed laoreet. Quisque nec est. + +<<tag systemConfig>> + +{{{ hello how are you}}} + +<<< +Proin euismod rutrum lectus. Integer vulputate posuere dui. Donec posuere posuere ligula. Suspendisse placerat. Sed elementum purus at neque. Vestibulum elementum mi et dui. Nullam adipiscing tempus lorem. Integer felis. Pellentesque eu lorem quis ipsum pellentesque bibendum. Ut eget nisl. Nulla nibh. Nunc eget orci ac magna porttitor luctus. Morbi eleifend vestibulum nisl. Nunc et risus. Sed laoreet. Quisque nec est. +<<< + +!heading 1 +!!heading 2 +!!!heading3 + +|!efrefr|!eferfrfvrvrver|!rgergre| +|rerr|rwfrgr|rgregre| +|regergre|umumuy|thtt| + +---- + +[[Google|http://www.google.com]] + +*lists +*primary pale \ No newline at end of file
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/jpoker/sites/pokersource.eu-2009/sources/tiddlers/GettingStarted.tiddler.div Mon Apr 19 05:40:37 2010 +0200 @@ -0,0 +1,1 @@ +title="GettingStarted" modifier="Saq" modified="200709031851" created="200709030338" changecount="21" \ No newline at end of file
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/jpoker/sites/pokersource.eu-2009/sources/tiddlers/PublicMode.tiddler Mon Apr 19 05:40:37 2010 +0200 @@ -0,0 +1,11 @@ +|>|!Layout Tiddlers| +|Name:|Public| +|~PageTemplate:|PublicPageTemplate| +|~StyleSheet:|PublicStyleSheet| +|~ViewTemplate:|PublicViewTemplate| +|~EditTemplate:|| + +|>|!Configuration Options| +|readOnly:|true| +|~SinglePageMode:|true| +|showBackstage:|false| \ No newline at end of file
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/jpoker/sites/pokersource.eu-2009/sources/tiddlers/PublicMode.tiddler.div Mon Apr 19 05:40:37 2010 +0200 @@ -0,0 +1,1 @@ +title="PublicMode" modifier="YourName" created="200806200807" tags="excludeLists excludeSearch publisherMode" changecount="1" \ No newline at end of file
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/jpoker/sites/pokersource.eu-2009/sources/tiddlers/PublicViewTemplate.html Mon Apr 19 05:40:37 2010 +0200 @@ -0,0 +1,4 @@ +<!--{{{--> +<div class='title' macro='view title'><span macro="fullscreen"></span></div> +<div class='viewer' macro='view text wikified'></div> +<!--}}}-->
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/jpoker/sites/pokersource.eu-2009/sources/tiddlers/PublicViewTemplate.html.div Mon Apr 19 05:40:37 2010 +0200 @@ -0,0 +1,1 @@ +title="PublicViewTemplate" modifier="Saq" modified="200709031816" created="200709031403" tags="SuperCookerTheme" changecount="2" \ No newline at end of file
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/jpoker/sites/pokersource.eu-2009/sources/tiddlers/PublisherGroupsConfig.tiddler Mon Apr 19 05:40:37 2010 +0200 @@ -0,0 +1,3 @@ +|!Name|!ReadOnly|!Backstage|!SPM| +|Admin|false|true|false| +|Public|true|false|true| \ No newline at end of file
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/jpoker/sites/pokersource.eu-2009/sources/tiddlers/PublisherGroupsConfig.tiddler.div Mon Apr 19 05:40:37 2010 +0200 @@ -0,0 +1,1 @@ +title="PublisherGroupsConfig" modifier="Saq" modified="200708091113" created="200708091014" tags="WebsitePluginPackage" \ No newline at end of file
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/jpoker/sites/pokersource.eu-2009/sources/tiddlers/PublisherPluginBeta.js Mon Apr 19 05:40:37 2010 +0200 @@ -0,0 +1,104 @@ +//{{{ +config.macros.publisher = { + + startMode : 'PublicMode', + + currentMode : 'PublicMode', + + spm : false, + + defaultColorPalette : config.shadowTiddlers['ColorPalette'], + + readOnly : false, + + handler: function(place,macroName,params,wikifier,paramString,tiddler){ + if(!(store.getTiddlerSlice(this.startMode,'readOnly') == 'true') || (params[0] =='force')) { + var modeTiddlers = store.getTaggedTiddlers('publisherMode'); + var modes = []; + for(var i=0;i<modeTiddlers.length;i++) { + var modeName = store.getTiddlerSlice(modeTiddlers[i].title,'Name') || modeTiddlers[i].title; + modes.push({name : modeTiddlers[i].title, caption: modeName + ' mode '}); + } + var sel = createTiddlyDropDown(place,this.onchangeselect,modes,this.currentMode); + addClass(sel,'publisher'); + } + }, + + onchangeselect : function(e) { + config.macros.publisher.changeMode(this.value) + return false; + }, + + changeMode : function(mode,noSwitchTheme) { + this.currentMode = mode; + this.spm = store.getTiddlerSlice(mode,'SinglePageMode') == 'true' ? true : false; + this.readOnly = store.getTiddlerSlice(mode,'readOnly') == 'true' ? true : false; + this.toggleReadOnly(); + this.toggleSPM(); + this.toggleColorPalette(mode); + if(!noSwitchTheme) + story.switchTheme(mode); + }, + + + toggleColorPalette : function(mode){ + if(store.getTiddler('ColorPalette')) + return; + var customPalette = store.getTiddlerSlice(mode,'ColorPalette'); + if(customPalette && (store.tiddlerExists(customPalette) || store.isShadowTiddler(customPalette))){ + config.shadowTiddlers['ColorPalette'] = store.getTiddlerText(customPalette); + } + else + config.shadowTiddlers['ColorPalette'] = this.defaultColorPalette; + + }, + + toggleReadOnly : function(){ + if (this.readOnly){ + config.options.chkHttpReadOnly = true; + readOnly = true; + } + else{ + config.options.chkHttpReadOnly =false; + readOnly = false; + } + }, + + toggleSPM : function(){ + config.options.chkSinglePageMode = (this.spm)? true : false; + config.options.chkTopOfPageMode = (this.spm)? true : false; + }, + + start : function(){ + config.options.txtTheme = this.startMode; + showBackstage = store && store.getTiddlerSlice(this.startMode,'showBackstage') == 'false' ? false : showBackstage; + } + +}; + +config.macros.publisher.start(); + +Story.prototype.old_publisher_switchTheme = Story.prototype.switchTheme; +Story.prototype.switchTheme = function(theme){ + if(startingUp) + config.macros.publisher.changeMode(theme,true); + this.old_publisher_switchTheme(theme); +}; + +backstage.old_publisher_init = backstage.init; +backstage.init = function(){ + this.old_publisher_init.apply(this,arguments); + wikify("<<publisher>>",document.getElementById("backstageToolbar")); +}; + +config.paramifiers.mode = { + onconfig: function(mode) { + if (!store.tiddlerExists(mode) && store.tiddlerExists(mode+'Mode')) + mode += 'Mode'; + config.macros.publisher.startMode = mode; + if(store.getTiddlerSlice(mode,'showBackstage') == 'true') + showBackstage = true; + story.switchTheme(mode); + } +}; +//}}} \ No newline at end of file
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/jpoker/sites/pokersource.eu-2009/sources/tiddlers/PublisherPluginBeta.js.div Mon Apr 19 05:40:37 2010 +0200 @@ -0,0 +1,1 @@ +title="PublisherPluginBeta" modifier="YourName" modified="200806200804" created="200707291211" tags="systemConfig WebsitePluginPackage" changecount="1" \ No newline at end of file
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/jpoker/sites/pokersource.eu-2009/sources/tiddlers/PublisherPluginGuide.tiddler Mon Apr 19 05:40:37 2010 +0200 @@ -0,0 +1,19 @@ +The Publisher plugin defines different 'modes' that can be configured to have a different look and feel and editing options. The different modes are defined in the tiddler PublisherGroupsConfig. + +The current modes defined are 'Admin' and 'Public'. + +To customize the Public mode edit: +*PublicStyleSheet +*PublicPageTemplate +*PublicViewTemplate +*PublicEditTemplate +*PublicDefaultTiddlers + +For the Admin mode: +*AdminStyleSheet +*AdminPageTemplate +*AdminViewTemplate +*AdminEditTemplate +*AdminDefaultTiddlers + +If any of the above tiddlers do not exist the plugin uses the default TiddlyWiki version instead. \ No newline at end of file
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/jpoker/sites/pokersource.eu-2009/sources/tiddlers/PublisherPluginGuide.tiddler.div Mon Apr 19 05:40:37 2010 +0200 @@ -0,0 +1,1 @@ +title="PublisherPluginGuide" modifier="Saq" modified="200708091113" created="200708091019" tags="WebsitePluginPackage" \ No newline at end of file
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/jpoker/sites/pokersource.eu-2009/sources/tiddlers/SinglePageModePlugin.js Mon Apr 19 05:40:37 2010 +0200 @@ -0,0 +1,156 @@ +/*** +|Name|SinglePageModePlugin| +|Source|http://www.TiddlyTools.com/#SinglePageModePlugin| +|Documentation|http://www.TiddlyTools.com/#SinglePageModePluginInfo| +|Version|2.9.1| +|Author|Eric Shulman - ELS Design Studios| +|License|http://www.TiddlyTools.com/#LegalStatements <br>and [[Creative Commons Attribution-ShareAlike 2.5 License|http://creativecommons.org/licenses/by-sa/2.5/]]| +|~CoreVersion|2.1| +|Type|plugin| +|Requires|| +|Overrides|Story.prototype.displayTiddler(), Story.prototype.displayTiddlers()| +|Options|##Configuration| +|Description|Show tiddlers one at a time with automatic permalink, or always open tiddlers at top/bottom of page.| +This plugin allows you to configure TiddlyWiki to navigate more like a traditional multipage web site with only one tiddler displayed at a time. +!!!!!Documentation +>see [[SinglePageModePluginInfo]] +!!!!!Configuration +<<< +<<option chkSinglePageMode>> Display one tiddler at a time +><<option chkSinglePageKeepFoldedTiddlers>> Don't auto-close folded tiddlers +><<option chkSinglePagePermalink>> Automatically permalink current tiddler +<<option chkTopOfPageMode>> Always open tiddlers at the top of the page +<<option chkBottomOfPageMode>> Always open tiddlers at the bottom of the page +<<option chkSinglePageAutoScroll>> Automatically scroll tiddler into view (if needed) + +Notes: +* The "display one tiddler at a time" option can also be //temporarily// set/reset by including a 'paramifier' in the document URL: {{{#SPM:true}}} or {{{#SPM:false}}}. +* If more than one display mode is selected, 'one at a time' display takes precedence over both 'top' and 'bottom' settings, and if 'one at a time' setting is not used, 'top of page' takes precedence over 'bottom of page'. +* When using Apple's Safari browser, automatically setting the permalink causes an error and is disabled. +<<< +!!!!!Revisions +<<< +2008.04.08 [2.9.1] don't automatically add options to AdvancedOptions shadow tiddler +2008.04.02 [2.9.0] in displayTiddler(), when single-page mode is in use and a tiddler is being edited, ask for permission to save-and-close that tiddler, instead of just leaving it open. +| Please see [[SinglePageModePluginInfo]] for previous revision details | +2005.08.15 [1.0.0] Initial Release. Support for BACK/FORWARD buttons adapted from code developed by Clint Checketts. +<<< +!!!!!Code +***/ +//{{{ +version.extensions.SinglePageMode= {major: 2, minor: 9, revision: 1, date: new Date(2008,4,8)}; +//}}} +//{{{ +config.paramifiers.SPM = { onstart: function(v) { + config.options.chkSinglePageMode=eval(v); + if (config.options.chkSinglePageMode && config.options.chkSinglePagePermalink && !config.browser.isSafari) { + config.lastURL = window.location.hash; + if (!config.SPMTimer) config.SPMTimer=window.setInterval(function() {checkLastURL();},1000); + } +} }; +//}}} +//{{{ +if (config.options.chkSinglePageMode==undefined) + config.options.chkSinglePageMode=false; +if (config.options.chkSinglePageKeepFoldedTiddlers==undefined) + config.options.chkSinglePageKeepFoldedTiddlers=true; +if (config.options.chkSinglePagePermalink==undefined) + config.options.chkSinglePagePermalink=true; +if (config.options.chkTopOfPageMode==undefined) + config.options.chkTopOfPageMode=false; +if (config.options.chkBottomOfPageMode==undefined) + config.options.chkBottomOfPageMode=false; +if (config.options.chkSinglePageAutoScroll==undefined) + config.options.chkSinglePageAutoScroll=true; +//}}} +//{{{ +config.SPMTimer = 0; +config.lastURL = window.location.hash; +function checkLastURL() +{ + if (!config.options.chkSinglePageMode) + { window.clearInterval(config.SPMTimer); config.SPMTimer=0; return; } + if (config.lastURL == window.location.hash) return; // no change in hash + var tids=convertUTF8ToUnicode(decodeURIComponent(window.location.hash.substr(1))).readBracketedList(); + if (tids.length==1) // permalink (single tiddler in URL) + story.displayTiddler(null,tids[0]); + else { // restore permaview or default view + config.lastURL = window.location.hash; + if (!tids.length) tids=store.getTiddlerText("DefaultTiddlers").readBracketedList(); + story.closeAllTiddlers(); + story.displayTiddlers(null,tids); + } +} + +if (Story.prototype.SPM_coreDisplayTiddler==undefined) + Story.prototype.SPM_coreDisplayTiddler=Story.prototype.displayTiddler; +Story.prototype.displayTiddler = function(srcElement,tiddler,template,animate,slowly) +{ + var title=(tiddler instanceof Tiddler)?tiddler.title:tiddler; + var tiddlerElem=document.getElementById(story.idPrefix+title); // ==null unless tiddler is already displayed + var opt=config.options; + if (opt.chkSinglePageMode) { + story.forEachTiddler(function(tid,elem) { + // skip current tiddler and, optionally, tiddlers that are folded. + if ( tid==title + || (opt.chkSinglePageKeepFoldedTiddlers && elem.getAttribute("folded")=="true")) + return; + // if a tiddler is being edited, ask before closing + if (elem.getAttribute("dirty")=="true") { + // if tiddler to be displayed is already shown, then leave active tiddlers editors as is + // (occurs when switching between view and edit modes) + if (tiddlerElem) return; + // otherwise, ask for permission + var msg="'"+tid+"' is currently being edited.\n\n"; + msg+="Press OK to save and close this tiddler\nor press Cancel to leave it opened"; + if (!confirm(msg)) return; else story.saveTiddler(tid); + } + story.closeTiddler(tid); + }); + } + else if (opt.chkTopOfPageMode) + arguments[0]=null; + else if (opt.chkBottomOfPageMode) + arguments[0]="bottom"; + if (opt.chkSinglePageMode && opt.chkSinglePagePermalink && !config.browser.isSafari) { + window.location.hash = encodeURIComponent(convertUnicodeToUTF8(String.encodeTiddlyLink(title))); + config.lastURL = window.location.hash; + document.title = wikifyPlain("SiteTitle") + " - " + title; + if (!config.SPMTimer) config.SPMTimer=window.setInterval(function() {checkLastURL();},1000); + } + if (tiddlerElem && tiddlerElem.getAttribute("dirty")=="true") { // editing... move tiddler without re-rendering + var isTopTiddler=(tiddlerElem.previousSibling==null); + if (!isTopTiddler && (opt.chkSinglePageMode || opt.chkTopOfPageMode)) + tiddlerElem.parentNode.insertBefore(tiddlerElem,tiddlerElem.parentNode.firstChild); + else if (opt.chkBottomOfPageMode) + tiddlerElem.parentNode.insertBefore(tiddlerElem,null); + else this.SPM_coreDisplayTiddler.apply(this,arguments); // let CORE render tiddler + } else + this.SPM_coreDisplayTiddler.apply(this,arguments); // let CORE render tiddler + var tiddlerElem=document.getElementById(story.idPrefix+title); + if (tiddlerElem&&opt.chkSinglePageAutoScroll) { + var yPos=ensureVisible(tiddlerElem); // scroll to top of tiddler + var isTopTiddler=(tiddlerElem.previousSibling==null); + if (opt.chkSinglePageMode||opt.chkTopOfPageMode||isTopTiddler) + yPos=0; // scroll to top of page instead of top of tiddler + if (opt.chkAnimate) // defer scroll until 200ms after animation completes + setTimeout("window.scrollTo(0,"+yPos+")",config.animDuration+200); + else + window.scrollTo(0,yPos); // scroll immediately + } +} + +if (Story.prototype.SPM_coreDisplayTiddlers==undefined) + Story.prototype.SPM_coreDisplayTiddlers=Story.prototype.displayTiddlers; +Story.prototype.displayTiddlers = function() { + // suspend single-page mode (and/or top/bottom display options) when showing multiple tiddlers + var opt=config.options; + var saveSPM=opt.chkSinglePageMode; opt.chkSinglePageMode=false; + var saveTPM=opt.chkTopOfPageMode; opt.chkTopOfPageMode=false; + var saveBPM=opt.chkBottomOfPageMode; opt.chkBottomOfPageMode=false; + this.SPM_coreDisplayTiddlers.apply(this,arguments); + opt.chkBottomOfPageMode=saveBPM; + opt.chkTopOfPageMode=saveTPM; + opt.chkSinglePageMode=saveSPM; +} +//}}} \ No newline at end of file
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/jpoker/sites/pokersource.eu-2009/sources/tiddlers/SinglePageModePlugin.js.div Mon Apr 19 05:40:37 2010 +0200 @@ -0,0 +1,1 @@ +title="SinglePageModePlugin" modifier="ELSDesignStudios" modified="200804082252" created="200512271815" tags="NavigationPackage systemConfig" changecount="5" creator="ELSDesignStudios" \ No newline at end of file
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/jpoker/sites/pokersource.eu-2009/sources/tiddlers/SiteSubtitle.tiddler.div Mon Apr 19 05:40:37 2010 +0200 @@ -0,0 +1,1 @@ +title="SiteSubtitle" modifier="Saq" created="200709031851" changecount="1" \ No newline at end of file
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/jpoker/sites/pokersource.eu-2009/sources/tiddlers/SiteTitle.tiddler Mon Apr 19 05:40:37 2010 +0200 @@ -0,0 +1,1 @@ +[img[../../../themes/pokersource.eu-2009/css/images/logo.png]]@@display:none;PokerSource.eu@@ \ No newline at end of file
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/jpoker/sites/pokersource.eu-2009/sources/tiddlers/SiteTitle.tiddler.div Mon Apr 19 05:40:37 2010 +0200 @@ -0,0 +1,1 @@ +title="SiteTitle" modifier="YourName" modified="200709041504" created="200709022122" changecount="6" \ No newline at end of file
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/jpoker/sites/pokersource.eu-2009/sources/tiddlers/SplashScreen.tiddler Mon Apr 19 05:40:37 2010 +0200 @@ -0,0 +1,7 @@ +<!--{{{--> +<style type="text/css">#contentWrapper {display:none;}</style> +<div id="splashScreen" style="border:none; width:500px;margin: 150px auto; color:#333; font-size: 26px; font-family: Lucida Grande, Tahoma, Arial, Helvetica, sans-serif; text-align:center; line-height:2.5em;"> +<img src='images/splash.png'><br/> +<img src='images/loading3.gif'><br/> +</div> +<!--}}}--> \ No newline at end of file
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/jpoker/sites/pokersource.eu-2009/sources/tiddlers/SplashScreen.tiddler.div Mon Apr 19 05:40:37 2010 +0200 @@ -0,0 +1,1 @@ +title="SplashScreen" modifier="YourName" modified="200709041454" created="200708081344" tags="SuperCookerTheme WebsitePluginPackage" changecount="10" \ No newline at end of file
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/jpoker/sites/pokersource.eu-2009/sources/tiddlers/SplashScreenPlugin.js Mon Apr 19 05:40:37 2010 +0200 @@ -0,0 +1,50 @@ +/*** +|''Name:''|SplashScreenPlugin| +|''Description:''|Provides a splash screen, while ~TiddlyWiki is loading| +|''Author:''|Saq Imtiaz ( lewcid@gmail.com )| +|''Source:''|http://tw.lewcid.org/#SplashScreenPlugin| +|''Code Repository:''|http://tw.lewcid.org/svn/plugins| +|''Version:''|2.0| +|''Date:''|| +|''License:''|[[Creative Commons Attribution-ShareAlike 3.0 License|http://creativecommons.org/licenses/by-sa/3.0/]]| +|''~CoreVersion:''|2.2.2| + +!! Installation: +# Copy the contents of this tiddler to your TiddlyWiki file. +# Tag it as systemConfig. +# Save and reload. +# Save a second time for the SplashScreen to be initialized. +# Next time you reload, the SplashScreen will be visible. + +!! Upgrade +To upgrade from a previous version, less than 2.0: +# Delete the tiddler MarkupPreHead +# Delete the SplashScreenPlugin tiddler. +# Save and reload. +# Follow the installation instructions above. +***/ +// /% +//!BEGIN-PLUGIN-CODE +window.lewcidAddToMarkupBlock = function(s,blockName,newChunk) +{ + var sep = s.indexOf("<!--%0-END-->".format([blockName])); + return ( s.substring(0,sep) + "\n" + newChunk + "\n" + s.substring(sep) ); +}; + +config.shadowTiddlers["SplashScreen"] = '<!--{{{-->\n<style type="text/css">#contentWrapper {display:none;}</style><div id="splashScreen" style="border: 3px solid #ccc; text-align: center; width: 320px; margin: 100px auto; padding: 50px; color:#000; font-size: 28px; font-family:Tahoma; background-color:#eee;"><b>[[SiteTitle]]</b> is loading<blink> ...</blink><br><br><span style="font-size: 14px; color:red;">Requires Javascript.</span></div>\n<!--}}}-->'; + +window.splashscreenAddToMarkupBlock = function(s) +{ + return lewcidAddToMarkupBlock(s,"PRE-BODY",store.getRecursiveTiddlerText("SplashScreen")); +}; + +updateMarkupBlock_old_splashscreen = window.updateMarkupBlock; +window.updateMarkupBlock = function (s,blockName,tiddlerName) +{ + s = updateMarkupBlock_old_splashscreen.apply(this,arguments); + if (blockName == "PRE-BODY") + s = splashscreenAddToMarkupBlock(s); + return s; +}; +//!END-PLUGIN-CODE +// %/ \ No newline at end of file
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/jpoker/sites/pokersource.eu-2009/sources/tiddlers/SplashScreenPlugin.js.div Mon Apr 19 05:40:37 2010 +0200 @@ -0,0 +1,1 @@ +title="SplashScreenPlugin" modifier="Saq" modified="200708090956" created="200708081324" tags="systemConfig WebsitePluginPackage" \ No newline at end of file
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/jpoker/sites/pokersource.eu-2009/sources/tiddlers/StyleSheet.css Mon Apr 19 05:40:37 2010 +0200 @@ -0,0 +1,347 @@ +/*{{{*/ +html, * { + margin:0pt; + padding:0pt; +} + +body { + background:[[ColorPalette::TertiaryPale]]; + color:[[ColorPalette::TertiaryDark]]; + font-family:"trebuchet MS",arial,helvetica,sans-serif; +} + +html, body, #contentWrapper { + height: 100%; +} + +body #contentWrapper { + display:block; +} + +#contentWrapper { + width: 840px; + margin:0 auto; + background:[[ColorPalette::Background]]; +} + +#header { + padding:15px 15px 0px 15px; +} + +#pokLogin { + float:right; +/* + padding:10px; + background:[[ColorPalette::TertiaryPale]]; + border: 1px solid [[ColorPalette::TertiaryLight]]; +*/ +} + +#headerTitle{ + /*font-size: 3.5em;*/ + padding-bottom:0.5em; + height:87px; + float:left; +} + +#headerTitle img{ + float:left; + padding-bottom:0.8em; + margin-right:2em; +} + +#headerImage{ + background: transparent url("images/banner.jpg") no-repeat; + height:156px; + clear:both; + padding-bottom:0.5em; +} + +#menu { + background:[[ColorPalette::PrimaryMid]]; + padding: 9px; + clear:both +} + +#stickybod{ + min-height: 100%; + height: 100%; + height: auto !important; + margin: 0 auto -75px; + background:[[ColorPalette::Background]]; +} + +* html #stickybod {height:100%;} + +#myDisplayArea { + background:[[ColorPalette::Background]]; + padding: 0px 15px 15px 15px; +} + +#push { + clear:both; +} + +#stickyfooter, #push { + height: 60px; + background:[[ColorPalette::Background]]; + padding: 0px 15px 15px 15px; +} + +#footer{ + background:[[ColorPalette::TertiaryPale]]; + height:60px; + border-top:5px solid [[ColorPalette::PrimaryMid]]; + margin:0pt auto; + line-height:60px; + text-align:center; + font-weight: bold; + color: [[ColorPalette::TertiaryDark]]; +} + +#stickyfooter, #stickybod { + border-left:1px solid [[ColorPalette::TertiaryLight]]; + border-right: 1px solid [[ColorPalette::TertiaryLight]]; +} + +.viewer{ + font-size:14px; + line-height:18px; +} + +#menu br {display:none;} + +#menu a{ + font-size:15px; + color:[[ColorPalette::Background]]; + padding: 9px; + border:none; + font-weight:bold; +} + +#menu a:hover, #menu a.activeLink{ + background:[[ColorPalette::PrimaryDark]]; +} + +.tiddler { + padding:1em 0em 0em; +} + +.shadow .title { + color:#17691C; +} + +.subtitle { + color:[[ColorPalette::TertiaryMid]]; +} + +.tagged, .tagging { + position:relative; + float:none; + margin: 0.5em 0em; + padding:6px 4px; +} + +.tagged li, .tagging li, .tagging ul, .tagged ul{ + display:inline; +} + +.tagged li, .tagging li { + margin-right:0.5em; +} + +.tagging .listTitle{ + display:none; +} + +.tagging .button:hover, .tagged .button:hover{ + background: [[ColorPalette::PrimaryMid]]; + color:[[ColorPalette::Background]]; +} + +.tagging, .selected .tagging, .tagged, .selected .tagged { + border:1px solid [[ColorPalette::TertiaryPale]]; + background-color:[[ColorPalette::TertiarySuperPale]]; +} + +.toolbar { + float:right; +} + +.toolbar .button:hover, .toolbar .button:active{ + background:transparent; + border:1px solid [[ColorPalette::Background]]; +} + +.highlight, .marked { + background:[[ColorPalette::PrimaryMid]]; + color:[[ColorPalette::Background]]; +} + +.viewer .button { + border:1px solid [[ColorPalette::PrimaryMid]]; +} + +.viewer .button:hover { + background: [[ColorPalette::PrimaryMid]]; + color: [[ColorPalette::Background]]; +} + +.viewer pre, .viewer code { + font-size:1em; +} + +.viewer code { + color:[[ColorPalette:PrimaryDark]]; +} + +.viewer pre { + background:[[ColorPalette::TertiarySuperPale]]; + border:1px solid [[ColorPalette::TertiaryPale]]; + padding:0.5em; + margin-left:0em; +} + +.viewer hr { + border:0; + border-top:solid 5px [[ColorPalette::PrimaryDark]]; + margin:0 5px; +} + +.viewer blockquote { + border-left:4px solid [[ColorPalette::PrimaryDark]]; +} + +h1 { + border-bottom:2px solid [[ColorPalette::PrimaryMid]]; +} + +h2,h3 { + border-bottom:1px solid [[ColorPalette::PrimaryMid]]; +} + +/* +.viewer table, table.twtable { + border:2px solid [[ColorPalette::PrimaryDark]]; +} +.viewer th, .viewer thead td, .twtable th, .twtable thead td { + background:[[ColorPalette::PrimaryDark]]; + border:1px solid [[ColorPalette::PrimaryDark]]; + color:[[ColorPalette::Background]]; +} +.viewer td, .viewer tr, .twtable td, .twtable tr { + border:1px solid [[ColorPalette::PrimaryDark]]; +} +*/ + +.viewer .tab { + padding:1px; +} + +.imageLink:hover, .imageLink {background:transparent;} + + + +#tiddlerDisplay{ + display:inline-block; +} + +#tiddlerDisplay{ + display:block; + overflow:hidden; +} + +#mysidebar { + padding-left:1.5em; + position:relative; + float:right; + width:14em; + padding-bottom:0.5em; +} + +#sidebarTabs .tabContents{ + font-size:0.95em; + width:13.5em; +} + +/* +td.login_text{ + padding:5px 5px; + text-align:left; +} + +td.login_input input { + border:1px solid [[ColorPalette::TertiaryLight]]; + width:140px; +} + +#statBar{ + color:#FFFFFF; + float:right; + font-size:15px; + padding:8px; +} +*/ + +.editor input, .editor textarea { + width:99%; +} + +/* +#contentWrapper .viewer .jpoker_ptable table.jpokerTableList { + margin: 0.5em auto; +} + +#contentWrapper .viewer .jpoker_table .jpoker_ptable{ + margin: 0em auto; +} +*/ + +.title .button, .title .button:hover {padding:0; background:transparent; border:none;} + +#menu {padding:0;} + +ul.suckerfish li ul {z-index:999;} +/*}}}*/ + + +/**** COLORS AND APPEARANCE - DEFAULT *****/ +#menu ul.suckerfish li a { + padding: 0.5em 1.5em; + color: #FFF; + background: #009E03; + border-bottom: 0; + font-weight:bold; +} + +#menu ul.suckerfish li:hover a, #menu ul.suckerfish li.sfhover a{ + background: #17691C; +} + +#menu ul.suckerfish li:hover ul a, #menu ul.suckerfish li.sfhover ul a{ + color: #000; + background: #eff3fa; + border-top:1px solid #FFF; +} + +#menu ul.suckerfish ul li a:hover { + background: #e0e8f5; +} + +#menu ul.suckerfish li { + border-left: 1px solid #17691C; +} + + +/* +Jpoker overrides below here +*/ + +.viewer .jpoker_tourney_details table, .jpoker_tourney_details table.twtable, +.viewer .jpoker_tourney_details table th, .jpoker_tourney_details table.twtable th, +.viewer .jpoker_tourney_details table thead td, .jpoker_tourney_details table.twtable thead td { + border:none; +} +.viewer .jpoker_tourney_details table, .jpoker_tourney_details table.twtable { + margin:0; +}
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/jpoker/sites/pokersource.eu-2009/sources/tiddlers/StyleSheet.css.div Mon Apr 19 05:40:37 2010 +0200 @@ -0,0 +1,1 @@ +title="StyleSheet" modifier="YourName" modified="200709041503" created="200709022008" tags="SuperCookerTheme" changecount="154" \ No newline at end of file
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/jpoker/sites/pokersource.eu-2009/sources/tiddlers/SuperCookerTheme.tiddler Mon Apr 19 05:40:37 2010 +0200 @@ -0,0 +1,7 @@ +Theme by [[Saq 'Lewcid' Imtiaz|http://tw.lewcid.org]] + +<html><a rel="license" href="http://creativecommons.org/licenses/by-sa/3.0/"> +<img alt="Creative Commons License" style="border-width:0;background:transparent;" src="http://i.creativecommons.org/l/by-sa/3.0/88x31.png" /> +</a> +<br />This work is licensed under a +<a rel="license" href="http://creativecommons.org/licenses/by-sa/3.0/">Creative Commons Attribution-Share Alike 3.0 License</a>.</html> \ No newline at end of file
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/jpoker/sites/pokersource.eu-2009/sources/tiddlers/SuperCookerTheme.tiddler.div Mon Apr 19 05:40:37 2010 +0200 @@ -0,0 +1,1 @@ +title="SuperCookerTheme" modifier="Saq" modified="200709031814" created="200708071133" changecount="1" \ No newline at end of file
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/jpoker/sites/pokersource.eu-2009/sources/tiddlers/TiddlerSubtitleTweak.js Mon Apr 19 05:40:37 2010 +0200 @@ -0,0 +1,26 @@ +/*** +|''Name:''|TiddlerSubtitleTweak| +|''Description:''|| +|''Author:''|Saq Imtiaz ( lewcid@gmail.com )| +|''Source:''|http://tw.lewcid.org/#TiddlerSubtitleTweak| +|''Code Repository:''|http://tw.lewcid.org/svn/plugins| +|''Version:''|2.0 beta| +|''Date:''|| +|''License:''|[[Creative Commons Attribution-ShareAlike 3.0 License|http://creativecommons.org/licenses/by-sa/3.0/]]| +|''~CoreVersion:''|2.2.3| +!!Usage: +* +***/ +// /% +//!BEGIN-PLUGIN-CODE +//{{{ +window.old_website_getTiddlyLinkInfo = window.getTiddlyLinkInfo; +window.getTiddlyLinkInfo = function(title,currClasses) +{ + var x = window.old_website_getTiddlyLinkInfo.apply(this,arguments); + x.subTitle = title; + return x; +} +//}}} +//!END-PLUGIN-CODE +// %/ \ No newline at end of file
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/jpoker/sites/pokersource.eu-2009/sources/tiddlers/TiddlerSubtitleTweak.js.div Mon Apr 19 05:40:37 2010 +0200 @@ -0,0 +1,1 @@ +title="TiddlerSubtitleTweak" modifier="Saq" modified="200708091002" created="200708081210" tags="systemConfig WebsitePluginPackage" \ No newline at end of file
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/jpoker/sites/pokersource.eu-2009/sources/tiddlers/ViewTemplate.html Mon Apr 19 05:40:37 2010 +0200 @@ -0,0 +1,9 @@ +<!--{{{--> +<div class='toolbar' macro='toolbar closeTiddler closeOthers +editTiddler > permalink references jump'></div> +<div class='title' macro='view title'><span macro="fullscreen"></span></div> +<div class='subtitle'>by <span macro='view modifier link'></span>, <span macro='view modified date'></span></div> +<div class='tagged' macro='tags'></div> +<div class='viewer' macro='view text wikified'></div> +<div class='tagging' macro='tagging'>Related: </div> +<div class='tagClear'></div> +<!--}}}-->
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/jpoker/sites/pokersource.eu-2009/sources/tiddlers/ViewTemplate.html.div Mon Apr 19 05:40:37 2010 +0200 @@ -0,0 +1,1 @@ +title="ViewTemplate" modifier="Saq" modified="200709031815" created="200709030908" tags="SuperCookerTheme" changecount="2" \ No newline at end of file
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/jpoker/sites/pokersource.eu-2009/sources/tiddlers/WebDavPlugin.js Mon Apr 19 05:40:37 2010 +0200 @@ -0,0 +1,310 @@ +/*** +|''Name:''|WebDavPlugin| +|''Description:''|Allows a TiddlyWiki to be saved to a WebDav server| +|''Author:''|Saq Imtiaz ( lewcid@gmail.com )| +|''Co-author:''|Loic Dachary| +|''Source:''|http://tw.lewcid.org/#WebDavPlugin| +|''Code Repository:''|http://tw.lewcid.org/svn/plugins| +|''Version:''|1.0| +|''Date:''|17/11/2007| +|''License:''|[[Creative Commons Attribution-ShareAlike 3.0 License|http://creativecommons.org/licenses/by-sa/3.0/]]| +|''~CoreVersion:''|2.2.3| + +***/ +// /% +//!BEGIN-PLUGIN-CODE +DAV = { + run : function(type,u,data,cb,params,headers){ + var callback = function(status,params,responseText,url,xhr) { + url = url.indexOf("nocache=") < 0 ? url : url.substring(0,url.indexOf("nocache=")-1); + if(params.length){ + params.shift().apply(this,[status,params,responseText,url,xhr]); + } + }; + params = params||[]; + params.unshift(cb); + var r = doHttp.apply(this,[type,u,data,null,null,null,callback,params,headers]); + if (typeof r == "string") + alert(r); + return r; + }, + + get : function(url,cb,params){ + return DAV.run("GET",url,null,cb,params,null); + }, + + put : function(url,cb,params,data) { + return DAV.run("PUT",url,data,cb,params,null); + }, + + move : function(url,cb,params,destination) { + return DAV.run("MOVE",url,null,cb,params,{"Destination":destination,"Overwrite":"T"}); + }, + + copy : function(url,cb,params,destination) { + return DAV.run("COPY",url,null,cb,params,{"Destination":destination,"Overwrite":"T","Depth":0}); + }, + + propfind : function(url,cb,params,prop,depth){ // !!! + var xml = '<?xml version="1.0" encoding="UTF-8" ?>' + + '<D:propfind xmlns:D="DAV:">' + + '<D:prop>'+ + '<D:'+prop+'/>'+ + '</D:prop>'+ + '</D:propfind>'; + return DAV.run("PROPFIND",url,xml,cb,params,{"Content-type":"text/xml","Depth":depth?depth:0}); + }, + + makeDir : function(url,cb,params){ + return DAV.run("MKCOL",url,null,cb,params,null); + }, + + options : function(url,cb,params){ + return DAV.run("OPTIONS",url,null,cb,params,null); + }, + + safeput : function(url,cb,params,data){ + firstcb = function(status,p,responseText,u,xhr){ + if(status) + DAV.move(u,cb,p,u.replace("-davsavingtemp","")); + else + cb.apply(firstcb,arguments); + }; + return DAV.put(url+"-davsavingtemp",firstcb,params,data); + } +}; + +config.DavSaver = { + defaultFileName : 'index.html', + messages : { + startSaveMessage : 'saving to server...', + endSaveMessage : 'TiddlyWiki successfuly saved to server', + overwriteNewerPrompt : 'The remote file has changed since you last loaded or saved it.\nDo you wish to overwrite it?', + getModDateError : "Could not get last modified date", + raceError: "Save failed because the remote file is newer than the one you are trying to save" + }, + errors:{ + raceconflict : 'The save failed because your file is out of date', + getlastmodified : 'The save was aborted because the last modified date of the file could not be retrieved', + davenabled : 'The server does not support WebDav', + saverss : 'There was an error saving the rss file, the save was aborted', + saveempty: 'There was an error saving the empty file, the save was aborted', + savemain : 'Save failed! There was an error saving the main TW file', + savebackup: 'Save failed! There was an error creating a backup file', + makebackupdir: 'Save failed! The backup directory could not be created' + }, + timestamp: new Date().toGMTString(), + orig_saveChanges: saveChanges, + saver : null +}; + +DavSaver = function(){ + + this.Q = []; + + this.reset = function(){ + config.DavSaver.saver = null; + }; + this.runQ = function(){ + if(this.Q.length){ + this.Q.shift().apply(this,arguments); + } + else + this.reset(); + }; + this.posDiv = null; + this.original = null; + + this.getOriginalPath = function(){ + var p = document.location.toString(); + p = convertUriToUTF8(p,config.options.txtFileSystemCharSet); + var argPos = p.indexOf("?"); + if(argPos != -1) + p = p.substr(0,argPos); + var hashPos = p.indexOf("#"); + if(hashPos != -1) + p = p.substr(0,hashPos); + if (p.charAt(p.length-1) == "/") + p = p + config.DavSaver.defaultFileName; + return p; + }; + + this.originalPath = this.getOriginalPath(); + this.backupPath = null; + this.emptyPath = null; + this.rssPath = null; + this.throwError = function(er){ + clearMessage(); + this.reset(); + alert(config.DavSaver.errors[er]); //clear message, reset and delete + }; +}; + +DavSaver.prototype.getOriginal = function(){ + var callback = function(status,params,original,url,xhr) { + var that = params[0]; + if(status){ + var p = that.posDiv = locateStoreArea(original); + if(!p || (p[0] == -1) || (p[1] == -1)) { + alert(config.messages.invalidFileError.format([url])); + return; + } + that.original = original; + that.runQ(); + } + else + that.throwError('getOriginal'); + }; + + DAV.get(this.originalPath,callback,[this]); +}; + +DavSaver.prototype.checkRace = function(){ + var callback = function(status,params,responseText,url,xhr){ + var that = params[0]; + if(status){ + var lastmod = responseText.match(/<(\w*?):getlastmodified>(.*?)<\/\1:getlastmodified>/)[2]; + if(Date.parse(lastmod) > Date.parse(config.DavSaver.timestamp)){ + if (confirm(config.DavSaver.messages.overwriteNewerPrompt)) + that.runQ(); + else + that.throwError('raceconflict'); + } + else + that.runQ(); + } + else + that.throwError('getlastmodified'); + }; + + DAV.propfind(this.originalPath,callback,[this],"getlastmodified",0); +}; + +DavSaver.prototype.isDavEnabled = function(){ + var callback = function(status,params,responseText,url,xhr){ + that = params[0]; + if(status && !! xhr.getResponseHeader("DAV")){ + that.runQ(); + } + else + that.throwError('davenabled'); + }; + DAV.options(this.originalPath,callback,[this]); +}; + +DavSaver.prototype.saveRss = function(){ + var callback = function(status,params,responseText,url,xhr){ + var that = params[0]; + if(status){ + displayMessage(config.messages.rssSaved,that.rssPath); + that.runQ(); + } + else + that.throwError('saverss'); + }; + var u = this.originalPath; + var rssPath = this.rssPath = u.substr(0,u.lastIndexOf(".")) + ".xml"; + DAV.safeput(rssPath,callback,[this],convertUnicodeToUTF8(generateRss())); +}; + +DavSaver.prototype.saveEmpty = function(){ + var callback = function(status,params,responseText,url,xhr){ + var that = params[0]; + if(status){ + displayMessage(config.messages.emptySaved,that.emptyPath); + that.runQ(); + } + else + that.throwError('saveempty'); + }; + var u = this.originalPath; + var emptyPath,p; + if((p = u.lastIndexOf("/")) != -1) + emptyPath = u.substr(0,p) + "/empty.html"; + else + emptyPath = u + ".empty.html"; + this.emptyPath = emptyPath; + var empty = this.original.substr(0,this.posDiv[0] + startSaveArea.length) + this.original.substr(this.posDiv[1]); + DAV.safeput(emptyPath,callback,[this],empty); +}; + +DavSaver.prototype.saveMain = function(){ + var callback = function(status,params,responseText,url,xhr){ + var that = params[0]; + if(status){ + config.DavSaver.timestamp = xhr.getResponseHeader('Date'); + displayMessage(config.messages.mainSaved,that.originalPath); + store.setDirty(false); + that.runQ(); + } + else + that.throwError('savemain'); + }; + var revised = updateOriginal(this.original,this.posDiv); + DAV.safeput(this.originalPath,callback,[this],revised); +}; + +DavSaver.prototype.saveBackup = function(){ + var callback = function(status,params,responseText,url,xhr){ + var that = params[0]; + if(status){ + clearMessage(); + displayMessage(config.messages.backupSaved,that.backupPath); + that.runQ(); + } + else + that.throwError('savebackup'); + }; + + var backupPath = this.backupPath = getBackupPath(this.originalPath); + DAV.copy(this.originalPath,callback,[this],this.backupPath); +}; + +DavSaver.prototype.makeBackupDir = function(){ + var callback = function(status,params,responseText,url,xhr){ + var that = params[0]; + if(status) + that.runQ(); + else + that.throwError('makebackupdir'); + }; + var u = getBackupPath(this.originalPath); + var backupDirPath = u.substr(0,u.lastIndexOf("/")); + DAV.makeDir(backupDirPath,callback,[this]); +}; + +DavSaver.prototype.save = function(onlyIfDirty,tiddlers){ + if(onlyIfDirty && !store.isDirty()) + return; + clearMessage(); + displayMessage(config.DavSaver.messages.startSaveMessage); + var Q = this.Q =[]; + Q.push(this.isDavEnabled); + Q.push(this.getOriginal); + Q.push(this.checkRace); + if (config.options.chkSaveBackups){ + if (config.options.txtBackupFolder!='') + Q.push(this.makeBackupDir); + Q.push(this.saveBackup); + } + Q.push(this.saveMain); + if (config.options.chkGenerateAnRssFeed) + Q.push(this.saveRss); + if (config.options.chkSaveEmptyTemplate) + Q.push(this.saveEmpty); + //Q.push(this.reset); + this.runQ(); +}; + +window.saveChanges = function(onlyIfDirty,tiddlers) +{ + var c = config.DavSaver; + if (document.location.protocol.toString() == "http:"){ + var saver = c.saver = new DavSaver(); + saver.save(onlyIfDirty,tiddlers); + } + else + return c.orig_saveChanges(onlyIfDirty,tiddlers); +}; +//!END-PLUGIN-CODE +// %/ \ No newline at end of file
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/jpoker/sites/pokersource.eu-2009/sources/tiddlers/WebDavPlugin.js.div Mon Apr 19 05:40:37 2010 +0200 @@ -0,0 +1,1 @@ +title="WebDavPlugin" modifier="YourName" modified="200711172002" created="200711171415" tags="systemConfig" changecount="3" \ No newline at end of file
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/jpoker/sites/pokersource.eu-2009/sources/tiddlywiki-2.3.html Mon Apr 19 05:40:37 2010 +0200 @@ -0,0 +1,9120 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> +<head> +<script type="text/javascript"> +//<![CDATA[ +var version = {title: "TiddlyWiki", major: 2, minor: 3, revision: 0, date: new Date("Dec 4, 2007"), extensions: {}}; +//]]> +</script> +<!-- +TiddlyWiki created by Jeremy Ruston, (jeremy [at] osmosoft [dot] com) + +Copyright (c) UnaMesa Association 2004-2007 + +Redistribution and use in source and binary forms, with or without modification, +are permitted provided that the following conditions are met: + +Redistributions of source code must retain the above copyright notice, this +list of conditions and the following disclaimer. + +Redistributions in binary form must reproduce the above copyright notice, this +list of conditions and the following disclaimer in the documentation and/or other +materials provided with the distribution. + +Neither the name of the UnaMesa Association nor the names of its contributors may be +used to endorse or promote products derived from this software without specific +prior written permission. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY +EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES +OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT +SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, +INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED +TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR +BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN +CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN +ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH +DAMAGE. +--> +<meta http-equiv="Content-Type" content="text/html;charset=utf-8" /> +<!--PRE-HEAD-START--> +<!--{{{--> +<link rel='alternate' type='application/rss+xml' title='RSS' href='index.xml'/> +<!--}}}--> +<!--PRE-HEAD-END--> +<title> +TiddlyWiki - a reusable non-linear personal web notebook +</title> +<style type="text/css"> +#saveTest {display:none;} +#messageArea {display:none;} +#copyright {display:none;} +#storeArea {display:none;} +#storeArea div {padding:0.5em; margin:1em 0em 0em 0em; border-color:#fff #666 #444 #ddd; border-style:solid; border-width:2px; overflow:auto;} +#shadowArea {display:none;} +#javascriptWarning {width:100%; text-align:center; font-weight:bold; background-color:#dd1100; color:#fff; padding:1em 0em;} +</style> +<!--POST-HEAD-START--> +<!--POST-HEAD-END--> +</head> +<body onload="main();" onunload="if(window.checkUnsavedChanges) checkUnsavedChanges(); if(window.scrubNodes) scrubNodes(document.body);"> +<!--PRE-BODY-START--> +<!--PRE-BODY-END--> +<div id="copyright"> +Welcome to TiddlyWiki created by Jeremy Ruston, Copyright © 2007 UnaMesa Association +</div> +<noscript> + <div id="javascriptWarning">This page requires JavaScript to function properly.<br /><br />If you are using Microsoft Internet Explorer you may need to click on the yellow bar above and select 'Allow Blocked Content'. You must then click 'Yes' on the following security warning.</div> +</noscript> +<div id="saveTest"></div> +<div id="backstageCloak"></div> +<div id="backstageButton"></div> +<div id="backstageArea"><div id="backstageToolbar"></div></div> +<div id="backstage"> + <div id="backstagePanel"></div> +</div> +<div id="contentWrapper"></div> +<div id="contentStash"></div> +<div id="shadowArea"> +<div title="MarkupPreHead"> +<pre><!--{{{--> +<link rel='alternate' type='application/rss+xml' title='RSS' href='index.xml'/> +<!--}}}--></pre> +</div> +<div title="ColorPalette"> +<pre>Background: #fff +Foreground: #000 +PrimaryPale: #8cf +PrimaryLight: #18f +PrimaryMid: #04b +PrimaryDark: #014 +SecondaryPale: #ffc +SecondaryLight: #fe8 +SecondaryMid: #db4 +SecondaryDark: #841 +TertiaryPale: #eee +TertiaryLight: #ccc +TertiaryMid: #999 +TertiaryDark: #666 +Error: #f88</pre> +</div> +<div title="StyleSheetColors"> +<pre>/*{{{*/ +body {background:[[ColorPalette::Background]]; color:[[ColorPalette::Foreground]];} + +a {color:[[ColorPalette::PrimaryMid]];} +a:hover {background-color:[[ColorPalette::PrimaryMid]]; color:[[ColorPalette::Background]];} +a img {border:0;} + +h1,h2,h3,h4,h5,h6 {color:[[ColorPalette::SecondaryDark]]; background:transparent;} +h1 {border-bottom:2px solid [[ColorPalette::TertiaryLight]];} +h2,h3 {border-bottom:1px solid [[ColorPalette::TertiaryLight]];} + +.button {color:[[ColorPalette::PrimaryDark]]; border:1px solid [[ColorPalette::Background]];} +.button:hover {color:[[ColorPalette::PrimaryDark]]; background:[[ColorPalette::SecondaryLight]]; border-color:[[ColorPalette::SecondaryMid]];} +.button:active {color:[[ColorPalette::Background]]; background:[[ColorPalette::SecondaryMid]]; border:1px solid [[ColorPalette::SecondaryDark]];} + +.header {background:[[ColorPalette::PrimaryMid]];} +.headerShadow {color:[[ColorPalette::Foreground]];} +.headerShadow a {font-weight:normal; color:[[ColorPalette::Foreground]];} +.headerForeground {color:[[ColorPalette::Background]];} +.headerForeground a {font-weight:normal; color:[[ColorPalette::PrimaryPale]];} + +.tabSelected{color:[[ColorPalette::PrimaryDark]]; + background:[[ColorPalette::TertiaryPale]]; + border-left:1px solid [[ColorPalette::TertiaryLight]]; + border-top:1px solid [[ColorPalette::TertiaryLight]]; + border-right:1px solid [[ColorPalette::TertiaryLight]]; +} +.tabUnselected {color:[[ColorPalette::Background]]; background:[[ColorPalette::TertiaryMid]];} +.tabContents {color:[[ColorPalette::PrimaryDark]]; background:[[ColorPalette::TertiaryPale]]; border:1px solid [[ColorPalette::TertiaryLight]];} +.tabContents .button {border:0;} + +#sidebar {} +#sidebarOptions input {border:1px solid [[ColorPalette::PrimaryMid]];} +#sidebarOptions .sliderPanel {background:[[ColorPalette::PrimaryPale]];} +#sidebarOptions .sliderPanel a {border:none;color:[[ColorPalette::PrimaryMid]];} +#sidebarOptions .sliderPanel a:hover {color:[[ColorPalette::Background]]; background:[[ColorPalette::PrimaryMid]];} +#sidebarOptions .sliderPanel a:active {color:[[ColorPalette::PrimaryMid]]; background:[[ColorPalette::Background]];} + +.wizard {background:[[ColorPalette::PrimaryPale]]; border:1px solid [[ColorPalette::PrimaryMid]];} +.wizard h1 {color:[[ColorPalette::PrimaryDark]]; border:none;} +.wizard h2 {color:[[ColorPalette::Foreground]]; border:none;} +.wizardStep {background:[[ColorPalette::Background]]; color:[[ColorPalette::Foreground]]; + border:1px solid [[ColorPalette::PrimaryMid]];} +.wizardStep.wizardStepDone {background:[[ColorPalette::TertiaryLight]];} +.wizardFooter {background:[[ColorPalette::PrimaryPale]];} +.wizardFooter .status {background:[[ColorPalette::PrimaryDark]]; color:[[ColorPalette::Background]];} +.wizard .button {color:[[ColorPalette::Foreground]]; background:[[ColorPalette::SecondaryLight]]; border: 1px solid; + border-color:[[ColorPalette::SecondaryPale]] [[ColorPalette::SecondaryDark]] [[ColorPalette::SecondaryDark]] [[ColorPalette::SecondaryPale]];} +.wizard .button:hover {color:[[ColorPalette::Foreground]]; background:[[ColorPalette::Background]];} +.wizard .button:active {color:[[ColorPalette::Background]]; background:[[ColorPalette::Foreground]]; border: 1px solid; + border-color:[[ColorPalette::PrimaryDark]] [[ColorPalette::PrimaryPale]] [[ColorPalette::PrimaryPale]] [[ColorPalette::PrimaryDark]];} + +#messageArea {border:1px solid [[ColorPalette::SecondaryMid]]; background:[[ColorPalette::SecondaryLight]]; color:[[ColorPalette::Foreground]];} +#messageArea .button {color:[[ColorPalette::PrimaryMid]]; background:[[ColorPalette::SecondaryPale]]; border:none;} + +.popupTiddler {background:[[ColorPalette::TertiaryPale]]; border:2px solid [[ColorPalette::TertiaryMid]];} + +.popup {background:[[ColorPalette::TertiaryPale]]; color:[[ColorPalette::TertiaryDark]]; border-left:1px solid [[ColorPalette::TertiaryMid]]; border-top:1px solid [[ColorPalette::TertiaryMid]]; border-right:2px solid [[ColorPalette::TertiaryDark]]; border-bottom:2px solid [[ColorPalette::TertiaryDark]];} +.popup hr {color:[[ColorPalette::PrimaryDark]]; background:[[ColorPalette::PrimaryDark]]; border-bottom:1px;} +.popup li.disabled {color:[[ColorPalette::TertiaryMid]];} +.popup li a, .popup li a:visited {color:[[ColorPalette::Foreground]]; border: none;} +.popup li a:hover {background:[[ColorPalette::SecondaryLight]]; color:[[ColorPalette::Foreground]]; border: none;} +.popup li a:active {background:[[ColorPalette::SecondaryPale]]; color:[[ColorPalette::Foreground]]; border: none;} +.popupHighlight {background:[[ColorPalette::Background]]; color:[[ColorPalette::Foreground]];} +.listBreak div {border-bottom:1px solid [[ColorPalette::TertiaryDark]];} + +.tiddler .defaultCommand {font-weight:bold;} + +.shadow .title {color:[[ColorPalette::TertiaryDark]];} + +.title {color:[[ColorPalette::SecondaryDark]];} +.subtitle {color:[[ColorPalette::TertiaryDark]];} + +.toolbar {color:[[ColorPalette::PrimaryMid]];} +.toolbar a {color:[[ColorPalette::TertiaryLight]];} +.selected .toolbar a {color:[[ColorPalette::TertiaryMid]];} +.selected .toolbar a:hover {color:[[ColorPalette::Foreground]];} + +.tagging, .tagged {border:1px solid [[ColorPalette::TertiaryPale]]; background-color:[[ColorPalette::TertiaryPale]];} +.selected .tagging, .selected .tagged {background-color:[[ColorPalette::TertiaryLight]]; border:1px solid [[ColorPalette::TertiaryMid]];} +.tagging .listTitle, .tagged .listTitle {color:[[ColorPalette::PrimaryDark]];} +.tagging .button, .tagged .button {border:none;} + +.footer {color:[[ColorPalette::TertiaryLight]];} +.selected .footer {color:[[ColorPalette::TertiaryMid]];} + +.sparkline {background:[[ColorPalette::PrimaryPale]]; border:0;} +.sparktick {background:[[ColorPalette::PrimaryDark]];} + +.error, .errorButton {color:[[ColorPalette::Foreground]]; background:[[ColorPalette::Error]];} +.warning {color:[[ColorPalette::Foreground]]; background:[[ColorPalette::SecondaryPale]];} +.lowlight {background:[[ColorPalette::TertiaryLight]];} + +.zoomer {background:none; color:[[ColorPalette::TertiaryMid]]; border:3px solid [[ColorPalette::TertiaryMid]];} + +.imageLink, #displayArea .imageLink {background:transparent;} + +.annotation {background:[[ColorPalette::SecondaryLight]]; color:[[ColorPalette::Foreground]]; border:2px solid [[ColorPalette::SecondaryMid]];} + +.viewer .listTitle {list-style-type:none; margin-left:-2em;} +.viewer .button {border:1px solid [[ColorPalette::SecondaryMid]];} +.viewer blockquote {border-left:3px solid [[ColorPalette::TertiaryDark]];} + +.viewer table, table.twtable {border:2px solid [[ColorPalette::TertiaryDark]];} +.viewer th, .viewer thead td, .twtable th, .twtable thead td {background:[[ColorPalette::SecondaryMid]]; border:1px solid [[ColorPalette::TertiaryDark]]; color:[[ColorPalette::Background]];} +.viewer td, .viewer tr, .twtable td, .twtable tr {border:1px solid [[ColorPalette::TertiaryDark]];} + +.viewer pre {border:1px solid [[ColorPalette::SecondaryLight]]; background:[[ColorPalette::SecondaryPale]];} +.viewer code {color:[[ColorPalette::SecondaryDark]];} +.viewer hr {border:0; border-top:dashed 1px [[ColorPalette::TertiaryDark]]; color:[[ColorPalette::TertiaryDark]];} + +.highlight, .marked {background:[[ColorPalette::SecondaryLight]];} + +.editor input {border:1px solid [[ColorPalette::PrimaryMid]];} +.editor textarea {border:1px solid [[ColorPalette::PrimaryMid]]; width:100%;} +.editorFooter {color:[[ColorPalette::TertiaryMid]];} + +#backstageArea {background:[[ColorPalette::Foreground]]; color:[[ColorPalette::TertiaryMid]];} +#backstageArea a {background:[[ColorPalette::Foreground]]; color:[[ColorPalette::Background]]; border:none;} +#backstageArea a:hover {background:[[ColorPalette::SecondaryLight]]; color:[[ColorPalette::Foreground]]; } +#backstageArea a.backstageSelTab {background:[[ColorPalette::Background]]; color:[[ColorPalette::Foreground]];} +#backstageButton a {background:none; color:[[ColorPalette::Background]]; border:none;} +#backstageButton a:hover {background:[[ColorPalette::Foreground]]; color:[[ColorPalette::Background]]; border:none;} +#backstagePanel {background:[[ColorPalette::Background]]; border-color: [[ColorPalette::Background]] [[ColorPalette::TertiaryDark]] [[ColorPalette::TertiaryDark]] [[ColorPalette::TertiaryDark]];} +.backstagePanelFooter .button {border:none; color:[[ColorPalette::Background]];} +.backstagePanelFooter .button:hover {color:[[ColorPalette::Foreground]];} +#backstageCloak {background:[[ColorPalette::Foreground]]; opacity:0.6; filter:'alpha(opacity:60)';} +/*}}}*/</pre> +</div> +<div title="StyleSheetLayout"> +<pre>/*{{{*/ +* html .tiddler {height:1%;} + +body {font-size:.75em; font-family:arial,helvetica; margin:0; padding:0;} + +h1,h2,h3,h4,h5,h6 {font-weight:bold; text-decoration:none;} +h1,h2,h3 {padding-bottom:1px; margin-top:1.2em;margin-bottom:0.3em;} +h4,h5,h6 {margin-top:1em;} +h1 {font-size:1.35em;} +h2 {font-size:1.25em;} +h3 {font-size:1.1em;} +h4 {font-size:1em;} +h5 {font-size:.9em;} + +hr {height:1px;} + +a {text-decoration:none;} + +dt {font-weight:bold;} + +ol {list-style-type:decimal;} +ol ol {list-style-type:lower-alpha;} +ol ol ol {list-style-type:lower-roman;} +ol ol ol ol {list-style-type:decimal;} +ol ol ol ol ol {list-style-type:lower-alpha;} +ol ol ol ol ol ol {list-style-type:lower-roman;} +ol ol ol ol ol ol ol {list-style-type:decimal;} + +.txtOptionInput {width:11em;} + +#contentWrapper .chkOptionInput {border:0;} + +.externalLink {text-decoration:underline;} + +.indent {margin-left:3em;} +.outdent {margin-left:3em; text-indent:-3em;} +code.escaped {white-space:nowrap;} + +.tiddlyLinkExisting {font-weight:bold;} +.tiddlyLinkNonExisting {font-style:italic;} + +/* the 'a' is required for IE, otherwise it renders the whole tiddler in bold */ +a.tiddlyLinkNonExisting.shadow {font-weight:bold;} + +#mainMenu .tiddlyLinkExisting, + #mainMenu .tiddlyLinkNonExisting, + #sidebarTabs .tiddlyLinkNonExisting {font-weight:normal; font-style:normal;} +#sidebarTabs .tiddlyLinkExisting {font-weight:bold; font-style:normal;} + +.header {position:relative;} +.header a:hover {background:transparent;} +.headerShadow {position:relative; padding:4.5em 0em 1em 1em; left:-1px; top:-1px;} +.headerForeground {position:absolute; padding:4.5em 0em 1em 1em; left:0px; top:0px;} + +.siteTitle {font-size:3em;} +.siteSubtitle {font-size:1.2em;} + +#mainMenu {position:absolute; left:0; width:10em; text-align:right; line-height:1.6em; padding:1.5em 0.5em 0.5em 0.5em; font-size:1.1em;} + +#sidebar {position:absolute; right:3px; width:16em; font-size:.9em;} +#sidebarOptions {padding-top:0.3em;} +#sidebarOptions a {margin:0em 0.2em; padding:0.2em 0.3em; display:block;} +#sidebarOptions input {margin:0.4em 0.5em;} +#sidebarOptions .sliderPanel {margin-left:1em; padding:0.5em; font-size:.85em;} +#sidebarOptions .sliderPanel a {font-weight:bold; display:inline; padding:0;} +#sidebarOptions .sliderPanel input {margin:0 0 .3em 0;} +#sidebarTabs .tabContents {width:15em; overflow:hidden;} + +.wizard {padding:0.1em 1em 0em 2em;} +.wizard h1 {font-size:2em; font-weight:bold; background:none; padding:0em 0em 0em 0em; margin:0.4em 0em 0.2em 0em;} +.wizard h2 {font-size:1.2em; font-weight:bold; background:none; padding:0em 0em 0em 0em; margin:0.4em 0em 0.2em 0em;} +.wizardStep {padding:1em 1em 1em 1em;} +.wizard .button {margin:0.5em 0em 0em 0em; font-size:1.2em;} +.wizardFooter {padding:0.8em 0.4em 0.8em 0em;} +.wizardFooter .status {padding:0em 0.4em 0em 0.4em; margin-left:1em;} +.wizard .button {padding:0.1em 0.2em 0.1em 0.2em;} + +#messageArea {position:fixed; top:2em; right:0em; margin:0.5em; padding:0.5em; z-index:2000; _position:absolute;} +.messageToolbar {display:block; text-align:right; padding:0.2em 0.2em 0.2em 0.2em;} +#messageArea a {text-decoration:underline;} + +.tiddlerPopupButton {padding:0.2em 0.2em 0.2em 0.2em;} +.popupTiddler {position: absolute; z-index:300; padding:1em 1em 1em 1em; margin:0;} + +.popup {position:absolute; z-index:300; font-size:.9em; padding:0; list-style:none; margin:0;} +.popup .popupMessage {padding:0.4em;} +.popup hr {display:block; height:1px; width:auto; padding:0; margin:0.2em 0em;} +.popup li.disabled {padding:0.4em;} +.popup li a {display:block; padding:0.4em; font-weight:normal; cursor:pointer;} +.listBreak {font-size:1px; line-height:1px;} +.listBreak div {margin:2px 0;} + +.tabset {padding:1em 0em 0em 0.5em;} +.tab {margin:0em 0em 0em 0.25em; padding:2px;} +.tabContents {padding:0.5em;} +.tabContents ul, .tabContents ol {margin:0; padding:0;} +.txtMainTab .tabContents li {list-style:none;} +.tabContents li.listLink { margin-left:.75em;} + +#contentWrapper {display:block;} +#splashScreen {display:none;} + +#displayArea {margin:1em 17em 0em 14em;} + +.toolbar {text-align:right; font-size:.9em;} + +.tiddler {padding:1em 1em 0em 1em;} + +.missing .viewer,.missing .title {font-style:italic;} + +.title {font-size:1.6em; font-weight:bold;} + +.missing .subtitle {display:none;} +.subtitle {font-size:1.1em;} + +.tiddler .button {padding:0.2em 0.4em;} + +.tagging {margin:0.5em 0.5em 0.5em 0; float:left; display:none;} +.isTag .tagging {display:block;} +.tagged {margin:0.5em; float:right;} +.tagging, .tagged {font-size:0.9em; padding:0.25em;} +.tagging ul, .tagged ul {list-style:none; margin:0.25em; padding:0;} +.tagClear {clear:both;} + +.footer {font-size:.9em;} +.footer li {display:inline;} + +.annotation {padding:0.5em; margin:0.5em;} + +* html .viewer pre {width:99%; padding:0 0 1em 0;} +.viewer {line-height:1.4em; padding-top:0.5em;} +.viewer .button {margin:0em 0.25em; padding:0em 0.25em;} +.viewer blockquote {line-height:1.5em; padding-left:0.8em;margin-left:2.5em;} +.viewer ul, .viewer ol {margin-left:0.5em; padding-left:1.5em;} + +.viewer table, table.twtable {border-collapse:collapse; margin:0.8em 1.0em;} +.viewer th, .viewer td, .viewer tr,.viewer caption,.twtable th, .twtable td, .twtable tr,.twtable caption {padding:3px;} +table.listView {font-size:0.85em; margin:0.8em 1.0em;} +table.listView th, table.listView td, table.listView tr {padding:0px 3px 0px 3px;} + +.viewer pre {padding:0.5em; margin-left:0.5em; font-size:1.2em; line-height:1.4em; overflow:auto;} +.viewer code {font-size:1.2em; line-height:1.4em;} + +.editor {font-size:1.1em;} +.editor input, .editor textarea {display:block; width:100%; font:inherit;} +.editorFooter {padding:0.25em 0em; font-size:.9em;} +.editorFooter .button {padding-top:0px; padding-bottom:0px;} + +.fieldsetFix {border:0; padding:0; margin:1px 0px 1px 0px;} + +.sparkline {line-height:1em;} +.sparktick {outline:0;} + +.zoomer {font-size:1.1em; position:absolute; overflow:hidden;} +.zoomer div {padding:1em;} + +* html #backstage {width:99%;} +* html #backstageArea {width:99%;} +#backstageArea {display:none; position:relative; overflow: hidden; z-index:150; padding:0.3em 0.5em 0.3em 0.5em;} +#backstageToolbar {position:relative;} +#backstageArea a {font-weight:bold; margin-left:0.5em; padding:0.3em 0.5em 0.3em 0.5em;} +#backstageButton {display:none; position:absolute; z-index:175; top:0em; right:0em;} +#backstageButton a {padding:0.1em 0.4em 0.1em 0.4em; margin:0.1em 0.1em 0.1em 0.1em;} +#backstage {position:relative; width:100%; z-index:50;} +#backstagePanel {display:none; z-index:100; position:absolute; margin:0em 3em 0em 3em; padding:1em 1em 1em 1em;} +.backstagePanelFooter {padding-top:0.2em; float:right;} +.backstagePanelFooter a {padding:0.2em 0.4em 0.2em 0.4em;} +#backstageCloak {display:none; z-index:20; position:absolute; width:100%; height:100px;} + +.whenBackstage {display:none;} +.backstageVisible .whenBackstage {display:block;} +/*}}}*/</pre> +</div> +<div title="StyleSheetLocale"> +<pre>/*** +StyleSheet for use when a translation requires any css style changes. +This StyleSheet can be used directly by languages such as Chinese, Japanese and Korean which need larger font sizes. +***/ +/*{{{*/ +body {font-size:0.8em;} +#sidebarOptions {font-size:1.05em;} +#sidebarOptions a {font-style:normal;} +#sidebarOptions .sliderPanel {font-size:0.95em;} +.subtitle {font-size:0.8em;} +.viewer table.listView {font-size:0.95em;} +/*}}}*/</pre> +</div> +<div title="StyleSheetPrint"> +<pre>/*{{{*/ +@media print { +#mainMenu, #sidebar, #messageArea, .toolbar, #backstageButton, #backstageArea {display: none ! important;} +#displayArea {margin: 1em 1em 0em 1em;} +/* Fixes a feature in Firefox 1.5.0.2 where print preview displays the noscript content */ +noscript {display:none;} +} +/*}}}*/</pre> +</div> +<div title="PageTemplate"> +<pre><!--{{{--> +<div class='header' macro='gradient vert [[ColorPalette::PrimaryLight]] [[ColorPalette::PrimaryMid]]'> +<div class='headerShadow'> +<span class='siteTitle' refresh='content' tiddler='SiteTitle'></span>&nbsp; +<span class='siteSubtitle' refresh='content' tiddler='SiteSubtitle'></span> +</div> +<div class='headerForeground'> +<span class='siteTitle' refresh='content' tiddler='SiteTitle'></span>&nbsp; +<span class='siteSubtitle' refresh='content' tiddler='SiteSubtitle'></span> +</div> +</div> +<div id='mainMenu' refresh='content' tiddler='MainMenu'></div> +<div id='sidebar'> +<div id='sidebarOptions' refresh='content' tiddler='SideBarOptions'></div> +<div id='sidebarTabs' refresh='content' force='true' tiddler='SideBarTabs'></div> +</div> +<div id='displayArea'> +<div id='messageArea'></div> +<div id='tiddlerDisplay'></div> +</div> +<!--}}}--></pre> +</div> +<div title="ViewTemplate"> +<pre><!--{{{--> +<div class='toolbar' macro='toolbar closeTiddler closeOthers +editTiddler > fields syncing permalink references jump'></div> +<div class='title' macro='view title'></div> +<div class='subtitle'><span macro='view modifier link'></span>, <span macro='view modified date'></span> (<span macro='message views.wikified.createdPrompt'></span> <span macro='view created date'></span>)</div> +<div class='tagging' macro='tagging'></div> +<div class='tagged' macro='tags'></div> +<div class='viewer' macro='view text wikified'></div> +<div class='tagClear'></div> +<!--}}}--></pre> +</div> +<div title="EditTemplate"> +<pre><!--{{{--> +<div class='toolbar' macro='toolbar +saveTiddler -cancelTiddler deleteTiddler'></div> +<div class='title' macro='view title'></div> +<div class='editor' macro='edit title'></div> +<div macro='annotations'></div> +<div class='editor' macro='edit text'></div> +<div class='editor' macro='edit tags'></div><div class='editorFooter'><span macro='message views.editor.tagPrompt'></span><span macro='tagChooser'></span></div> +<!--}}}--></pre> +</div> +<div title="GettingStarted"> +<pre>To get started with this blank TiddlyWiki, you'll need to modify the following tiddlers: +* SiteTitle & SiteSubtitle: The title and subtitle of the site, as shown above (after saving, they will also appear in the browser title bar) +* MainMenu: The menu (usually on the left) +* DefaultTiddlers: Contains the names of the tiddlers that you want to appear when the TiddlyWiki is opened +You'll also need to enter your username for signing your edits: <<option txtUserName>></pre> +</div> +<div title="OptionsPanel"> +<pre>These InterfaceOptions for customising TiddlyWiki are saved in your browser + +Your username for signing your edits. Write it as a WikiWord (eg JoeBloggs) + +<<option txtUserName>> +<<option chkSaveBackups>> SaveBackups +<<option chkAutoSave>> AutoSave +<<option chkRegExpSearch>> RegExpSearch +<<option chkCaseSensitiveSearch>> CaseSensitiveSearch +<<option chkAnimate>> EnableAnimations + +---- +Also see AdvancedOptions</pre> +</div> +<div title="ImportTiddlers"> +<pre><<importTiddlers>></pre> +</div> +</div> +<!--POST-SHADOWAREA--> +<div id="storeArea"> +<div title="LegacyStrikeThroughPlugin" modifier="MartinBudden" created="200607210000" tags="systemConfig"> +<pre>/*** +|''Name:''|LegacyStrikeThroughPlugin| +|''Description:''|Support for legacy (pre 2.1) strike through formatting| +|''Version:''|1.0.2| +|''Date:''|Jul 21, 2006| +|''Source:''|http://www.tiddlywiki.com/#LegacyStrikeThroughPlugin| +|''Author:''|MartinBudden (mjbudden (at) gmail (dot) com)| +|''License:''|[[BSD open source license]]| +|''CoreVersion:''|2.1.0| +***/ + +//{{{ +// Ensure that the LegacyStrikeThrough Plugin is only installed once. +if(!version.extensions.LegacyStrikeThroughPlugin) { +version.extensions.LegacyStrikeThroughPlugin = {installed:true}; + +config.formatters.push( +{ + name: "legacyStrikeByChar", + match: "==", + termRegExp: /(==)/mg, + element: "strike", + handler: config.formatterHelpers.createElementAndWikify +}); + +} //# end of "install only once" +//}}}</pre> +</div> +<div title="SparklinePlugin" created="200710125059" tags="systemConfig excludeLists excludeSearch"> +<pre>/*** +|''Name:''|SparklinePlugin| +|''Description:''|Sparklines macro| +***/ +//{{{ +if(!version.extensions.SparklinePlugin) { +version.extensions.SparklinePlugin = {installed:true}; + +//-- +//-- Sparklines +//-- + +config.macros.sparkline = {}; +config.macros.sparkline.handler = function(place,macroName,params) +{ + var data = []; + var min = 0; + var max = 0; + var v; + for(var t=0; t<params.length; t++) { + v = parseInt(params[t]); + if(v < min) + min = v; + if(v > max) + max = v; + data.push(v); + } + if(data.length < 1) + return; + var box = createTiddlyElement(place,"span",null,"sparkline",String.fromCharCode(160)); + box.title = data.join(","); + var w = box.offsetWidth; + var h = box.offsetHeight; + box.style.paddingRight = (data.length * 2 - w) + "px"; + box.style.position = "relative"; + for(var d=0; d<data.length; d++) { + var tick = document.createElement("img"); + tick.border = 0; + tick.className = "sparktick"; + tick.style.position = "absolute"; + tick.src = "data:image/gif,GIF89a%01%00%01%00%91%FF%00%FF%FF%FF%00%00%00%C0%C0%C0%00%00%00!%F9%04%01%00%00%02%00%2C%00%00%00%00%01%00%01%00%40%02%02T%01%00%3B"; + tick.style.left = d*2 + "px"; + tick.style.width = "2px"; + v = Math.floor(((data[d] - min)/(max-min)) * h); + tick.style.top = (h-v) + "px"; + tick.style.height = v + "px"; + box.appendChild(tick); + } +}; + + +} +//}}}</pre> +</div> +<div title="CryptoFunctionsPlugin" created="200710115934" tags="systemConfig excludeLists excludeSearch"> +<pre>/*** +|''Name:''|CryptoFunctionsPlugin| +|''Description:''|Support for cryptographic functions| +***/ +//{{{ +if(!version.extensions.CryptoFunctionsPlugin) { +version.extensions.CryptoFunctionsPlugin = {installed:true}; + +//-- +//-- Crypto functions and associated conversion routines +//-- + +// Crypto "namespace" +function Crypto() {} + +// Convert a string to an array of big-endian 32-bit words +Crypto.strToBe32s = function(str) +{ + var be = Array(); + var len = Math.floor(str.length/4); + var i, j; + for(i=0, j=0; i<len; i++, j+=4) { + be[i] = ((str.charCodeAt(j)&0xff) << 24)|((str.charCodeAt(j+1)&0xff) << 16)|((str.charCodeAt(j+2)&0xff) << 8)|(str.charCodeAt(j+3)&0xff); + } + while (j<str.length) { + be[j>>2] |= (str.charCodeAt(j)&0xff)<<(24-(j*8)%32); + j++; + } + return be; +}; + +// Convert an array of big-endian 32-bit words to a string +Crypto.be32sToStr = function(be) +{ + var str = ""; + for(var i=0;i<be.length*32;i+=8) + str += String.fromCharCode((be[i>>5]>>>(24-i%32)) & 0xff); + return str; +}; + +// Convert an array of big-endian 32-bit words to a hex string +Crypto.be32sToHex = function(be) +{ + var hex = "0123456789ABCDEF"; + var str = ""; + for(var i=0;i<be.length*4;i++) + str += hex.charAt((be[i>>2]>>((3-i%4)*8+4))&0xF) + hex.charAt((be[i>>2]>>((3-i%4)*8))&0xF); + return str; +}; + +// Return, in hex, the SHA-1 hash of a string +Crypto.hexSha1Str = function(str) +{ + return Crypto.be32sToHex(Crypto.sha1Str(str)); +}; + +// Return the SHA-1 hash of a string +Crypto.sha1Str = function(str) +{ + return Crypto.sha1(Crypto.strToBe32s(str),str.length); +}; + +// Calculate the SHA-1 hash of an array of blen bytes of big-endian 32-bit words +Crypto.sha1 = function(x,blen) +{ + // Add 32-bit integers, wrapping at 32 bits + add32 = function(a,b) + { + var lsw = (a&0xFFFF)+(b&0xFFFF); + var msw = (a>>16)+(b>>16)+(lsw>>16); + return (msw<<16)|(lsw&0xFFFF); + }; + // Add five 32-bit integers, wrapping at 32 bits + add32x5 = function(a,b,c,d,e) + { + var lsw = (a&0xFFFF)+(b&0xFFFF)+(c&0xFFFF)+(d&0xFFFF)+(e&0xFFFF); + var msw = (a>>16)+(b>>16)+(c>>16)+(d>>16)+(e>>16)+(lsw>>16); + return (msw<<16)|(lsw&0xFFFF); + }; + // Bitwise rotate left a 32-bit integer by 1 bit + rol32 = function(n) + { + return (n>>>31)|(n<<1); + }; + + var len = blen*8; + // Append padding so length in bits is 448 mod 512 + x[len>>5] |= 0x80 << (24-len%32); + // Append length + x[((len+64>>9)<<4)+15] = len; + var w = Array(80); + + var k1 = 0x5A827999; + var k2 = 0x6ED9EBA1; + var k3 = 0x8F1BBCDC; + var k4 = 0xCA62C1D6; + + var h0 = 0x67452301; + var h1 = 0xEFCDAB89; + var h2 = 0x98BADCFE; + var h3 = 0x10325476; + var h4 = 0xC3D2E1F0; + + for(var i=0;i<x.length;i+=16) { + var j,t; + var a = h0; + var b = h1; + var c = h2; + var d = h3; + var e = h4; + for(j = 0;j<16;j++) { + w[j] = x[i+j]; + t = add32x5(e,(a>>>27)|(a<<5),d^(b&(c^d)),w[j],k1); + e=d; d=c; c=(b>>>2)|(b<<30); b=a; a = t; + } + for(j=16;j<20;j++) { + w[j] = rol32(w[j-3]^w[j-8]^w[j-14]^w[j-16]); + t = add32x5(e,(a>>>27)|(a<<5),d^(b&(c^d)),w[j],k1); + e=d; d=c; c=(b>>>2)|(b<<30); b=a; a = t; + } + for(j=20;j<40;j++) { + w[j] = rol32(w[j-3]^w[j-8]^w[j-14]^w[j-16]); + t = add32x5(e,(a>>>27)|(a<<5),b^c^d,w[j],k2); + e=d; d=c; c=(b>>>2)|(b<<30); b=a; a = t; + } + for(j=40;j<60;j++) { + w[j] = rol32(w[j-3]^w[j-8]^w[j-14]^w[j-16]); + t = add32x5(e,(a>>>27)|(a<<5),(b&c)|(d&(b|c)),w[j],k3); + e=d; d=c; c=(b>>>2)|(b<<30); b=a; a = t; + } + for(j=60;j<80;j++) { + w[j] = rol32(w[j-3]^w[j-8]^w[j-14]^w[j-16]); + t = add32x5(e,(a>>>27)|(a<<5),b^c^d,w[j],k4); + e=d; d=c; c=(b>>>2)|(b<<30); b=a; a = t; + } + + h0 = add32(h0,a); + h1 = add32(h1,b); + h2 = add32(h2,c); + h3 = add32(h3,d); + h4 = add32(h4,e); + } + return Array(h0,h1,h2,h3,h4); +}; + + +} +//}}}</pre> +</div> +<div title="DeprecatedFunctionsPlugin" created="200710125059" tags="systemConfig excludeLists excludeSearch"> +<pre>/*** +|''Name:''|DeprecatedFunctionsPlugin| +|''Description:''|Support for deprecated functions removed from core| +***/ +//{{{ +if(!version.extensions.DeprecatedFunctionsPlugin) { +version.extensions.DeprecatedFunctionsPlugin = {installed:true}; + +//-- +//-- Deprecated code +//-- + +// @Deprecated: Use createElementAndWikify and this.termRegExp instead +config.formatterHelpers.charFormatHelper = function(w) +{ + w.subWikify(createTiddlyElement(w.output,this.element),this.terminator); +}; + +// @Deprecated: Use enclosedTextHelper and this.lookaheadRegExp instead +config.formatterHelpers.monospacedByLineHelper = function(w) +{ + var lookaheadRegExp = new RegExp(this.lookahead,"mg"); + lookaheadRegExp.lastIndex = w.matchStart; + var lookaheadMatch = lookaheadRegExp.exec(w.source); + if(lookaheadMatch && lookaheadMatch.index == w.matchStart) { + var text = lookaheadMatch[1]; + if(config.browser.isIE) + text = text.replace(/\n/g,"\r"); + createTiddlyElement(w.output,"pre",null,null,text); + w.nextMatch = lookaheadRegExp.lastIndex; + } +}; + +// @Deprecated: Use <br> or <br /> instead of <<br>> +config.macros.br = {}; +config.macros.br.handler = function(place) +{ + createTiddlyElement(place,"br"); +}; + +// Find an entry in an array. Returns the array index or null +// @Deprecated: Use indexOf instead +Array.prototype.find = function(item) +{ + var i = this.indexOf(item); + return i == -1 ? null : i; +}; + +// Load a tiddler from an HTML DIV. The caller should make sure to later call Tiddler.changed() +// @Deprecated: Use store.getLoader().internalizeTiddler instead +Tiddler.prototype.loadFromDiv = function(divRef,title) +{ + return store.getLoader().internalizeTiddler(store,this,title,divRef); +}; + +// Format the text for storage in an HTML DIV +// @Deprecated Use store.getSaver().externalizeTiddler instead. +Tiddler.prototype.saveToDiv = function() +{ + return store.getSaver().externalizeTiddler(store,this); +}; + +// @Deprecated: Use store.allTiddlersAsHtml() instead +function allTiddlersAsHtml() +{ + return store.allTiddlersAsHtml(); +} + +// @Deprecated: Use refreshPageTemplate instead +function applyPageTemplate(title) +{ + refreshPageTemplate(title); +} + +// @Deprecated: Use story.displayTiddlers instead +function displayTiddlers(srcElement,titles,template,unused1,unused2,animate,unused3) +{ + story.displayTiddlers(srcElement,titles,template,animate); +} + +// @Deprecated: Use story.displayTiddler instead +function displayTiddler(srcElement,title,template,unused1,unused2,animate,unused3) +{ + story.displayTiddler(srcElement,title,template,animate); +} + +// @Deprecated: Use functions on right hand side directly instead +var createTiddlerPopup = Popup.create; +var scrollToTiddlerPopup = Popup.show; +var hideTiddlerPopup = Popup.remove; + +// @Deprecated: Use right hand side directly instead +var regexpBackSlashEn = new RegExp("\\\\n","mg"); +var regexpBackSlash = new RegExp("\\\\","mg"); +var regexpBackSlashEss = new RegExp("\\\\s","mg"); +var regexpNewLine = new RegExp("\n","mg"); +var regexpCarriageReturn = new RegExp("\r","mg"); + +} +//}}}</pre> +</div> +</div> +<!--POST-STOREAREA--> +<!--POST-BODY-START--> +<!--POST-BODY-END--> +<script type="text/javascript"> +//<![CDATA[ +// +// Please note: +// +// * This code is designed to be readable but for compactness it only includes brief comments. You can see fuller comments +// in the project Subversion repository at http://svn.tiddlywiki.org/Trunk/core/ +// +// * You should never need to modify this source code directly. TiddlyWiki is carefully designed to allow deep customisation +// without changing the core code. Please consult the development group at http://groups.google.com/group/TiddlyWikiDev +// + +//-- +//-- Configuration repository +//-- + +// Miscellaneous options +var config = { + numRssItems: 20, // Number of items in the RSS feed + animDuration: 400, // Duration of UI animations in milliseconds + cascadeFast: 20, // Speed for cascade animations (higher == slower) + cascadeSlow: 60, // Speed for EasterEgg cascade animations + cascadeDepth: 5 // Depth of cascade animation +}; + +// Adaptors +config.adaptors = {}; + +// Backstage tasks +config.tasks = {}; + +// Annotations +config.annotations = {}; + +// Custom fields to be automatically added to new tiddlers +config.defaultCustomFields = {}; + +// Messages +config.messages = { + messageClose: {}, + dates: {}, + tiddlerPopup: {} +}; + +// Options that can be set in the options panel and/or cookies +config.options = { + chkRegExpSearch: false, + chkCaseSensitiveSearch: false, + chkAnimate: true, + chkSaveBackups: true, + chkAutoSave: false, + chkGenerateAnRssFeed: false, + chkSaveEmptyTemplate: false, + chkOpenInNewWindow: true, + chkToggleLinks: false, + chkHttpReadOnly: true, + chkForceMinorUpdate: false, + chkConfirmDelete: true, + chkInsertTabs: false, + chkUsePreForStorage: true, // Whether to use <pre> format for storage + chkDisplayStartupTime: false, + txtBackupFolder: "", + txtMainTab: "tabTimeline", + txtMoreTab: "moreTabAll", + txtMaxEditRows: "30", + txtFileSystemCharSet: "UTF-8", + txtTheme: "" + }; +config.optionsDesc = {}; + +// List of notification functions to be called when certain tiddlers are changed or deleted +config.notifyTiddlers = [ + {name: "StyleSheetLayout", notify: refreshStyles}, + {name: "StyleSheetColors", notify: refreshStyles}, + {name: "StyleSheet", notify: refreshStyles}, + {name: "StyleSheetPrint", notify: refreshStyles}, + {name: "PageTemplate", notify: refreshPageTemplate}, + {name: "SiteTitle", notify: refreshPageTitle}, + {name: "SiteSubtitle", notify: refreshPageTitle}, + {name: "ColorPalette", notify: refreshColorPalette}, + {name: null, notify: refreshDisplay} +]; + +// Default tiddler templates +var DEFAULT_VIEW_TEMPLATE = 1; +var DEFAULT_EDIT_TEMPLATE = 2; +config.tiddlerTemplates = { + 1: "ViewTemplate", + 2: "EditTemplate" +}; + +// More messages (rather a legacy layout that shouldn't really be like this) +config.views = { + wikified: { + tag: {} + }, + editor: { + tagChooser: {} + } +}; + +// Backstage tasks +config.backstageTasks = ["save","sync","importTask","tweak","plugins"]; + +// Macros; each has a 'handler' member that is inserted later +config.macros = { + today: {}, + version: {}, + search: {sizeTextbox: 15}, + tiddler: {}, + tag: {}, + tags: {}, + tagging: {}, + timeline: {}, + allTags: {}, + list: { + all: {}, + missing: {}, + orphans: {}, + shadowed: {}, + touched: {}, + filter: {} + }, + closeAll: {}, + permaview: {}, + saveChanges: {}, + slider: {}, + option: {}, + options: {}, + newTiddler: {}, + newJournal: {}, + tabs: {}, + gradient: {}, + message: {}, + view: {}, + edit: {}, + tagChooser: {}, + toolbar: {}, + plugins: {}, + refreshDisplay: {}, + importTiddlers: {}, + sync: {}, + annotations: {} +}; + +// Commands supported by the toolbar macro +config.commands = { + closeTiddler: {}, + closeOthers: {}, + editTiddler: {}, + saveTiddler: {hideReadOnly: true}, + cancelTiddler: {}, + deleteTiddler: {hideReadOnly: true}, + permalink: {}, + references: {type: "popup"}, + jump: {type: "popup"}, + syncing: {type: "popup"}, + fields: {type: "popup"} +}; + +// Browser detection... In a very few places, there's nothing else for it but to know what browser we're using. +config.userAgent = navigator.userAgent.toLowerCase(); +config.browser = { + isIE: config.userAgent.indexOf("msie") != -1 && config.userAgent.indexOf("opera") == -1, + isGecko: config.userAgent.indexOf("gecko") != -1, + ieVersion: /MSIE (\d.\d)/i.exec(config.userAgent), // config.browser.ieVersion[1], if it exists, will be the IE version string, eg "6.0" + isSafari: config.userAgent.indexOf("applewebkit") != -1, + isBadSafari: !((new RegExp("[\u0150\u0170]","g")).test("\u0150")), + firefoxDate: /gecko\/(\d{8})/i.exec(config.userAgent), // config.browser.firefoxDate[1], if it exists, will be Firefox release date as "YYYYMMDD" + isOpera: config.userAgent.indexOf("opera") != -1, + isLinux: config.userAgent.indexOf("linux") != -1, + isUnix: config.userAgent.indexOf("x11") != -1, + isMac: config.userAgent.indexOf("mac") != -1, + isWindows: config.userAgent.indexOf("win") != -1 +}; + +// Basic regular expressions +config.textPrimitives = { + upperLetter: "[A-Z\u00c0-\u00de\u0150\u0170]", + lowerLetter: "[a-z0-9_\\-\u00df-\u00ff\u0151\u0171]", + anyLetter: "[A-Za-z0-9_\\-\u00c0-\u00de\u00df-\u00ff\u0150\u0170\u0151\u0171]", + anyLetterStrict: "[A-Za-z0-9\u00c0-\u00de\u00df-\u00ff\u0150\u0170\u0151\u0171]" +}; +if(config.browser.isBadSafari) { + config.textPrimitives = { + upperLetter: "[A-Z\u00c0-\u00de]", + lowerLetter: "[a-z0-9_\\-\u00df-\u00ff]", + anyLetter: "[A-Za-z0-9_\\-\u00c0-\u00de\u00df-\u00ff]", + anyLetterStrict: "[A-Za-z0-9\u00c0-\u00de\u00df-\u00ff]" + }; +} +config.textPrimitives.sliceSeparator = "::"; +config.textPrimitives.sectionSeparator = "##"; +config.textPrimitives.urlPattern = "(?:file|http|https|mailto|ftp|irc|news|data):[^\\s'\"]+(?:/|\\b)"; +config.textPrimitives.unWikiLink = "~"; +config.textPrimitives.wikiLink = "(?:(?:" + config.textPrimitives.upperLetter + "+" + + config.textPrimitives.lowerLetter + "+" + + config.textPrimitives.upperLetter + + config.textPrimitives.anyLetter + "*)|(?:" + + config.textPrimitives.upperLetter + "{2,}" + + config.textPrimitives.lowerLetter + "+))"; + +config.textPrimitives.cssLookahead = "(?:(" + config.textPrimitives.anyLetter + "+)\\(([^\\)\\|\\n]+)(?:\\):))|(?:(" + config.textPrimitives.anyLetter + "+):([^;\\|\\n]+);)"; +config.textPrimitives.cssLookaheadRegExp = new RegExp(config.textPrimitives.cssLookahead,"mg"); + +config.textPrimitives.brackettedLink = "\\[\\[([^\\]]+)\\]\\]"; +config.textPrimitives.titledBrackettedLink = "\\[\\[([^\\[\\]\\|]+)\\|([^\\[\\]\\|]+)\\]\\]"; +config.textPrimitives.tiddlerForcedLinkRegExp = new RegExp("(?:" + config.textPrimitives.titledBrackettedLink + ")|(?:" + + config.textPrimitives.brackettedLink + ")|(?:" + + config.textPrimitives.urlPattern + ")","mg"); +config.textPrimitives.tiddlerAnyLinkRegExp = new RegExp("("+ config.textPrimitives.wikiLink + ")|(?:" + + config.textPrimitives.titledBrackettedLink + ")|(?:" + + config.textPrimitives.brackettedLink + ")|(?:" + + config.textPrimitives.urlPattern + ")","mg"); + +config.glyphs = { + browsers: [ + function() {return config.browser.isIE;}, + function() {return true;} + ], + currBrowser: null, + codes: { + downTriangle: ["\u25BC","\u25BE"], + downArrow: ["\u2193","\u2193"], + bentArrowLeft: ["\u2190","\u21A9"], + bentArrowRight: ["\u2192","\u21AA"] + } +}; + +//-- +//-- Shadow tiddlers +//-- + +config.shadowTiddlers = { + StyleSheet: "", + MarkupPreHead: "", + MarkupPostHead: "", + MarkupPreBody: "", + MarkupPostBody: "", + TabTimeline: '<<timeline>>', + TabAll: '<<list all>>', + TabTags: '<<allTags excludeLists>>', + TabMoreMissing: '<<list missing>>', + TabMoreOrphans: '<<list orphans>>', + TabMoreShadowed: '<<list shadowed>>', + AdvancedOptions: '<<options>>', + PluginManager: '<<plugins>>' +}; + +//-- +//-- Translateable strings +//-- + +// Strings in "double quotes" should be translated; strings in 'single quotes' should be left alone + +merge(config.options,{ + txtUserName: "YourName"}); + +merge(config.tasks,{ + save: {text: "save", tooltip: "Save your changes to this TiddlyWiki", action: saveChanges}, + sync: {text: "sync", tooltip: "Synchronise changes with other TiddlyWiki files and servers", content: '<<sync>>'}, + importTask: {text: "import", tooltip: "Import tiddlers and plugins from other TiddlyWiki files and servers", content: '<<importTiddlers>>'}, + tweak: {text: "tweak", tooltip: "Tweak the appearance and behaviour of TiddlyWiki", content: '<<options>>'}, + plugins: {text: "plugins", tooltip: "Manage installed plugins", content: '<<plugins>>'} +}); + +// Options that can be set in the options panel and/or cookies +merge(config.optionsDesc,{ + txtUserName: "Username for signing your edits", + chkRegExpSearch: "Enable regular expressions for searches", + chkCaseSensitiveSearch: "Case-sensitive searching", + chkAnimate: "Enable animations", + chkSaveBackups: "Keep backup file when saving changes", + chkAutoSave: "Automatically save changes", + chkGenerateAnRssFeed: "Generate an RSS feed when saving changes", + chkSaveEmptyTemplate: "Generate an empty template when saving changes", + chkOpenInNewWindow: "Open external links in a new window", + chkToggleLinks: "Clicking on links to open tiddlers causes them to close", + chkHttpReadOnly: "Hide editing features when viewed over HTTP", + chkForceMinorUpdate: "Don't update modifier username and date when editing tiddlers", + chkConfirmDelete: "Require confirmation before deleting tiddlers", + chkInsertTabs: "Use the tab key to insert tab characters instead of moving between fields", + txtBackupFolder: "Name of folder to use for backups", + txtMaxEditRows: "Maximum number of rows in edit boxes", + txtFileSystemCharSet: "Default character set for saving changes (Firefox/Mozilla only)"}); + +merge(config.messages,{ + customConfigError: "Problems were encountered loading plugins. See PluginManager for details", + pluginError: "Error: %0", + pluginDisabled: "Not executed because disabled via 'systemConfigDisable' tag", + pluginForced: "Executed because forced via 'systemConfigForce' tag", + pluginVersionError: "Not executed because this plugin needs a newer version of TiddlyWiki", + nothingSelected: "Nothing is selected. You must select one or more items first", + savedSnapshotError: "It appears that this TiddlyWiki has been incorrectly saved. Please see http://www.tiddlywiki.com/#DownloadSoftware for details", + subtitleUnknown: "(unknown)", + undefinedTiddlerToolTip: "The tiddler '%0' doesn't yet exist", + shadowedTiddlerToolTip: "The tiddler '%0' doesn't yet exist, but has a pre-defined shadow value", + tiddlerLinkTooltip: "%0 - %1, %2", + externalLinkTooltip: "External link to %0", + noTags: "There are no tagged tiddlers", + notFileUrlError: "You need to save this TiddlyWiki to a file before you can save changes", + cantSaveError: "It's not possible to save changes. Possible reasons include:\n- your browser doesn't support saving (Firefox, Internet Explorer, Safari and Opera all work if properly configured)\n- the pathname to your TiddlyWiki file contains illegal characters\n- the TiddlyWiki HTML file has been moved or renamed", + invalidFileError: "The original file '%0' does not appear to be a valid TiddlyWiki", + backupSaved: "Backup saved", + backupFailed: "Failed to save backup file", + rssSaved: "RSS feed saved", + rssFailed: "Failed to save RSS feed file", + emptySaved: "Empty template saved", + emptyFailed: "Failed to save empty template file", + mainSaved: "Main TiddlyWiki file saved", + mainFailed: "Failed to save main TiddlyWiki file. Your changes have not been saved", + macroError: "Error in macro <<\%0>>", + macroErrorDetails: "Error while executing macro <<\%0>>:\n%1", + missingMacro: "No such macro", + overwriteWarning: "A tiddler named '%0' already exists. Choose OK to overwrite it", + unsavedChangesWarning: "WARNING! There are unsaved changes in TiddlyWiki\n\nChoose OK to save\nChoose CANCEL to discard", + confirmExit: "--------------------------------\n\nThere are unsaved changes in TiddlyWiki. If you continue you will lose those changes\n\n--------------------------------", + saveInstructions: "SaveChanges", + unsupportedTWFormat: "Unsupported TiddlyWiki format '%0'", + tiddlerSaveError: "Error when saving tiddler '%0'", + tiddlerLoadError: "Error when loading tiddler '%0'", + wrongSaveFormat: "Cannot save with storage format '%0'. Using standard format for save.", + invalidFieldName: "Invalid field name %0", + fieldCannotBeChanged: "Field '%0' cannot be changed", + loadingMissingTiddler: "Attempting to retrieve the tiddler '%0' from the '%1' server at:\n\n'%2' in the workspace '%3'"}); + +merge(config.messages.messageClose,{ + text: "close", + tooltip: "close this message area"}); + +config.messages.backstage = { + open: {text: "backstage", tooltip: "Open the backstage area to perform authoring and editing tasks"}, + close: {text: "close", tooltip: "Close the backstage area"}, + prompt: "backstage: ", + decal: { + edit: {text: "edit", tooltip: "Edit the tiddler '%0'"} + } +}; + +config.messages.listView = { + tiddlerTooltip: "Click for the full text of this tiddler", + previewUnavailable: "(preview not available)" +}; + +config.messages.dates.months = ["January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November","December"]; +config.messages.dates.days = ["Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday"]; +config.messages.dates.shortMonths = ["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"]; +config.messages.dates.shortDays = ["Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"]; +// suffixes for dates, eg "1st","2nd","3rd"..."30th","31st" +config.messages.dates.daySuffixes = ["st","nd","rd","th","th","th","th","th","th","th", + "th","th","th","th","th","th","th","th","th","th", + "st","nd","rd","th","th","th","th","th","th","th", + "st"]; +config.messages.dates.am = "am"; +config.messages.dates.pm = "pm"; + +merge(config.messages.tiddlerPopup,{ + }); + +merge(config.views.wikified.tag,{ + labelNoTags: "no tags", + labelTags: "tags: ", + openTag: "Open tag '%0'", + tooltip: "Show tiddlers tagged with '%0'", + openAllText: "Open all", + openAllTooltip: "Open all of these tiddlers", + popupNone: "No other tiddlers tagged with '%0'"}); + +merge(config.views.wikified,{ + defaultText: "The tiddler '%0' doesn't yet exist. Double-click to create it", + defaultModifier: "(missing)", + shadowModifier: "(built-in shadow tiddler)", + dateFormat: "DD MMM YYYY", + createdPrompt: "created"}); + +merge(config.views.editor,{ + tagPrompt: "Type tags separated with spaces, [[use double square brackets]] if necessary, or add existing", + defaultText: "Type the text for '%0'"}); + +merge(config.views.editor.tagChooser,{ + text: "tags", + tooltip: "Choose existing tags to add to this tiddler", + popupNone: "There are no tags defined", + tagTooltip: "Add the tag '%0'"}); + +merge(config.messages,{ + sizeTemplates: + [ + {unit: 1024*1024*1024, template: "%0\u00a0GB"}, + {unit: 1024*1024, template: "%0\u00a0MB"}, + {unit: 1024, template: "%0\u00a0KB"}, + {unit: 1, template: "%0\u00a0B"} + ]}); + +merge(config.macros.search,{ + label: "search", + prompt: "Search this TiddlyWiki", + accessKey: "F", + successMsg: "%0 tiddlers found matching %1", + failureMsg: "No tiddlers found matching %0"}); + +merge(config.macros.tagging,{ + label: "tagging: ", + labelNotTag: "not tagging", + tooltip: "List of tiddlers tagged with '%0'"}); + +merge(config.macros.timeline,{ + dateFormat: "DD MMM YYYY"}); + +merge(config.macros.allTags,{ + tooltip: "Show tiddlers tagged with '%0'", + noTags: "There are no tagged tiddlers"}); + +config.macros.list.all.prompt = "All tiddlers in alphabetical order"; +config.macros.list.missing.prompt = "Tiddlers that have links to them but are not defined"; +config.macros.list.orphans.prompt = "Tiddlers that are not linked to from any other tiddlers"; +config.macros.list.shadowed.prompt = "Tiddlers shadowed with default contents"; +config.macros.list.touched.prompt = "Tiddlers that have been modified locally"; + +merge(config.macros.closeAll,{ + label: "close all", + prompt: "Close all displayed tiddlers (except any that are being edited)"}); + +merge(config.macros.permaview,{ + label: "permaview", + prompt: "Link to an URL that retrieves all the currently displayed tiddlers"}); + +merge(config.macros.saveChanges,{ + label: "save changes", + prompt: "Save all tiddlers to create a new TiddlyWiki", + accessKey: "S"}); + +merge(config.macros.newTiddler,{ + label: "new tiddler", + prompt: "Create a new tiddler", + title: "New Tiddler", + accessKey: "N"}); + +merge(config.macros.newJournal,{ + label: "new journal", + prompt: "Create a new tiddler from the current date and time", + accessKey: "J"}); + +merge(config.macros.options,{ + wizardTitle: "Tweak advanced options", + step1Title: "These options are saved in cookies in your browser", + step1Html: "<input type='hidden' name='markList'></input><br><input type='checkbox' checked='false' name='chkUnknown'>Show unknown options</input>", + unknownDescription: "//(unknown)//", + listViewTemplate: { + columns: [ + {name: 'Option', field: 'option', title: "Option", type: 'String'}, + {name: 'Description', field: 'description', title: "Description", type: 'WikiText'}, + {name: 'Name', field: 'name', title: "Name", type: 'String'} + ], + rowClasses: [ + {className: 'lowlight', field: 'lowlight'} + ]} + }); + +merge(config.macros.plugins,{ + wizardTitle: "Manage plugins", + step1Title: "Currently loaded plugins", + step1Html: "<input type='hidden' name='markList'></input>", // DO NOT TRANSLATE + skippedText: "(This plugin has not been executed because it was added since startup)", + noPluginText: "There are no plugins installed", + confirmDeleteText: "Are you sure you want to delete these plugins:\n\n%0", + removeLabel: "remove systemConfig tag", + removePrompt: "Remove systemConfig tag", + deleteLabel: "delete", + deletePrompt: "Delete these tiddlers forever", + listViewTemplate: { + columns: [ + {name: 'Selected', field: 'Selected', rowName: 'title', type: 'Selector'}, + {name: 'Tiddler', field: 'tiddler', title: "Tiddler", type: 'Tiddler'}, + {name: 'Size', field: 'size', tiddlerLink: 'size', title: "Size", type: 'Size'}, + {name: 'Forced', field: 'forced', title: "Forced", tag: 'systemConfigForce', type: 'TagCheckbox'}, + {name: 'Disabled', field: 'disabled', title: "Disabled", tag: 'systemConfigDisable', type: 'TagCheckbox'}, + {name: 'Executed', field: 'executed', title: "Loaded", type: 'Boolean', trueText: "Yes", falseText: "No"}, + {name: 'Startup Time', field: 'startupTime', title: "Startup Time", type: 'String'}, + {name: 'Error', field: 'error', title: "Status", type: 'Boolean', trueText: "Error", falseText: "OK"}, + {name: 'Log', field: 'log', title: "Log", type: 'StringList'} + ], + rowClasses: [ + {className: 'error', field: 'error'}, + {className: 'warning', field: 'warning'} + ]} + }); + +merge(config.macros.toolbar,{ + moreLabel: "more", + morePrompt: "Reveal further commands" + }); + +merge(config.macros.refreshDisplay,{ + label: "refresh", + prompt: "Redraw the entire TiddlyWiki display" + }); + +merge(config.macros.importTiddlers,{ + readOnlyWarning: "You cannot import into a read-only TiddlyWiki file. Try opening it from a file:// URL", + wizardTitle: "Import tiddlers from another file or server", + step1Title: "Step 1: Locate the server or TiddlyWiki file", + step1Html: "Specify the type of the server: <select name='selTypes'><option value=''>Choose...</option></select><br>Enter the URL or pathname here: <input type='text' size=50 name='txtPath'><br>...or browse for a file: <input type='file' size=50 name='txtBrowse'><br><hr>...or select a pre-defined feed: <select name='selFeeds'><option value=''>Choose...</option></select>", + openLabel: "open", + openPrompt: "Open the connection to this file or server", + openError: "There were problems fetching the tiddlywiki file", + statusOpenHost: "Opening the host", + statusGetWorkspaceList: "Getting the list of available workspaces", + step2Title: "Step 2: Choose the workspace", + step2Html: "Enter a workspace name: <input type='text' size=50 name='txtWorkspace'><br>...or select a workspace: <select name='selWorkspace'><option value=''>Choose...</option></select>", + cancelLabel: "cancel", + cancelPrompt: "Cancel this import", + statusOpenWorkspace: "Opening the workspace", + statusGetTiddlerList: "Getting the list of available tiddlers", + step3Title: "Step 3: Choose the tiddlers to import", + step3Html: "<input type='hidden' name='markList'></input><br><input type='checkbox' checked='true' name='chkSync'>Keep these tiddlers linked to this server so that you can synchronise subsequent changes</input><br><input type='checkbox' name='chkSave'>Save the details of this server in a 'systemServer' tiddler called:</input> <input type='text' size=25 name='txtSaveTiddler'>", + importLabel: "import", + importPrompt: "Import these tiddlers", + confirmOverwriteText: "Are you sure you want to overwrite these tiddlers:\n\n%0", + step4Title: "Step 4: Importing %0 tiddler(s)", + step4Html: "<input type='hidden' name='markReport'></input>", // DO NOT TRANSLATE + doneLabel: "done", + donePrompt: "Close this wizard", + statusDoingImport: "Importing tiddlers", + statusDoneImport: "All tiddlers imported", + systemServerNamePattern: "%2 on %1", + systemServerNamePatternNoWorkspace: "%1", + confirmOverwriteSaveTiddler: "The tiddler '%0' already exists. Click 'OK' to overwrite it with the details of this server, or 'Cancel' to leave it unchanged", + serverSaveTemplate: "|''Type:''|%0|\n|''URL:''|%1|\n|''Workspace:''|%2|\n\nThis tiddler was automatically created to record the details of this server", + serverSaveModifier: "(System)", + listViewTemplate: { + columns: [ + {name: 'Selected', field: 'Selected', rowName: 'title', type: 'Selector'}, + {name: 'Tiddler', field: 'tiddler', title: "Tiddler", type: 'Tiddler'}, + {name: 'Size', field: 'size', tiddlerLink: 'size', title: "Size", type: 'Size'}, + {name: 'Tags', field: 'tags', title: "Tags", type: 'Tags'} + ], + rowClasses: [ + ]} + }); + +merge(config.macros.sync,{ + listViewTemplate: { + columns: [ + {name: 'Selected', field: 'selected', rowName: 'title', type: 'Selector'}, + {name: 'Tiddler', field: 'tiddler', title: "Tiddler", type: 'Tiddler'}, + {name: 'Server Type', field: 'serverType', title: "Server type", type: 'String'}, + {name: 'Server Host', field: 'serverHost', title: "Server host", type: 'String'}, + {name: 'Server Workspace', field: 'serverWorkspace', title: "Server workspace", type: 'String'}, + {name: 'Status', field: 'status', title: "Synchronisation status", type: 'String'}, + {name: 'Server URL', field: 'serverUrl', title: "Server URL", text: "View", type: 'Link'} + ], + rowClasses: [ + ], + buttons: [ + {caption: "Sync these tiddlers", name: 'sync'} + ]}, + wizardTitle: "Synchronize with external servers and files", + step1Title: "Choose the tiddlers you want to synchronize", + step1Html: "<input type='hidden' name='markList'></input>", // DO NOT TRANSLATE + syncLabel: "sync", + syncPrompt: "Sync these tiddlers", + hasChanged: "Changed while unplugged", + hasNotChanged: "Unchanged while unplugged", + syncStatusList: { + none: {text: "...", color: "transparent"}, + changedServer: {text: "Changed on server", color: '#80ff80'}, + changedLocally: {text: "Changed while unplugged", color: '#80ff80'}, + changedBoth: {text: "Changed while unplugged and on server", color: '#ff8080'}, + notFound: {text: "Not found on server", color: '#ffff80'}, + putToServer: {text: "Saved update on server", color: '#ff80ff'}, + gotFromServer: {text: "Retrieved update from server", color: '#80ffff'} + } + }); + +merge(config.macros.annotations,{ + }); + +merge(config.commands.closeTiddler,{ + text: "close", + tooltip: "Close this tiddler"}); + +merge(config.commands.closeOthers,{ + text: "close others", + tooltip: "Close all other tiddlers"}); + +merge(config.commands.editTiddler,{ + text: "edit", + tooltip: "Edit this tiddler", + readOnlyText: "view", + readOnlyTooltip: "View the source of this tiddler"}); + +merge(config.commands.saveTiddler,{ + text: "done", + tooltip: "Save changes to this tiddler"}); + +merge(config.commands.cancelTiddler,{ + text: "cancel", + tooltip: "Undo changes to this tiddler", + warning: "Are you sure you want to abandon your changes to '%0'?", + readOnlyText: "done", + readOnlyTooltip: "View this tiddler normally"}); + +merge(config.commands.deleteTiddler,{ + text: "delete", + tooltip: "Delete this tiddler", + warning: "Are you sure you want to delete '%0'?"}); + +merge(config.commands.permalink,{ + text: "permalink", + tooltip: "Permalink for this tiddler"}); + +merge(config.commands.references,{ + text: "references", + tooltip: "Show tiddlers that link to this one", + popupNone: "No references"}); + +merge(config.commands.jump,{ + text: "jump", + tooltip: "Jump to another open tiddler"}); + +merge(config.commands.syncing,{ + text: "syncing", + tooltip: "Control synchronisation of this tiddler with a server or external file", + currentlySyncing: "<div>Currently syncing via <span class='popupHighlight'>'%0'</span> to:</"+"div><div>host: <span class='popupHighlight'>%1</span></"+"div><div>workspace: <span class='popupHighlight'>%2</span></"+"div>", // Note escaping of closing <div> tag + notCurrentlySyncing: "Not currently syncing", + captionUnSync: "Stop synchronising this tiddler", + chooseServer: "Synchronise this tiddler with another server:", + currServerMarker: "\u25cf ", + notCurrServerMarker: " "}); + +merge(config.commands.fields,{ + text: "fields", + tooltip: "Show the extended fields of this tiddler", + emptyText: "There are no extended fields for this tiddler", + listViewTemplate: { + columns: [ + {name: 'Field', field: 'field', title: "Field", type: 'String'}, + {name: 'Value', field: 'value', title: "Value", type: 'String'} + ], + rowClasses: [ + ], + buttons: [ + ]}}); + +merge(config.shadowTiddlers,{ + DefaultTiddlers: "GettingStarted", + MainMenu: "GettingStarted", + SiteTitle: "My TiddlyWiki", + SiteSubtitle: "a reusable non-linear personal web notebook", + SiteUrl: "http://www.tiddlywiki.com/", + SideBarOptions: '<<search>><<closeAll>><<permaview>><<newTiddler>><<newJournal "DD MMM YYYY" "journal">><<saveChanges>><<slider chkSliderOptionsPanel OptionsPanel "options »" "Change TiddlyWiki advanced options">>', + SideBarTabs: '<<tabs txtMainTab "Timeline" "Timeline" TabTimeline "All" "All tiddlers" TabAll "Tags" "All tags" TabTags "More" "More lists" TabMore>>', + TabMore: '<<tabs txtMoreTab "Missing" "Missing tiddlers" TabMoreMissing "Orphans" "Orphaned tiddlers" TabMoreOrphans "Shadowed" "Shadowed tiddlers" TabMoreShadowed>>'}); + +merge(config.annotations,{ + AdvancedOptions: "This shadow tiddler provides access to several advanced options", + ColorPalette: "These values in this shadow tiddler determine the colour scheme of the ~TiddlyWiki user interface", + DefaultTiddlers: "The tiddlers listed in this shadow tiddler will be automatically displayed when ~TiddlyWiki starts up", + EditTemplate: "The HTML template in this shadow tiddler determines how tiddlers look while they are being edited", + GettingStarted: "This shadow tiddler provides basic usage instructions", + ImportTiddlers: "This shadow tiddler provides access to importing tiddlers", + MainMenu: "This shadow tiddler is used as the contents of the main menu in the left-hand column of the screen", + MarkupPreHead: "This tiddler is inserted at the top of the <head> section of the TiddlyWiki HTML file", + MarkupPostHead: "This tiddler is inserted at the bottom of the <head> section of the TiddlyWiki HTML file", + MarkupPreBody: "This tiddler is inserted at the top of the <body> section of the TiddlyWiki HTML file", + MarkupPostBody: "This tiddler is inserted at the end of the <body> section of the TiddlyWiki HTML file immediately before the script block", + OptionsPanel: "This shadow tiddler is used as the contents of the options panel slider in the right-hand sidebar", + PageTemplate: "The HTML template in this shadow tiddler determines the overall ~TiddlyWiki layout", + PluginManager: "This shadow tiddler provides access to the plugin manager", + SideBarOptions: "This shadow tiddler is used as the contents of the option panel in the right-hand sidebar", + SideBarTabs: "This shadow tiddler is used as the contents of the tabs panel in the right-hand sidebar", + SiteSubtitle: "This shadow tiddler is used as the second part of the page title", + SiteTitle: "This shadow tiddler is used as the first part of the page title", + SiteUrl: "This shadow tiddler should be set to the full target URL for publication", + StyleSheetColors: "This shadow tiddler contains CSS definitions related to the color of page elements. ''DO NOT EDIT THIS TIDDLER'', instead make your changes in the StyleSheet shadow tiddler.", + StyleSheet: "This tiddler can contain custom CSS definitions", + StyleSheetLayout: "This shadow tiddler contains CSS definitions related to the layout of page elements. ''DO NOT EDIT THIS TIDDLER'', instead make your changes in the StyleSheet shadow tiddler.", + StyleSheetLocale: "This shadow tiddler contains CSS definitions related to the translation locale", + StyleSheetPrint: "This shadow tiddler contains CSS definitions for printing", + TabAll: "This shadow tiddler contains the contents of the 'All' tab in the right-hand sidebar", + TabMore: "This shadow tiddler contains the contents of the 'More' tab in the right-hand sidebar", + TabMoreMissing: "This shadow tiddler contains the contents of the 'Missing' tab in the right-hand sidebar", + TabMoreOrphans: "This shadow tiddler contains the contents of the 'Orphans' tab in the right-hand sidebar", + TabMoreShadowed: "This shadow tiddler contains the contents of the 'Shadowed' tab in the right-hand sidebar", + TabTags: "This shadow tiddler contains the contents of the 'Tags' tab in the right-hand sidebar", + TabTimeline: "This shadow tiddler contains the contents of the 'Timeline' tab in the right-hand sidebar", + ViewTemplate: "The HTML template in this shadow tiddler determines how tiddlers look" + }); + +//-- +//-- Main +//-- + +var params = null; // Command line parameters +var store = null; // TiddlyWiki storage +var story = null; // Main story +var formatter = null; // Default formatters for the wikifier +config.parsers = {}; // Hashmap of alternative parsers for the wikifier +var anim = typeof Animator == "function" ? new Animator() : null; // Animation engine +var readOnly = false; // Whether we're in readonly mode +var highlightHack = null; // Embarrassing hack department... +var hadConfirmExit = false; // Don't warn more than once +var safeMode = false; // Disable all plugins and cookies +var showBackstage; // Whether to include the backstage area +var installedPlugins = []; // Information filled in when plugins are executed +var startingUp = false; // Whether we're in the process of starting up +var pluginInfo,tiddler; // Used to pass information to plugins in loadPlugins() + +// Whether to use the JavaSaver applet +var useJavaSaver = config.browser.isSafari || config.browser.isOpera; + +// Starting up +function main() +{ + var t10,t9,t8,t7,t6,t5,t4,t3,t2,t1,t0 = new Date(); + startingUp = true; + window.onbeforeunload = function(e) {if(window.confirmExit) return confirmExit();}; + params = getParameters(); + if(params) + params = params.parseParams("open",null,false); + store = new TiddlyWiki(); + invokeParamifier(params,"oninit"); + story = new Story("tiddlerDisplay","tiddler"); + addEvent(document,"click",Popup.onDocumentClick); + saveTest(); + loadOptionsCookie(); + for(var s=0; s<config.notifyTiddlers.length; s++) + store.addNotification(config.notifyTiddlers[s].name,config.notifyTiddlers[s].notify); + t1 = new Date(); + store.loadFromDiv("storeArea","store",true); + t2 = new Date(); + loadShadowTiddlers(); + t3 = new Date(); + invokeParamifier(params,"onload"); + t4 = new Date(); + readOnly = (window.location.protocol == "file:") ? false : config.options.chkHttpReadOnly; + showBackstage = !readOnly; + var pluginProblem = loadPlugins(); + t5 = new Date(); + formatter = new Formatter(config.formatters); + story.switchTheme(config.options.txtTheme); + invokeParamifier(params,"onconfig"); + t6 = new Date(); + store.notifyAll(); + t7 = new Date(); + restart(); + t8 = new Date(); + if(pluginProblem) { + story.displayTiddler(null,"PluginManager"); + displayMessage(config.messages.customConfigError); + } + for(var m in config.macros) { + if(config.macros[m].init) + config.macros[m].init(); + } + t9 = new Date(); + if(showBackstage) + backstage.init(); + t10 = new Date(); + if(config.options.chkDisplayStartupTime) { + displayMessage("LoadFromDiv " + (t2-t1) + " ms"); + displayMessage("LoadShadows " + (t3-t2) + " ms"); + displayMessage("LoadPlugins " + (t5-t4) + " ms"); + displayMessage("Notify " + (t7-t6) + " ms"); + displayMessage("Restart " + (t8-t7) + " ms"); + displayMessage("Macro init " + (t9-t8) + " ms"); + displayMessage("Total: " + (t10-t0) + " ms"); + } + startingUp = false; +} + +// Restarting +function restart() +{ + invokeParamifier(params,"onstart"); + if(story.isEmpty()) { + var tiddlers = store.filterTiddlers(store.getTiddlerText("DefaultTiddlers")); + story.displayTiddlers(null,tiddlers); + } + window.scrollTo(0,0); +} + +function saveTest() +{ + var s = document.getElementById("saveTest"); + if(s.hasChildNodes()) + alert(config.messages.savedSnapshotError); + s.appendChild(document.createTextNode("savetest")); +} + +function loadShadowTiddlers() +{ + var shadows = new TiddlyWiki(); + shadows.loadFromDiv("shadowArea","shadows",true); + shadows.forEachTiddler(function(title,tiddler){config.shadowTiddlers[title] = tiddler.text;}); + delete shadows; +} + +function loadPlugins() +{ + if(safeMode) + return false; + var tiddlers = store.getTaggedTiddlers("systemConfig"); + var toLoad = []; + var nLoaded = 0; + var map = {}; + var nPlugins = tiddlers.length; + installedPlugins = []; + for(var i=0; i<nPlugins; i++) { + var p = getPluginInfo(tiddlers[i]); + installedPlugins[i] = p; + var n = p.Name; + if(n) + map[n] = p; + n = p.Source; + if(n) + map[n] = p; + } + var visit = function(p) { + if(!p || p.done) + return; + p.done = 1; + var reqs = p.Requires; + if(reqs) { + reqs = reqs.readBracketedList(); + for(var i=0; i<reqs.length; i++) + visit(map[reqs[i]]); + } + toLoad.push(p); + }; + for(i=0; i<nPlugins; i++) + visit(installedPlugins[i]); + for(i=0; i<toLoad.length; i++) { + p = toLoad[i]; + pluginInfo = p; + tiddler = p.tiddler; + if(isPluginExecutable(p)) { + if(isPluginEnabled(p)) { + p.executed = true; + var startTime = new Date(); + try { + if(tiddler.text) + window.eval(tiddler.text); + nLoaded++; + } catch(ex) { + p.log.push(config.messages.pluginError.format([exceptionText(ex)])); + p.error = true; + } + pluginInfo.startupTime = String((new Date()) - startTime) + "ms"; + } else { + nPlugins--; + } + } else { + p.warning = true; + } + } + return nLoaded != nPlugins; +} + +function getPluginInfo(tiddler) +{ + var p = store.getTiddlerSlices(tiddler.title,["Name","Description","Version","Requires","CoreVersion","Date","Source","Author","License","Browsers"]); + p.tiddler = tiddler; + p.title = tiddler.title; + p.log = []; + return p; +} + +// Check that a particular plugin is valid for execution +function isPluginExecutable(plugin) +{ + if(plugin.tiddler.isTagged("systemConfigForce")) + return verifyTail(plugin,true,config.messages.pluginForced); + if(plugin["CoreVersion"]) { + var coreVersion = plugin["CoreVersion"].split("."); + var w = parseInt(coreVersion[0]) - version.major; + if(w == 0 && coreVersion[1]) + w = parseInt(coreVersion[1]) - version.minor; + if(w == 0 && coreVersion[2]) + w = parseInt(coreVersion[2]) - version.revision; + if(w > 0) + return verifyTail(plugin,false,config.messages.pluginVersionError); + } + return true; +} + +function isPluginEnabled(plugin) +{ + if(plugin.tiddler.isTagged("systemConfigDisable")) + return verifyTail(plugin,false,config.messages.pluginDisabled); + return true; +} + +function verifyTail(plugin,result,message) +{ + plugin.log.push(message); + return result; +} + +function invokeMacro(place,macro,params,wikifier,tiddler) +{ + try { + var m = config.macros[macro]; + if(m && m.handler) + m.handler(place,macro,params.readMacroParams(),wikifier,params,tiddler); + else + createTiddlyError(place,config.messages.macroError.format([macro]),config.messages.macroErrorDetails.format([macro,config.messages.missingMacro])); + } catch(ex) { + createTiddlyError(place,config.messages.macroError.format([macro]),config.messages.macroErrorDetails.format([macro,ex.toString()])); + } +} + +//-- +//-- Paramifiers +//-- + +function getParameters() +{ + var p = null; + if(window.location.hash) { + p = decodeURI(window.location.hash.substr(1)); + if(config.browser.firefoxDate != null && config.browser.firefoxDate[1] < "20051111") + p = convertUTF8ToUnicode(p); + } + return p; +} + +function invokeParamifier(params,handler) +{ + if(!params || params.length == undefined || params.length <= 1) + return; + for(var t=1; t<params.length; t++) { + var p = config.paramifiers[params[t].name]; + if(p && p[handler] instanceof Function) + p[handler](params[t].value); + } +} + +config.paramifiers = {}; + +config.paramifiers.start = { + oninit: function(v) { + safeMode = v.toLowerCase() == "safe"; + } +}; + +config.paramifiers.open = { + onstart: function(v) { + story.displayTiddler("bottom",v,null,false,null); + } +}; + +config.paramifiers.story = { + onstart: function(v) { + var list = store.getTiddlerText(v,"").parseParams("open",null,false); + invokeParamifier(list,"onstart"); + } +}; + +config.paramifiers.search = { + onstart: function(v) { + story.search(v,false,false); + } +}; + +config.paramifiers.searchRegExp = { + onstart: function(v) { + story.prototype.search(v,false,true); + } +}; + +config.paramifiers.tag = { + onstart: function(v) { + var tagged = store.getTaggedTiddlers(v,"title"); + story.displayTiddlers(null,tagged,null,false,null); + } +}; + +config.paramifiers.newTiddler = { + onstart: function(v) { + if(!readOnly) { + story.displayTiddler(null,v,DEFAULT_EDIT_TEMPLATE); + story.focusTiddler(v,"text"); + } + } +}; + +config.paramifiers.newJournal = { + onstart: function(v) { + if(!readOnly) { + var now = new Date(); + var title = now.formatString(v.trim()); + story.displayTiddler(null,title,DEFAULT_EDIT_TEMPLATE); + story.focusTiddler(title,"text"); + } + } +}; + +config.paramifiers.readOnly = { + onconfig: function(v) { + var p = v.toLowerCase(); + readOnly = p == "yes" ? true : (p == "no" ? false : readOnly); + } +}; + + +config.paramifiers.theme = { + onconfig: function(v) { + story.switchTheme(v); + } +}; + +//-- +//-- Formatter helpers +//-- + +function Formatter(formatters) +{ + this.formatters = []; + var pattern = []; + for(var n=0; n<formatters.length; n++) { + pattern.push("(" + formatters[n].match + ")"); + this.formatters.push(formatters[n]); + } + this.formatterRegExp = new RegExp(pattern.join("|"),"mg"); +} + +config.formatterHelpers = { + + createElementAndWikify: function(w) + { + w.subWikifyTerm(createTiddlyElement(w.output,this.element),this.termRegExp); + }, + + inlineCssHelper: function(w) + { + var styles = []; + config.textPrimitives.cssLookaheadRegExp.lastIndex = w.nextMatch; + var lookaheadMatch = config.textPrimitives.cssLookaheadRegExp.exec(w.source); + while(lookaheadMatch && lookaheadMatch.index == w.nextMatch) { + var s,v; + if(lookaheadMatch[1]) { + s = lookaheadMatch[1].unDash(); + v = lookaheadMatch[2]; + } else { + s = lookaheadMatch[3].unDash(); + v = lookaheadMatch[4]; + } + if (s=="bgcolor") + s = "backgroundColor"; + styles.push({style: s, value: v}); + w.nextMatch = lookaheadMatch.index + lookaheadMatch[0].length; + config.textPrimitives.cssLookaheadRegExp.lastIndex = w.nextMatch; + lookaheadMatch = config.textPrimitives.cssLookaheadRegExp.exec(w.source); + } + return styles; + }, + + applyCssHelper: function(e,styles) + { + for(var t=0; t< styles.length; t++) { + try { + e.style[styles[t].style] = styles[t].value; + } catch (ex) { + } + } + }, + + enclosedTextHelper: function(w) + { + this.lookaheadRegExp.lastIndex = w.matchStart; + var lookaheadMatch = this.lookaheadRegExp.exec(w.source); + if(lookaheadMatch && lookaheadMatch.index == w.matchStart) { + var text = lookaheadMatch[1]; + if(config.browser.isIE) + text = text.replace(/\n/g,"\r"); + createTiddlyElement(w.output,this.element,null,null,text); + w.nextMatch = lookaheadMatch.index + lookaheadMatch[0].length; + } + }, + + isExternalLink: function(link) + { + if(store.tiddlerExists(link) || store.isShadowTiddler(link)) { + return false; + } + var urlRegExp = new RegExp(config.textPrimitives.urlPattern,"mg"); + if(urlRegExp.exec(link)) { + return true; + } + if (link.indexOf(".")!=-1 || link.indexOf("\\")!=-1 || link.indexOf("/")!=-1 || link.indexOf("#")!=-1) { + return true; + } + return false; + } + +}; + +//-- +//-- Standard formatters +//-- + +config.formatters = [ +{ + name: "table", + match: "^\\|(?:[^\\n]*)\\|(?:[fhck]?)$", + lookaheadRegExp: /^\|([^\n]*)\|([fhck]?)$/mg, + rowTermRegExp: /(\|(?:[fhck]?)$\n?)/mg, + cellRegExp: /(?:\|([^\n\|]*)\|)|(\|[fhck]?$\n?)/mg, + cellTermRegExp: /((?:\x20*)\|)/mg, + rowTypes: {"c":"caption", "h":"thead", "":"tbody", "f":"tfoot"}, + handler: function(w) + { + var table = createTiddlyElement(w.output,"table",null,"twtable"); + var prevColumns = []; + var currRowType = null; + var rowContainer; + var rowCount = 0; + w.nextMatch = w.matchStart; + this.lookaheadRegExp.lastIndex = w.nextMatch; + var lookaheadMatch = this.lookaheadRegExp.exec(w.source); + while(lookaheadMatch && lookaheadMatch.index == w.nextMatch) { + var nextRowType = lookaheadMatch[2]; + if(nextRowType == "k") { + table.className = lookaheadMatch[1]; + w.nextMatch += lookaheadMatch[0].length+1; + } else { + if(nextRowType != currRowType) { + rowContainer = createTiddlyElement(table,this.rowTypes[nextRowType]); + currRowType = nextRowType; + } + if(currRowType == "c") { + // Caption + w.nextMatch++; + if(rowContainer != table.firstChild) + table.insertBefore(rowContainer,table.firstChild); + rowContainer.setAttribute("align",rowCount == 0?"top":"bottom"); + w.subWikifyTerm(rowContainer,this.rowTermRegExp); + } else { + var theRow = createTiddlyElement(rowContainer,"tr",null,(rowCount&1)?"oddRow":"evenRow"); + theRow.onmouseover = function() {addClass(this,"hoverRow");}; + theRow.onmouseout = function() {removeClass(this,"hoverRow");}; + this.rowHandler(w,theRow,prevColumns); + rowCount++; + } + } + this.lookaheadRegExp.lastIndex = w.nextMatch; + lookaheadMatch = this.lookaheadRegExp.exec(w.source); + } + }, + rowHandler: function(w,e,prevColumns) + { + var col = 0; + var colSpanCount = 1; + var prevCell = null; + this.cellRegExp.lastIndex = w.nextMatch; + var cellMatch = this.cellRegExp.exec(w.source); + while(cellMatch && cellMatch.index == w.nextMatch) { + if(cellMatch[1] == "~") { + // Rowspan + var last = prevColumns[col]; + if(last) { + last.rowSpanCount++; + last.element.setAttribute("rowspan",last.rowSpanCount); + last.element.setAttribute("rowSpan",last.rowSpanCount); // Needed for IE + last.element.valign = "center"; + } + w.nextMatch = this.cellRegExp.lastIndex-1; + } else if(cellMatch[1] == ">") { + // Colspan + colSpanCount++; + w.nextMatch = this.cellRegExp.lastIndex-1; + } else if(cellMatch[2]) { + // End of row + if(prevCell && colSpanCount > 1) { + prevCell.setAttribute("colspan",colSpanCount); + prevCell.setAttribute("colSpan",colSpanCount); // Needed for IE + } + w.nextMatch = this.cellRegExp.lastIndex; + break; + } else { + // Cell + w.nextMatch++; + var styles = config.formatterHelpers.inlineCssHelper(w); + var spaceLeft = false; + var chr = w.source.substr(w.nextMatch,1); + while(chr == " ") { + spaceLeft = true; + w.nextMatch++; + chr = w.source.substr(w.nextMatch,1); + } + var cell; + if(chr == "!") { + cell = createTiddlyElement(e,"th"); + w.nextMatch++; + } else { + cell = createTiddlyElement(e,"td"); + } + prevCell = cell; + prevColumns[col] = {rowSpanCount:1,element:cell}; + if(colSpanCount > 1) { + cell.setAttribute("colspan",colSpanCount); + cell.setAttribute("colSpan",colSpanCount); // Needed for IE + colSpanCount = 1; + } + config.formatterHelpers.applyCssHelper(cell,styles); + w.subWikifyTerm(cell,this.cellTermRegExp); + if(w.matchText.substr(w.matchText.length-2,1) == " ") // spaceRight + cell.align = spaceLeft ? "center" : "left"; + else if(spaceLeft) + cell.align = "right"; + w.nextMatch--; + } + col++; + this.cellRegExp.lastIndex = w.nextMatch; + cellMatch = this.cellRegExp.exec(w.source); + } + } +}, + +{ + name: "heading", + match: "^!{1,6}", + termRegExp: /(\n)/mg, + handler: function(w) + { + w.subWikifyTerm(createTiddlyElement(w.output,"h" + w.matchLength),this.termRegExp); + } +}, + +{ + name: "list", + match: "^(?:[\\*#;:]+)", + lookaheadRegExp: /^(?:(?:(\*)|(#)|(;)|(:))+)/mg, + termRegExp: /(\n)/mg, + handler: function(w) + { + var stack = [w.output]; + var currLevel = 0, currType = null; + var listLevel, listType, itemType, baseType; + w.nextMatch = w.matchStart; + this.lookaheadRegExp.lastIndex = w.nextMatch; + var lookaheadMatch = this.lookaheadRegExp.exec(w.source); + while(lookaheadMatch && lookaheadMatch.index == w.nextMatch) { + if(lookaheadMatch[1]) { + listType = "ul"; + itemType = "li"; + } else if(lookaheadMatch[2]) { + listType = "ol"; + itemType = "li"; + } else if(lookaheadMatch[3]) { + listType = "dl"; + itemType = "dt"; + } else if(lookaheadMatch[4]) { + listType = "dl"; + itemType = "dd"; + } + if(!baseType) + baseType = listType; + listLevel = lookaheadMatch[0].length; + w.nextMatch += lookaheadMatch[0].length; + var t; + if(listLevel > currLevel) { + for(t=currLevel; t<listLevel; t++) { + var target = (currLevel == 0) ? stack[stack.length-1] : stack[stack.length-1].lastChild; + stack.push(createTiddlyElement(target,listType)); + } + } else if(listType!=baseType && listLevel==1) { + w.nextMatch -= lookaheadMatch[0].length; + return; + } else if(listLevel < currLevel) { + for(t=currLevel; t>listLevel; t--) + stack.pop(); + } else if(listLevel == currLevel && listType != currType) { + stack.pop(); + stack.push(createTiddlyElement(stack[stack.length-1].lastChild,listType)); + } + currLevel = listLevel; + currType = listType; + var e = createTiddlyElement(stack[stack.length-1],itemType); + w.subWikifyTerm(e,this.termRegExp); + this.lookaheadRegExp.lastIndex = w.nextMatch; + lookaheadMatch = this.lookaheadRegExp.exec(w.source); + } + } +}, + +{ + name: "quoteByBlock", + match: "^<<<\\n", + termRegExp: /(^<<<(\n|$))/mg, + element: "blockquote", + handler: config.formatterHelpers.createElementAndWikify +}, + +{ + name: "quoteByLine", + match: "^>+", + lookaheadRegExp: /^>+/mg, + termRegExp: /(\n)/mg, + element: "blockquote", + handler: function(w) + { + var stack = [w.output]; + var currLevel = 0; + var newLevel = w.matchLength; + var t; + do { + if(newLevel > currLevel) { + for(t=currLevel; t<newLevel; t++) + stack.push(createTiddlyElement(stack[stack.length-1],this.element)); + } else if(newLevel < currLevel) { + for(t=currLevel; t>newLevel; t--) + stack.pop(); + } + currLevel = newLevel; + w.subWikifyTerm(stack[stack.length-1],this.termRegExp); + createTiddlyElement(stack[stack.length-1],"br"); + this.lookaheadRegExp.lastIndex = w.nextMatch; + var lookaheadMatch = this.lookaheadRegExp.exec(w.source); + var matched = lookaheadMatch && lookaheadMatch.index == w.nextMatch; + if(matched) { + newLevel = lookaheadMatch[0].length; + w.nextMatch += lookaheadMatch[0].length; + } + } while(matched); + } +}, + +{ + name: "rule", + match: "^----+$\\n?", + handler: function(w) + { + createTiddlyElement(w.output,"hr"); + } +}, + +{ + name: "monospacedByLine", + match: "^(?:/\\*\\{\\{\\{\\*/|\\{\\{\\{|//\\{\\{\\{|<!--\\{\\{\\{-->)\\n", + element: "pre", + handler: function(w) + { + switch(w.matchText) { + case "/*{{{*/\n": // CSS + this.lookaheadRegExp = /\/\*\{\{\{\*\/\n*((?:^[^\n]*\n)+?)(\n*^\/\*\}\}\}\*\/$\n?)/mg; + break; + case "{{{\n": // monospaced block + this.lookaheadRegExp = /^\{\{\{\n((?:^[^\n]*\n)+?)(^\}\}\}$\n?)/mg; + break; + case "//{{{\n": // plugin + this.lookaheadRegExp = /^\/\/\{\{\{\n\n*((?:^[^\n]*\n)+?)(\n*^\/\/\}\}\}$\n?)/mg; + break; + case "<!--{{{-->\n": //template + this.lookaheadRegExp = /<!--\{\{\{-->\n*((?:^[^\n]*\n)+?)(\n*^<!--\}\}\}-->$\n?)/mg; + break; + default: + break; + } + config.formatterHelpers.enclosedTextHelper.call(this,w); + } +}, + +{ + name: "wikifyComment", + match: "^(?:/\\*\\*\\*|<!---)\\n", + handler: function(w) + { + var termRegExp = (w.matchText == "/***\n") ? (/(^\*\*\*\/\n)/mg) : (/(^--->\n)/mg); + w.subWikifyTerm(w.output,termRegExp); + } +}, + +{ + name: "macro", + match: "<<", + lookaheadRegExp: /<<([^>\s]+)(?:\s*)((?:[^>]|(?:>(?!>)))*)>>/mg, + handler: function(w) + { + this.lookaheadRegExp.lastIndex = w.matchStart; + var lookaheadMatch = this.lookaheadRegExp.exec(w.source); + if(lookaheadMatch && lookaheadMatch.index == w.matchStart && lookaheadMatch[1]) { + w.nextMatch = this.lookaheadRegExp.lastIndex; + invokeMacro(w.output,lookaheadMatch[1],lookaheadMatch[2],w,w.tiddler); + } + } +}, + +{ + name: "prettyLink", + match: "\\[\\[", + lookaheadRegExp: /\[\[(.*?)(?:\|(~)?(.*?))?\]\]/mg, + handler: function(w) + { + this.lookaheadRegExp.lastIndex = w.matchStart; + var lookaheadMatch = this.lookaheadRegExp.exec(w.source); + if(lookaheadMatch && lookaheadMatch.index == w.matchStart) { + var e; + var text = lookaheadMatch[1]; + if(lookaheadMatch[3]) { + // Pretty bracketted link + var link = lookaheadMatch[3]; + e = (!lookaheadMatch[2] && config.formatterHelpers.isExternalLink(link)) ? + createExternalLink(w.output,link) : createTiddlyLink(w.output,link,false,null,w.isStatic,w.tiddler); + } else { + // Simple bracketted link + e = createTiddlyLink(w.output,text,false,null,w.isStatic,w.tiddler); + } + createTiddlyText(e,text); + w.nextMatch = this.lookaheadRegExp.lastIndex; + } + } +}, + +{ + name: "wikiLink", + match: config.textPrimitives.unWikiLink+"?"+config.textPrimitives.wikiLink, + handler: function(w) + { + if(w.matchText.substr(0,1) == config.textPrimitives.unWikiLink) { + w.outputText(w.output,w.matchStart+1,w.nextMatch); + return; + } + if(w.matchStart > 0) { + var preRegExp = new RegExp(config.textPrimitives.anyLetterStrict,"mg"); + preRegExp.lastIndex = w.matchStart-1; + var preMatch = preRegExp.exec(w.source); + if(preMatch.index == w.matchStart-1) { + w.outputText(w.output,w.matchStart,w.nextMatch); + return; + } + } + if(w.autoLinkWikiWords || store.isShadowTiddler(w.matchText)) { + var link = createTiddlyLink(w.output,w.matchText,false,null,w.isStatic,w.tiddler); + w.outputText(link,w.matchStart,w.nextMatch); + } else { + w.outputText(w.output,w.matchStart,w.nextMatch); + } + } +}, + +{ + name: "urlLink", + match: config.textPrimitives.urlPattern, + handler: function(w) + { + w.outputText(createExternalLink(w.output,w.matchText),w.matchStart,w.nextMatch); + } +}, + +{ + name: "image", + match: "\\[[<>]?[Ii][Mm][Gg]\\[", + lookaheadRegExp: /\[([<]?)(>?)[Ii][Mm][Gg]\[(?:([^\|\]]+)\|)?([^\[\]\|]+)\](?:\[([^\]]*)\])?\]/mg, + handler: function(w) + { + this.lookaheadRegExp.lastIndex = w.matchStart; + var lookaheadMatch = this.lookaheadRegExp.exec(w.source); + if(lookaheadMatch && lookaheadMatch.index == w.matchStart) { + var e = w.output; + if(lookaheadMatch[5]) { + var link = lookaheadMatch[5]; + e = config.formatterHelpers.isExternalLink(link) ? createExternalLink(w.output,link) : createTiddlyLink(w.output,link,false,null,w.isStatic,w.tiddler); + addClass(e,"imageLink"); + } + var img = createTiddlyElement(e,"img"); + if(lookaheadMatch[1]) + img.align = "left"; + else if(lookaheadMatch[2]) + img.align = "right"; + if(lookaheadMatch[3]) + img.title = lookaheadMatch[3]; + img.src = lookaheadMatch[4]; + w.nextMatch = this.lookaheadRegExp.lastIndex; + } + } +}, + +{ + name: "html", + match: "<[Hh][Tt][Mm][Ll]>", + lookaheadRegExp: /<[Hh][Tt][Mm][Ll]>((?:.|\n)*?)<\/[Hh][Tt][Mm][Ll]>/mg, + handler: function(w) + { + this.lookaheadRegExp.lastIndex = w.matchStart; + var lookaheadMatch = this.lookaheadRegExp.exec(w.source); + if(lookaheadMatch && lookaheadMatch.index == w.matchStart) { + createTiddlyElement(w.output,"span").innerHTML = lookaheadMatch[1]; + w.nextMatch = this.lookaheadRegExp.lastIndex; + } + } +}, + +{ + name: "commentByBlock", + match: "/%", + lookaheadRegExp: /\/%((?:.|\n)*?)%\//mg, + handler: function(w) + { + this.lookaheadRegExp.lastIndex = w.matchStart; + var lookaheadMatch = this.lookaheadRegExp.exec(w.source); + if(lookaheadMatch && lookaheadMatch.index == w.matchStart) + w.nextMatch = this.lookaheadRegExp.lastIndex; + } +}, + +{ + name: "characterFormat", + match: "''|//|__|\\^\\^|~~|--(?!\\s|$)|\\{\\{\\{", + handler: function(w) + { + switch(w.matchText) { + case "''": + w.subWikifyTerm(w.output.appendChild(document.createElement("strong")),/('')/mg); + break; + case "//": + w.subWikifyTerm(createTiddlyElement(w.output,"em"),/(\/\/)/mg); + break; + case "__": + w.subWikifyTerm(createTiddlyElement(w.output,"u"),/(__)/mg); + break; + case "^^": + w.subWikifyTerm(createTiddlyElement(w.output,"sup"),/(\^\^)/mg); + break; + case "~~": + w.subWikifyTerm(createTiddlyElement(w.output,"sub"),/(~~)/mg); + break; + case "--": + w.subWikifyTerm(createTiddlyElement(w.output,"strike"),/(--)/mg); + break; + case "{{{": + var lookaheadRegExp = /\{\{\{((?:.|\n)*?)\}\}\}/mg; + lookaheadRegExp.lastIndex = w.matchStart; + var lookaheadMatch = lookaheadRegExp.exec(w.source); + if(lookaheadMatch && lookaheadMatch.index == w.matchStart) { + createTiddlyElement(w.output,"code",null,null,lookaheadMatch[1]); + w.nextMatch = lookaheadRegExp.lastIndex; + } + break; + } + } +}, + +{ + name: "customFormat", + match: "@@|\\{\\{", + handler: function(w) + { + switch(w.matchText) { + case "@@": + var e = createTiddlyElement(w.output,"span"); + var styles = config.formatterHelpers.inlineCssHelper(w); + if(styles.length == 0) + e.className = "marked"; + else + config.formatterHelpers.applyCssHelper(e,styles); + w.subWikifyTerm(e,/(@@)/mg); + break; + case "{{": + lookaheadRegExp = /\{\{[\s]*([\w]+[\s\w]*)[\s]*\{(\n?)/mg; + lookaheadRegExp.lastIndex = w.matchStart; + lookaheadMatch = lookaheadRegExp.exec(w.source); + if(lookaheadMatch) { + w.nextMatch = lookaheadRegExp.lastIndex; + e = createTiddlyElement(w.output,lookaheadMatch[2] == "\n" ? "div" : "span",null,lookaheadMatch[1]); + w.subWikifyTerm(e,/(\}\}\})/mg); + } + break; + } + } +}, + +{ + name: "mdash", + match: "--", + handler: function(w) + { + createTiddlyElement(w.output,"span").innerHTML = "—"; + } +}, + +{ + name: "lineBreak", + match: "\\n|<br ?/?>", + handler: function(w) + { + createTiddlyElement(w.output,"br"); + } +}, + +{ + name: "rawText", + match: "\\\"{3}|<nowiki>", + lookaheadRegExp: /(?:\"{3}|<nowiki>)((?:.|\n)*?)(?:\"{3}|<\/nowiki>)/mg, + handler: function(w) + { + this.lookaheadRegExp.lastIndex = w.matchStart; + var lookaheadMatch = this.lookaheadRegExp.exec(w.source); + if(lookaheadMatch && lookaheadMatch.index == w.matchStart) { + createTiddlyElement(w.output,"span",null,null,lookaheadMatch[1]); + w.nextMatch = this.lookaheadRegExp.lastIndex; + } + } +}, + +{ + name: "htmlEntitiesEncoding", + match: "(?:(?:&#?[a-zA-Z0-9]{2,8};|.)(?:&#?(?:x0*(?:3[0-6][0-9a-fA-F]|1D[c-fC-F][0-9a-fA-F]|20[d-fD-F][0-9a-fA-F]|FE2[0-9a-fA-F])|0*(?:76[89]|7[7-9][0-9]|8[0-7][0-9]|761[6-9]|76[2-7][0-9]|84[0-3][0-9]|844[0-7]|6505[6-9]|6506[0-9]|6507[0-1]));)+|&#?[a-zA-Z0-9]{2,8};)", + handler: function(w) + { + createTiddlyElement(w.output,"span").innerHTML = w.matchText; + } +} + +]; + +//-- +//-- Wikifier +//-- + +function getParser(tiddler,format) +{ + if(tiddler) { + if(!format) + format = tiddler.fields["wikiformat"]; + var i; + if(format) { + for(i in config.parsers) { + if(format == config.parsers[i].format) + return config.parsers[i]; + } + } else { + for(i in config.parsers) { + if(tiddler.isTagged(config.parsers[i].formatTag)) + return config.parsers[i]; + } + } + } + return formatter; +} + +function wikify(source,output,highlightRegExp,tiddler) +{ + if(source && source != "") { + var wikifier = new Wikifier(source,getParser(tiddler),highlightRegExp,tiddler); + wikifier.subWikifyUnterm(output); + } +} + +function wikifyStatic(source,highlightRegExp,tiddler,format) +{ + var e = createTiddlyElement(document.body,"div"); + e.style.display = "none"; + var html = ""; + if(source && source != "") { + var wikifier = new Wikifier(source,getParser(tiddler,format),highlightRegExp,tiddler); + wikifier.isStatic = true; + wikifier.subWikifyUnterm(e); + html = e.innerHTML; + removeNode(e); + } + return html; +} + +function wikifyPlain(title,theStore,limit) +{ + if(!theStore) + theStore = store; + if(theStore.tiddlerExists(title) || theStore.isShadowTiddler(title)) { + return wikifyPlainText(theStore.getTiddlerText(title),limit,tiddler); + } else { + return ""; + } +} + +function wikifyPlainText(text,limit,tiddler) +{ + if(limit > 0) + text = text.substr(0,limit); + var wikifier = new Wikifier(text,formatter,null,tiddler); + return wikifier.wikifyPlain(); +} + +function highlightify(source,output,highlightRegExp,tiddler) +{ + if(source && source != "") { + var wikifier = new Wikifier(source,formatter,highlightRegExp,tiddler); + wikifier.outputText(output,0,source.length); + } +} + +function Wikifier(source,formatter,highlightRegExp,tiddler) +{ + this.source = source; + this.output = null; + this.formatter = formatter; + this.nextMatch = 0; + this.autoLinkWikiWords = tiddler && tiddler.autoLinkWikiWords() == false ? false : true; + this.highlightRegExp = highlightRegExp; + this.highlightMatch = null; + this.isStatic = false; + if(highlightRegExp) { + highlightRegExp.lastIndex = 0; + this.highlightMatch = highlightRegExp.exec(source); + } + this.tiddler = tiddler; +} + +Wikifier.prototype.wikifyPlain = function() +{ + var e = createTiddlyElement(document.body,"div"); + this.subWikify(e); + var text = getPlainText(e); + removeNode(e); + return text; +}; + +Wikifier.prototype.subWikify = function(output,terminator) +{ + if(terminator) + this.subWikifyTerm(output,new RegExp("(" + terminator + ")","mg")); + else + this.subWikifyUnterm(output); +}; + +Wikifier.prototype.subWikifyUnterm = function(output) +{ + var oldOutput = this.output; + this.output = output; + this.formatter.formatterRegExp.lastIndex = this.nextMatch; + var formatterMatch = this.formatter.formatterRegExp.exec(this.source); + while(formatterMatch) { + // Output any text before the match + if(formatterMatch.index > this.nextMatch) + this.outputText(this.output,this.nextMatch,formatterMatch.index); + // Set the match parameters for the handler + this.matchStart = formatterMatch.index; + this.matchLength = formatterMatch[0].length; + this.matchText = formatterMatch[0]; + this.nextMatch = this.formatter.formatterRegExp.lastIndex; + for(var t=1; t<formatterMatch.length; t++) { + if(formatterMatch[t]) { + this.formatter.formatters[t-1].handler(this); + this.formatter.formatterRegExp.lastIndex = this.nextMatch; + break; + } + } + formatterMatch = this.formatter.formatterRegExp.exec(this.source); + } + if(this.nextMatch < this.source.length) { + this.outputText(this.output,this.nextMatch,this.source.length); + this.nextMatch = this.source.length; + } + this.output = oldOutput; +}; + +Wikifier.prototype.subWikifyTerm = function(output,terminatorRegExp) +{ + var oldOutput = this.output; + this.output = output; + terminatorRegExp.lastIndex = this.nextMatch; + var terminatorMatch = terminatorRegExp.exec(this.source); + this.formatter.formatterRegExp.lastIndex = this.nextMatch; + var formatterMatch = this.formatter.formatterRegExp.exec(terminatorMatch ? this.source.substr(0,terminatorMatch.index) : this.source); + while(terminatorMatch || formatterMatch) { + if(terminatorMatch && (!formatterMatch || terminatorMatch.index <= formatterMatch.index)) { + if(terminatorMatch.index > this.nextMatch) + this.outputText(this.output,this.nextMatch,terminatorMatch.index); + this.matchText = terminatorMatch[1]; + this.matchLength = terminatorMatch[1].length; + this.matchStart = terminatorMatch.index; + this.nextMatch = this.matchStart + this.matchLength; + this.output = oldOutput; + return; + } + if(formatterMatch.index > this.nextMatch) + this.outputText(this.output,this.nextMatch,formatterMatch.index); + this.matchStart = formatterMatch.index; + this.matchLength = formatterMatch[0].length; + this.matchText = formatterMatch[0]; + this.nextMatch = this.formatter.formatterRegExp.lastIndex; + for(var t=1; t<formatterMatch.length; t++) { + if(formatterMatch[t]) { + this.formatter.formatters[t-1].handler(this); + this.formatter.formatterRegExp.lastIndex = this.nextMatch; + break; + } + } + terminatorRegExp.lastIndex = this.nextMatch; + terminatorMatch = terminatorRegExp.exec(this.source); + formatterMatch = this.formatter.formatterRegExp.exec(terminatorMatch ? this.source.substr(0,terminatorMatch.index) : this.source); + } + if(this.nextMatch < this.source.length) { + this.outputText(this.output,this.nextMatch,this.source.length); + this.nextMatch = this.source.length; + } + this.output = oldOutput; +}; + +Wikifier.prototype.outputText = function(place,startPos,endPos) +{ + while(this.highlightMatch && (this.highlightRegExp.lastIndex > startPos) && (this.highlightMatch.index < endPos) && (startPos < endPos)) { + if(this.highlightMatch.index > startPos) { + createTiddlyText(place,this.source.substring(startPos,this.highlightMatch.index)); + startPos = this.highlightMatch.index; + } + var highlightEnd = Math.min(this.highlightRegExp.lastIndex,endPos); + var theHighlight = createTiddlyElement(place,"span",null,"highlight",this.source.substring(startPos,highlightEnd)); + startPos = highlightEnd; + if(startPos >= this.highlightRegExp.lastIndex) + this.highlightMatch = this.highlightRegExp.exec(this.source); + } + if(startPos < endPos) { + createTiddlyText(place,this.source.substring(startPos,endPos)); + } +}; + +//-- +//-- Macro definitions +//-- + +config.macros.today.handler = function(place,macroName,params) +{ + var now = new Date(); + var text = params[0] ? now.formatString(params[0].trim()) : text = now.toLocaleString(); + createTiddlyElement(place,"span",null,null,text); +}; + +config.macros.version.handler = function(place) +{ + createTiddlyElement(place,"span",null,null,version.major + "." + version.minor + "." + version.revision + (version.beta ? " (beta " + version.beta + ")" : "")); +}; + +config.macros.list.handler = function(place,macroName,params) +{ + var type = params[0] ? params[0] : "all"; + var list = document.createElement("ul"); + place.appendChild(list); + if(this[type].prompt) + createTiddlyElement(list,"li",null,"listTitle",this[type].prompt); + var results; + if(this[type].handler) + results = this[type].handler(params); + for(var t = 0; t < results.length; t++) { + var li = document.createElement("li"); + list.appendChild(li); + createTiddlyLink(li,typeof results[t] == "string" ? results[t] : results[t].title,true); + } +}; + +config.macros.list.all.handler = function(params) +{ + return store.reverseLookup("tags","excludeLists",false,"title"); +}; + +config.macros.list.missing.handler = function(params) +{ + return store.getMissingLinks(); +}; + +config.macros.list.orphans.handler = function(params) +{ + return store.getOrphans(); +}; + +config.macros.list.shadowed.handler = function(params) +{ + return store.getShadowed(); +}; + +config.macros.list.touched.handler = function(params) +{ + return store.getTouched(); +}; + +config.macros.list.filter.handler = function(params) +{ + var filter = params[1]; + var results = []; + if(filter) { + var tiddlers = store.filterTiddlers(filter); + for(var t=0; t<tiddlers.length; t++) + results.push(tiddlers[t].title); + } + return results; +}; + +config.macros.allTags.handler = function(place,macroName,params) +{ + var tags = store.getTags(params[0]); + var ul = createTiddlyElement(place,"ul"); + if(tags.length == 0) + createTiddlyElement(ul,"li",null,"listTitle",this.noTags); + for(var t=0; t<tags.length; t++) { + var title = tags[t][0]; + var info = getTiddlyLinkInfo(title); + var li =createTiddlyElement(ul,"li"); + var btn = createTiddlyButton(li,title + " (" + tags[t][1] + ")",this.tooltip.format([title]),onClickTag,info.classes); + btn.setAttribute("tag",title); + btn.setAttribute("refresh","link"); + btn.setAttribute("tiddlyLink",title); + } +}; + +config.macros.timeline.handler = function(place,macroName,params) +{ + var field = params[0] ? params[0] : "modified"; + var tiddlers = store.reverseLookup("tags","excludeLists",false,field); + var lastDay = ""; + var last = params[1] ? tiddlers.length-Math.min(tiddlers.length,parseInt(params[1])) : 0; + var dateFormat = params[2] ? params[2] : this.dateFormat; + for(var t=tiddlers.length-1; t>=last; t--) { + var tiddler = tiddlers[t]; + var theDay = tiddler[field].convertToLocalYYYYMMDDHHMM().substr(0,8); + if(theDay != lastDay) { + var ul = document.createElement("ul"); + place.appendChild(ul); + createTiddlyElement(ul,"li",null,"listTitle",tiddler[field].formatString(dateFormat)); + lastDay = theDay; + } + createTiddlyElement(ul,"li",null,"listLink").appendChild(createTiddlyLink(place,tiddler.title,true)); + } +}; + +config.macros.tiddler.handler = function(place,macroName,params,wikifier,paramString,tiddler) +{ + params = paramString.parseParams("name",null,true,false,true); + var names = params[0]["name"]; + var tiddlerName = names[0]; + var className = names[1] ? names[1] : null; + var args = params[0]["with"]; + var wrapper = createTiddlyElement(place,"span",null,className); + if(!args) { + wrapper.setAttribute("refresh","content"); + wrapper.setAttribute("tiddler",tiddlerName); + } + var text = store.getTiddlerText(tiddlerName); + if(text) { + var stack = config.macros.tiddler.tiddlerStack; + if(stack.indexOf(tiddlerName) !== -1) + return; + stack.push(tiddlerName); + try { + var n = args ? Math.min(args.length,9) : 0; + for(var i=0; i<n; i++) { + var placeholderRE = new RegExp("\\$" + (i + 1),"mg"); + text = text.replace(placeholderRE,args[i]); + } + config.macros.tiddler.renderText(wrapper,text,tiddlerName,params); + } finally { + stack.pop(); + } + } +}; + +config.macros.tiddler.renderText = function(place,text,tiddlerName,params) +{ + wikify(text,place,null,store.getTiddler(tiddlerName)); +}; + +config.macros.tiddler.tiddlerStack = []; + +config.macros.tag.handler = function(place,macroName,params) +{ + createTagButton(place,params[0]); +}; + +config.macros.tags.handler = function(place,macroName,params,wikifier,paramString,tiddler) +{ + params = paramString.parseParams("anon",null,true,false,false); + var ul = createTiddlyElement(place,"ul"); + var title = getParam(params,"anon",""); + if(title && store.tiddlerExists(title)) + tiddler = store.getTiddler(title); + var sep = getParam(params,"sep"," "); + var lingo = config.views.wikified.tag; + var prompt = tiddler.tags.length == 0 ? lingo.labelNoTags : lingo.labelTags; + createTiddlyElement(ul,"li",null,"listTitle",prompt.format([tiddler.title])); + for(var t=0; t<tiddler.tags.length; t++) { + createTagButton(createTiddlyElement(ul,"li"),tiddler.tags[t],tiddler.title); + if(t<tiddler.tags.length-1) + createTiddlyText(ul,sep); + } +}; + +config.macros.tagging.handler = function(place,macroName,params,wikifier,paramString,tiddler) +{ + params = paramString.parseParams("anon",null,true,false,false); + var ul = createTiddlyElement(place,"ul"); + var title = getParam(params,"anon",""); + if(title == "" && tiddler instanceof Tiddler) + title = tiddler.title; + var sep = getParam(params,"sep"," "); + ul.setAttribute("title",this.tooltip.format([title])); + var tagged = store.getTaggedTiddlers(title); + var prompt = tagged.length == 0 ? this.labelNotTag : this.label; + createTiddlyElement(ul,"li",null,"listTitle",prompt.format([title,tagged.length])); + for(var t=0; t<tagged.length; t++) { + createTiddlyLink(createTiddlyElement(ul,"li"),tagged[t].title,true); + if(t<tagged.length-1) + createTiddlyText(ul,sep); + } +}; + +config.macros.closeAll.handler = function(place) +{ + createTiddlyButton(place,this.label,this.prompt,this.onClick); +}; + +config.macros.closeAll.onClick = function(e) +{ + story.closeAllTiddlers(); + return false; +}; + +config.macros.permaview.handler = function(place) +{ + createTiddlyButton(place,this.label,this.prompt,this.onClick); +}; + +config.macros.permaview.onClick = function(e) +{ + story.permaView(); + return false; +}; + +config.macros.saveChanges.handler = function(place) +{ + if(!readOnly) + createTiddlyButton(place,this.label,this.prompt,this.onClick,null,null,this.accessKey); +}; + +config.macros.saveChanges.onClick = function(e) +{ + saveChanges(); + return false; +}; + +config.macros.slider.onClickSlider = function(ev) +{ + var e = ev ? ev : window.event; + var n = this.nextSibling; + var cookie = n.getAttribute("cookie"); + var isOpen = n.style.display != "none"; + if(config.options.chkAnimate && anim && typeof Slider == "function") + anim.startAnimating(new Slider(n,!isOpen,null,"none")); + else + n.style.display = isOpen ? "none" : "block"; + config.options[cookie] = !isOpen; + saveOptionCookie(cookie); + return false; +}; + +config.macros.slider.createSlider = function(place,cookie,title,tooltip) +{ + var c = cookie ? cookie : ""; + var btn = createTiddlyButton(place,title,tooltip,this.onClickSlider); + var panel = createTiddlyElement(null,"div",null,"sliderPanel"); + panel.setAttribute("cookie",c); + panel.style.display = config.options[c] ? "block" : "none"; + place.appendChild(panel); + return panel; +}; + +config.macros.slider.handler = function(place,macroName,params) +{ + var panel = this.createSlider(place,params[0],params[2],params[3]); + var text = store.getTiddlerText(params[1]); + panel.setAttribute("refresh","content"); + panel.setAttribute("tiddler",params[1]); + if(text) + wikify(text,panel,null,store.getTiddler(params[1])); +}; + +// <<gradient [[tiddler name]] vert|horiz rgb rgb rgb rgb... >> +config.macros.gradient.handler = function(place,macroName,params,wikifier) +{ + var panel = wikifier ? createTiddlyElement(place,"div",null,"gradient") : place; + panel.style.position = "relative"; + panel.style.overflow = "hidden"; + panel.style.zIndex = "0"; + if(wikifier) { + var styles = config.formatterHelpers.inlineCssHelper(wikifier); + config.formatterHelpers.applyCssHelper(panel,styles); + } + var colours = []; + for(var t=1; t<params.length; t++) { + var c = new RGB(params[t]); + if(c) + colours.push(c); + } + drawGradient(panel,params[0] != "vert",colours); + if(wikifier) + wikifier.subWikify(panel,">>"); + if(document.all) { + panel.style.height = "100%"; + panel.style.width = "100%"; + } +}; + +config.macros.message.handler = function(place,macroName,params) +{ + if(params[0]) { + var m = config; + var p = params[0].split("."); + for(var t=0; t<p.length; t++) { + if(p[t] in m) + m = m[p[t]]; + else + break; + } + createTiddlyText(place,m.toString().format(params.splice(1))); + } +}; + +config.macros.view.handler = function(place,macroName,params,wikifier,paramString,tiddler) +{ + if((tiddler instanceof Tiddler) && params[0]) { + var value = store.getValue(tiddler,params[0]); + if(value != undefined) { + switch(params[1]) { + case undefined: + highlightify(value,place,highlightHack,tiddler); + break; + case "link": + createTiddlyLink(place,value,true); + break; + case "wikified": + wikify(value,place,highlightHack,tiddler); + break; + case "date": + value = Date.convertFromYYYYMMDDHHMM(value); + createTiddlyText(place,value.formatString(params[2] ? params[2] : config.views.wikified.dateFormat)); + break; + } + } + } +}; + +config.macros.edit.handler = function(place,macroName,params,wikifier,paramString,tiddler) +{ + var field = params[0]; + var rows = params[1] || 0; + var defVal = params[2] || ''; + if((tiddler instanceof Tiddler) && field) { + story.setDirty(tiddler.title,true); + var e,v; + if(field != "text" && !rows) { + e = createTiddlyElement(null,"input"); + if(tiddler.isReadOnly()) + e.setAttribute("readOnly","readOnly"); + e.setAttribute("edit",field); + e.setAttribute("type","text"); + e.value = store.getValue(tiddler,field) || defVal; + e.setAttribute("size","40"); + e.setAttribute("autocomplete","off"); + place.appendChild(e); + } else { + var wrapper1 = createTiddlyElement(null,"fieldset",null,"fieldsetFix"); + var wrapper2 = createTiddlyElement(wrapper1,"div"); + e = createTiddlyElement(wrapper2,"textarea"); + if(tiddler.isReadOnly()) + e.setAttribute("readOnly","readOnly"); + e.value = v = store.getValue(tiddler,field) || defVal; + rows = rows ? rows : 10; + var lines = v.match(/\n/mg); + var maxLines = Math.max(parseInt(config.options.txtMaxEditRows),5); + if(lines != null && lines.length > rows) + rows = lines.length + 5; + rows = Math.min(rows,maxLines); + e.setAttribute("rows",rows); + e.setAttribute("edit",field); + place.appendChild(wrapper1); + } + return e; + } +}; + +config.macros.tagChooser.onClick = function(ev) +{ + var e = ev ? ev : window.event; + var lingo = config.views.editor.tagChooser; + var popup = Popup.create(this); + var tags = store.getTags(); + if(tags.length == 0) + createTiddlyText(createTiddlyElement(popup,"li"),lingo.popupNone); + for(var t=0; t<tags.length; t++) { + var tag = createTiddlyButton(createTiddlyElement(popup,"li"),tags[t][0],lingo.tagTooltip.format([tags[t][0]]),config.macros.tagChooser.onTagClick); + tag.setAttribute("tag",tags[t][0]); + tag.setAttribute("tiddler",this.getAttribute("tiddler")); + } + Popup.show(); + e.cancelBubble = true; + if(e.stopPropagation) e.stopPropagation(); + return false; +}; + +config.macros.tagChooser.onTagClick = function(ev) +{ + var e = ev ? ev : window.event; + var tag = this.getAttribute("tag"); + var title = this.getAttribute("tiddler"); + if(!readOnly) + story.setTiddlerTag(title,tag,0); + return false; +}; + +config.macros.tagChooser.handler = function(place,macroName,params,wikifier,paramString,tiddler) +{ + if(tiddler instanceof Tiddler) { + var lingo = config.views.editor.tagChooser; + var btn = createTiddlyButton(place,lingo.text,lingo.tooltip,this.onClick); + btn.setAttribute("tiddler",tiddler.title); + } +}; + +config.macros.refreshDisplay.handler = function(place) +{ + createTiddlyButton(place,this.label,this.prompt,this.onClick); +}; + +config.macros.refreshDisplay.onClick = function(e) +{ + refreshAll(); + return false; +}; + +config.macros.annotations.handler = function(place,macroName,params,wikifier,paramString,tiddler) +{ + var title = tiddler ? tiddler.title : null; + var a = title ? config.annotations[title] : null; + if(!tiddler || !title || !a) + return; + var text = a.format([title]); + wikify(text,createTiddlyElement(place,"div",null,"annotation"),null,tiddler); +}; + +//-- +//-- NewTiddler and NewJournal macros +//-- + +config.macros.newTiddler.createNewTiddlerButton = function(place,title,params,label,prompt,accessKey,newFocus,isJournal) +{ + var tags = []; + for(var t=1; t<params.length; t++) { + if((params[t].name == "anon" && t != 1) || (params[t].name == "tag")) + tags.push(params[t].value); + } + label = getParam(params,"label",label); + prompt = getParam(params,"prompt",prompt); + accessKey = getParam(params,"accessKey",accessKey); + newFocus = getParam(params,"focus",newFocus); + var customFields = getParam(params,"fields",""); + if(!customFields && !store.isShadowTiddler(title)) + customFields = String.encodeHashMap(config.defaultCustomFields); + var btn = createTiddlyButton(place,label,prompt,this.onClickNewTiddler,null,null,accessKey); + btn.setAttribute("newTitle",title); + btn.setAttribute("isJournal",isJournal ? "true" : "false"); + if(tags.length > 0) + btn.setAttribute("params",tags.join("|")); + btn.setAttribute("newFocus",newFocus); + btn.setAttribute("newTemplate",getParam(params,"template",DEFAULT_EDIT_TEMPLATE)); + if(customFields !== "") + btn.setAttribute("customFields",customFields); + var text = getParam(params,"text"); + if(text !== undefined) + btn.setAttribute("newText",text); + return btn; +}; + +config.macros.newTiddler.onClickNewTiddler = function() +{ + var title = this.getAttribute("newTitle"); + if(this.getAttribute("isJournal") == "true") { + var now = new Date(); + title = now.formatString(title.trim()); + } + var params = this.getAttribute("params"); + var tags = params ? params.split("|") : []; + var focus = this.getAttribute("newFocus"); + var template = this.getAttribute("newTemplate"); + var customFields = this.getAttribute("customFields"); + story.displayTiddler(null,title,template,false,null,null); + var tiddlerElem = document.getElementById(story.idPrefix + title); + if(customFields) + story.addCustomFields(tiddlerElem,customFields); + var text = this.getAttribute("newText"); + if(typeof text == "string") + story.getTiddlerField(title,"text").value = text.format([title]); + for(var t=0;t<tags.length;t++) + story.setTiddlerTag(title,tags[t],+1); + story.focusTiddler(title,focus); + return false; +}; + +config.macros.newTiddler.handler = function(place,macroName,params,wikifier,paramString,tiddler) +{ + if(!readOnly) { + params = paramString.parseParams("anon",null,true,false,false); + var title = params[1] && params[1].name == "anon" ? params[1].value : this.title; + title = getParam(params,"title",title); + this.createNewTiddlerButton(place,title,params,this.label,this.prompt,this.accessKey,"title",false); + } +}; + +config.macros.newJournal.handler = function(place,macroName,params,wikifier,paramString,tiddler) +{ + if(!readOnly) { + params = paramString.parseParams("anon",null,true,false,false); + var title = params[1] && params[1].name == "anon" ? params[1].value : config.macros.timeline.dateFormat; + title = getParam(params,"title",title); + config.macros.newTiddler.createNewTiddlerButton(place,title,params,this.label,this.prompt,this.accessKey,"text",true); + } +}; + +//-- +//-- Search macro +//-- + +config.macros.search.handler = function(place,macroName,params) +{ + var searchTimeout = null; + var btn = createTiddlyButton(place,this.label,this.prompt,this.onClick); + var txt = createTiddlyElement(place,"input",null,"txtOptionInput"); + if(params[0]) + txt.value = params[0]; + txt.onkeyup = this.onKeyPress; + txt.onfocus = this.onFocus; + txt.setAttribute("size",this.sizeTextbox); + txt.setAttribute("accessKey",this.accessKey); + txt.setAttribute("autocomplete","off"); + txt.setAttribute("lastSearchText",""); + if(config.browser.isSafari) { + txt.setAttribute("type","search"); + txt.setAttribute("results","5"); + } else { + txt.setAttribute("type","text"); + } +}; + +// Global because there's only ever one outstanding incremental search timer +config.macros.search.timeout = null; + +config.macros.search.doSearch = function(txt) +{ + if(txt.value.length > 0) { + story.search(txt.value,config.options.chkCaseSensitiveSearch,config.options.chkRegExpSearch); + txt.setAttribute("lastSearchText",txt.value); + } +}; + +config.macros.search.onClick = function(e) +{ + config.macros.search.doSearch(this.nextSibling); + return false; +}; + +config.macros.search.onKeyPress = function(ev) +{ + var e = ev ? ev : window.event; + switch(e.keyCode) { + case 13: // Ctrl-Enter + case 10: // Ctrl-Enter on IE PC + config.macros.search.doSearch(this); + break; + case 27: // Escape + this.value = ""; + clearMessage(); + break; + } + if(this.value.length > 2) { + if(this.value != this.getAttribute("lastSearchText")) { + if(config.macros.search.timeout) + clearTimeout(config.macros.search.timeout); + var txt = this; + config.macros.search.timeout = setTimeout(function() {config.macros.search.doSearch(txt);},500); + } + } else { + if(config.macros.search.timeout) + clearTimeout(config.macros.search.timeout); + } +}; + +config.macros.search.onFocus = function(e) +{ + this.select(); +}; + +//-- +//-- Tabs macro +//-- + +config.macros.tabs.handler = function(place,macroName,params) +{ + var cookie = params[0]; + var numTabs = (params.length-1)/3; + var wrapper = createTiddlyElement(null,"div",null,cookie); + var tabset = createTiddlyElement(wrapper,"div",null,"tabset"); + tabset.setAttribute("cookie",cookie); + var validTab = false; + for(var t=0; t<numTabs; t++) { + var label = params[t*3+1]; + var prompt = params[t*3+2]; + var content = params[t*3+3]; + var tab = createTiddlyButton(tabset,label,prompt,this.onClickTab,"tab tabUnselected"); + tab.setAttribute("tab",label); + tab.setAttribute("content",content); + tab.title = prompt; + if(config.options[cookie] == label) + validTab = true; + } + if(!validTab) + config.options[cookie] = params[1]; + place.appendChild(wrapper); + this.switchTab(tabset,config.options[cookie]); +}; + +config.macros.tabs.onClickTab = function(e) +{ + config.macros.tabs.switchTab(this.parentNode,this.getAttribute("tab")); + return false; +}; + +config.macros.tabs.switchTab = function(tabset,tab) +{ + var cookie = tabset.getAttribute("cookie"); + var theTab = null; + var nodes = tabset.childNodes; + for(var t=0; t<nodes.length; t++) { + if(nodes[t].getAttribute && nodes[t].getAttribute("tab") == tab) { + theTab = nodes[t]; + theTab.className = "tab tabSelected"; + } else { + nodes[t].className = "tab tabUnselected"; + } + } + if(theTab) { + if(tabset.nextSibling && tabset.nextSibling.className == "tabContents") + removeNode(tabset.nextSibling); + var tabContent = createTiddlyElement(null,"div",null,"tabContents"); + tabset.parentNode.insertBefore(tabContent,tabset.nextSibling); + var contentTitle = theTab.getAttribute("content"); + wikify(store.getTiddlerText(contentTitle),tabContent,null,store.getTiddler(contentTitle)); + if(cookie) { + config.options[cookie] = tab; + saveOptionCookie(cookie); + } + } +}; + +//-- +//-- Tiddler toolbar +//-- + +// Create a toolbar command button +config.macros.toolbar.createCommand = function(place,commandName,tiddler,theClass) +{ + if(typeof commandName != "string") { + var c = null; + for(var t in config.commands) { + if(config.commands[t] == commandName) + c = t; + } + commandName = c; + } + if((tiddler instanceof Tiddler) && (typeof commandName == "string")) { + var command = config.commands[commandName]; + if(command.isEnabled ? command.isEnabled(tiddler) : this.isCommandEnabled(command,tiddler)) { + var text = command.getText ? command.getText(tiddler) : this.getCommandText(command,tiddler); + var tooltip = command.getTooltip ? command.getTooltip(tiddler) : this.getCommandTooltip(command,tiddler); + var cmd; + switch(command.type) { + case "popup": + cmd = this.onClickPopup; + break; + case "command": + default: + cmd = this.onClickCommand; + break; + } + var btn = createTiddlyButton(null,text,tooltip,cmd); + btn.setAttribute("commandName",commandName); + btn.setAttribute("tiddler",tiddler.title); + if(theClass) + addClass(btn,theClass); + place.appendChild(btn); + } + } +}; + +config.macros.toolbar.isCommandEnabled = function(command,tiddler) +{ + var title = tiddler.title; + var ro = tiddler.isReadOnly(); + var shadow = store.isShadowTiddler(title) && !store.tiddlerExists(title); + return (!ro || (ro && !command.hideReadOnly)) && !(shadow && command.hideShadow); +}; + +config.macros.toolbar.getCommandText = function(command,tiddler) +{ + return tiddler.isReadOnly() && command.readOnlyText ? command.readOnlyText : command.text; +}; + +config.macros.toolbar.getCommandTooltip = function(command,tiddler) +{ + return tiddler.isReadOnly() && command.readOnlyTooltip ? command.readOnlyTooltip : command.tooltip; +}; + +config.macros.toolbar.onClickCommand = function(ev) +{ + var e = ev ? ev : window.event; + e.cancelBubble = true; + if (e.stopPropagation) e.stopPropagation(); + var command = config.commands[this.getAttribute("commandName")]; + return command.handler(e,this,this.getAttribute("tiddler")); +}; + +config.macros.toolbar.onClickPopup = function(ev) +{ + var e = ev ? ev : window.event; + e.cancelBubble = true; + if (e.stopPropagation) e.stopPropagation(); + var popup = Popup.create(this); + var command = config.commands[this.getAttribute("commandName")]; + var title = this.getAttribute("tiddler"); + var tiddler = store.fetchTiddler(title); + popup.setAttribute("tiddler",title); + command.handlePopup(popup,title); + Popup.show(); + return false; +}; + +// Invoke the first command encountered from a given place that is tagged with a specified class +config.macros.toolbar.invokeCommand = function(place,theClass,event) +{ + var children = place.getElementsByTagName("a"); + for(var t=0; t<children.length; t++) { + var c = children[t]; + if(hasClass(c,theClass) && c.getAttribute && c.getAttribute("commandName")) { + if(c.onclick instanceof Function) + c.onclick.call(c,event); + break; + } + } +}; + +config.macros.toolbar.onClickMore = function(ev) +{ + var e = this.nextSibling; + e.style.display = "inline"; + removeNode(this); + return false; +}; + +config.macros.toolbar.handler = function(place,macroName,params,wikifier,paramString,tiddler) +{ + for(var t=0; t<params.length; t++) { + var c = params[t]; + switch(c) { + case '>': + var btn = createTiddlyButton(place,this.moreLabel,this.morePrompt,config.macros.toolbar.onClickMore); + addClass(btn,"moreCommand"); + var e = createTiddlyElement(place,"span",null,"moreCommand"); + e.style.display = "none"; + place = e; + break; + default: + var theClass = ""; + switch(c.substr(0,1)) { + case "+": + theClass = "defaultCommand"; + c = c.substr(1); + break; + case "-": + theClass = "cancelCommand"; + c = c.substr(1); + break; + } + if(c in config.commands) + this.createCommand(place,c,tiddler,theClass); + break; + } + } +}; + +//-- +//-- Menu and toolbar commands +//-- + +config.commands.closeTiddler.handler = function(event,src,title) +{ + story.closeTiddler(title,true); + return false; +}; + +config.commands.closeOthers.handler = function(event,src,title) +{ + story.closeAllTiddlers(title); + return false; +}; + +config.commands.editTiddler.handler = function(event,src,title) +{ + clearMessage(); + var tiddlerElem = document.getElementById(story.idPrefix + title); + var fields = tiddlerElem.getAttribute("tiddlyFields"); + story.displayTiddler(null,title,DEFAULT_EDIT_TEMPLATE,false,null,fields); + story.focusTiddler(title,"text"); + return false; +}; + +config.commands.saveTiddler.handler = function(event,src,title) +{ + var newTitle = story.saveTiddler(title,event.shiftKey); + if(newTitle) + story.displayTiddler(null,newTitle); + return false; +}; + +config.commands.cancelTiddler.handler = function(event,src,title) +{ + if(story.hasChanges(title) && !readOnly) { + if(!confirm(this.warning.format([title]))) + return false; + } + story.setDirty(title,false); + story.displayTiddler(null,title); + return false; +}; + +config.commands.deleteTiddler.handler = function(event,src,title) +{ + var deleteIt = true; + if (config.options.chkConfirmDelete) + deleteIt = confirm(this.warning.format([title])); + if (deleteIt) { + store.removeTiddler(title); + story.closeTiddler(title,true); + autoSaveChanges(); + } + return false; +}; + +config.commands.permalink.handler = function(event,src,title) +{ + var t = encodeURIComponent(String.encodeTiddlyLink(title)); + if(window.location.hash != t) + window.location.hash = t; + return false; +}; + +config.commands.references.handlePopup = function(popup,title) +{ + var references = store.getReferringTiddlers(title); + var c = false; + for(var r=0; r<references.length; r++) { + if(references[r].title != title && !references[r].isTagged("excludeLists")) { + createTiddlyLink(createTiddlyElement(popup,"li"),references[r].title,true); + c = true; + } + } + if(!c) + createTiddlyText(createTiddlyElement(popup,"li",null,"disabled"),this.popupNone); +}; + +config.commands.jump.handlePopup = function(popup,title) +{ + story.forEachTiddler(function(title,element) { + createTiddlyLink(createTiddlyElement(popup,"li"),title,true,null,false,null,true); + }); +}; + +config.commands.syncing.handlePopup = function(popup,title) +{ + var tiddler = store.fetchTiddler(title); + if(!tiddler) + return; + var serverType = tiddler.getServerType(); + var serverHost = tiddler.fields['server.host']; + var serverWorkspace = tiddler.fields['server.workspace']; + if(!serverWorkspace) + serverWorkspace = ""; + if(serverType) { + var e = createTiddlyElement(popup,"li",null,"popupMessage"); + e.innerHTML = config.commands.syncing.currentlySyncing.format([serverType,serverHost,serverWorkspace]); + } else { + createTiddlyElement(popup,"li",null,"popupMessage",config.commands.syncing.notCurrentlySyncing); + } + if(serverType) { + createTiddlyElement(createTiddlyElement(popup,"li",null,"listBreak"),"div"); + var btn = createTiddlyButton(createTiddlyElement(popup,"li"),this.captionUnSync,null,config.commands.syncing.onChooseServer); + btn.setAttribute("tiddler",title); + btn.setAttribute("server.type",""); + } + createTiddlyElement(createTiddlyElement(popup,"li",null,"listBreak"),"div"); + createTiddlyElement(popup,"li",null,"popupMessage",config.commands.syncing.chooseServer); + var feeds = store.getTaggedTiddlers("systemServer","title"); + for(var t=0; t<feeds.length; t++) { + var f = feeds[t]; + var feedServerType = store.getTiddlerSlice(f.title,"Type"); + if(!feedServerType) + feedServerType = "file"; + var feedServerHost = store.getTiddlerSlice(f.title,"URL"); + if(!feedServerHost) + feedServerHost = ""; + var feedServerWorkspace = store.getTiddlerSlice(f.title,"Workspace"); + if(!feedServerWorkspace) + feedServerWorkspace = ""; + var caption = f.title; + if(serverType == feedServerType && serverHost == feedServerHost && serverWorkspace == feedServerWorkspace) { + caption = config.commands.syncing.currServerMarker + caption; + } else { + caption = config.commands.syncing.notCurrServerMarker + caption; + } + btn = createTiddlyButton(createTiddlyElement(popup,"li"),caption,null,config.commands.syncing.onChooseServer); + btn.setAttribute("tiddler",title); + btn.setAttribute("server.type",feedServerType); + btn.setAttribute("server.host",feedServerHost); + btn.setAttribute("server.workspace",feedServerWorkspace); + } +}; + +config.commands.syncing.onChooseServer = function(e) +{ + var tiddler = this.getAttribute("tiddler"); + var serverType = this.getAttribute("server.type"); + if(serverType) { + store.addTiddlerFields(tiddler,{ + 'server.type': serverType, + 'server.host': this.getAttribute("server.host"), + 'server.workspace': this.getAttribute("server.workspace") + }); + } else { + store.setValue(tiddler,'server',null); + } + return false; +}; + +config.commands.fields.handlePopup = function(popup,title) +{ + var tiddler = store.fetchTiddler(title); + if(!tiddler) + return; + var fields = {}; + store.forEachField(tiddler,function(tiddler,fieldName,value) {fields[fieldName] = value;},true); + var items = []; + for(var t in fields) { + items.push({field: t,value: fields[t]}); + } + items.sort(function(a,b) {return a.field < b.field ? -1 : (a.field == b.field ? 0 : +1);}); + if(items.length > 0) + ListView.create(popup,items,this.listViewTemplate); + else + createTiddlyElement(popup,"div",null,null,this.emptyText); +}; + +//-- +//-- Tiddler() object +//-- + +function Tiddler(title) +{ + this.title = title; + this.text = null; + this.modifier = null; + this.modified = new Date(); + this.created = new Date(); + this.links = []; + this.linksUpdated = false; + this.tags = []; + this.fields = {}; + return this; +} + +Tiddler.prototype.getLinks = function() +{ + if(this.linksUpdated==false) + this.changed(); + return this.links; +}; + +// Returns the fields that are inherited in string field:"value" field2:"value2" format +Tiddler.prototype.getInheritedFields = function() +{ + var f = {}; + for(i in this.fields) { + if(i=="server.host" || i=="server.workspace" || i=="wikiformat"|| i=="server.type") { + f[i] = this.fields[i]; + } + } + return String.encodeHashMap(f); +}; + +// Increment the changeCount of a tiddler +Tiddler.prototype.incChangeCount = function() +{ + var c = this.fields['changecount']; + c = c ? parseInt(c) : 0; + this.fields['changecount'] = String(c+1); +}; + +// Clear the changeCount of a tiddler +Tiddler.prototype.clearChangeCount = function() +{ + if(this.fields['changecount']) { + delete this.fields['changecount']; + } +}; + +// Returns true if the tiddler has been updated since the tiddler was created or downloaded +Tiddler.prototype.isTouched = function() +{ + var changeCount = this.fields['changecount']; + if(changeCount === undefined) + changeCount = 0; + return changeCount > 0; +}; + +// Return the tiddler as an RSS item +Tiddler.prototype.toRssItem = function(uri) +{ + var s = []; + s.push("<title" + ">" + this.title.htmlEncode() + "</title" + ">"); + s.push("<description>" + wikifyStatic(this.text,null,this).htmlEncode() + "</description>"); + for(var t=0; t<this.tags.length; t++) + s.push("<category>" + this.tags[t] + "</category>"); + s.push("<link>" + uri + "#" + encodeURIComponent(String.encodeTiddlyLink(this.title)) + "</link>"); + s.push("<pubDate>" + this.modified.toGMTString() + "</pubDate>"); + return s.join("\n"); +}; + +// Format the text for storage in an RSS item +Tiddler.prototype.saveToRss = function(uri) +{ + return "<item>\n" + this.toRssItem(uri) + "\n</item>"; +}; + +// Change the text and other attributes of a tiddler +Tiddler.prototype.set = function(title,text,modifier,modified,tags,created,fields) +{ + this.assign(title,text,modifier,modified,tags,created,fields); + this.changed(); + return this; +}; + +// Change the text and other attributes of a tiddler without triggered a tiddler.changed() call +Tiddler.prototype.assign = function(title,text,modifier,modified,tags,created,fields) +{ + if(title != undefined) + this.title = title; + if(text != undefined) + this.text = text; + if(modifier != undefined) + this.modifier = modifier; + if(modified != undefined) + this.modified = modified; + if(created != undefined) + this.created = created; + if(fields != undefined) + this.fields = fields; + if(tags != undefined) + this.tags = (typeof tags == "string") ? tags.readBracketedList() : tags; + else if(this.tags == undefined) + this.tags = []; + return this; +}; + +// Get the tags for a tiddler as a string (space delimited, using [[brackets]] for tags containing spaces) +Tiddler.prototype.getTags = function() +{ + return String.encodeTiddlyLinkList(this.tags); +}; + +// Test if a tiddler carries a tag +Tiddler.prototype.isTagged = function(tag) +{ + return this.tags.indexOf(tag) != -1; +}; + +// Static method to convert "\n" to newlines, "\s" to "\" +Tiddler.unescapeLineBreaks = function(text) +{ + return text ? text.unescapeLineBreaks() : ""; +}; + +// Convert newlines to "\n", "\" to "\s" +Tiddler.prototype.escapeLineBreaks = function() +{ + return this.text.escapeLineBreaks(); +}; + +// Updates the secondary information (like links[] array) after a change to a tiddler +Tiddler.prototype.changed = function() +{ + this.links = []; + var t = this.autoLinkWikiWords() ? 0 : 1; + var tiddlerLinkRegExp = t==0 ? config.textPrimitives.tiddlerAnyLinkRegExp : config.textPrimitives.tiddlerForcedLinkRegExp; + tiddlerLinkRegExp.lastIndex = 0; + var formatMatch = tiddlerLinkRegExp.exec(this.text); + while(formatMatch) { + var lastIndex = tiddlerLinkRegExp.lastIndex; + if(t==0 && formatMatch[1] && formatMatch[1] != this.title) { + // wikiWordLink + if(formatMatch.index > 0) { + var preRegExp = new RegExp(config.textPrimitives.unWikiLink+"|"+config.textPrimitives.anyLetter,"mg"); + preRegExp.lastIndex = formatMatch.index-1; + var preMatch = preRegExp.exec(this.text); + if(preMatch.index != formatMatch.index-1) + this.links.pushUnique(formatMatch[1]); + } else { + this.links.pushUnique(formatMatch[1]); + } + } + else if(formatMatch[2-t] && !config.formatterHelpers.isExternalLink(formatMatch[3-t])) // titledBrackettedLink + this.links.pushUnique(formatMatch[3-t]); + else if(formatMatch[4-t] && formatMatch[4-t] != this.title) // brackettedLink + this.links.pushUnique(formatMatch[4-t]); + tiddlerLinkRegExp.lastIndex = lastIndex; + formatMatch = tiddlerLinkRegExp.exec(this.text); + } + this.linksUpdated = true; +}; + +Tiddler.prototype.getSubtitle = function() +{ + var modifier = this.modifier; + if(!modifier) + modifier = config.messages.subtitleUnknown; + var modified = this.modified; + if(modified) + modified = modified.toLocaleString(); + else + modified = config.messages.subtitleUnknown; + return config.messages.tiddlerLinkTooltip.format([this.title,modifier,modified]); +}; + +Tiddler.prototype.isReadOnly = function() +{ + return readOnly; +}; + +Tiddler.prototype.autoLinkWikiWords = function() +{ + return !(this.isTagged("systemConfig") || this.isTagged("excludeMissing")); +}; + +Tiddler.prototype.generateFingerprint = function() +{ + return "0x" + Crypto.hexSha1Str(this.text); +}; + +Tiddler.prototype.getServerType = function() +{ + var serverType = null; + if(this.fields && this.fields['server.type']) + serverType = this.fields['server.type']; + if(!serverType) + serverType = this.fields['wikiformat']; + if(serverType && !config.adaptors[serverType]) + serverType = null; + return serverType; +}; + +Tiddler.prototype.getAdaptor = function() +{ + var serverType = this.getServerType(); + return serverType ? new config.adaptors[serverType] : null; +}; + +//-- +//-- TiddlyWiki() object contains Tiddler()s +//-- + +function TiddlyWiki() +{ + var tiddlers = {}; // Hashmap by name of tiddlers + this.tiddlersUpdated = false; + this.namedNotifications = []; // Array of {name:,notify:} of notification functions + this.notificationLevel = 0; + this.slices = {}; // map tiddlerName->(map sliceName->sliceValue). Lazy. + this.clear = function() { + tiddlers = {}; + this.setDirty(false); + }; + this.fetchTiddler = function(title) { + var t = tiddlers[title]; + return t instanceof Tiddler ? t : null; + }; + this.deleteTiddler = function(title) { + delete this.slices[title]; + delete tiddlers[title]; + }; + this.addTiddler = function(tiddler) { + delete this.slices[tiddler.title]; + tiddlers[tiddler.title] = tiddler; + }; + this.forEachTiddler = function(callback) { + for(var t in tiddlers) { + var tiddler = tiddlers[t]; + if(tiddler instanceof Tiddler) + callback.call(this,t,tiddler); + } + }; +} + +TiddlyWiki.prototype.setDirty = function(dirty) +{ + this.dirty = dirty; +}; + +TiddlyWiki.prototype.isDirty = function() +{ + return this.dirty; +}; + +TiddlyWiki.prototype.suspendNotifications = function() +{ + this.notificationLevel--; +}; + +TiddlyWiki.prototype.resumeNotifications = function() +{ + this.notificationLevel++; +}; + +// Invoke the notification handlers for a particular tiddler +TiddlyWiki.prototype.notify = function(title,doBlanket) +{ + if(!this.notificationLevel) { + for(var t=0; t<this.namedNotifications.length; t++) { + var n = this.namedNotifications[t]; + if((n.name == null && doBlanket) || (n.name == title)) + n.notify(title); + } + } +}; + +// Invoke the notification handlers for all tiddlers +TiddlyWiki.prototype.notifyAll = function() +{ + if(!this.notificationLevel) { + for(var t=0; t<this.namedNotifications.length; t++) { + var n = this.namedNotifications[t]; + if(n.name) + n.notify(n.name); + } + } +}; + +// Add a notification handler to a tiddler +TiddlyWiki.prototype.addNotification = function(title,fn) +{ + for(var i=0; i<this.namedNotifications.length; i++) { + if((this.namedNotifications[i].name == title) && (this.namedNotifications[i].notify == fn)) + return this; + } + this.namedNotifications.push({name: title, notify: fn}); + return this; +}; + +TiddlyWiki.prototype.removeTiddler = function(title) +{ + var tiddler = this.fetchTiddler(title); + if(tiddler) { + this.deleteTiddler(title); + this.notify(title,true); + this.setDirty(true); + } +}; + +TiddlyWiki.prototype.tiddlerExists = function(title) +{ + var t = this.fetchTiddler(title); + return t != undefined; +}; + +TiddlyWiki.prototype.isShadowTiddler = function(title) +{ + return typeof config.shadowTiddlers[title] == "string"; +}; + +TiddlyWiki.prototype.getTiddler = function(title) +{ + var t = this.fetchTiddler(title); + if(t != undefined) + return t; + else + return null; +}; + +TiddlyWiki.prototype.getTiddlerText = function(title,defaultText) +{ + if(!title) + return defaultText; + var pos = title.indexOf(config.textPrimitives.sectionSeparator); + var section = null; + if(pos != -1) { + section = title.substr(pos + config.textPrimitives.sectionSeparator.length); + title = title.substr(0,pos); + } + pos = title.indexOf(config.textPrimitives.sliceSeparator); + if(pos != -1) { + var slice = this.getTiddlerSlice(title.substr(0,pos),title.substr(pos + config.textPrimitives.sliceSeparator.length)); + if(slice) + return slice; + } + var tiddler = this.fetchTiddler(title); + if(tiddler) { + if(!section) + return tiddler.text; + var re = new RegExp("(^!{1,6}" + section.escapeRegExp() + ")","mg"); + re.lastIndex = 0; + var match = re.exec(tiddler.text); + if(match) { + var t = tiddler.text.substr(match.index+match[1].length); + var re2 = /^!/mg; + re2.lastIndex = 0; + match = re2.exec(t); //# search for the next heading + if(match) + t = t.substr(0,match.index); + return t; + } + return defaultText; + } + if(this.isShadowTiddler(title)) + return config.shadowTiddlers[title]; + if(defaultText != undefined) + return defaultText; + return null; +}; + +TiddlyWiki.prototype.slicesRE = /(?:[\'\/]*~?([\.\w]+)[\'\/]*\:[\'\/]*\s*(.*?)\s*$)|(?:\|[\'\/]*~?([\.\w]+)\:?[\'\/]*\|\s*(.*?)\s*\|)/gm; + +// @internal +TiddlyWiki.prototype.calcAllSlices = function(title) +{ + var slices = {}; + var text = this.getTiddlerText(title,""); + this.slicesRE.lastIndex = 0; + do { + var m = this.slicesRE.exec(text); + if(m) { + if(m[1]) + slices[m[1]] = m[2]; + else + slices[m[3]] = m[4]; + } + } while(m); + return slices; +}; + +// Returns the slice of text of the given name +TiddlyWiki.prototype.getTiddlerSlice = function(title,sliceName) +{ + var slices = this.slices[title]; + if(!slices) { + slices = this.calcAllSlices(title); + this.slices[title] = slices; + } + return slices[sliceName]; +}; + +// Build an hashmap of the specified named slices of a tiddler +TiddlyWiki.prototype.getTiddlerSlices = function(title,sliceNames) +{ + var r = {}; + for(var t=0; t<sliceNames.length; t++) { + var slice = this.getTiddlerSlice(title,sliceNames[t]); + if(slice) + r[sliceNames[t]] = slice; + } + return r; +}; + +TiddlyWiki.prototype.getRecursiveTiddlerText = function(title,defaultText,depth) +{ + var bracketRegExp = new RegExp("(?:\\[\\[([^\\]]+)\\]\\])","mg"); + var text = this.getTiddlerText(title,null); + if(text == null) + return defaultText; + var textOut = []; + var lastPos = 0; + do { + var match = bracketRegExp.exec(text); + if(match) { + textOut.push(text.substr(lastPos,match.index-lastPos)); + if(match[1]) { + if(depth <= 0) + textOut.push(match[1]); + else + textOut.push(this.getRecursiveTiddlerText(match[1],"[[" + match[1] + "]]",depth-1)); + } + lastPos = match.index + match[0].length; + } else { + textOut.push(text.substr(lastPos)); + } + } while(match); + return textOut.join(""); +}; + +TiddlyWiki.prototype.setTiddlerTag = function(title,status,tag) +{ + var tiddler = this.fetchTiddler(title); + if(tiddler) { + var t = tiddler.tags.indexOf(tag); + if(t != -1) + tiddler.tags.splice(t,1); + if(status) + tiddler.tags.push(tag); + tiddler.changed(); + this.incChangeCount(title); + this.notify(title,true); + this.setDirty(true); + } +}; + +TiddlyWiki.prototype.addTiddlerFields = function(title,fields) +{ + var tiddler = this.fetchTiddler(title); + if(!tiddler) + return; + merge(tiddler.fields,fields); + tiddler.changed(); + this.incChangeCount(title); + this.notify(title,true); + this.setDirty(true); +}; + +TiddlyWiki.prototype.saveTiddler = function(title,newTitle,newBody,modifier,modified,tags,fields,clearChangeCount,created) +{ + var tiddler = this.fetchTiddler(title); + if(tiddler) { + created = created ? created : tiddler.created; // Preserve created date + this.deleteTiddler(title); + } else { + created = created ? created : modified; + tiddler = new Tiddler(); + } + tiddler.set(newTitle,newBody,modifier,modified,tags,created,fields); + this.addTiddler(tiddler); + if(clearChangeCount) + tiddler.clearChangeCount(); + else + tiddler.incChangeCount(); + if(title != newTitle) + this.notify(title,true); + this.notify(newTitle,true); + this.setDirty(true); + return tiddler; +}; + +// Reset the sync status of a freshly synced tiddler +TiddlyWiki.prototype.resetTiddler = function(title) +{ + var tiddler = this.fetchTiddler(title); + if(tiddler) { + tiddler.clearChangeCount(); + this.notify(title,true); + this.setDirty(true); + } +}; + +TiddlyWiki.prototype.incChangeCount = function(title) +{ + var tiddler = this.fetchTiddler(title); + if(tiddler) + tiddler.incChangeCount(); +}; + +TiddlyWiki.prototype.createTiddler = function(title) +{ + var tiddler = this.fetchTiddler(title); + if(!tiddler) { + tiddler = new Tiddler(); + tiddler.title = title; + this.addTiddler(tiddler); + this.setDirty(true); + } + return tiddler; +}; + +// Load contents of a TiddlyWiki from an HTML DIV +TiddlyWiki.prototype.loadFromDiv = function(src,idPrefix,noUpdate) +{ + this.idPrefix = idPrefix; + var storeElem = (typeof src == "string") ? document.getElementById(src) : src; + if(!storeElem) + return; + var tiddlers = this.getLoader().loadTiddlers(this,storeElem.childNodes); + this.setDirty(false); + if(!noUpdate) { + for(var i = 0;i<tiddlers.length; i++) + tiddlers[i].changed(); + } +}; + +// Load contents of a TiddlyWiki from a string +// Returns null if there's an error +TiddlyWiki.prototype.importTiddlyWiki = function(text) +{ + var posDiv = locateStoreArea(text); + if(!posDiv) + return null; + var content = "<" + "html><" + "body>" + text.substring(posDiv[0],posDiv[1] + endSaveArea.length) + "<" + "/body><" + "/html>"; + // Create the iframe + var iframe = document.createElement("iframe"); + iframe.style.display = "none"; + document.body.appendChild(iframe); + var doc = iframe.document; + if(iframe.contentDocument) + doc = iframe.contentDocument; // For NS6 + else if(iframe.contentWindow) + doc = iframe.contentWindow.document; // For IE5.5 and IE6 + // Put the content in the iframe + doc.open(); + doc.writeln(content); + doc.close(); + // Load the content into a TiddlyWiki() object + var storeArea = doc.getElementById("storeArea"); + this.loadFromDiv(storeArea,"store"); + // Get rid of the iframe + iframe.parentNode.removeChild(iframe); + return this; +}; + +TiddlyWiki.prototype.updateTiddlers = function() +{ + this.tiddlersUpdated = true; + this.forEachTiddler(function(title,tiddler) { + tiddler.changed(); + }); +}; + +// Return all tiddlers formatted as an HTML string +TiddlyWiki.prototype.allTiddlersAsHtml = function() +{ + return store.getSaver().externalize(store); +}; + +// Return an array of tiddlers matching a search regular expression +TiddlyWiki.prototype.search = function(searchRegExp,sortField,excludeTag,match) +{ + var candidates = this.reverseLookup("tags",excludeTag,!!match); + var results = []; + for(var t=0; t<candidates.length; t++) { + if((candidates[t].title.search(searchRegExp) != -1) || (candidates[t].text.search(searchRegExp) != -1)) + results.push(candidates[t]); + } + if(!sortField) + sortField = "title"; + results.sort(function(a,b) {return a[sortField] < b[sortField] ? -1 : (a[sortField] == b[sortField] ? 0 : +1);}); + return results; +}; + +// Returns a list of all tags in use +// excludeTag - if present, excludes tags that are themselves tagged with excludeTag +// Returns an array of arrays where [tag][0] is the name of the tag and [tag][1] is the number of occurances +TiddlyWiki.prototype.getTags = function(excludeTag) +{ + var results = []; + this.forEachTiddler(function(title,tiddler) { + for(var g=0; g<tiddler.tags.length; g++) { + var tag = tiddler.tags[g]; + var n = true; + for(var c=0; c<results.length; c++) { + if(results[c][0] == tag) { + n = false; + results[c][1]++; + } + } + if(n && excludeTag) { + var t = store.fetchTiddler(tag); + if(t && t.isTagged(excludeTag)) + n = false; + } + if(n) + results.push([tag,1]); + } + }); + results.sort(function(a,b) {return a[0].toLowerCase() < b[0].toLowerCase() ? -1 : (a[0].toLowerCase() == b[0].toLowerCase() ? 0 : +1);}); + return results; +}; + +// Return an array of the tiddlers that are tagged with a given tag +TiddlyWiki.prototype.getTaggedTiddlers = function(tag,sortField) +{ + return this.reverseLookup("tags",tag,true,sortField); +}; + +// Return an array of the tiddlers that link to a given tiddler +TiddlyWiki.prototype.getReferringTiddlers = function(title,unusedParameter,sortField) +{ + if(!this.tiddlersUpdated) + this.updateTiddlers(); + return this.reverseLookup("links",title,true,sortField); +}; + +// Return an array of the tiddlers that do or do not have a specified entry in the specified storage array (ie, "links" or "tags") +// lookupMatch == true to match tiddlers, false to exclude tiddlers +TiddlyWiki.prototype.reverseLookup = function(lookupField,lookupValue,lookupMatch,sortField) +{ + var results = []; + this.forEachTiddler(function(title,tiddler) { + var f = !lookupMatch; + for(var lookup=0; lookup<tiddler[lookupField].length; lookup++) { + if(tiddler[lookupField][lookup] == lookupValue) + f = lookupMatch; + } + if(f) + results.push(tiddler); + }); + if(!sortField) + sortField = "title"; + results.sort(function(a,b) {return a[sortField] < b[sortField] ? -1 : (a[sortField] == b[sortField] ? 0 : +1);}); + return results; +}; + +// Return the tiddlers as a sorted array +TiddlyWiki.prototype.getTiddlers = function(field,excludeTag) +{ + var results = []; + this.forEachTiddler(function(title,tiddler) { + if(excludeTag == undefined || !tiddler.isTagged(excludeTag)) + results.push(tiddler); + }); + if(field) + results.sort(function(a,b) {return a[field] < b[field] ? -1 : (a[field] == b[field] ? 0 : +1);}); + return results; +}; + +// Return array of names of tiddlers that are referred to but not defined +TiddlyWiki.prototype.getMissingLinks = function(sortField) +{ + if(!this.tiddlersUpdated) + this.updateTiddlers(); + var results = []; + this.forEachTiddler(function (title,tiddler) { + if(tiddler.isTagged("excludeMissing") || tiddler.isTagged("systemConfig")) + return; + for(var n=0; n<tiddler.links.length;n++) { + var link = tiddler.links[n]; + if(this.fetchTiddler(link) == null && !this.isShadowTiddler(link)) + results.pushUnique(link); + } + }); + results.sort(); + return results; +}; + +// Return an array of names of tiddlers that are defined but not referred to +TiddlyWiki.prototype.getOrphans = function() +{ + var results = []; + this.forEachTiddler(function (title,tiddler) { + if(this.getReferringTiddlers(title).length == 0 && !tiddler.isTagged("excludeLists")) + results.push(title); + }); + results.sort(); + return results; +}; + +// Return an array of names of all the shadow tiddlers +TiddlyWiki.prototype.getShadowed = function() +{ + var results = []; + for(var t in config.shadowTiddlers) { + if(typeof config.shadowTiddlers[t] == "string") + results.push(t); + } + results.sort(); + return results; +}; + +// Return an array of tiddlers that have been touched since they were downloaded or created +TiddlyWiki.prototype.getTouched = function() +{ + var results = []; + this.forEachTiddler(function(title,tiddler) { + if(tiddler.isTouched()) + results.push(tiddler); + }); + results.sort(); + return results; +}; + +// Resolves a Tiddler reference or tiddler title into a Tiddler object, or null if it doesn't exist +TiddlyWiki.prototype.resolveTiddler = function(tiddler) +{ + var t = (typeof tiddler == 'string') ? this.getTiddler(tiddler) : tiddler; + return t instanceof Tiddler ? t : null; +}; + +TiddlyWiki.prototype.getLoader = function() +{ + if(!this.loader) + this.loader = new TW21Loader(); + return this.loader; +}; + +TiddlyWiki.prototype.getSaver = function() +{ + if(!this.saver) + this.saver = new TW21Saver(); + return this.saver; +}; + +// Filter a list of tiddlers +TiddlyWiki.prototype.filterTiddlers = function(filter) +{ + var results = []; + if(filter) { + var tiddler; + var re = /([^ \[\]]+)|(?:\[([ \w]+)\[([^\]]+)\]\])|(?:\[\[([^\]]+)\]\])/mg; + var match = re.exec(filter); + while(match) { + if(match[1] || match[4]) { + var title = match[1] ? match[1] : match[4]; + tiddler = this.fetchTiddler(title); + if(tiddler) { + results.pushUnique(tiddler); + } else if(store.isShadowTiddler(title)) { + tiddler = new Tiddler(); + tiddler.set(title,store.getTiddlerText(title)); + results.pushUnique(tiddler); + } + } else if(match[2]) { + switch(match[2]) { + case "tag": + this.forEachTiddler(function(title,tiddler) { + if(tiddler.isTagged(match[3])) + results.pushUnique(tiddler); + }); + break; + case "sort": + results = this.sortTiddlers(results,match[3]); + break; + } + } + match = re.exec(filter); + } + } + return results; +}; + +// Sort a list of tiddlers +TiddlyWiki.prototype.sortTiddlers = function(tiddlers,field) +{ + var asc = +1; + switch(field.substr(0,1)) { + case "-": + asc = -1; + // Note: this fall-through is intentional + case "+": + field = field.substr(1); + break; + } + if(TiddlyWiki.standardFieldAccess[field]) + tiddlers.sort(function(a,b) {return a[field] < b[field] ? -asc : (a[field] == b[field] ? 0 : asc);}); + else + tiddlers.sort(function(a,b) {return a.fields[field] < b.fields[field] ? -asc : (a.fields[field] == b.fields[field] ? 0 : +asc);}); + return tiddlers; +}; +// Returns true if path is a valid field name (path), +// i.e. a sequence of identifiers, separated by '.' +TiddlyWiki.isValidFieldName = function(name) +{ + var match = /[a-zA-Z_]\w*(\.[a-zA-Z_]\w*)*/.exec(name); + return match && (match[0] == name); +}; + +// Throws an exception when name is not a valid field name. +TiddlyWiki.checkFieldName = function(name) +{ + if(!TiddlyWiki.isValidFieldName(name)) + throw config.messages.invalidFieldName.format([name]); +}; + +function StringFieldAccess(n,readOnly) +{ + this.set = readOnly ? + function(t,v) {if(v != t[n]) throw config.messages.fieldCannotBeChanged.format([n]);} : + function(t,v) {if(v != t[n]) {t[n] = v; return true;}}; + this.get = function(t) {return t[n];}; +} + +function DateFieldAccess(n) +{ + this.set = function(t,v) { + var d = v instanceof Date ? v : Date.convertFromYYYYMMDDHHMM(v); + if(d != t[n]) { + t[n] = d; return true; + } + }; + this.get = function(t) {return t[n].convertToYYYYMMDDHHMM();}; +} + +function LinksFieldAccess(n) +{ + this.set = function(t,v) { + var s = (typeof v == "string") ? v.readBracketedList() : v; + if(s.toString() != t[n].toString()) { + t[n] = s; return true; + } + }; + this.get = function(t) {return String.encodeTiddlyLinkList(t[n]);}; +} + +TiddlyWiki.standardFieldAccess = { + // The set functions return true when setting the data has changed the value. + "title": new StringFieldAccess("title",true), + // Handle the "tiddler" field name as the title + "tiddler": new StringFieldAccess("title",true), + "text": new StringFieldAccess("text"), + "modifier": new StringFieldAccess("modifier"), + "modified": new DateFieldAccess("modified"), + "created": new DateFieldAccess("created"), + "tags": new LinksFieldAccess("tags") +}; + +TiddlyWiki.isStandardField = function(name) +{ + return TiddlyWiki.standardFieldAccess[name] != undefined; +}; + +// Sets the value of the given field of the tiddler to the value. +// Setting an ExtendedField's value to null or undefined removes the field. +// Setting a namespace to undefined removes all fields of that namespace. +// The fieldName is case-insensitive. +// All values will be converted to a string value. +TiddlyWiki.prototype.setValue = function(tiddler,fieldName,value) +{ + TiddlyWiki.checkFieldName(fieldName); + var t = this.resolveTiddler(tiddler); + if(!t) + return; + fieldName = fieldName.toLowerCase(); + var isRemove = (value === undefined) || (value === null); + var accessor = TiddlyWiki.standardFieldAccess[fieldName]; + if(accessor) { + if(isRemove) + // don't remove StandardFields + return; + var h = TiddlyWiki.standardFieldAccess[fieldName]; + if(!h.set(t,value)) + return; + } else { + var oldValue = t.fields[fieldName]; + if(isRemove) { + if(oldValue !== undefined) { + // deletes a single field + delete t.fields[fieldName]; + } else { + // no concrete value is defined for the fieldName + // so we guess this is a namespace path. + // delete all fields in a namespace + var re = new RegExp('^'+fieldName+'\\.'); + var dirty = false; + for(var n in t.fields) { + if(n.match(re)) { + delete t.fields[n]; + dirty = true; + } + } + if(!dirty) + return; + } + } else { + // the "normal" set case. value is defined (not null/undefined) + // For convenience provide a nicer conversion Date->String + value = value instanceof Date ? value.convertToYYYYMMDDHHMMSSMMM() : String(value); + if(oldValue == value) + return; + t.fields[fieldName] = value; + } + } + // When we are here the tiddler/store really was changed. + this.notify(t.title,true); + if(!fieldName.match(/^temp\./)) + this.setDirty(true); +}; + +// Returns the value of the given field of the tiddler. +// The fieldName is case-insensitive. +// Will only return String values (or undefined). +TiddlyWiki.prototype.getValue = function(tiddler,fieldName) +{ + var t = this.resolveTiddler(tiddler); + if(!t) + return undefined; + fieldName = fieldName.toLowerCase(); + var accessor = TiddlyWiki.standardFieldAccess[fieldName]; + if(accessor) { + return accessor.get(t); + } + return t.fields[fieldName]; +}; + +// Calls the callback function for every field in the tiddler. +// When callback function returns a non-false value the iteration stops +// and that value is returned. +// The order of the fields is not defined. +// @param callback a function(tiddler,fieldName,value). +TiddlyWiki.prototype.forEachField = function(tiddler,callback,onlyExtendedFields) +{ + var t = this.resolveTiddler(tiddler); + if(!t) + return undefined; + var n,result; + for(n in t.fields) { + result = callback(t,n,t.fields[n]); + if(result) + return result; + } + if(onlyExtendedFields) + return undefined; + for(n in TiddlyWiki.standardFieldAccess) { + if(n == "tiddler") + // even though the "title" field can also be referenced through the name "tiddler" + // we only visit this field once. + continue; + result = callback(t,n,TiddlyWiki.standardFieldAccess[n].get(t)); + if(result) + return result; + } + return undefined; +}; + +//-- +//-- Story functions +//-- + +function Story(container,idPrefix) +{ + this.container = container; + this.idPrefix = idPrefix; + this.highlightRegExp = null; +} + +Story.prototype.forEachTiddler = function(fn) +{ + var place = document.getElementById(this.container); + if(!place) + return; + var e = place.firstChild; + while(e) { + var n = e.nextSibling; + var title = e.getAttribute("tiddler"); + fn.call(this,title,e); + e = n; + } +}; + +Story.prototype.displayTiddlers = function(srcElement,titles,template,animate,unused,customFields,toggle) +{ + for(var t = titles.length-1;t>=0;t--) + this.displayTiddler(srcElement,titles[t],template,animate,unused,customFields); +}; + +Story.prototype.displayTiddler = function(srcElement,tiddler,template,animate,unused,customFields,toggle) +{ + var title = (tiddler instanceof Tiddler)? tiddler.title : tiddler; + var place = document.getElementById(this.container); + var tiddlerElem = document.getElementById(this.idPrefix + title); + if(tiddlerElem) { + if(toggle) + this.closeTiddler(title,true); + else + this.refreshTiddler(title,template,false,customFields); + } else { + var before = this.positionTiddler(srcElement); + tiddlerElem = this.createTiddler(place,before,title,template,customFields); + } + if(srcElement && typeof srcElement !== "string") { + if(config.options.chkAnimate && (animate == undefined || animate == true) && anim && typeof Zoomer == "function" && typeof Scroller == "function") + anim.startAnimating(new Zoomer(title,srcElement,tiddlerElem),new Scroller(tiddlerElem)); + else + window.scrollTo(0,ensureVisible(tiddlerElem)); + } +}; + +Story.prototype.positionTiddler = function(srcElement) +{ + var place = document.getElementById(this.container); + var before = null; + if(typeof srcElement == "string") { + switch(srcElement) { + case "top": + before = place.firstChild; + break; + case "bottom": + before = null; + break; + } + } else { + var after = this.findContainingTiddler(srcElement); + if(after == null) { + before = place.firstChild; + } else if(after.nextSibling) { + before = after.nextSibling; + if(before.nodeType != 1) + before = null; + } + } + return before; +}; + +Story.prototype.createTiddler = function(place,before,title,template,customFields) +{ + var tiddlerElem = createTiddlyElement(null,"div",this.idPrefix + title,"tiddler"); + tiddlerElem.setAttribute("refresh","tiddler"); + if(customFields) + tiddlerElem.setAttribute("tiddlyFields",customFields); + place.insertBefore(tiddlerElem,before); + var defaultText = null; + if(!store.tiddlerExists(title) && !store.isShadowTiddler(title)) + defaultText = this.loadMissingTiddler(title,customFields,tiddlerElem); + this.refreshTiddler(title,template,false,customFields,defaultText); + return tiddlerElem; +}; + +Story.prototype.loadMissingTiddler = function(title,fields,tiddlerElem) +{ + var tiddler = new Tiddler(title); + tiddler.fields = typeof fields == "string" ? fields.decodeHashMap() : (fields ? fields : {}); + var serverType = tiddler.getServerType(); + var host = tiddler.fields['server.host']; + var workspace = tiddler.fields['server.workspace']; + if(!serverType || !host) + return null; + var sm = new SyncMachine(serverType,{ + start: function() { + return this.openHost(host,"openWorkspace"); + }, + openWorkspace: function() { + return this.openWorkspace(workspace,"getTiddler"); + }, + getTiddler: function() { + return this.getTiddler(title,"onGetTiddler"); + }, + onGetTiddler: function(context) { + var tiddler = context.tiddler; + if(tiddler && tiddler.text) { + var downloaded = new Date(); + if(!tiddler.created) + tiddler.created = downloaded; + if(!tiddler.modified) + tiddler.modified = tiddler.created; + store.saveTiddler(tiddler.title,tiddler.title,tiddler.text,tiddler.modifier,tiddler.modified,tiddler.tags,tiddler.fields,true,tiddler.created); + autoSaveChanges(); + } + delete this; + return true; + }, + error: function(message) { + displayMessage("Error loading missing tiddler from %0: %1".format([host,message])); + } + }); + sm.go(); + return config.messages.loadingMissingTiddler.format([title,serverType,host,workspace]); +}; + +Story.prototype.chooseTemplateForTiddler = function(title,template) +{ + if(!template) + template = DEFAULT_VIEW_TEMPLATE; + if(template == DEFAULT_VIEW_TEMPLATE || template == DEFAULT_EDIT_TEMPLATE) + template = config.tiddlerTemplates[template]; + return template; +}; + +Story.prototype.getTemplateForTiddler = function(title,template,tiddler) +{ + return store.getRecursiveTiddlerText(template,null,10); +}; + +Story.prototype.refreshTiddler = function(title,template,force,customFields,defaultText) +{ + var tiddlerElem = document.getElementById(this.idPrefix + title); + if(tiddlerElem) { + if(tiddlerElem.getAttribute("dirty") == "true" && !force) + return tiddlerElem; + template = this.chooseTemplateForTiddler(title,template); + var currTemplate = tiddlerElem.getAttribute("template"); + if((template != currTemplate) || force) { + var tiddler = store.getTiddler(title); + if(!tiddler) { + tiddler = new Tiddler(); + if(store.isShadowTiddler(title)) { + tiddler.set(title,store.getTiddlerText(title),config.views.wikified.shadowModifier,version.date,[],version.date); + } else { + var text = template=="EditTemplate" ? + config.views.editor.defaultText.format([title]) : + config.views.wikified.defaultText.format([title]); + text = defaultText ? defaultText : text; + var fields = customFields ? customFields.decodeHashMap() : null; + tiddler.set(title,text,config.views.wikified.defaultModifier,version.date,[],version.date,fields); + } + } + tiddlerElem.setAttribute("tags",tiddler.tags.join(" ")); + tiddlerElem.setAttribute("tiddler",title); + tiddlerElem.setAttribute("template",template); + var me = this; + tiddlerElem.onmouseover = this.onTiddlerMouseOver; + tiddlerElem.onmouseout = this.onTiddlerMouseOut; + tiddlerElem.ondblclick = this.onTiddlerDblClick; + tiddlerElem[window.event?"onkeydown":"onkeypress"] = this.onTiddlerKeyPress; + var html = this.getTemplateForTiddler(title,template,tiddler); + tiddlerElem.innerHTML = html; + applyHtmlMacros(tiddlerElem,tiddler); + if(store.getTaggedTiddlers(title).length > 0) + addClass(tiddlerElem,"isTag"); + else + removeClass(tiddlerElem,"isTag"); + if(!store.tiddlerExists(title)) { + if(store.isShadowTiddler(title)) + addClass(tiddlerElem,"shadow"); + else + addClass(tiddlerElem,"missing"); + } else { + removeClass(tiddlerElem,"shadow"); + removeClass(tiddlerElem,"missing"); + } + if(customFields) + this.addCustomFields(tiddlerElem,customFields); + forceReflow(); + } + } + return tiddlerElem; +}; + +Story.prototype.addCustomFields = function(place,customFields) +{ + var fields = customFields.decodeHashMap(); + var w = document.createElement("div"); + w.style.display = "none"; + place.appendChild(w); + for(var t in fields) { + var e = document.createElement("input"); + e.setAttribute("type","text"); + e.setAttribute("value",fields[t]); + w.appendChild(e); + e.setAttribute("edit",t); + } +}; + +Story.prototype.refreshAllTiddlers = function(force) +{ + var place = document.getElementById(this.container); + var e = place.firstChild; + if(!e) + return; + this.refreshTiddler(e.getAttribute("tiddler"),force ? null : e.getAttribute("template"),true); + while((e = e.nextSibling) != null) + this.refreshTiddler(e.getAttribute("tiddler"),force ? null : e.getAttribute("template"),true); +}; + +Story.prototype.onTiddlerMouseOver = function(e) +{ + if(window.addClass instanceof Function) + addClass(this,"selected"); +}; + +Story.prototype.onTiddlerMouseOut = function(e) +{ + if(window.removeClass instanceof Function) + removeClass(this,"selected"); +}; + +Story.prototype.onTiddlerDblClick = function(ev) +{ + var e = ev ? ev : window.event; + var theTarget = resolveTarget(e); + if(theTarget && theTarget.nodeName.toLowerCase() != "input" && theTarget.nodeName.toLowerCase() != "textarea") { + if(document.selection && document.selection.empty) + document.selection.empty(); + config.macros.toolbar.invokeCommand(this,"defaultCommand",e); + e.cancelBubble = true; + if(e.stopPropagation) e.stopPropagation(); + return true; + } else { + return false; + } +}; + +Story.prototype.onTiddlerKeyPress = function(ev) +{ + var e = ev ? ev : window.event; + clearMessage(); + var consume = false; + var title = this.getAttribute("tiddler"); + var target = resolveTarget(e); + switch(e.keyCode) { + case 9: // Tab + if(config.options.chkInsertTabs && target.tagName.toLowerCase() == "textarea") { + replaceSelection(target,String.fromCharCode(9)); + consume = true; + } + if(config.isOpera) { + target.onblur = function() { + this.focus(); + this.onblur = null; + }; + } + break; + case 13: // Ctrl-Enter + case 10: // Ctrl-Enter on IE PC + case 77: // Ctrl-Enter is "M" on some platforms + if(e.ctrlKey) { + blurElement(this); + config.macros.toolbar.invokeCommand(this,"defaultCommand",e); + consume = true; + } + break; + case 27: // Escape + blurElement(this); + config.macros.toolbar.invokeCommand(this,"cancelCommand",e); + consume = true; + break; + } + e.cancelBubble = consume; + if(consume) { + if(e.stopPropagation) e.stopPropagation(); // Stop Propagation + e.returnValue = true; // Cancel The Event in IE + if(e.preventDefault ) e.preventDefault(); // Cancel The Event in Moz + } + return !consume; +}; + +Story.prototype.getTiddlerField = function(title,field) +{ + var tiddlerElem = document.getElementById(this.idPrefix + title); + var e = null; + if(tiddlerElem != null) { + var children = tiddlerElem.getElementsByTagName("*"); + for(var t=0; t<children.length; t++) { + var c = children[t]; + if(c.tagName.toLowerCase() == "input" || c.tagName.toLowerCase() == "textarea") { + if(!e) + e = c; + if(c.getAttribute("edit") == field) + e = c; + } + } + } + return e; +}; + +Story.prototype.focusTiddler = function(title,field) +{ + var e = this.getTiddlerField(title,field); + if(e) { + e.focus(); + e.select(); + } +}; + +Story.prototype.blurTiddler = function(title) +{ + var tiddlerElem = document.getElementById(this.idPrefix + title); + if(tiddlerElem != null && tiddlerElem.focus && tiddlerElem.blur) { + tiddlerElem.focus(); + tiddlerElem.blur(); + } +}; + +Story.prototype.setTiddlerField = function(title,tag,mode,field) +{ + var c = story.getTiddlerField(title,field); + + var tags = c.value.readBracketedList(); + tags.setItem(tag,mode); + c.value = String.encodeTiddlyLinkList(tags); +}; + +Story.prototype.setTiddlerTag = function(title,tag,mode) +{ + Story.prototype.setTiddlerField(title,tag,mode,"tags"); +}; + +Story.prototype.closeTiddler = function(title,animate,unused) +{ + var tiddlerElem = document.getElementById(this.idPrefix + title); + if(tiddlerElem != null) { + clearMessage(); + this.scrubTiddler(tiddlerElem); + if(config.options.chkAnimate && animate && anim && typeof Slider == "function") + anim.startAnimating(new Slider(tiddlerElem,false,null,"all")); + else { + removeNode(tiddlerElem); + forceReflow(); + } + } +}; + +Story.prototype.scrubTiddler = function(tiddlerElem) +{ + tiddlerElem.id = null; +}; + +Story.prototype.setDirty = function(title,dirty) +{ + var tiddlerElem = document.getElementById(this.idPrefix + title); + if(tiddlerElem != null) + tiddlerElem.setAttribute("dirty",dirty ? "true" : "false"); +}; + +Story.prototype.isDirty = function(title) +{ + var tiddlerElem = document.getElementById(this.idPrefix + title); + if(tiddlerElem != null) + return tiddlerElem.getAttribute("dirty") == "true"; + return null; +}; + +Story.prototype.areAnyDirty = function() +{ + var r = false; + this.forEachTiddler(function(title,element) { + if(this.isDirty(title)) + r = true; + }); + return r; +}; + +Story.prototype.closeAllTiddlers = function(exclude) +{ + clearMessage(); + this.forEachTiddler(function(title,element) { + if((title != exclude) && element.getAttribute("dirty") != "true") + this.closeTiddler(title); + }); + window.scrollTo(0,ensureVisible(this.container)); +}; + +Story.prototype.isEmpty = function() +{ + var place = document.getElementById(this.container); + return place && place.firstChild == null; +}; + +Story.prototype.search = function(text,useCaseSensitive,useRegExp) +{ + this.closeAllTiddlers(); + highlightHack = new RegExp(useRegExp ? text : text.escapeRegExp(),useCaseSensitive ? "mg" : "img"); + var matches = store.search(highlightHack,"title","excludeSearch"); + this.displayTiddlers(null,matches); + highlightHack = null; + var q = useRegExp ? "/" : "'"; + if(matches.length > 0) + displayMessage(config.macros.search.successMsg.format([matches.length.toString(),q + text + q])); + else + displayMessage(config.macros.search.failureMsg.format([q + text + q])); +}; + +Story.prototype.findContainingTiddler = function(e) +{ + while(e && !hasClass(e,"tiddler")) + e = e.parentNode; + return e; +}; + +Story.prototype.gatherSaveFields = function(e,fields) +{ + if(e && e.getAttribute) { + var f = e.getAttribute("edit"); + if(f) + fields[f] = e.value.replace(/\r/mg,""); + if(e.hasChildNodes()) { + var c = e.childNodes; + for(var t=0; t<c.length; t++) + this.gatherSaveFields(c[t],fields); + } + } +}; + +Story.prototype.hasChanges = function(title) +{ + var e = document.getElementById(this.idPrefix + title); + if(e != null) { + var fields = {}; + this.gatherSaveFields(e,fields); + var tiddler = store.fetchTiddler(title); + if(!tiddler) + return false; + for(var n in fields) { + if(store.getValue(title,n) != fields[n]) + return true; + } + } + return false; +}; + +Story.prototype.saveTiddler = function(title,minorUpdate) +{ + var tiddlerElem = document.getElementById(this.idPrefix + title); + if(tiddlerElem != null) { + var fields = {}; + this.gatherSaveFields(tiddlerElem,fields); + var newTitle = fields.title ? fields.title : title; + if(!store.tiddlerExists(newTitle)) + newTitle = newTitle.trim(); + if(store.tiddlerExists(newTitle) && newTitle != title) { + if(!confirm(config.messages.overwriteWarning.format([newTitle.toString()]))) + return null; + } + if(newTitle != title) + this.closeTiddler(newTitle,false); + tiddlerElem.id = this.idPrefix + newTitle; + tiddlerElem.setAttribute("tiddler",newTitle); + tiddlerElem.setAttribute("template",DEFAULT_VIEW_TEMPLATE); + tiddlerElem.setAttribute("dirty","false"); + if(config.options.chkForceMinorUpdate) + minorUpdate = !minorUpdate; + if(!store.tiddlerExists(newTitle)) + minorUpdate = false; + var newDate = new Date(); + var extendedFields = store.tiddlerExists(newTitle) ? store.fetchTiddler(newTitle).fields : (newTitle!=title && store.tiddlerExists(title) ? store.fetchTiddler(title).fields : {}); + for(var n in fields) { + if(!TiddlyWiki.isStandardField(n)) + extendedFields[n] = fields[n]; + } + var tiddler = store.saveTiddler(title,newTitle,fields.text,minorUpdate ? undefined : config.options.txtUserName,minorUpdate ? undefined : newDate,fields.tags,extendedFields); + autoSaveChanges(null,[tiddler]); + return newTitle; + } + return null; +}; + +Story.prototype.permaView = function() +{ + var links = []; + this.forEachTiddler(function(title,element) { + links.push(String.encodeTiddlyLink(title)); + }); + var t = encodeURIComponent(links.join(" ")); + if(t == "") + t = "#"; + if(window.location.hash != t) + window.location.hash = t; +}; + + +Story.prototype.switchTheme = function(theme) +{ + if(safeMode) + return; + + isAvailable = function(title) { + var s = title ? title.indexOf(config.textPrimitives.sectionSeparator) : -1; + if(s!=-1) + title = title.substr(0,s); + return store.tiddlerExists(title) || store.isShadowTiddler(title); + }; + + getSlice = function(theme,slice) { + var r = store.getTiddlerSlice(theme,slice); + if(r && r.indexOf(config.textPrimitives.sectionSeparator)==0) + r = theme + r; + return isAvailable(r) ? r : slice; + }; + + replaceNotification = function(i,name,newName) { + if(name==newName) + return name; + if(store.namedNotifications[i].name == name) { + store.namedNotifications[i].name = newName; + return newName; + } + return name; + }; + + for(var i=0; i<config.notifyTiddlers.length; i++) { + var name = config.notifyTiddlers[i].name; + switch(name) { + case "PageTemplate": + config.refreshers.pageTemplate = replaceNotification(i,config.refreshers.pageTemplate,getSlice(theme,name)); + break; + case "StyleSheet": + removeStyleSheet(config.refreshers.styleSheet); + config.refreshers.styleSheet = replaceNotification(i,config.refreshers.styleSheet,getSlice(theme,name)); + break; + case "ColorPalette": + config.refreshers.colorPalette = replaceNotification(i,config.refreshers.colorPalette,getSlice(theme,name)); + break; + default: + break; + } + } + config.tiddlerTemplates[DEFAULT_VIEW_TEMPLATE] = getSlice(theme,"ViewTemplate"); + config.tiddlerTemplates[DEFAULT_EDIT_TEMPLATE] = getSlice(theme,"EditTemplate"); + if(!startingUp) { + refreshAll(); + story.refreshAllTiddlers(true); + config.options.txtTheme = theme; + saveOptionCookie("txtTheme"); + } +}; + +//-- +//-- Backstage +//-- + +var backstage = { + area: null, + toolbar: null, + button: null, + showButton: null, + hideButton: null, + cloak: null, + panel: null, + panelBody: null, + panelFooter: null, + currTabName: null, + currTabElem: null, + content: null, + + init: function() { + var cmb = config.messages.backstage; + this.area = document.getElementById("backstageArea"); + this.toolbar = document.getElementById("backstageToolbar"); + this.button = document.getElementById("backstageButton"); + this.button.style.display = "block"; + var t = cmb.open.text + " " + glyph("bentArrowLeft"); + this.showButton = createTiddlyButton(this.button,t,cmb.open.tooltip, + function (e) {backstage.show(); return false;},null,"backstageShow"); + t = glyph("bentArrowRight") + " " + cmb.close.text; + this.hideButton = createTiddlyButton(this.button,t,cmb.close.tooltip, + function (e) {backstage.hide(); return false;},null,"backstageHide"); + this.cloak = document.getElementById("backstageCloak"); + this.panel = document.getElementById("backstagePanel"); + this.panelFooter = createTiddlyElement(this.panel,"div",null,"backstagePanelFooter"); + this.panelBody = createTiddlyElement(this.panel,"div",null,"backstagePanelBody"); + this.cloak.onmousedown = function(e) { + backstage.switchTab(null); + }; + createTiddlyText(this.toolbar,cmb.prompt); + for(t=0; t<config.backstageTasks.length; t++) { + var taskName = config.backstageTasks[t]; + var task = config.tasks[taskName]; + var handler = task.action ? this.onClickCommand : this.onClickTab; + var text = task.text + (task.action ? "" : glyph("downTriangle")); + var btn = createTiddlyButton(this.toolbar,text,task.tooltip,handler,"backstageTab"); + btn.setAttribute("task",taskName); + addClass(btn,task.action ? "backstageAction" : "backstageTask"); + } + this.content = document.getElementById("contentWrapper"); + if(config.options.chkBackstage) + this.show(); + else + this.hide(); + }, + + isVisible: function() { + return this.area ? this.area.style.display == "block" : false; + }, + + show: function() { + this.area.style.display = "block"; + if(anim && config.options.chkAnimate) { + backstage.toolbar.style.left = findWindowWidth() + "px"; + var p = [ + {style: "left", start: findWindowWidth(), end: 0, template: "%0px"} + ]; + anim.startAnimating(new Morpher(backstage.toolbar,config.animDuration,p)); + } else { + backstage.area.style.left = "0px"; + } + this.showButton.style.display = "none"; + this.hideButton.style.display = "block"; + config.options.chkBackstage = true; + saveOptionCookie("chkBackstage"); + addClass(this.content,"backstageVisible"); + }, + + hide: function() { + if(this.currTabElem) { + this.switchTab(null); + } else { + backstage.toolbar.style.left = "0px"; + if(anim && config.options.chkAnimate) { + var p = [ + {style: "left", start: 0, end: findWindowWidth(), template: "%0px"} + ]; + var c = function(element,properties) {backstage.area.style.display = "none";}; + anim.startAnimating(new Morpher(backstage.toolbar,config.animDuration,p,c)); + } else { + this.area.style.display = "none"; + } + this.showButton.style.display = "block"; + this.hideButton.style.display = "none"; + config.options.chkBackstage = false; + saveOptionCookie("chkBackstage"); + removeClass(this.content,"backstageVisible"); + } + }, + + onClickCommand: function(e) { + var task = config.tasks[this.getAttribute("task")]; + displayMessage(task); + if(task.action) { + backstage.switchTab(null); + task.action(); + } + return false; + }, + + onClickTab: function(e) { + backstage.switchTab(this.getAttribute("task")); + return false; + }, + + // Switch to a given tab, or none if null is passed + switchTab: function(tabName) { + var tabElem = null; + var e = this.toolbar.firstChild; + while(e) + { + if(e.getAttribute && e.getAttribute("task") == tabName) + tabElem = e; + e = e.nextSibling; + } + if(tabName == backstage.currTabName) + return; + if(backstage.currTabElem) { + removeClass(this.currTabElem,"backstageSelTab"); + } + if(tabElem && tabName) { + backstage.preparePanel(); + addClass(tabElem,"backstageSelTab"); + var task = config.tasks[tabName]; + wikify(task.content,backstage.panelBody,null,null); + backstage.showPanel(); + } else if(backstage.currTabElem) { + backstage.hidePanel(); + } + backstage.currTabName = tabName; + backstage.currTabElem = tabElem; + }, + + isPanelVisible: function() { + return backstage.panel ? backstage.panel.style.display == "block" : false; + }, + + preparePanel: function() { + backstage.cloak.style.height = findWindowHeight() + "px"; + backstage.cloak.style.display = "block"; + removeChildren(backstage.panelBody); + return backstage.panelBody; + }, + + showPanel: function() { + backstage.panel.style.display = "block"; + if(anim && config.options.chkAnimate) { + backstage.panel.style.top = (-backstage.panel.offsetHeight) + "px"; + var p = [ + {style: "top", start: -backstage.panel.offsetHeight, end: 0, template: "%0px"} + ]; + anim.startAnimating(new Morpher(backstage.panel,config.animDuration,p),new Scroller(backstage.panel,false)); + } else { + backstage.panel.style.top = "0px"; + } + return backstage.panelBody; + }, + + hidePanel: function() { + backstage.currTabName = null; + backstage.currTabElem = null; + if(anim && config.options.chkAnimate) { + var p = [ + {style: "top", start: 0, end: -(backstage.panel.offsetHeight), template: "%0px"}, + {style: "display", atEnd: "none"} + ]; + var c = function(element,properties) {backstage.cloak.style.display = "none";}; + anim.startAnimating(new Morpher(backstage.panel,config.animDuration,p,c)); + } else { + backstage.panel.style.display = "none"; + backstage.cloak.style.display = "none"; + } + } +}; + +config.macros.backstage = {}; + +config.macros.backstage.handler = function(place,macroName,params,wikifier,paramString,tiddler) +{ + var backstageTask = config.tasks[params[0]]; + if(backstageTask) + createTiddlyButton(place,backstageTask.text,backstageTask.tooltip,function(e) {backstage.switchTab(params[0]); return false;}); +}; + +//-- +//-- ImportTiddlers macro +//-- + +config.macros.importTiddlers.handler = function(place,macroName,params,wikifier,paramString,tiddler) +{ + if(readOnly) { + createTiddlyElement(place,"div",null,"marked",this.readOnlyWarning); + return; + } + var w = new Wizard(); + w.createWizard(place,this.wizardTitle); + this.restart(w); +}; + +config.macros.importTiddlers.onCancel = function(e) +{ + var wizard = new Wizard(this); + var place = wizard.clear(); + config.macros.importTiddlers.restart(wizard); + return false; +}; + +config.macros.importTiddlers.restart = function(wizard) +{ + wizard.addStep(this.step1Title,this.step1Html); + var s = wizard.getElement("selTypes"); + for(var t in config.adaptors) { + var e = createTiddlyElement(s,"option",null,null,t); + e.value = t; + } + s = wizard.getElement("selFeeds"); + var feeds = this.getFeeds(); + for(t in feeds) { + e = createTiddlyElement(s,"option",null,null,t); + e.value = t; + } + wizard.setValue("feeds",feeds); + s.onchange = config.macros.importTiddlers.onFeedChange; + var fileInput = wizard.getElement("txtBrowse"); + fileInput.onchange = config.macros.importTiddlers.onBrowseChange; + fileInput.onkeyup = config.macros.importTiddlers.onBrowseChange; + wizard.setButtons([{caption: this.openLabel, tooltip: this.openPrompt, onClick: config.macros.importTiddlers.onOpen}]); +}; + +config.macros.importTiddlers.getFeeds = function() +{ + var feeds = {}; + var tagged = store.getTaggedTiddlers("systemServer","title"); + for(var t=0; t<tagged.length; t++) { + var title = tagged[t].title; + var serverType = store.getTiddlerSlice(title,"Type"); + if(!serverType) + serverType = "file"; + feeds[title] = {title: title, + url: store.getTiddlerSlice(title,"URL"), + workspace: store.getTiddlerSlice(title,"Workspace"), + workspaceList: store.getTiddlerSlice(title,"WorkspaceList"), + tiddlerFilter: store.getTiddlerSlice(title,"TiddlerFilter"), + serverType: serverType, + description: store.getTiddlerSlice(title,"Description")}; + } + return feeds; +}; + +config.macros.importTiddlers.onFeedChange = function(e) +{ + var wizard = new Wizard(this); + var selTypes = wizard.getElement("selTypes"); + var fileInput = wizard.getElement("txtPath"); + var feeds = wizard.getValue("feeds"); + var f = feeds[this.value]; + if(f) { + selTypes.value = f.serverType; + fileInput.value = f.url; + this.selectedIndex = 0; + wizard.setValue("feedName",f.serverType); + wizard.setValue("feedHost",f.url); + wizard.setValue("feedWorkspace",f.workspace); + wizard.setValue("feedWorkspaceList",f.workspaceList); + wizard.setValue("feedTiddlerFilter",f.tiddlerFilter); + } + return false; +}; + +config.macros.importTiddlers.onBrowseChange = function(e) +{ + var wizard = new Wizard(this); + var fileInput = wizard.getElement("txtPath"); + fileInput.value = "file://" + this.value; + var serverType = wizard.getElement("selTypes"); + serverType.value = "file"; + return false; +}; + +config.macros.importTiddlers.onOpen = function(e) +{ + var wizard = new Wizard(this); + var fileInput = wizard.getElement("txtPath"); + var url = fileInput.value; + var serverType = wizard.getElement("selTypes").value; + var adaptor = new config.adaptors[serverType]; + wizard.setValue("adaptor",adaptor); + wizard.setValue("serverType",serverType); + wizard.setValue("host",url); + var ret = adaptor.openHost(url,null,wizard,config.macros.importTiddlers.onOpenHost); + if(ret !== true) + displayMessage(ret); + wizard.setButtons([{caption: config.macros.importTiddlers.cancelLabel, tooltip: config.macros.importTiddlers.cancelPrompt, onClick: config.macros.importTiddlers.onCancel}],config.macros.importTiddlers.statusOpenHost); + return false; +}; + +config.macros.importTiddlers.onOpenHost = function(context,wizard) +{ + var adaptor = wizard.getValue("adaptor"); + if(context.status !== true) + displayMessage("Error in importTiddlers.onOpenHost: " + context.statusText); + var ret = adaptor.getWorkspaceList(context,wizard,config.macros.importTiddlers.onGetWorkspaceList); + if(ret !== true) + displayMessage(ret); + wizard.setButtons([{caption: config.macros.importTiddlers.cancelLabel, tooltip: config.macros.importTiddlers.cancelPrompt, onClick: config.macros.importTiddlers.onCancel}],config.macros.importTiddlers.statusGetWorkspaceList); +}; + +config.macros.importTiddlers.onGetWorkspaceList = function(context,wizard) +{ + if(context.status !== true) + displayMessage("Error in importTiddlers.onGetWorkspaceList: " + context.statusText); + wizard.setValue("context",context); + var workspace = wizard.getValue("feedWorkspace"); + if(!workspace && context.workspaces.length==1) + workspace = context.workspaces[0].title; + if(workspace) { + var ret = context.adaptor.openWorkspace(workspace,context,wizard,config.macros.importTiddlers.onOpenWorkspace); + if(ret !== true) + displayMessage(ret); + wizard.setValue("workspace",workspace); + wizard.setButtons([{caption: config.macros.importTiddlers.cancelLabel, tooltip: config.macros.importTiddlers.cancelPrompt, onClick: config.macros.importTiddlers.onCancel}],config.macros.importTiddlers.statusOpenWorkspace); + return; + } + wizard.addStep(config.macros.importTiddlers.step2Title,config.macros.importTiddlers.step2Html); + var s = wizard.getElement("selWorkspace"); + s.onchange = config.macros.importTiddlers.onWorkspaceChange; + for(var t=0; t<context.workspaces.length; t++) { + var e = createTiddlyElement(s,"option",null,null,context.workspaces[t].title); + e.value = context.workspaces[t].title; + } + var workspaceList = wizard.getValue("feedWorkspaceList"); + if(workspaceList) { + var list = workspaceList.parseParams("workspace",null,false,true); + for(var n=1; n<list.length; n++) { + if(context.workspaces.findByField("title",list[n].value) == null) { + e = createTiddlyElement(s,"option",null,null,list[n].value); + e.value = list[n].value; + } + } + } + if(workspace) { + t = wizard.getElement("txtWorkspace"); + t.value = workspace; + } + wizard.setButtons([{caption: config.macros.importTiddlers.openLabel, tooltip: config.macros.importTiddlers.openPrompt, onClick: config.macros.importTiddlers.onChooseWorkspace}]); +}; + +config.macros.importTiddlers.onWorkspaceChange = function(e) +{ + var wizard = new Wizard(this); + var t = wizard.getElement("txtWorkspace"); + t.value = this.value; + this.selectedIndex = 0; + return false; +}; + +config.macros.importTiddlers.onChooseWorkspace = function(e) +{ + var wizard = new Wizard(this); + var adaptor = wizard.getValue("adaptor"); + var workspace = wizard.getElement("txtWorkspace").value; + wizard.setValue("workspace",workspace); + var context = wizard.getValue("context"); + var ret = adaptor.openWorkspace(workspace,context,wizard,config.macros.importTiddlers.onOpenWorkspace); + if(ret !== true) + displayMessage(ret); + wizard.setButtons([{caption: config.macros.importTiddlers.cancelLabel, tooltip: config.macros.importTiddlers.cancelPrompt, onClick: config.macros.importTiddlers.onCancel}],config.macros.importTiddlers.statusOpenWorkspace); + return false; +}; + +config.macros.importTiddlers.onOpenWorkspace = function(context,wizard) +{ + if(context.status !== true) + displayMessage("Error in importTiddlers.onOpenWorkspace: " + context.statusText); + var adaptor = wizard.getValue("adaptor"); + var ret = adaptor.getTiddlerList(context,wizard,config.macros.importTiddlers.onGetTiddlerList,wizard.getValue("feedTiddlerFilter")); + if(ret !== true) + displayMessage(ret); + wizard.setButtons([{caption: config.macros.importTiddlers.cancelLabel, tooltip: config.macros.importTiddlers.cancelPrompt, onClick: config.macros.importTiddlers.onCancel}],config.macros.importTiddlers.statusGetTiddlerList); +}; + +config.macros.importTiddlers.onGetTiddlerList = function(context,wizard) +{ + if(context.status !== true) + displayMessage("Error in importTiddlers.onGetTiddlerList: " + context.statusText); + // Extract data for the listview + var listedTiddlers = []; + if(context.tiddlers) { + for(var n=0; n<context.tiddlers.length; n++) { + var tiddler = context.tiddlers[n]; + listedTiddlers.push({ + title: tiddler.title, + modified: tiddler.modified, + modifier: tiddler.modifier, + text: tiddler.text ? wikifyPlainText(tiddler.text,100) : "", + tags: tiddler.tags, + size: tiddler.text ? tiddler.text.length : 0, + tiddler: tiddler + }); + } + } + listedTiddlers.sort(function(a,b) {return a.title < b.title ? -1 : (a.title == b.title ? 0 : +1);}); + // Display the listview + wizard.addStep(config.macros.importTiddlers.step3Title,config.macros.importTiddlers.step3Html); + var markList = wizard.getElement("markList"); + var listWrapper = document.createElement("div"); + markList.parentNode.insertBefore(listWrapper,markList); + var listView = ListView.create(listWrapper,listedTiddlers,config.macros.importTiddlers.listViewTemplate); + wizard.setValue("listView",listView); + var txtSaveTiddler = wizard.getElement("txtSaveTiddler"); + txtSaveTiddler.value = config.macros.importTiddlers.generateSystemServerName(wizard); + wizard.setButtons([ + {caption: config.macros.importTiddlers.cancelLabel, tooltip: config.macros.importTiddlers.cancelPrompt, onClick: config.macros.importTiddlers.onCancel}, + {caption: config.macros.importTiddlers.importLabel, tooltip: config.macros.importTiddlers.importPrompt, onClick: config.macros.importTiddlers.doImport} + ]); +}; + +config.macros.importTiddlers.generateSystemServerName = function(wizard) +{ + var serverType = wizard.getValue("serverType"); + var host = wizard.getValue("host"); + var workspace = wizard.getValue("workspace"); + var pattern = config.macros.importTiddlers[workspace ? "systemServerNamePattern" : "systemServerNamePatternNoWorkspace"]; + return pattern.format([serverType,host,workspace]); +}; + +config.macros.importTiddlers.saveServerTiddler = function(wizard) +{ + var txtSaveTiddler = wizard.getElement("txtSaveTiddler").value; + if(store.tiddlerExists(txtSaveTiddler)) { + if(!confirm(config.macros.importTiddlers.confirmOverwriteSaveTiddler.format([txtSaveTiddler]))) + return; + store.suspendNotifications(); + store.removeTiddler(txtSaveTiddler); + store.resumeNotifications(); + } + var serverType = wizard.getValue("serverType"); + var host = wizard.getValue("host"); + var workspace = wizard.getValue("workspace"); + var text = config.macros.importTiddlers.serverSaveTemplate.format([serverType,host,workspace]); + store.saveTiddler(txtSaveTiddler,txtSaveTiddler,text,config.macros.importTiddlers.serverSaveModifier,new Date(),["systemServer"]); +}; + +config.macros.importTiddlers.doImport = function(e) +{ + var wizard = new Wizard(this); + if(wizard.getElement("chkSave").checked) + config.macros.importTiddlers.saveServerTiddler(wizard); + var chkSync = wizard.getElement("chkSync").checked; + wizard.setValue("sync",chkSync); + var listView = wizard.getValue("listView"); + var rowNames = ListView.getSelectedRows(listView); + var adaptor = wizard.getValue("adaptor"); + var overwrite = new Array(); + var t; + for(t=0; t<rowNames.length; t++) { + if(store.tiddlerExists(rowNames[t])) + overwrite.push(rowNames[t]); + } + if(overwrite.length > 0) { + if(!confirm(config.macros.importTiddlers.confirmOverwriteText.format([overwrite.join(", ")]))) + return false; + } + wizard.addStep(config.macros.importTiddlers.step4Title.format([rowNames.length]),config.macros.importTiddlers.step4Html); + for(t=0; t<rowNames.length; t++) { + var link = document.createElement("div"); + createTiddlyLink(link,rowNames[t],true); + var place = wizard.getElement("markReport"); + place.parentNode.insertBefore(link,place); + } + wizard.setValue("remainingImports",rowNames.length); + wizard.setButtons([ + {caption: config.macros.importTiddlers.cancelLabel, tooltip: config.macros.importTiddlers.cancelPrompt, onClick: config.macros.importTiddlers.onCancel} + ],config.macros.importTiddlers.statusDoingImport); + for(t=0; t<rowNames.length; t++) { + var context = {}; + context.allowSynchronous = true; + var inbound = adaptor.getTiddler(rowNames[t],context,wizard,config.macros.importTiddlers.onGetTiddler); + } + return false; +}; + +config.macros.importTiddlers.onGetTiddler = function(context,wizard) +{ + if(!context.status) + displayMessage("Error in importTiddlers.onGetTiddler: " + context.statusText); + var tiddler = context.tiddler; + store.suspendNotifications(); + store.saveTiddler(tiddler.title, tiddler.title, tiddler.text, tiddler.modifier, tiddler.modified, tiddler.tags, tiddler.fields, true, tiddler.created); + if(!wizard.getValue("sync")) { + store.setValue(tiddler.title,'server',null); + } + store.resumeNotifications(); + if(!context.isSynchronous) + store.notify(tiddler.title,true); + var remainingImports = wizard.getValue("remainingImports")-1; + wizard.setValue("remainingImports",remainingImports); + if(remainingImports == 0) { + if(context.isSynchronous) { + store.notifyAll(); + refreshDisplay(); + } + wizard.setButtons([ + {caption: config.macros.importTiddlers.doneLabel, tooltip: config.macros.importTiddlers.donePrompt, onClick: config.macros.importTiddlers.onCancel} + ],config.macros.importTiddlers.statusDoneImport); + autoSaveChanges(); + } +}; + +//-- +//-- Sync macro +//-- + +// Synchronisation handlers +config.syncers = {}; + +// Sync state. +var currSync = null; + +// sync macro +config.macros.sync.handler = function(place,macroName,params,wikifier,paramString,tiddler) +{ + if(!wikifier.isStatic) + this.startSync(place); +}; + +config.macros.sync.startSync = function(place) +{ + if(currSync) + config.macros.sync.cancelSync(); + currSync = {}; + currSync.syncList = this.getSyncableTiddlers(); + this.createSyncTasks(); + this.preProcessSyncableTiddlers(); + var wizard = new Wizard(); + currSync.wizard = wizard; + wizard.createWizard(place,this.wizardTitle); + wizard.addStep(this.step1Title,this.step1Html); + var markList = wizard.getElement("markList"); + var listWrapper = document.createElement("div"); + markList.parentNode.insertBefore(listWrapper,markList); + currSync.listView = ListView.create(listWrapper,currSync.syncList,this.listViewTemplate); + this.processSyncableTiddlers(); + wizard.setButtons([ + {caption: this.syncLabel, tooltip: this.syncPrompt, onClick: this.doSync} + ]); +}; + +config.macros.sync.getSyncableTiddlers = function() +{ + var list = []; + store.forEachTiddler(function(title,tiddler) { + var syncItem = {}; + syncItem.serverType = tiddler.getServerType(); + syncItem.serverHost = tiddler.fields['server.host']; + syncItem.serverWorkspace = tiddler.fields['server.workspace']; + syncItem.tiddler = tiddler; + syncItem.title = tiddler.title; + syncItem.isTouched = tiddler.isTouched(); + syncItem.selected = syncItem.isTouched; + syncItem.syncStatus = config.macros.sync.syncStatusList[syncItem.isTouched ? "changedLocally" : "none"]; + syncItem.status = syncItem.syncStatus.text; + if(syncItem.serverType && syncItem.serverHost) + list.push(syncItem); + }); + list.sort(function(a,b) {return a.title < b.title ? -1 : (a.title == b.title ? 0 : +1);}); + return list; +}; + +config.macros.sync.preProcessSyncableTiddlers = function() +{ + for(var t=0; t<currSync.syncList.length; t++) { + si = currSync.syncList[t]; + var ti = si.syncTask.syncMachine.generateTiddlerInfo(si.tiddler); + si.serverUrl = ti.uri; + } +}; + +config.macros.sync.processSyncableTiddlers = function() +{ + for(var t=0; t<currSync.syncList.length; t++) { + si = currSync.syncList[t]; + si.rowElement.style.backgroundColor = si.syncStatus.color; + } +}; + +config.macros.sync.createSyncTasks = function() +{ + currSync.syncTasks = []; + for(var t=0; t<currSync.syncList.length; t++) { + var si = currSync.syncList[t]; + var r = null; + for(var st=0; st<currSync.syncTasks.length; st++) { + var cst = currSync.syncTasks[st]; + if(si.serverType == cst.serverType && si.serverHost == cst.serverHost && si.serverWorkspace == cst.serverWorkspace) + r = cst; + } + if(r == null) { + si.syncTask = this.createSyncTask(si); + currSync.syncTasks.push(si.syncTask); + } else { + si.syncTask = r; + r.syncItems.push(si); + } + } +}; + +config.macros.sync.createSyncTask = function(syncItem) +{ + var st = {}; + st.serverType = syncItem.serverType; + st.serverHost = syncItem.serverHost; + st.serverWorkspace = syncItem.serverWorkspace; + st.syncItems = [syncItem]; + st.syncMachine = new SyncMachine(st.serverType,{ + start: function() { + return this.openHost(st.serverHost,"openWorkspace"); + }, + openWorkspace: function() { + return this.openWorkspace(st.serverWorkspace,"getTiddlerList"); + }, + getTiddlerList: function() { + return this.getTiddlerList("onGetTiddlerList"); + }, + onGetTiddlerList: function(context) { + var tiddlers = context.tiddlers; + for(var t=0; t<st.syncItems.length; t++) { + var si = st.syncItems[t]; + var f = tiddlers.findByField("title",si.title); + if(f !== null) { + if(tiddlers[f].fields['server.page.revision'] > si.tiddler.fields['server.page.revision']) { + si.syncStatus = config.macros.sync.syncStatusList[si.isTouched ? 'changedBoth' : 'changedServer']; + } + } else { + si.syncStatus = config.macros.sync.syncStatusList.notFound; + } + config.macros.sync.updateSyncStatus(si); + } + }, + getTiddler: function(title) { + return this.getTiddler(title,"onGetTiddler"); + }, + onGetTiddler: function(context) { + var tiddler = context.tiddler; + var syncItem = st.syncItems.findByField("title",tiddler.title); + if(syncItem !== null) { + syncItem = st.syncItems[syncItem]; + store.saveTiddler(tiddler.title, tiddler.title, tiddler.text, tiddler.modifier, tiddler.modified, tiddler.tags, tiddler.fields, true, tiddler.created); + syncItem.syncStatus = config.macros.sync.syncStatusList.gotFromServer; + config.macros.sync.updateSyncStatus(syncItem); + } + }, + putTiddler: function(tiddler) { + return this.putTiddler(tiddler,"onPutTiddler"); + }, + onPutTiddler: function(context) { + var title = context.title; + var syncItem = st.syncItems.findByField("title",title); + if(syncItem !== null) { + syncItem = st.syncItems[syncItem]; + store.resetTiddler(title); + syncItem.syncStatus = config.macros.sync.syncStatusList.putToServer; + config.macros.sync.updateSyncStatus(syncItem); + } + } + }); + st.syncMachine.go(); + return st; +}; + +config.macros.sync.updateSyncStatus = function(syncItem) +{ + var e = syncItem.colElements["status"]; + removeChildren(e); + createTiddlyText(e,syncItem.syncStatus.text); + syncItem.rowElement.style.backgroundColor = syncItem.syncStatus.color; +}; + +config.macros.sync.doSync = function(e) +{ + var rowNames = ListView.getSelectedRows(currSync.listView); + for(var t=0; t<currSync.syncList.length; t++) { + var si = currSync.syncList[t]; + if(rowNames.indexOf(si.title) != -1) { + config.macros.sync.doSyncItem(si); + } + } + return false; +}; + +config.macros.sync.doSyncItem = function(syncItem) +{ + var r = true; + var sl = config.macros.sync.syncStatusList; + switch(syncItem.syncStatus) { + case sl.changedServer: + r = syncItem.syncTask.syncMachine.go("getTiddler",syncItem.title); + break; + case sl.notFound: + case sl.changedLocally: + case sl.changedBoth: + r = syncItem.syncTask.syncMachine.go("putTiddler",syncItem.tiddler); + break; + default: + break; + } + if(r !== true) + displayMessage("Error in doSyncItem: " + r); +}; + +config.macros.sync.cancelSync = function() +{ + currSync = null; +}; + +function SyncMachine(serverType,steps) +{ + this.serverType = serverType; + this.adaptor = new config.adaptors[serverType]; + this.steps = steps; +} + +SyncMachine.prototype.go = function(step,context) +{ + var r = context ? context.status : null; + if(typeof r == "string") { + this.invokeError(r); + return r; + } + var h = this.steps[step ? step : "start"]; + if(!h) + return null; + r = h.call(this,context); + if(typeof r == "string") + this.invokeError(r); + return r; +}; + +SyncMachine.prototype.invokeError = function(message) +{ + if(this.steps.error) + this.steps.error(message); +}; + +SyncMachine.prototype.openHost = function(host,nextStep) +{ + var me = this; + return me.adaptor.openHost(host,null,null,function(context) {me.go(nextStep,context);}); +}; + +SyncMachine.prototype.getWorkspaceList = function(nextStep) +{ + var me = this; + return me.adaptor.getWorkspaceList(null,null,function(context) {me.go(nextStep,context);}); +}; + +SyncMachine.prototype.openWorkspace = function(workspace,nextStep) +{ + var me = this; + return me.adaptor.openWorkspace(workspace,null,null,function(context) {me.go(nextStep,context);}); +}; + +SyncMachine.prototype.getTiddlerList = function(nextStep) +{ + var me = this; + return me.adaptor.getTiddlerList(null,null,function(context) {me.go(nextStep,context);}); +}; + +SyncMachine.prototype.generateTiddlerInfo = function(tiddler) +{ + return this.adaptor.generateTiddlerInfo(tiddler); +}; + +SyncMachine.prototype.getTiddler = function(title,nextStep) +{ + var me = this; + return me.adaptor.getTiddler(title,null,null,function(context) {me.go(nextStep,context);}); +}; + +SyncMachine.prototype.putTiddler = function(tiddler,nextStep) +{ + var me = this; + return me.adaptor.putTiddler(tiddler,null,null,function(context) {me.go(nextStep,context);}); +}; + +//-- +//-- Manager UI for groups of tiddlers +//-- + +config.macros.plugins.handler = function(place,macroName,params,wikifier,paramString,tiddler) +{ + var wizard = new Wizard(); + wizard.createWizard(place,this.wizardTitle); + wizard.addStep(this.step1Title,this.step1Html); + var markList = wizard.getElement("markList"); + var listWrapper = document.createElement("div"); + markList.parentNode.insertBefore(listWrapper,markList); + listWrapper.setAttribute("refresh","macro"); + listWrapper.setAttribute("macroName","plugins"); + listWrapper.setAttribute("params",paramString); + this.refresh(listWrapper,paramString); +}; + +config.macros.plugins.refresh = function(listWrapper,params) +{ + var wizard = new Wizard(listWrapper); + var selectedRows = []; + ListView.forEachSelector(listWrapper,function(e,rowName) { + if(e.checked) + selectedRows.push(e.getAttribute("rowName")); + }); + removeChildren(listWrapper); + params = params.parseParams("anon"); + var plugins = installedPlugins.slice(0); + var t,tiddler,p; + var configTiddlers = store.getTaggedTiddlers("systemConfig"); + for(t=0; t<configTiddlers.length; t++) { + tiddler = configTiddlers[t]; + if(plugins.findByField("title",tiddler.title) == null) { + p = getPluginInfo(tiddler); + p.executed = false; + p.log.splice(0,0,this.skippedText); + plugins.push(p); + } + } + for(t=0; t<plugins.length; t++) { + p = plugins[t]; + p.size = p.tiddler.text ? p.tiddler.text.length : 0; + p.forced = p.tiddler.isTagged("systemConfigForce"); + p.disabled = p.tiddler.isTagged("systemConfigDisable"); + p.Selected = selectedRows.indexOf(plugins[t].title) != -1; + } + if(plugins.length == 0) { + createTiddlyElement(listWrapper,"em",null,null,this.noPluginText); + wizard.setButtons([]); + } else { + var listView = ListView.create(listWrapper,plugins,this.listViewTemplate,this.onSelectCommand); + wizard.setValue("listView",listView); + wizard.setButtons([ + {caption: config.macros.plugins.removeLabel, tooltip: config.macros.plugins.removePrompt, onClick: config.macros.plugins.doRemoveTag}, + {caption: config.macros.plugins.deleteLabel, tooltip: config.macros.plugins.deletePrompt, onClick: config.macros.plugins.doDelete} + ]); + } +}; + +config.macros.plugins.doRemoveTag = function(e) +{ + var wizard = new Wizard(this); + var listView = wizard.getValue("listView"); + var rowNames = ListView.getSelectedRows(listView); + if(rowNames.length == 0) { + alert(config.messages.nothingSelected); + } else { + for(var t=0; t<rowNames.length; t++) + store.setTiddlerTag(rowNames[t],false,"systemConfig"); + } +}; + +config.macros.plugins.doDelete = function(e) +{ + var wizard = new Wizard(this); + var listView = wizard.getValue("listView"); + var rowNames = ListView.getSelectedRows(listView); + if(rowNames.length == 0) { + alert(config.messages.nothingSelected); + } else { + if(confirm(config.macros.plugins.confirmDeleteText.format([rowNames.join(", ")]))) { + for(t=0; t<rowNames.length; t++) { + store.removeTiddler(rowNames[t]); + story.closeTiddler(rowNames[t],true); + } + } + } +}; + +//-- +//-- Message area +//-- + +function getMessageDiv() +{ + var msgArea = document.getElementById("messageArea"); + if(!msgArea) + return null; + if(!msgArea.hasChildNodes()) + createTiddlyButton(createTiddlyElement(msgArea,"div",null,"messageToolbar"), + config.messages.messageClose.text, + config.messages.messageClose.tooltip, + clearMessage); + msgArea.style.display = "block"; + return createTiddlyElement(msgArea,"div"); +} + +function displayMessage(text,linkText) +{ + var e = getMessageDiv(); + if(!e) { + alert(text); + return; + } + if(linkText) { + var link = createTiddlyElement(e,"a",null,null,text); + link.href = linkText; + link.target = "_blank"; + } else { + e.appendChild(document.createTextNode(text)); + } +} + +function clearMessage() +{ + var msgArea = document.getElementById("messageArea"); + if(msgArea) { + removeChildren(msgArea); + msgArea.style.display = "none"; + } + return false; +} + +//-- +//-- Refresh mechanism +//-- + +config.refreshers = { + link: function(e,changeList) + { + var title = e.getAttribute("tiddlyLink"); + refreshTiddlyLink(e,title); + return true; + }, + + tiddler: function(e,changeList) + { + var title = e.getAttribute("tiddler"); + var template = e.getAttribute("template"); + if(changeList && changeList.indexOf(title) != -1 && !story.isDirty(title)) + story.refreshTiddler(title,template,true); + else + refreshElements(e,changeList); + return true; + }, + + content: function(e,changeList) + { + var title = e.getAttribute("tiddler"); + var force = e.getAttribute("force"); + if(force != null || changeList == null || changeList.indexOf(title) != -1) { + removeChildren(e); + wikify(store.getTiddlerText(title,title),e,null); + return true; + } else + return false; + }, + + macro: function(e,changeList) + { + var macro = e.getAttribute("macroName"); + var params = e.getAttribute("params"); + if(macro) + macro = config.macros[macro]; + if(macro && macro.refresh) + macro.refresh(e,params); + return true; + }, + styleSheet: "StyleSheet", + defaultStyleSheet: "StyleSheet", + pageTemplate: "PageTemplate", + defaultPageTemplate: "PageTemplate", + colorPalette: "ColorPalette", + defaultColorPalette: "ColorPalette" +}; + +function refreshElements(root,changeList) +{ + var nodes = root.childNodes; + for(var c=0; c<nodes.length; c++) { + var e = nodes[c], type = null; + if(e.getAttribute && (e.tagName ? e.tagName != "IFRAME" : true)) + type = e.getAttribute("refresh"); + var refresher = config.refreshers[type]; + var refreshed = false; + if(refresher != undefined) + refreshed = refresher(e,changeList); + if(e.hasChildNodes() && !refreshed) + refreshElements(e,changeList); + } +} + +function applyHtmlMacros(root,tiddler) +{ + var e = root.firstChild; + while(e) { + var nextChild = e.nextSibling; + if(e.getAttribute) { + var macro = e.getAttribute("macro"); + if(macro) { + var params = ""; + var p = macro.indexOf(" "); + if(p != -1) { + params = macro.substr(p+1); + macro = macro.substr(0,p); + } + invokeMacro(e,macro,params,null,tiddler); + } + } + if(e.hasChildNodes()) + applyHtmlMacros(e,tiddler); + e = nextChild; + } +} + +function refreshPageTemplate(title) +{ + var stash = createTiddlyElement(document.body,"div"); + stash.style.display = "none"; + var display = document.getElementById("tiddlerDisplay"); + var nodes,t; + if(display) { + nodes = display.childNodes; + for(t=nodes.length-1; t>=0; t--) + stash.appendChild(nodes[t]); + } + var wrapper = document.getElementById("contentWrapper"); + + isAvailable = function(title) { + var s = title ? title.indexOf(config.textPrimitives.sectionSeparator) : -1; + if(s!=-1) + title = title.substr(0,s); + return store.tiddlerExists(title) || store.isShadowTiddler(title); + }; + if(!title || !isAvailable(title)) + title = config.refreshers.pageTemplate; + if(!isAvailable(title)) + title = config.refreshers.defaultPageTemplate; //# this one is always avaialable + html = store.getRecursiveTiddlerText(title,null,10); + wrapper.innerHTML = html; + applyHtmlMacros(wrapper); + refreshElements(wrapper); + display = document.getElementById("tiddlerDisplay"); + removeChildren(display); + if(!display) + display = createTiddlyElement(wrapper,"div","tiddlerDisplay"); + nodes = stash.childNodes; + for(t=nodes.length-1; t>=0; t--) + display.appendChild(nodes[t]); + removeNode(stash); +} + +function refreshDisplay(hint) +{ + if(typeof hint == "string") + hint = [hint]; + var e = document.getElementById("contentWrapper"); + refreshElements(e,hint); + if(backstage.isPanelVisible()) { + e = document.getElementById("backstage"); + refreshElements(e,hint); + } +} + +function refreshPageTitle() +{ + document.title = getPageTitle(); +} + +function getPageTitle() +{ + var st = wikifyPlain("SiteTitle"); + var ss = wikifyPlain("SiteSubtitle"); + return st + ((st == "" || ss == "") ? "" : " - ") + ss; +} + +function refreshStyles(title,doc) +{ + setStylesheet(title == null ? "" : store.getRecursiveTiddlerText(title,"",10),title,doc ? doc : document); +} + +function refreshColorPalette(title) +{ + if(!startingUp) + refreshAll(); +} + +function refreshAll() +{ + refreshPageTemplate(); + refreshDisplay(); + refreshStyles("StyleSheetLayout"); + refreshStyles("StyleSheetColors"); + refreshStyles(config.refreshers.styleSheet); + refreshStyles("StyleSheetPrint"); +} + +//-- +//-- Options stuff +//-- + +config.optionHandlers = { + 'txt': { + get: function(name) {return encodeCookie(config.options[name].toString());}, + set: function(name,value) {config.options[name] = decodeCookie(value);} + }, + 'chk': { + get: function(name) {return config.options[name] ? "true" : "false";}, + set: function(name,value) {config.options[name] = value == "true";} + } +}; + +function loadOptionsCookie() +{ + if(safeMode) + return; + var cookies = document.cookie.split(";"); + for(var c=0; c<cookies.length; c++) { + var p = cookies[c].indexOf("="); + if(p != -1) { + var name = cookies[c].substr(0,p).trim(); + var value = cookies[c].substr(p+1).trim(); + var optType = name.substr(0,3); + if(config.optionHandlers[optType] && config.optionHandlers[optType].set) + config.optionHandlers[optType].set(name,value); + } + } +} + +function saveOptionCookie(name) +{ + if(safeMode) + return; + var c = name + "="; + var optType = name.substr(0,3); + if(config.optionHandlers[optType] && config.optionHandlers[optType].get) + c += config.optionHandlers[optType].get(name); + c += "; expires=Fri, 1 Jan 2038 12:00:00 UTC; path=/"; + document.cookie = c; +} + +function encodeCookie(s) +{ + return escape(manualConvertUnicodeToUTF8(s)); +} + +function decodeCookie(s) +{ + s = unescape(s); + var re = /&#[0-9]{1,5};/g; + return s.replace(re,function($0) {return String.fromCharCode(eval($0.replace(/[&#;]/g,"")));}); +} + + +config.macros.option.genericCreate = function(place,type,opt,className,desc) +{ + var typeInfo = config.macros.option.types[type]; + var c = document.createElement(typeInfo.elementType); + if(typeInfo.typeValue) + c.setAttribute("type",typeInfo.typeValue); + c[typeInfo.eventName] = typeInfo.onChange; + c.setAttribute("option",opt); + if(className) + c.className = className; + else + c.className = typeInfo.className; + if(config.optionsDesc[opt]) + c.setAttribute("title",config.optionsDesc[opt]); + place.appendChild(c); + if(desc != "no") + createTiddlyText(place,config.optionsDesc[opt] ? config.optionsDesc[opt] : opt); + c[typeInfo.valueField] = config.options[opt]; + return c; +}; + +config.macros.option.genericOnChange = function(e) +{ + var opt = this.getAttribute("option"); + if(opt) { + var optType = opt.substr(0,3); + var handler = config.macros.option.types[optType]; + if (handler.elementType && handler.valueField) + config.macros.option.propagateOption(opt,handler.valueField,this[handler.valueField],handler.elementType); + } + return true; +}; + +config.macros.option.types = { + 'txt': { + elementType: "input", + valueField: "value", + eventName: "onkeyup", + className: "txtOptionInput", + create: config.macros.option.genericCreate, + onChange: config.macros.option.genericOnChange + }, + 'chk': { + elementType: "input", + valueField: "checked", + eventName: "onclick", + className: "chkOptionInput", + typeValue: "checkbox", + create: config.macros.option.genericCreate, + onChange: config.macros.option.genericOnChange + } +}; + +config.macros.option.propagateOption = function(opt,valueField,value,elementType) +{ + config.options[opt] = value; + saveOptionCookie(opt); + var nodes = document.getElementsByTagName(elementType); + for(var t=0; t<nodes.length; t++) { + var optNode = nodes[t].getAttribute("option"); + if(opt == optNode) + nodes[t][valueField] = value; + } +}; + +config.macros.option.handler = function(place,macroName,params,wikifier,paramString,tiddler) +{ + params = paramString.parseParams("anon",null,true,false,false); + var opt = (params[1] && params[1].name == "anon") ? params[1].value : getParam(params,"name",null); + var className = (params[2] && params[2].name == "anon") ? params[2].value : getParam(params,"class",null); + var desc = getParam(params,"desc","no"); + var type = opt.substr(0,3); + var h = config.macros.option.types[type]; + if (h && h.create) + h.create(place,type,opt,className,desc); +}; + +config.macros.options.handler = function(place,macroName,params,wikifier,paramString,tiddler) +{ + params = paramString.parseParams("anon",null,true,false,false); + var showUnknown = getParam(params,"showUnknown","no"); + var wizard = new Wizard(); + wizard.createWizard(place,this.wizardTitle); + wizard.addStep(this.step1Title,this.step1Html); + var markList = wizard.getElement("markList"); + var chkUnknown = wizard.getElement("chkUnknown"); + chkUnknown.checked = showUnknown == "yes"; + chkUnknown.onchange = this.onChangeUnknown; + var listWrapper = document.createElement("div"); + markList.parentNode.insertBefore(listWrapper,markList); + wizard.setValue("listWrapper",listWrapper); + this.refreshOptions(listWrapper,showUnknown == "yes"); +}; + +config.macros.options.refreshOptions = function(listWrapper,showUnknown) +{ + var opts = []; + for(var n in config.options) { + var opt = {}; + opt.option = ""; + opt.name = n; + opt.lowlight = !config.optionsDesc[n]; + opt.description = opt.lowlight ? this.unknownDescription : config.optionsDesc[n]; + if(!opt.lowlight || showUnknown) + opts.push(opt); + } + opts.sort(function(a,b) {return a.name.substr(3) < b.name.substr(3) ? -1 : (a.name.substr(3) == b.name.substr(3) ? 0 : +1);}); + var listview = ListView.create(listWrapper,opts,this.listViewTemplate); + for(n=0; n<opts.length; n++) { + var type = opts[n].name.substr(0,3); + var h = config.macros.option.types[type]; + if (h && h.create) { + h.create(opts[n].colElements['option'],type,opts[n].name,null,"no"); + } + } +}; + +config.macros.options.onChangeUnknown = function(e) +{ + var wizard = new Wizard(this); + var listWrapper = wizard.getValue("listWrapper"); + removeChildren(listWrapper); + config.macros.options.refreshOptions(listWrapper,this.checked); + return false; +}; + +//-- +//-- Saving +//-- + +var saveUsingSafari = false; + +var startSaveArea = '<div id="' + 'storeArea">'; // Split up into two so that indexOf() of this source doesn't find it +var endSaveArea = '</d' + 'iv>'; + +// If there are unsaved changes, force the user to confirm before exitting +function confirmExit() +{ + hadConfirmExit = true; + if((store && store.isDirty && store.isDirty()) || (story && story.areAnyDirty && story.areAnyDirty())) + return config.messages.confirmExit; +} + +// Give the user a chance to save changes before exitting +function checkUnsavedChanges() +{ + if(store && store.isDirty && store.isDirty() && window.hadConfirmExit === false) { + if(confirm(config.messages.unsavedChangesWarning)) + saveChanges(); + } +} + +function updateLanguageAttribute(s) +{ + if(config.locale) { + var mRE = /(<html(?:.*?)?)(?: xml:lang\="([a-z]+)")?(?: lang\="([a-z]+)")?>/; + var m = mRE.exec(s); + if(m) { + var t = m[1]; + if(m[2]) + t += ' xml:lang="' + config.locale + '"'; + if(m[3]) + t += ' lang="' + config.locale + '"'; + t += ">"; + s = s.substr(0,m.index) + t + s.substr(m.index+m[0].length); + } + } + return s; +} + +function updateMarkupBlock(s,blockName,tiddlerName) +{ + return s.replaceChunk( + "<!--%0-START-->".format([blockName]), + "<!--%0-END-->".format([blockName]), + "\n" + store.getRecursiveTiddlerText(tiddlerName,"") + "\n"); +} + +function updateOriginal(original,posDiv) +{ + if(!posDiv) + posDiv = locateStoreArea(original); + if(!posDiv) { + alert(config.messages.invalidFileError.format([localPath])); + return null; + } + var revised = original.substr(0,posDiv[0] + startSaveArea.length) + "\n" + + convertUnicodeToUTF8(store.allTiddlersAsHtml()) + "\n" + + original.substr(posDiv[1]); + var newSiteTitle = convertUnicodeToUTF8(getPageTitle()).htmlEncode(); + revised = revised.replaceChunk("<title"+">","</title"+">"," " + newSiteTitle + " "); + revised = updateLanguageAttribute(revised); + revised = updateMarkupBlock(revised,"PRE-HEAD","MarkupPreHead"); + revised = updateMarkupBlock(revised,"POST-HEAD","MarkupPostHead"); + revised = updateMarkupBlock(revised,"PRE-BODY","MarkupPreBody"); + revised = updateMarkupBlock(revised,"POST-SCRIPT","MarkupPostBody"); + return revised; +} + +function locateStoreArea(original) +{ + // Locate the storeArea div's + var posOpeningDiv = original.indexOf(startSaveArea); + var limitClosingDiv = original.indexOf("<"+"!--POST-STOREAREA--"+">"); + if(limitClosingDiv == -1) + limitClosingDiv = original.indexOf("<"+"!--POST-BODY-START--"+">"); + var posClosingDiv = original.lastIndexOf(endSaveArea,limitClosingDiv == -1 ? original.length : limitClosingDiv); + return (posOpeningDiv != -1 && posClosingDiv != -1) ? [posOpeningDiv,posClosingDiv] : null; +} + +function autoSaveChanges(onlyIfDirty,tiddlers) +{ + if(config.options.chkAutoSave) + saveChanges(onlyIfDirty,tiddlers); +} + +// Save this tiddlywiki with the pending changes +function saveChanges(onlyIfDirty,tiddlers) +{ + if(onlyIfDirty && !store.isDirty()) + return; + clearMessage(); + // Get the URL of the document + var originalPath = document.location.toString(); + // Check we were loaded from a file URL + if(originalPath.substr(0,5) != "file:") { + alert(config.messages.notFileUrlError); + if(store.tiddlerExists(config.messages.saveInstructions)) + story.displayTiddler(null,config.messages.saveInstructions); + return; + } + var localPath = getLocalPath(originalPath); + // Load the original file + var original = loadFile(localPath); + if(original == null) { + alert(config.messages.cantSaveError); + if(store.tiddlerExists(config.messages.saveInstructions)) + story.displayTiddler(null,config.messages.saveInstructions); + return; + } + // Locate the storeArea div's + var posDiv = locateStoreArea(original); + if(!posDiv) { + alert(config.messages.invalidFileError.format([localPath])); + return; + } + saveBackup(localPath,original); + saveRss(localPath); + saveEmpty(localPath,original,posDiv); + saveMain(localPath,original,posDiv); +} + +function saveBackup(localPath,original) +{ + if(config.options.chkSaveBackups) { + var backupPath = getBackupPath(localPath); + var backup = config.browser.isIE ? ieCopyFile(backupPath,localPath) : saveFile(backupPath,original); + if(backup) + displayMessage(config.messages.backupSaved,"file://" + backupPath); + else + alert(config.messages.backupFailed); + } +} + +function saveRss(localPath) +{ + if(config.options.chkGenerateAnRssFeed) { + var rssPath = localPath.substr(0,localPath.lastIndexOf(".")) + ".xml"; + var rssSave = saveFile(rssPath,convertUnicodeToUTF8(generateRss())); + if(rssSave) + displayMessage(config.messages.rssSaved,"file://" + rssPath); + else + alert(config.messages.rssFailed); + } +} + +function saveEmpty(localPath,original,posDiv) +{ + if(config.options.chkSaveEmptyTemplate) { + var emptyPath,p; + if((p = localPath.lastIndexOf("/")) != -1) + emptyPath = localPath.substr(0,p) + "/empty.html"; + else if((p = localPath.lastIndexOf("\\")) != -1) + emptyPath = localPath.substr(0,p) + "\\empty.html"; + else + emptyPath = localPath + ".empty.html"; + var empty = original.substr(0,posDiv[0] + startSaveArea.length) + original.substr(posDiv[1]); + var emptySave = saveFile(emptyPath,empty); + if(emptySave) + displayMessage(config.messages.emptySaved,"file://" + emptyPath); + else + alert(config.messages.emptyFailed); + } +} + +function saveMain(localPath,original,posDiv) +{ + var save; + try { + var revised = updateOriginal(original,posDiv); + save = saveFile(localPath,revised); + } catch (ex) { + showException(ex); + } + if(save) { + displayMessage(config.messages.mainSaved,"file://" + localPath); + store.setDirty(false); + } else { + alert(config.messages.mainFailed); + } +} + +function getLocalPath(origPath) +{ + var originalPath = convertUriToUTF8(origPath,config.options.txtFileSystemCharSet); + // Remove any location or query part of the URL + var argPos = originalPath.indexOf("?"); + if(argPos != -1) + originalPath = originalPath.substr(0,argPos); + var hashPos = originalPath.indexOf("#"); + if(hashPos != -1) + originalPath = originalPath.substr(0,hashPos); + // Convert file://localhost/ to file:/// + if(originalPath.indexOf("file://localhost/") == 0) + originalPath = "file://" + originalPath.substr(16); + // Convert to a native file format + var localPath; + if(originalPath.charAt(9) == ":") // pc local file + localPath = unescape(originalPath.substr(8)).replace(new RegExp("/","g"),"\\"); + else if(originalPath.indexOf("file://///") == 0) // FireFox pc network file + localPath = "\\\\" + unescape(originalPath.substr(10)).replace(new RegExp("/","g"),"\\"); + else if(originalPath.indexOf("file:///") == 0) // mac/unix local file + localPath = unescape(originalPath.substr(7)); + else if(originalPath.indexOf("file:/") == 0) // mac/unix local file + localPath = unescape(originalPath.substr(5)); + else // pc network file + localPath = "\\\\" + unescape(originalPath.substr(7)).replace(new RegExp("/","g"),"\\"); + return localPath; +} + +function getBackupPath(localPath,title,extension) +{ + var slash = "\\"; + var dirPathPos = localPath.lastIndexOf("\\"); + if(dirPathPos == -1) { + dirPathPos = localPath.lastIndexOf("/"); + slash = "/"; + } + var backupFolder = config.options.txtBackupFolder; + if(!backupFolder || backupFolder == "") + backupFolder = "."; + var backupPath = localPath.substr(0,dirPathPos) + slash + backupFolder + localPath.substr(dirPathPos); + backupPath = backupPath.substr(0,backupPath.lastIndexOf(".")) + "."; + if(title) + backupPath += title.replace(/[\\\/\*\?\":<> ]/g,"_") + "."; + backupPath += (new Date()).convertToYYYYMMDDHHMMSSMMM() + "." + (extension ? extension : "html"); + return backupPath; +} + +function generateRss() +{ + var s = []; + var d = new Date(); + var u = store.getTiddlerText("SiteUrl"); + // Assemble the header + s.push("<" + "?xml version=\"1.0\"?" + ">"); + s.push("<rss version=\"2.0\">"); + s.push("<channel>"); + s.push("<title" + ">" + wikifyPlain("SiteTitle").htmlEncode() + "</title" + ">"); + if(u) + s.push("<link>" + u.htmlEncode() + "</link>"); + s.push("<description>" + wikifyPlain("SiteSubtitle").htmlEncode() + "</description>"); + s.push("<language>en-us</language>"); + s.push("<copyright>Copyright " + d.getFullYear() + " " + config.options.txtUserName.htmlEncode() + "</copyright>"); + s.push("<pubDate>" + d.toGMTString() + "</pubDate>"); + s.push("<lastBuildDate>" + d.toGMTString() + "</lastBuildDate>"); + s.push("<docs>http://blogs.law.harvard.edu/tech/rss</docs>"); + s.push("<generator>TiddlyWiki " + version.major + "." + version.minor + "." + version.revision + "</generator>"); + // The body + var tiddlers = store.getTiddlers("modified","excludeLists"); + var n = config.numRssItems > tiddlers.length ? 0 : tiddlers.length-config.numRssItems; + for (var t=tiddlers.length-1; t>=n; t--) { + s.push("<item>\n" + tiddlers[t].toRssItem(u) + "\n</item>"); + } + // And footer + s.push("</channel>"); + s.push("</rss>"); + // Save it all + return s.join("\n"); +} + +//-- +//-- Filesystem code +//-- + +function convertUTF8ToUnicode(u) +{ + return window.netscape == undefined ? manualConvertUTF8ToUnicode(u) : mozConvertUTF8ToUnicode(u); +} + +function manualConvertUTF8ToUnicode(utf) +{ + var uni = utf; + var src = 0; + var dst = 0; + var b1, b2, b3; + var c; + while(src < utf.length) { + b1 = utf.charCodeAt(src++); + if(b1 < 0x80) { + dst++; + } else if(b1 < 0xE0) { + b2 = utf.charCodeAt(src++); + c = String.fromCharCode(((b1 & 0x1F) << 6) | (b2 & 0x3F)); + uni = uni.substring(0,dst++).concat(c,utf.substr(src)); + } else { + b2 = utf.charCodeAt(src++); + b3 = utf.charCodeAt(src++); + c = String.fromCharCode(((b1 & 0xF) << 12) | ((b2 & 0x3F) << 6) | (b3 & 0x3F)); + uni = uni.substring(0,dst++).concat(c,utf.substr(src)); + } + } + return uni; +} + +function mozConvertUTF8ToUnicode(u) +{ + try { + netscape.security.PrivilegeManager.enablePrivilege("UniversalXPConnect"); + var converter = Components.classes["@mozilla.org/intl/scriptableunicodeconverter"].createInstance(Components.interfaces.nsIScriptableUnicodeConverter); + converter.charset = "UTF-8"; + } catch(ex) { + return manualConvertUTF8ToUnicode(u); + } // fallback + var s = converter.ConvertToUnicode(u); + var fin = converter.Finish(); + return (fin.length > 0) ? s+fin : s; +} + +function convertUnicodeToUTF8(s) +{ + if(window.netscape == undefined) + return manualConvertUnicodeToUTF8(s); + else + return mozConvertUnicodeToUTF8(s); +} + +function manualConvertUnicodeToUTF8(s) +{ + var re = /[^\u0000-\u007F]/g ; + return s.replace(re,function($0) {return "&#" + $0.charCodeAt(0).toString() + ";";}); +} + +function mozConvertUnicodeToUTF8(s) +{ + try { + netscape.security.PrivilegeManager.enablePrivilege("UniversalXPConnect"); + var converter = Components.classes["@mozilla.org/intl/scriptableunicodeconverter"].createInstance(Components.interfaces.nsIScriptableUnicodeConverter); + converter.charset = "UTF-8"; + } catch(ex) { + return manualConvertUnicodeToUTF8(s); + } // fallback + var u = converter.ConvertFromUnicode(s); + var fin = converter.Finish(); + return fin.length > 0 ? u + fin : u; +} + +function convertUriToUTF8(uri,charSet) +{ + if(window.netscape == undefined || charSet == undefined || charSet == "") + return uri; + try { + netscape.security.PrivilegeManager.enablePrivilege("UniversalXPConnect"); + var converter = Components.classes["@mozilla.org/intl/utf8converterservice;1"].getService(Components.interfaces.nsIUTF8ConverterService); + } catch(ex) { + return uri; + } + return converter.convertURISpecToUTF8(uri,charSet); +} + +function saveFile(fileUrl,content) +{ + var r = mozillaSaveFile(fileUrl,content); + if(!r) + r = ieSaveFile(fileUrl,content); + if(!r) + r = javaSaveFile(fileUrl,content); + return r; +} + +function loadFile(fileUrl) +{ + var r = mozillaLoadFile(fileUrl); + if((r == null) || (r == false)) + r = ieLoadFile(fileUrl); + if((r == null) || (r == false)) + r = javaLoadFile(fileUrl); + return r; +} + +function ieCreatePath(path) +{ + try { + var fso = new ActiveXObject("Scripting.FileSystemObject"); + } catch(ex) { + return null; + } + + var pos = path.lastIndexOf("\\"); + if(pos!=-1) + path = path.substring(0, pos+1); + + var scan = []; + scan.push(path); + var i = 0; + do { + var parent = fso.GetParentFolderName(scan[i++]); + if (fso.FolderExists(parent)) + break; + scan.push(parent); + } while(true); + + for(i=scan.length-1;i>=0;i--) { + if (!fso.FolderExists(scan[i])) + fso.CreateFolder(scan[i]); + } + return true; +} + +// Returns null if it can't do it, false if there's an error, true if it saved OK +function ieSaveFile(filePath,content) +{ + ieCreatePath(filePath); + try { + var fso = new ActiveXObject("Scripting.FileSystemObject"); + } catch(ex) { + return null; + } + var file = fso.OpenTextFile(filePath,2,-1,0); + file.Write(content); + file.Close(); + return true; +} + +// Returns null if it can't do it, false if there's an error, or a string of the content if successful +function ieLoadFile(filePath) +{ + try { + var fso = new ActiveXObject("Scripting.FileSystemObject"); + var file = fso.OpenTextFile(filePath,1); + var content = file.ReadAll(); + file.Close(); + } catch(ex) { + return null; + } + return content; +} + +function ieCopyFile(dest,source) +{ + ieCreatePath(dest); + try { + var fso = new ActiveXObject("Scripting.FileSystemObject"); + fso.GetFile(source).Copy(dest); + } catch(ex) { + return false; + } + return true; +} + +// Returns null if it can't do it, false if there's an error, true if it saved OK +function mozillaSaveFile(filePath,content) +{ + if(window.Components) { + try { + netscape.security.PrivilegeManager.enablePrivilege("UniversalXPConnect"); + var file = Components.classes["@mozilla.org/file/local;1"].createInstance(Components.interfaces.nsILocalFile); + file.initWithPath(filePath); + if(!file.exists()) + file.create(0,0664); + var out = Components.classes["@mozilla.org/network/file-output-stream;1"].createInstance(Components.interfaces.nsIFileOutputStream); + out.init(file,0x20|0x02,00004,null); + out.write(content,content.length); + out.flush(); + out.close(); + return true; + } catch(ex) { + return false; + } + } + return null; +} + +// Returns null if it can't do it, false if there's an error, or a string of the content if successful +function mozillaLoadFile(filePath) +{ + if(window.Components) { + try { + netscape.security.PrivilegeManager.enablePrivilege("UniversalXPConnect"); + var file = Components.classes["@mozilla.org/file/local;1"].createInstance(Components.interfaces.nsILocalFile); + file.initWithPath(filePath); + if(!file.exists()) + return null; + var inputStream = Components.classes["@mozilla.org/network/file-input-stream;1"].createInstance(Components.interfaces.nsIFileInputStream); + inputStream.init(file,0x01,00004,null); + var sInputStream = Components.classes["@mozilla.org/scriptableinputstream;1"].createInstance(Components.interfaces.nsIScriptableInputStream); + sInputStream.init(inputStream); + return sInputStream.read(sInputStream.available()); + } catch(ex) { + return false; + } + } + return null; +} + +function javaUrlToFilename(url) +{ + var f = "//localhost"; + if(url.indexOf(f) == 0) + return url.substring(f.length); + var i = url.indexOf(":"); + if(i > 0) + return url.substring(i-1); + return url; +} + +function javaSaveFile(filePath,content) +{ + try { + if(document.applets["TiddlySaver"]) + return document.applets["TiddlySaver"].saveFile(javaUrlToFilename(filePath),"UTF-8",content); + } catch(ex) { + } + try { + var s = new java.io.PrintStream(new java.io.FileOutputStream(javaUrlToFilename(filePath))); + s.print(content); + s.close(); + } catch(ex) { + return null; + } + return true; +} + +function javaLoadFile(filePath) +{ + try { + if(document.applets["TiddlySaver"]) + return String(document.applets["TiddlySaver"].loadFile(javaUrlToFilename(filePath),"UTF-8")); + } catch(ex) { + } + var content = []; + try { + var r = new java.io.BufferedReader(new java.io.FileReader(javaUrlToFilename(filePath))); + var line; + while((line = r.readLine()) != null) + content.push(new String(line)); + r.close(); + } catch(ex) { + return null; + } + return content.join("\n"); +} + +//-- +//-- Server adaptor for talking to static TiddlyWiki files +//-- + +function FileAdaptor() +{ + this.host = null; + this.store = null; + return this; +} + +FileAdaptor.serverType = 'file'; + +FileAdaptor.prototype.setContext = function(context,userParams,callback) +{ + if(!context) context = {}; + context.userParams = userParams; + if(callback) context.callback = callback; + context.adaptor = this; + if(!context.host) + context.host = this.host; + context.host = FileAdaptor.fullHostName(context.host); + if(!context.workspace) + context.workspace = this.workspace; + return context; +}; + +FileAdaptor.fullHostName = function(host) +{ + if(!host) + return ''; + if(!host.match(/:\/\//)) + host = 'http://' + host; + return host; +}; + +FileAdaptor.minHostName = function(host) +{ + return host ? host.replace(/^http:\/\//,'').replace(/\/$/,'') : ''; +}; + +// Open the specified host +FileAdaptor.prototype.openHost = function(host,context,userParams,callback) +{ + this.host = host; + context = this.setContext(context,userParams,callback); + context.status = true; + if(callback) + window.setTimeout(function() {callback(context,userParams);},10); + return true; +}; + +FileAdaptor.loadTiddlyWikiCallback = function(status,context,responseText,url,xhr) +{ + context.status = status; + if(!status) { + context.statusText = "Error reading file: " + xhr.statusText; + } else { + context.adaptor.store = new TiddlyWiki(); + if(!context.adaptor.store.importTiddlyWiki(responseText)) + context.statusText = config.messages.invalidFileError.format([url]); + } + context.complete(context,context.userParams); +}; + +// Get the list of workspaces on a given server +FileAdaptor.prototype.getWorkspaceList = function(context,userParams,callback) +{ + context = this.setContext(context,userParams,callback); + context.workspaces = [{title:"(default)"}]; + context.status = true; + if(callback) + window.setTimeout(function() {callback(context,userParams);},10); + return true; +}; + +// Open the specified workspace +FileAdaptor.prototype.openWorkspace = function(workspace,context,userParams,callback) +{ + this.workspace = workspace; + context = this.setContext(context,userParams,callback); + context.status = true; + if(callback) + window.setTimeout(function() {callback(context,userParams);},10); + return true; +}; + +// Gets the list of tiddlers within a given workspace +FileAdaptor.prototype.getTiddlerList = function(context,userParams,callback,filter) +{ + context = this.setContext(context,userParams,callback); + if(!context.filter) + context.filter = filter; + context.complete = FileAdaptor.getTiddlerListComplete; + if(this.store) { + var ret = context.complete(context,context.userParams); + } else { + ret = loadRemoteFile(context.host,FileAdaptor.loadTiddlyWikiCallback,context); + if(typeof ret != "string") + ret = true; + } + return ret; +}; + +FileAdaptor.getTiddlerListComplete = function(context,userParams) +{ + if(context.filter) { + context.tiddlers = context.adaptor.store.filterTiddlers(context.filter); + } else { + context.tiddlers = []; + context.adaptor.store.forEachTiddler(function(title,tiddler) {context.tiddlers.push(tiddler);}); + } + for(var i=0; i<context.tiddlers.length; i++) { + context.tiddlers[i].fields['server.type'] = FileAdaptor.serverType; + context.tiddlers[i].fields['server.host'] = FileAdaptor.minHostName(context.host); + context.tiddlers[i].fields['server.page.revision'] = context.tiddlers[i].modified.convertToYYYYMMDDHHMM(); + } + context.status = true; + if(context.callback) { + window.setTimeout(function() {context.callback(context,userParams);},10); + } + return true; +}; + +FileAdaptor.prototype.generateTiddlerInfo = function(tiddler) +{ + var info = {}; + info.uri = tiddler.fields['server.host'] + "#" + tiddler.title; + return info; +}; + +// Retrieve a tiddler from a given workspace on a given server +FileAdaptor.prototype.getTiddler = function(title,context,userParams,callback) +{ + context = this.setContext(context,userParams,callback); + context.title = title; + context.complete = FileAdaptor.getTiddlerComplete; + return context.adaptor.store ? + context.complete(context,context.userParams) : + loadRemoteFile(context.host,FileAdaptor.loadTiddlyWikiCallback,context); +}; + +FileAdaptor.getTiddlerComplete = function(context,userParams) +{ + var t = context.adaptor.store.fetchTiddler(context.title); + t.fields['server.type'] = FileAdaptor.serverType; + t.fields['server.host'] = FileAdaptor.minHostName(context.host); + t.fields['server.page.revision'] = t.modified.convertToYYYYMMDDHHMM(); + context.tiddler = t; + context.status = true; + if(context.allowSynchronous) { + context.isSynchronous = true; + context.callback(context,userParams); + } else { + window.setTimeout(function() {callback(context,userParams);},10); + } + return true; +}; + +FileAdaptor.prototype.close = function() +{ + delete this.store; + this.store = null; +}; + +config.adaptors[FileAdaptor.serverType] = FileAdaptor; + +//-- +//-- Remote HTTP requests +//-- + +function loadRemoteFile(url,callback,params) +{ + return doHttp("GET",url,null,null,null,null,callback,params,null); +} + +// HTTP status codes +var httpStatus = { + OK: 200, + ContentCreated: 201, + NoContent: 204, + MultiStatus: 207, + Unauthorized: 401, + Forbidden: 403, + NotFound: 404, + MethodNotAllowed: 405 +}; + +function doHttp(type,url,data,contentType,username,password,callback,params,headers) +{ + var x = getXMLHttpRequest(); + if(!x) + return "Can't create XMLHttpRequest object"; + x.onreadystatechange = function() { + try { + var status = x.status; + } catch(ex) { + status = false; + } + if (x.readyState == 4 && callback && (status !== undefined)) { + if([0, httpStatus.OK, httpStatus.ContentCreated, httpStatus.NoContent, httpStatus.MultiStatus].contains(status)) + callback(true,params,x.responseText,url,x); + else + callback(false,params,null,url,x); + x.onreadystatechange = function(){}; + x = null; + } + }; + if(window.Components && window.netscape && window.netscape.security && document.location.protocol.indexOf("http") == -1) + window.netscape.security.PrivilegeManager.enablePrivilege("UniversalBrowserRead"); + try { + url = url + (url.indexOf("?") < 0 ? "?" : "&") + "nocache=" + Math.random(); + x.open(type,url,true,username,password); + if(data) + x.setRequestHeader("Content-Type", contentType ? contentType : "application/x-www-form-urlencoded"); + if(x.overrideMimeType) + x.setRequestHeader("Connection", "close"); + if(headers) { + for(var n in headers) + x.setRequestHeader(n,headers[n]); + } + x.setRequestHeader("X-Requested-With", "TiddlyWiki " + version.major + "." + version.minor + "." + version.revision + (version.beta ? " (beta " + version.beta + ")" : "")); + x.send(data); + } catch(ex) { + return exceptionText(ex); + } + return x; +} + +function getXMLHttpRequest() +{ + try { + var x = new XMLHttpRequest(); // Modern + } catch(ex) { + try { + x = new ActiveXObject("Msxml2.XMLHTTP"); // IE 6 + } catch (ex2) { + return null; + } + } + return x; +} + +//-- +//-- TiddlyWiki-specific utility functions +//-- + +function createTiddlyButton(parent,text,tooltip,action,className,id,accessKey,attribs) +{ + var btn = document.createElement("a"); + if(action) { + btn.onclick = action; + btn.setAttribute("href","javascript:;"); + } + if(tooltip) + btn.setAttribute("title",tooltip); + if(text) + btn.appendChild(document.createTextNode(text)); + btn.className = className ? className : "button"; + if(id) + btn.id = id; + if(attribs) { + for(var n in attribs) { + btn.setAttribute(n,attribs[n]); + } + } + if(parent) + parent.appendChild(btn); + if(accessKey) + btn.setAttribute("accessKey",accessKey); + return btn; +} + +function createTiddlyLink(place,title,includeText,className,isStatic,linkedFromTiddler,noToggle) +{ + var text = includeText ? title : null; + var i = getTiddlyLinkInfo(title,className); + var btn = isStatic ? createExternalLink(place,store.getTiddlerText("SiteUrl",null) + "#" + title) : createTiddlyButton(place,text,i.subTitle,onClickTiddlerLink,i.classes); + btn.setAttribute("refresh","link"); + btn.setAttribute("tiddlyLink",title); + if(noToggle) + btn.setAttribute("noToggle","true"); + if(linkedFromTiddler) { + var fields = linkedFromTiddler.getInheritedFields(); + if(fields) + btn.setAttribute("tiddlyFields",fields); + } + return btn; +} + +function refreshTiddlyLink(e,title) +{ + var i = getTiddlyLinkInfo(title,e.className); + e.className = i.classes; + e.title = i.subTitle; +} + +function getTiddlyLinkInfo(title,currClasses) +{ + var classes = currClasses ? currClasses.split(" ") : []; + classes.pushUnique("tiddlyLink"); + var tiddler = store.fetchTiddler(title); + var subTitle; + if(tiddler) { + subTitle = tiddler.getSubtitle(); + classes.pushUnique("tiddlyLinkExisting"); + classes.remove("tiddlyLinkNonExisting"); + classes.remove("shadow"); + } else { + classes.remove("tiddlyLinkExisting"); + classes.pushUnique("tiddlyLinkNonExisting"); + if(store.isShadowTiddler(title)) { + subTitle = config.messages.shadowedTiddlerToolTip.format([title]); + classes.pushUnique("shadow"); + } else { + subTitle = config.messages.undefinedTiddlerToolTip.format([title]); + classes.remove("shadow"); + } + } + if(typeof config.annotations[title]=="string") + subTitle = config.annotations[title]; + return {classes: classes.join(" "),subTitle: subTitle}; +} + +function createExternalLink(place,url) +{ + var link = document.createElement("a"); + link.className = "externalLink"; + link.href = url; + link.title = config.messages.externalLinkTooltip.format([url]); + if(config.options.chkOpenInNewWindow) + link.target = "_blank"; + place.appendChild(link); + return link; +} + +// Event handler for clicking on a tiddly link +function onClickTiddlerLink(ev) +{ + var e = ev ? ev : window.event; + var target = resolveTarget(e); + var link = target; + var title = null; + var fields = null; + var noToggle = null; + do { + title = link.getAttribute("tiddlyLink"); + fields = link.getAttribute("tiddlyFields"); + noToggle = link.getAttribute("noToggle"); + link = link.parentNode; + } while(title == null && link != null); + if(!store.isShadowTiddler(title)) { + var f = fields ? fields.decodeHashMap() : {}; + fields = String.encodeHashMap(merge(f,config.defaultCustomFields,true)); + } + if(title) { + var toggling = e.metaKey || e.ctrlKey; + if(config.options.chkToggleLinks) + toggling = !toggling; + if(noToggle) + toggling = false; + if(store.getTiddler(title)) + fields = null; + story.displayTiddler(target,title,null,true,null,fields,toggling); + } + clearMessage(); + return false; +} + +// Create a button for a tag with a popup listing all the tiddlers that it tags +function createTagButton(place,tag,excludeTiddler) +{ + var btn = createTiddlyButton(place,tag,config.views.wikified.tag.tooltip.format([tag]),onClickTag); + btn.setAttribute("tag",tag); + if(excludeTiddler) + btn.setAttribute("tiddler",excludeTiddler); + return btn; +} + +// Event handler for clicking on a tiddler tag +function onClickTag(ev) +{ + var e = ev ? ev : window.event; + var popup = Popup.create(this); + var tag = this.getAttribute("tag"); + var title = this.getAttribute("tiddler"); + if(popup && tag) { + var tagged = store.getTaggedTiddlers(tag); + var titles = []; + var li,r; + for(r=0;r<tagged.length;r++) { + if(tagged[r].title != title) + titles.push(tagged[r].title); + } + var lingo = config.views.wikified.tag; + if(titles.length > 0) { + var openAll = createTiddlyButton(createTiddlyElement(popup,"li"),lingo.openAllText.format([tag]),lingo.openAllTooltip,onClickTagOpenAll); + openAll.setAttribute("tag",tag); + createTiddlyElement(createTiddlyElement(popup,"li",null,"listBreak"),"div"); + for(r=0; r<titles.length; r++) { + createTiddlyLink(createTiddlyElement(popup,"li"),titles[r],true); + } + } else { + createTiddlyText(createTiddlyElement(popup,"li",null,"disabled"),lingo.popupNone.format([tag])); + } + createTiddlyElement(createTiddlyElement(popup,"li",null,"listBreak"),"div"); + var h = createTiddlyLink(createTiddlyElement(popup,"li"),tag,false); + createTiddlyText(h,lingo.openTag.format([tag])); + } + Popup.show(); + e.cancelBubble = true; + if(e.stopPropagation) e.stopPropagation(); + return false; +} + +// Event handler for 'open all' on a tiddler popup +function onClickTagOpenAll(ev) +{ + var e = ev ? ev : window.event; + var tag = this.getAttribute("tag"); + var tagged = store.getTaggedTiddlers(tag); + story.displayTiddlers(this,tagged); + return false; +} + +function onClickError(ev) +{ + var e = ev ? ev : window.event; + var popup = Popup.create(this); + var lines = this.getAttribute("errorText").split("\n"); + for(var t=0; t<lines.length; t++) + createTiddlyElement(popup,"li",null,null,lines[t]); + Popup.show(); + e.cancelBubble = true; + if(e.stopPropagation) e.stopPropagation(); + return false; +} + +function createTiddlyDropDown(place,onchange,options,defaultValue) +{ + var sel = createTiddlyElement(place,"select"); + sel.onchange = onchange; + for(var t=0; t<options.length; t++) { + var e = createTiddlyElement(sel,"option",null,null,options[t].caption); + e.value = options[t].name; + if(options[t].name == defaultValue) + e.selected = true; + } + return sel; +} + +function createTiddlyPopup(place,caption,tooltip,tiddler) +{ + if(tiddler.text) { + createTiddlyLink(place,caption,true); + var btn = createTiddlyButton(place,glyph("downArrow"),tooltip,onClickTiddlyPopup,"tiddlerPopupButton"); + btn.tiddler = tiddler; + } else { + createTiddlyText(place,caption); + } +} + +function onClickTiddlyPopup(ev) +{ + var e = ev ? ev : window.event; + var tiddler = this.tiddler; + if(tiddler.text) { + var popup = Popup.create(this,"div","popupTiddler"); + wikify(tiddler.text,popup,null,tiddler); + Popup.show(); + } + if(e) e.cancelBubble = true; + if(e && e.stopPropagation) e.stopPropagation(); + return false; +} + +function createTiddlyError(place,title,text) +{ + var btn = createTiddlyButton(place,title,null,onClickError,"errorButton"); + if(text) btn.setAttribute("errorText",text); +} + +function merge(dst,src,preserveExisting) +{ + for(p in src) { + if(!preserveExisting || dst[p] === undefined) + dst[p] = src[p]; + } + return dst; +} + +// Returns a string containing the description of an exception, optionally prepended by a message +function exceptionText(e,message) +{ + var s = e.description ? e.description : e.toString(); + return message ? "%0:\n%1".format([message,s]) : s; +} + +// Displays an alert of an exception description with optional message +function showException(e,message) +{ + alert(exceptionText(e,message)); +} + +function alertAndThrow(m) +{ + alert(m); + throw(m); +} + +function glyph(name) +{ + var g = config.glyphs; + var b = g.currBrowser; + if(b == null) { + b = 0; + while(!g.browsers[b]() && b < g.browsers.length-1) + b++; + g.currBrowser = b; + } + if(!g.codes[name]) + return ""; + return g.codes[name][b]; +} + + +//- +//- Animation engine +//- + +function Animator() +{ + this.running = 0; // Incremented at start of each animation, decremented afterwards. If zero, the interval timer is disabled + this.timerID = 0; // ID of the timer used for animating + this.animations = []; // List of animations in progress + return this; +} + +// Start animation engine +Animator.prototype.startAnimating = function() //# Variable number of arguments +{ + for(var t=0; t<arguments.length; t++) + this.animations.push(arguments[t]); + if(this.running == 0) { + var me = this; + this.timerID = window.setInterval(function() {me.doAnimate(me);},10); + } + this.running += arguments.length; +}; + +// Perform an animation engine tick, calling each of the known animation modules +Animator.prototype.doAnimate = function(me) +{ + var a = 0; + while(a < me.animations.length) { + var animation = me.animations[a]; + if(animation.tick()) { + a++; + } else { + me.animations.splice(a,1); + if(--me.running == 0) + window.clearInterval(me.timerID); + } + } +}; + +Animator.slowInSlowOut = function(progress) +{ + return(1-((Math.cos(progress * Math.PI)+1)/2)); +}; + +//-- +//-- Morpher animation +//-- + +// Animate a set of properties of an element +function Morpher(element,duration,properties,callback) +{ + this.element = element; + this.duration = duration; + this.properties = properties; + this.startTime = new Date(); + this.endTime = Number(this.startTime) + duration; + this.callback = callback; + this.tick(); + return this; +} + +Morpher.prototype.assignStyle = function(element,style,value) +{ + switch(style) { + case "-tw-vertScroll": + window.scrollTo(findScrollX(),value); + break; + case "-tw-horizScroll": + window.scrollTo(value,findScrollY()); + break; + default: + element.style[style] = value; + break; + } +}; + +Morpher.prototype.stop = function() +{ + for(var t=0; t<this.properties.length; t++) { + var p = this.properties[t]; + if(p.atEnd !== undefined) { + this.assignStyle(this.element,p.style,p.atEnd); + } + } + if(this.callback) + this.callback(this.element,this.properties); +}; + +Morpher.prototype.tick = function() +{ + var currTime = Number(new Date()); + progress = Animator.slowInSlowOut(Math.min(1,(currTime-this.startTime)/this.duration)); + for(var t=0; t<this.properties.length; t++) { + var p = this.properties[t]; + if(p.start !== undefined && p.end !== undefined) { + var template = p.template ? p.template : "%0"; + switch(p.format) { + case undefined: + case "style": + var v = p.start + (p.end-p.start) * progress; + this.assignStyle(this.element,p.style,template.format([v])); + break; + case "color": + break; + } + } + } + if(currTime >= this.endTime) { + this.stop(); + return false; + } + return true; +}; + +//-- +//-- Zoomer animation +//-- + +function Zoomer(text,startElement,targetElement,unused) +{ + var e = createTiddlyElement(document.body,"div",null,"zoomer"); + createTiddlyElement(e,"div",null,null,text); + var winWidth = findWindowWidth(); + var winHeight = findWindowHeight(); + var p = [ + {style: 'left', start: findPosX(startElement), end: findPosX(targetElement), template: '%0px'}, + {style: 'top', start: findPosY(startElement), end: findPosY(targetElement), template: '%0px'}, + {style: 'width', start: Math.min(startElement.scrollWidth,winWidth), end: Math.min(targetElement.scrollWidth,winWidth), template: '%0px', atEnd: 'auto'}, + {style: 'height', start: Math.min(startElement.scrollHeight,winHeight), end: Math.min(targetElement.scrollHeight,winHeight), template: '%0px', atEnd: 'auto'}, + {style: 'fontSize', start: 8, end: 24, template: '%0pt'} + ]; + var c = function(element,properties) {removeNode(element);}; + return new Morpher(e,config.animDuration,p,c); +} + +//-- +//-- Scroller animation +//-- + +function Scroller(targetElement,unused) +{ + var p = [ + {style: '-tw-vertScroll', start: findScrollY(), end: ensureVisible(targetElement)} + ]; + return new Morpher(targetElement,config.animDuration,p); +} + +//-- +//-- Slider animation +//-- + +// deleteMode - "none", "all" [delete target element and it's children], [only] "children" [but not the target element] +function Slider(element,opening,unused,deleteMode) +{ + element.style.overflow = 'hidden'; + if(opening) + element.style.height = '0px'; // Resolves a Firefox flashing bug + element.style.display = 'block'; + var left = findPosX(element); + var width = element.scrollWidth; + var height = element.scrollHeight; + var winWidth = findWindowWidth(); + var p = []; + var c = null; + if(opening) { + p.push({style: 'height', start: 0, end: height, template: '%0px', atEnd: 'auto'}); + p.push({style: 'opacity', start: 0, end: 1, template: '%0'}); + p.push({style: 'filter', start: 0, end: 100, template: 'alpha(opacity:%0)'}); + } else { + p.push({style: 'height', start: height, end: 0, template: '%0px'}); + p.push({style: 'display', atEnd: 'none'}); + p.push({style: 'opacity', start: 1, end: 0, template: '%0'}); + p.push({style: 'filter', start: 100, end: 0, template: 'alpha(opacity:%0)'}); + switch(deleteMode) { + case "all": + c = function(element,properties) {removeNode(element);}; + break; + case "children": + c = function(element,properties) {removeChildren(element);}; + break; + } + } + return new Morpher(element,config.animDuration,p,c); +} + +//-- +//-- Popup menu +//-- + +var Popup = { + stack: [] // Array of objects with members root: and popup: + }; + +Popup.create = function(root,elem,theClass) +{ + Popup.remove(); + var popup = createTiddlyElement(document.body,elem ? elem : "ol","popup",theClass ? theClass : "popup"); + Popup.stack.push({root: root, popup: popup}); + return popup; +}; + +Popup.onDocumentClick = function(ev) +{ + var e = ev ? ev : window.event; + if(e.eventPhase == undefined) + Popup.remove(); + else if(e.eventPhase == Event.BUBBLING_PHASE || e.eventPhase == Event.AT_TARGET) + Popup.remove(); + return true; +}; + +Popup.show = function(unused1,unused2) +{ + var curr = Popup.stack[Popup.stack.length-1]; + this.place(curr.root,curr.popup); + addClass(curr.root,"highlight"); + if(config.options.chkAnimate && anim && typeof Scroller == "function") + anim.startAnimating(new Scroller(curr.popup)); + else + window.scrollTo(0,ensureVisible(curr.popup)); +}; + +Popup.place = function(root,popup,offset) +{ + if(!offset) var offset = {x:0, y:0}; + var rootLeft = findPosX(root); + var rootTop = findPosY(root); + var rootHeight = root.offsetHeight; + var popupLeft = rootLeft + offset.x; + var popupTop = rootTop + rootHeight + offset.y; + var winWidth = findWindowWidth(); + if(popup.offsetWidth > winWidth*0.75) + popup.style.width = winWidth*0.75 + "px"; + var popupWidth = popup.offsetWidth; + if(popupLeft + popupWidth > winWidth) + popupLeft = winWidth - popupWidth; + popup.style.left = popupLeft + "px"; + popup.style.top = popupTop + "px"; + popup.style.display = "block"; +}; + +Popup.remove = function() +{ + if(Popup.stack.length > 0) { + Popup.removeFrom(0); + } +}; + +Popup.removeFrom = function(from) +{ + for(var t=Popup.stack.length-1; t>=from; t--) { + var p = Popup.stack[t]; + removeClass(p.root,"highlight"); + removeNode(p.popup); + } + Popup.stack = Popup.stack.slice(0,from); +}; + +//-- +//-- Wizard support +//-- + +function Wizard(elem) +{ + if(elem) { + this.formElem = findRelated(elem,"wizard","className"); + this.bodyElem = findRelated(this.formElem.firstChild,"wizardBody","className","nextSibling"); + this.footElem = findRelated(this.formElem.firstChild,"wizardFooter","className","nextSibling"); + } else { + this.formElem = null; + this.bodyElem = null; + this.footElem = null; + } +} + +Wizard.prototype.setValue = function(name,value) +{ + if(this.formElem) + this.formElem[name] = value; +}; + +Wizard.prototype.getValue = function(name) +{ + return this.formElem ? this.formElem[name] : null; +}; + +Wizard.prototype.createWizard = function(place,title) +{ + this.formElem = createTiddlyElement(place,"form",null,"wizard"); + createTiddlyElement(this.formElem,"h1",null,null,title); + this.bodyElem = createTiddlyElement(this.formElem,"div",null,"wizardBody"); + this.footElem = createTiddlyElement(this.formElem,"div",null,"wizardFooter"); +}; + +Wizard.prototype.clear = function() +{ + removeChildren(this.bodyElem); +}; + +Wizard.prototype.setButtons = function(buttonInfo,status) +{ + removeChildren(this.footElem); + for(var t=0; t<buttonInfo.length; t++) { + createTiddlyButton(this.footElem,buttonInfo[t].caption,buttonInfo[t].tooltip,buttonInfo[t].onClick); + insertSpacer(this.footElem); + } + if(typeof status == "string") { + createTiddlyElement(this.footElem,"span",null,"status",status); + } +}; + +Wizard.prototype.addStep = function(stepTitle,html) +{ + removeChildren(this.bodyElem); + var w = createTiddlyElement(this.bodyElem,"div"); + createTiddlyElement(w,"h2",null,null,stepTitle); + var step = createTiddlyElement(w,"div",null,"wizardStep"); + step.innerHTML = html; + applyHtmlMacros(step,tiddler); +}; + +Wizard.prototype.getElement = function(name) +{ + return this.formElem.elements[name]; +}; + +//-- +//-- ListView gadget +//-- + +var ListView = {}; + +// Create a listview +ListView.create = function(place,listObject,listTemplate,callback,className) +{ + var table = createTiddlyElement(place,"table",null,className ? className : "listView twtable"); + var thead = createTiddlyElement(table,"thead"); + var r = createTiddlyElement(thead,"tr"); + for(var t=0; t<listTemplate.columns.length; t++) { + var columnTemplate = listTemplate.columns[t]; + var c = createTiddlyElement(r,"th"); + var colType = ListView.columnTypes[columnTemplate.type]; + if(colType && colType.createHeader) + colType.createHeader(c,columnTemplate,t); + } + var tbody = createTiddlyElement(table,"tbody"); + for(var rc=0; rc<listObject.length; rc++) { + rowObject = listObject[rc]; + r = createTiddlyElement(tbody,"tr"); + for(c=0; c<listTemplate.rowClasses.length; c++) { + if(rowObject[listTemplate.rowClasses[c].field]) + addClass(r,listTemplate.rowClasses[c].className); + } + rowObject.rowElement = r; + rowObject.colElements = {}; + for(var cc=0; cc<listTemplate.columns.length; cc++) { + c = createTiddlyElement(r,"td"); + columnTemplate = listTemplate.columns[cc]; + var field = columnTemplate.field; + colType = ListView.columnTypes[columnTemplate.type]; + if(colType && colType.createItem) + colType.createItem(c,rowObject,field,columnTemplate,cc,rc); + rowObject.colElements[field] = c; + } + } + if(callback && listTemplate.actions) + createTiddlyDropDown(place,ListView.getCommandHandler(callback),listTemplate.actions); + if(callback && listTemplate.buttons) { + for(t=0; t<listTemplate.buttons.length; t++) { + var a = listTemplate.buttons[t]; + if(a && a.name != "") + createTiddlyButton(place,a.caption,null,ListView.getCommandHandler(callback,a.name,a.allowEmptySelection)); + } + } + return table; +}; + +ListView.getCommandHandler = function(callback,name,allowEmptySelection) +{ + return function(e) { + var view = findRelated(this,"TABLE",null,"previousSibling"); + var tiddlers = []; + ListView.forEachSelector(view,function(e,rowName) { + if(e.checked) + tiddlers.push(rowName); + }); + if(tiddlers.length == 0 && !allowEmptySelection) { + alert(config.messages.nothingSelected); + } else { + if(this.nodeName.toLowerCase() == "select") { + callback(view,this.value,tiddlers); + this.selectedIndex = 0; + } else { + callback(view,name,tiddlers); + } + } + }; +}; + +// Invoke a callback for each selector checkbox in the listview +ListView.forEachSelector = function(view,callback) +{ + var checkboxes = view.getElementsByTagName("input"); + var hadOne = false; + for(var t=0; t<checkboxes.length; t++) { + var cb = checkboxes[t]; + if(cb.getAttribute("type") == "checkbox") { + var rn = cb.getAttribute("rowName"); + if(rn) { + callback(cb,rn); + hadOne = true; + } + } + } + return hadOne; +}; + +ListView.getSelectedRows = function(view) +{ + var rowNames = []; + ListView.forEachSelector(view,function(e,rowName) { + if(e.checked) + rowNames.push(rowName); + }); + return rowNames; +}; + +ListView.columnTypes = {}; + +ListView.columnTypes.String = { + createHeader: function(place,columnTemplate,col) + { + createTiddlyText(place,columnTemplate.title); + }, + createItem: function(place,listObject,field,columnTemplate,col,row) + { + var v = listObject[field]; + if(v != undefined) + createTiddlyText(place,v); + } +}; + +ListView.columnTypes.WikiText = { + createHeader: ListView.columnTypes.String.createHeader, + createItem: function(place,listObject,field,columnTemplate,col,row) + { + var v = listObject[field]; + if(v != undefined) + wikify(v,place,null,null); + } +}; + +ListView.columnTypes.Tiddler = { + createHeader: ListView.columnTypes.String.createHeader, + createItem: function(place,listObject,field,columnTemplate,col,row) + { + var v = listObject[field]; + if(v != undefined && v.title) + createTiddlyPopup(place,v.title,config.messages.listView.tiddlerTooltip,v); + } +}; + +ListView.columnTypes.Size = { + createHeader: ListView.columnTypes.String.createHeader, + createItem: function(place,listObject,field,columnTemplate,col,row) + { + var v = listObject[field]; + if(v != undefined) { + var t = 0; + while(t<config.messages.sizeTemplates.length-1 && v<config.messages.sizeTemplates[t].unit) + t++; + createTiddlyText(place,config.messages.sizeTemplates[t].template.format([Math.round(v/config.messages.sizeTemplates[t].unit)])); + } + } +}; + +ListView.columnTypes.Link = { + createHeader: ListView.columnTypes.String.createHeader, + createItem: function(place,listObject,field,columnTemplate,col,row) + { + var v = listObject[field]; + var c = columnTemplate.text; + if(v != undefined) + createTiddlyText(createExternalLink(place,v),c ? c : v); + } +}; + +ListView.columnTypes.Date = { + createHeader: ListView.columnTypes.String.createHeader, + createItem: function(place,listObject,field,columnTemplate,col,row) + { + var v = listObject[field]; + if(v != undefined) + createTiddlyText(place,v.formatString(columnTemplate.dateFormat)); + } +}; + +ListView.columnTypes.StringList = { + createHeader: ListView.columnTypes.String.createHeader, + createItem: function(place,listObject,field,columnTemplate,col,row) + { + var v = listObject[field]; + if(v != undefined) { + for(var t=0; t<v.length; t++) { + createTiddlyText(place,v[t]); + createTiddlyElement(place,"br"); + } + } + } +}; + +ListView.columnTypes.Selector = { + createHeader: function(place,columnTemplate,col) + { + createTiddlyCheckbox(place,null,false,this.onHeaderChange); + }, + createItem: function(place,listObject,field,columnTemplate,col,row) + { + var e = createTiddlyCheckbox(place,null,listObject[field],null); + e.setAttribute("rowName",listObject[columnTemplate.rowName]); + }, + onHeaderChange: function(e) + { + var state = this.checked; + var view = findRelated(this,"TABLE"); + if(!view) + return; + ListView.forEachSelector(view,function(e,rowName) { + e.checked = state; + }); + } +}; + +ListView.columnTypes.Tags = { + createHeader: ListView.columnTypes.String.createHeader, + createItem: function(place,listObject,field,columnTemplate,col,row) + { + var tags = listObject[field]; + createTiddlyText(place,String.encodeTiddlyLinkList(tags)); + } +}; + +ListView.columnTypes.Boolean = { + createHeader: ListView.columnTypes.String.createHeader, + createItem: function(place,listObject,field,columnTemplate,col,row) + { + if(listObject[field] == true) + createTiddlyText(place,columnTemplate.trueText); + if(listObject[field] == false) + createTiddlyText(place,columnTemplate.falseText); + } +}; + +ListView.columnTypes.TagCheckbox = { + createHeader: ListView.columnTypes.String.createHeader, + createItem: function(place,listObject,field,columnTemplate,col,row) + { + var e = createTiddlyCheckbox(place,null,listObject[field],this.onChange); + e.setAttribute("tiddler",listObject.title); + e.setAttribute("tag",columnTemplate.tag); + }, + onChange : function(e) + { + var tag = this.getAttribute("tag"); + var tiddler = this.getAttribute("tiddler"); + store.setTiddlerTag(tiddler,this.checked,tag); + } +}; + +ListView.columnTypes.TiddlerLink = { + createHeader: ListView.columnTypes.String.createHeader, + createItem: function(place,listObject,field,columnTemplate,col,row) + { + var v = listObject[field]; + if(v != undefined) { + var link = createTiddlyLink(place,listObject[columnTemplate.tiddlerLink],false,null); + createTiddlyText(link,listObject[field]); + } + } +}; + +//-- +//-- Augmented methods for the JavaScript Number(), Array(), String() and Date() objects +//-- + +// Clamp a number to a range +Number.prototype.clamp = function(min,max) +{ + var c = this; + if(c < min) + c = min; + if(c > max) + c = max; + return c; +}; + +// Add indexOf function if browser does not support it +if(!Array.indexOf) { +Array.prototype.indexOf = function(item,from) +{ + if(!from) + from = 0; + for(var i=from; i<this.length; i++) { + if(this[i] === item) + return i; + } + return -1; +};} + +// Find an entry in a given field of the members of an array +Array.prototype.findByField = function(field,value) +{ + for(var t=0; t<this.length; t++) { + if(this[t][field] == value) + return t; + } + return null; +}; + +// Return whether an entry exists in an array +Array.prototype.contains = function(item) +{ + return this.indexOf(item) != -1; +}; + +// Adds, removes or toggles a particular value within an array +// value - value to add +// mode - +1 to add value, -1 to remove value, 0 to toggle it +Array.prototype.setItem = function(value,mode) +{ + var p = this.indexOf(value); + if(mode == 0) + mode = (p == -1) ? +1 : -1; + if(mode == +1) { + if(p == -1) + this.push(value); + } else if(mode == -1) { + if(p != -1) + this.splice(p,1); + } +}; + +// Return whether one of a list of values exists in an array +Array.prototype.containsAny = function(items) +{ + for(var i=0; i<items.length; i++) { + if (this.indexOf(items[i]) != -1) + return true; + } + return false; +}; + +// Return whether all of a list of values exists in an array +Array.prototype.containsAll = function(items) +{ + for (var i = 0; i<items.length; i++) { + if (this.indexOf(items[i]) == -1) + return false; + } + return true; +}; + +// Push a new value into an array only if it is not already present in the array. If the optional unique parameter is false, it reverts to a normal push +Array.prototype.pushUnique = function(item,unique) +{ + if(unique === false) { + this.push(item); + } else { + if(this.indexOf(item) == -1) + this.push(item); + } +}; + +Array.prototype.remove = function(item) +{ + var p = this.indexOf(item); + if(p != -1) + this.splice(p,1); +}; + +if(!Array.prototype.map){ +Array.prototype.map = function(fn, thisObj) { + var scope = thisObj || window; + var a = []; + for ( var i=0, j=this.length; i < j; ++i ) { + a.push(fn.call(scope, this[i], i, this)); + } + return a; +};}// Get characters from the right end of a string +String.prototype.right = function(n) +{ + return n < this.length ? this.slice(this.length-n) : this; +}; + +// Trim whitespace from both ends of a string +String.prototype.trim = function() +{ + return this.replace(/^\s*|\s*$/g,""); +}; + +// Convert a string from a CSS style property name to a JavaScript style name ("background-color" -> "backgroundColor") +String.prototype.unDash = function() +{ + var s = this.split("-"); + if(s.length > 1) { + for(var t=1; t<s.length; t++) + s[t] = s[t].substr(0,1).toUpperCase() + s[t].substr(1); + } + return s.join(""); +}; + +// Substitute substrings from an array into a format string that includes '%1'-type specifiers +String.prototype.format = function(substrings) +{ + var subRegExp = /(?:%(\d+))/mg; + var currPos = 0; + var r = []; + do { + var match = subRegExp.exec(this); + if(match && match[1]) { + if(match.index > currPos) + r.push(this.substring(currPos,match.index)); + r.push(substrings[parseInt(match[1])]); + currPos = subRegExp.lastIndex; + } + } while(match); + if(currPos < this.length) + r.push(this.substring(currPos,this.length)); + return r.join(""); +}; + +// Escape any special RegExp characters with that character preceded by a backslash +String.prototype.escapeRegExp = function() +{ + var s = "\\^$*+?()=!|,{}[]."; + var c = this; + for(var t=0; t<s.length; t++) + c = c.replace(new RegExp("\\" + s.substr(t,1),"g"),"\\" + s.substr(t,1)); + return c; +}; + +// Convert "\" to "\s", newlines to "\n" (and remove carriage returns) +String.prototype.escapeLineBreaks = function() +{ + return this.replace(/\\/mg,"\\s").replace(/\n/mg,"\\n").replace(/\r/mg,""); +}; + +// Convert "\n" to newlines, "\b" to " ", "\s" to "\" (and remove carriage returns) +String.prototype.unescapeLineBreaks = function() +{ + return this.replace(/\\n/mg,"\n").replace(/\\b/mg," ").replace(/\\s/mg,"\\").replace(/\r/mg,""); +}; + +// Convert & to "&", < to "<", > to ">" and " to """ +String.prototype.htmlEncode = function() +{ + return this.replace(/&/mg,"&").replace(/</mg,"<").replace(/>/mg,">").replace(/\"/mg,"""); +}; + +// Convert "&" to &, "<" to <, ">" to > and """ to " +String.prototype.htmlDecode = function() +{ + return this.replace(/</mg,"<").replace(/>/mg,">").replace(/"/mg,"\"").replace(/&/mg,"&"); +}; + +// Convert a string to it's JSON representation by encoding control characters, double quotes and backslash. See json.org +String.prototype.toJSONString = function() +{ + var m = { + '\b': '\\b', + '\f': '\\f', + '\n': '\\n', + '\r': '\\r', + '\t': '\\t', + '"' : '\\"', + '\\': '\\\\' + }; + var replaceFn = function(a,b) { + var c = m[b]; + if(c) + return c; + c = b.charCodeAt(); + return '\\u00' + Math.floor(c / 16).toString(16) + (c % 16).toString(16); + }; + if(/["\\\x00-\x1f]/.test(this)) + return '"' + this.replace(/([\x00-\x1f\\"])/g,replaceFn) + '"'; + return '"' + this + '"'; +}; + +// Parse a space-separated string of name:value parameters +// The result is an array of objects: +// result[0] = object with a member for each parameter name, value of that member being an array of values +// result[1..n] = one object for each parameter, with 'name' and 'value' members +String.prototype.parseParams = function(defaultName,defaultValue,allowEval,noNames,cascadeDefaults) +{ + var parseToken = function(match,p) { + var n; + if(match[p]) // Double quoted + n = match[p]; + else if(match[p+1]) // Single quoted + n = match[p+1]; + else if(match[p+2]) // Double-square-bracket quoted + n = match[p+2]; + else if(match[p+3]) // Double-brace quoted + try { + n = match[p+3]; + if(allowEval) + n = window.eval(n); + } catch(ex) { + throw "Unable to evaluate {{" + match[p+3] + "}}: " + exceptionText(ex); + } + else if(match[p+4]) // Unquoted + n = match[p+4]; + else if(match[p+5]) // empty quote + n = ""; + return n; + }; + var r = [{}]; + var dblQuote = "(?:\"((?:(?:\\\\\")|[^\"])+)\")"; + var sngQuote = "(?:'((?:(?:\\\\\')|[^'])+)')"; + var dblSquare = "(?:\\[\\[((?:\\s|\\S)*?)\\]\\])"; + var dblBrace = "(?:\\{\\{((?:\\s|\\S)*?)\\}\\})"; + var unQuoted = noNames ? "([^\"'\\s]\\S*)" : "([^\"':\\s][^\\s:]*)"; + var emptyQuote = "((?:\"\")|(?:''))"; + var skipSpace = "(?:\\s*)"; + var token = "(?:" + dblQuote + "|" + sngQuote + "|" + dblSquare + "|" + dblBrace + "|" + unQuoted + "|" + emptyQuote + ")"; + var re = noNames ? new RegExp(token,"mg") : new RegExp(skipSpace + token + skipSpace + "(?:(\\:)" + skipSpace + token + ")?","mg"); + var params = []; + do { + var match = re.exec(this); + if(match) { + var n = parseToken(match,1); + if(noNames) { + r.push({name:"",value:n}); + } else { + var v = parseToken(match,8); + if(v == null && defaultName) { + v = n; + n = defaultName; + } else if(v == null && defaultValue) { + v = defaultValue; + } + r.push({name:n,value:v}); + if(cascadeDefaults) { + defaultName = n; + defaultValue = v; + } + } + } + } while(match); + // Summarise parameters into first element + for(var t=1; t<r.length; t++) { + if(r[0][r[t].name]) + r[0][r[t].name].push(r[t].value); + else + r[0][r[t].name] = [r[t].value]; + } + return r; +}; + +// Process a string list of macro parameters into an array. Parameters can be quoted with "", '', +// [[]], {{ }} or left unquoted (and therefore space-separated). Double-braces {{}} results in +// an *evaluated* parameter: e.g. {{config.options.txtUserName}} results in the current user's name. +String.prototype.readMacroParams = function() +{ + var p = this.parseParams("list",null,true,true); + var n = []; + for(var t=1; t<p.length; t++) + n.push(p[t].value); + return n; +}; + +// Process a string list of unique tiddler names into an array. Tiddler names that have spaces in them must be [[bracketed]] +String.prototype.readBracketedList = function(unique) +{ + var p = this.parseParams("list",null,false,true); + var n = []; + for(var t=1; t<p.length; t++) { + if(p[t].value) + n.pushUnique(p[t].value,unique); + } + return n; +}; + +// Returns array with start and end index of chunk between given start and end marker, or undefined. +String.prototype.getChunkRange = function(start,end) +{ + var s = this.indexOf(start); + if(s != -1) { + s += start.length; + var e = this.indexOf(end,s); + if(e != -1) + return [s,e]; + } +}; + +// Replace a chunk of a string given start and end markers +String.prototype.replaceChunk = function(start,end,sub) +{ + var r = this.getChunkRange(start,end); + return r ? this.substring(0,r[0]) + sub + this.substring(r[1]) : this; +}; + +// Returns a chunk of a string between start and end markers, or undefined +String.prototype.getChunk = function(start,end) +{ + var r = this.getChunkRange(start,end); + if(r) + return this.substring(r[0],r[1]); +}; + + +// Static method to bracket a string with double square brackets if it contains a space +String.encodeTiddlyLink = function(title) +{ + return title.indexOf(" ") == -1 ? title : "[[" + title + "]]"; +}; + +// Static method to encodeTiddlyLink for every item in an array and join them with spaces +String.encodeTiddlyLinkList = function(list) +{ + if(list) { + var results = []; + for(var t=0; t<list.length; t++) + results.push(String.encodeTiddlyLink(list[t])); + return results.join(" "); + } else { + return ""; + } +}; + +// Convert a string as a sequence of name:"value" pairs into a hashmap +String.prototype.decodeHashMap = function() +{ + var fields = this.parseParams("anon","",false); + var r = {}; + for(var t=1; t<fields.length; t++) + r[fields[t].name] = fields[t].value; + return r; +}; + +// Static method to encode a hashmap into a name:"value"... string +String.encodeHashMap = function(hashmap) +{ + var r = []; + for(var t in hashmap) + r.push(t + ':"' + hashmap[t] + '"'); + return r.join(" "); +}; + +// Static method to left-pad a string with 0s to a certain width +String.zeroPad = function(n,d) +{ + var s = n.toString(); + if(s.length < d) + s = "000000000000000000000000000".substr(0,d-s.length) + s; + return s; +}; + +String.prototype.startsWith = function(prefix) +{ + return !prefix || this.substring(0,prefix.length) == prefix; +}; + +// Returns the first value of the given named parameter. +function getParam(params,name,defaultValue) +{ + if(!params) + return defaultValue; + var p = params[0][name]; + return p ? p[0] : defaultValue; +} + +// Returns the first value of the given boolean named parameter. +function getFlag(params,name,defaultValue) +{ + return !!getParam(params,name,defaultValue); +} + +// Substitute date components into a string +Date.prototype.formatString = function(template) +{ + var t = template.replace(/0hh12/g,String.zeroPad(this.getHours12(),2)); + t = t.replace(/hh12/g,this.getHours12()); + t = t.replace(/0hh/g,String.zeroPad(this.getHours(),2)); + t = t.replace(/hh/g,this.getHours()); + t = t.replace(/mmm/g,config.messages.dates.shortMonths[this.getMonth()]); + t = t.replace(/0mm/g,String.zeroPad(this.getMinutes(),2)); + t = t.replace(/mm/g,this.getMinutes()); + t = t.replace(/0ss/g,String.zeroPad(this.getSeconds(),2)); + t = t.replace(/ss/g,this.getSeconds()); + t = t.replace(/[ap]m/g,this.getAmPm().toLowerCase()); + t = t.replace(/[AP]M/g,this.getAmPm().toUpperCase()); + t = t.replace(/wYYYY/g,this.getYearForWeekNo()); + t = t.replace(/wYY/g,String.zeroPad(this.getYearForWeekNo()-2000,2)); + t = t.replace(/YYYY/g,this.getFullYear()); + t = t.replace(/YY/g,String.zeroPad(this.getFullYear()-2000,2)); + t = t.replace(/MMM/g,config.messages.dates.months[this.getMonth()]); + t = t.replace(/0MM/g,String.zeroPad(this.getMonth()+1,2)); + t = t.replace(/MM/g,this.getMonth()+1); + t = t.replace(/0WW/g,String.zeroPad(this.getWeek(),2)); + t = t.replace(/WW/g,this.getWeek()); + t = t.replace(/DDD/g,config.messages.dates.days[this.getDay()]); + t = t.replace(/ddd/g,config.messages.dates.shortDays[this.getDay()]); + t = t.replace(/0DD/g,String.zeroPad(this.getDate(),2)); + t = t.replace(/DDth/g,this.getDate()+this.daySuffix()); + t = t.replace(/DD/g,this.getDate()); + return t; +}; + +Date.prototype.getWeek = function() +{ + var dt = new Date(this.getTime()); + var d = dt.getDay(); + if (d==0) d=7;// JavaScript Sun=0, ISO Sun=7 + dt.setTime(dt.getTime()+(4-d)*86400000);// shift day to Thurs of same week to calculate weekNo + var n = Math.floor((dt.getTime()-new Date(dt.getFullYear(),0,1)+3600000)/86400000); + return Math.floor(n/7)+1; +}; + +Date.prototype.getYearForWeekNo = function() +{ + var dt = new Date(this.getTime()); + var d = dt.getDay(); + if (d==0) d=7;// JavaScript Sun=0, ISO Sun=7 + dt.setTime(dt.getTime()+(4-d)*86400000);// shift day to Thurs of same week + return dt.getFullYear(); +}; + +Date.prototype.getHours12 = function() +{ + var h = this.getHours(); + return h > 12 ? h-12 : ( h > 0 ? h : 12 ); +}; + +Date.prototype.getAmPm = function() +{ + return this.getHours() >= 12 ? config.messages.dates.pm : config.messages.dates.am; +}; + +Date.prototype.daySuffix = function() +{ + return config.messages.dates.daySuffixes[this.getDate()-1]; +}; + +// Convert a date to local YYYYMMDDHHMM string format +Date.prototype.convertToLocalYYYYMMDDHHMM = function() +{ + return String.zeroPad(this.getFullYear(),4) + String.zeroPad(this.getMonth()+1,2) + String.zeroPad(this.getDate(),2) + String.zeroPad(this.getHours(),2) + String.zeroPad(this.getMinutes(),2); +}; + +// Convert a date to UTC YYYYMMDDHHMM string format +Date.prototype.convertToYYYYMMDDHHMM = function() +{ + return String.zeroPad(this.getUTCFullYear(),4) + String.zeroPad(this.getUTCMonth()+1,2) + String.zeroPad(this.getUTCDate(),2) + String.zeroPad(this.getUTCHours(),2) + String.zeroPad(this.getUTCMinutes(),2); +}; + +// Convert a date to UTC YYYYMMDD.HHMMSSMMM string format +Date.prototype.convertToYYYYMMDDHHMMSSMMM = function() +{ + return String.zeroPad(this.getUTCFullYear(),4) + String.zeroPad(this.getUTCMonth()+1,2) + String.zeroPad(this.getUTCDate(),2) + "." + String.zeroPad(this.getUTCHours(),2) + String.zeroPad(this.getUTCMinutes(),2) + String.zeroPad(this.getUTCSeconds(),2) + String.zeroPad(this.getUTCMilliseconds(),4); +}; + +// Static method to create a date from a UTC YYYYMMDDHHMM format string +Date.convertFromYYYYMMDDHHMM = function(d) +{ + return new Date(Date.UTC(parseInt(d.substr(0,4),10), + parseInt(d.substr(4,2),10)-1, + parseInt(d.substr(6,2),10), + parseInt(d.substr(8,2),10), + parseInt(d.substr(10,2),10),0,0)); +}; + +//-- +//-- RGB colour object +//-- + +// Construct an RGB colour object from a '#rrggbb', '#rgb' or 'rgb(n,n,n)' string or from separate r,g,b values +function RGB(r,g,b) +{ + this.r = 0; + this.g = 0; + this.b = 0; + if(typeof r == "string") { + if(r.substr(0,1) == "#") { + if(r.length == 7) { + this.r = parseInt(r.substr(1,2),16)/255; + this.g = parseInt(r.substr(3,2),16)/255; + this.b = parseInt(r.substr(5,2),16)/255; + } else { + this.r = parseInt(r.substr(1,1),16)/15; + this.g = parseInt(r.substr(2,1),16)/15; + this.b = parseInt(r.substr(3,1),16)/15; + } + } else { + var rgbPattern = /rgb\s*\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*\)/; + var c = r.match(rgbPattern); + if(c) { + this.r = parseInt(c[1],10)/255; + this.g = parseInt(c[2],10)/255; + this.b = parseInt(c[3],10)/255; + } + } + } else { + this.r = r; + this.g = g; + this.b = b; + } + return this; +} + +// Mixes this colour with another in a specified proportion +// c = other colour to mix +// f = 0..1 where 0 is this colour and 1 is the new colour +// Returns an RGB object +RGB.prototype.mix = function(c,f) +{ + return new RGB(this.r + (c.r-this.r) * f,this.g + (c.g-this.g) * f,this.b + (c.b-this.b) * f); +}; + +// Return an rgb colour as a #rrggbb format hex string +RGB.prototype.toString = function() +{ + return "#" + ("0" + Math.floor(this.r.clamp(0,1) * 255).toString(16)).right(2) + + ("0" + Math.floor(this.g.clamp(0,1) * 255).toString(16)).right(2) + + ("0" + Math.floor(this.b.clamp(0,1) * 255).toString(16)).right(2); +}; + +//-- +//-- DOM utilities - many derived from www.quirksmode.org +//-- + +function drawGradient(place,horiz,colours) +{ + for(var t=0; t<= 100; t+=2) { + var bar = document.createElement("div"); + place.appendChild(bar); + bar.style.position = "absolute"; + bar.style.left = horiz ? t + "%" : 0; + bar.style.top = horiz ? 0 : t + "%"; + bar.style.width = horiz ? (101-t) + "%" : "100%"; + bar.style.height = horiz ? "100%" : (101-t) + "%"; + bar.style.zIndex = -1; + var f = t/100; + var p = f*(colours.length-1); + bar.style.backgroundColor = colours[Math.floor(p)].mix(colours[Math.ceil(p)],p-Math.floor(p)).toString(); + } +} + +function createTiddlyText(theParent,theText) +{ + return theParent.appendChild(document.createTextNode(theText)); +} + +function createTiddlyCheckbox(theParent,caption,checked,onChange) +{ + var cb = document.createElement("input"); + cb.setAttribute("type","checkbox"); + cb.onclick = onChange; + theParent.appendChild(cb); + cb.checked = checked; + cb.className = "chkOptionInput"; + if(caption) + wikify(caption,theParent); + return cb; +} + +function createTiddlyElement(theParent,theElement,theID,theClass,theText,attribs) +{ + var e = document.createElement(theElement); + if(theClass != null) + e.className = theClass; + if(theID != null) + e.setAttribute("id",theID); + if(theText != null) + e.appendChild(document.createTextNode(theText)); + if(attribs){ + for(var n in attribs){ + e.setAttribute(n,attribs[n]); + } + } + if(theParent != null) + theParent.appendChild(e); + return e; +} + +function addEvent(obj,type,fn) +{ + if(obj.attachEvent) { + obj['e'+type+fn] = fn; + obj[type+fn] = function(){obj['e'+type+fn](window.event);}; + obj.attachEvent('on'+type,obj[type+fn]); + } else { + obj.addEventListener(type,fn,false); + } +} + +function removeEvent(obj,type,fn) +{ + if(obj.detachEvent) { + obj.detachEvent('on'+type,obj[type+fn]); + obj[type+fn] = null; + } else { + obj.removeEventListener(type,fn,false); + } +} + +function addClass(e,theClass) +{ + var currClass = e.className.split(" "); + if(currClass.indexOf(theClass) == -1) + e.className += " " + theClass; +} + +function removeClass(e,theClass) +{ + var currClass = e.className.split(" "); + var i = currClass.indexOf(theClass); + while(i != -1) { + currClass.splice(i,1); + i = currClass.indexOf(theClass); + } + e.className = currClass.join(" "); +} + +function hasClass(e,theClass) +{ + if(e.className) { + if(e.className.split(" ").indexOf(theClass) != -1) + return true; + } + return false; +} + +// Find the closest relative with a given property value (property defaults to tagName, relative defaults to parentNode) +function findRelated(e,value,name,relative) +{ + name = name ? name : "tagName"; + relative = relative ? relative : "parentNode"; + if(name == "className") { + while(e && !hasClass(e,value)) { + e = e[relative]; + } + } else { + while(e && e[name] != value) { + e = e[relative]; + } + } + return e; +} + +// Resolve the target object of an event +function resolveTarget(e) +{ + var obj; + if(e.target) + obj = e.target; + else if(e.srcElement) + obj = e.srcElement; + if(obj.nodeType == 3) // defeat Safari bug + obj = obj.parentNode; + return obj; +} + +// Prevent an event from bubbling +function stopEvent(e){ + var ev = e? e : window.event; + ev.cancelBubble = true; + if (ev.stopPropagation) ev.stopPropagation(); + return false; +} + +// Return the content of an element as plain text with no formatting +function getPlainText(e) +{ + var text = ""; + if(e.innerText) + text = e.innerText; + else if(e.textContent) + text = e.textContent; + return text; +} + +// Get the scroll position for window.scrollTo necessary to scroll a given element into view +function ensureVisible(e) +{ + var posTop = findPosY(e); + var posBot = posTop + e.offsetHeight; + var winTop = findScrollY(); + var winHeight = findWindowHeight(); + var winBot = winTop + winHeight; + if(posTop < winTop) { + return posTop; + } else if(posBot > winBot) { + if(e.offsetHeight < winHeight) + return posTop - (winHeight - e.offsetHeight); + else + return posTop; + } else { + return winTop; + } +} + +// Get the current width of the display window +function findWindowWidth() +{ + return window.innerWidth ? window.innerWidth : document.documentElement.clientWidth; +} + +// Get the current height of the display window +function findWindowHeight() +{ + return window.innerHeight ? window.innerHeight : document.documentElement.clientHeight; +} + +// Get the current horizontal page scroll position +function findScrollX() +{ + return window.scrollX ? window.scrollX : document.documentElement.scrollLeft; +} + +// Get the current vertical page scroll position +function findScrollY() +{ + return window.scrollY ? window.scrollY : document.documentElement.scrollTop; +} + +function findPosX(obj) +{ + var curleft = 0; + while(obj.offsetParent) { + curleft += obj.offsetLeft; + obj = obj.offsetParent; + } + return curleft; +} + +function findPosY(obj) +{ + var curtop = 0; + while(obj.offsetParent) { + curtop += obj.offsetTop; + obj = obj.offsetParent; + } + return curtop; +} + +// Blur a particular element +function blurElement(e) +{ + if(e != null && e.focus && e.blur) { + e.focus(); + e.blur(); + } +} + +// Create a non-breaking space +function insertSpacer(place) +{ + var e = document.createTextNode(String.fromCharCode(160)); + if(place) + place.appendChild(e); + return e; +} + +// Remove all children of a node +function removeChildren(e) +{ + while(e && e.hasChildNodes()) + removeNode(e.firstChild); +} + +// Remove a node and all it's children +function removeNode(e) +{ + scrubNode(e); + e.parentNode.removeChild(e); +} + +// Remove any event handlers or non-primitve custom attributes +function scrubNode(e) +{ + if(!config.browser.isIE) + return; + var att = e.attributes; + if(att) { + for(var t=0; t<att.length; t++) { + var n = att[t].name; + if(n !== 'style' && (typeof e[n] === 'function' || (typeof e[n] === 'object' && e[n] != null))) { + try { + e[n] = null; + } catch(ex) { + } + } + } + } + var c = e.firstChild; + while(c) { + scrubNode(c); + c = c.nextSibling; + } +} + +// Add a stylesheet, replacing any previous custom stylesheet +function setStylesheet(s,id,doc) +{ + if(!id) + id = "customStyleSheet"; + if(!doc) + doc = document; + var n = doc.getElementById(id); + if(doc.createStyleSheet) { + // Test for IE's non-standard createStyleSheet method + if(n) + n.parentNode.removeChild(n); + // This failed without the + doc.getElementsByTagName("head")[0].insertAdjacentHTML("beforeEnd"," <style id='" + id + "'>" + s + "</style>"); + } else { + if(n) { + n.replaceChild(doc.createTextNode(s),n.firstChild); + } else { + n = doc.createElement("style"); + n.type = "text/css"; + n.id = id; + n.appendChild(doc.createTextNode(s)); + doc.getElementsByTagName("head")[0].appendChild(n); + } + } +} + +function removeStyleSheet(id) +{ + var e = document.getElementById(id); + if(e) + e.parentNode.removeChild(e); +} + +// Force the browser to do a document reflow when needed to workaround browser bugs +function forceReflow() +{ + if(config.browser.isGecko) { + setStylesheet("body {top:-1em;margin-top:1em;}"); + setStylesheet(""); + } +} + +// Replace the current selection of a textarea or text input and scroll it into view +function replaceSelection(e,text) +{ + if(e.setSelectionRange) { + var oldpos = e.selectionStart; + var isRange = e.selectionEnd > e.selectionStart; + e.value = e.value.substr(0,e.selectionStart) + text + e.value.substr(e.selectionEnd); + e.setSelectionRange(isRange ? oldpos : oldpos + text.length,oldpos + text.length); + var linecount = e.value.split('\n').length; + var thisline = e.value.substr(0,e.selectionStart).split('\n').length-1; + e.scrollTop = Math.floor((thisline - e.rows / 2) * e.scrollHeight / linecount); + } else if(document.selection) { + var range = document.selection.createRange(); + if(range.parentElement() == e) { + var isCollapsed = range.text == ""; + range.text = text; + if(!isCollapsed) { + range.moveStart('character', -text.length); + range.select(); + } + } + } +} + +// Returns the text of the given (text) node, possibly merging subsequent text nodes +function getNodeText(e) +{ + var t = ""; + while(e && e.nodeName == "#text") { + t += e.nodeValue; + e = e.nextSibling; + } + return t; +} + +//-- +//-- LoaderBase and SaverBase +//-- + +function LoaderBase() {} + +LoaderBase.prototype.loadTiddler = function(store,node,tiddlers) +{ + var title = this.getTitle(store,node); + if(title) { + var tiddler = store.createTiddler(title); + this.internalizeTiddler(store,tiddler,title,node); + tiddlers.push(tiddler); + } +}; + +LoaderBase.prototype.loadTiddlers = function(store,nodes) +{ + var tiddlers = []; + for(var t = 0; t < nodes.length; t++) { + try { + this.loadTiddler(store,nodes[t],tiddlers); + } catch(ex) { + showException(ex,config.messages.tiddlerLoadError.format([this.getTitle(store,nodes[t])])); + } + } + return tiddlers; +}; + +function SaverBase() {} + +SaverBase.prototype.externalize = function(store) +{ + var results = []; + var tiddlers = store.getTiddlers("title"); + for(var t = 0; t < tiddlers.length; t++) + results.push(this.externalizeTiddler(store,tiddlers[t])); + return results.join("\n"); +}; + +//-- +//-- TW21Loader (inherits from LoaderBase) +//-- + +function TW21Loader() {} + +TW21Loader.prototype = new LoaderBase(); + +TW21Loader.prototype.getTitle = function(store,node) +{ + var title = null; + if(node.getAttribute) { + title = node.getAttribute("title"); + if(!title) + title = node.getAttribute("tiddler"); + } + if(!title && node.id) { + var lenPrefix = store.idPrefix.length; + if (node.id.substr(0,lenPrefix) == store.idPrefix) + title = node.id.substr(lenPrefix); + } + return title; +}; + +TW21Loader.prototype.internalizeTiddler = function(store,tiddler,title,node) +{ + var e = node.firstChild; + var text = null; + if(node.getAttribute("tiddler")) { + text = getNodeText(e).unescapeLineBreaks(); + } else { + while(e.nodeName!="PRE" && e.nodeName!="pre") { + e = e.nextSibling; + } + text = e.innerHTML.replace(/\r/mg,"").htmlDecode(); + } + var modifier = node.getAttribute("modifier"); + var c = node.getAttribute("created"); + var m = node.getAttribute("modified"); + var created = c ? Date.convertFromYYYYMMDDHHMM(c) : version.date; + var modified = m ? Date.convertFromYYYYMMDDHHMM(m) : created; + var tags = node.getAttribute("tags"); + var fields = {}; + var attrs = node.attributes; + for(var i = attrs.length-1; i >= 0; i--) { + var name = attrs[i].name; + if (attrs[i].specified && !TiddlyWiki.isStandardField(name)) { + fields[name] = attrs[i].value.unescapeLineBreaks(); + } + } + tiddler.assign(title,text,modifier,modified,tags,created,fields); + return tiddler; +}; + +//-- +//-- TW21Saver (inherits from SaverBase) +//-- + +function TW21Saver() {} + +TW21Saver.prototype = new SaverBase(); + +TW21Saver.prototype.externalizeTiddler = function(store,tiddler) +{ + try { + var extendedAttributes = ""; + var usePre = config.options.chkUsePreForStorage; + store.forEachField(tiddler, + function(tiddler,fieldName,value) { + // don't store stuff from the temp namespace + if(typeof value != "string") + value = ""; + if (!fieldName.match(/^temp\./)) + extendedAttributes += ' %0="%1"'.format([fieldName,value.escapeLineBreaks().htmlEncode()]); + },true); + var created = tiddler.created.convertToYYYYMMDDHHMM(); + var modified = tiddler.modified.convertToYYYYMMDDHHMM(); + var vdate = version.date.convertToYYYYMMDDHHMM(); + var attributes = tiddler.modifier ? ' modifier="' + tiddler.modifier.htmlEncode() + '"' : ""; + attributes += (usePre && modified == created) ? "" : ' modified="' + modified +'"'; + attributes += (usePre && created == vdate) ? "" :' created="' + created + '"'; + var tags = tiddler.getTags(); + if(!usePre || tags) + attributes += ' tags="' + tags.htmlEncode() + '"'; + return ('<div %0="%1"%2%3>%4</'+'div>').format([ + usePre ? "title" : "tiddler", + tiddler.title.htmlEncode(), + attributes, + extendedAttributes, + usePre ? "\n<pre>" + tiddler.text.htmlEncode() + "</pre>\n" : tiddler.text.escapeLineBreaks().htmlEncode() + ]); + } catch (ex) { + throw exceptionText(ex,config.messages.tiddlerSaveError.format([tiddler.title])); + } +}; + +//-- +//-- End of scripts +//-- +//]]> +</script> +<script type="text/javascript"> +//<![CDATA[ +if(useJavaSaver) + document.write("<applet style='position:absolute;left:-1px' name='TiddlySaver' code='TiddlySaver.class' archive='TiddlySaver.jar' width='1' height='1'></applet>"); +//]]> +</script> +<!--POST-SCRIPT-START--> +<!--POST-SCRIPT-END--> +</body> +</html>
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/jpoker/sites/pokersource.eu-2009/sources/tiddlywiki_cp_locale2lang.patch Mon Apr 19 05:40:37 2010 +0200 @@ -0,0 +1,28 @@ +diff -r 781536638d7a lib/tiddlywiki_cp/r4tw.rb +--- a/lib/tiddlywiki_cp/r4tw.rb Thu Nov 27 03:12:16 2008 +0000 ++++ b/lib/tiddlywiki_cp/r4tw.rb Thu Nov 27 03:38:04 2008 +0000 +@@ -509,7 +509,7 @@ + # Inspect systemConfig tiddlers, looking for locale settings + # + locale_set_re = /config.locale\s*=/s +- locale_re = /config.locale\s*=\s*['"](\w\w)['"]/ms ++ locale_re = /config.locale\s*=\s*['"](\w+_?\w+)['"]/ms + lang = @lang + @tiddlers.each do |t| + if t.has_tag('systemConfig') +diff -r 781536638d7a test/test_tiddlywiki_cp.rb +--- a/test/test_tiddlywiki_cp.rb Thu Nov 27 03:12:16 2008 +0000 ++++ b/test/test_tiddlywiki_cp.rb Thu Nov 27 03:38:04 2008 +0000 +@@ -77,6 +77,12 @@ + r.locale2lang('') + end + assert_match(/matches but/, exception.message) ++ # ++ # Country specific config.locale should not throw exceptions ++ # ++ r.get_tiddler('fakefrench').fields['text'] = 'config.locale = "fr_FR"'; ++ raw = r.locale2lang('<html a="f" xml:lang="en" lang="en" ') ++ assert_match(/a="f" xml:lang="fr_FR" lang="fr_FR"/, raw) + end + + def test_locale
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/jpoker/themes/pokersource.eu/Makefile Mon Apr 19 05:40:37 2010 +0200 @@ -0,0 +1,53 @@ +# +# Copyright (C) 2008 - 2010 Loic Dachary <loic@dachary.org> +# +# This program is free software: you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program. If not, see <http://www.gnu.org/licenses/>. +# + +SUBDIRS=sounds-sources + +JPOKERDIR=../.. + +all build install clobber clean maintainer-clean check:: + for i in ${SUBDIRS} ; do ${MAKE} -C $$i $@ ; done + +check:: + python test-svg2html.py + python test-svgflatten.py + +clean:: + rm -f mockup.html + rm -f *.pyc + +clobber:: clean + rm -f images/mockup_plain.svg + rm -f mockup.html + +build:: all + +all:: mockup.html + +mockup.html: images/mockup_plain.svg + ( \ + echo "// generated with make mockup, DO NOT EDIT" ; \ + echo -n '$$.jpoker.plugins.table.templates.room = ' ; \ + python svgflatten.py < images/mockup_plain.svg | python svg2html.py --json || true ; \ + ) > ${JPOKERDIR}/js/mockup.js + python svgflatten.py < images/mockup_plain.svg | python svg2html.py --html | tidy -indent 2>/dev/null > mockup.html || true + perl -pi -e 's:</head>:<link href="css/jpoker_table_layout.css" rel="stylesheet" type="text/css" /></head>:' mockup.html + python svgflatten.py < images/mockup_plain.svg | python svg2html.py --css > css/jpoker_table_layout.css + +images/mockup_plain.svg: images/mockup.svg + inkscape --without-gui --vacuum-defs --export-plain-svg=images/mockup_plain.svg images/mockup.svg + perl -pi -e 's/xmlns="http:\/\/www.w3.org\/2000\/svg"//' images/mockup_plain.svg
Binary file jpoker/themes/pokersource.eu/avatars/men.xcf has changed
Binary file jpoker/themes/pokersource.eu/avatars/special.xcf has changed
Binary file jpoker/themes/pokersource.eu/avatars/standards.xcf has changed
Binary file jpoker/themes/pokersource.eu/avatars/women.xcf has changed
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/jpoker/themes/pokersource.eu/css/calendar-win2k-cold-1.css Mon Apr 19 05:40:37 2010 +0200 @@ -0,0 +1,266 @@ +/* The main calendar widget. DIV containing a table. */ + +.calendar { + position: relative; + display: none; + border-top: 2px solid #fff; + border-right: 2px solid #000; + border-bottom: 2px solid #000; + border-left: 2px solid #fff; + font-size: 11px; + color: #000; + cursor: default; + background: #c8d0d4; + font-family: tahoma,verdana,sans-serif; + z-index: 2000; +} + +.calendar table { + border-top: 1px solid #000; + border-right: 1px solid #fff; + border-bottom: 1px solid #fff; + border-left: 1px solid #000; + font-size: 11px; + color: #000; + cursor: default; + background: #c8d0d4; + font-family: tahoma,verdana,sans-serif; +} + +/* Header part -- contains navigation buttons and day names. */ + +.calendar .button { /* "<<", "<", ">", ">>" buttons have this class */ + text-align: center; + padding: 1px; + border-top: 1px solid #fff; + border-right: 1px solid #000; + border-bottom: 1px solid #000; + border-left: 1px solid #fff; +} + +.calendar .nav { + background: transparent url(menuarrow.gif) no-repeat 100% 100%; +} + +.calendar thead .title { /* This holds the current "month, year" */ + font-weight: bold; + padding: 1px; + border: 1px solid #000; + background: #788084; + color: #fff; + text-align: center; +} + +.calendar thead .headrow { /* Row <TR> containing navigation buttons */ +} + +.calendar thead .daynames { /* Row <TR> containing the day names */ +} + +.calendar thead .name { /* Cells <TD> containing the day names */ + border-bottom: 1px solid #000; + padding: 2px; + text-align: center; + background: #e8f0f4; +} + +.calendar thead .weekend { /* How a weekend day name shows in header */ + color: #f00; +} + +.calendar thead .hilite { /* How do the buttons in header appear when hover */ + border-top: 2px solid #fff; + border-right: 2px solid #000; + border-bottom: 2px solid #000; + border-left: 2px solid #fff; + padding: 0px; + background-color: #d8e0e4; +} + +.calendar thead .active { /* Active (pressed) buttons in header */ + padding: 2px 0px 0px 2px; + border-top: 1px solid #000; + border-right: 1px solid #fff; + border-bottom: 1px solid #fff; + border-left: 1px solid #000; + background-color: #b8c0c4; +} + +/* The body part -- contains all the days in month. */ + +.calendar tbody .day { /* Cells <TD> containing month days dates */ + width: 2em; + text-align: right; + padding: 2px 4px 2px 2px; +} +.calendar tbody .day.othermonth { + font-size: 80%; + color: #aaa; +} +.calendar tbody .day.othermonth.oweekend { + color: #faa; +} + +.calendar table .wn { + padding: 2px 3px 2px 2px; + border-right: 1px solid #000; + background: #e8f4f0; +} + +.calendar tbody .rowhilite td { + background: #d8e4e0; +} + +.calendar tbody .rowhilite td.wn { + background: #c8d4d0; +} + +.calendar tbody td.hilite { /* Hovered cells <TD> */ + padding: 1px 3px 1px 1px; + border: 1px solid; + border-color: #fff #000 #000 #fff; +} + +.calendar tbody td.active { /* Active (pressed) cells <TD> */ + padding: 2px 2px 0px 2px; + border: 1px solid; + border-color: #000 #fff #fff #000; +} + +.calendar tbody td.selected { /* Cell showing selected date */ + font-weight: bold; + padding: 2px 2px 0px 2px; + border: 1px solid; + border-color: #000 #fff #fff #000; + background: #d8e0e4; +} + +.calendar tbody td.weekend { /* Cells showing weekend days */ + color: #f00; +} + +.calendar tbody td.today { /* Cell showing today date */ + font-weight: bold; + color: #00f; +} + +.calendar tbody .disabled { color: #999; } + +.calendar tbody .emptycell { /* Empty cells (the best is to hide them) */ + visibility: hidden; +} + +.calendar tbody .emptyrow { /* Empty row (some months need less than 6 rows) */ + display: none; +} + +/* The footer part -- status bar and "Close" button */ + +.calendar tfoot .footrow { /* The <TR> in footer (only one right now) */ +} + +.calendar tfoot .ttip { /* Tooltip (status bar) cell <TD> */ + background: #e8f0f4; + padding: 1px; + border: 1px solid #000; + background: #788084; + color: #fff; + text-align: center; +} + +.calendar tfoot .hilite { /* Hover style for buttons in footer */ + border-top: 1px solid #fff; + border-right: 1px solid #000; + border-bottom: 1px solid #000; + border-left: 1px solid #fff; + padding: 1px; + background: #d8e0e4; +} + +.calendar tfoot .active { /* Active (pressed) style for buttons in footer */ + padding: 2px 0px 0px 2px; + border-top: 1px solid #000; + border-right: 1px solid #fff; + border-bottom: 1px solid #fff; + border-left: 1px solid #000; +} + +/* Combo boxes (menus that display months/years for direct selection) */ + +.calendar .combo { + position: absolute; + display: none; + width: 4em; + top: 0px; + left: 0px; + cursor: default; + border-top: 1px solid #fff; + border-right: 1px solid #000; + border-bottom: 1px solid #000; + border-left: 1px solid #fff; + background: #d8e0e4; + font-size: 90%; + padding: 1px; + z-index: 3000; +} + +.calendar .combo .label, +.calendar .combo .label-IEfix { + text-align: center; + padding: 1px; +} + +.calendar .combo .label-IEfix { + width: 4em; +} + +.calendar .combo .active { + background: #c8d0d4; + padding: 0px; + border-top: 1px solid #000; + border-right: 1px solid #fff; + border-bottom: 1px solid #fff; + border-left: 1px solid #000; +} + +.calendar .combo .hilite { + background: #048; + color: #aef; +} + +.calendar td.time { + border-top: 1px solid #000; + padding: 1px 0px; + text-align: center; + background-color: #e8f0f4; +} + +.calendar td.time .hour, +.calendar td.time .minute, +.calendar td.time .ampm { + padding: 0px 3px 0px 4px; + border: 1px solid #889; + font-weight: bold; + background-color: #fff; +} + +.calendar td.time .ampm { + text-align: center; +} + +.calendar td.time .colon { + padding: 0px 2px 0px 3px; + font-weight: bold; +} + +.calendar td.time span.hilite { + border-color: #000; + background-color: #667; + color: #fff; +} + +.calendar td.time span.active { + border-color: #f00; + background-color: #000; + color: #0f0; +}
Binary file jpoker/themes/pokersource.eu/css/images/favicon.ico has changed
Binary file jpoker/themes/pokersource.eu/css/images/jpoker_table/avatar.gif has changed
Binary file jpoker/themes/pokersource.eu/css/images/jpoker_table/avatar.png has changed
Binary file jpoker/themes/pokersource.eu/css/images/jpoker_table/avatar1.png has changed
Binary file jpoker/themes/pokersource.eu/css/images/jpoker_table/avatar10.png has changed
Binary file jpoker/themes/pokersource.eu/css/images/jpoker_table/avatar11.png has changed
Binary file jpoker/themes/pokersource.eu/css/images/jpoker_table/avatar12.png has changed
Binary file jpoker/themes/pokersource.eu/css/images/jpoker_table/avatar13.png has changed
Binary file jpoker/themes/pokersource.eu/css/images/jpoker_table/avatar14.png has changed
Binary file jpoker/themes/pokersource.eu/css/images/jpoker_table/avatar15.png has changed
Binary file jpoker/themes/pokersource.eu/css/images/jpoker_table/avatar16.png has changed
Binary file jpoker/themes/pokersource.eu/css/images/jpoker_table/avatar17.png has changed
Binary file jpoker/themes/pokersource.eu/css/images/jpoker_table/avatar18.png has changed
Binary file jpoker/themes/pokersource.eu/css/images/jpoker_table/avatar19.png has changed
Binary file jpoker/themes/pokersource.eu/css/images/jpoker_table/avatar2.png has changed
Binary file jpoker/themes/pokersource.eu/css/images/jpoker_table/avatar20.png has changed
Binary file jpoker/themes/pokersource.eu/css/images/jpoker_table/avatar3.png has changed
Binary file jpoker/themes/pokersource.eu/css/images/jpoker_table/avatar4.png has changed
Binary file jpoker/themes/pokersource.eu/css/images/jpoker_table/avatar5.png has changed
Binary file jpoker/themes/pokersource.eu/css/images/jpoker_table/avatar6.png has changed
Binary file jpoker/themes/pokersource.eu/css/images/jpoker_table/avatar7.png has changed
Binary file jpoker/themes/pokersource.eu/css/images/jpoker_table/avatar8.png has changed
Binary file jpoker/themes/pokersource.eu/css/images/jpoker_table/avatar9.png has changed
Binary file jpoker/themes/pokersource.eu/css/images/jpoker_table/background.png has changed
Binary file jpoker/themes/pokersource.eu/css/images/jpoker_table/bet.gif has changed
Binary file jpoker/themes/pokersource.eu/css/images/jpoker_table/bet.png has changed
Binary file jpoker/themes/pokersource.eu/css/images/jpoker_table/bet24.png has changed
Binary file jpoker/themes/pokersource.eu/css/images/jpoker_table/bet32.png has changed
Binary file jpoker/themes/pokersource.eu/css/images/jpoker_table/bet40.png has changed
Binary file jpoker/themes/pokersource.eu/css/images/jpoker_table/bet48.png has changed
Binary file jpoker/themes/pokersource.eu/css/images/jpoker_table/button.png has changed
Binary file jpoker/themes/pokersource.eu/css/images/jpoker_table/call.png has changed
Binary file jpoker/themes/pokersource.eu/css/images/jpoker_table/card-back.gif has changed
Binary file jpoker/themes/pokersource.eu/css/images/jpoker_table/card-back2.gif has changed
Binary file jpoker/themes/pokersource.eu/css/images/jpoker_table/cards/small-2c.png has changed
Binary file jpoker/themes/pokersource.eu/css/images/jpoker_table/cards/small-2d.png has changed
Binary file jpoker/themes/pokersource.eu/css/images/jpoker_table/cards/small-2h.png has changed
Binary file jpoker/themes/pokersource.eu/css/images/jpoker_table/cards/small-2s.png has changed
Binary file jpoker/themes/pokersource.eu/css/images/jpoker_table/cards/small-3c.png has changed
Binary file jpoker/themes/pokersource.eu/css/images/jpoker_table/cards/small-3d.png has changed
Binary file jpoker/themes/pokersource.eu/css/images/jpoker_table/cards/small-3h.png has changed
Binary file jpoker/themes/pokersource.eu/css/images/jpoker_table/cards/small-3s.png has changed
Binary file jpoker/themes/pokersource.eu/css/images/jpoker_table/cards/small-4c.png has changed
Binary file jpoker/themes/pokersource.eu/css/images/jpoker_table/cards/small-4d.png has changed
Binary file jpoker/themes/pokersource.eu/css/images/jpoker_table/cards/small-4h.png has changed
Binary file jpoker/themes/pokersource.eu/css/images/jpoker_table/cards/small-4s.png has changed
Binary file jpoker/themes/pokersource.eu/css/images/jpoker_table/cards/small-5c.png has changed
Binary file jpoker/themes/pokersource.eu/css/images/jpoker_table/cards/small-5d.png has changed
Binary file jpoker/themes/pokersource.eu/css/images/jpoker_table/cards/small-5h.png has changed
Binary file jpoker/themes/pokersource.eu/css/images/jpoker_table/cards/small-5s.png has changed
Binary file jpoker/themes/pokersource.eu/css/images/jpoker_table/cards/small-6c.png has changed
Binary file jpoker/themes/pokersource.eu/css/images/jpoker_table/cards/small-6d.png has changed
Binary file jpoker/themes/pokersource.eu/css/images/jpoker_table/cards/small-6h.png has changed
Binary file jpoker/themes/pokersource.eu/css/images/jpoker_table/cards/small-6s.png has changed
Binary file jpoker/themes/pokersource.eu/css/images/jpoker_table/cards/small-7c.png has changed
Binary file jpoker/themes/pokersource.eu/css/images/jpoker_table/cards/small-7d.png has changed
Binary file jpoker/themes/pokersource.eu/css/images/jpoker_table/cards/small-7h.png has changed
Binary file jpoker/themes/pokersource.eu/css/images/jpoker_table/cards/small-7s.png has changed
Binary file jpoker/themes/pokersource.eu/css/images/jpoker_table/cards/small-8c.png has changed
Binary file jpoker/themes/pokersource.eu/css/images/jpoker_table/cards/small-8d.png has changed
Binary file jpoker/themes/pokersource.eu/css/images/jpoker_table/cards/small-8h.png has changed
Binary file jpoker/themes/pokersource.eu/css/images/jpoker_table/cards/small-8s.png has changed
Binary file jpoker/themes/pokersource.eu/css/images/jpoker_table/cards/small-9c.png has changed
Binary file jpoker/themes/pokersource.eu/css/images/jpoker_table/cards/small-9d.png has changed
Binary file jpoker/themes/pokersource.eu/css/images/jpoker_table/cards/small-9h.png has changed
Binary file jpoker/themes/pokersource.eu/css/images/jpoker_table/cards/small-9s.png has changed
Binary file jpoker/themes/pokersource.eu/css/images/jpoker_table/cards/small-Ac.png has changed
Binary file jpoker/themes/pokersource.eu/css/images/jpoker_table/cards/small-Ah.png has changed
Binary file jpoker/themes/pokersource.eu/css/images/jpoker_table/cards/small-As.png has changed
Binary file jpoker/themes/pokersource.eu/css/images/jpoker_table/cards/small-Ax.png has changed
Binary file jpoker/themes/pokersource.eu/css/images/jpoker_table/cards/small-Jc.png has changed
Binary file jpoker/themes/pokersource.eu/css/images/jpoker_table/cards/small-Jd.png has changed
Binary file jpoker/themes/pokersource.eu/css/images/jpoker_table/cards/small-Jh.png has changed
Binary file jpoker/themes/pokersource.eu/css/images/jpoker_table/cards/small-Js.png has changed
Binary file jpoker/themes/pokersource.eu/css/images/jpoker_table/cards/small-Kc.png has changed
Binary file jpoker/themes/pokersource.eu/css/images/jpoker_table/cards/small-Kd.png has changed
Binary file jpoker/themes/pokersource.eu/css/images/jpoker_table/cards/small-Kh.png has changed
Binary file jpoker/themes/pokersource.eu/css/images/jpoker_table/cards/small-Ks.png has changed
Binary file jpoker/themes/pokersource.eu/css/images/jpoker_table/cards/small-Qc.png has changed
Binary file jpoker/themes/pokersource.eu/css/images/jpoker_table/cards/small-Qd.png has changed
Binary file jpoker/themes/pokersource.eu/css/images/jpoker_table/cards/small-Qh.png has changed
Binary file jpoker/themes/pokersource.eu/css/images/jpoker_table/cards/small-Qs.png has changed
Binary file jpoker/themes/pokersource.eu/css/images/jpoker_table/cards/small-Tc.png has changed
Binary file jpoker/themes/pokersource.eu/css/images/jpoker_table/cards/small-Td.png has changed
Binary file jpoker/themes/pokersource.eu/css/images/jpoker_table/cards/small-Th.png has changed
Binary file jpoker/themes/pokersource.eu/css/images/jpoker_table/cards/small-Ts.png has changed
Binary file jpoker/themes/pokersource.eu/css/images/jpoker_table/cards/small-back.png has changed
Binary file jpoker/themes/pokersource.eu/css/images/jpoker_table/check-call.gif has changed
Binary file jpoker/themes/pokersource.eu/css/images/jpoker_table/check.png has changed
Binary file jpoker/themes/pokersource.eu/css/images/jpoker_table/dealer.gif has changed
Binary file jpoker/themes/pokersource.eu/css/images/jpoker_table/dealer.png has changed
Binary file jpoker/themes/pokersource.eu/css/images/jpoker_table/exit.png has changed
Binary file jpoker/themes/pokersource.eu/css/images/jpoker_table/fold.png has changed
Binary file jpoker/themes/pokersource.eu/css/images/jpoker_table/get_seat.png has changed
Binary file jpoker/themes/pokersource.eu/css/images/jpoker_table/loading.gif has changed
Binary file jpoker/themes/pokersource.eu/css/images/jpoker_table/menu-button.gif has changed
Binary file jpoker/themes/pokersource.eu/css/images/jpoker_table/money.png has changed
Binary file jpoker/themes/pokersource.eu/css/images/jpoker_table/name.png has changed
Binary file jpoker/themes/pokersource.eu/css/images/jpoker_table/pot.gif has changed
Binary file jpoker/themes/pokersource.eu/css/images/jpoker_table/pot.png has changed
Binary file jpoker/themes/pokersource.eu/css/images/jpoker_table/pot12.png has changed
Binary file jpoker/themes/pokersource.eu/css/images/jpoker_table/pot24.png has changed
Binary file jpoker/themes/pokersource.eu/css/images/jpoker_table/pot32.png has changed
Binary file jpoker/themes/pokersource.eu/css/images/jpoker_table/pot40.png has changed
Binary file jpoker/themes/pokersource.eu/css/images/jpoker_table/pot48.png has changed
Binary file jpoker/themes/pokersource.eu/css/images/jpoker_table/raise.png has changed
Binary file jpoker/themes/pokersource.eu/css/images/jpoker_table/raise_slider.png has changed
Binary file jpoker/themes/pokersource.eu/css/images/jpoker_table/raise_slider_dock.png has changed
Binary file jpoker/themes/pokersource.eu/css/images/jpoker_table/rebuy.png has changed
Binary file jpoker/themes/pokersource.eu/css/images/jpoker_table/seat-sit.gif has changed
Binary file jpoker/themes/pokersource.eu/css/images/jpoker_table/seat.gif has changed
Binary file jpoker/themes/pokersource.eu/css/images/jpoker_table/seat.png has changed
Binary file jpoker/themes/pokersource.eu/css/images/jpoker_table/seat_position.gif has changed
Binary file jpoker/themes/pokersource.eu/css/images/jpoker_table/seat_position.png has changed
Binary file jpoker/themes/pokersource.eu/css/images/jpoker_table/status.png has changed
Binary file jpoker/themes/pokersource.eu/css/images/jpoker_table/table.png has changed
Binary file jpoker/themes/pokersource.eu/css/images/jpoker_table/table1_active.png has changed
Binary file jpoker/themes/pokersource.eu/css/images/jpoker_table/table1_normal.png has changed
Binary file jpoker/themes/pokersource.eu/css/images/jpoker_table/table2_active.png has changed
Binary file jpoker/themes/pokersource.eu/css/images/jpoker_table/table2_normal.png has changed
Binary file jpoker/themes/pokersource.eu/css/images/jpoker_table/table3_active.png has changed
Binary file jpoker/themes/pokersource.eu/css/images/jpoker_table/table3_normal.png has changed
Binary file jpoker/themes/pokersource.eu/css/images/jpoker_table/table4_active.png has changed
Binary file jpoker/themes/pokersource.eu/css/images/jpoker_table/table4_normal.png has changed
Binary file jpoker/themes/pokersource.eu/css/images/jpoker_table/table5_active.png has changed
Binary file jpoker/themes/pokersource.eu/css/images/jpoker_table/table5_normal.png has changed
Binary file jpoker/themes/pokersource.eu/css/images/jpoker_table/tables_dock.png has changed
Binary file jpoker/themes/pokersource.eu/css/images/jpoker_table/winner.png has changed
Binary file jpoker/themes/pokersource.eu/css/images/logo.png has changed
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/jpoker/themes/pokersource.eu/css/jpoker.css Mon Apr 19 05:40:37 2010 +0200 @@ -0,0 +1,17 @@ +@import "jpoker_common.css"; +@import "jpoker_table_layout.css"; +@import "jpoker_table.css"; +@import "jpoker_table_list.css"; +@import "jpoker_regular_tourney_list.css"; +@import "jpoker_sitngo_tourney_list.css"; +@import "jpoker_tourney_details.css"; +@import "jpoker_tourney_placeholder.css"; +@import "jpoker_login.css"; +@import "jpoker_server_status.css"; +@import "jpoker_copyright.css"; +@import "jpoker_user_info.css"; +@import "jpoker_chat.css"; +@import "jpoker_timeout.css"; +@import "jpoker_jquery_ui/all.css"; +@import "jpoker_tablesorter_pager.css"; +@import "jpoker_tablepicker.css"; \ No newline at end of file
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/jpoker/themes/pokersource.eu/css/jpoker_chat.css Mon Apr 19 05:40:37 2010 +0200 @@ -0,0 +1,68 @@ +.jpoker_chat_history_player_box { + position: absolute; + top: 400px; + left: 7px; + width: 227px; +} + +.jpoker_chat_history_player_heading, .jpoker_chat_history_dealer_heading { + height: 18px; + text-transform: uppercase; + font-weight: bold; + text-align: center; + color: white; +} + +.jpoker_chat_history_player { + background-color: white; + overflow: auto; + height: 87px; +} + +.jpoker_chat_input { + border-top :1px solid black; + left :7px; + position :absolute; + top: 505px; + width:227px; + height: 20px; + background-color: white; +} + +.jpoker_chat_input input { + font-size: 10px; + padding-top: 4px; +} + +.jpoker_chat_history_dealer_box { + position: absolute; + top: 400px; + left: 516px; + width: 240px; +} + +.jpoker_chat_history_dealer { + overflow: auto; + height: 107px; +} + +.jpoker_chat_message { + line-height: 1.5em; +} + +.jpoker_chat_history_dealer .jpoker_chat_message { + color: red; + line-height: 1.5em; +} + +.jpoker_chat_line{ + padding:0 0.2em; +} +.jpoker_chat_history_dealer{ + background: #ddd; + border-top:1px solid #ccc; +} + +.jpoker_chat_prefix{ + font-weight: bold; +}
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/jpoker/themes/pokersource.eu/css/jpoker_common.css Mon Apr 19 05:40:37 2010 +0200 @@ -0,0 +1,31 @@ + +/* jpoker_common.css contains general styles */ + +.jpoker_widget { + font-family : "Trebuchet MS", Arial, Helvetica, sans-serif; + font-size: 12px; +} + +.jpoker_widget a { + color : #17691c; + text-decoration: none; + outline: none; +} + +.jpoker_widget a:hover { + background: #17691c; + color: #fff; +} + +.jpoker_widget label, +.jpoker_widget input { + vertical-align: middle; +} + +#jpokerErrorDialog .jquery_error_message { + font-weight: bold; +} + +#jpokerErrorDialog .jquery_error_details { + padding-top: 1em; +}
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/jpoker/themes/pokersource.eu/css/jpoker_copyright.css Mon Apr 19 05:40:37 2010 +0200 @@ -0,0 +1,42 @@ + +/* copyright notice dialog box */ + +#jpoker_copyright { + font-family: "Trebuchet MS", Arial, Helvetica, sans-serif; + font-size: 12px; + background-color: #73BF60; + color: #000; + width: 400px; + padding: 2em; + text-align: center; +} + +#jpoker_copyright a { + color: #FFF; + outline: none; +} + +#jpoker_copyright .jpoker_software, +#jpoker_copyright .jpoker_authors, +#jpoker_copyright .jpoker_download { + font-weight: bolder; +} + +#jpoker_copyright .jpoker_license, +#jpoker_copyright .jpoker_explain, +#jpoker_copyright .jpoker_full_copyright { + margin: 1em; + text-align: justify; +} + +#jpoker_copyright .jpoker_download { + margin: 1em; +} + +#jpoker_copyright .jpoker_dismiss a { + border: 2px solid #24B300; + font-weight: bolder; + display: block; + text-decoration: none; +} +
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/jpoker/themes/pokersource.eu/css/jpoker_jquery_ui/all.css Mon Apr 19 05:40:37 2010 +0200 @@ -0,0 +1,8 @@ +@import "dialog.css"; +@import "resizable.css"; +@import "slider.css"; + +/* themes/flora/flora.css */ + +.ui-wrapper { border: 1px solid #50A029; } +.ui-wrapper input, .ui-wrapper textarea { border: 0; }
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/jpoker/themes/pokersource.eu/css/jpoker_jquery_ui/dialog.css Mon Apr 19 05:40:37 2010 +0200 @@ -0,0 +1,98 @@ +/* themes/flora/flora.dialog.css */ +/* This file skins dialog */ + +.jpoker_jquery_ui .ui-dialog, +.jpoker_jquery_ui.ui-dialog { + background-color: #e6f7d4; + border:1px solid #AAAAAA; + font-family: "trebuchet MS",arial,helvetica,sans-serif; +} + +.jpoker_jquery_ui .ui-dialog .ui-dialog-titlebar, +.jpoker_jquery_ui.ui-dialog .ui-dialog-titlebar { + border-bottom: 1px solid #d8d2aa; + background: #ff9900 url(i/dialog-title.gif) repeat-x; + padding: 0px; + height: 28px; + _height: 29px; +} + +.jpoker_jquery_ui .ui-dialog.ui-draggable .ui-dialog-titlebar, +.jpoker_jquery_ui.ui-dialog.ui-draggable .ui-dialog-titlebar { + cursor: move; +} + +.jpoker_jquery_ui .ui-dialog .ui-dialog-titlebar-close, +.jpoker_jquery_ui.ui-dialog .ui-dialog-titlebar-close { + width: 16px; + height: 16px; + background: url(i/dialog-titlebar-close.png) no-repeat; + position:absolute; + top: 6px; + right: 7px; + cursor: default; +} + +.jpoker_jquery_ui .ui-dialog .ui-dialog-titlebar-close span, +.jpoker_jquery_ui.ui-dialog .ui-dialog-titlebar-close span { + display: none; +} + +.jpoker_jquery_ui .ui-dialog .ui-dialog-titlebar-close-hover, +.jpoker_jquery_ui.ui-dialog .ui-dialog-titlebar-close-hover { + background: url(i/dialog-titlebar-close-hover.png) no-repeat; +} + +.jpoker_jquery_ui .ui-dialog .ui-dialog-title, +.jpoker_jquery_ui.ui-dialog .ui-dialog-title { + margin-left: 5px; + color: white; + font-weight: bold; + position: relative; + top: 7px; + left: 4px; +} + +.jpoker_jquery_ui .ui-dialog .ui-dialog-content, +.jpoker_jquery_ui.ui-dialog .ui-dialog-content { + margin: 20px; +} + +.jpoker_jquery_ui .ui-dialog .ui-dialog-buttonpane, +.jpoker_jquery_ui.ui-dialog .ui-dialog-buttonpane { + position: absolute; + bottom: 8px; + right: 12px; + width: 100%; + text-align: right; +} + +.jpoker_jquery_ui .ui-dialog .ui-dialog-buttonpane button, +.jpoker_jquery_ui.ui-dialog .ui-dialog-buttonpane button { + margin: 6px; +} + +/* Dialog handle styles */ +.jpoker_jquery_ui .ui-dialog .ui-resizable-n, +.jpoker_jquery_ui.ui-dialog .ui-resizable-n { cursor: n-resize; height: 6px; width: 100%; top: 0px; left: 0px; background: transparent url(i/dialog-n.gif) repeat scroll center top; } + +.jpoker_jquery_ui .ui-dialog .ui-resizable-s, +.jpoker_jquery_ui.ui-dialog .ui-resizable-s { cursor: s-resize; height: 8px; width: 100%; bottom: 0px; left: 0px; background: transparent url(i/dialog-s.gif) repeat scroll center top; } + +.jpoker_jquery_ui .ui-dialog .ui-resizable-e, +.jpoker_jquery_ui.ui-dialog .ui-resizable-e { cursor: e-resize; width: 7px; right: 0px; top: 0px; height: 100%; background: transparent url(i/dialog-e.gif) repeat scroll right center; } + +.jpoker_jquery_ui .ui-dialog .ui-resizable-w, +.jpoker_jquery_ui.ui-dialog .ui-resizable-w { cursor: w-resize; width: 7px; left: 0px; top: 0px; height: 100%; background: transparent url(i/dialog-w.gif) repeat scroll right center; } + +.jpoker_jquery_ui .ui-dialog .ui-resizable-se, +.jpoker_jquery_ui.ui-dialog .ui-resizable-se { cursor: se-resize; width: 9px; height: 9px; right: 0px; bottom: 0px; background: transparent url(i/dialog-se.gif); } + +.jpoker_jquery_ui .ui-dialog .ui-resizable-sw, +.jpoker_jquery_ui.ui-dialog .ui-resizable-sw { cursor: sw-resize; width: 9px; height: 9px; left: 0px; bottom: 0px; background: transparent url(i/dialog-sw.gif); } + +.jpoker_jquery_ui .ui-dialog .ui-resizable-nw, +.jpoker_jquery_ui.ui-dialog .ui-resizable-nw { cursor: nw-resize; width: 9px; height: 29px; left: 0px; top: 0px; background: transparent url(i/dialog-nw.gif); } + +.jpoker_jquery_ui .ui-dialog .ui-resizable-ne, +.jpoker_jquery_ui.ui-dialog .ui-resizable-ne { cursor: ne-resize; width: 9px; height: 29px; right: 0px; top: 0px; background: transparent url(i/dialog-ne.gif); }
Binary file jpoker/themes/pokersource.eu/css/jpoker_jquery_ui/i/dialog-e.gif has changed
Binary file jpoker/themes/pokersource.eu/css/jpoker_jquery_ui/i/dialog-n.gif has changed
Binary file jpoker/themes/pokersource.eu/css/jpoker_jquery_ui/i/dialog-ne.gif has changed
Binary file jpoker/themes/pokersource.eu/css/jpoker_jquery_ui/i/dialog-nw.gif has changed
Binary file jpoker/themes/pokersource.eu/css/jpoker_jquery_ui/i/dialog-s.gif has changed
Binary file jpoker/themes/pokersource.eu/css/jpoker_jquery_ui/i/dialog-se.gif has changed
Binary file jpoker/themes/pokersource.eu/css/jpoker_jquery_ui/i/dialog-sw.gif has changed
Binary file jpoker/themes/pokersource.eu/css/jpoker_jquery_ui/i/dialog-title.gif has changed
Binary file jpoker/themes/pokersource.eu/css/jpoker_jquery_ui/i/dialog-titlebar-close-hover.png has changed
Binary file jpoker/themes/pokersource.eu/css/jpoker_jquery_ui/i/dialog-titlebar-close.png has changed
Binary file jpoker/themes/pokersource.eu/css/jpoker_jquery_ui/i/dialog-w.gif has changed
Binary file jpoker/themes/pokersource.eu/css/jpoker_jquery_ui/i/resizable-e.gif has changed
Binary file jpoker/themes/pokersource.eu/css/jpoker_jquery_ui/i/resizable-n.gif has changed
Binary file jpoker/themes/pokersource.eu/css/jpoker_jquery_ui/i/resizable-ne.gif has changed
Binary file jpoker/themes/pokersource.eu/css/jpoker_jquery_ui/i/resizable-nw.gif has changed
Binary file jpoker/themes/pokersource.eu/css/jpoker_jquery_ui/i/resizable-s.gif has changed
Binary file jpoker/themes/pokersource.eu/css/jpoker_jquery_ui/i/resizable-se.gif has changed
Binary file jpoker/themes/pokersource.eu/css/jpoker_jquery_ui/i/resizable-sw.gif has changed
Binary file jpoker/themes/pokersource.eu/css/jpoker_jquery_ui/i/resizable-w.gif has changed
Binary file jpoker/themes/pokersource.eu/css/jpoker_jquery_ui/i/slider-bg-1.png has changed
Binary file jpoker/themes/pokersource.eu/css/jpoker_jquery_ui/i/slider-bg-2.png has changed
Binary file jpoker/themes/pokersource.eu/css/jpoker_jquery_ui/i/slider-handle.gif has changed
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/jpoker/themes/pokersource.eu/css/jpoker_jquery_ui/resizable.css Mon Apr 19 05:40:37 2010 +0200 @@ -0,0 +1,21 @@ +/* themes/flora/flora.resizable.css */ +/* This file skins resizables */ + +.ui-resizable { position: relative; } + +/* Global handle styles */ +.ui-resizable-handle { position: absolute; display: none; font-size: 0.1px; } +.ui-resizable .ui-resizable-handle { display: block; } +body .ui-resizable-disabled .ui-resizable-handle { display: none; } /* use 'body' to make it more specific (css order) */ +body .ui-resizable-autohide .ui-resizable-handle { display: none; } /* use 'body' to make it more specific (css order) */ + +.ui-resizable-n { cursor: n-resize; height: 6px; width: 100%; top: 0px; left: 0px; background: transparent url(i/resizable-n.gif) repeat scroll center top; } +.ui-resizable-s { cursor: s-resize; height: 6px; width: 100%; bottom: 0px; left: 0px; background: transparent url(i/resizable-s.gif) repeat scroll center top; } + +.ui-resizable-e { cursor: e-resize; width: 6px; right: 0px; top: 0px; height: 100%; background: transparent url(i/resizable-e.gif) repeat scroll right center; } +.ui-resizable-w { cursor: w-resize; width: 6px; left: 0px; top: 0px; height: 100%; background: transparent url(i/resizable-w.gif) repeat scroll right center; } + +.ui-resizable-se { cursor: se-resize; width: 9px; height: 9px; right: 0px; bottom: 0px; background: transparent url(i/resizable-se.gif); } +.ui-resizable-sw { cursor: sw-resize; width: 9px; height: 9px; left: 0px; bottom: 0px; background: transparent url(i/resizable-sw.gif); } +.ui-resizable-nw { cursor: nw-resize; width: 9px; height: 9px; left: 0px; top: 0px; background: transparent url(i/resizable-nw.gif); } +.ui-resizable-ne { cursor: ne-resize; width: 9px; height: 9px; right: 0px; top: 0px; background: transparent url(i/resizable-ne.gif); } \ No newline at end of file
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/jpoker/themes/pokersource.eu/css/jpoker_jquery_ui/slider.css Mon Apr 19 05:40:37 2010 +0200 @@ -0,0 +1,12 @@ +/* themes/flora/flora.slider.css */ +/* This file skins sliders */ + +.ui-slider { width: 200px; height: 23px; position: relative; background-repeat: no-repeat; background-position: center center; } +.ui-slider-handle { position: absolute; z-index: 1; height: 23px; width: 12px; top: 0px; left: 0px; background-image: url(i/slider-handle.gif); } +.ui-slider-handle-active { border: 1px dotted black; } +.ui-slider-disabled .ui-slider-handle { opacity: 0.5; filter: alpha(opacity=50); } +.ui-slider-range { position: absolute; background: #50A029; opacity: 0.3; filter: alpha(opacity=30); width: 100%; height: 100%; } + +/* Default slider backgrounds */ +.ui-slider, .ui-slider-1 { background-image: url(i/slider-bg-1.png); } +.ui-slider-2 { background-image: url(i/slider-bg-2.png); } \ No newline at end of file
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/jpoker/themes/pokersource.eu/css/jpoker_login.css Mon Apr 19 05:40:37 2010 +0200 @@ -0,0 +1,51 @@ +.jpoker_login, .jpoker_logout { + color: #444; +} + +.jpoker_login { + background:#eee; + border:1px solid #ccc; + padding:10px; + float:right; +} + +.jpoker_login_submit, .jpoker_login_signup{ + width: 100%; + cursor: pointer; +} + + .jpoker_logout { + font-weight: bold; +} + +.jpoker_logout a, .jpoker_logout a:hover { + background: transparent; + color: #009E03; + text-decoration:none; + border-bottom:0; +} + +.ui-dialog-overlay { + background-color: black; + opacity: 0.3; +} + +.jpoker_signup { + background-color: white; +} + +.jpoker_signup_content { + margin: 20px; +} + +/* +td.login_text{ + padding:5px 5px; + text-align:left; +} + +td.login_input input { + border:1px solid [[ColorPalette::TertiaryLight]]; + width:140px; +} +*/
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/jpoker/themes/pokersource.eu/css/jpoker_regular_tourney_list.css Mon Apr 19 05:40:37 2010 +0200 @@ -0,0 +1,49 @@ +.jpoker_regular_tourney_list table { + border: 1px solid #24B300; +} +.jpoker_regular_tourney_list th { + background: #24B300; + padding: 0.5em 1em; +} +.jpoker_regular_tourney_list td { + padding: 0.5em 1em; +} +.jpoker_regular_tourney_list tr { + cursor: pointer; +} +.jpoker_regular_tourney_list tr.jpoker_tourney_state_announced, +.jpoker_regular_tourney_list tr.jpoker_tourney_state_canceled { + cursor: default; +} +.jpoker_regular_tourney_list .odd { + background: #CCFFBF; +} +.jpoker_regular_tourney_list .headerSortUp, +.jpoker_regular_tourney_list .headerSortDown { + background: #73BF60; +} +.jpoker_regular_tourney_list tr.hover { + background: #73BF60; + color: #fff; +} + +.jpoker_widget.jpoker_regular_tourney_list table { + border: 2px solid #17691c; + border-collapse: collapse; + font-size: 1.2em; + color: #444; +} + +.jpoker_widget.jpoker_regular_tourney_list table th, +.jpoker_widget.jpoker_regular_tourney_list table thead td { + background: #17691c; + border: 1px solid #17691c; + color: #fff; + padding: 3px; +} + +.jpoker_widget.jpoker_regular_tourney_list tr, +.jpoker_widget.jpoker_regular_tourney_list td { + border: 1px solid #17691c; + padding: 3px; +}
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/jpoker/themes/pokersource.eu/css/jpoker_server_status.css Mon Apr 19 05:40:37 2010 +0200 @@ -0,0 +1,5 @@ +.jpoker_server_status { + padding: 2px 5px; + margin-left: 1.5em; + color: #444; +}
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/jpoker/themes/pokersource.eu/css/jpoker_sitngo_tourney_list.css Mon Apr 19 05:40:37 2010 +0200 @@ -0,0 +1,46 @@ +.jpoker_sitngo_tourney_list table { + border:1px solid #24B300; +} +.jpoker_sitngo_tourney_list th { + background: #24B300; + padding: 0.5em 1em; +} +.jpoker_sitngo_tourney_list td { + padding: 0.5em 1em; +} +.jpoker_sitngo_tourney_list tr { + cursor:pointer; +} +.jpoker_sitngo_tourney_list .odd { + background:#CCFFBF; +} +.jpoker_sitngo_tourney_list .headerSortUp { + background:#73BF60; +} +.jpoker_sitngo_tourney_list .headerSortDown { + background:#73BF60; +} +.jpoker_sitngo_tourney_list tr.hover { + background:#73BF60; + color:#fff; +} + +.jpoker_widget.jpoker_sitngo_tourney_list table { + border:2px solid #17691c; + border-collapse:collapse; + font-size:14px; + font-family:"trebuchet MS",arial,helvetica,sans-serif; + color:#444; +} + +.jpoker_widget.jpoker_sitngo_tourney_list table th, .jpoker_widget.jpoker_sitngo_tourney_list table thead td, .jpoker_widget.jpoker_sitngo_tourney_list table th, .jpoker_widget.jpoker_sitngo_tourney_list table thead td { + background:#17691c; + border:1px solid #17691c; + color:#fff; + padding:3px; +} + +.jpoker_widget.jpoker_sitngo_tourney_list td, .jpoker_widget.jpoker_sitngo_tourney_list tr, .jpoker_widget.jpoker_sitngo_tourney_list td, .jpoker_widget.jpoker_sitngo_tourney_list tr { + border:1px solid #17691c; + padding:3px; +}
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/jpoker/themes/pokersource.eu/css/jpoker_table.css Mon Apr 19 05:40:37 2010 +0200 @@ -0,0 +1,557 @@ +.jpoker_table {font-size: 10px; font-family: "trebuchet MS",arial,helvetica,sans-serif; } + +.jpoker_table .jpoker_avatar { + background-image: none; +} +.jpoker_table .jpoker_avatar_default_1 { background-image: url("images/jpoker_table/avatar1.png"); } +.jpoker_table .jpoker_avatar_default_2 { background-image: url("images/jpoker_table/avatar2.png"); } +.jpoker_table .jpoker_avatar_default_3 { background-image: url("images/jpoker_table/avatar3.png"); } +.jpoker_table .jpoker_avatar_default_4 { background-image: url("images/jpoker_table/avatar4.png"); } +.jpoker_table .jpoker_avatar_default_5 { background-image: url("images/jpoker_table/avatar5.png"); } +.jpoker_table .jpoker_avatar_default_6 { background-image: url("images/jpoker_table/avatar6.png"); } +.jpoker_table .jpoker_avatar_default_7 { background-image: url("images/jpoker_table/avatar7.png"); } +.jpoker_table .jpoker_avatar_default_8 { background-image: url("images/jpoker_table/avatar8.png"); } +.jpoker_table .jpoker_avatar_default_9 { background-image: url("images/jpoker_table/avatar9.png"); } +.jpoker_table .jpoker_avatar_default_10 { background-image: url("images/jpoker_table/avatar10.png"); } +.jpoker_table .jpoker_avatar_default_11 { background-image: url("images/jpoker_table/avatar11.png"); } +.jpoker_table .jpoker_avatar_default_12 { background-image: url("images/jpoker_table/avatar12.png"); } +.jpoker_table .jpoker_avatar_default_13 { background-image: url("images/jpoker_table/avatar13.png"); } +.jpoker_table .jpoker_avatar_default_14 { background-image: url("images/jpoker_table/avatar14.png"); } +.jpoker_table .jpoker_avatar_default_15 { background-image: url("images/jpoker_table/avatar15.png"); } +.jpoker_table .jpoker_avatar_default_16 { background-image: url("images/jpoker_table/avatar16.png"); } +.jpoker_table .jpoker_avatar_default_17 { background-image: url("images/jpoker_table/avatar17.png"); } +.jpoker_table .jpoker_avatar_default_18 { background-image: url("images/jpoker_table/avatar18.png"); } +.jpoker_table .jpoker_avatar_default_19 { background-image: url("images/jpoker_table/avatar19.png"); } +.jpoker_table .jpoker_avatar_default_20 { background-image: url("images/jpoker_table/avatar20.png"); } + +.jpoker_table .jpoker_avatar +{ + background-repeat: no-repeat; + border: 1px solid #bbb; +} + +.jpoker_table .jpoker_avatar img +{ + border: 0; + width: 63px; + height: 43px; +} + +.jpoker_table .jpoker_seat_hover .jpoker_avatar +{ + border: 1px solid #fff; +} + +.jpoker_table .jpoker_timeout +{ + z-index: 2; +} + +.jpoker_table .jpoker_card_2h { background-image: url("images/jpoker_table/cards/small-2h.png"); } +.jpoker_table .jpoker_card_3h { background-image: url("images/jpoker_table/cards/small-3h.png"); } +.jpoker_table .jpoker_card_4h { background-image: url("images/jpoker_table/cards/small-4h.png"); } +.jpoker_table .jpoker_card_5h { background-image: url("images/jpoker_table/cards/small-5h.png"); } +.jpoker_table .jpoker_card_6h { background-image: url("images/jpoker_table/cards/small-6h.png"); } +.jpoker_table .jpoker_card_7h { background-image: url("images/jpoker_table/cards/small-7h.png"); } +.jpoker_table .jpoker_card_8h { background-image: url("images/jpoker_table/cards/small-8h.png"); } +.jpoker_table .jpoker_card_9h { background-image: url("images/jpoker_table/cards/small-9h.png"); } +.jpoker_table .jpoker_card_Th { background-image: url("images/jpoker_table/cards/small-Th.png"); } +.jpoker_table .jpoker_card_Jh { background-image: url("images/jpoker_table/cards/small-Jh.png"); } +.jpoker_table .jpoker_card_Qh { background-image: url("images/jpoker_table/cards/small-Qh.png"); } +.jpoker_table .jpoker_card_Kh { background-image: url("images/jpoker_table/cards/small-Kh.png"); } +.jpoker_table .jpoker_card_Ah { background-image: url("images/jpoker_table/cards/small-Ah.png"); } +.jpoker_table .jpoker_card_2d { background-image: url("images/jpoker_table/cards/small-2d.png"); } +.jpoker_table .jpoker_card_3d { background-image: url("images/jpoker_table/cards/small-3d.png"); } +.jpoker_table .jpoker_card_4d { background-image: url("images/jpoker_table/cards/small-4d.png"); } +.jpoker_table .jpoker_card_5d { background-image: url("images/jpoker_table/cards/small-5d.png"); } +.jpoker_table .jpoker_card_6d { background-image: url("images/jpoker_table/cards/small-6d.png"); } +.jpoker_table .jpoker_card_7d { background-image: url("images/jpoker_table/cards/small-7d.png"); } +.jpoker_table .jpoker_card_8d { background-image: url("images/jpoker_table/cards/small-8d.png"); } +.jpoker_table .jpoker_card_9d { background-image: url("images/jpoker_table/cards/small-9d.png"); } +.jpoker_table .jpoker_card_Td { background-image: url("images/jpoker_table/cards/small-Td.png"); } +.jpoker_table .jpoker_card_Jd { background-image: url("images/jpoker_table/cards/small-Jd.png"); } +.jpoker_table .jpoker_card_Qd { background-image: url("images/jpoker_table/cards/small-Qd.png"); } +.jpoker_table .jpoker_card_Kd { background-image: url("images/jpoker_table/cards/small-Kd.png"); } +.jpoker_table .jpoker_card_Ax { background-image: url("images/jpoker_table/cards/small-Ax.png"); } +.jpoker_table .jpoker_card_2c { background-image: url("images/jpoker_table/cards/small-2c.png"); } +.jpoker_table .jpoker_card_3c { background-image: url("images/jpoker_table/cards/small-3c.png"); } +.jpoker_table .jpoker_card_4c { background-image: url("images/jpoker_table/cards/small-4c.png"); } +.jpoker_table .jpoker_card_5c { background-image: url("images/jpoker_table/cards/small-5c.png"); } +.jpoker_table .jpoker_card_6c { background-image: url("images/jpoker_table/cards/small-6c.png"); } +.jpoker_table .jpoker_card_7c { background-image: url("images/jpoker_table/cards/small-7c.png"); } +.jpoker_table .jpoker_card_8c { background-image: url("images/jpoker_table/cards/small-8c.png"); } +.jpoker_table .jpoker_card_9c { background-image: url("images/jpoker_table/cards/small-9c.png"); } +.jpoker_table .jpoker_card_Tc { background-image: url("images/jpoker_table/cards/small-Tc.png"); } +.jpoker_table .jpoker_card_Jc { background-image: url("images/jpoker_table/cards/small-Jc.png"); } +.jpoker_table .jpoker_card_Qc { background-image: url("images/jpoker_table/cards/small-Qc.png"); } +.jpoker_table .jpoker_card_Kc { background-image: url("images/jpoker_table/cards/small-Kc.png"); } +.jpoker_table .jpoker_card_Ac { background-image: url("images/jpoker_table/cards/small-Ac.png"); } +.jpoker_table .jpoker_card_2s { background-image: url("images/jpoker_table/cards/small-2s.png"); } +.jpoker_table .jpoker_card_3s { background-image: url("images/jpoker_table/cards/small-3s.png"); } +.jpoker_table .jpoker_card_4s { background-image: url("images/jpoker_table/cards/small-4s.png"); } +.jpoker_table .jpoker_card_5s { background-image: url("images/jpoker_table/cards/small-5s.png"); } +.jpoker_table .jpoker_card_6s { background-image: url("images/jpoker_table/cards/small-6s.png"); } +.jpoker_table .jpoker_card_7s { background-image: url("images/jpoker_table/cards/small-7s.png"); } +.jpoker_table .jpoker_card_8s { background-image: url("images/jpoker_table/cards/small-8s.png"); } +.jpoker_table .jpoker_card_9s { background-image: url("images/jpoker_table/cards/small-9s.png"); } +.jpoker_table .jpoker_card_Ts { background-image: url("images/jpoker_table/cards/small-Ts.png"); } +.jpoker_table .jpoker_card_Js { background-image: url("images/jpoker_table/cards/small-Js.png"); } +.jpoker_table .jpoker_card_Qs { background-image: url("images/jpoker_table/cards/small-Qs.png"); } +.jpoker_table .jpoker_card_Ks { background-image: url("images/jpoker_table/cards/small-Ks.png"); } +.jpoker_table .jpoker_card_As { background-image: url("images/jpoker_table/cards/small-As.png"); } +.jpoker_table .jpoker_card_back { background-image: url("images/jpoker_table/cards/small-back.png"); } + + +.jpoker_table .jpoker_position .jpoker_ptable_player_seat0_background, +.jpoker_table .jpoker_position .jpoker_ptable_player_seat1_background, +.jpoker_table .jpoker_position .jpoker_ptable_player_seat2_background, +.jpoker_table .jpoker_position .jpoker_ptable_player_seat3_background, +.jpoker_table .jpoker_position .jpoker_ptable_player_seat4_background, +.jpoker_table .jpoker_position .jpoker_ptable_player_seat5_background, +.jpoker_table .jpoker_position .jpoker_ptable_player_seat6_background, +.jpoker_table .jpoker_position .jpoker_ptable_player_seat7_background, +.jpoker_table .jpoker_position .jpoker_ptable_player_seat8_background, +.jpoker_table .jpoker_position .jpoker_ptable_player_seat9_background +{ + background-image: url(images/jpoker_table/seat_position.gif); +} + + +.jpoker_table .jpoker_ptable_sit_seat0, +.jpoker_table .jpoker_ptable_sit_seat1, +.jpoker_table .jpoker_ptable_sit_seat2, +.jpoker_table .jpoker_ptable_sit_seat3, +.jpoker_table .jpoker_ptable_sit_seat4, +.jpoker_table .jpoker_ptable_sit_seat5, +.jpoker_table .jpoker_ptable_sit_seat6, +.jpoker_table .jpoker_ptable_sit_seat7, +.jpoker_table .jpoker_ptable_sit_seat8, +.jpoker_table .jpoker_ptable_sit_seat9 +{ + cursor: pointer; +} + + +.jpoker_table .jpoker_player_seat .jpoker_name { + overflow:hidden; +} + + +.jpoker_table .jpoker_sit_out .jpoker_ptable_player_seat0_name, +.jpoker_table .jpoker_sit_out .jpoker_ptable_player_seat1_name, +.jpoker_table .jpoker_sit_out .jpoker_ptable_player_seat2_name, +.jpoker_table .jpoker_sit_out .jpoker_ptable_player_seat3_name, +.jpoker_table .jpoker_sit_out .jpoker_ptable_player_seat4_name, +.jpoker_table .jpoker_sit_out .jpoker_ptable_player_seat5_name, +.jpoker_table .jpoker_sit_out .jpoker_ptable_player_seat6_name, +.jpoker_table .jpoker_sit_out .jpoker_ptable_player_seat7_name, +.jpoker_table .jpoker_sit_out .jpoker_ptable_player_seat8_name, +.jpoker_table .jpoker_sit_out .jpoker_ptable_player_seat9_name +{ + background-color: transparent; + color: red; +} + +.jpoker_table .jpoker_sit_out .jpoker_name +{ + color: red; +} + +.jpoker_table .jpoker_button { + color: #FFF; + /*margin: 0 5px;*/ + line-height: 30px; + text-align : center; +} + +.jpoker_table .jpoker_sitout, .jpoker_table .jpoker_rebuy, .jpoker_table .jpoker_quit, .jpoker_table .jpoker_sitin, .jpoker_table .jpoker_muck, .jpoker_table .jpoker_options, .jpoker_sound_control { + color: #FFF; + margin: 0 5px; + line-height: 20px; + text-align: center; + text-transform: uppercase; +} + +.jpoker_table .jpoker_pot, .jpoker_table .jpoker_bet { + text-align: center; + font-weight: bold; + font-family: "trebuchet MS",arial,helvetica,sans-serif; +} + +.jpoker_table .jpoker_money { + text-align: center; + line-height: 10px; + font-weight: bold; + font-family: "trebuchet MS",arial,helvetica,sans-serif; + color: #e5b408; +} + +.jpoker_table .jpoker_player_seat.jpoker_position .jpoker_money { + color: black; +} + +.jpoker_table .jpoker_action { + text-align: center; + line-height: 13px; + font-weight: bold; + font-family: "trebuchet MS",arial,helvetica,sans-serif; + color: white; + background-image: url("images/jpoker_table/check-call.gif"); + width: 48px; + height: 13px; + background-color: #4b4848; + text-transform: uppercase; +} + +.jpoker_table .jpoker_name { + text-align: center; + line-height: 10px; + font-weight: bold; + font-family: "trebuchet MS",arial,helvetica,sans-serif; + color: #FFFFFF; + cursor: pointer; + text-transform: uppercase; +} + +.jpoker_table .jpoker_player_self .jpoker_sit_out .jpoker_name { + text-transform: none; +} + +.jpoker_table .jpoker_raise_bound, .jpoker_table .jpoker_raise_current { + display: inline; + line-height:20px; +} + +.jpoker_table .jpoker_raise_label { + display: none; +} + +.jpoker_table .ui-slider-1 { + margin: 3px 10px; + width: 70px; +} + +.jpoker_table .jpoker_raise_input { + width: 100%; + height: 1.5em; +} + +.jpoker_raise_bound, .jpoker_raise_current { + margin-left:7px; + color:#fff; + font-weight:bold; +} + +.jpoker_table input { + border: 0px solid #000; + width: 99%; +} + +.jpoker_table .jpoker_ptable_table_info{ + font-weight: bold; + height: auto; +} + +.jpoker_table .jpoker_powered_by { + font-weight: bold; + text-align: center; + } + +.jpoker_table .jpoker_powered_by a { + color: #17691C; +} + +.jpoker_table a { + color: #fff; + font-weight: bold; + text-decoration:none; +} + +.jpoker_table a:hover { + color: #E5B415; + font-weight: bold; + background: transparent; +} + +.jpoker_table .jpoker_ptable_auto_muck { + background: transparent; + font-weight: bold; + color: #000; +} + +.jpoker_table .jpoker_ptable_auto_muck label { + margin-left: 3px; +} + +.jpoker_table .jpoker_ptable_raise_input { + border: 2px solid #000; + background: #eee; +} + +.jpoker_table .jpoker_ptable_game_background { + border: 1px solid #ccc; +} + +.jpoker_table .jpoker_ptable_quit, .jpoker_table .jpoker_ptable_rebuy +{ + cursor:pointer; +} + + +.jpoker_table .jpoker_player_sidepot +{ + border: 2px solid blue; + background: #fff; + text-align: center; + font-size: 10px; + height: auto; +} + +.jpoker_table .jpoker_ptable_raise_input { + height:auto; +} + +#jpokerRebuy +{ + height: 150px; + width: 300px; +} + +#jpokerRebuy .ui-slider-1 +{ + margin: 5px auto 10px; + position:absolute; + left:70px; + top:75px; +} + +#jpokerDialog +{ + height: 150px; + width: 300px; +} + +#jpokerOptionsDialog +{ + height: 150px; + width: 300px; +} + +#jpokerRankDialog +{ + height: 150px; + width: 300px; +} + +#jpokerRebuy .jpoker_rebuy_min { + position:absolute; + left:65px; + top:55px; + font-size:18px; +} + +#jpokerRebuy .jpoker_rebuy_max { + position:absolute; + left:253px; + top:55px; + font-size:18px; +} + +#jpokerRebuy .jpoker_rebuy_current { + position:absolute; + left:0px; + top:113px; + font-size:30px; + font-weight:bold; + width:100%; + text-align:center; + color:#006902; +} + +.jpoker_jquery_ui.ui-dialog #jpokerRebuy.ui-dialog-content { + margin-bottom:0px; +} + +.jpoker_jquery_ui.ui-dialog #jpokerRebuy .ui-dialog-buttonpane { + position: absolute; + bottom: 8px; + right: 0px; + width: 100%; + text-align: center; +} + +.jpoker_jquery_ui.ui-dialog #jpokerRebuy .ui-dialog-buttonpane button { + background:#006902; + color:#fff; + cursor:pointer; + font-size:17px; + font-weight:bold; + padding:5px 10px; + margin:0; +} + +.jpoker_jquery_ui.ui-dialog #jpokerRebuy .ui-dialog-buttonpane button:hover { + background:#009E03; +} + +.jpoker_sit_seat { + position: relative +} +.jpoker_sit_seat .jpoker_sit_seat_progress { + display: none; +} + +.jpoker_sit_seat.jpoker_self_get_seat .jpoker_sit_seat_progress { + display: block; + position: absolute; + background-image: url("images/jpoker_table/loading.gif"); + width: 32px; + height: 32px; +} + +.jpoker_table_info_seats, .jpoker_table_info_flop, .jpoker_table_info_player_timeout, .jpoker_table_info_muck_timeout { + display: none; +} + +.jpoker_table_info_name_label, .jpoker_table_info_variant_label, .jpoker_table_info_blind_label, .jpoker_table_info_seats_label, .jpoker_table_info_flop_label, .jpoker_table_info_player_timeout_label, .jpoker_table_info_muck_timeout_label { + display: none; +} + +.jpoker_table .jpoker_player_seat.jpoker_player_allin .jpoker_action { + color: red; +} + +.jpoker_table .jpoker_player_seat .jpoker_name { + text-decoration: none; +} +.jpoker_table .jpoker_player_seat.jpoker_player_dealt .jpoker_name { + text-decoration: underline; +} + +.jpoker_pots .jpoker_pot { + float: left; +} + +.jpoker_pots .jpoker_pot .jpoker_chips_image { + margin-left: auto; + margin-right: auto; +} + +.jpoker_pots .jpoker_pot { + width: 30px; +} +.jpoker_pots .jpoker_pot .jpoker_chips_image { + background-image:url(images/jpoker_table/pot.gif); + width: 24px; + height: 20px; +} + +.jpoker_pots .jpoker_pots_align { + margin-left: auto; + margin-right: auto; +} + +.jpoker_pots0 .jpoker_pots_align { + width: 0px; +} + +.jpoker_pots1 .jpoker_pots_align { + width: 30px; +} + +.jpoker_pots2 .jpoker_pots_align { + width: 60px; +} + +.jpoker_pots3 .jpoker_pots_align { + width: 90px; +} + +.jpoker_pots4 .jpoker_pots_align { + width: 120px; +} + +.jpoker_pots5 .jpoker_pots_align { + width: 150px; +} + +.jpoker_pots6 .jpoker_pots_align { + width: 180px; +} + +.jpoker_pots7 .jpoker_pots_align { + width: 210px; +} + +.jpoker_pots8 .jpoker_pots_align { + width: 240px; +} + +.jpoker_pots9 .jpoker_pots_align { + width: 270px; +} + +.jpoker_pots10 .jpoker_pots_align { + width: 300px; +} + +.jpoker_pots .jpoker_pot .jpoker_chips_amount { + color: white; +} + +.jpoker_table .jpoker_seat .jpoker_bet { + background-image: none; + width: 24px; +} + +.jpoker_table .jpoker_seat .jpoker_bet .jpoker_chips_image { + margin-left: auto; + margin-right: auto; + background-image:url(images/jpoker_table/bet.gif); + width:24px; + height:24px; +} + +.jpoker_table .jpoker_seat .jpoker_bet .jpoker_chips_amount { + color: white; +} + +.jpoker_table .jpoker_player_hole { + display: none; +} + +.jpoker_table .jpoker_player_self.jpoker_player_dealt .jpoker_player_hole { + display: none; +} + +.jpoker_table .jpoker_player_dealt .jpoker_player_hole { + display: block; +} + +.jpoker_table .jpoker_seat .jpoker_card { + display: none; +} + +.jpoker_table .jpoker_player_dealt .jpoker_card { + display: block; +} + +.jpoker_table .jpoker_player_dealt .jpoker_card.jpoker_card_back { + display: none; +} + +.jpoker_table .jpoker_auto_muck_win { + float: left; +} + + +.jpoker_table .jpoker_ptable_sitout_fold { width:67px; height:20px; position:absolute; top:408px; left:435px; background-image:url("images/jpoker_table/menu-button.gif"); +} + +.jpoker_table .jpoker_ptable_sitout_fold .jpoker_sitout { + text-transform: none; +} + +.jpoker_table .jpoker_auto_action input { + width: auto; +}
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/jpoker/themes/pokersource.eu/css/jpoker_table_layout.css Mon Apr 19 05:40:37 2010 +0200 @@ -0,0 +1,174 @@ +.jpoker_table .jpoker_ptable { width:760px; height:530px; position:relative; background-image:url("images/jpoker_table/table_background.png"); } +.jpoker_table .jpoker_ptable_game_background { width:760px; height:530px; position:absolute; top:0px; left:0px; background-image:url("images/jpoker_table/background.png");} +.jpoker_table .jpoker_ptable_table { width:596px; height:228px; position:absolute; top:91px; left:79px; background-image:url("images/jpoker_table/table.gif");} +.jpoker_table .jpoker_ptable_board0 { width:37px; height:45px; position:absolute; top:159px; left:281px; background-image:url("images/jpoker_table/cards/small-back.png");} +.jpoker_table .jpoker_ptable_board1 { width:37px; height:45px; position:absolute; top:159px; left:323px; background-image:url("images/jpoker_table/cards/small-back.png");} +.jpoker_table .jpoker_ptable_board2 { width:37px; height:45px; position:absolute; top:159px; left:364px; background-image:url("images/jpoker_table/cards/small-back.png");} +.jpoker_table .jpoker_ptable_board3 { width:37px; height:45px; position:absolute; top:159px; left:405px; background-image:url("images/jpoker_table/cards/small-back.png");} +.jpoker_table .jpoker_ptable_board4 { width:37px; height:45px; position:absolute; top:159px; left:446px; background-image:url("images/jpoker_table/cards/small-back.png");} +.jpoker_table .jpoker_ptable_winner0 { width:180px; height:25px; position:absolute; top:134px; left:291px; } +.jpoker_table .jpoker_ptable_winner1 { width:180px; height:25px; position:absolute; top:209px; left:304px; } +.jpoker_table .jpoker_ptable_quit { width:67px; height:20px; position:absolute; top:4px; left:688px; background-image:url("images/jpoker_table/menu-button.gif");} +.jpoker_table .jpoker_ptable_rebuy { width:67px; height:20px; position:absolute; top:4px; left:614px; background-image:url("images/jpoker_table/menu-button.gif");} +.jpoker_table .jpoker_ptable_auto_action { width:194.30945px; height:118.59718px; position:absolute; top:408px; left:289px; } +.jpoker_table .jpoker_ptable_check { width:44px; height:30px; position:absolute; top:408px; left:289px; background-image:url("images/jpoker_table/check.png");} +.jpoker_table .jpoker_ptable_call { width:44px; height:30px; position:absolute; top:408px; left:337px; background-image:url("images/jpoker_table/call.png");} +.jpoker_table .jpoker_ptable_fold { width:44px; height:30px; position:absolute; top:408px; left:386px; background-image:url("images/jpoker_table/fold.png");} +.jpoker_table .jpoker_ptable_raise { width:44px; height:30px; position:absolute; top:442px; left:289px; background-image:url("images/jpoker_table/raise.png");} +.jpoker_table .jpoker_ptable_raise_range { width:94px; height:50px; position:absolute; top:477px; left:338px; background-image:url("images/jpoker_table/raise_slider_dock.png");} +.jpoker_table .jpoker_ptable_sit_seat0 { width:70px; height:87px; position:absolute; top:68px; left:58px; background-image:url("images/jpoker_table/seat-sit.gif");} +.jpoker_table .jpoker_ptable_sit_seat1 { width:70px; height:87px; position:absolute; top:34px; left:202px; background-image:url("images/jpoker_table/seat-sit.gif");} +.jpoker_table .jpoker_ptable_sit_seat2 { width:70px; height:87px; position:absolute; top:18px; left:347px; background-image:url("images/jpoker_table/seat-sit.gif");} +.jpoker_table .jpoker_ptable_sit_seat3 { width:70px; height:87px; position:absolute; top:34px; left:500px; background-image:url("images/jpoker_table/seat-sit.gif");} +.jpoker_table .jpoker_ptable_sit_seat4 { width:70px; height:87px; position:absolute; top:71px; left:635px; background-image:url("images/jpoker_table/seat-sit.gif");} +.jpoker_table .jpoker_ptable_sit_seat5 { width:70px; height:87px; position:absolute; top:255px; left:635px; background-image:url("images/jpoker_table/seat-sit.gif");} +.jpoker_table .jpoker_ptable_sit_seat6 { width:70px; height:87px; position:absolute; top:284px; left:500px; background-image:url("images/jpoker_table/seat-sit.gif");} +.jpoker_table .jpoker_ptable_sit_seat7 { width:70px; height:87px; position:absolute; top:294px; left:347px; background-image:url("images/jpoker_table/seat-sit.gif");} +.jpoker_table .jpoker_ptable_sit_seat8 { width:70px; height:87px; position:absolute; top:286px; left:202px; background-image:url("images/jpoker_table/seat-sit.gif");} +.jpoker_table .jpoker_ptable_sit_seat9 { width:70px; height:87px; position:absolute; top:255px; left:58px; background-image:url("images/jpoker_table/seat-sit.gif");} +.jpoker_table .jpoker_ptable_player_seat0_background { width:70px; height:87px; position:absolute; top:68px; left:58px; background-image:url("images/jpoker_table/seat.gif");} +.jpoker_table .jpoker_ptable_player_seat0_name { width:63.912312px; height:10px; position:absolute; top:70px; left:60px; } +.jpoker_table .jpoker_ptable_player_seat0_avatar { width:63px; height:43px; position:absolute; top:92px; left:61px; background-image:url("images/jpoker_table/avatar.gif");} +.jpoker_table .jpoker_ptable_player_seat0_timeout { width:59.443508px; height:3.8063638px; position:absolute; top:87px; left:64px; background-image:url("images/jpoker_table/timeout.png");} +.jpoker_table .jpoker_ptable_player_seat0_money { width:57.87521px; height:10px; position:absolute; top:139px; left:63px; } +.jpoker_table .jpoker_ptable_player_seat0_action { width:40px; height:10px; position:absolute; top:157px; left:69px; } +.jpoker_table .jpoker_ptable_player_seat0_stats { width:23.693085px; height:23.406408px; position:absolute; top:74px; left:125px; } +.jpoker_table .jpoker_ptable_player_seat0_sidepot { width:34.59359px; height:38.168633px; position:absolute; top:160px; left:125px; } +.jpoker_table .jpoker_ptable_player_seat0_bet { width:24px; height:24px; position:absolute; top:160px; left:124px; background-image:url("images/jpoker_table/bet.gif");} +.jpoker_table .jpoker_ptable_dealer0 { width:25px; height:26px; position:absolute; top:135px; left:148px; background-image:url("images/jpoker_table/dealer.gif");} +.jpoker_table .jpoker_ptable_card_seat00 { width:37px; height:45px; position:absolute; top:91px; left:52px; background-image:url("images/jpoker_table/cards/small-back.png");} +.jpoker_table .jpoker_ptable_card_seat01 { width:37px; height:45px; position:absolute; top:91px; left:92px; background-image:url("images/jpoker_table/cards/small-back.png");} +.jpoker_table .jpoker_ptable_player_seat0_hole { width:116px; height:122px; position:absolute; top:120px; left:46px; background-image:url("images/jpoker_table/card-back2.gif");} +.jpoker_table .jpoker_ptable_player_seat1_background { width:70px; height:87px; position:absolute; top:34px; left:202px; background-image:url("images/jpoker_table/seat.gif");} +.jpoker_table .jpoker_ptable_player_seat1_name { width:63.912312px; height:10px; position:absolute; top:36px; left:204px; } +.jpoker_table .jpoker_ptable_player_seat1_avatar { width:63px; height:43px; position:absolute; top:58px; left:205px; background-image:url("images/jpoker_table/avatar.gif");} +.jpoker_table .jpoker_ptable_player_seat1_timeout { width:59.443508px; height:3.8063638px; position:absolute; top:52px; left:208px; background-image:url("images/jpoker_table/timeout.png");} +.jpoker_table .jpoker_ptable_player_seat1_money { width:57.87521px; height:10px; position:absolute; top:104px; left:207px; } +.jpoker_table .jpoker_ptable_player_seat1_action { width:40px; height:10px; position:absolute; top:122px; left:213px; } +.jpoker_table .jpoker_ptable_player_seat1_stats { width:23.693085px; height:23.406408px; position:absolute; top:40px; left:270px; } +.jpoker_table .jpoker_ptable_player_seat1_sidepot { width:34.59359px; height:38.168633px; position:absolute; top:121px; left:265px; } +.jpoker_table .jpoker_ptable_player_seat1_bet { width:24px; height:24px; position:absolute; top:119px; left:265px; background-image:url("images/jpoker_table/bet.gif");} +.jpoker_table .jpoker_ptable_dealer1 { width:25px; height:26px; position:absolute; top:99px; left:297px; background-image:url("images/jpoker_table/dealer.gif");} +.jpoker_table .jpoker_ptable_card_seat10 { width:37px; height:45px; position:absolute; top:58px; left:197px; background-image:url("images/jpoker_table/cards/small-back.png");} +.jpoker_table .jpoker_ptable_card_seat11 { width:37px; height:45px; position:absolute; top:58px; left:238px; background-image:url("images/jpoker_table/cards/small-back.png");} +.jpoker_table .jpoker_ptable_player_seat1_hole { width:116px; height:122px; position:absolute; top:70px; left:142px; background-image:url("images/jpoker_table/card-back2.gif");} +.jpoker_table .jpoker_ptable_player_seat2_background { width:70px; height:87px; position:absolute; top:19px; left:349px; background-image:url("images/jpoker_table/seat.gif");} +.jpoker_table .jpoker_ptable_player_seat2_name { width:63.912312px; height:10px; position:absolute; top:21px; left:351px; } +.jpoker_table .jpoker_ptable_player_seat2_avatar { width:63px; height:43px; position:absolute; top:43px; left:352px; background-image:url("images/jpoker_table/avatar.gif");} +.jpoker_table .jpoker_ptable_player_seat2_timeout { width:59.443508px; height:3.8063638px; position:absolute; top:37px; left:355px; background-image:url("images/jpoker_table/timeout.png");} +.jpoker_table .jpoker_ptable_player_seat2_money { width:57.87521px; height:10px; position:absolute; top:89px; left:354px; } +.jpoker_table .jpoker_ptable_player_seat2_action { width:40px; height:10px; position:absolute; top:107px; left:361px; } +.jpoker_table .jpoker_ptable_player_seat2_stats { width:23.693085px; height:23.406408px; position:absolute; top:25px; left:417px; } +.jpoker_table .jpoker_ptable_player_seat2_sidepot { width:34.59359px; height:38.168633px; position:absolute; top:106px; left:413px; } +.jpoker_table .jpoker_ptable_player_seat2_bet { width:24px; height:24px; position:absolute; top:106px; left:414px; background-image:url("images/jpoker_table/bet.gif");} +.jpoker_table .jpoker_ptable_dealer2 { width:25px; height:26px; position:absolute; top:105px; left:449px; background-image:url("images/jpoker_table/dealer.gif");} +.jpoker_table .jpoker_ptable_card_seat20 { width:37px; height:45px; position:absolute; top:44px; left:345px; background-image:url("images/jpoker_table/cards/small-back.png");} +.jpoker_table .jpoker_ptable_card_seat21 { width:37px; height:45px; position:absolute; top:44px; left:386px; background-image:url("images/jpoker_table/cards/small-back.png");} +.jpoker_table .jpoker_ptable_player_seat2_hole { width:116px; height:122px; position:absolute; top:51px; left:288px; background-image:url("images/jpoker_table/card-back2.gif");} +.jpoker_table .jpoker_ptable_player_seat3_background { width:70px; height:87px; position:absolute; top:33px; left:499px; background-image:url("images/jpoker_table/seat.gif");} +.jpoker_table .jpoker_ptable_player_seat3_name { width:63.912312px; height:10px; position:absolute; top:35px; left:501px; } +.jpoker_table .jpoker_ptable_player_seat3_avatar { width:63px; height:43px; position:absolute; top:57px; left:502px; background-image:url("images/jpoker_table/avatar.gif");} +.jpoker_table .jpoker_ptable_player_seat3_timeout { width:59.443508px; height:3.8063638px; position:absolute; top:51px; left:505px; background-image:url("images/jpoker_table/timeout.png");} +.jpoker_table .jpoker_ptable_player_seat3_money { width:57.87521px; height:10px; position:absolute; top:103px; left:504px; } +.jpoker_table .jpoker_ptable_player_seat3_action { width:40px; height:10px; position:absolute; top:121px; left:510px; } +.jpoker_table .jpoker_ptable_player_seat3_stats { width:23.693085px; height:23.406408px; position:absolute; top:39px; left:567px; } +.jpoker_table .jpoker_ptable_player_seat3_sidepot { width:34.59359px; height:38.168633px; position:absolute; top:135px; left:550px; } +.jpoker_table .jpoker_ptable_player_seat3_bet { width:24px; height:24px; position:absolute; top:134px; left:559px; background-image:url("images/jpoker_table/bet.gif");} +.jpoker_table .jpoker_ptable_dealer3 { width:25px; height:26px; position:absolute; top:129px; left:587px; background-image:url("images/jpoker_table/dealer.gif");} +.jpoker_table .jpoker_ptable_card_seat30 { width:37px; height:45px; position:absolute; top:57px; left:496px; background-image:url("images/jpoker_table/cards/small-back.png");} +.jpoker_table .jpoker_ptable_card_seat31 { width:37px; height:45px; position:absolute; top:57px; left:537px; background-image:url("images/jpoker_table/cards/small-back.png");} +.jpoker_table .jpoker_ptable_player_seat3_hole { width:116px; height:122px; position:absolute; top:54px; left:429px; background-image:url("images/jpoker_table/card-back2.gif");} +.jpoker_table .jpoker_ptable_player_seat4_background { width:70px; height:87px; position:absolute; top:70px; left:638px; background-image:url("images/jpoker_table/seat.gif");} +.jpoker_table .jpoker_ptable_player_seat4_name { width:63.912312px; height:10px; position:absolute; top:72px; left:640px; } +.jpoker_table .jpoker_ptable_player_seat4_avatar { width:63px; height:43px; position:absolute; top:94px; left:642px; background-image:url("images/jpoker_table/avatar.gif");} +.jpoker_table .jpoker_ptable_player_seat4_timeout { width:59.443508px; height:3.8063638px; position:absolute; top:89px; left:644px; background-image:url("images/jpoker_table/timeout.png");} +.jpoker_table .jpoker_ptable_player_seat4_money { width:57.87521px; height:10px; position:absolute; top:141px; left:643px; } +.jpoker_table .jpoker_ptable_player_seat4_action { width:40px; height:10px; position:absolute; top:159px; left:650px; } +.jpoker_table .jpoker_ptable_player_seat4_stats { width:23.693085px; height:23.406408px; position:absolute; top:76px; left:706px; } +.jpoker_table .jpoker_ptable_player_seat4_sidepot { width:34.59359px; height:38.168633px; position:absolute; top:157px; left:592px; } +.jpoker_table .jpoker_ptable_player_seat4_bet { width:24px; height:24px; position:absolute; top:156px; left:602px; background-image:url("images/jpoker_table/bet.gif");} +.jpoker_table .jpoker_ptable_dealer4 { width:25px; height:26px; position:absolute; top:193px; left:647px; background-image:url("images/jpoker_table/dealer.gif");} +.jpoker_table .jpoker_ptable_card_seat40 { width:37px; height:45px; position:absolute; top:93px; left:634px; background-image:url("images/jpoker_table/cards/small-back.png");} +.jpoker_table .jpoker_ptable_card_seat41 { width:37px; height:45px; position:absolute; top:93px; left:675px; background-image:url("images/jpoker_table/cards/small-back.png");} +.jpoker_table .jpoker_ptable_player_seat4_hole { width:116px; height:122px; position:absolute; top:118px; left:583px; background-image:url("images/jpoker_table/card-back2.gif");} +.jpoker_table .jpoker_ptable_player_seat5_background { width:70px; height:87px; position:absolute; top:256px; left:634px; background-image:url("images/jpoker_table/seat.gif");} +.jpoker_table .jpoker_ptable_player_seat5_name { width:63.912312px; height:10px; position:absolute; top:258px; left:636px; } +.jpoker_table .jpoker_ptable_player_seat5_avatar { width:63px; height:43px; position:absolute; top:280px; left:637px; background-image:url("images/jpoker_table/avatar.gif");} +.jpoker_table .jpoker_ptable_player_seat5_timeout { width:59.443508px; height:3.8063638px; position:absolute; top:274px; left:640px; background-image:url("images/jpoker_table/timeout.png");} +.jpoker_table .jpoker_ptable_player_seat5_money { width:57.87521px; height:10px; position:absolute; top:326px; left:639px; } +.jpoker_table .jpoker_ptable_player_seat5_action { width:40px; height:10px; position:absolute; top:344px; left:645px; } +.jpoker_table .jpoker_ptable_player_seat5_stats { width:23.693085px; height:23.406408px; position:absolute; top:262px; left:701px; } +.jpoker_table .jpoker_ptable_player_seat5_sidepot { width:34.59359px; height:38.168633px; position:absolute; top:198px; left:594px; } +.jpoker_table .jpoker_ptable_player_seat5_bet { width:24px; height:24px; position:absolute; top:213px; left:604px; background-image:url("images/jpoker_table/bet.gif");} +.jpoker_table .jpoker_ptable_dealer5 { width:25px; height:26px; position:absolute; top:238px; left:588px; background-image:url("images/jpoker_table/dealer.gif");} +.jpoker_table .jpoker_ptable_card_seat50 { width:37px; height:45px; position:absolute; top:279px; left:630px; background-image:url("images/jpoker_table/cards/small-back.png");} +.jpoker_table .jpoker_ptable_card_seat51 { width:37px; height:45px; position:absolute; top:279px; left:671px; background-image:url("images/jpoker_table/cards/small-back.png");} +.jpoker_table .jpoker_ptable_player_seat5_hole { width:116px; height:122px; position:absolute; top:166px; left:586px; background-image:url("images/jpoker_table/card-back2.gif");} +.jpoker_table .jpoker_ptable_player_seat6_background { width:70px; height:87px; position:absolute; top:285px; left:497px; background-image:url("images/jpoker_table/seat.gif");} +.jpoker_table .jpoker_ptable_player_seat6_name { width:63.912312px; height:10px; position:absolute; top:287px; left:499px; } +.jpoker_table .jpoker_ptable_player_seat6_avatar { width:63px; height:43px; position:absolute; top:309px; left:500px; background-image:url("images/jpoker_table/avatar.gif");} +.jpoker_table .jpoker_ptable_player_seat6_timeout { width:59.443508px; height:3.8063638px; position:absolute; top:303px; left:503px; background-image:url("images/jpoker_table/timeout.png");} +.jpoker_table .jpoker_ptable_player_seat6_money { width:57.87521px; height:10px; position:absolute; top:355px; left:502px; } +.jpoker_table .jpoker_ptable_player_seat6_action { width:40px; height:10px; position:absolute; top:373px; left:508px; } +.jpoker_table .jpoker_ptable_player_seat6_stats { width:23.693085px; height:23.406408px; position:absolute; top:291px; left:565px; } +.jpoker_table .jpoker_ptable_player_seat6_sidepot { width:34.59359px; height:38.168633px; position:absolute; top:245px; left:497px; } +.jpoker_table .jpoker_ptable_player_seat6_bet { width:24px; height:24px; position:absolute; top:245px; left:497px; background-image:url("images/jpoker_table/bet.gif");} +.jpoker_table .jpoker_ptable_dealer6 { width:25px; height:26px; position:absolute; top:258px; left:469px; background-image:url("images/jpoker_table/dealer.gif");} +.jpoker_table .jpoker_ptable_card_seat60 { width:37px; height:45px; position:absolute; top:308px; left:491px; background-image:url("images/jpoker_table/cards/small-back.png");} +.jpoker_table .jpoker_ptable_card_seat61 { width:37px; height:45px; position:absolute; top:308px; left:532px; background-image:url("images/jpoker_table/cards/small-back.png");} +.jpoker_table .jpoker_ptable_player_seat6_hole { width:116px; height:122px; position:absolute; top:205px; left:488px; background-image:url("images/jpoker_table/card-back2.gif");} +.jpoker_table .jpoker_ptable_player_seat7_background { width:70px; height:87px; position:absolute; top:295px; left:345px; background-image:url("images/jpoker_table/seat.gif");} +.jpoker_table .jpoker_ptable_player_seat7_name { width:63.912312px; height:10px; position:absolute; top:297px; left:347px; } +.jpoker_table .jpoker_ptable_player_seat7_avatar { width:63px; height:43px; position:absolute; top:319px; left:348px; background-image:url("images/jpoker_table/avatar.gif");} +.jpoker_table .jpoker_ptable_player_seat7_timeout { width:59.443508px; height:3.8063638px; position:absolute; top:313px; left:351px; background-image:url("images/jpoker_table/timeout.png");} +.jpoker_table .jpoker_ptable_player_seat7_money { width:57.87521px; height:10px; position:absolute; top:365px; left:350px; } +.jpoker_table .jpoker_ptable_player_seat7_action { width:40px; height:10px; position:absolute; top:383px; left:356px; } +.jpoker_table .jpoker_ptable_player_seat7_stats { width:23.693085px; height:23.406408px; position:absolute; top:301px; left:412px; } +.jpoker_table .jpoker_ptable_player_seat7_sidepot { width:34.59359px; height:38.168633px; position:absolute; top:254px; left:351px; } +.jpoker_table .jpoker_ptable_player_seat7_bet { width:24px; height:24px; position:absolute; top:253px; left:352px; background-image:url("images/jpoker_table/bet.gif");} +.jpoker_table .jpoker_ptable_dealer7 { width:25px; height:26px; position:absolute; top:264px; left:321px; background-image:url("images/jpoker_table/dealer.gif");} +.jpoker_table .jpoker_ptable_card_seat70 { width:37px; height:45px; position:absolute; top:318px; left:341px; background-image:url("images/jpoker_table/cards/small-back.png");} +.jpoker_table .jpoker_ptable_card_seat71 { width:37px; height:45px; position:absolute; top:318px; left:382px; background-image:url("images/jpoker_table/cards/small-back.png");} +.jpoker_table .jpoker_ptable_player_seat7_hole { width:116px; height:122px; position:absolute; top:215px; left:344px; background-image:url("images/jpoker_table/card-back2.gif");} +.jpoker_table .jpoker_ptable_player_seat8_background { width:70px; height:87px; position:absolute; top:286px; left:202px; background-image:url("images/jpoker_table/seat.gif");} +.jpoker_table .jpoker_ptable_player_seat8_name { width:63.912312px; height:10px; position:absolute; top:288px; left:204px; } +.jpoker_table .jpoker_ptable_player_seat8_avatar { width:63px; height:43px; position:absolute; top:310px; left:205px; background-image:url("images/jpoker_table/avatar.gif");} +.jpoker_table .jpoker_ptable_player_seat8_timeout { width:59.443508px; height:3.8063638px; position:absolute; top:304px; left:208px; background-image:url("images/jpoker_table/timeout.png");} +.jpoker_table .jpoker_ptable_player_seat8_money { width:57.87521px; height:10px; position:absolute; top:356px; left:207px; } +.jpoker_table .jpoker_ptable_player_seat8_action { width:40px; height:10px; position:absolute; top:374px; left:213px; } +.jpoker_table .jpoker_ptable_player_seat8_stats { width:23.693085px; height:23.406408px; position:absolute; top:292px; left:270px; } +.jpoker_table .jpoker_ptable_player_seat8_sidepot { width:34.59359px; height:38.168633px; position:absolute; top:246px; left:207px; } +.jpoker_table .jpoker_ptable_player_seat8_bet { width:24px; height:24px; position:absolute; top:246px; left:205px; background-image:url("images/jpoker_table/bet.gif");} +.jpoker_table .jpoker_ptable_dealer8 { width:25px; height:26px; position:absolute; top:249px; left:176px; background-image:url("images/jpoker_table/dealer.gif");} +.jpoker_table .jpoker_ptable_card_seat80 { width:37px; height:45px; position:absolute; top:309px; left:197px; background-image:url("images/jpoker_table/cards/small-back.png");} +.jpoker_table .jpoker_ptable_card_seat81 { width:37px; height:45px; position:absolute; top:309px; left:238px; background-image:url("images/jpoker_table/cards/small-back.png");} +.jpoker_table .jpoker_ptable_player_seat8_hole { width:116px; height:122px; position:absolute; top:207px; left:198px; background-image:url("images/jpoker_table/card-back2.gif");} +.jpoker_table .jpoker_ptable_player_seat9_background { width:70px; height:87px; position:absolute; top:256px; left:61px; background-image:url("images/jpoker_table/seat.gif");} +.jpoker_table .jpoker_ptable_player_seat9_name { width:63.912312px; height:10px; position:absolute; top:258px; left:63px; } +.jpoker_table .jpoker_ptable_player_seat9_avatar { width:63px; height:43px; position:absolute; top:280px; left:64px; background-image:url("images/jpoker_table/avatar.gif");} +.jpoker_table .jpoker_ptable_player_seat9_timeout { width:59.443508px; height:3.8063638px; position:absolute; top:274px; left:67px; background-image:url("images/jpoker_table/timeout.png");} +.jpoker_table .jpoker_ptable_player_seat9_money { width:57.87521px; height:10px; position:absolute; top:326px; left:66px; } +.jpoker_table .jpoker_ptable_player_seat9_action { width:40px; height:10px; position:absolute; top:344px; left:72px; } +.jpoker_table .jpoker_ptable_player_seat9_stats { width:23.693085px; height:23.406408px; position:absolute; top:262px; left:129px; } +.jpoker_table .jpoker_ptable_player_seat9_sidepot { width:34.59359px; height:38.168633px; position:absolute; top:218px; left:132px; } +.jpoker_table .jpoker_ptable_player_seat9_bet { width:24px; height:24px; position:absolute; top:218px; left:132px; background-image:url("images/jpoker_table/bet.gif");} +.jpoker_table .jpoker_ptable_dealer9 { width:25px; height:26px; position:absolute; top:200px; left:97px; background-image:url("images/jpoker_table/dealer.gif");} +.jpoker_table .jpoker_ptable_card_seat90 { width:37px; height:45px; position:absolute; top:280px; left:56px; background-image:url("images/jpoker_table/cards/small-back.png");} +.jpoker_table .jpoker_ptable_card_seat91 { width:37px; height:45px; position:absolute; top:280px; left:96px; background-image:url("images/jpoker_table/cards/small-back.png");} +.jpoker_table .jpoker_ptable_player_seat9_hole { width:116px; height:122px; position:absolute; top:177px; left:58px; background-image:url("images/jpoker_table/card-back2.gif");} +.jpoker_table .jpoker_ptable_sitout { width:67px; height:20px; position:absolute; top:4px; left:539px; background-image:url("images/jpoker_table/menu-button.gif");} +.jpoker_table .jpoker_ptable_muck_accept { width:67px; height:20px; position:absolute; top:408px; left:251px; background-image:url("images/jpoker_table/menu-button.gif");} +.jpoker_table .jpoker_ptable_muck_deny { width:67px; height:20px; position:absolute; top:408px; left:428px; background-image:url("images/jpoker_table/menu-button.gif");} +.jpoker_table .jpoker_ptable_raise_input { width:89.284515px; height:26.281096px; position:absolute; top:442px; left:338px; } +.jpoker_table .jpoker_ptable_table_info { width:138.05357px; height:40.973526px; position:absolute; top:0px; left:0px; } +.jpoker_table .jpoker_ptable_sitin { width:67px; height:20px; position:absolute; top:4px; left:540px; background-image:url("images/jpoker_table/menu-button.gif");} +.jpoker_table .jpoker_ptable_powered_by { width:139.67525px; height:13.40641px; position:absolute; top:374px; left:0px; } +.jpoker_table .jpoker_ptable_allin { width:44px; height:30px; position:absolute; top:477px; left:289px; background-image:url("images/jpoker_table/raise.png");} +.jpoker_table .jpoker_ptable_hand_strength { width:184.22353px; height:30.352667px; position:absolute; top:361px; left:576px; } +.jpoker_table .jpoker_ptable_pots { width:370px; height:30px; position:absolute; top:212px; left:199px; } +.jpoker_table .jpoker_ptable_options { width:67px; height:20px; position:absolute; top:4px; left:466px; background-image:url("images/jpoker_table/menu-button.gif");} +.jpoker_table .jpoker_ptable_sound_control { width:67px; height:20px; position:absolute; top:194px; left:688px; background-image:url("images/jpoker_table/menu-button.gif");} +.jpoker_table .jpoker_ptable_threequarterpot { width:44px; height:30px; position:absolute; top:494px; left:435px; background-image:url("images/jpoker_table/raise.png");} +.jpoker_table .jpoker_ptable_halfpot { width:44px; height:30px; position:absolute; top:463px; left:435px; background-image:url("images/jpoker_table/raise.png");} +.jpoker_table .jpoker_ptable_pot { width:44px; height:30px; position:absolute; top:432px; left:435px; background-image:url("images/jpoker_table/raise.png");} +
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/jpoker/themes/pokersource.eu/css/jpoker_table_list.css Mon Apr 19 05:40:37 2010 +0200 @@ -0,0 +1,44 @@ +.jpoker_table_list table { + border:1px solid #24B300; +} + +.jpoker_table_list td { + padding: 0.5em 1em; +} + +.jpoker_table_list tr.odd { + background:#CCFFBF; +} + +.jpoker_table_list th { + background: #24B300; +} + +.jpoker_table_list tr { + cursor:pointer; +} + +.jpoker_table_list tr.hover { + background:#73BF60; + color:#fff; +} + +.jpoker_widget.jpoker_table_list table { + border:2px solid #17691c; + border-collapse:collapse; + font-size:14px; + font-family:"trebuchet MS",arial,helvetica,sans-serif; + color:#444; +} + +.jpoker_widget.jpoker_table_list table th, .jpoker_widget.jpoker_table_list table thead td, .jpoker_widget.jpoker_table_list table th, .jpoker_widget.jpoker_table_list table thead td { + background:#17691c; + border:1px solid #17691c; + color:#fff; + padding:3px; +} + +.jpoker_widget.jpoker_table_list td, .jpoker_widget.jpoker_table_list tr, .jpoker_widget.jpoker_table_list td, .jpoker_widget.jpoker_table_list tr { + border:1px solid #17691c; + padding:3px; +}
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/jpoker/themes/pokersource.eu/css/jpoker_tablepicker.css Mon Apr 19 05:40:37 2010 +0200 @@ -0,0 +1,30 @@ +.jpoker_tablepicker_submit { + text-transform: uppercase; + cursor: pointer; +} + +.jpoker_tablepicker_show_options { + text-transform: lowercase; + margin-left: 10px; +} + +.jpoker_tablepicker_options { + width: 320px; + margin-top: 10px; +} + +.jpoker_tablepicker_options label { + float: left; + text-align: right; + margin-right: 15px; + width: 130px; +} + +.jpoker_tablepicker_options input { + width: 150px; +} + +.jpoker_tablepicker_error { + margin-top: 10px; + color: red; +}
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/jpoker/themes/pokersource.eu/css/jpoker_tablesorter_pager.css Mon Apr 19 05:40:37 2010 +0200 @@ -0,0 +1,26 @@ +ul.pagelinks { + padding: 0; +} + +.pager { + font-size: 1.1em; + color: #444; +} + +.pager ul { + margin: 0; + line-height: 2em; +} + +.pager .pagelinks li { + display: inline; + margin-right: 0.5em; +} + +.pager .pagelinks .current { + font-weight: bold; +} + +.pager .pagesize { + display: none; +}
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/jpoker/themes/pokersource.eu/css/jpoker_timeout.css Mon Apr 19 05:40:37 2010 +0200 @@ -0,0 +1,4 @@ +.jpoker_timeout_progress { + height: 100%; + background: #ff0000; +}
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/jpoker/themes/pokersource.eu/css/jpoker_tourney_details.css Mon Apr 19 05:40:37 2010 +0200 @@ -0,0 +1,173 @@ +.jpoker_tourney_details { + position : relative; + overflow: auto; + width: 740px; + margin: 0 auto; + font-size: 14px; + background: #eee; + border: 1px solid #ccc; + padding: 0 15px 15px; + color: #444; +} + +.jpoker_tourney_details .jpoker_tourney_name { + color: #17691C; + font-size: 1.6em; + font-weight: bold; + padding: 6px 5px; + text-align:center; +} + +.jpoker_tourney_details .jpoker_tourney_details_players { + width: 290px; + float: right; + border: 5px solid #009E03; + background:#CCFFBF; + height: 12em; + overflow: auto; +} + +.jpoker_tourney_details .jpoker_tourney_details_info, +.jpoker_tourney_details .jpoker_tourney_details_prizes, +.jpoker_tourney_details .jpoker_tourney_details_tables { + width: 370px; + background: #CCFFBF; +} + +.jpoker_tourney_details .jpoker_tourney_details_info.jpoker_tourney_details_announced, +.jpoker_tourney_details .jpoker_tourney_details_info.jpoker_tourney_details_canceled { + width: auto; +} + +.jpoker_tourney_details .jpoker_tourney_details_info { + font-weight:bold; + border: 5px solid #009E03; + padding: 10px 25px; + letter-spacing: 0.05em; +} + +.jpoker_tourney_details .jpoker_tourney_details_prizes, +.jpoker_tourney_details .jpoker_tourney_details_tables { + width: 430px; + margin-top: 10px; +} + +.jpoker_tourney_details table { + border-collapse: collapse; + text-align: center; + width: 100%; +} + +.jpoker_tourney_details_prizes table, + border: 5px solid #009E03; + border-top: none; +} + +.jpoker_tourney_details_tables table tr { + cursor: pointer; +} + +.jpoker_tourney_details_tables table tr.hover { + background: #73BF60; + color: #fff; +} + +.jpoker_tourney_details table thead tr { + border: 1px solid #17691C; + border-top: 0; + border-bottom: 0; +} + +.jpoker_tourney_details table thead tr.jpoker_thead_caption { + border: 1px solid #009E03; + border-top: 0; + border-bottom: 0; +} + +.jpoker_tourney_details table tr.jpoker_thead_caption th { + background: #009E03; + color: #fff; + font-weight: bold; +} + +.jpoker_tourney_details table th { + background: #17691C; + color: #fff; +} + +.jpoker_tourney_details table td { + border: 1px solid #92CF81; +} + +.jpoker_tourney_details_register { + text-align: center; + margin: 10px 0; + width: 430px; +} + +.jpoker_tourney_details_register input { + width: 240px; + height: 40px; + font-weight: bold; + font-size: 1.3em; + background: #009E03; + border: 3px solid #17691C; + color: #fff; + cursor: pointer; +} + +.jpoker_tourney_details_register input:hover { + background: #17691C; +} + +.jpoker_tourney_details .pager { + background: #CCFFBF; + margin-left: -1px; + border: 1px solid #92CF81; + border-top:none; + border-bottom:none; +} + +.jpoker_tourney_details .pager a { + color: #17691C; + text-decoration:none; +} + +.jpoker_tourney_details .pager a:hover { + color: #fff; + background: #17691C; +} + +.jpoker_tourney_details_tables_goto_table { + background: #009E03; + border: 1px solid #17691C; + color: #fff; + cursor: pointer; +} + +a.jpoker_tourney_details_tables_goto_table { + text-decoration: none; + border-bottom: none; + margin: 5px 0; + padding: 0 5px; + border: none; +} + +.jpoker_tourney_details_tables_goto_table:hover { + background: #17691C; +} + +.jpoker_tourney_details .pager { + text-align: center; +} + +.jpoker_tourney_details .jpoker_tourney_details_tables { + width: 420px; + border: 5px solid #009E03; + height: 12em; + overflow: auto; +} + +.jpoker_tourney_details .jpoker_tourney_details_table_details { + margin-top: 10px; +}
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/jpoker/themes/pokersource.eu/css/jpoker_tourney_placeholder.css Mon Apr 19 05:40:37 2010 +0200 @@ -0,0 +1,16 @@ +.jpoker_tourney_placeholder { + width:800px; height:800px; position:relative; +} +.jpoker_tourney_placeholder_table { + width:588px; height:296px; position:absolute; top:152px; left:106px; + background-image:url("images/jpoker_table/table.png"); +} +.jpoker_tourney_placeholder_starttime { + position: absolute; + border: solid black 5px; + background-color: white; + text-align: center; + top: 250px; + left: 150px; + width: 500px; +}
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/jpoker/themes/pokersource.eu/css/jpoker_user_info.css Mon Apr 19 05:40:37 2010 +0200 @@ -0,0 +1,6 @@ +.jpoker_user_info_avatar_preview { + border: 1px solid black; + background-repeat: no-repeat; + width: 91px; + height: 65px; +}
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/jpoker/themes/pokersource.eu/css/jpokeradmin.css Mon Apr 19 05:40:37 2010 +0200 @@ -0,0 +1,49 @@ +body { + font-size: 16px; +} + +label { + width: 130px; + display: block; + float: left; +} + +.jpoker_admin_sit_n_go label, .jpoker_admin_active label, .jpoker_admin_respawn label { + display: inline; + float: none; +} + +.jpoker_admin_name, .jpoker_admin_start_time, .jpoker_admin_resthost_serial, .jpoker_admin_variant, .jpoker_admin_currency_serial, .jpoker_admin_buy_in, .jpoker_admin_prize_min, .jpoker_admin_players_min, .jpoker_admin_seats_per_game, .jpoker_admin_breaks_first { + float: left; + width: 350px; +} + +.jpoker_admin_respawn { + float: left; + width: 350px; +} + +.jpoker_admin_active { + float: left; + width: 200px; +} + +.jpoker_admin_description_long textarea { + width: 530px; +} + +.jpoker_prize_image { + float: left; + width: 350px; + height: 50px; +} + +.jpoker_prize_image a { + text-decoration: none; + line-height: 50px; +} + +.jpoker_prize_image img { + border: none; + height: 50px; +}
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/jpoker/themes/pokersource.eu/images/logo.svg Mon Apr 19 05:40:37 2010 +0200 @@ -0,0 +1,264 @@ +<?xml version="1.0" encoding="UTF-8" standalone="no"?> +<!-- Created with Inkscape (http://www.inkscape.org/) --> +<svg + xmlns:dc="http://purl.org/dc/elements/1.1/" + xmlns:cc="http://creativecommons.org/ns#" + xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" + xmlns:svg="http://www.w3.org/2000/svg" + xmlns="http://www.w3.org/2000/svg" + xmlns:xlink="http://www.w3.org/1999/xlink" + xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd" + xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape" + width="744.09448819" + height="1052.3622047" + id="svg2" + sodipodi:version="0.32" + inkscape:version="0.46" + sodipodi:docname="eu.svg" + inkscape:output_extension="org.inkscape.output.svg.inkscape" + enable-background="new"> + <sodipodi:namedview + id="base" + pagecolor="#ffffff" + bordercolor="#666666" + borderopacity="1.0" + gridtolerance="10000" + guidetolerance="10" + objecttolerance="10" + inkscape:pageopacity="0.0" + inkscape:pageshadow="2" + inkscape:zoom="0.5" + inkscape:cx="643.48912" + inkscape:cy="616.88563" + inkscape:document-units="px" + inkscape:current-layer="layer8" + showgrid="false" + inkscape:window-width="1220" + inkscape:window-height="729" + inkscape:window-x="212" + inkscape:window-y="27" /> + <defs + id="defs4"> + <linearGradient + id="linearGradient3303"> + <stop + style="stop-color: rgb(66, 84, 224); stop-opacity: 1;" + offset="0" + id="stop3305" /> + <stop + style="stop-color: rgb(49, 69, 221); stop-opacity: 0;" + offset="1" + id="stop3307" /> + </linearGradient> + <radialGradient + inkscape:collect="always" + xlink:href="#linearGradient3303" + id="radialGradient3309" + cx="245" + cy="342.5" + fx="245" + fy="342.5" + r="35" + gradientTransform="matrix(1,0,0,1.21429,0,-73.3929)" + gradientUnits="userSpaceOnUse" /> + <linearGradient + id="linearGradient3277"> + <stop + style="stop-color: rgb(31, 49, 189); stop-opacity: 1;" + offset="0" + id="stop3279" /> + <stop + style="stop-color: rgb(22, 36, 138); stop-opacity: 1;" + offset="1" + id="stop3281" /> + </linearGradient> + <radialGradient + inkscape:collect="always" + xlink:href="#linearGradient3277" + id="radialGradient3287" + cx="261.12271" + cy="284.29453" + fx="261.12271" + fy="284.29453" + r="88.866478" + gradientTransform="matrix(-0.5306831,-0.1245339,-0.2173546,0.9262274,563.38903,477.67166)" + gradientUnits="userSpaceOnUse" /> + <linearGradient + id="linearGradient5519"> + <stop + style="stop-color:#8bdf3f;stop-opacity:1;" + offset="0" + id="stop5521" /> + <stop + id="stop5523" + offset="0.5" + style="stop-color:#8bdf3f;stop-opacity:0.49803922;" /> + <stop + style="stop-color:#8bdf3f;stop-opacity:0.24705882;" + offset="0.74157304" + id="stop5525" /> + <stop + id="stop5527" + offset="0.87078655" + style="stop-color:#8bdf3f;stop-opacity:0.12156863;" /> + <stop + style="stop-color:#8bdf3f;stop-opacity:0;" + offset="1" + id="stop5529" /> + </linearGradient> + <linearGradient + id="linearGradient5507"> + <stop + id="stop5509" + offset="0" + style="stop-color:#8bdf3f;stop-opacity:1;" /> + <stop + style="stop-color:#8ddf3f;stop-opacity:1;" + offset="0.69999999" + id="stop8121" /> + <stop + style="stop-color:#90df3f;stop-opacity:0.49803922;" + offset="1" + id="stop5541" /> + </linearGradient> + <linearGradient + id="linearGradient5493"> + <stop + style="stop-color:#8bdf3f;stop-opacity:1;" + offset="0" + id="stop5495" /> + <stop + id="stop5501" + offset="0.5" + style="stop-color:#8bdf3f;stop-opacity:0.49803922;" /> + <stop + style="stop-color:#8bdf3f;stop-opacity:0.24705882;" + offset="0.74157304" + id="stop5503" /> + <stop + id="stop5505" + offset="0.87078655" + style="stop-color:#8bdf3f;stop-opacity:0.12156863;" /> + <stop + style="stop-color:#8bdf3f;stop-opacity:0;" + offset="1" + id="stop5497" /> + </linearGradient> + <linearGradient + id="linearGradient5363"> + <stop + style="stop-color:#8bdf3f;stop-opacity:0;" + offset="0" + id="stop5367" /> + </linearGradient> + <inkscape:perspective + id="perspective10" + inkscape:persp3d-origin="372.04724 : 350.78739 : 1" + inkscape:vp_z="744.09448 : 526.18109 : 1" + inkscape:vp_y="0 : 1000 : 0" + inkscape:vp_x="0 : 526.18109 : 1" + sodipodi:type="inkscape:persp3d" /> + <linearGradient + inkscape:collect="always" + xlink:href="#linearGradient5507" + id="linearGradient5539" + x1="368.03348" + y1="861.36774" + x2="368.03348" + y2="169.78116" + gradientUnits="userSpaceOnUse" + gradientTransform="matrix(0.5461744,0,0,0.5461744,178.64629,315.46555)" /> + </defs> + <metadata + id="metadata7"> + <rdf:RDF> + <cc:Work + rdf:about=""> + <dc:format>image/svg+xml</dc:format> + <dc:type + rdf:resource="http://purl.org/dc/dcmitype/StillImage" /> + </cc:Work> + </rdf:RDF> + </metadata> + <g + inkscape:groupmode="layer" + id="layer8" + inkscape:label="background"> + <path + style="opacity:1;fill:#ffffff;fill-opacity:1;fill-rule:nonzero;stroke:none;stroke-width:0;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:0;display:inline" + d="M 89.140415,789.30215 C 89.509348,738.60462 90.410566,608.52912 91.143141,500.24547 C 91.938312,382.7071 93.004837,303.08446 93.789631,302.66733 C 94.967586,302.04122 159.57406,302.39856 484.28372,304.82706 L 578.74314,305.53352 L 626.71559,396.0606 L 674.68809,486.58772 L 673.48753,679.22928 C 672.82725,785.18217 672.11504,875.24442 671.90487,879.36762 L 671.52274,886.86427 L 582.88434,886.17124 C 335.32292,884.23573 88.679873,882.04382 88.58097,881.77841 C 88.519732,881.6139 88.771449,839.99965 89.140401,789.30213 L 89.140415,789.30215 z" + id="whitebackground" /> + </g> + <g + id="layer1" + inkscape:groupmode="layer" + inkscape:label="card" + style="display:inline"> + <path + style="opacity:1;fill:url(#linearGradient5539);fill-opacity:1;fill-rule:nonzero;stroke:#000000;stroke-width:4;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1" + d="M 267.65567,408.46876 C 257.17279,408.90926 247.78519,418.60954 248.48085,429.23582 C 247.90086,453.38364 248.67102,477.53602 249.09468,501.68016 C 249.83249,531.7659 250.21837,561.85861 250.31636,591.95306 C 250.56786,642.28372 250.36209,692.61544 250.4464,742.94655 C 250.5201,751.33215 250.33756,759.73138 250.59105,768.10831 C 251.7898,778.13154 261.44151,786.3724 271.58542,785.59913 C 333.17969,785.68023 394.77452,785.62266 456.36899,785.62779 C 468.69359,785.58273 481.02473,785.67876 493.34517,785.49976 C 503.45022,784.37975 511.77776,774.6582 510.98934,764.45298 C 511.07837,697.63677 511.0022,630.81997 511.02756,564.00354 C 511.01041,519.10524 511.07025,474.20377 510.9427,429.30748 C 510.06821,419.04302 500.24747,410.4394 489.91678,411.20353 C 446.14085,410.80991 402.36072,410.88489 358.58631,410.33359 C 328.2741,409.82321 297.97139,408.72819 267.65567,408.46876 z" + id="rect4069" /> + </g> + <g + inkscape:groupmode="layer" + id="layer2" + inkscape:label="number" + style="display:inline"> + <text + xml:space="preserve" + style="font-size:81.96623993px;font-style:normal;font-weight:normal;opacity:1;fill:#8bdf3f;fill-opacity:1;stroke:#2c5409;stroke-width:4.36939526;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1;font-family:Bitstream Vera Sans" + x="461.37338" + y="473.95477" + id="text5544" + transform="scale(0.9729684,1.0277826)"><tspan + sodipodi:role="line" + id="tspan5546" + x="461.37338" + y="473.95477" + style="stroke:#2c5409;stroke-width:4.36939526;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1">7</tspan></text> + </g> + <g + inkscape:groupmode="layer" + id="layer5" + inkscape:label="drop" + style="display:inline"> + <path + style="fill:url(#radialGradient3287);fill-opacity:1;fill-rule:evenodd;stroke:#000000;stroke-width:5;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1;stroke-miterlimit:4;stroke-dasharray:none" + d="M 409.96826,575.08196 C 409.96826,575.08196 393.61528,621.41541 418.14474,665.02335 C 438.25729,700.779 429.04673,727.70977 423.59573,738.61176 C 407.75031,770.30261 350.25029,765.59418 339.10535,733.16076 C 327.90184,700.55687 328.9544,659.64294 409.96826,575.08196 z" + id="path3267" + sodipodi:nodetypes="csssc" /> + <path + sodipodi:type="arc" + style="opacity:1;fill:url(#radialGradient3309);fill-opacity:1;fill-rule:nonzero;stroke:none;stroke-width:1;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1" + id="path3301" + sodipodi:cx="245" + sodipodi:cy="342.5" + sodipodi:rx="35" + sodipodi:ry="42.5" + d="M 280,342.5 A 35,42.5 0 1 1 210,342.5 A 35,42.5 0 1 1 280,342.5 z" + transform="matrix(-0.5450993,0,0,0.5450993,506.46357,525.47148)" /> + </g> + <g + inkscape:groupmode="layer" + id="layer3" + inkscape:label="corner" + style="display:inline"> + <rect + style="opacity:1;fill:#8bdf3f;fill-opacity:1;fill-rule:nonzero;stroke:#000000;stroke-width:4;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:0.94117647000000004" + id="number" + width="260.60321" + height="374.47369" + x="175.05716" + y="200.52148" + ry="20.286476" /> + </g> + <g + inkscape:groupmode="layer" + id="layer4" + inkscape:label="corner mask" + style="display:inline" /> + <path + style="opacity:1;fill:#ffffff;fill-opacity:1;fill-rule:nonzero;stroke:none;stroke-width:0;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:0;display:inline" + d="M -6.80404,717.84521 C -29.72604,691.84812 -88.57356,625.17924 -137.57629,569.69213 C -190.76716,509.4627 -226.37891,468.28632 -225.94441,467.51579 C -225.29224,466.35924 -173.63428,420.5391 86.28635,190.56989 L 161.89834,123.67089 L 241.58991,135.46536 L 321.28153,147.25983 L 408.54151,245.90079 C 456.53452,300.15333 497.20931,346.37663 498.92994,348.61923 L 502.05833,352.69668 L 431.09208,415.45779 C 232.88793,590.74563 35.29833,765.24939 35.09796,765.18507 C 34.97382,765.14524 16.11792,743.8423 -6.80406,717.84521 L -6.80404,717.84521 z" + id="path8042" /> +</svg>
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/jpoker/themes/pokersource.eu/images/mockup.svg Mon Apr 19 05:40:37 2010 +0200 @@ -0,0 +1,1109 @@ +<?xml version="1.0" encoding="UTF-8" standalone="no"?> +<!-- Created with Inkscape (http://www.inkscape.org/) --> +<svg + xmlns:dc="http://purl.org/dc/elements/1.1/" + xmlns:cc="http://creativecommons.org/ns#" + xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" + xmlns:svg="http://www.w3.org/2000/svg" + xmlns="http://www.w3.org/2000/svg" + xmlns:xlink="http://www.w3.org/1999/xlink" + xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd" + xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape" + version="1.0" + width="760" + height="530" + id="game_window" + sodipodi:version="0.32" + inkscape:version="0.46" + sodipodi:docname="mockup.svg" + inkscape:output_extension="org.inkscape.output.svg.inkscape" + sodipodi:docbase="/home/loic/tmp/upstream/jpoker/images" + style="display:inline;enable-background:new"> + <defs + id="defs120"> + <inkscape:perspective + sodipodi:type="inkscape:persp3d" + inkscape:vp_x="0 : 391 : 1" + inkscape:vp_y="0 : 1000 : 0" + inkscape:vp_z="800 : 391 : 1" + inkscape:persp3d-origin="400 : 260.66667 : 1" + id="perspective122" /> + <inkscape:perspective + id="perspective2947" + inkscape:persp3d-origin="372.04724 : 350.78739 : 1" + inkscape:vp_z="744.09448 : 526.18109 : 1" + inkscape:vp_y="0 : 1000 : 0" + inkscape:vp_x="0 : 526.18109 : 1" + sodipodi:type="inkscape:persp3d" /> + <inkscape:perspective + id="perspective2587" + inkscape:persp3d-origin="372.04724 : 350.78739 : 1" + inkscape:vp_z="744.09448 : 526.18109 : 1" + inkscape:vp_y="0 : 1000 : 0" + inkscape:vp_x="0 : 526.18109 : 1" + sodipodi:type="inkscape:persp3d" /> + </defs> + <sodipodi:namedview + inkscape:window-height="823" + inkscape:window-width="782" + inkscape:pageshadow="2" + inkscape:pageopacity="0.0" + guidetolerance="10.0" + gridtolerance="10.0" + objecttolerance="10.0" + borderopacity="1.0" + bordercolor="#666666" + pagecolor="#ffffff" + id="base" + showgrid="false" + showguides="true" + inkscape:guide-bbox="true" + inkscape:zoom="1.7894737" + inkscape:cx="296.24578" + inkscape:cy="55.210102" + inkscape:window-x="635" + inkscape:window-y="27" + inkscape:current-layer="game_fixed"> + <sodipodi:guide + orientation="0,1" + position="-54.519393,761.48398" + id="guide2953" /> + <sodipodi:guide + orientation="0,1" + position="199.3086,748.07757" + id="guide2955" /> + <sodipodi:guide + orientation="0,1" + position="244.89039,713.22091" + id="guide2957" /> + <sodipodi:guide + orientation="0,1" + position="270.80944,525.5312" + id="guide2959" /> + <sodipodi:guide + orientation="0,1" + position="318.17875,495.14334" + id="guide2961" /> + <sodipodi:guide + orientation="0,1" + position="246.67791,484.41821" + id="guide2963" /> + <sodipodi:guide + orientation="1,0" + position="58.094435,713.22091" + id="guide2967" /> + <sodipodi:guide + orientation="1,0" + position="201.98988,710.53963" + id="guide2969" /> + <sodipodi:guide + orientation="1,0" + position="346.77909,690.8769" + id="guide2971" /> + <sodipodi:guide + orientation="1,0" + position="500.50591,648.87017" + id="guide2973" /> + <sodipodi:guide + orientation="1,0" + position="634.56998,667.63912" + id="guide2975" /> + <sodipodi:guide + orientation="0,1" + position="461.18044,373.59191" + id="guide2977" /> + <sodipodi:guide + orientation="1,0" + position="289.57841,369.1231" + id="guide2979" /> + <sodipodi:guide + orientation="1,0" + position="339.62901,464.75549" + id="guide2983" /> + <sodipodi:guide + orientation="1,0" + position="386.10455,400.40472" + id="guide2985" /> + <sodipodi:guide + orientation="1,0" + position="466.543,748.07757" + id="guide2987" /> + <sodipodi:guide + orientation="0,1" + position="253.82799,777.57167" + id="guide2989" /> + <sodipodi:guide + orientation="0,1" + position="-12.512648,782.93423" + id="guide2991" /> + </sodipodi:namedview> + <metadata + id="metadata99"> + <rdf:RDF> + <cc:Work + rdf:about=""> + <dc:format>image/svg+xml</dc:format> + <dc:type + rdf:resource="http://purl.org/dc/dcmitype/StillImage" /> + </cc:Work> + </rdf:RDF> + </metadata> + <g + id="game_fixed" + transform="translate(-0.9827924,0.7371011)" + style="display:inline"> + <image + xlink:href="../css/images/jpoker_table/background.png" + x="0.98279238" + y="-0.73710114" + width="760" + height="530" + id="game_background" + style="fill:#dddddd;fill-opacity:1" /> + <image + y="90.330521" + x="80.08094" + id="table" + height="228" + width="596" + xlink:href="../css/images/jpoker_table/table.gif" + inkscape:label="#image2471" /> + <image + xlink:href="../css/images/jpoker_table/cards/small-back.png" + x="282.49652" + y="158.88312" + width="37" + height="45" + id="board0" /> + <use + xlink:href="#board0" + id="board1" + transform="translate(41.112982,0)" + width="760" + height="530" + x="0" + y="0" /> + <use + xlink:href="#board0" + id="board2" + transform="translate(82.225982,0)" + width="760" + height="530" + x="0" + y="0" /> + <use + xlink:href="#board0" + id="board3" + transform="translate(123.33896,0)" + width="760" + height="530" + x="0" + y="0" /> + <use + xlink:href="#board0" + id="board4" + transform="translate(164.45194,0)" + width="760" + height="530" + x="0" + y="0" /> + <image + xlink:href="../css/images/jpoker_table/winner.png" + x="292.51959" + y="133.50706" + width="180" + height="25" + id="winner0" /> + <image + xlink:href="../css/images/jpoker_table/winner.png" + x="305.20087" + y="208.3877" + width="180" + height="25" + id="winner1" /> + <image + xlink:href="../css/images/jpoker_table/menu-button.gif" + x="689.03601" + width="67" + height="20" + id="quit" + y="3.6912289" /> + <image + xlink:href="../css/images/jpoker_table/menu-button.gif" + width="67" + height="20" + id="rebuy" + x="615.89008" + y="3.6912289" /> + <image + xlink:href="../css/images/jpoker_table/status.png" + x="290.56119" + id="auto_action" + inkscape:transform-center-y="409.03051" + inkscape:transform-center-x="-19.998271" + width="194.30945" + inkscape:label="auto_action" + height="118.59718" + y="407.67099" /> + <image + xlink:href="../css/images/jpoker_table/check.png" + x="290.56119" + y="407.67099" + width="44" + height="30" + id="check" /> + <image + xlink:href="../css/images/jpoker_table/call.png" + x="338.82428" + y="407.67099" + width="44" + height="30" + id="call" /> + <image + xlink:href="../css/images/jpoker_table/fold.png" + x="387.08734" + y="407.67099" + width="44" + height="30" + id="fold" /> + <image + xlink:href="../css/images/jpoker_table/raise.png" + x="290.56119" + y="441.96948" + width="44" + height="30" + id="raise" /> + <image + xlink:href="../css/images/jpoker_table/raise_slider_dock.png" + x="339.71802" + y="476.26794" + width="94" + height="50" + id="raise_range" /> + <image + xlink:href="../css/images/jpoker_table/seat-sit.gif" + x="59.077229" + y="68.041992" + width="70" + height="87" + id="sit_seat0" /> + <use + xlink:href="#sit_seat0" + id="sit_seat1" + transform="translate(143.89544,-33.922433)" + width="800" + height="782" + x="0" + y="0" /> + <use + xlink:href="#sit_seat0" + id="sit_seat2" + transform="translate(288.68465,-50.050591)" + width="800" + height="782" + x="0" + y="0" /> + <use + xlink:href="#sit_seat0" + id="sit_seat3" + transform="translate(442.41147,-33.922433)" + width="800" + height="782" + x="0" + y="0" /> + <use + xlink:href="#sit_seat0" + id="sit_seat4" + transform="translate(576.47554,2.6289967)" + width="800" + height="782" + x="0" + y="0" /> + <use + xlink:href="#sit_seat0" + id="sit_seat5" + transform="translate(576.47554,186.79595)" + width="800" + height="782" + x="0" + y="0" /> + <use + xlink:href="#sit_seat0" + id="sit_seat6" + transform="translate(442.41147,216.29005)" + width="800" + height="782" + x="0" + y="0" /> + <use + xlink:href="#sit_seat0" + id="sit_seat7" + transform="translate(288.68465,226.12142)" + width="800" + height="782" + x="0" + y="0" /> + <use + xlink:href="#sit_seat0" + id="sit_seat8" + transform="translate(143.89544,218.11804)" + width="800" + height="782" + x="0" + y="0" /> + <use + xlink:href="#sit_seat0" + id="sit_seat9" + transform="translate(-1.1461426e-6,186.83642)" + width="800" + height="782" + x="0" + y="0" /> + <g + id="seat0" + inkscape:label="#g2730" + transform="translate(34.529772,-59.425165)"> + <g + inkscape:label="#g3841" + transform="translate(-2.1897581,-9.3138686e-6)" + id="player_seat0"> + <image + inkscape:label="#image3681" + y="127.46716" + x="26.737213" + id="player_seat0_background" + height="87" + width="70" + xlink:href="../css/images/jpoker_table/seat.gif" /> + <image + inkscape:label="#image4258" + xlink:href="../css/images/jpoker_table/name.png" + x="28.737213" + y="129.46716" + width="63.912312" + height="10" + id="player_seat0_name" /> + <image + inkscape:label="#image3838" + y="151.32977" + x="29.812256" + id="player_seat0_avatar" + height="43" + width="63" + xlink:href="../css/images/jpoker_table/avatar.gif" /> + <image + inkscape:label="#image4258" + xlink:href="../css/images/jpoker_table/timeout.png" + x="32.737213" + y="145.73549" + width="59.443508" + height="3.8063638" + id="player_seat0_timeout" /> + <image + inkscape:label="#image4260" + xlink:href="../css/images/jpoker_table/money.png" + x="31.745811" + y="197.84163" + width="57.87521" + height="10" + id="player_seat0_money" /> + <image + inkscape:label="player_seat0_action" + xlink:href="../css/images/jpoker_table/money.png" + x="38.19067" + y="215.71684" + width="40" + height="10" + id="player_seat0_action" /> + <image + inkscape:label="#image4258" + xlink:href="../css/images/jpoker_table/name.png" + x="94.557175" + y="133.46716" + width="23.693085" + height="23.406408" + id="player_seat0_stats" /> + </g> + <image + inkscape:label="#player_seat0_sidepot" + xlink:href="../css/images/jpoker_table/name.png" + x="92.144684" + y="219.3877" + width="34.59359" + height="38.168633" + id="player_seat0_sidepot" /> + <image + id="player_seat0_bet" + height="24" + width="24" + y="219.16499" + x="90.54174" + xlink:href="../css/images/jpoker_table/bet.gif" /> + <image + id="dealer0" + height="26" + width="25" + y="193.7975" + x="115.17166" + xlink:href="../css/images/jpoker_table/dealer.gif" /> + <g + id="card_seat0" + transform="translate(-20.869003,-82.01349)"> + <image + id="card_seat00" + height="45" + width="37" + y="231.98524" + x="39.416458" + xlink:href="../css/images/jpoker_table/cards/small-back.png" + inkscape:label="#card_seat00" /> + <image + id="card_seat01" + height="45" + width="37" + y="231.98524" + x="80.168304" + xlink:href="../css/images/jpoker_table/cards/small-back.png" + inkscape:label="#card_seat01" /> + </g> + <image + y="179.57823" + x="13.377388" + id="player_seat0_hole" + height="122" + width="116" + xlink:href="../css/images/jpoker_table/card-back2.gif" /> + </g> + <g + id="seat1" + inkscape:label="#g2654" + transform="translate(-8.8010626,28.345915)"> + <use + inkscape:label="#use4265" + height="600" + width="800" + transform="translate(187.22628,-122.62774)" + id="player_seat1" + xlink:href="#player_seat0" + y="0" + x="0" /> + <use + inkscape:label="#player_seat1_sidepot" + id="player_seat1_sidepot" + xlink:href="#player_seat0_sidepot" + transform="translate(182.62399,-127.81956)" + y="0" + x="0" + width="800" + height="782" /> + <use + x="0" + y="0" + xlink:href="#player_seat0_bet" + id="player_seat1_bet" + transform="translate(184.82052,-128.91526)" + width="800" + height="600" + inkscape:label="#use2572" /> + <use + id="dealer1" + xlink:href="#dealer0" + transform="translate(192.1906,-123.66973)" + width="800" + height="782" + x="0" + y="0" /> + <use + xlink:href="#card_seat0" + height="600" + width="800" + y="0" + x="0" + id="card_seat1" + transform="translate(189.06296,-121.2963)" /> + <use + xlink:href="#player_seat0_hole" + height="600" + width="800" + y="0" + x="0" + id="player_seat1_hole" + transform="translate(138.1321,-138.2845)" /> + </g> + <g + id="seat2" + inkscape:label="#g2660" + transform="translate(-2.6812816,13.608776)"> + <use + inkscape:label="#use4267" + height="600" + width="800" + transform="translate(328.46715,-122.62773)" + id="player_seat2" + xlink:href="#player_seat0" + y="0" + x="0" /> + <use + inkscape:label="#player_seat2_sidepot" + id="player_seat2_sidepot" + xlink:href="#player_seat0_sidepot" + transform="translate(325.01349,-127.81955)" + y="0" + x="0" + width="800" + height="782" /> + <use + height="600" + width="800" + transform="translate(327.8951,-127.4124)" + id="player_seat2_bet" + xlink:href="#player_seat0_bet" + y="0" + x="0" + inkscape:label="#use2590" /> + <use + id="dealer2" + xlink:href="#dealer0" + transform="translate(338.03541,-102.93259)" + width="800" + height="782" + x="0" + y="0" /> + <use + xlink:href="#card_seat0" + height="600" + width="800" + y="0" + x="0" + id="card_seat2" + transform="translate(330.45266,-120.3952)" /> + <use + xlink:href="#player_seat0_hole" + height="600" + width="800" + y="0" + x="0" + id="player_seat2_hole" + transform="translate(278.1321,-142.2845)" /> + </g> + <g + id="seat3" + inkscape:label="#g2750" + transform="translate(14.740907,27.251015)"> + <use + inkscape:label="#use4269" + height="600" + width="800" + transform="translate(461.30657,-121.53284)" + id="player_seat3" + xlink:href="#player_seat0" + y="0" + x="0" /> + <use + inkscape:label="#player_seat3_sidepot" + id="player_seat3_sidepot" + xlink:href="#player_seat0_sidepot" + transform="translate(444.55649,-111.18212)" + y="0" + x="0" + width="800" + height="782" /> + <use + x="0" + y="0" + xlink:href="#player_seat0_bet" + id="player_seat3_bet" + transform="translate(455.87037,-112.11639)" + width="800" + height="600" + inkscape:label="#use2712" /> + <use + id="dealer3" + xlink:href="#dealer0" + transform="translate(458.99831,-91.37753)" + width="800" + height="782" + x="0" + y="0" /> + <use + xlink:href="#card_seat0" + height="600" + width="800" + y="0" + x="0" + id="card_seat3" + transform="translate(464.80657,-120.19006)" /> + <use + xlink:href="#player_seat0_hole" + height="600" + width="800" + y="0" + x="0" + id="player_seat3_hole" + transform="translate(402.1321,-152.2845)" /> + </g> + <g + id="seat4" + inkscape:label="#g2672" + transform="translate(-39.506883,-56.743883)"> + <use + inkscape:label="#use4271" + height="600" + width="800" + transform="translate(654.74453,-1.2408759e-7)" + id="player_seat4" + xlink:href="#player_seat0" + y="0" + x="0" /> + <use + inkscape:label="#player_seat4_sidepot" + id="player_seat4_sidepot" + xlink:href="#player_seat0_sidepot" + transform="translate(540.55371,-5.424953)" + y="0" + x="0" + width="800" + height="782" /> + <use + height="600" + width="800" + transform="translate(552.75024,-6.390861)" + id="player_seat4_bet" + xlink:href="#player_seat0_bet" + y="0" + x="0" + inkscape:label="#use2592" /> + <use + id="dealer4" + xlink:href="#dealer0" + transform="translate(572.4317,55.706579)" + width="800" + height="782" + x="0" + y="0" /> + <use + xlink:href="#card_seat0" + height="600" + width="800" + y="0" + x="0" + id="card_seat4" + transform="translate(656.5122,1.07971e-2)" /> + <use + xlink:href="#player_seat0_hole" + height="600" + width="800" + y="0" + x="0" + id="player_seat4_hole" + transform="translate(610.1321,-4.2845)" /> + </g> + <g + id="seat5" + inkscape:label="#g2678" + transform="translate(-44.834103,-143.26829)"> + <use + inkscape:label="#use4273" + height="600" + width="800" + transform="translate(655.83942,271.53284)" + id="player_seat5" + xlink:href="#player_seat0" + y="0" + x="0" /> + <use + inkscape:label="#player_seat5_sidepot" + id="player_seat5_sidepot" + xlink:href="#player_seat0_sidepot" + transform="translate(547.6486,121.82478)" + y="0" + x="0" + width="800" + height="782" /> + <use + height="600" + width="800" + transform="translate(559.84513,136.98507)" + id="player_seat5_bet" + xlink:href="#player_seat0_bet" + y="0" + x="0" + inkscape:label="#use2596" /> + <use + id="dealer5" + xlink:href="#dealer0" + transform="translate(519.01854,187.43339)" + width="800" + height="782" + x="0" + y="0" /> + <use + xlink:href="#card_seat0" + height="600" + width="800" + y="0" + x="0" + id="card_seat5" + transform="translate(657.83942,272.01636)" /> + <use + xlink:href="#player_seat0_hole" + height="600" + width="800" + y="0" + x="0" + id="player_seat5_hole" + transform="translate(618.1321,129.7155)" /> + </g> + <g + id="seat6" + inkscape:label="#g2687" + transform="translate(16.740907,-207.221)"> + <use + inkscape:label="#use4275" + height="600" + width="800" + transform="translate(457.30657,364.59854)" + id="player_seat6" + xlink:href="#player_seat0" + y="0" + x="0" /> + <use + inkscape:label="#player_seat6_sidepot" + id="player_seat6_sidepot" + xlink:href="#player_seat0_sidepot" + transform="translate(390.00952,232.50936)" + y="0" + x="0" + width="800" + height="782" /> + <use + height="600" + width="800" + transform="translate(391.86878,232.51284)" + id="player_seat6_bet" + xlink:href="#player_seat0_bet" + y="0" + x="0" + inkscape:label="#use2598" /> + <use + id="dealer6" + xlink:href="#dealer0" + width="800" + height="782" + transform="translate(338.57613,271.65936)" + x="0" + y="0" /> + <use + xlink:href="#card_seat0" + height="600" + width="800" + y="0" + x="0" + id="card_seat6" + transform="translate(458.02462,364.81907)" /> + <use + xlink:href="#player_seat0_hole" + height="600" + width="800" + y="0" + x="0" + id="player_seat6_hole" + transform="translate(460.08488,232.42039)" /> + </g> + <g + id="seat7" + inkscape:label="#g2693" + transform="translate(-0.6833726,-196.12611)"> + <use + inkscape:label="#use4277" + height="600" + width="800" + transform="translate(321.8978,363.50365)" + id="player_seat7" + xlink:href="#player_seat0" + y="0" + x="0" /> + <use + inkscape:label="#player_seat7_sidepot" + id="player_seat7_sidepot" + xlink:href="#player_seat0_sidepot" + transform="translate(261.03244,230.45323)" + y="0" + x="0" + width="800" + height="782" /> + <use + height="600" + width="800" + transform="translate(263.22897,230.00141)" + id="player_seat7_bet" + xlink:href="#player_seat0_bet" + y="0" + x="0" + inkscape:label="#use2600" /> + <use + id="dealer7" + xlink:href="#dealer0" + width="800" + height="782" + transform="translate(208.27359,266.08432)" + x="0" + y="0" /> + <use + xlink:href="#card_seat0" + height="600" + width="800" + y="0" + x="0" + id="card_seat7" + transform="translate(324.97846,363.84181)" /> + <use + xlink:href="#player_seat0_hole" + height="600" + width="800" + y="0" + x="0" + id="player_seat7_hole" + transform="translate(332.1321,231.7155)" /> + </g> + <g + id="seat8" + inkscape:label="#g2699" + transform="translate(-8.8010626,-204.85124)"> + <use + inkscape:label="#use4279" + height="600" + width="800" + transform="translate(187.22628,363.50365)" + id="player_seat8" + xlink:href="#player_seat0" + y="0" + x="0" /> + <use + inkscape:label="#player_seat8_sidepot" + id="player_seat8_sidepot" + xlink:href="#player_seat0_sidepot" + y="0" + x="0" + transform="translate(124.62399,231.19524)" + width="800" + height="782" /> + <use + height="600" + width="800" + transform="translate(124.82052,231.80581)" + id="player_seat8_bet" + xlink:href="#player_seat0_bet" + y="0" + x="0" + inkscape:label="#use2602" /> + <use + id="dealer8" + xlink:href="#dealer0" + transform="translate(71.08263,260.50927)" + width="800" + height="782" + x="0" + y="0" /> + <use + xlink:href="#card_seat0" + height="600" + width="800" + y="0" + x="0" + id="card_seat8" + transform="translate(188.40356,363.72418)" /> + <use + xlink:href="#player_seat0_hole" + height="600" + width="800" + y="0" + x="0" + id="player_seat8_hole" + transform="translate(194.39635,232.42039)" /> + </g> + <g + id="seat9" + inkscape:label="#g2705" + transform="translate(37.009927,-142.1734)"> + <use + inkscape:label="#use4281" + height="600" + width="800" + transform="translate(1.0948869,270.43795)" + id="player_seat9" + xlink:href="#player_seat0" + y="0" + x="0" /> + <use + inkscape:label="#player_seat9_sidepot" + id="player_seat9_sidepot" + xlink:href="#player_seat0_sidepot" + y="0" + x="0" + transform="translate(3.6865283,140.34877)" + width="800" + height="782" /> + <use + height="600" + width="800" + transform="translate(5.4517547,141.04027)" + id="player_seat9_bet" + xlink:href="#player_seat0_bet" + y="0" + x="0" + inkscape:label="#use2604" /> + <use + id="dealer9" + xlink:href="#dealer0" + transform="translate(-54.178562,148.10792)" + width="800" + height="782" + x="0" + y="0" /> + <use + xlink:href="#card_seat0" + height="600" + width="800" + y="0" + x="0" + id="card_seat9" + transform="translate(1.0948868,272.21805)" /> + <use + xlink:href="#player_seat0_hole" + height="600" + width="800" + y="0" + x="0" + id="player_seat9_hole" + transform="translate(8.6899124,139.46929)" /> + </g> + <image + xlink:href="../css/images/jpoker_table/menu-button.gif" + y="3.6912289" + width="67" + height="20" + id="sitout" + inkscape:label="sitout" + x="540.90015" /> + <image + xlink:href="../css/images/jpoker_table/menu-button.gif" + y="407.67099" + width="67" + height="20" + id="muck_accept" + inkscape:label="muck_accept" + x="252.56119" /> + <image + xlink:href="../css/images/jpoker_table/menu-button.gif" + y="407.67099" + width="67" + height="20" + id="muck_deny" + inkscape:label="muck_deny" + x="429.59494" /> + <image + xlink:href="../css/images/jpoker_table/status.png" + x="339.71802" + id="raise_input" + inkscape:transform-center-y="90.64102" + inkscape:transform-center-x="-9.1891349" + width="89.284515" + inkscape:label="raise_input" + height="26.281096" + y="441.96948" /> + <image + xlink:href="../css/images/jpoker_table/status.png" + x="0.55783463" + id="table_info" + inkscape:transform-center-y="141.31382" + inkscape:transform-center-x="-14.208456" + width="138.05357" + inkscape:label="auto_muck" + height="40.973526" + y="-0.60556984" /> + <image + xlink:href="../css/images/jpoker_table/menu-button.gif" + y="3.6912289" + width="67" + height="20" + id="sitin" + inkscape:label="sitin" + x="541.97327" /> + <image + xlink:href="../css/images/jpoker_table/status.png" + x="1.4154663" + id="powered_by" + inkscape:transform-center-y="46.237442" + inkscape:transform-center-x="-14.375328" + width="139.67525" + inkscape:label="powered_by" + height="13.40641" + y="373.73169" /> + <image + xlink:href="../css/images/jpoker_table/raise.png" + x="290.56119" + y="476.26794" + width="44" + height="30" + id="allin" /> + <image + xlink:href="../css/images/jpoker_table/status.png" + x="577.34949" + id="hand_strength" + inkscape:transform-center-y="104.68348" + inkscape:transform-center-x="-18.960244" + width="184.22353" + inkscape:label="hand_strength" + height="30.352667" + y="360.4938" /> + <image + xlink:href="../css/images/jpoker_table/winner.png" + x="200.98279" + y="212.26289" + width="370" + height="30" + id="pots" /> + <image + style="display:inline;enable-background:new" + xlink:href="../css/images/jpoker_table/menu-button.gif" + width="67" + height="20" + id="options" + x="467.52579" + y="3.731699" /> + <image + style="display:inline;enable-background:new" + xlink:href="../css/images/jpoker_table/menu-button.gif" + y="194.0276" + width="67" + height="20" + id="sound_control" + inkscape:label="sound_control" + x="689.48279" /> + <image + style="display:inline;enable-background:new" + xlink:href="../css/images/jpoker_table/raise.png" + x="436.10043" + y="493.58646" + width="44" + height="30" + id="threequarterpot" /> + <image + style="display:inline;enable-background:new" + xlink:href="../css/images/jpoker_table/raise.png" + x="436.65927" + y="462.85114" + width="44" + height="30" + id="halfpot" /> + <image + style="display:inline;enable-background:new" + xlink:href="../css/images/jpoker_table/raise.png" + x="436.65927" + y="432.11584" + width="44" + height="30" + id="pot" /> + </g> +</svg>
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/jpoker/themes/pokersource.eu/skin.html Mon Apr 19 05:40:37 2010 +0200 @@ -0,0 +1,180 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> +<!-- +// +// Copyright (C) 2008 - 2010 Loic Dachary <loic@dachary.org> +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public License +// along with this program. If not, see <http://www.gnu.org/licenses/>. +// +--> +<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en" dir="ltr" id="html"> +<head> + <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> + <title>jpoker skin showcase</title> + <script language="JavaScript" type="text/javascript" src="../../jquery/jquery-1.2.6.js"></script> + <script language="JavaScript" type="text/javascript" src="../../jquery/ui/ui.core.js"></script> + <script language="JavaScript" type="text/javascript" src="../../jquery/ui/ui.draggable.js"></script> + <script language="JavaScript" type="text/javascript" src="../../jquery/ui/ui.resizable.js"></script> + <script language="JavaScript" type="text/javascript" src="../../jquery/ui/ui.dialog.js"></script> + <script language="JavaScript" type="text/javascript" src="../../jquery/ui/ui.slider.js"></script> + <script language="JavaScript" type="text/javascript" src="../../js/jquery.ajaxQueue.js"></script> + <script language="JavaScript" type="text/javascript" src="../../js/jquery.cookie.js"></script> + <script language="JavaScript" type="text/javascript" src="../../js/jquery.gettext.js"></script> + <script language="JavaScript" type="text/javascript" src="../../js/jquery.strftime.js"></script> + <script language="JavaScript" type="text/javascript" src="../../js/jquery.form.js"></script> + <script language="JavaScript" type="text/javascript" src="../../js/jquery.tablesorter.js"></script> + <script language="JavaScript" type="text/javascript" src="../../js/jquery.tablesorter.pager.js"></script> + <script language="JavaScript" type="text/javascript" src="../../js/printstacktrace.js"></script> + <script language="JavaScript" type="text/javascript" src="../../js/json2.js"></script> + <script language="JavaScript" type="text/javascript" src="../../js/jquery.jpoker.js"></script> + <script language="JavaScript" type="text/javascript" src="../../js/mockup.js"></script> + <script language="JavaScript" type="text/javascript" src="../../js/skin-jpoker.js"></script> + <script type="text/javascript"> + $.jpoker.verbose = 1; + $.jpoker.copyrightTimeout = 20000000; + $(document).ready(function() { + $("#links li a").each(function() { + $(this).attr('href', '#'+$(this).attr('onClick')); + }); + if (window.location.hash) { + eval(window.location.hash.substr(1)); + } + }); + </script> + <link href="css/jpoker.css" rel="stylesheet" type="text/css" /> +</head> + +<body> + <div class="skinclean" id="explain"></div> + <div class="skinclean" id="place"></div> + + <ul id="links"> +<li><a href='#' onClick='jpoker_01_copyright("#place")'>jpoker_01_copyright</a></li> +<li><a href='#' onClick='jpoker_02_join("#place")'>jpoker_02_join</a></li> +<li><a href='#' onClick='jpoker_03_joinBuyIn("#place")'>jpoker_03_joinBuyIn</a></li> +<li><a href='#' onClick='jpoker_03_playerBet("#place")'>jpoker_03_playerBet</a></li> +<li><a href='#' onClick='jpoker_04_playerInPosition("#place")'>jpoker_04_playerInPosition</a></li> +<li><a href='#' onClick='jpoker_05_selfPlayer("#place")'>jpoker_05_selfPlayer</a></li> +<li><a href='#' onClick='jpoker_05_1_selfPlayerInGame_autoActionCheck("#place")'>jpoker_05_1_selfPlayerInGame_autoActionCheck</a></li> +<li><a href='#' onClick='jpoker_05_1_selfPlayerInGame_autoActionCall("#place")'>jpoker_05_1_selfPlayerInGame_autoActionCall</a></li> +<li><a href='#' onClick='jpoker_06_selfInPosition("#place")'>jpoker_06_selfInPosition</a></li> +<li><a href='#' onClick='jpoker_06_1_selfInPositionCheck("#place")'>jpoker_06_1_selfInPositionCheck</a></li> +<li><a href='#' onClick='jpoker_07_joining("#place")'>jpoker_07_joining</a></li> +<li><a href='#' onClick='jpoker_08_all("#place")'>jpoker_08_all</a></li> +<li><a href='#' onClick='jpoker_09_dialog("#place")'>jpoker_09_dialog</a></li> +<li><a href='#' onClick='jpoker_10_selfMuck("#place")'>jpoker_10_selfMuck</a></li> +<li><a href='#' onClick='jpoker_11_avatarHover("#place")'>jpoker_11_avatarHover</a></li> +<li><a href='#' onClick='jpoker_12_selfRebuy("#place")'>jpoker_12_selfRebuy</a></li> +<li><a href='#' onClick='jpoker_20_login("#place")'>jpoker_20_login</a></li> +<li><a href='#' onClick='jpoker_21_loginProgress("#place")'>jpoker_21_loginProgress</a></li> +<li><a href='#' onClick='jpoker_22_logout("#place")'>jpoker_22_logout</a></li> +<li><a href='#' onClick='jpoker_30_statusDisconnected("#place")'>jpoker_30_statusDisconnected</a></li> +<li><a href='#' onClick='jpoker_31_connectedTables("#place")'>jpoker_31_connectedTables</a></li> +<li><a href='#' onClick='jpoker_32_connectedTablesPlayers("#place")'>jpoker_32_connectedTablesPlayers</a></li> +<li><a href='#' onClick='jpoker_40_tableList("#place")'>jpoker_40_tableList</a></li> +<li><a href='#' onClick='jpoker_41_regularTourneyList("#place")'>jpoker_41_regularTourneyList</a></li> +<li><a href='#' onClick='jpoker_42_sitngoTourneyList("#place")'>jpoker_42_sitngoTourneyList</a></li> +<li><a href='#' onClick='jpoker_43_tableListWithLink("#place")'>jpoker_43_tableListWithLink</a></li> +<li><a href='#' onClick='jpoker_44_regularTourneyListWithLink("#place")'>jpoker_44_regularTourneyListWithLink</a></li> +<li><a href='#' onClick='jpoker_45_sitngoTourneyListWithLink("#place")'>jpoker_45_sitngoTourneyListWithLink</a></li> +<li><a href='#' onClick='jpoker_46_tableListWithPager("#place")'>jpoker_46_tableListWithPager</a></li> +<li><a href='#' onClick='jpoker_47_regularTourneyListWithPager("#place")'>jpoker_47_regularTourneyListWithPager</a></li> +<li><a href='#' onClick='jpoker_48_sitngoTourneyListWithPager("#place")'>jpoker_48_sitngoTourneyListWithPager</a></li> +<li><a href='#' onClick='jpoker_49_tableListWithPagerWithLinks("#place")'>jpoker_49_tableListWithPagerWithLinks</a></li> +<li><a href='#' onClick='jpoker_49_1_regularTourneyListWithPagerWithLinks("#place")'>jpoker_49_1_regularTourneyListWithPagerWithLinks</a></li> +<li><a href='#' onClick='jpoker_49_2_sitngoTourneyListWithPagerWithLinks("#place")'>jpoker_49_2_sitngoTourneyListWithPagerWithLinks</a></li> +<li><a href='#' onClick='jpoker_50_sitOut("#place")'>jpoker_50_sitOut</a></li> +<li><a href='#' onClick='jpoker_51_sit("#place")'>jpoker_51_sit</a></li> +<li><a href='#' onClick='jpoker_52_inPosition("#place")'>jpoker_52_inPosition</a></li> +<li><a href='#' onClick='jpoker_53_timeout("#place")'>jpoker_53_timeout</a></li> +<li><a href='#' onClick='jpoker_54_sidepot("#place")'>jpoker_54_sidepot</a></li> +<li><a href='#' onClick='jpoker_55_allWithSidePot("#place")'>jpoker_55_allWithSidePot</a></li> +<li><a href='#' onClick='jpoker_56_tourneyBreak("#place")'>jpoker_56_tourneyBreak</a></li> +<li><a href='#' onClick='jpoker_57_stats("#place")'>jpoker_57_stats</a></li> +<li><a href='#' onClick='jpoker_60_text("#place")'>jpoker_60_text</a></li> +<li><a href='#' onClick='jpoker_70_userInfo("#place")'>jpoker_70_userInfo</a></li> +<li><a href='#' onClick='jpoker_80_tourneyDetailsRegistering("#place")'>jpoker_80_tourneyDetailsRegistering</a></li> +<li><a href='#' onClick='jpoker_80_1_tourneyDetailsRegularRegistering("#place")'>jpoker_80_1_tourneyDetailsRegularRegistering</a></li> +<li><a href='#' onClick='jpoker_81_tourneyDetailsRunning("#place")'>jpoker_81_tourneyDetailsRunning</a></li> +<li><a href='#' onClick='jpoker_81_1_tourneyDetailsRegularRunning("#place")'>jpoker_81_1_tourneyDetailsRegularRunning</a></li> +<li><a href='#' onClick='jpoker_82_tourneyDetailsCompleted("#place")'>jpoker_82_tourneyDetailsCompleted</a></li> +<li><a href='#' onClick='jpoker_82_1_tourneyDetailsRegularCompleted("#place")'>jpoker_82_1_tourneyDetailsRegularCompleted</a></li> +<li><a href='#' onClick='jpoker_83_tourneyDetailsRegisteringWithPager("#place")'>jpoker_83_tourneyDetailsRegisteringWithpager</a></li> +<li><a href='#' onClick='jpoker_83_1_tourneyDetailsRegularRegisteringWithPager("#place")'>jpoker_83_1_tourneyDetailsRegularRegisteringWithPager</a></li> +<li><a href='#' onClick='jpoker_84_tourneyDetailsRunningWithLink("#place")'>jpoker_84_tourneyDetailsRunningWithLink</a></li> +<li><a href='#' onClick='jpoker_84_1_tourneyDetailsRegularRunningWithLink("#place")'>jpoker_84_1_tourneyDetailsRegularRunningWithLink</a></li> +<li><a href='#' onClick='jpoker_85_tourneyDetailsRegisteringWithPagerRegister("#place")'>jpoker_85_tourneyDetailsRegisteringWithPagerRegister</a></li> +<li><a href='#' onClick='jpoker_85_1_tourneyDetailsRegularRegisteringWithPagerRegister("#place")'>jpoker_85_1_tourneyDetailsRegularRegisteringWithPagerRegister</a></li> +<li><a href='#' onClick='jpoker_86_tourneyDetailsRegisteringWithPagerUnregister("#place")'>jpoker_86_tourneyDetailsRegisteringWithPagerUnregister</a></li> +<li><a href='#' onClick='jpoker_86_1_tourneyDetailsRegularRegisteringWithPagerUnregister("#place")'>jpoker_86_1_tourneyDetailsRegularRegisteringWithPagerUnregister</a></li> +<li><a href='#' onClick='jpoker_87_tourneyDetailsBreak("#place")'>jpoker_87_tourneyDetailsBreak</a></li> +<li><a href='#' onClick='jpoker_87_1_tourneyDetailsRegularBreak("#place")'>jpoker_87_1_tourneyDetailsRegularBreak</a></li> +<li><a href='#' onClick='jpoker_88_tourneyDetailsBreakWait("#place")'>jpoker_88_tourneyDetailsBreakWait</a></li> +<li><a href='#' onClick='jpoker_88_1_tourneyDetailsRegularBreakWait("#place")'>jpoker_88_1_tourneyDetailsRegularBreakWait</a></li> +<li><a href='#' onClick='jpoker_89_tourneyDetailsAnnounced("#place")'>jpoker_89_tourneyDetailsAnnounced</a></li> +<li><a href='#' onClick='jpoker_89_1_tourneyDetailsRegularAnnounced("#place")'>jpoker_89_1_tourneyDetailsRegularAnnounced</a></li> +<li><a href='#' onClick='jpoker_89_2_tourneyDetailsCanceled("#place")'>jpoker_89_2_tourneyDetailsCanceled</a></li> +<li><a href='#' onClick='jpoker_89_3_tourneyDetailsRegularCanceled("#place")'>jpoker_89_3_tourneyDetailsRegularCanceled</a></li> +<li><a href='#' onClick='jpoker_90_tourneyPlaceholder("#place")'>jpoker_90_tourneyPlaceholder</a></li> +<li><a href='#' onClick='jpoker_100_places("#place")'>jpoker_100_places</a></li> +<li><a href='#' onClick='jpoker_101_playerLookup("#place")'>jpoker_101_playerLookup</a></li> +<li><a href='#' onClick='jpoker_102_placesWithLink("#place")'>jpoker_102_placesWithLink</a></li> +<li><a href='#' onClick='jpoker_103_playerLookupWithLink("#place")'>jpoker_103_playerLookupWithLink</a></li> +<li><a href='#' onClick='jpoker_110_cashier("#place")'>jpoker_110_cashier</a></li> +<li><a href='#' onClick='jpoker_111_tablepicker("#place")'>jpoker_111_tablepicker</a></li> +<li><a href='#' onClick='jpoker_120_level_junior("#place")'>jpoker_120_level_junior</a></li> +<li><a href='#' onClick='jpoker_121_level_pro("#place")'>jpoker_121_level_pro</a></li> +<li><a href='#' onClick='jpoker_122_level_expert("#place")'>jpoker_122_level_expert</a></li> +<li><a href='#' onClick='jpoker_123_level_master("#place")'>jpoker_123_level_master</a></li> +<li><a href='#' onClick='jpoker_130_chat_scroll("#place")'>jpoker_130_chat_scroll</a></li> +<li><a href='#' onClick='jpoker_131_chat_no_scroll("#place")'>jpoker_131_chat_no_scroll</a></li> +<li><a href='#' onClick='jpoker_141_click_here_to_get_a_seat("#place")'>jpoker_141_click_here_to_get_a_seat</a></li> +<li><a href='#' onClick='jpoker_142_click_here_to_get_a_seat_in_progress("#place")'>jpoker_142_click_here_to_get_a_seat_in_progress</a></li> + + </ul> + + <div id='text' style="display: none"> +<p>Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Ut fermentum. Sed ultrices molestie lorem. Etiam pharetra. Duis ultricies. Ut risus ante, facilisis sed, luctus eu, imperdiet ac, enim. Quisque tellus nulla, nonummy vel, mattis id, imperdiet in, velit. Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Quisque mi turpis, semper id, commodo porttitor, pharetra at, urna. Nam velit enim, ultrices ut, condimentum molestie, porttitor vel, lorem. Proin rutrum blandit erat. Pellentesque placerat neque vel nulla. Sed enim justo, molestie vitae, euismod id, accumsan vitae, enim. Aenean et augue at massa ornare elementum. Donec scelerisque, pede vel vehicula varius, turpis lectus elementum nisi, eu ultricies nibh sapien ac sem.</p> + +<p>Proin euismod rutrum lectus. Integer vulputate posuere dui. Donec posuere posuere ligula. Suspendisse placerat. Sed elementum purus at neque. Vestibulum elementum mi et dui. Nullam adipiscing tempus lorem. Integer felis. Pellentesque eu lorem quis ipsum pellentesque bibendum. Ut eget nisl. Nulla nibh. Nunc eget orci ac magna porttitor luctus. Morbi eleifend vestibulum nisl. Nunc et risus. Sed laoreet. Quisque nec est. </p> + +<code>hello how are you</code> + +<blockquote> +Proin euismod rutrum lectus. Integer vulputate posuere dui. Donec posuere posuere ligula. Suspendisse placerat. Sed elementum purus at neque. Vestibulum elementum mi et dui. Nullam adipiscing tempus lorem. Integer felis. Pellentesque eu lorem quis ipsum pellentesque bibendum. Ut eget nisl. Nulla nibh. Nunc eget orci ac magna porttitor luctus. Morbi eleifend vestibulum nisl. Nunc et risus. Sed laoreet. Quisque nec est. +</blockquote> + +<h1>heading 1</h1> +<h2>heading 2</h2> +<h3>heading 3</h3> +<h4>heading 4</h4> + +<table><th><td>efrefr</td><td>eferfrfvrvrver</td><td>rgergre</td></th> +<tr><td>rerr</td><td>rwfrgr</td><td>rgregre</td></tr> +<tr><td>regergre</td><td>umumuy</td><td>thtt</td></tr> +</table> + +<hr/> + +<a href="http://www.google.com">Google</a> + +<ul> +<li>lists</li> +<li>primary pale</li> +</ul> + </div> + +</body> +</html> + +
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/jpoker/themes/pokersource.eu/skin/cashier.html Mon Apr 19 05:40:37 2010 +0200 @@ -0,0 +1,62 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> +<!-- +// +// Copyright (C) 2008 - 2010 Loic Dachary <loic@dachary.org> +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public License +// along with this program. If not, see <http://www.gnu.org/licenses/>. +// +--> +<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en" dir="ltr" id="html"> +<head> + <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> + <title>jpoker skin showcase</title> + <script language="JavaScript" type="text/javascript" src="../../../jquery/jquery-1.2.6.js"></script> + <script language="JavaScript" type="text/javascript" src="../../../jquery/ui/ui.core.js"></script> + <script language="JavaScript" type="text/javascript" src="../../../jquery/ui/ui.draggable.js"></script> + <script language="JavaScript" type="text/javascript" src="../../../jquery/ui/ui.resizable.js"></script> + <script language="JavaScript" type="text/javascript" src="../../../jquery/ui/ui.dialog.js"></script> + <script language="JavaScript" type="text/javascript" src="../../../jquery/ui/ui.slider.js"></script> + <script language="JavaScript" type="text/javascript" src="../../../js/jquery.ajaxQueue.js"></script> + <script language="JavaScript" type="text/javascript" src="../../../js/jquery.cookie.js"></script> + <script language="JavaScript" type="text/javascript" src="../../../js/jquery.gettext.js"></script> + <script language="JavaScript" type="text/javascript" src="../../../js/jquery.strftime.js"></script> + <script language="JavaScript" type="text/javascript" src="../../../js/jquery.form.js"></script> + <script language="JavaScript" type="text/javascript" src="../../../js/jquery.tablesorter.js"></script> + <script language="JavaScript" type="text/javascript" src="../../../js/jquery.tablesorter.pager.js"></script> + <script language="JavaScript" type="text/javascript" src="../../../js/printstacktrace.js"></script> + <script language="JavaScript" type="text/javascript" src="../../../js/json2.js"></script> + <script language="JavaScript" type="text/javascript" src="../../../js/jquery.jpoker.js"></script> + <script language="JavaScript" type="text/javascript" src="../../../js/mockup.js"></script> + <script language="JavaScript" type="text/javascript" src="../../../js/skin-jpoker.js"></script> + <script type="text/javascript"> + $.jpoker.verbose = 1; + $.jpoker.copyrightTimeout = 20000000; + $(document).ready(function() { + jpoker_skin_permalink(); + }); + </script> + <link href="../css/jpoker.css" rel="stylesheet" type="text/css" /> +</head> + +<body> + <div class="skinclean" id="explain"></div> + <div class="skinclean" id="place"></div> + + <ul id="links"> + <li><a href='#'>jpoker_110_cashier</a></li> + </ul> +</body> +</html> + +
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/jpoker/themes/pokersource.eu/skin/dialog.html Mon Apr 19 05:40:37 2010 +0200 @@ -0,0 +1,72 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> +<!-- +// +// Copyright (C) 2008 - 2010 Loic Dachary <loic@dachary.org> +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public License +// along with this program. If not, see <http://www.gnu.org/licenses/>. +// +--> +<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en" dir="ltr" id="html"> +<head> + <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> + <title>jpoker skin showcase</title> + <script language="JavaScript" type="text/javascript" src="../../../jquery/jquery-1.2.6.js"></script> + <script language="JavaScript" type="text/javascript" src="../../../jquery/ui/ui.core.js"></script> + <script language="JavaScript" type="text/javascript" src="../../../jquery/ui/ui.draggable.js"></script> + <script language="JavaScript" type="text/javascript" src="../../../jquery/ui/ui.resizable.js"></script> + <script language="JavaScript" type="text/javascript" src="../../../jquery/ui/ui.dialog.js"></script> + <script language="JavaScript" type="text/javascript" src="../../../jquery/ui/ui.slider.js"></script> + <script language="JavaScript" type="text/javascript" src="../../../js/jquery.ajaxQueue.js"></script> + <script language="JavaScript" type="text/javascript" src="../../../js/jquery.cookie.js"></script> + <script language="JavaScript" type="text/javascript" src="../../../js/jquery.gettext.js"></script> + <script language="JavaScript" type="text/javascript" src="../../../js/jquery.strftime.js"></script> + <script language="JavaScript" type="text/javascript" src="../../../js/jquery.form.js"></script> + <script language="JavaScript" type="text/javascript" src="../../../js/jquery.tablesorter.js"></script> + <script language="JavaScript" type="text/javascript" src="../../../js/jquery.tablesorter.pager.js"></script> + <script language="JavaScript" type="text/javascript" src="../../../js/printstacktrace.js"></script> + <script language="JavaScript" type="text/javascript" src="../../../js/json2.js"></script> + <script language="JavaScript" type="text/javascript" src="../../../js/jquery.jpoker.js"></script> + <script language="JavaScript" type="text/javascript" src="../../../js/mockup.js"></script> + <script language="JavaScript" type="text/javascript" src="../../../js/skin-jpoker.js"></script> + <script type="text/javascript"> + $.jpoker.verbose = 1; + $.jpoker.copyrightTimeout = 20000000; + $(document).ready(function() { + $("#links li a").each(function() { + $(this).attr('href', '#'+$(this).text()); + }).click(function() { + eval($(this).text()+'("#place")'); + }); + if (window.location.hash) { + setTimeout(function() {eval(window.location.hash.substr(1)+'("#place")');}, 1000); + } else { + setTimeout(function() {$("#links li a").eq(0).click();}, 1000); + } + }); + </script> + <link href="../css/jpoker.css" rel="stylesheet" type="text/css" /> +</head> + +<body> + <div class="skinclean" id="explain"></div> + <div class="skinclean" id="place"></div> + + <ul id="links"> + <li><a href='#'>jpoker_01_copyright</a></li> + <li><a href='#'>jpoker_09_dialog</a></li> + </ul> +</body> +</html> + +
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/jpoker/themes/pokersource.eu/skin/list.html Mon Apr 19 05:40:37 2010 +0200 @@ -0,0 +1,73 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> +<!-- +// +// Copyright (C) 2008 - 2010 Loic Dachary <loic@dachary.org> +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public License +// along with this program. If not, see <http://www.gnu.org/licenses/>. +// +--> +<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en" dir="ltr" id="html"> +<head> + <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> + <title>jpoker skin showcase</title> + <script language="JavaScript" type="text/javascript" src="../../../jquery/jquery-1.2.6.js"></script> + <script language="JavaScript" type="text/javascript" src="../../../jquery/ui/ui.core.js"></script> + <script language="JavaScript" type="text/javascript" src="../../../jquery/ui/ui.draggable.js"></script> + <script language="JavaScript" type="text/javascript" src="../../../jquery/ui/ui.resizable.js"></script> + <script language="JavaScript" type="text/javascript" src="../../../jquery/ui/ui.dialog.js"></script> + <script language="JavaScript" type="text/javascript" src="../../../jquery/ui/ui.slider.js"></script> + <script language="JavaScript" type="text/javascript" src="../../../js/jquery.ajaxQueue.js"></script> + <script language="JavaScript" type="text/javascript" src="../../../js/jquery.cookie.js"></script> + <script language="JavaScript" type="text/javascript" src="../../../js/jquery.gettext.js"></script> + <script language="JavaScript" type="text/javascript" src="../../../js/jquery.strftime.js"></script> + <script language="JavaScript" type="text/javascript" src="../../../js/jquery.form.js"></script> + <script language="JavaScript" type="text/javascript" src="../../../js/jquery.tablesorter.js"></script> + <script language="JavaScript" type="text/javascript" src="../../../js/jquery.tablesorter.pager.js"></script> + <script language="JavaScript" type="text/javascript" src="../../../js/printstacktrace.js"></script> + <script language="JavaScript" type="text/javascript" src="../../../js/json2.js"></script> + <script language="JavaScript" type="text/javascript" src="../../../js/jquery.jpoker.js"></script> + <script language="JavaScript" type="text/javascript" src="../../../js/mockup.js"></script> + <script language="JavaScript" type="text/javascript" src="../../../js/skin-jpoker.js"></script> + <script type="text/javascript"> + $.jpoker.verbose = 1; + $.jpoker.copyrightTimeout = 20000000; + $(document).ready(function() { + jpoker_skin_permalink(); + }); + </script> + <link href="../css/jpoker.css" rel="stylesheet" type="text/css" /> +</head> + +<body> + <div class="skinclean" id="explain"></div> + <div class="skinclean" id="place"></div> + + <ul id="links"> + <li><a href='#'>jpoker_40_tableList</a></li> + <li><a href='#'>jpoker_41_regularTourneyList</a></li> + <li><a href='#'>jpoker_42_sitngoTourneyList</a></li> + <li><a href='#'>jpoker_43_tableListWithLink</a></li> + <li><a href='#'>jpoker_44_regularTourneyListWithLink</a></li> + <li><a href='#'>jpoker_45_sitngoTourneyListWithLink</a></li> + <li><a href='#'>jpoker_46_tableListWithPager</a></li> + <li><a href='#'>jpoker_47_regularTourneyListWithPager</a></li> + <li><a href='#'>jpoker_48_sitngoTourneyListWithPager</a></li> + <li><a href='#'>jpoker_49_tableListWithPagerWithLinks</a></li> + <li><a href='#'>jpoker_49_1_regularTourneyListWithPagerWithLinks</a></li> + <li><a href='#'>jpoker_49_2_sitngoTourneyListWithPagerWithLinks</a></li> + </ul> +</body> +</html> + +
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/jpoker/themes/pokersource.eu/skin/login.html Mon Apr 19 05:40:37 2010 +0200 @@ -0,0 +1,64 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> +<!-- +// +// Copyright (C) 2008 - 2010 Loic Dachary <loic@dachary.org> +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public License +// along with this program. If not, see <http://www.gnu.org/licenses/>. +// +--> +<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en" dir="ltr" id="html"> +<head> + <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> + <title>jpoker skin showcase</title> + <script language="JavaScript" type="text/javascript" src="../../../jquery/jquery-1.2.6.js"></script> + <script language="JavaScript" type="text/javascript" src="../../../jquery/ui/ui.core.js"></script> + <script language="JavaScript" type="text/javascript" src="../../../jquery/ui/ui.draggable.js"></script> + <script language="JavaScript" type="text/javascript" src="../../../jquery/ui/ui.resizable.js"></script> + <script language="JavaScript" type="text/javascript" src="../../../jquery/ui/ui.dialog.js"></script> + <script language="JavaScript" type="text/javascript" src="../../../jquery/ui/ui.slider.js"></script> + <script language="JavaScript" type="text/javascript" src="../../../js/jquery.ajaxQueue.js"></script> + <script language="JavaScript" type="text/javascript" src="../../../js/jquery.cookie.js"></script> + <script language="JavaScript" type="text/javascript" src="../../../js/jquery.gettext.js"></script> + <script language="JavaScript" type="text/javascript" src="../../../js/jquery.strftime.js"></script> + <script language="JavaScript" type="text/javascript" src="../../../js/jquery.form.js"></script> + <script language="JavaScript" type="text/javascript" src="../../../js/jquery.tablesorter.js"></script> + <script language="JavaScript" type="text/javascript" src="../../../js/jquery.tablesorter.pager.js"></script> + <script language="JavaScript" type="text/javascript" src="../../../js/printstacktrace.js"></script> + <script language="JavaScript" type="text/javascript" src="../../../js/json2.js"></script> + <script language="JavaScript" type="text/javascript" src="../../../js/jquery.jpoker.js"></script> + <script language="JavaScript" type="text/javascript" src="../../../js/mockup.js"></script> + <script language="JavaScript" type="text/javascript" src="../../../js/skin-jpoker.js"></script> + <script type="text/javascript"> + $.jpoker.verbose = 1; + $.jpoker.copyrightTimeout = 20000000; + $(document).ready(function() { + jpoker_skin_permalink(); + }); + </script> + <link href="../css/jpoker.css" rel="stylesheet" type="text/css" /> +</head> + +<body> + <div class="skinclean" id="explain"></div> + <div class="skinclean" id="place"></div> + + <ul id="links"> + <li><a href='#'>jpoker_20_login</a></li> + <li><a href='#'>jpoker_21_loginProgress</a></li> + <li><a href='#'>jpoker_22_logout</a></li> + </ul> +</body> +</html> + +
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/jpoker/themes/pokersource.eu/skin/picker.html Mon Apr 19 05:40:37 2010 +0200 @@ -0,0 +1,62 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> +<!-- +// +// Copyright (C) 2008 - 2010 Loic Dachary <loic@dachary.org> +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public License +// along with this program. If not, see <http://www.gnu.org/licenses/>. +// +--> +<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en" dir="ltr" id="html"> +<head> + <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> + <title>jpoker skin showcase</title> + <script language="JavaScript" type="text/javascript" src="../../../jquery/jquery-1.2.6.js"></script> + <script language="JavaScript" type="text/javascript" src="../../../jquery/ui/ui.core.js"></script> + <script language="JavaScript" type="text/javascript" src="../../../jquery/ui/ui.draggable.js"></script> + <script language="JavaScript" type="text/javascript" src="../../../jquery/ui/ui.resizable.js"></script> + <script language="JavaScript" type="text/javascript" src="../../../jquery/ui/ui.dialog.js"></script> + <script language="JavaScript" type="text/javascript" src="../../../jquery/ui/ui.slider.js"></script> + <script language="JavaScript" type="text/javascript" src="../../../js/jquery.ajaxQueue.js"></script> + <script language="JavaScript" type="text/javascript" src="../../../js/jquery.cookie.js"></script> + <script language="JavaScript" type="text/javascript" src="../../../js/jquery.gettext.js"></script> + <script language="JavaScript" type="text/javascript" src="../../../js/jquery.strftime.js"></script> + <script language="JavaScript" type="text/javascript" src="../../../js/jquery.form.js"></script> + <script language="JavaScript" type="text/javascript" src="../../../js/jquery.tablesorter.js"></script> + <script language="JavaScript" type="text/javascript" src="../../../js/jquery.tablesorter.pager.js"></script> + <script language="JavaScript" type="text/javascript" src="../../../js/printstacktrace.js"></script> + <script language="JavaScript" type="text/javascript" src="../../../js/json2.js"></script> + <script language="JavaScript" type="text/javascript" src="../../../js/jquery.jpoker.js"></script> + <script language="JavaScript" type="text/javascript" src="../../../js/mockup.js"></script> + <script language="JavaScript" type="text/javascript" src="../../../js/skin-jpoker.js"></script> + <script type="text/javascript"> + $.jpoker.verbose = 1; + $.jpoker.copyrightTimeout = 20000000; + $(document).ready(function() { + jpoker_skin_permalink(); + }); + </script> + <link href="../css/jpoker.css" rel="stylesheet" type="text/css" /> +</head> + +<body> + <div class="skinclean" id="explain"></div> + <div class="skinclean" id="place"></div> + + <ul id="links"> + <li><a href='#'>jpoker_111_tablepicker</a></li> + </ul> +</body> +</html> + +
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/jpoker/themes/pokersource.eu/skin/places.html Mon Apr 19 05:40:37 2010 +0200 @@ -0,0 +1,65 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> +<!-- +// +// Copyright (C) 2008 - 2010 Loic Dachary <loic@dachary.org> +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public License +// along with this program. If not, see <http://www.gnu.org/licenses/>. +// +--> +<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en" dir="ltr" id="html"> +<head> + <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> + <title>jpoker skin showcase</title> + <script language="JavaScript" type="text/javascript" src="../../../jquery/jquery-1.2.6.js"></script> + <script language="JavaScript" type="text/javascript" src="../../../jquery/ui/ui.core.js"></script> + <script language="JavaScript" type="text/javascript" src="../../../jquery/ui/ui.draggable.js"></script> + <script language="JavaScript" type="text/javascript" src="../../../jquery/ui/ui.resizable.js"></script> + <script language="JavaScript" type="text/javascript" src="../../../jquery/ui/ui.dialog.js"></script> + <script language="JavaScript" type="text/javascript" src="../../../jquery/ui/ui.slider.js"></script> + <script language="JavaScript" type="text/javascript" src="../../../js/jquery.ajaxQueue.js"></script> + <script language="JavaScript" type="text/javascript" src="../../../js/jquery.cookie.js"></script> + <script language="JavaScript" type="text/javascript" src="../../../js/jquery.gettext.js"></script> + <script language="JavaScript" type="text/javascript" src="../../../js/jquery.strftime.js"></script> + <script language="JavaScript" type="text/javascript" src="../../../js/jquery.form.js"></script> + <script language="JavaScript" type="text/javascript" src="../../../js/jquery.tablesorter.js"></script> + <script language="JavaScript" type="text/javascript" src="../../../js/jquery.tablesorter.pager.js"></script> + <script language="JavaScript" type="text/javascript" src="../../../js/printstacktrace.js"></script> + <script language="JavaScript" type="text/javascript" src="../../../js/json2.js"></script> + <script language="JavaScript" type="text/javascript" src="../../../js/jquery.jpoker.js"></script> + <script language="JavaScript" type="text/javascript" src="../../../js/mockup.js"></script> + <script language="JavaScript" type="text/javascript" src="../../../js/skin-jpoker.js"></script> + <script type="text/javascript"> + $.jpoker.verbose = 1; + $.jpoker.copyrightTimeout = 20000000; + $(document).ready(function() { + jpoker_skin_permalink(); + }); + </script> + <link href="../css/jpoker.css" rel="stylesheet" type="text/css" /> +</head> + +<body> + <div class="skinclean" id="explain"></div> + <div class="skinclean" id="place"></div> + + <ul id="links"> + <li><a href='#'>jpoker_100_places</a></li> + <li><a href='#'>jpoker_101_playerLookup</a></li> + <li><a href='#'>jpoker_102_placesWithLink</a></li> + <li><a href='#'>jpoker_103_playerLookupWithLink</a></li> + </ul> +</body> +</html> + +
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/jpoker/themes/pokersource.eu/skin/status.html Mon Apr 19 05:40:37 2010 +0200 @@ -0,0 +1,64 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> +<!-- +// +// Copyright (C) 2008 - 2010 Loic Dachary <loic@dachary.org> +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public License +// along with this program. If not, see <http://www.gnu.org/licenses/>. +// +--> +<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en" dir="ltr" id="html"> +<head> + <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> + <title>jpoker skin showcase</title> + <script language="JavaScript" type="text/javascript" src="../../../jquery/jquery-1.2.6.js"></script> + <script language="JavaScript" type="text/javascript" src="../../../jquery/ui/ui.core.js"></script> + <script language="JavaScript" type="text/javascript" src="../../../jquery/ui/ui.draggable.js"></script> + <script language="JavaScript" type="text/javascript" src="../../../jquery/ui/ui.resizable.js"></script> + <script language="JavaScript" type="text/javascript" src="../../../jquery/ui/ui.dialog.js"></script> + <script language="JavaScript" type="text/javascript" src="../../../jquery/ui/ui.slider.js"></script> + <script language="JavaScript" type="text/javascript" src="../../../js/jquery.ajaxQueue.js"></script> + <script language="JavaScript" type="text/javascript" src="../../../js/jquery.cookie.js"></script> + <script language="JavaScript" type="text/javascript" src="../../../js/jquery.gettext.js"></script> + <script language="JavaScript" type="text/javascript" src="../../../js/jquery.strftime.js"></script> + <script language="JavaScript" type="text/javascript" src="../../../js/jquery.form.js"></script> + <script language="JavaScript" type="text/javascript" src="../../../js/jquery.tablesorter.js"></script> + <script language="JavaScript" type="text/javascript" src="../../../js/jquery.tablesorter.pager.js"></script> + <script language="JavaScript" type="text/javascript" src="../../../js/printstacktrace.js"></script> + <script language="JavaScript" type="text/javascript" src="../../../js/json2.js"></script> + <script language="JavaScript" type="text/javascript" src="../../../js/jquery.jpoker.js"></script> + <script language="JavaScript" type="text/javascript" src="../../../js/mockup.js"></script> + <script language="JavaScript" type="text/javascript" src="../../../js/skin-jpoker.js"></script> + <script type="text/javascript"> + $.jpoker.verbose = 1; + $.jpoker.copyrightTimeout = 20000000; + $(document).ready(function() { + jpoker_skin_permalink(); + }); + </script> + <link href="../css/jpoker.css" rel="stylesheet" type="text/css" /> +</head> + +<body> + <div class="skinclean" id="explain"></div> + <div class="skinclean" id="place"></div> + + <ul id="links"> + <li><a href='#'>jpoker_30_statusDisconnected</a></li> + <li><a href='#'>jpoker_31_connectedTables</a></li> + <li><a href='#'>jpoker_32_connectedTablesPlayers</a></li> + </ul> +</body> +</html> + +
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/jpoker/themes/pokersource.eu/skin/table.html Mon Apr 19 05:40:37 2010 +0200 @@ -0,0 +1,108 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> +<!-- +// +// Copyright (C) 2008 - 2010 Loic Dachary <loic@dachary.org> +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public License +// along with this program. If not, see <http://www.gnu.org/licenses/>. +// +--> +<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en" dir="ltr" id="html"> +<head> + <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> + <title>jpoker skin showcase</title> + <script language="JavaScript" type="text/javascript" src="../../../jquery/jquery-1.2.6.js"></script> + <script language="JavaScript" type="text/javascript" src="../../../jquery/ui/ui.core.js"></script> + <script language="JavaScript" type="text/javascript" src="../../../jquery/ui/ui.draggable.js"></script> + <script language="JavaScript" type="text/javascript" src="../../../jquery/ui/ui.resizable.js"></script> + <script language="JavaScript" type="text/javascript" src="../../../jquery/ui/ui.dialog.js"></script> + <script language="JavaScript" type="text/javascript" src="../../../jquery/ui/ui.slider.js"></script> + <script language="JavaScript" type="text/javascript" src="../../../js/jquery.ajaxQueue.js"></script> + <script language="JavaScript" type="text/javascript" src="../../../js/jquery.cookie.js"></script> + <script language="JavaScript" type="text/javascript" src="../../../js/jquery.gettext.js"></script> + <script language="JavaScript" type="text/javascript" src="../../../js/jquery.strftime.js"></script> + <script language="JavaScript" type="text/javascript" src="../../../js/jquery.form.js"></script> + <script language="JavaScript" type="text/javascript" src="../../../js/jquery.tablesorter.js"></script> + <script language="JavaScript" type="text/javascript" src="../../../js/jquery.tablesorter.pager.js"></script> + <script language="JavaScript" type="text/javascript" src="../../../js/printstacktrace.js"></script> + <script language="JavaScript" type="text/javascript" src="../../../js/json2.js"></script> + <script language="JavaScript" type="text/javascript" src="../../../js/jquery.jpoker.js"></script> + <script language="JavaScript" type="text/javascript" src="../../../js/mockup.js"></script> + <script language="JavaScript" type="text/javascript" src="../../../js/skin-jpoker.js"></script> + <script type="text/javascript"> + $.jpoker.verbose = 1; + $.jpoker.sound_directory = '../sounds/'; + $.jpoker.copyrightTimeout = 20000000; + $(document).ready(function() { + jpoker_skin_permalink(); + }); + </script> + <link href="../css/jpoker.css" rel="stylesheet" type="text/css" /> +</head> + +<body> + <div class="skinclean" id="explain"></div> + <div class="skinclean" id="place"></div> + + <ul id="links"> + <li><a href='#'>jpoker_02_join</a></li> + <li><a href='#'>jpoker_03_joinBuyIn</a></li> + <li><a href='#'>jpoker_03_playerBet</a></li> + <li><a href='#'>jpoker_03_1_playerDealt</a></li> + <li><a href='#'>jpoker_04_playerInPosition</a></li> + <li><a href='#'>jpoker_05_selfPlayer</a></li> + <li><a href='#'>jpoker_05_1_selfPlayerInGame_autoActionCheck</a></li> + <li><a href='#'>jpoker_05_1_selfPlayerInGame_autoActionCall</a></li> + <li><a href='#'>jpoker_06_selfInPosition</a></li> + <li><a href='#'>jpoker_06_1_selfInPositionCheck</a></li> + <li><a href='#'>jpoker_07_joining</a></li> + <li><a href='#'>jpoker_08_all</a></li> + <li><a href='#'>jpoker_08_1_all_cardback</a></li> + <li><a href='#'>jpoker_08_2_allin</a></li> + <li><a href='#'>jpoker_10_selfMuck</a></li> + <li><a href='#'>jpoker_11_avatarHover</a></li> + <li><a href='#'>jpoker_12_selfRebuy</a></li> + <li><a href='#'>jpoker_50_sitOut</a></li> + <li><a href='#'>jpoker_51_sit</a></li> + <li><a href='#'>jpoker_52_inPosition</a></li> + <li><a href='#'>jpoker_53_timeout</a></li> + <li><a href='#'>jpoker_54_sidepot</a></li> + <li><a href='#'>jpoker_54_1_sidepot</a></li> + <li><a href='#'>jpoker_54_2_sidepot</a></li> + <li><a href='#'>jpoker_54_3_sidepot</a></li> + <li><a href='#'>jpoker_54_4_sidepot</a></li> + <li><a href='#'>jpoker_54_5_sidepot</a></li> + <li><a href='#'>jpoker_54_6_sidepot</a></li> + <li><a href='#'>jpoker_54_7_sidepot</a></li> + <li><a href='#'>jpoker_54_8_sidepot</a></li> + <li><a href='#'>jpoker_54_9_sidepot</a></li> + <li><a href='#'>jpoker_55_allWithSidePot</a></li> + <li><a href='#'>jpoker_56_tourneyBreak</a></li> + <li><a href='#'>jpoker_57_stats</a></li> + <li><a href='#'>jpoker_58_tourneyRank</a></li> + <li><a href='#'>jpoker_90_tourneyPlaceholder</a></li> + <li><a href='#'>jpoker_120_level_junior</a></li> + <li><a href='#'>jpoker_121_level_pro</a></li> + <li><a href='#'>jpoker_122_level_expert</a></li> + <li><a href='#'>jpoker_123_level_master</a></li> + <li><a href='#'>jpoker_130_chat_scroll</a></li> + <li><a href='#'>jpoker_131_chat_no_scroll</a></li> + <li><a href='#'>jpoker_141_click_here_to_get_a_seat</a></li> + <li><a href='#'>jpoker_142_click_here_to_get_a_seat_in_progress</a></li> + <li><a href='#'>jpoker_143_board</a></li> + <li><a href='#'>jpoker_144_pot</a></li> + </ul> +</body> +</html> + +
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/jpoker/themes/pokersource.eu/skin/text.html Mon Apr 19 05:40:37 2010 +0200 @@ -0,0 +1,94 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> +<!-- +// +// Copyright (C) 2008 - 2010 Loic Dachary <loic@dachary.org> +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public License +// along with this program. If not, see <http://www.gnu.org/licenses/>. +// +--> +<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en" dir="ltr" id="html"> +<head> + <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> + <title>jpoker skin showcase</title> + <script language="JavaScript" type="text/javascript" src="../../../jquery/jquery-1.2.6.js"></script> + <script language="JavaScript" type="text/javascript" src="../../../jquery/ui/ui.core.js"></script> + <script language="JavaScript" type="text/javascript" src="../../../jquery/ui/ui.draggable.js"></script> + <script language="JavaScript" type="text/javascript" src="../../../jquery/ui/ui.resizable.js"></script> + <script language="JavaScript" type="text/javascript" src="../../../jquery/ui/ui.dialog.js"></script> + <script language="JavaScript" type="text/javascript" src="../../../jquery/ui/ui.slider.js"></script> + <script language="JavaScript" type="text/javascript" src="../../../js/jquery.ajaxQueue.js"></script> + <script language="JavaScript" type="text/javascript" src="../../../js/jquery.cookie.js"></script> + <script language="JavaScript" type="text/javascript" src="../../../js/jquery.gettext.js"></script> + <script language="JavaScript" type="text/javascript" src="../../../js/jquery.strftime.js"></script> + <script language="JavaScript" type="text/javascript" src="../../../js/jquery.form.js"></script> + <script language="JavaScript" type="text/javascript" src="../../../js/jquery.tablesorter.js"></script> + <script language="JavaScript" type="text/javascript" src="../../../js/jquery.tablesorter.pager.js"></script> + <script language="JavaScript" type="text/javascript" src="../../../js/printstacktrace.js"></script> + <script language="JavaScript" type="text/javascript" src="../../../js/json2.js"></script> + <script language="JavaScript" type="text/javascript" src="../../../js/jquery.jpoker.js"></script> + <script language="JavaScript" type="text/javascript" src="../../../js/mockup.js"></script> + <script language="JavaScript" type="text/javascript" src="../../../js/skin-jpoker.js"></script> + <script type="text/javascript"> + $.jpoker.verbose = 1; + $.jpoker.copyrightTimeout = 20000000; + $(document).ready(function() { + jpoker_skin_permalink(); + }); + </script> + <link href="../css/jpoker.css" rel="stylesheet" type="text/css" /> +</head> + +<body> + <div class="skinclean" id="explain"></div> + <div class="skinclean" id="place"></div> + + <ul id="links"> + <li><a href='#'>jpoker_60_text</a></li> + </ul> + + <div id='text' style="display: none"> + <p>Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Ut fermentum. Sed ultrices molestie lorem. Etiam pharetra. Duis ultricies. Ut risus ante, facilisis sed, luctus eu, imperdiet ac, enim. Quisque tellus nulla, nonummy vel, mattis id, imperdiet in, velit. Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Quisque mi turpis, semper id, commodo porttitor, pharetra at, urna. Nam velit enim, ultrices ut, condimentum molestie, porttitor vel, lorem. Proin rutrum blandit erat. Pellentesque placerat neque vel nulla. Sed enim justo, molestie vitae, euismod id, accumsan vitae, enim. Aenean et augue at massa ornare elementum. Donec scelerisque, pede vel vehicula varius, turpis lectus elementum nisi, eu ultricies nibh sapien ac sem.</p> + + <p>Proin euismod rutrum lectus. Integer vulputate posuere dui. Donec posuere posuere ligula. Suspendisse placerat. Sed elementum purus at neque. Vestibulum elementum mi et dui. Nullam adipiscing tempus lorem. Integer felis. Pellentesque eu lorem quis ipsum pellentesque bibendum. Ut eget nisl. Nulla nibh. Nunc eget orci ac magna porttitor luctus. Morbi eleifend vestibulum nisl. Nunc et risus. Sed laoreet. Quisque nec est. </p> + + <code>hello how are you</code> + + <blockquote> + Proin euismod rutrum lectus. Integer vulputate posuere dui. Donec posuere posuere ligula. Suspendisse placerat. Sed elementum purus at neque. Vestibulum elementum mi et dui. Nullam adipiscing tempus lorem. Integer felis. Pellentesque eu lorem quis ipsum pellentesque bibendum. Ut eget nisl. Nulla nibh. Nunc eget orci ac magna porttitor luctus. Morbi eleifend vestibulum nisl. Nunc et risus. Sed laoreet. Quisque nec est. + </blockquote> + + <h1>heading 1</h1> + <h2>heading 2</h2> + <h3>heading 3</h3> + <h4>heading 4</h4> + + <table><th><td>efrefr</td><td>eferfrfvrvrver</td><td>rgergre</td></th> + <tr><td>rerr</td><td>rwfrgr</td><td>rgregre</td></tr> + <tr><td>regergre</td><td>umumuy</td><td>thtt</td></tr> + </table> + + <hr/> + + <a href="http://www.google.com">Google</a> + + <ul> + <li>lists</li> + <li>primary pale</li> + </ul> + </div> + +</body> +</html> + +
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/jpoker/themes/pokersource.eu/skin/tourney.html Mon Apr 19 05:40:37 2010 +0200 @@ -0,0 +1,86 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> +<!-- +// +// Copyright (C) 2008 - 2010 Loic Dachary <loic@dachary.org> +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public License +// along with this program. If not, see <http://www.gnu.org/licenses/>. +// +--> +<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en" dir="ltr" id="html"> +<head> + <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> + <title>jpoker skin showcase</title> + <script language="JavaScript" type="text/javascript" src="../../../jquery/jquery-1.2.6.js"></script> + <script language="JavaScript" type="text/javascript" src="../../../jquery/ui/ui.core.js"></script> + <script language="JavaScript" type="text/javascript" src="../../../jquery/ui/ui.draggable.js"></script> + <script language="JavaScript" type="text/javascript" src="../../../jquery/ui/ui.resizable.js"></script> + <script language="JavaScript" type="text/javascript" src="../../../jquery/ui/ui.dialog.js"></script> + <script language="JavaScript" type="text/javascript" src="../../../jquery/ui/ui.slider.js"></script> + <script language="JavaScript" type="text/javascript" src="../../../js/jquery.ajaxQueue.js"></script> + <script language="JavaScript" type="text/javascript" src="../../../js/jquery.cookie.js"></script> + <script language="JavaScript" type="text/javascript" src="../../../js/jquery.gettext.js"></script> + <script language="JavaScript" type="text/javascript" src="../../../js/jquery.strftime.js"></script> + <script language="JavaScript" type="text/javascript" src="../../../js/jquery.form.js"></script> + <script language="JavaScript" type="text/javascript" src="../../../js/jquery.tablesorter.js"></script> + <script language="JavaScript" type="text/javascript" src="../../../js/jquery.tablesorter.pager.js"></script> + <script language="JavaScript" type="text/javascript" src="../../../js/printstacktrace.js"></script> + <script language="JavaScript" type="text/javascript" src="../../../js/json2.js"></script> + <script language="JavaScript" type="text/javascript" src="../../../js/jquery.jpoker.js"></script> + <script language="JavaScript" type="text/javascript" src="../../../js/mockup.js"></script> + <script language="JavaScript" type="text/javascript" src="../../../js/skin-jpoker.js"></script> + <script type="text/javascript"> + $.jpoker.verbose = 1; + $.jpoker.copyrightTimeout = 20000000; + $(document).ready(function() { + jpoker_skin_permalink(); + }); + </script> + <link href="../css/jpoker.css" rel="stylesheet" type="text/css" /> +</head> + +<body> + <div class="skinclean" id="explain"></div> + <div class="skinclean" id="place"></div> + + <ul id="links"> + <li><a href='#'>jpoker_80_tourneyDetailsRegistering</a></li> + <li><a href='#'>jpoker_80_1_tourneyDetailsRegularRegistering</a></li> + <li><a href='#'>jpoker_81_tourneyDetailsRunning</a></li> + <li><a href='#'>jpoker_81_1_tourneyDetailsRegularRunning</a></li> + <li><a href='#'>jpoker_81_2_tourneyDetailsRunningWithPager</a></li> + <li><a href='#'>jpoker_81_3_tourneyDetailsRegularRunningWithPager</a></li> + <li><a href='#'>jpoker_82_tourneyDetailsCompleted</a></li> + <li><a href='#'>jpoker_82_1_tourneyDetailsRegularCompleted</a></li> + <li><a href='#'>jpoker_82_2_tourneyDetailsRegularCompletedWithPager</a></li> + <li><a href='#'>jpoker_83_tourneyDetailsRegisteringWithPager</a></li> + <li><a href='#'>jpoker_83_1_tourneyDetailsRegularRegisteringWithPager</a></li> + <li><a href='#'>jpoker_84_tourneyDetailsRunningWithLink</a></li> + <li><a href='#'>jpoker_84_1_tourneyDetailsRegularRunningWithLink</a></li> + <li><a href='#'>jpoker_85_tourneyDetailsRegisteringWithPagerRegister</a></li> + <li><a href='#'>jpoker_85_1_tourneyDetailsRegularRegisteringWithPagerRegister</a></li> + <li><a href='#'>jpoker_86_tourneyDetailsRegisteringWithPagerUnregister</a></li> + <li><a href='#'>jpoker_86_1_tourneyDetailsRegularRegisteringWithPagerUnregister</a></li> + <li><a href='#'>jpoker_87_tourneyDetailsBreak</a></li> + <li><a href='#'>jpoker_87_1_tourneyDetailsRegularBreak</a></li> + <li><a href='#'>jpoker_88_tourneyDetailsBreakWait</a></li> + <li><a href='#'>jpoker_88_1_tourneyDetailsRegularBreakWait</a></li> + <li><a href='#'>jpoker_89_tourneyDetailsAnnounced</a></li> + <li><a href='#'>jpoker_89_1_tourneyDetailsRegularAnnounced</a></li> + <li><a href='#'>jpoker_89_2_tourneyDetailsCanceled</a></li> + <li><a href='#'>jpoker_89_3_tourneyDetailsRegularCanceled</a></li> + </ul> +</body> +</html> + +
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/jpoker/themes/pokersource.eu/skin/userinfo.html Mon Apr 19 05:40:37 2010 +0200 @@ -0,0 +1,62 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> +<!-- +// +// Copyright (C) 2008 - 2010 Loic Dachary <loic@dachary.org> +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public License +// along with this program. If not, see <http://www.gnu.org/licenses/>. +// +--> +<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en" dir="ltr" id="html"> +<head> + <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> + <title>jpoker skin showcase</title> + <script language="JavaScript" type="text/javascript" src="../../../jquery/jquery-1.2.6.js"></script> + <script language="JavaScript" type="text/javascript" src="../../../jquery/ui/ui.core.js"></script> + <script language="JavaScript" type="text/javascript" src="../../../jquery/ui/ui.draggable.js"></script> + <script language="JavaScript" type="text/javascript" src="../../../jquery/ui/ui.resizable.js"></script> + <script language="JavaScript" type="text/javascript" src="../../../jquery/ui/ui.dialog.js"></script> + <script language="JavaScript" type="text/javascript" src="../../../jquery/ui/ui.slider.js"></script> + <script language="JavaScript" type="text/javascript" src="../../../js/jquery.ajaxQueue.js"></script> + <script language="JavaScript" type="text/javascript" src="../../../js/jquery.cookie.js"></script> + <script language="JavaScript" type="text/javascript" src="../../../js/jquery.gettext.js"></script> + <script language="JavaScript" type="text/javascript" src="../../../js/jquery.strftime.js"></script> + <script language="JavaScript" type="text/javascript" src="../../../js/jquery.form.js"></script> + <script language="JavaScript" type="text/javascript" src="../../../js/jquery.tablesorter.js"></script> + <script language="JavaScript" type="text/javascript" src="../../../js/jquery.tablesorter.pager.js"></script> + <script language="JavaScript" type="text/javascript" src="../../../js/printstacktrace.js"></script> + <script language="JavaScript" type="text/javascript" src="../../../js/json2.js"></script> + <script language="JavaScript" type="text/javascript" src="../../../js/jquery.jpoker.js"></script> + <script language="JavaScript" type="text/javascript" src="../../../js/mockup.js"></script> + <script language="JavaScript" type="text/javascript" src="../../../js/skin-jpoker.js"></script> + <script type="text/javascript"> + $.jpoker.verbose = 1; + $.jpoker.copyrightTimeout = 20000000; + $(document).ready(function() { + jpoker_skin_permalink(); + }); + </script> + <link href="../css/jpoker.css" rel="stylesheet" type="text/css" /> +</head> + +<body> + <div class="skinclean" id="explain"></div> + <div class="skinclean" id="place"></div> + + <ul id="links"> + <li><a href='#'>jpoker_70_userInfo</a></li> + </ul> +</body> +</html> + +
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/jpoker/themes/pokersource.eu/sounds-sources/Makefile Mon Apr 19 05:40:37 2010 +0200 @@ -0,0 +1,57 @@ +# +# Copyright (C) 2008 - 2010 Loic Dachary <loic@dachary.org> +# +# This program is free software: you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program. If not, see <http://www.gnu.org/licenses/>. +# +SOUNDS = \ + player_arrive.ogg \ + player_hand.ogg \ + player_bet.ogg \ + player_call.ogg \ + player_fold.ogg \ + player_check.ogg \ + player_fold.ogg \ + player_timeout_notice.ogg \ + player_timeout_warning.ogg \ + player_win.ogg \ + deal_card.ogg + + +SWFS = $(SOUNDS:.ogg=.swf) +WAVS = $(SOUNDS:.ogg=.wav) + +all build install clobber clean maintainer-clean check:: + +build:: soundswiff $(SWFS) $(WAVS) + mkdir -p ../sounds + cp *.swf ../sounds + +maintainer-clean:: + rm -f $(SWFS) $(WAVS) soundswiff + +clobber:: + rm -fr ../sounds + +soundswiff: soundswiff.c + gcc -Wall -o $@ $< -lming + +license: + for file in $(SOUNDS) ; do vorbiscomment $$file -w -c copyright.txt ; done + +%.wav : %.ogg + oggdec $< + +%.swf : %.wav + ./soundswiff $< $@ +
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/jpoker/themes/pokersource.eu/sounds-sources/copyright.txt Mon Apr 19 05:40:37 2010 +0200 @@ -0,0 +1,2 @@ +LICENSE=http://jspoker.pokersource.info/ GPL v3+ +AUTHOR=Loic Dachary <loic@dachary.org>
Binary file jpoker/themes/pokersource.eu/sounds-sources/deal_card.ogg has changed
Binary file jpoker/themes/pokersource.eu/sounds-sources/player_arrive.ogg has changed
Binary file jpoker/themes/pokersource.eu/sounds-sources/player_bet.ogg has changed
Binary file jpoker/themes/pokersource.eu/sounds-sources/player_call.ogg has changed
Binary file jpoker/themes/pokersource.eu/sounds-sources/player_check.ogg has changed
Binary file jpoker/themes/pokersource.eu/sounds-sources/player_fold.ogg has changed
Binary file jpoker/themes/pokersource.eu/sounds-sources/player_hand.ogg has changed
Binary file jpoker/themes/pokersource.eu/sounds-sources/player_timeout_notice.ogg has changed
Binary file jpoker/themes/pokersource.eu/sounds-sources/player_timeout_warning.ogg has changed
Binary file jpoker/themes/pokersource.eu/sounds-sources/player_win.ogg has changed
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/jpoker/themes/pokersource.eu/sounds-sources/soundswiff.c Mon Apr 19 05:40:37 2010 +0200 @@ -0,0 +1,40 @@ +/* +* Copyright (C) 2008 Loic Dachary <loic@dachary.org> +* +* This program is free software: you can redistribute it and/or modify +* it under the terms of the GNU General Public License as published by +* the Free Software Foundation, either version 3 of the License, or +* (at your option) any later version. +* +* This program is distributed in the hope that it will be useful, +* but WITHOUT ANY WARRANTY; without even the implied warranty of +* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +* GNU General Public License for more details. +* +* You should have received a copy of the GNU General Public License +* along with this program. If not, see <http://www.gnu.org/licenses/>. +*/ +#include <ming.h> +#include <stdlib.h> +#include <assert.h> + +int main(int argc, char** argv) +{ + Ming_useSWFVersion(6); + assert(argc == 3 && "usage: soundswiff sound.wav sound.swf"); + SWFMovie movie = newSWFMovie(); + SWFMovie_setDimension(movie, 800, 600); + SWFMovie_setBackground(movie, rand()%255, rand()%255, rand()%255); + + SWFSound sound1 = newSWFSound(fopen(argv[1], "rb"), SWF_SOUND_44KHZ|SWF_SOUND_16BITS|SWF_SOUND_STEREO); + SWFSoundInstance soundInstance1 = SWFMovie_startSound(movie, sound1); + SWFMovie_nextFrame(movie); + SWFMovie_save(movie, argv[2]); + destroySWFMovie(movie); + return 0; +} + +// Interpreted by emacs +// Local Variables: +// compile-command: "gcc -Wall -o soundswiff soundswiff.c -lming" +// End:
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/jpoker/themes/pokersource.eu/svg2html.py Mon Apr 19 05:40:37 2010 +0200 @@ -0,0 +1,147 @@ +#!/usr/bin/python +# -*- mode: python -*- +# +# Copyright (C) 2008 Johan Euphrosine <proppy@aminche.com> +# Copyright (C) 2007,2008 Loic Dachary <loic@dachary.org> +# Copyright (C) 2006 Mekensleep +# +# Mekensleep +# 24 rue vieille du temple +# 75004 Paris +# licensing@mekensleep.com +# +# This program is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 3 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program; if not, write to the Free Software +# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA. +# + +from xml.sax import parseString +from xml.sax.handler import ContentHandler +from xml.dom import minidom +import string +import re + +class SVGParse(ContentHandler): + def __init__(self, string): + self.root = "" + self.formats = [] + self.tuples = [] + self.doc = minidom.parseString(string) + parseString(string, self) + def __str__(self): + return string.join(map(lambda format, values: format % tuple(values), self.formats, self.tuples), '') + def startElement(self, name, attrs): + if name == "svg": + self.startElementSvg(attrs) + elif name == "image": + self.startElementImage(attrs) + elif name == "g": + self.startElementGroup(attrs) + def startElementGroup(self, attrs): + pass + def endElementSvg(self, attrs): + pass + def endElementGroup(self, attrs): + pass + def endElement(self, name): + if name == "svg": + self.endElementSvg(name) + elif name == "g": + self.endElementGroup(name) + +class SVG2HTML(SVGParse): + def startElementSvg(self, attrs): + self.formats.append('<html><head></head><body><div id="%s" class="jpoker_ptable jpoker_table">') + self.tuples.append((attrs['id'],)) + def startElementImage(self, attrs): + self.formats.append('<div id="%s" class="jpoker_ptable_%s"></div>') + self.tuples.append((attrs['id'],attrs['id'])) + def startElementGroup(self, attrs): + self.formats.append('<div id="%s">') + self.tuples.append((attrs['id'],)) + def endElementSvg(self, anem): + self.formats.append('</div></body></html>') + self.tuples.append(()) + def endElementGroup(self, anem): + self.formats.append('</div>') + self.tuples.append(()) + +class SVG2JSON(SVGParse): + def startElementSvg(self, attrs): + self.formats.append("<div id=\\'%s{id}\\' class=\\'jpoker_ptable jpoker_table\\'>") + self.tuples.append((attrs["id"],)) + def startElementImage(self, attrs): + self.formats.append("<div id=\\'%s{id}\\' class=\\'jpoker_ptable_%s\\'></div>") + self.tuples.append((attrs["id"],attrs["id"])) + def startElementGroup(self, attrs): + self.formats.append("<div id=\\'%s{id}\\'>") + self.tuples.append((attrs["id"],)) + def endElementSvg(self, anem): + self.formats.append("</div>") + self.tuples.append(()) + def endElementGroup(self, anem): + self.formats.append("</div>") + self.tuples.append(()) + +class SVG2CSS(SVGParse): + ignore = [ '../css/images/jpoker_table/money.png', + '../css/images/jpoker_table/winner.png', + '../css/images/jpoker_table/name.png', + '../css/images/jpoker_table/winning_hand.png', + '../css/images/jpoker_table/timeout_bar.png', + '../css/images/jpoker_table/raise_amount.png', + '../css/images/jpoker_table/timeout_bar.png', + '../css/images/jpoker_table/chat_input.png', + '../css/images/jpoker_table/chat_log.png', + '../css/images/jpoker_table/muck_options.png', + '../css/images/jpoker_table/status.png' + ] + transforms = [] + def startElementSvg(self, attrs): + self.root = attrs['id'] + format = '.jpoker_table .jpoker_ptable { width:%spx; height:%spx; position:relative; background-image:url("images/jpoker_table/table_background.png"); }\n' + self.formats.append(format) + self.tuples.append((attrs['width'], attrs['height'])) + def startElementGroup(self, attrs): + tx, ty = 0, 0 + if attrs.has_key('transform'): + tx, ty = map(float, re.match('translate\((-?\d+\.?\d*.*),\s*(-?\d+\.?\d*.*)\)', attrs['transform']).groups()) + self.transforms.append((tx, ty)) + def endElementGroup(self, name): + self.transforms.pop() + def startElementImage(self, attrs): + tx, ty = 0, 0 + if attrs.has_key('transform'): + tx, ty = map(float, re.match('translate\((-?\d+\.?\d*.*),\s*(-?\d+\.?\d*.*)\)', attrs['transform']).groups()) + for gx, gy in self.transforms: + tx += gx + ty += gy + values = [ attrs['id'], attrs['width'], attrs['height'], str(int(float(attrs['y'])+ty)), str(int(float(attrs['x'])+tx)) ] + if attrs['xlink:href'] not in SVG2CSS.ignore: + image_format = 'background-image:url("%s");' + values.append(str(attrs['xlink:href']).replace('../css/', '')) + else: + image_format = '' + format = '.jpoker_table .jpoker_ptable_%s { width:%spx; height:%spx; position:absolute; top:%spx; left:%spx; ' + image_format + '}\n' + self.formats.append(format) + self.tuples.append(values) + +if __name__ == '__main__': + import sys + if len(sys.argv) == 2: + if sys.argv[1] == "--html": + print SVG2HTML(sys.stdin.read()) + elif sys.argv[1] == "--css": + print SVG2CSS(sys.stdin.read()) + elif sys.argv[1] == "--json": + print "'" + str(SVG2JSON(sys.stdin.read())) + "';"
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/jpoker/themes/pokersource.eu/svgflatten.py Mon Apr 19 05:40:37 2010 +0200 @@ -0,0 +1,59 @@ +#!/usr/bin/python +# -*- mode: python -*- +# +# Copyright (C) 2008 Johan Euphrosine <proppy@aminche.com> +# Copyright (C) 2008 Loic Dachary <loic@dachary.org> +# +# This program is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 3 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program; if not, write to the Free Software +# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA. +# + +import re +import libxml2 +from StringIO import StringIO + +def flatten(string): + doc = libxml2.parseDoc(string) + context = doc.xpathNewContext() + result = context.xpathEval("//use") + for orig in result: + xlink = orig.prop('href') + id = orig.prop('id') + id_length = len(id) + nodes = context.xpathEval('//g[@id="'+xlink[1:]+'"]') + if len(nodes) == 0: + nodes = context.xpathEval('//image[@id="'+xlink[1:]+'"]') + node = nodes[0] + copy = node.copyNode(extended=True) + copy.removeNsDef(None) + copy_context = doc.xpathNewContext() + copy_context.setContextNode(copy) + for copy_id in copy_context.xpathEval('.//@id'): + copy_id.setContent(id + copy_id.content[id_length:]) + tx, ty = re.match('translate\((-?\d+\.?\d*.*),(-?\d+\.?\d*.*)\)', orig.prop('transform')).groups() + transform = { 'x': float(tx), 'y': float(ty) } + for c in [ 'x', 'y' ]: + for coord in copy_context.xpathEval('.//@' + c): + coord.setContent(str(int(round(float(coord.content) + transform[c])))) + orig.replaceNode(copy) + + f = StringIO() + buf = libxml2.createOutputBuffer(f, None) + doc.saveFileTo(buf, None) + return f.getvalue() + +if __name__ == '__main__': + import sys + print flatten(sys.stdin.read()) + sys.exit(0)
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/jpoker/themes/pokersource.eu/test-svg2html.py Mon Apr 19 05:40:37 2010 +0200 @@ -0,0 +1,60 @@ +#!@PYTHON@ +# -*- mode: python -*- +# +# Copyright (C) 2008 Johan Euphrosine <proppy@aminche.com> +# Copyright (C) 2008 Loic Dachary <loic@dachary.org> +# Copyright (C) 2006 Mekensleep +# +# Mekensleep +# 24 rue vieille du temple +# 75004 Paris +# licensing@mekensleep.com +# +# This program is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 3 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program; if not, write to the Free Software +# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA. +# + +import unittest + +from svg2html import * + +class SVG2Gtk(unittest.TestCase): + def test_SVG2HTML(self): + svg_string = '<svg xmlns:xlink="http://www.w3.org/1999/xlink" id="game_window" width="800" height="782"><g id="g1"><image id="test" x="0" y="1" width="2" height="3" xlink:href="test.png"/></g></svg>' + html_string = '<html><head></head><body><div id="game_window" class="jpoker_ptable jpoker_table"><div id="g1"><div id="test" class="jpoker_ptable_test"></div></div></div></body></html>' + self.assertEquals(html_string, str(SVG2HTML(svg_string))) + def test_SVG2JSON(self): + svg_string = '<svg xmlns:xlink="http://www.w3.org/1999/xlink" id="game_window" width="800" height="782"><g id="g1"><image id="test" x="0" y="1" width="2" height="3" xlink:href="test.png"/></g></svg>' + html_string = "<div id=\\'game_window{id}\\' class=\\'jpoker_ptable jpoker_table\\'><div id=\\'g1{id}\\'><div id=\\'test{id}\\' class=\\'jpoker_ptable_test\\'></div></div></div>" + self.assertEquals(html_string, str(SVG2JSON(svg_string))) + def test_SVG2CSS(self): + svg_string = '<svg xmlns:xlink="http://www.w3.org/1999/xlink" id="game_window" width="800" height="782"><g><image id="test" x="0" y="1" width="2" height="3" xlink:href="../css/images/jpoker_table/test.png"/><image id="test1" x="0" y="1" width="2" height="3" xlink:href="../css/images/jpoker_table/money.png"/></g></svg>' + css_string = '.jpoker_table .jpoker_ptable { width:800px; height:782px; position:relative; background-image:url("images/jpoker_table/table_background.png"); }\n.jpoker_table .jpoker_ptable_test { width:2px; height:3px; position:absolute; top:1px; left:0px; background-image:url("images/jpoker_table/test.png");}\n.jpoker_table .jpoker_ptable_test1 { width:2px; height:3px; position:absolute; top:1px; left:0px; }\n' + self.assertEquals(css_string, str(SVG2CSS(svg_string))) + def test_SVG2CSS_image_translate(self): + svg_string = '<svg xmlns:xlink="http://www.w3.org/1999/xlink" id="game_window" width="800" height="800"><g><image id="test" x="0" y="1" transform="translate(2, 2)" width="2" height="3" xlink:href="../css/images/jpoker_table/test.png"/><image id="test1" x="0" y="1" transform="translate(3, -1)" width="2" height="3" xlink:href="../css/images/jpoker_table/money.png"/></g></svg>' + css_string = '.jpoker_table .jpoker_ptable { width:800px; height:800px; position:relative; background-image:url("images/jpoker_table/table_background.png"); }\n.jpoker_table .jpoker_ptable_test { width:2px; height:3px; position:absolute; top:3px; left:2px; background-image:url("images/jpoker_table/test.png");}\n.jpoker_table .jpoker_ptable_test1 { width:2px; height:3px; position:absolute; top:0px; left:3px; }\n' + self.assertEquals(css_string, str(SVG2CSS(svg_string))) + def test_SVG2CSS_group_translate(self): + svg_string = '<svg xmlns:xlink="http://www.w3.org/1999/xlink" id="game_window" width="800" height="800"><g transform="translate(10, 10)"><image id="test" x="0" y="1" transform="translate(2, 2)" width="2" height="3" xlink:href="../css/images/jpoker_table/test.png"/><g transform="translate(5, 5)"><image id="test1" x="0" y="1" transform="translate(3, -1)" width="2" height="3" xlink:href="../css/images/jpoker_table/money.png"/></g></g></svg>' + css_string = '.jpoker_table .jpoker_ptable { width:800px; height:800px; position:relative; background-image:url("images/jpoker_table/table_background.png"); }\n.jpoker_table .jpoker_ptable_test { width:2px; height:3px; position:absolute; top:13px; left:12px; background-image:url("images/jpoker_table/test.png");}\n.jpoker_table .jpoker_ptable_test1 { width:2px; height:3px; position:absolute; top:15px; left:18px; }\n' + self.assertEquals(css_string, str(SVG2CSS(svg_string))) + +if __name__ == '__main__': + unittest.main() + +# Interpreted by emacs +# Local Variables: +# compile-command: "python test-svg2html.py" +# End:
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/jpoker/themes/pokersource.eu/test-svgflatten.py Mon Apr 19 05:40:37 2010 +0200 @@ -0,0 +1,64 @@ +#!/usr/bin/python +# -*- mode: python -*- +# +# Copyright (C) 2008 Johan Euphrosine <proppy@aminche.com> +# Copyright (C) 2008 Loic Dachary <loic@dachary.org> +# +# This program is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 3 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program; if not, write to the Free Software +# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA. +# + +import unittest +import difflib +import sys + +from svgflatten import flatten + +class flattentest(unittest.TestCase): + def test_flatten(self): +#<svg xmlns:xlink="http://www.w3.org/1999/xlink" height="800" id="game_window" width="800"> + svg_string = """\ +<?xml version="1.0" encoding="UTF-8"?> +<!-- Created with Inkscape (http://www.inkscape.org/) --> +<svg xmlns:svg="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.0" width="800" height="800" id="game_window"> + <g id="group0"> + <image height="3" id="group0_image0" width="2" x="1" xlink:href="test.png" y="1"/> + </g> + <use id="group1" transform="translate(-10.0e-6,-10)" xlink:href="#group0"/> +</svg> +""" + html_string = """\ +<?xml version="1.0" encoding="UTF-8"?> +<!-- Created with Inkscape (http://www.inkscape.org/) --> +<svg xmlns:svg="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.0" width="800" height="800" id="game_window"> + <g id="group0"> + <image height="3" id="group0_image0" width="2" x="1" xlink:href="test.png" y="1"/> + </g> + <g id="group1"> + <image height="3" id="group1_image0" width="2" x="1" xlink:href="test.png" y="-9"/> + </g> +</svg> +""" + out = flatten(svg_string) + #print difflib.HtmlDiff().make_file(out.split("\n"), html_string.split("\n")) + sys.stderr.writelines(difflib.unified_diff(out.split("\n"), html_string.split("\n"))) + self.assertEquals(html_string, out) + +if __name__ == '__main__': + unittest.main() + +# Interpreted by emacs +# Local Variables: +# compile-command: "python test-svgflatten.py" +# End: