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
<!--{{{--> <div class='toolbar' macro='toolbar [[ToolbarCommands::EditToolbar]]'></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 excludeLists'></span></div> <!--}}}-->
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>>
<<importTiddlers>>
<!--{{{--> <link rel='alternate' type='application/rss+xml' title='RSS' href='index.xml' /> <!--}}}-->
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]]
<!--{{{--> <div class='header' role='banner' macro='gradient vert [[ColorPalette::PrimaryLight]] [[ColorPalette::PrimaryMid]]'> <div class='headerShadow'> <span class='siteTitle' refresh='content' tiddler='SiteTitle'></span> <span class='siteSubtitle' refresh='content' tiddler='SiteSubtitle'></span> </div> <div class='headerForeground'> <span class='siteTitle' refresh='content' tiddler='SiteTitle'></span> <span class='siteSubtitle' refresh='content' tiddler='SiteSubtitle'></span> </div> </div> <div id='mainMenu' role='navigation' refresh='content' tiddler='MainMenu'></div> <div id='sidebar'> <div id='sidebarOptions' role='navigation' refresh='content' tiddler='SideBarOptions'></div> <div id='sidebarTabs' role='complementary' refresh='content' force='true' tiddler='SideBarTabs'></div> </div> <div id='displayArea' role='main'> <div id='messageArea'></div> <div id='tiddlerDisplay'></div> </div> <!--}}}-->
/*{{{*/ 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]];} .wizard .notChanged {background:transparent;} .wizard .changedLocally {background:#80ff80;} .wizard .changedServer {background:#8080ff;} .wizard .changedBoth {background:#ff8080;} .wizard .notFound {background:#ffff80;} .wizard .putToServer {background:#ff80ff;} .wizard .gotFromServer {background:#80ffff;} #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]];} .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]];} .readOnly {background:[[ColorPalette::TertiaryPale]];} #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);} /*}}}*/
/*{{{*/ * 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 0 1em 1em; left:-1px; top:-1px;} .headerForeground {position:absolute; padding:4.5em 0 1em 1em; left:0; top:0;} .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:0 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 0.3em 0;} #sidebarTabs .tabContents {width:15em; overflow:hidden;} .wizard {padding:0.1em 1em 0 2em;} .wizard h1 {font-size:2em; font-weight:bold; background:none; padding:0; margin:0.4em 0 0.2em;} .wizard h2 {font-size:1.2em; font-weight:bold; background:none; padding:0; margin:0.4em 0 0.2em;} .wizardStep {padding:1em 1em 1em 1em;} .wizard .button {margin:0.5em 0 0; font-size:1.2em;} .wizardFooter {padding:0.8em 0.4em 0.8em 0;} .wizardFooter .status {padding:0 0.4em; margin-left:1em;} .wizard .button {padding:0.1em 0.2em;} #messageArea {position:fixed; top:2em; right:0; margin:0.5em; padding:0.5em; z-index:2000; _position:absolute;} .messageToolbar {display:block; text-align:right; padding:0.2em;} #messageArea a {text-decoration:underline;} .tiddlerPopupButton {padding:0.2em;} .popupTiddler {position: absolute; z-index:300; padding: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 0;} .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 0 0 0.5em;} .tab {margin:0 0 0 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 0 14em;} .toolbar {text-align:right; font-size:.9em;} .tiddler {padding:1em 1em 0;} .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:0 0.25em; padding:0 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:0 3px 0 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 0; font-size:.9em;} .editorFooter .button {padding-top:0; padding-bottom:0;} .fieldsetFix {border:0; padding:0; margin:1px 0px;} .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;} #backstageToolbar {position:relative;} #backstageArea a {font-weight:bold; margin-left:0.5em; padding:0.3em 0.5em;} #backstageButton {display:none; position:absolute; z-index:175; top:0; right:0;} #backstageButton a {padding:0.1em 0.4em; margin:0.1em;} #backstage {position:relative; width:100%; z-index:50;} #backstagePanel {display:none; z-index:100; position:absolute; width:90%; margin-left:3em; padding:1em;} .backstagePanelFooter {padding-top:0.2em; float:right;} .backstagePanelFooter a {padding:0.2em 0.4em;} #backstageCloak {display:none; z-index:20; position:absolute; width:100%; height:100px;} .whenBackstage {display:none;} .backstageVisible .whenBackstage {display:block;} /*}}}*/
/*** 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;} /*}}}*/
/*{{{*/ @media print { #mainMenu, #sidebar, #messageArea, .toolbar, #backstageButton, #backstageArea {display: none !important;} #displayArea {margin: 1em 1em 0em;} noscript {display:none;} /* Fixes a feature in Firefox 1.5.0.2 where print preview displays the noscript content */ } /*}}}*/
<!--{{{--> <div class='toolbar' role='navigation' macro='toolbar [[ToolbarCommands::ViewToolbar]]'></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> <!--}}}-->
|Month|1|2|3|4|5| |Jon's Money|100|200|700|800|300| |Colm's Money|50|500|300|900|700| |Matt's Money|250|550|330|400|2700|
La intensidad es una medida de los efectos de un terremoto: cómo se ha sentido, qué daños ha causado. Es una cosa distinta de la magnitud. No se mide con ningún aparato; hay que preguntar a la gente y estudiar sobre el terreno esos daños. La intensidad puede depender de la distancia al epicentro, pero no es una cosa matemática. Para clasificar los seismos de acuerdo con su intensidad tenemos la [[escala de Mercalli|http://es.wikipedia.org/wiki/Escala_sismol%C3%B3gica_de_Mercalli]].
Derived from NEUI (new-eee) but using a row, column, box model with the help of emastic framework. And there are some new goodies, like a sortable list makro for the ~MainMenu and ~TopMenu. ~ToggleLeft, ~ToggleRight. Fully functional, stand alone, icons. ~ThemeSwitcher at the options panel and more. Version: 0.6.3 ... have fun!
@@Please do not modify this tiddler; it was created automatically upon space creation.@@
Organismos cuyas células son ''procariotas''. Incluye todas las bacterias y arqueobacterias.
<?xml version="1.0" encoding="UTF-8" standalone="no"?> <svg id="svg2" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns="http://www.w3.org/2000/svg" height="29pt" viewBox="13 43 29 29" width="29pt" version="1.0" xmlns:cc="http://creativecommons.org/ns#" xmlns:dc="http://purl.org/dc/elements/1.1/" class="smallOnActive"> <metadata id="metadata14"> <rdf:RDF> <cc:Work rdf:about=""> <dc:format>image/svg+xml</dc:format> <dc:type rdf:resource="http://purl.org/dc/dcmitype/StillImage"/> <dc:title/> <dc:rights> <cc:Agent> <dc:title>http://creativecommons.org/licenses/by-nc-sa/3.0/at/</dc:title> </cc:Agent> </dc:rights> <dc:source>http://iconbuilder.tiddlyspace.com</dc:source> <dc:creator> <cc:Agent> <dc:title>Mario Pietsch</dc:title> </cc:Agent> </dc:creator> </cc:Work> </rdf:RDF> </metadata> <defs id="defs_bBgTrans"> <linearGradient id="linearGradient001" y2="27.646" gradientUnits="userSpaceOnUse" x2="-45.8" y1="27.646" x1="-57.66"> <stop id="stop1" stop-color="#6BB546" offset="0"/> <stop id="stop2" stop-color="#B5DAA2" offset="0.66462"/> <stop id="stop3" stop-color="#6BB546" offset="1"/> </linearGradient></defs> <g id="icon"> <rect id="iconBG" stroke="#696969" ry="4.1663" transform="matrix(0, -1, 1, 0, 0, 0)" height="25" width="25" y="15.167" x="-70.116" stroke-width="1.2" fill="none" class="showBG"/> <rect id="iconFG" stroke-width="0" fill-rule="evenodd" ry="2.3755" transform="matrix(0, -1, 1, 0, 0, 0)" width="22" y="16.646" x="-68.6" height="22" fill="url(#linearGradient001)" class="showFG"/> <path id="iconSymbol" stroke-linejoin="round" d="m18.831,9.4156v10.985l-4.865,5.806" transform="matrix(0.8, 0, 0, 0.8, 13, 43)" stroke="#4d4d4d" stroke-linecap="round" stroke-width="3" fill="none" class="showSY"/> <rect id="overlay" stroke="#696969" opacity="0" ry="4.1663" transform="matrix(0, -1, 1, 0, 0, 0)" height="25" width="25" y="15.167" x="-70.116" stroke-width="1.2" class="showOV"/> </g> </svg>
[[Sismología]] [[Tectónica]] [[Petrología]] [[Geología Histórica|GeoHistórica]] [[Citología]] [[Genética]] [[Ecología]] [[Cursos online]] [[Póster]]
/*** |Name|poptag| |Created by|[[Steve Schneider|http://webarchivist.org]]| |Version|1.0|| !!!Description A TiddlyWikiMacro to show both contents and tags of a tiddler Requies: [[PopNote PlugIn]] /*** <<poptag PopTagDemo>> !!!Code ***/ //{{{ config.macros.poptag = {}; config.macros.poptag.handler= function(place,macroName,params) { var key1=params[1]; var key0=params[0]; wikify("<<tag "+key0+">><<popnote '' "+key0+">>",place) } //}}}
/*** |''Name:''|TagsTreePlugin| |''Description:''|Displays tags hierachy as a tree of tagged tiddlers.<br>Can be used to create dynamic outline navigation.| |''Version:''|1.0.1| |''Date:''|Jan 04,2008| |''Source:''|http://visualtw.ouvaton.org/VisualTW.html| |''Author:''|Pascal Collin| |''License:''|[[BSD open source license|License]]| |''~CoreVersion:''|2.1.0| |''Browser:''|Firefox 2.0; InternetExplorer 6.0| !Demo On the plugin [[homepage|http://visualtw.ouvaton.org/VisualTW.html]] : *Try to tag some <<newTiddler>> with a tag displayed in the menu and edit MainMenu. *Look at some tags like [[Plugins]] or [[menu]]. !Installation #import the plugin, #save and reload, #optionally, edit TagsTreeStyleSheet. ! Usage {{{<<tagsTree>>}}} macro accepts the following //optional// parameters. |!#|!parameter|!description|!by default| |1|{{{root}}}|Uses {{{root}}} tag as tree root|- In a //tiddler// content or template : uses the tiddler as root tag.<br>- In the //page// content or template (by ex MainMenu) : displays all untagged tags.| |2|{{{excludeTag}}}|Excludes all such tagged tiddlers from the tree|Uses default excludeLists tag| |3|{{{level}}}|Expands nodes until level {{{level}}}.<br>Value {{{0}}} hides expand/collapse buttons.|Nodes are collapsed on first level| |4|{{{depth}}}|Hierachy depth|6 levels depth (H1 to H6 header styles)| |5|{{{sortField}}}|Alternate sort field. By example : "index".|Sorts tags and tiddlers alphabetically (on their title)| |6|{{{labelField}}}|Alertnate label field. By example : "label".|Displays tiddler's title| !Useful addons *[[FieldsEditorPlugin]] : //create//, //edit//, //view// and //delete// commands in toolbar <<toolbar fields>>. *[[TaggerPlugin]] : Provides a drop down listing current tiddler tags, and allowing toggling of tags. !Advanced Users You can change the global defaults for TagsTreePlugin, like default {{{level}}} value or level styles, by editing or overriding the first config.macros.tagsTree attributes below. !Code ***/ //{{{ config.macros.tagsTree = { expand : "+", collapse : "–", depth : 6, level : 1, sortField : "", labelField : "", styles : ["h1","h2","h3","h4","h5","h6"], trees : {} } config.macros.tagsTree.handler = function(place,macroName,params,wikifier,paramString,tiddler) { var root = params[0] ? params[0] : (tiddler ? tiddler.title : null); var excludeTag = params[1] ? params[1] : "excludeTagsTree"; var level = params[2] ? params[2] : config.macros.tagsTree.level; var depth = params[3] ? params[3] : config.macros.tagsTree.depth; var sortField = params[4] ? params[4] : config.macros.tagsTree.sortField; var labelField = params[5] ? params[5] : config.macros.tagsTree.labelField; var showButtons = (level>0); var id = config.macros.tagsTree.getId(place); if (config.macros.tagsTree.trees[id]==undefined) config.macros.tagsTree.trees[id]={}; config.macros.tagsTree.createSubTree(place,id,root,excludeTag,[],level>0 ? level : 1,depth, sortField, labelField,showButtons); } config.macros.tagsTree.createSubTree = function(place, id, root, excludeTag, ancestors, level, depth, sortField, labelField,showButtons){ var childNodes = root ? this.getChildNodes(root, ancestors) : this.getRootTags(excludeTag); var isOpen = (level>0) || (!showButtons); if (root && this.trees[id][root]!=undefined) isOpen = this.trees[id][root]; if (root && ancestors.length) { var t = store.getTiddler(root); if (childNodes.length && depth>0) { var wrapper = createTiddlyElement(place , this.styles[Math.min(Math.max(ancestors.length,1),6)-1],null,"branch"); if (showButtons) { b = createTiddlyButton(wrapper, isOpen ? config.macros.tagsTree.collapse : config.macros.tagsTree.expand, null, config.macros.tagsTree.onClick); b.setAttribute("treeId",id); b.setAttribute("tiddler",root); } createTiddlyText(createTiddlyLink(wrapper, root),t&&labelField ? t.fields[labelField] ? t.fields[labelField] : root : root); } else createTiddlyText(createTiddlyLink(place, root,false,"leaf"),t&&labelField ? t.fields[labelField] ? t.fields[labelField] : root : root); } if (childNodes.length && depth) { var d = createTiddlyElement(place,"div",null,"subtree"); d.style.display= isOpen ? "block" : "none"; if (sortField) childNodes.sort(function(a, b){ var fa=a.fields[sortField]; var fb=b.fields[sortField]; return (fa==undefined && fb==undefined) ? a.title < b.title ? -1 : a.title > b.title ? 1 : 0 : (fa==undefined && fb!=undefined) ? 1 :(fa!=undefined && fb==undefined) ? -1 : fa < fb ? -1 : fa > fb ? 1 : 0; }) for (var cpt=0; cpt<childNodes.length; cpt++) this.createSubTree(d, id, childNodes[cpt].title, excludeTag, ancestors.concat(root), level-1, depth-1, sortField, labelField, showButtons); } } config.macros.tagsTree.onClick = function(e){ var id = this.getAttribute("treeId"); var tiddler = this.getAttribute("tiddler"); var n = this.parentNode.nextSibling; 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"; this.firstChild.nodeValue = isOpen ? config.macros.tagsTree.expand : config.macros.tagsTree.collapse; config.macros.tagsTree.trees[id][tiddler]=!isOpen; return false; } config.macros.tagsTree.getChildNodes = function(root ,ancestors){ var childs = store.getTaggedTiddlers(root); var result = new Array(); for (var cpt=0; cpt<childs.length; cpt++) if (childs[cpt].title!=root && ancestors.indexOf(childs[cpt].title)==-1) result.push(childs[cpt]); return result; } config.macros.tagsTree.getRootTags = function(excludeTag){ var tags = store.getTags(excludeTag); tags.sort(function(a,b) {return a[0].toLowerCase() < b[0].toLowerCase() ? -1 : (a[0].toLowerCase() == b[0].toLowerCase() ? 0 : +1);}); var result = new Array(); for (var cpt=0; cpt<tags.length; cpt++) { var t = store.getTiddler(tags[cpt][0]); if (!t || t.tags.length==0) result.push(t ? t : {title:tags[cpt][0],fields:{}}); } return result; } config.macros.tagsTree.getId = function(element){ while (!element.id && element.parentNode) element=element.parentNode; return element.id ? element.id : "<html>"; } config.shadowTiddlers.TagsTreeStyleSheet = "/*{{{*/\n"; config.shadowTiddlers.TagsTreeStyleSheet +=".leaf, .subtree {display:block; margin-left : 0.5em}\n"; config.shadowTiddlers.TagsTreeStyleSheet +=".subtree {margin-bottom:0.5em}\n"; config.shadowTiddlers.TagsTreeStyleSheet +="#mainMenu {text-align:left}\n"; config.shadowTiddlers.TagsTreeStyleSheet +=".branch .button {border:1px solid #DDD; color:#AAA;font-size:9px;padding:0 2px;margin-right:0.3em;vertical-align:middle;text-align:center;}\n"; config.shadowTiddlers.TagsTreeStyleSheet +="/*}}}*/"; store.addNotification("TagsTreeStyleSheet", refreshStyles); config.shadowTiddlers.MainMenu="<<tagsTree>>" config.shadowTiddlers.PageTemplate = config.shadowTiddlers.PageTemplate.replace(/id='mainMenu' refresh='content' /,"id='mainMenu' refresh='content' force='true' ") //}}}
Compara estas dos fotografías: | [img(500px+,)[http://4.bp.blogspot.com/-Qtga_JMf6uw/Tr7Jld0X79I/AAAAAAAAAMc/OzjbbiZdEMs/s640/800px-TalusConesIsfjorden.jpg]] | [img(400px+,)[http://recursos.cnice.mec.es/biosfera/alumno/4ESO/MedioNatural2/imagenes/anticline.jpg]] | | Estratos horizontales | Estratos no horizontales | El principio de horizontalidad nos dice que cuando se formaron los estratos estaban en posición horizontal. Cuando nos encontremos estratos que no están horizontales tenemos que pensar qué causas han podido modificarlos. Por lo general serán deformaciones de origen tectónico.
En este tema hablaremos de un montón de cosas. Los enlaces a los tiddlers del tema están ahí abajo. Recuerda que @@color(brown):los tiddlers se abren, se leen, y se cierran@@. De lo contrario se empieza a llenar y nos hacemos un lío...
/*** |''Name''|g.pie| |''Requires''|raphaeljs g.raphael| !Usage !Code ***/ Raphael.fn.g.piechart=function(e,d,o,b,l){l=l||{};var k=this,m=[],g=this.set(),n=this.set(),j=this.set(),u=[],w=b.length,x=0,A=0,z=0,c=9,y=true;n.covers=g;if(w==1){j.push(this.circle(e,d,o).attr({fill:this.g.colors[0],stroke:l.stroke||"#fff","stroke-width":l.strokewidth==null?1:l.strokewidth}));g.push(this.circle(e,d,o).attr(this.g.shim));A=b[0];b[0]={value:b[0],order:0,valueOf:function(){return this.value;}};j[0].middle={x:e,y:d};j[0].mangle=180;}else{function t(F,E,i,H,D,M){var J=Math.PI/180,B=F+i*Math.cos(-H*J),p=F+i*Math.cos(-D*J),G=F+i/2*Math.cos(-(H+(D-H)/2)*J),L=E+i*Math.sin(-H*J),K=E+i*Math.sin(-D*J),C=E+i/2*Math.sin(-(H+(D-H)/2)*J),I=["M",F,E,"L",B,L,"A",i,i,0,+(Math.abs(D-H)>180),1,p,K,"z"];I.middle={x:G,y:C};return I;}for(var v=0;v<w;v++){A+=b[v];b[v]={value:b[v],order:v,valueOf:function(){return this.value;}};}b.sort(function(p,i){return i.value-p.value;});for(v=0;v<w;v++){if(y&&b[v]*360/A<=1.5){c=v;y=false;}if(v>c){y=false;b[c].value+=b[v];b[c].others=true;z=b[c].value;}}w=Math.min(c+1,b.length);z&&b.splice(w)&&(b[c].others=true);for(v=0;v<w;v++){var f=x-360*b[v]/A/2;if(!v){x=90-f;f=x-360*b[v]/A/2;}if(l.init){var h=t(e,d,1,x,x-360*b[v]/A).join(",");}var s=t(e,d,o,x,x-=360*b[v]/A);var q=this.path(l.init?h:s).attr({fill:l.colors&&l.colors[v]||this.g.colors[v]||"#666",stroke:l.stroke||"#fff","stroke-width":(l.strokewidth==null?1:l.strokewidth),"stroke-linejoin":"round"});q.value=b[v];q.middle=s.middle;q.mangle=f;m.push(q);j.push(q);l.init&&q.animate({path:s.join(",")},(+l.init-1)||1000,">");}for(v=0;v<w;v++){q=k.path(m[v].attr("path")).attr(this.g.shim);l.href&&l.href[v]&&q.attr({href:l.href[v]});q.attr=function(){};g.push(q);j.push(q);}}n.hover=function(C,r){r=r||function(){};var B=this;for(var p=0;p<w;p++){(function(D,E,i){var F={sector:D,cover:E,cx:e,cy:d,mx:D.middle.x,my:D.middle.y,mangle:D.mangle,r:o,value:b[i],total:A,label:B.labels&&B.labels[i]};E.mouseover(function(){C.call(F);}).mouseout(function(){r.call(F);});})(j[p],g[p],p);}return this;};n.each=function(B){var r=this;for(var p=0;p<w;p++){(function(C,D,i){var E={sector:C,cover:D,cx:e,cy:d,x:C.middle.x,y:C.middle.y,mangle:C.mangle,r:o,value:b[i],total:A,label:r.labels&&r.labels[i]};B.call(E);})(j[p],g[p],p);}return this;};n.click=function(B){var r=this;for(var p=0;p<w;p++){(function(C,D,i){var E={sector:C,cover:D,cx:e,cy:d,mx:C.middle.x,my:C.middle.y,mangle:C.mangle,r:o,value:b[i],total:A,label:r.labels&&r.labels[i]};D.click(function(){B.call(E);});})(j[p],g[p],p);}return this;};n.inject=function(i){i.insertBefore(g[0]);};var a=function(G,B,r,p){var K=e+o+o/5,J=d,F=J+10;G=G||[];p=(p&&p.toLowerCase&&p.toLowerCase())||"east";r=k.g.markers[r&&r.toLowerCase()]||"disc";n.labels=k.set();for(var E=0;E<w;E++){var L=j[E].attr("fill"),C=b[E].order,D;b[E].others&&(G[C]=B||"Others");G[C]=k.g.labelise(G[C],b[E],A);n.labels.push(k.set());n.labels[E].push(k.g[r](K+5,F,5).attr({fill:L,stroke:"none"}));n.labels[E].push(D=k.text(K+20,F,G[C]||b[C]).attr(k.g.txtattr).attr({fill:l.legendcolor||"#000","text-anchor":"start"}));g[E].label=n.labels[E];F+=D.getBBox().height*1.2;}var H=n.labels.getBBox(),I={east:[0,-H.height/2],west:[-H.width-2*o-20,-H.height/2],north:[-o-H.width/2,-o-H.height-10],south:[-o-H.width/2,o+10]}[p];n.labels.translate.apply(n.labels,I);n.push(n.labels);};if(l.legend){a(l.legend,l.legendothers,l.legendmark,l.legendpos);}n.push(j,g);n.series=j;n.covers=g;return n;};
a TiddlySpace
Mira estas fotos | [img(445px+,)[http://geofrikphotos.files.wordpress.com/2013/09/iran-graben-current.jpg]] | [img(500px+,)[http://66south.com/JohnWesleyPowell/files/kaibab-plateau_web.jpg]] | | Los estratos no continúan lateralmente...¡algo raro pasa! |c
Los cloroplastos, como las mitocondrias, tienen ADN y ribosomas en su interior lo cual hace pensar que sean descendientes de bacterias. Sin embargo, lo más importante que encontramos en estos orgánulos en un conjunto de membranas que reciben el nombre de ''tilacoides''. Estos tilacoides contienen grandes cantidades de ''clorofila'', una molécula que sirve como //antena// de captación de la energía solar para poder realizar la [[fotosíntesis]]. El espacio interno del cloroplasto se llama ''estroma'' y es un líquido similar al citoplasma. |[img(350px+,)[http://www7.uc.cl/sw_educ/biologia/bio100/imagenes/66d3dc349dffilenameD235typeimagegif.gif]]| |Esquema de cómo es un cloroplasto.|c
La ''ecología'' es la parte de la Biología que estudia las relaciones entre los seres vivos entre sí y con el medio que los rodea. La [[investigación que hemos hecho|informeecología]] sobre microorganismos de agua dulce es un pequeño estudio ecológico en el que hemos hecho hincapié en la metodología. Para poder estudiar los ecosistemas debemos conocer las especies animales, vegetales,... que los habitan, con esta [[clave|https://sites.google.com/a/iesazucarera.es/claveplantasies/home]] podremos conocer algunas de las plantas que tenemos en nuestro instituto.
Dícese de los organismos que no son capaces de producir biomoléculas orgánicas a partir de moléculas inorgánicas (como el H~~2~~0 y el CO~~2~~). Por ese motivo, deben tomar las biomoléculas que necesitan de otros seres vivos (o muertos...).
/*{{{*/ Name:Automatic Background: #e5f0e5 Foreground: #0e190f PrimaryPale: #fcfdfc PrimaryLight: #accfae PrimaryMid: #4A6C4A PrimaryDark: #000000 SecondaryPale: #fdfcfc SecondaryLight: #cfacac SecondaryMid: #a15d5c SecondaryDark: #000000 TertiaryPale: #fcfcfd TertiaryLight: #afaccf TertiaryMid: #615ca1 TertiaryDark: #000000 /*}}}*/
/*** |Name|EmbedURL Plugin| |Created by|[[Steve Schneider]]| |Version|1.0|| !!!Description A TiddlyWikiMacro to easily create a link to an embedded url /*** Example: Typing this in a tiddler: {{{<<embedurl http://www.guttmacher.org/statecenter/spibs/spib_PLTA.pdf>>}}} yields this: <<embedurl http://www.guttmacher.org/statecenter/spibs/spib_PLTA.pdf>> !!!Code ***/ //{{{ config.macros.embedurl = {}; config.macros.embedurl.handler= function(place,macroName,params) { var key0=params[0]; wikify("[[Online|"+key0+"]]<br><html><iframe frameborder='0' scrolling='yes' style='border:0px' src="+key0+" width=100% height=400></iframe></html>",place) } //}}}
Llamamos Geología Histórica a la parte de la Geología que investiga cómo era la Tierra en el pasado, comenzando desde el mismo momento de la formación del planeta. Esto abarca ni más ni menos que 4500 millones de años, de modo que la historia es larga. Sin embargo, todo tiene un [[origen]]... Para reconstruir la historia geológica de una zona necesitamos //herramientas//. Las más importantes nos las aporta la [[Estratigrafía]], mediante una serie de [[principios básicos|Principios básicos de la Estratigrafía]] que debes conocer. ---- Una parte importante de la calificación de este tema depende de cómo hagáis el [[trabajo de la excursión]].
//{{{ config.shadowTiddlers["StyleSheetJSXGraph"]="/*{{{*/\n"+ ".jxgbox {\n"+ " position:relative; /* for IE 7 */\n"+ " overflow:hidden;\n"+ " background-color:#ffffff;\n"+ " border-style:solid;\n"+ " border-width:1px;\n"+ " border-color:#356AA0;\n"+ " -moz-border-radius:10px;\n"+ " -webkit-border-radius:10px;\n"+ "}\n"+ "\n"+ ".JXGtext {\n"+ " background-color:transparent;\n"+ " font-family: Arial, Helvetica, Geneva;\n"+ " padding:0px;\n"+ " margin:0px;\n"+ "}\n"+ "\n"+ ".navbar {\n"+ " color: #aaaaaa;\n"+ " background-color: #f5f5f5;\n"+ " padding: 2px;\n"+ " position: absolute;\n"+ " font-size: 10px;\n"+ " cursor: pointer;\n"+ " z-index: 100;\n"+ " right: 5px;\n"+ " bottom: 5px;\n"+ "}\n"+ "/*}}}*/"; store.addNotification("StyleSheetJSXGraph",refreshStyles); //}}}
/*** |''Name''|RevisionsCommandPlugin| |''Description''|provides access to tiddler revisions| |''Author''|FND| |''Contributors''|Martin Budden| |''Version''|0.3.3| |''Status''|@@beta@@| |''Source''|http://svn.tiddlywiki.org/Trunk/association/plugins/RevisionsCommandPlugin.js| |''CodeRepository''|http://svn.tiddlywiki.org/Trunk/association/plugins/| |''License''|[[BSD|http://www.opensource.org/licenses/bsd-license.php]]| |''CoreVersion''|2.6.0| |''Keywords''|serverSide| !Usage Extend [[ToolbarCommands]] with {{{revisions}}}. !Revision History !!v0.1 (2009-07-23) * initial release (renamed from experimental ServerCommandsPlugin) !!v0.2 (2010-03-04) * suppressed wikification in diff view !!v0.3 (2010-04-07) * restored wikification in diff view * added link to side-by-side diff view !To Do * strip server.* fields from revision tiddlers * resolve naming conflicts * i18n, l10n * code sanitizing * documentation !Code ***/ //{{{ (function($) { jQuery.twStylesheet(".diff { white-space: pre, font-family: monospace }", { id: "diff" }); var cmd = config.commands.revisions = { type: "popup", hideShadow: true, text: "revisions", tooltip: "display tiddler revisions", revTooltip: "", // TODO: populate dynamically? loadLabel: "loading...", loadTooltip: "loading revision list", selectLabel: "select", selectTooltip: "select revision for comparison", selectedLabel: "selected", compareLabel: "compare", linkLabel: "side-by-side view", revSuffix: " [rev. #%0]", diffSuffix: " [diff: #%0 #%1]", dateFormat: "YYYY-0MM-0DD 0hh:0mm", listError: "revisions could not be retrieved", handlePopup: function(popup, title) { title = this.stripSuffix("rev", title); title = this.stripSuffix("diff", title); var tiddler = store.getTiddler(title); var type = _getField("server.type", tiddler); var adaptor = new config.adaptors[type](); var limit = null; // TODO: customizable var context = { host: _getField("server.host", tiddler), workspace: _getField("server.workspace", tiddler) }; var loading = createTiddlyButton(popup, cmd.loadLabel, cmd.loadTooltip); var params = { popup: popup, loading: loading, origin: title }; adaptor.getTiddlerRevisionList(title, limit, context, params, this.displayRevisions); }, displayRevisions: function(context, userParams) { removeNode(userParams.loading); if(context.status) { var callback = function(ev) { var e = ev || window.event; var revision = resolveTarget(e).getAttribute("revision"); context.adaptor.getTiddlerRevision(tiddler.title, revision, context, userParams, cmd.displayTiddlerRevision); }; var table = createTiddlyElement(userParams.popup, "table"); for(var i = 0; i < context.revisions.length; i++) { var tiddler = context.revisions[i]; var row = createTiddlyElement(table, "tr"); var timestamp = tiddler.modified.formatString(cmd.dateFormat); var revision = tiddler.fields["server.page.revision"]; var cell = createTiddlyElement(row, "td"); createTiddlyButton(cell, timestamp, cmd.revTooltip, callback, null, null, null, { revision: revision }); cell = createTiddlyElement(row, "td", null, null, tiddler.modifier); cell = createTiddlyElement(row, "td"); createTiddlyButton(cell, cmd.selectLabel, cmd.selectTooltip, cmd.revisionSelected, null, null, null, { index:i, revision: revision, col: 2 }); cmd.context = context; // XXX: unsafe (singleton)!? } } else { $("<li />").text(cmd.listError).appendTo(userParams.popup); } }, revisionSelected: function(ev) { var e = ev || window.event; e.cancelBubble = true; if(e.stopPropagation) { e.stopPropagation(); } var n = resolveTarget(e); var index = n.getAttribute("index"); var col = n.getAttribute("col"); while(!index || !col) { n = n.parentNode; index = n.getAttribute("index"); col = n.getAttribute("col"); } cmd.revision = n.getAttribute("revision"); var table = n.parentNode.parentNode.parentNode; var rows = table.childNodes; for(var i = 0; i < rows.length; i++) { var c = rows[i].childNodes[col].firstChild; if(i == index) { if(c.textContent) { c.textContent = cmd.selectedLabel; } else { c.text = cmd.selectedLabel; } } else { if(c.textContent) { c.textContent = cmd.compareLabel; } else { c.text = cmd.compareLabel; } c.onclick = cmd.compareSelected; } } }, compareSelected: function(ev) { var e = ev || window.event; var n = resolveTarget(e); var context = cmd.context; context.rev1 = n.getAttribute("revision"); context.rev2 = cmd.revision; context.tiddler = context.revisions[n.getAttribute("index")]; context.format = "unified"; context.adaptor.getTiddlerDiff(context.tiddler.title, context, context.userParams, cmd.displayTiddlerDiffs); }, displayTiddlerDiffs: function(context, userParams) { var tiddler = context.tiddler; tiddler.title += cmd.diffSuffix.format([context.rev1, context.rev2]); tiddler.text = "{{diff{\n" + context.diff + "\n}}}"; tiddler.tags = ["diff"]; tiddler.fields.doNotSave = "true"; // XXX: correct? if(!store.getTiddler(tiddler.title)) { store.addTiddler(tiddler); } var src = story.getTiddler(userParams.origin); var tiddlerEl = story.displayTiddler(src, tiddler); var uri = context.uri.replace("format=unified", "format=horizontal"); var link = $('<a target="_blank" />').attr("href", uri).text(cmd.linkLabel); $(".viewer", tiddlerEl).prepend(link); }, displayTiddlerRevision: function(context, userParams) { var tiddler = context.tiddler; tiddler.title += cmd.revSuffix.format([tiddler.fields["server.page.revision"]]); tiddler.fields.doNotSave = "true"; // XXX: correct? if(!store.getTiddler(tiddler.title)) { store.addTiddler(tiddler); } var src = story.getTiddler(userParams.origin); story.displayTiddler(src, tiddler); }, stripSuffix: function(type, title) { var str = cmd[type + "Suffix"]; var i = str.indexOf("%0"); i = title.indexOf(str.substr(0, i)); if(i != -1) { title = title.substr(0, i); } return title; } }; var _getField = function(name, tiddler) { return tiddler.fields[name] || config.defaultCustomFields[name]; }; })(jQuery); //}}}
El sismograma es un gráfico que registra las ondas sísmicas que llegan a un lugar. El sismograma lo //dibuja// un aparato llamado ''sismógrafo''. En estos gráficos encontramos la información necesaria para saber a qué distancia y qué [[magnitud]] tiene el terremoto. Aquí tienes un ejemplo: | [img(600px+,)[http://www.geo.mtu.edu/UPSeis/images/chart.gif]] | |Sismograma y método de cálculo de la magnitud|c Mira [[esta infografía|http://www.eitb.com/infografias/detalle/603124/terremotos-tsunamis/]] para aprender más acerca de qué son los terremotos, los sismógrafos y los sismogramas.
/*** |''Name''|BinaryTiddlersPlugin| |''Description''|renders base64-encoded binary tiddlers as images or links| |''Author''|FND| |''Version''|0.3.2| |''Status''|@@beta@@| |''Source''|http://svn.tiddlywiki.org/Trunk/association/plugins/BinaryTiddlersPlugin.js| |''License''|[[BSD|http://www.opensource.org/licenses/bsd-license.php]]| |''CoreVersion''|2.5| !Code ***/ //{{{ (function($) { "use strict"; var ctfield = "server.content-type"; var plugin = config.extensions.BinaryTiddlersPlugin = { isWikiText: function(tiddler) { var ctype = tiddler.fields[ctfield]; if(ctype) { if (ctype === 'text/x-tiddlywiki') { return true; } return !this.isBinary(tiddler) && !this.isTextual(ctype); } else { return true; } }, // NB: pseudo-binaries are considered non-binary here isBinary: function(tiddler) { var ctype = tiddler.fields[ctfield]; return ctype ? !this.isTextual(ctype) : false; }, isTextual: function(ctype) { return ctype.indexOf("text/") === 0 || this.endsWith(ctype, "+xml") || ctype === 'application/json' || ctype === 'application/javascript'; }, endsWith: function(str, suffix) { return str.length >= suffix.length && str.substr(str.length - suffix.length) === suffix; }, isLink: function(tiddler) { return this.isBinary(tiddler) && tiddler.text.indexOf("<html>") !== -1; } }; // Disable edit for linked tiddlers (for now) // This will be changed to a GET then PUT config.commands.editTiddler.isEnabled = function(tiddler) { var existingTest = config.commands.editTiddler.isEnabled; if (existingTest) { return existingTest && !plugin.isLink(tiddler); } else { return !plugin.isLink(tiddler); } }; // hijack text viewer to add special handling for binary tiddlers var _view = config.macros.view.views.wikified; config.macros.view.views.wikified = function(value, place, params, wikifier, paramString, tiddler) { var ctype = tiddler.fields["server.content-type"]; if(params[0] === "text" && ctype && ctype !== 'text/x-tiddlywiki' && !tiddler.tags.contains("systemConfig") && !plugin.isLink(tiddler)) { var el; if(plugin.isBinary(tiddler)) { var uri = "data:%0;base64,%1".format([ctype, tiddler.text]); // TODO: fallback for legacy browsers if(ctype.indexOf("image/") === 0) { el = $("<img />").attr("alt", tiddler.title).attr("src", uri); } else { el = $("<a />").attr("href", uri).text(tiddler.title); } } else { el = $("<pre />").text(tiddler.text); } el.appendTo(place); } else { _view.apply(this, arguments); } }; // hijack edit macro to disable editing of binary tiddlers' body var _editHandler = config.macros.edit.handler; config.macros.edit.handler = function(place, macroName, params, wikifier, paramString, tiddler) { if(params[0] === "text" && plugin.isBinary(tiddler)) { return false; } else { _editHandler.apply(this, arguments); } }; // hijack autoLinkWikiWords to ignore binary tiddlers var _autoLink = Tiddler.prototype.autoLinkWikiWords; Tiddler.prototype.autoLinkWikiWords = function() { return plugin.isWikiText(this) ? _autoLink.apply(this, arguments) : false; }; }(jQuery)); //}}}
Unless you're delighted with the default theme you can make some quick changes by generating a new random color palette, hit this button to cycle through some alternatives. <<RandomColorPaletteButton saturation_pale:0.67 saturation_light:0.53 saturation_mid:0.43 saturation_dark:0.06 pale:0.99 light:0.85 mid:0.5 dark:0.31>> You can also change the look and feel completely by installing a new theme. To do this, find one you like in the @themes space, note down the name, and include it in this space by going to the space menu. You can reach the space menu by clicking on the blue and pink circle at the top-right of the page and chooshing "THIS SPACE". Here are a few to check out: * @pip * @caspian-ii * @basalt * @simplicity * @cheesecake * @jelly-doughnut (//Note that if you are using a custom TiddlySpace install, these themes may not be present.//)
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xl="http://www.w3.org/1999/xlink" version="1.1" viewBox="918 510 14 14" width="14pt" height="14pt"><metadata xmlns:dc="http://purl.org/dc/elements/1.1/"><dc:date>2010-06-06 13:07Z</dc:date><!-- Produced by OmniGraffle Professional 5.2.2 --></metadata><defs><radialGradient cx="0" cy="0" r="1" id="Gradient" gradientUnits="userSpaceOnUse"><stop offset="0" stop-color="white"/><stop offset="1" stop-color="#2b2b2b"/></radialGradient><radialGradient id="Obj_Gradient" xl:href="#Gradient" gradientTransform="translate(922.3752 513.7837) scale(11.4739436)"/></defs><g stroke="none" stroke-opacity="1" stroke-dasharray="none" fill="none" fill-opacity="1"><g><path d="M 929.6952 512.9018 C 927.1568 510.36337 923.0412 510.36337 920.5028 512.9018 C 917.9644 515.4402 917.9644 519.5558 920.5028 522.09418 C 923.0412 524.63257 927.1568 524.63257 929.6952 522.09418 C 932.2336 519.5558 932.2336 515.4402 929.6952 512.9018 M 925.099 515.7425 L 927.17633 513.66516 L 928.9318 515.42065 L 926.8545 517.498 L 928.9318 519.57532 L 927.17633 521.3308 L 925.099 519.25348 L 923.02167 521.3308 L 921.2662 519.57532 L 923.3435 517.498 L 921.2662 515.42065 L 923.02167 513.66516 Z" fill="url(#Obj_Gradient)"/></g></g></svg>
<?xml version="1.0" encoding="UTF-8" standalone="no"?> <svg id="svg2" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns="http://www.w3.org/2000/svg" height="29pt" viewBox="13 43 29 29" width="29pt" version="1.0" xmlns:cc="http://creativecommons.org/ns#" xmlns:dc="http://purl.org/dc/elements/1.1/" onmousedown="if(jQuery) jQuery(document).trigger('cSmaller', {elem:this, comp:{animations:1}})" onmouseup="if(jQuery) jQuery(document).trigger('cResize', {elem:this, comp:{animations:1}})"> <defs id="defs6"> <linearGradient id="linearGradient001" y2="27.646" gradientUnits="userSpaceOnUse" x2="-45.8" y1="27.646" x1="-57.66"> <stop id="stop1" stop-color="#CC9900" offset="0"/> <stop id="stop2" stop-color="#E8D18B" offset="0.66462"/> <stop id="stop3" stop-color="#CC9900" offset="1"/> </linearGradient></defs> <g id="icon" stroke-linecap="round" stroke-miterlimit="4"> <rect id="iconBG" style="stroke-dasharray:none;" fill-rule="evenodd" ry="4.1663" transform="matrix(0, -1, 1, 0, 0, 0)" height="25" width="25" stroke="#696969" stroke-linecap="round" stroke-miterlimit="4" y="15.167" x="-70.116" stroke-width="1.2" fill="none"/> <rect id="iconFG" stroke-width="0" fill-rule="evenodd" ry="2.3755" transform="matrix(0, -1, 1, 0, 0, 0)" width="22" stroke-miterlimit="4" y="16.646" x="-68.6" height="22" fill="url(#linearGradient001)" class="showOnHover" opacity="0"/> <g id="iconSymbol" stroke="#4d4d4d" stroke-linecap="round" stroke-miterlimit="4"> <path id="path2868" stroke-linejoin="miter" style="stroke-dasharray:none;" d="m54.317,7.6768a1.9973,1.9973,0,1,1,-3.9947,0,1.9973,1.9973,0,1,1,3.9947,0z" transform="matrix(0.8, 0, 0, 0.8, -13.3206, 45.4412)" stroke-width="2" fill="none"/> <path id="path2870" stroke-linejoin="miter" style="stroke-dasharray:none;" d="m28.659,61.002,1.5965,3.6122,3.918-0.52745,0.36073,2.2515m-14.924-6.2337,0.69646,2.1742,4.0617-1.7571,3.9354,0.03647" stroke-width="2.4" fill="none"/> <path id="path2872" stroke-linejoin="round" style="stroke-dasharray:none;" d="m30.528,55.591,3.4621,1.1984-1.7754,2.7075" stroke-width="2.4" fill="none"/> <path id="path2874" stroke-linejoin="round" style="stroke-dasharray:none;" d="m26.399,55.461-3.7651,0.63128-1.5048-3.1324" stroke-width="2.4" fill="none"/> </g> <rect id="overlay" opacity="0.01" ry="4.1663" style="stroke-dasharray:none;" fill-rule="evenodd" transform="matrix(0, -1, 1, 0, 0, 0)" height="25" width="25" stroke="#e6e6e6" stroke-linecap="round" stroke-miterlimit="4" y="15.167" x="-70.116" stroke-width="1.2" fill="#e6e6e6" onmouseover="if(jQuery) jQuery(document).trigger('cTglBg', {elem:this, comp:{animations:1}})" onmouseout="if(jQuery) jQuery(document).trigger('cTglBg', {elem:this, comp:{animations:1}})"/> </g> </svg>
There are a lot of interesting people using ~TiddlySpace that you might like to keep track of and interact with. There are a number of ways of doing this. If you see a number in the speech bubble in one of your tiddlers, it means that someone is writing about the same thing as you. You can find out what they're saying by clicking on it. Likewise, if you see something interesting in someone else's space, you can respond to it and write up your own thoughts on the subject by clicking "Reply to this tiddler". Additionally, if you find anyone interesting, or you find an interesting looking space and you'd like to know when it's changed, you can "follow" that space. To do this, simply create a tiddler with the title: {{{@space-name}}} and tag it {{{follow}}}. If you want, you can store some notes about that space in the body of the tiddler. If you then want to know what happening, simply [[include|How do I include/exclude spaces?]]@docs the @tivity space and then visit your activity stream at [[/activity|/activity]], or just visit the @tapas space directly. !Not sure who to follow? Here's a few suggestions: * @fnd * @cdent * @pmario * @bengillies * @dickon
@@Please do not modify this tiddler; it was created automatically upon space creation.@@
<<tiddler SideBarTabs>> /% *Renaming this tiddler, will make the right sidebar invisible. *Using this tiddler with the theme, makes it possible to keep the original SideBarTabs tiddler. !!!old content <<tiddler SidebarButtons>> <<slider chkSliderSideBarTabs SideBarTabs "Index »" "display the timeline">> %/
|''Name:''|[[TWDefaultTheme]]| |''Description:''|Your description here!| |''Generator:''|[[TW FreeStyle|http://FreeStyle.tiddlyspot.com]]| |''Gen.Description:''|Automatically generated from: TWDefaultThemeProject| |''PageTemplate:''|PageTemplate| |''ViewTemplate:''|ViewTemplate| |''EditTemplate:''|EditTemplate| |''RevisionTemplate:''|RevisionTemplate| |''StyleSheet:''|##StyleSheet| !StyleSheet /*{{{*/ /* horizontal main menu stuff if created by list */ .noBullets a{ padding-top: 0.2em; padding-bottom: 0.2em; } .noBullets ul, .noBullets ol { list-style:none; padding:0; margin: 0; } .noBullets li { float: left; } [[StyleSheetTiddlySpace]] /*}}}*/
Esta pregunta es fácil. Se puede resolver con una simple regla de tres. Si consideramos que la corteza tiene 40km de espesor queda así: | Longitud(km) | % | | 6370 | 100 | | 40 | x | lo que da ''un mísero 0.63%''. Es decir, que la corteza no es más que una peliculilla finísima que rodea la Tierra. Es insignificante comparada con el manto y el núcleo, pero es donde vivimos y de dónde sacamos todos los recursos geológicos (como el carbón, petróleo, minerales,...). Aún así, tiene varios kilómetros de profundidad lo cual es mucho para el ser humano. No podemos atravesarla. El sondeo más profundo ha alcanzado los 16km, muy lejos todavía del manto. Es posible que nunca lleguemos a sacar muestras de rocas del manto. ¡Con lo interesante que sería...!
A series of plugins to link Scrapbooked pages to tiddlers. They all share the dependency on the Firefox addin Scrapbook, which saves a Web page to a local archive in a predictable location. The local TiddlyWiki must be sync'd to a server location along with the Scrapbook directory for it to work.
*PRIMER DÍA: Cena incluida *SEGUNDO DÍA: Desayuno y bolsa picnic incluida *No tiendas
/*{{{*/ Background: #dce7f8 Foreground: #061122 PrimaryPale: #fafcfe PrimaryLight: #c4d4ed PrimaryMid: #4874b6 PrimaryDark: #4a4e53 SecondaryPale: #fefdfz SecondaryLight: #ede4c4 SecondaryMid: #b69e48 SecondaryDark: #53514a TertiaryPale: #fefcfz TertiaryLight: #edd5c4 TertiaryMid: #b67648 TertiaryDark: #534e4a Error: #f88 ColorPaletteParameters: HSL([216|11], [0.67|0.53|0.43|0.06],[0.31|0.5|0.85|0.99]) /*}}}*/
El primer proyecto del curso está dedicado al origen y evolución de nuestro planeta durante los primeros cientos de millones de años. Después de todo, la Geología se encarga del estudio de la Tierra, así que sería conveniente saber algo acerca de cómo se formó. El primer eón de la historia terrestre es el [[Hádico|El Hádico]]. A éste le sigue el [[Arcaico|El Arcaico]]. Durante estas etapas tienen lugar acontecimientos fundamentales para comprender cómo es la Tierra hoy en día. Aparte de la formación del planeta, se formó la Luna, se diferenciaron las capas internas, se formó la hidrosfera y la atmósfera primitiva [[evolucionó|http://www.youtube.com/watch?v=u4tEVaobvrs]] hasta ser completamente diferente a la original. ---- Al acabar el proyecto deberás entregar un dossier que incluya: *Línea del tiempo con todos los acontecimientos estudiados. *Métodos de datación radiométrica. **Fundamento teórico. **Principales métodos. **Simulación por ordenador. **Modelo de laboratorio. **Problemas realizados. *Estudio monográfico de los meteoritos. *Origen y evolución de la atmósfera. *Origen y evolución de la hidrosfera. *Concepto de cratón. Mapa con la localización de las formaciones geológicas más antiguas de la Tierra. *Redacción acerca de la Tierra primitiva. ---- En este enlace encontrarás la plantilla que corresponde a las [[normas de publicación|https://docs.google.com/document/d/1JnE-y691cnp4xbdYYV9O0DVPAgq_AvKxmhO0I4h0SAA/edit?usp=sharing]] . Sólo tienes que sustituir el texto que aparece con tu texto. Tienes que haber iniciado sesión en tu cuenta de Google para poder guardarte una copia de la plantilla en tu Drive y luego utilizarla.
Search <<gotoTiddler search inputstyle:"width:90%" liststyle:"z-index: 5;">>
/*** |''Name:''|XListPlugin| |''Description:''|Provides a {{{<<xList>>}}} macro, that prepares the list for drag and drop sorting| |''Author:''|Mario Pietsch| |''Version:''|0.2.0| |''Date:''|2010.08.03| |''Status:''|''beta''| |''Source:''|http://apm-plugins.tiddlyspot.com/#XListPlugin| |''License''|[[MIT License]]| |''CoreVersion:''|2.5.0| |''Requires:''|XCaseListPlugin | |''Documentation:''|this file| |''Keywords:''|list extended sort filter| !!!Description <<< This macro is only needed if you want to use StylingPackage! If you call {{{ <<xList>> }}} without any parameter you will get a non sortet list of all tiddlers. !!!!UseCase {{{ <<xList xCase [prefix] [regExp] [tag]>> }}} >*prefix .. can be any string. Default is "sort." >*regExp .. can be any valid regExp, that runs against the tiddler title. Default is "." (any char except linebreaks) >*tag .. "[tag[myTag]]" ''If you have spaces inside the tag, it has to be covered inside double quotes !!'' {{{ eg: <<xList xCase "sort." "." "[tag[with spaces]]">> }}} >The above configuration will produce a custom field named {{{sort.with.spaces}}}. Because custom fields have to be lower case and spaces are not allowed. Since the tag name is used for the custom field, one tiddler can be part of different sorted lists. <<< !!!ToDo <<< *Test together with MatchTagsPlugin <<< !!!History <<< *V 0.2.0 - 2010.08.03 **initial release <<< ***/ /*{{{*/ config.macros.xList = {}; config.macros.xList.xCase = config.macros.list.xCase; config.macros.xList.handler = function(place,macroName,params) { var type = params[0] || "xCase"; var sortField = params[1] || "sort."; var tag = params[2] || "."; var tag = params[3] || ""; tag = tag.toLowerCase(); sortField = sortField.toLowerCase(); var match = tag.match(/tag *\[(.+) *\] *\]/im); // get the tag text if (match != null) tag = match[1]; var res = tag.replace(/^\s+|\s+$/g, ""); // remove whitespace start and end if (res != null) tag = res; res = tag.replace(/ +/g, "."); // replace spaces with a dot if (res != null) tag = res; params[1] = sortField+tag; var list = document.createElement("ul"); list.setAttribute('class', 'xList'); list.setAttribute('tag', tag); list.setAttribute('sortfield', sortField); place.appendChild(list); if(this[type].prompt) { createTiddlyElement(list,"li",null,"listTitle",this[type].prompt); } var results; if(this[type].handler) { // console.log('params: ', params) results = this[type].handler(params); } var li; for(var t = 0; t < results.length; t++) { li = document.createElement("li"); li.setAttribute('id', typeof results[t] == "string" ? results[t] : results[t].title); list.appendChild(li); createTiddlyLink(li,typeof results[t] == "string" ? results[t] : results[t].title,true); } }; /*}}}*/
|''Name:''|[[NeUIemTheme03]]| |''Description:''|Changes the right sidebar| |''Generator:''|[[TW FreeStyle|http://FreeStyle.tiddlyspot.com]]| |''Gen.Description:''|Handcrafted by @pmario| |''PageTemplate:''|NeUIemTheme##PageTemplate| |''ViewTemplate:''|NeUIemTheme##ViewTemplate| |''EditTemplate:''|NeUIemTheme##EditTemplate| |''RevisionTemplate:''|NeUIemTheme##RevisionTemplate| |''StyleSheet:''|##StyleSheet| !StyleSheet /*{{{*/ [[NeUIemTheme##StyleSheet]] #sidebarTabs .tabset{ float: right; width: 1em; padding: 0; } #sidebarTabs .tabset:hover{ width: auto; } #sidebarTabs .tabset .tab{ overflow: hidden; display: block; } /*}}}*/
|''Name:''|[[NeUIemTheme02]]| |''Description:''|Changes the right sidebar| |''Generator:''|[[TW FreeStyle|http://FreeStyle.tiddlyspot.com]]| |''Gen.Description:''|Handcrafted by @pmario| |''PageTemplate:''|NeUIemTheme##PageTemplate| |''ViewTemplate:''|NeUIemTheme##ViewTemplate| |''EditTemplate:''|NeUIemTheme##EditTemplate| |''RevisionTemplate:''|NeUIemTheme##RevisionTemplate| |''StyleSheet:''|##StyleSheet| !StyleSheet /*{{{*/ [[NeUIemTheme##StyleSheet]] #sidebarTabs .tabset{ float: left; width: 1em; padding: 0; } #sidebarTabs .tabset:hover{ width: auto; position:absolute; right: 86%; padding-right: 8%; z-index: 10; } #sidebarTabs .tabset .tab{ overflow: hidden; display: block; } /*}}}*/
|''Name:''|[[NeUIemTheme01]]| |''Description:''|Changes the right sidebar| |''Generator:''|[[TW FreeStyle|http://FreeStyle.tiddlyspot.com]]| |''Gen.Description:''|Handcrafted by @pmario| |''PageTemplate:''|NeUIemTheme##PageTemplate| |''ViewTemplate:''|NeUIemTheme##ViewTemplate| |''EditTemplate:''|NeUIemTheme##EditTemplate| |''RevisionTemplate:''|NeUIemTheme##RevisionTemplate| |''StyleSheet:''|##StyleSheet| !StyleSheet /*{{{*/ [[NeUIemTheme##StyleSheet]] #sidebarTabs .tabset{ float: left; width: 1em; padding: 0; } #sidebarTabs .tabset:hover{ width: auto; } #sidebarTabs .tabset .tab{ overflow: hidden; display: block; } /*}}}*/
Los niveles de organización de los seres vivos son los siguientes: #Bioelementos #Biomoléculas #Orgánulos celulares #Células #Tejidos #Órganos #Aparatos y sistemas #Organismos #Poblaciones #Comunidades
|''Name:''|[[NeUIemTheme04]]| |''Description:''|Play with the toolbar visibility| |''Generator:''|[[TW FreeStyle|http://FreeStyle.tiddlyspot.com]]| |''Gen.Description:''|Handcrafted by @pmario| |''PageTemplate:''|NeUIemTheme##PageTemplate| |''ViewTemplate:''|NeUIemTheme##ViewTemplate| |''EditTemplate:''|NeUIemTheme##EditTemplate| |''RevisionTemplate:''|NeUIemTheme##RevisionTemplate| |''StyleSheet:''|##StyleSheet| !StyleSheet /*{{{*/ [[NeUIemTheme03##StyleSheet]] /* Play with the toolbar visibility */ .toolbar { visibility: hidden; /* opacity: 0.2; */ } .selected .toolbar { visibility: visible; /* opacity: 1; */ } /*}}}*/
iVBORw0KGgoAAAANSUhEUgAAABIAAAASCAYAAABWzo5XAAAABHNCSVQICAgIfAhkiAAAABl0RVh0U29mdHdhcmUAd3d3Lmlua3NjYXBlLm9yZ5vuPBoAAAFzSURBVDiNzZK/S4JRFIafK0HQUDQJtTmEIDTVUI1B/0BDcwVBkwkf+Ae4CDm5uehmBIKjS6YFUqQEElFogwpfESIhlImgp8EfqN/3oYNDZzvvee9zz+W+Cs6FGZRtFpD/CZobbk5O1nE4lqY6mM9Xubh4NQdVqw1Cob2JEBFhezs6oo08LR5/I52uTARFoy/c339YgwDOzlJ0OtaJ+Plp4fXeGnQDKJ+vEg4/WYL8/gd0/dugKzjXgZVh0W5foFA4ZnFxfsRcLtdxOsM0m+1xzrsNyI2rn58NfL47w62admMGAcjZgKzZJBh8pFj8GvTpdIVYrGBmBcjagKTZpNXq4PGkAGi3O7jd11YQgKQSEZQKhIFDM0cisU+pVOf09MoKEhHRjvqgJeAZWB13ra0tU6v9Uqs1zSA64BLR6kqkmxmlAjvApRnMonTgQETLwFCOeoILiEwBifQ2yfSFwUbDpVRgC9gFNoGNnpyj+8NJEc2QjT9Byo8ryc6AHQAAAABJRU5ErkJggg==
/*** |''Name:''|FollowTiddlersButtonPlugin| |''Description:''|Wraps followTiddlers macro into a button, which needs to be clicked to activate it.| |''Author:''|Mario Pietsch| |''Source:''|| |''Version:''|0.1.0| |''Status:''|beta| |''Date:''|2010.12.06| |''Requires:''|TiddlySpaceFollowingPlugin| |''License:''|BSD| |''~CoreVersion:''|| Click the [?] button, to get {{{<<followTiddlers>>}}} macro activated. !!!!Use <<< {{{ <<followTiddlersButton>> instead of <<followTiddlers>> }}} <<< !!!!ViewTemplate <<< {{{ <div class='followPlaceHolder' macro='followTiddlersButton'> <span macro="view title replyLink"></span> </div> }}} <<< ***/ /*{{{*/ version.extensions.TiddlySpaceHacks = {major: 0, minor: 1, revision: 0, date: new Date(2010,12,06)}; (function ($) { var ftb; config.macros.followTiddlersButton = ftb = { // should be done for easy localisation locale: { lblButton: '?', txtButton: 'Find other spaces, that contain a tiddler with the same title', }, handler: function(place, macroName, params, wikifier, paramString, tiddler){ if (!config.macros.followTiddlers) return false; var btn = null; // createTiddlyButton(parent, text, tooltip, action, className, id, accessKey, attribs) btn = createTiddlyButton(place, ftb.locale.lblButton, ftb.locale.txtButton, ftb.onClick, 'followButton'); // passing all arguments to the function $(btn).data('data', arguments); }, onClick: function() { var a = $(this).data("data"); if (a) { config.macros.followTiddlers.handler.apply(config.macros.followTiddlers, a); $(this).remove(); } return false; } }; // end of hello world }) (jQuery); /*}}}*/
La magnitud de un terremoto es una medida de la energía que se ha liberado en ese seismo. Podemos decir que un terremoto de elevada magnitud ha sido fuerte y que uno de poca magnitud ha sido débil. No estamos diciendo nada acerca de la destrucción o de los muertos que ha producido. Un terremoto de mucha magnitud puede no producir ningún daño (por ejemplo si tiene lugar en una zona totalmente despoblada). Es importante darse cuenta que __la magnitud del terremoto no depende de la distancia__ a la que estemos de él: es la misma en el epicentro y a 1000 km de él. La magnitud de un seismo se suele dar en la escala de Richter. Hay que tener en cuenta que es una escala un poco especial porque en ella los decimales cuentan (y mucho como vemos [[aquí|http://www.youtube.com/watch?v=yNN7eDXzlMo]])
<script> var toDate = function(datestr) { var a = datestr.split('.'); return new Date(a[2]*1,a[1]*1-1,a[0]*1); }; //TU EDICIÓN EMPIEZA AQUÍ var table = [ ['23.10.2012',62.7], //FECHA Y SOMBRA DEL PRIMER DÍA ['2.11.2012',70.5], ['5.11.2012',72], ['13.11.2012',80.6], ['27.11.2012',92], //COPIA ESTA LÍNEA ENTERA Y PÉGALA POR DEBAJO. PON LA FECHA CORRECTA Y LA LONGITUD ]; //AQUÍ ACABA TU EDICIÓN //AQUÍ ACABA TU EDICIÓN //AQUÍ ACABA TU EDICIÓN //AQUÍ ACABA TU EDICIÓN var plotChartGoogleStyle = function(board, x, y, axisHeight) { var points = [], i, p; board.suspendUpdate(); points.push(board.createElement('point', [0, 0], {visible:false, name:'', fixed:true, withLabel:false})); for (i=0;i<x.length;i++) { p = board.create('point', [x[i],y[i]], {strokeWidth:2, strokeColor:'#ffffff', highlightStrokeColor:'#0077cc', fillColor:'#0077cc', highlightFillColor:'#0077cc', style:6, name:'', fixed:true}); points.push(p); } points.push(board.create('point', [0,0], {visible:false, name:'', fixed:true})); // Filled area. We need two additional points [start,axisHeight] and [end,axisHeight] board.create('polygon',points, {withLines:false,withLabel:false,fillColor:'none'}); // Curve: board.create('curve', [x,y], {strokeWidth:3, strokeColor:'#0077cc', highlightStrokeColor:'#0077cc'} ); board.unsuspendUpdate(); }; var i, x = [], y = [], birthday = toDate(table[0][0]); alert(birthday); var brd = JXG.JSXGraph.initBoard('jxgbox', {boundingbox:[-5,150,350,-10]}); brd.create('axis',[[0,270],[0,270]]); brd.create('axis',[[0,0],[0,100]]); brd.highlightInfobox = function(x,y,el) { var date = new Date(x*1000.0*60.0*60.0*24.0 + birthday.getTime()); this.infobox.setText('<span style="color:black;font-weight:bold">' + date.getDate() + '.' + (date.getMonth()+1) + '.' + date.getFullYear() + ', ' + y + ' cm</span>'); this.infobox.rendNode.style.border = 'groove ' + el.visProp['strokecolor'] + ' 2px'; this.infobox.rendNode.style.padding = '5px'; this.infobox.rendNode.style.backgroundColor = 'white'; } // Transform the dates into days from birthday for (i=0;i<table.length;i++) { x[i] = Math.round(((toDate(table[i][0])).getTime()-birthday.getTime())/(1000.0*60.0*60.0*24.0)); y[i] = table[i][1]*1; } plotChartGoogleStyle(brd,x,y,270); var reg = brd.create('functiongraph',[JXG.Math.Numerics.regressionPolynomial(3,x,y)],{strokeColor:'white',dash:3}); </script>
<!--{{{--> <div class='toolbar' macro='toolbar [[ToolbarCommands::ViewToolbar]] icons:yes height:16 width:16 more:popup'> </div> <div class='heading'> <span class='spaceSiteIcon' macro='tiddlerOrigin label:no spaceLink:yes height:48 width:48 preserveAspectRatio:yes'> </span> <span class="titleBar"> <div class='title' macro='view title text'></div> <span class="subtitle" macro='viewRevisions page:5'> last modified on <span macro="view modified date"></span> </span> <div macro="view title replyLink"></div> </span> <span class='followPlaceHolder' macro='followTiddlers'></span> <span class='modifierIcon' macro='view modifier SiteIcon label:no spaceLink:yes height:48 width:48 preserveAspectRatio:yes'> </span> <div class='tagClear'></div> </div> <div class='content'> <div class='viewer' macro='view text wikified'></div> </div> <div class='tagInfo'> <div class='tidTags' macro='tags'></div> <div class='tagging' macro='tagging'></div> </div> <!--}}}-->
/*** |Name|GotoPlugin| |Source|http://www.TiddlyTools.com/#GotoPlugin| |Documentation|http://www.TiddlyTools.com/#GotoPluginInfo| |Version|1.9.? - hacked because of: https://groups.google.com/forum/?fromgroups#!topic/tiddlywiki/Pwt4ogJIS-s| |Author|Eric Shulman| |License|http://www.TiddlyTools.com/#LegalStatements| |~CoreVersion|2.1| |Type|plugin| |Description|view any tiddler by entering it's title - displays list of possible matches| ''View a tiddler by typing its title and pressing //enter//.'' As you type, a list of possible matches is displayed. You can scroll-and-click (or use arrows+enter) to select/view a tiddler, or press escape to close the listbox to resume typing. When the listbox is not displayed, pressing //escape// clears the current input. !!!Documentation >see [[GotoPluginInfo]] !!!Configuration <<< *Match titles only after {{twochar{<<option txtIncrementalSearchMin>>}}} or more characters are entered.<br>Use down-arrow to start matching with shorter input. //Note: This option value is also set/used by [[SearchOptionsPlugin]]//. *To set the maximum height of the listbox, you can create a tiddler tagged with <<tag systemConfig>>, containing: //{{{ config.macros.gotoTiddler.listMaxSize=10; // change this number //}}} <<< !!!Revisions <<< 2009.05.22 [1.9.2] use reverseLookup() for IncludePlugin |please see [[GotoPluginInfo]] for additional revision details| 2006.05.05 [0.0.0] started <<< !!!Code ***/ //{{{ version.extensions.GotoPlugin= {major: 1, minor: 9, revision: 2, date: new Date(2009,5,22)}; // automatically tweak shadow SideBarOptions to add <<gotoTiddler>> macro above <<search>> config.shadowTiddlers.SideBarOptions=config.shadowTiddlers.SideBarOptions.replace(/<<search>>/,"{{button{goto}}}\n<<gotoTiddler>><<search>>"); if (config.options.txtIncrementalSearchMin===undefined) config.options.txtIncrementalSearchMin=3; config.macros.gotoTiddler= { listMaxSize: 10, listHeading: 'Found %0 matching title%1...', searchItem: "Search for '%0'...", handler: function(place,macroName,params,wikifier,paramString,tiddler) { var quiet =params.contains("quiet"); var showlist =params.contains("showlist"); var search =params.contains("search"); params = paramString.parseParams("anon",null,true,false,false); var instyle =getParam(params,"inputstyle",""); var liststyle =getParam(params,"liststyle",""); var filter =getParam(params,"filter",""); var html=this.html; var keyevent=window.event?"onkeydown":"onkeydown"; // IE event fixup for ESC handling html=html.replace(/%keyevent%/g,keyevent); html=html.replace(/%search%/g,search); html=html.replace(/%quiet%/g,quiet); html=html.replace(/%showlist%/g,showlist); html=html.replace(/%display%/g,showlist?'block':'none'); html=html.replace(/%position%/g,showlist?'static':'absolute'); html=html.replace(/%instyle%/g,instyle); html=html.replace(/%liststyle%/g,liststyle); html=html.replace(/%filter%/g,filter); if (config.browser.isIE) html=this.IEtableFixup.format([html]); var span=createTiddlyElement(place,'span'); span.innerHTML=html; var form=span.getElementsByTagName("form")[0]; if (showlist) this.fillList(form.list,'',filter,search,0); }, html: '<form onsubmit="return false" style="display:inline;margin:0;padding:0">\ <input name=gotoTiddler type=text autocomplete="off" accesskey="G" style="%instyle%"\ title="Enter title text... ENTER=goto, SHIFT-ENTER=search for text, DOWN=select from list"\ onfocus="this.select(); this.setAttribute(\'accesskey\',\'G\');"\ %keyevent%="return config.macros.gotoTiddler.inputEscKeyHandler(event,this,this.form.list,%search%,%showlist%);"\ onkeyup="return config.macros.gotoTiddler.inputKeyHandler(event,this,%quiet%,%search%,%showlist%);">\ <select name=list style="display:%display%;position:%position%;%liststyle%"\ onchange="if (!this.selectedIndex) this.selectedIndex=1;"\ onblur="this.style.display=%showlist%?\'block\':\'none\';"\ %keyevent%="return config.macros.gotoTiddler.selectKeyHandler(event,this,this.form.gotoTiddler,%showlist%);"\ onclick="return config.macros.gotoTiddler.processItem(this.value,this.form.gotoTiddler,this,%showlist%);">\ </select><input name="filter" type="hidden" value="%filter%">\ </form>', IEtableFixup: "<table style='width:100%;display:inline;padding:0;margin:0;border:0;'>\ <tr style='padding:0;margin:0;border:0;'><td style='padding:0;margin:0;border:0;'>\ %0</td></tr></table>", getItems: function(list,val,filter) { if (!list.cache || !list.cache.length || val.length<=config.options.txtIncrementalSearchMin) { // starting new search, fetch and cache list of tiddlers/shadows/tags list.cache=new Array(); if (filter.length) { var fn=store.getMatchingTiddlers||store.getTaggedTiddlers; var tiddlers=store.sortTiddlers(fn.apply(store,[filter]),'title'); } else var tiddlers=store.reverseLookup('tags','excludeLists'); for(var t=0; t<tiddlers.length; t++) list.cache.push(tiddlers[t].title); if (!filter.length) { for (var t in config.shadowTiddlers) list.cache.pushUnique(t); var tags=store.getTags(); for(var t=0; t<tags.length; t++) list.cache.pushUnique(tags[t][0]); } } var found = []; var match=val.toLowerCase(); for(var i=0; i<list.cache.length; i++) if (list.cache[i].toLowerCase().indexOf(match)!=-1) found.push(list.cache[i]); return found; }, getItemSuffix: function(t) { if (store.tiddlerExists(t)) return ""; // tiddler if (store.isShadowTiddler(t)) return " (shadow)"; // shadow return " (tag)"; // tag }, fillList: function(list,val,filter,search,key) { if (list.style.display=="none") return; // not visible... do nothing! var indent='\xa0\xa0\xa0'; var found = this.getItems(list,val,filter); // find matching items... found.sort(); // alpha by title while (list.length > 0) list.options[0]=null; // clear list var hdr=this.listHeading.format([found.length,found.length==1?"":"s"]); list.options[0]=new Option(hdr,"",false,false); for (var t=0; t<found.length; t++) list.options[list.length]= new Option(indent+found[t]+this.getItemSuffix(found[t]),found[t],false,false); if (search) list.options[list.length]=new Option(this.searchItem.format([val]),"*",false,false); list.size=(list.length<this.listMaxSize?list.length:this.listMaxSize); // resize list... list.selectedIndex=key==38?list.length-1:key==40?1:0; }, keyProcessed: function(ev) { // utility function ev.cancelBubble=true; // IE4+ try{event.keyCode=0;}catch(e){}; // IE5 if (window.event) ev.returnValue=false; // IE6 if (ev.preventDefault) ev.preventDefault(); // moz/opera/konqueror if (ev.stopPropagation) ev.stopPropagation(); // all return false; }, inputEscKeyHandler: function(event,here,list,search,showlist) { if (event.keyCode==27) { if (showlist) { // clear input, reset list here.value=here.defaultValue; this.fillList(list,'',here.form.filter.value,search,0); } else if (list.style.display=="none") // clear input here.value=here.defaultValue; else list.style.display="none"; // hide list return this.keyProcessed(event); } return true; // key bubbles up }, inputKeyHandler: function(event,here,quiet,search,showlist) { var key=event.keyCode; var list=here.form.list; var filter=here.form.filter; // non-printing chars bubble up, except for a few: if (key<48) switch(key) { // backspace=8, enter=13, space=32, up=38, down=40, delete=46 case 8: case 13: case 32: case 38: case 40: case 46: break; default: return true; } // blank input... if down/enter... fall through (list all)... else, and hide or reset list if (!here.value.length && !(key==40 || key==13)) { if (showlist) this.fillList(here.form.list,'',here.form.filter.value,search,0); else list.style.display="none"; return this.keyProcessed(event); } // hide list if quiet, or below input minimum (and not showlist) list.style.display=(!showlist&&(quiet||here.value.length<config.options.txtIncrementalSearchMin))?'none':'block'; // non-blank input... enter=show/create tiddler, SHIFT-enter=search for text if (key==13 && here.value.length) return this.processItem(event.shiftKey?'*':here.value,here,list,showlist); // up or down key, or enter with blank input... shows and moves to list... if (key==38 || key==40 || key==13) { list.style.display="block"; list.focus(); } this.fillList(list,here.value,filter.value,search,key); return true; // key bubbles up }, selectKeyHandler: function(event,list,editfield,showlist) { if (event.keyCode==27) // escape... hide list, move to edit field { editfield.focus(); list.style.display=showlist?'block':'none'; return this.keyProcessed(event); } if (event.keyCode==13 && list.value.length) // enter... view selected item { this.processItem(list.value,editfield,list,showlist); return this.keyProcessed(event); } return true; // key bubbles up }, processItem: function(title,here,list,showlist) { if (!title.length) return; list.style.display=showlist?'block':'none'; if (title=="*") { story.search(here.value); return false; } // do full-text search if (!showlist) here.value=title; story.displayTiddler(null,title); // show selected tiddler return false; } } //}}}
<?xml version="1.0" encoding="UTF-8" standalone="no"?> <svg id="svg2" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns="http://www.w3.org/2000/svg" height="29pt" viewBox="13 43 29 29" width="29pt" version="1.0" xmlns:cc="http://creativecommons.org/ns#" xmlns:dc="http://purl.org/dc/elements/1.1/" onclick="if(jQuery) jQuery(document).trigger('cSaveChanges', {elem:this, comp:{menue:1}})" onmousedown="if(jQuery) jQuery(document).trigger('cSmaller', {elem:this, comp:{animations:1}})" onmouseup="if(jQuery) jQuery(document).trigger('cResize', {elem:this, comp:{animations:1}})" title="Save all tiddlers to the web"> <metadata id="metadata14"> <rdf:RDF> <cc:Work rdf:about=""> <dc:format>image/svg+xml</dc:format> <dc:type rdf:resource="http://purl.org/dc/dcmitype/StillImage"/> <dc:title/> <dc:rights> <cc:Agent> <dc:title>http://creativecommons.org/licenses/by-nc-sa/3.0/at/</dc:title> </cc:Agent> </dc:rights> <dc:source>http://iconbuilder.tiddlyspace.com</dc:source> <dc:creator> <cc:Agent> <dc:title>Mario Pietsch</dc:title> </cc:Agent> </dc:creator> </cc:Work> </rdf:RDF> </metadata> <defs id="defs_bBgTrans"> <linearGradient id="linearGradient001" y2="27.646" gradientUnits="userSpaceOnUse" x2="-45.8" y1="27.646" x1="-57.66"> <stop id="stop1" stop-color="#6BB546" offset="0"/> <stop id="stop2" stop-color="#B5DAA2" offset="0.66462"/> <stop id="stop3" stop-color="#6BB546" offset="1"/> </linearGradient></defs> <g id="icon"> <rect id="iconBG" stroke="#696969" ry="4.1663" transform="matrix(0,-1,1,0,0,0)" height="25" width="25" y="15.167" x="-70.116" stroke-width="1.2" fill="none" class="showBG"/> <rect id="iconFG" stroke-width="0" fill-rule="evenodd" ry="2.3755" transform="matrix(0,-1,1,0,0,0)" width="22" y="16.646" x="-68.6" height="22" fill="url(#linearGradient001)" class="showFG"/> <g id="iconSymbol" stroke-linejoin="round" stroke="#4d4d4d" stroke-linecap="round" stroke-miterlimit="4" fill="none" class="showSY"> <path d="m27.73,61.043,3.2374,1.8989-1.9264,0,0,3.2808-2.8131,0,0-3.2808-1.7352,0,3.2374-1.8989z" stroke-width="1.3"/> <g transform="matrix(1.0777574,0.08745459,-0.09502165,0.99192987,39.787119,-3.5323126)" fill="none"> <path d="m-8.7109,55.478,8.1326-1.4778,0.13409,8.5172" stroke-width="1.3"/> <path d="m-8.623,55.846-1.7958,9.5134" stroke-width="1.5"/> <path d="M-30.522,13.653-13.966,26.834" transform="matrix(0.8,0,0,0.8,13,43)" stroke-width="2"/> <path d="m-32.798,31.699,17.733-19.616" transform="matrix(0.8,0,0,0.8,13,43)" stroke-width="2"/> </g> </g> <rect id="overlay" stroke="#696969" opacity="0" ry="4.1663" transform="matrix(0,-1,1,0,0,0)" height="25" width="25" y="15.167" x="-70.116" stroke-width="1.2" class="showOV"/> </g> </svg>
/*** !EmasticPercent ***/ /*{{{*/ .dp5, .dp10,.dp15,.dp20,.dp25,.dp30,.dp33,.dp35,.dp40,.dp45,.dp50, .dp55,.dp60,.dp65,.dp67,.dp70,.dp75,.dp80,.dp85,.dp90,.dp95,.dp100 {float:left; display: inline; } .dp5{width:5%;} .dp10{width:10%;*width:9.9%;} .dp15{width:15%;*width:14.9%;} .dp20 {width:20%;*width:19.9%;} .dp25{width:25%;*width:24.9%;} .dp30{width:30%;*width:29.9%;} .dp33 {width:33.33%;*width:33.3%;} .dp35{width:35%;*width:34.9%;} .dp40{width:40%;*width:39.9%;} .dp45 {width:45%;*width:44.9%;} .dp50{width:50%;*width:49.9%;} .dp55{width:55%;*width:54.9%;} .dp60 {width:60%;*width:59.9%;} .dp65{width:65%;*width:64.9%;} .dp67{width:66.67%;*width:66.6%;} .dp70 {width:70%;*width:69.9%;} .dp75{width:75%;*width:74.9%;} .dp80{width:80%;*width:79.9%;} .dp85 {width:85%;*width:84.9%;} .dp90{width:90%;*width:89.9%;} .dp95{width:95%;*width:94.9%;} .dp100{width:100%;*width:99.9%;} /*}}}*/ /*** !EmasticGrid ***/ /*{{{*/ .main { width:70em;margin:0 auto;text-align:left; } .clear {clear:both;} .dl1,.dl2,.dl5,.dl10,.dl15,.dl20,.dl25,.dl30,.dl35,.dl40,.dl45,.dl50,.dl55,.dl60,.dl65,.dl70,.dl75 {float:left; display: inline; } .dr1,.dr2,.dr5,.dr10,.dr15,.dr20,.dr25,.dr30,.dr35,.dr40,.dr45,.dr50,.dr55,.dr60,.dr65,.dr70,.dr75 {float:right; display: inline; } .dl1, .dr1 {width:1em;} .dl2, .dr2 {width:2em;} .dl5, .dr5 {width:5em;} .dl10, .dr10{width:10em;} .dl15, .dr15{width:15em;} .dl20, .dr20{width:20em;} .dl25, .dr25{width:25em;} .dl30, .dr30{width:30em;} .dl35, .dr35{width:35em;} .dl40, .dr40{width:40em;} .dl45, .dr45{width:45em;} .dl50, .dr50{width:50em;} .dl55, .dr55{width:55em;} .dl60, .dr60{width:60em;} .dl65, .dr65{width:65em;} .dl70, .dr70{width:70em;} .dl75, .dr75{width:75em;} .ml1 {margin-left:1em;} .ml2 {margin-left:2em;} .ml3 {margin-left:3em;} .ml4 {margin-left:4em;} .ml5 {margin-left:5em;} .ml10{margin-left:10em;} .ml15{margin-left:15em;} .ml20{margin-left:20em;} .ml25{margin-left:25em;} .ml30{margin-left:30em;} .ml35{margin-left:35em;} .ml40{margin-left:40em;} .ml45{margin-left:45em;} .ml50{margin-left:50em;} .ml55{margin-left:55em;} .ml60{margin-left:60em;} .ml65{margin-left:65em;} .ml70{margin-left:70em;} .ml75{margin-left:75em;} .mr5 {margin-right:5em;} .mr10{margin-right:10em;} .mr15{margin-right:15em;} .mr20{margin-right:20em;} .mr25{margin-right:25em;} .mr30{margin-right:30em;} .mr35{margin-right:35em;} .mr40{margin-right:40em;} .mr45{margin-right:45em;} .mr50{margin-right:50em;} .mr55{margin-right:55em;} .mr60{margin-right:60em;} .mr65{margin-right:65em;} .mr70{margin-right:70em;} .mr75{margin-right:75em;} .mt1{margin-top:1em;} .mt2{margin-top:2em;} .mt3{margin-top:3em;} .mt4{margin-top:4em;} .mt5{margin-top:5em;} .mt10{margin-top:10em;} .mt20{margin-top:20em;} .mt30{margin-top:30em;} .mt40{margin-top:40em;} .mt50{margin-top:50em;} .fluid {width:auto; float:none;} .hp{width:100%; float:left; } .clearfix, .main{ display:block;} .clearfix:after, .main:after { visibility: hidden; display: block; font-size: 0; content: " "; clear: both; height: 0; } /* IE5/MAC hack \*/ * html .clearfix{ display: inline; height: 1px;} /* close */ /*}}}*/ /*** !EmasticAbsolut ***/ /*{{{*/ .main{position:relative;} .lf0,.lf5,.lf10,.lf15,.lf20,.lf25,.lf30,.lf35,.lf40,.lf45,.lf50,.lf55,.lf60,.lf65,.lf70,.lf75,.lf80,.lf85,.lfn5,.lfn10,.lfn15,.lfn20,.lfn25,.lfn30, .tp0,.tp5,.tp10,.tp15,.tp20,.tp25,.tp30,.tp35,.tp40,.tp45,.tp50, .bt0,.bt5,.bt10,.bt15,.bt20,.bt25,.bt30,.bt35,.bt40,.bt45,.bt50, .rtn5,.rtn10,.rtn20,.rtn30{position:absolute;} .lf0{left:0em;} .lf5{left:5em;} .lf10{left:10em;} .lf15{left:15em;} .lf20{left:20em;} .lf25{left:25em;} .lf30{left:30em;} .lf35{left:35em;} .lf40{left:40em;} .lf45{left:45em;} .lf50{left:50em;} .lf55{left:55em;} .lf60{left:60em;} .lf65{left:65em;} .lf70{left:70em;} .lf75{left:75em;} .lf80{left:80em;} .lf85{left:85em;} .lfn5{left:-5em;} .lfn10{left:-10em;} .lfn15{left:-15em;} .lfn20{left:-20em;} .lfn25{left:-25em;} .lfn30{left:-30em;} .rtn5 {right:-5em;} .rtn10{right:-10em;} .rtn15{right:-15em;} .rtn20{right:-20em;} .rtn25{right:-25em;} .rtn30{right:-30em;} .tp0 {top:0em;} .tp5{top:5em;} .tp10{top:10em;} .tp15{top:15em;} .tp20{top:20em;} .tp25{top:25em;} .tp30{top:30em;} .tp35{top:35em;} .tp40{top:40em;} .tp45{top:45em;} .tp50{top:50em;} .bt0{bottom:0em;} .bt5{bottom:0em;} .bt10{bottom:10em;} .bt15{bottom:15em;} .bt20{bottom:20em;} .bt25{bottom:25em;} .bt30{bottom:30em;} .bt35{bottom:35em;} .bt40{bottom:40em;} .bt45{bottom:45em;} .bt50{bottom:50em;} .zi1{ z-index:1;} .zi2{ z-index:2;} .zi3{ z-index:3;} .zi4{ z-index:4;} .zi5{ z-index:5;} /*}}}*/ /*** !EmasticGadgets ***/ /*{{{*/ /* CSS Document */ .rc {-moz-border-radius: 10px; -webkit-border-radius: 10px; border-radius: 10px; border:1px solid #fff; } .fr {border:1px solid #ccc; padding:0.25em;} .byline { font-family: "Lucida Grande", Tahoma; font-size: 0.865em; font-weight: lighter; font-variant: normal; text-transform: uppercase; color: #666666; letter-spacing: 0.4em; display: block; margin-bottom: 1.734em; padding:0em 0em 0em 1em; } .and {font-family: Baskerville, "Goudy Old Style", "Palatino", "Book Antiqua", serif; font-style: italic; color: #777; } .tc {text-align:center;} .tr {text-align:right;} .tl {text-align:left;} .b {font-weight:bold;} .pl1{padding-left:1em;} .pl2{padding-left:2em;} .pl3{padding-left:3em;} .ppl2{padding-left:1.8%;} .ppl3{padding-left:3.13%;} .ppl5{padding-left:4.8%;} .water{color:#5582d1;} .earth{color:#4e3e2c;} .air{color:#f1fff7;} .fire{ color:#ff8a19;} /* drinks food */ .wine{color:#4a040a;} .beer{color:#F0C030;} .caffe{color:#473523;} .caffe-cream{color:#b68d3d;} .espresso{color:#2c1901;} .caramel{color:#ab671f;} .chocolate{color:#290200;} .black-pepper{color:#444334;} .pepper-lite{color:#8d8a72;} .lipstick{color:#c20c0c;} .oldbook{font-family:"Book Antiqua","Warnock Pro","Goudy Old Style","Palatino",Georgia,serif;} .note{font-family:Georgia, "Times New Roman", Times, serif; font-style:italic; font-size:0.9em; margin:0.1em; color:#333;} .mono{font-family:"Courier New", Courier, monospace;} /*}}}*/ /*** !EmasticFreeStyle ***/ /*{{{*/ .dpfr{float:right;} /*}}}*/
Organismo ''eucariota pluricelular, [[heterótrofo]], sin pared celular''.
<html> <br /> <!-- Sub page 0: The table with the data --> <div id="page0" style="display: block;"> <table id="btw" style="border: 1px solid gray;"> <tr> <td>Wahljahr</td> <td>1949</td> <td>1953</td> <td>1957</td> <td>1961</td> <td>1965</td> <td>1969</td> <td>1972</td> <td>1976</td> <td>1980</td> <td>1983</td> <td>1987</td> <td>1990</td> <td>1994</td> <td>1998</td> <td>2002</td> <td>2005</td> <td>2009</td> </tr> <tr> <td>CDU</td> <td>25.2</td> <td>36.4</td> <td>39.7</td> <td>35.8</td> <td>39.3</td> <td>36.6</td> <td>35.2</td> <td>38.0</td> <td>34.2</td> <td>38.2</td> <td>34.5</td> <td>36.7</td> <td>34.2</td> <td>28.4</td> <td>29.5</td> <td>27.8</td> <td>27.3</td> </tr> <tr> <td>CSU</td> <td>5.8</td> <td>8.8</td> <td>10.5</td> <td>9.6</td> <td>9.6</td> <td>9.5</td> <td>9.7</td> <td>10.6</td> <td>10.3</td> <td>10.6</td> <td>9.8</td> <td>7.1</td> <td>7.3</td> <td>6.7</td> <td>9.0</td> <td>7.4</td> <td>6.5</td> </tr> <tr> <td>SPD</td> <td>29.2</td> <td>28.8</td> <td>31.8</td> <td>36.2</td> <td>39.3</td> <td>42.7</td> <td>45.8</td> <td>42.6</td> <td>42.9</td> <td>38.2</td> <td>37.0</td> <td>33.5</td> <td>36.4</td> <td>40.9</td> <td>38.5</td> <td>34.2</td> <td>23.0</td> </tr> <tr> <td>FDP</td> <td>11.9</td> <td>9.5</td> <td>7.7</td> <td>12.8</td> <td>9.5</td> <td>5.8</td> <td>8.4</td> <td>7.9</td> <td>10.6</td> <td>7.0</td> <td>9.1</td> <td>11.0</td> <td>6.9</td> <td>6.2</td> <td>7.4</td> <td>9.8</td> <td>14.6</td> </tr> <tr> <td>Bündnis 90/Die Grünen</td> <td>-</td> <td>-</td> <td>-</td> <td>-</td> <td>-</td> <td>-</td> <td>-</td> <td>-</td> <td>1.5</td> <td>5.6</td> <td>8.3</td> <td>5</td> <td>7.3</td> <td>6.7</td> <td>8.6</td> <td>8.1</td> <td>10.7</td> </tr> <tr> <td>PDS/Linke</td> <td>-</td> <td>-</td> <td>-</td> <td>-</td> <td>-</td> <td>-</td> <td>-</td> <td>-</td> <td>-</td> <td>-</td> <td>-</td> <td>2.4</td> <td>4.4</td> <td>5.1</td> <td>4.0</td> <td>8.7</td> <td>11.9</td> </tr> <tr> <td>Piraten</td> <td>-</td> <td>-</td> <td>-</td> <td>-</td> <td>-</td> <td>-</td> <td>-</td> <td>-</td> <td>-</td> <td>-</td> <td>-</td> <td>-</td> <td>-</td> <td>-</td> <td>-</td> <td>-</td> <td>2.0</td> </tr> <tr> <td>NPD</td> <td>-</td> <td>-</td> <td>-</td> <td>-</td> <td>2.0</td> <td>4.3</td> <td>0.6</td> <td>0.3</td> <td>0.2</td> <td>0.2</td> <td>0.6</td> <td>0.3</td> <td>0.0</td> <td>0.3</td> <td>0.4</td> <td>1.6</td> <td>1.5</td> </tr> <tr> <td>DP</td> <td>4.0</td> <td>3.3</td> <td>3.4</td> <td>-</td> <td>-</td> <td>-</td> <td>-</td> <td>-</td> <td>-</td> <td>-</td> <td>-</td> <td>-</td> <td>-</td> <td>-</td> <td>-</td> <td>-</td> <td>-</td> </tr> <tr> <td>GB/BHE</td> <td>-</td> <td>5.9</td> <td>4.6</td> <td>-</td> <td>-</td> <td>-</td> <td>-</td> <td>-</td> <td>-</td> <td>-</td> <td>-</td> <td>-</td> <td>-</td> <td>-</td> <td>-</td> <td>-</td> <td>-</td> </tr> <tr> <td>REP</td> <td>-</td> <td>-</td> <td>-</td> <td>-</td> <td>-</td> <td>-</td> <td>-</td> <td>-</td> <td>-</td> <td>-</td> <td>-</td> <td>2.1</td> <td>1.9</td> <td>1.8</td> <td>0.6</td> <td>0.6</td> <td>0.4</td> </tr> <tr> <td>KPD</td> <td>5.7</td> <td>2.2</td> <td>-</td> <td>-</td> <td>-</td> <td>-</td> <td>-</td> <td>-</td> <td>-</td> <td>-</td> <td>-</td> <td>-</td> <td>-</td> <td>-</td> <td>-</td> <td>-</td> <td>-</td> </tr> <tr> <td>BP</td> <td>4.2</td> <td>1.7</td> <td>0.9</td> <td>-</td> <td>-</td> <td>0.2</td> <td>-</td> <td>-</td> <td>-</td> <td>-</td> <td>0.1</td> <td>0.1</td> <td>0.1</td> <td>0.1</td> <td>0.0</td> <td>0.1</td> <td>0.1</td> </tr> <tr> <td>Sonstige</td> <td>14.0</td> <td>7.8</td> <td>9.4</td> <td>5.7</td> <td>3.6</td> <td>5.3</td> <td>0.9</td> <td>0.9</td> <td>0.5</td> <td>0.5</td> <td>1.3</td> <td>4.1</td> <td>3.4</td> <td>5.9</td> <td>3.0</td> <td>1.7</td> <td>2.0</td> </tr> </table> </div> <!-- Sub page 1: Chart showing the data from the whole table of page 0 --> <div style="width:800px; display: block;" id="page1"> <div id="jxgbox1" class="jxgbox" style="width:600px; height:450px; float:left"></div> </div> <div style="width:800px; display: block;" id="page2"> <div id="jxgbox2" class="jxgbox" style="width:600px; height:450px; float:left"></div> <div style="float: left"><br/> <!--a href="#" onclick="select_parties();" class="topmenu">Update display</a--><br /><br /> <form name="form_parties"> <input type="checkbox" value="0" onchange="select_parties();" name="parties">CDU<br/> <input type="checkbox" value="1" onchange="select_parties();" name="parties">CSU<br/> <input type="checkbox" value="2" onchange="select_parties();" name="parties">SPD<br/> <input type="checkbox" value="3" onchange="select_parties();" name="parties">FDP<br/> <input type="checkbox" value="4" onchange="select_parties();" name="parties">Bündnis 90/Die Grünen<br/> <input type="checkbox" value="5" onchange="select_parties();" name="parties">PDS/Linke<br/> <input type="checkbox" value="6" onchange="select_parties();" name="parties">Piraten<br/> <input type="checkbox" value="7" onchange="select_parties();" name="parties">NPD<br/> <input type="checkbox" value="8" onchange="select_parties();" name="parties">DP<br/> <input type="checkbox" value="9" onchange="select_parties();" name="parties">GB/BHE<br/> <input type="checkbox" value="10" onchange="select_parties();" name="parties">REP<br/> <input type="checkbox" value="11" onchange="select_parties();" name="parties">KPD<br/> <input type="checkbox" value="12" onchange="select_parties();" name="parties">BP<br/> <input type="checkbox" value="13" onchange="select_parties();" name="parties">Sonstige<br/> </form></div> </div> <div style="width:800px; display: block;" id="page3"> <div id="jxgbox3" class="jxgbox" style="width:600px; height:450px; float:left"></div> <div style="float: left"><br/> <!--a href="#" onclick="select_parties();" class="topmenu">Update display</a--><br /><br /> <select id="select_years" onchange="select_years();"> <option value="0">1949</option> <option value="1">1953</option> <option value="2">1957</option> <option value="3">1961</option> <option value="4">1965</option> <option value="5">1969</option> <option value="6">1972</option> <option value="7">1976</option> <option value="8">1980</option> <option value="9">1983</option> <option value="10">1987</option> <option value="11">1990</option> <option value="12">1994</option> <option value="13">1998</option> <option value="14">2002</option> <option value="15">2005</option> <option value="16">2009</option> </select></div> </div> <div id="debug" style="display:block; float: right;"></div> <br clear="all" /> <script type="text/javascript"> /* <![CDATA[ */ var board1 = JXG.JSXGraph.initBoard('jxgbox1', {boundingbox: [-1, 50, 18, -5], axis: true, grid: false}), board2 = JXG.JSXGraph.initBoard('jxgbox2', {boundingbox: [-1, 50, 18, -5], axis: true, grid: false}), board3 = JXG.JSXGraph.initBoard('jxgbox3', {boundingbox: [-1, 50, 18, -5], axis: true, grid: false}), colors = ['black', '#333333', 'red', 'yellow', 'green', '#8B00FF', 'orange', '#965220', '#96abee', 'gray', '#965220', 'red', 'blue', 'lightgray'], years = [1949, 1953, 1957, 1961, 1965, 1969, 1972, 1976, 1980, 1983, 1987, 1990, 1994, 1998, 2002, 2005, 2009], hStroke = [], charts1, charts2, charts3, i; // sub page 1 charts1 = board1.create('chart', ['btw'], {chartStyle: 'point,line', withHeaders: true, colorArray: colors, strokeColor: colors, fillColor: colors, highlightFillColor: colors, highlightStrokeColor: colors}); board1.highlightInfobox = function(x,y,el) { this.infobox.setText('<span style="color:black;font-weight:bold">' + years[Math.round(x)-1] + ': ' + y + ' %</span>'); this.infobox.rendNode.style.border = 'groove ' + el.visProp['strokeColor'] + ' 2px'; this.infobox.rendNode.style.padding = '5px'; this.infobox.rendNode.style.backgroundColor = 'white'; } // sub page 2 function select_parties() { var i, chartType = 'line', color = [], part; if(charts2) board2.removeObject(charts2); part = []; $('input[name=parties]').each(function () { if(this.checked) { part.push(parseInt($(this).val())); color.push(colors[parseInt($(this).val())]); } }); //if(part.length <4) chartType = 'bar'; charts2 = board2.create('chart', ['btw'], {chartStyle: 'point,' + chartType, withHeaders: true, colorArray: color, strokeColor: color, fillColor: color, highlightFillColor: color, highlightStrokeColor: color, rows: part}); } board2.highlightInfobox = function(x,y,el) { this.infobox.setText('<span style="color:black;font-weight:bold">' + years[Math.round(x)-1] + ': ' + y + ' %</span>'); this.infobox.rendNode.style.border = 'groove ' + el.visProp['strokeColor'] + ' 2px'; this.infobox.rendNode.style.padding = '5px'; this.infobox.rendNode.style.backgroundColor = 'white'; } // sub page 3 function select_years() { var years = [1949, 1953, 1957, 1961, 1965, 1969, 1972, 1976, 1980, 1983, 1987, 1990, 1994, 1998, 2002, 2005], i, data, table, col; year = parseInt($('#select_years').val()); table = (new JXG.DataSource()).loadFromTable('btw', true, true); col = table.getColumn(year); for(i=0; i<col.length; i++) { if(isNaN(col[i])) col[i] = 0.; } if(charts3) { for(i=0; i<charts3[0].length; i++) { charts3[0][i].vertices[1].moveTo([charts3[0][i].vertices[1].X(), col[i]], 500); charts3[0][i].vertices[2].moveTo([charts3[0][i].vertices[2].X(), col[i]], 500); } } else { board3.suspendUpdate(); charts3 = board3.create('chart', [col], {chartStyle: 'bar', colorArray: colors}); board3.unsuspendUpdate(); } } // general function show(page) { var i; for(i=0; i<4; i++) { $('#page' + i).css('display', 'none'); } $('#' + page).css('display', 'block'); } show('page0'); /* ]]> */ </script> </html> <script> var board1 = JXG.JSXGraph.initBoard('jxgbox1', {boundingbox: [-1, 50, 18, -5], axis: true, grid: false}), board2 = JXG.JSXGraph.initBoard('jxgbox2', {boundingbox: [-1, 50, 18, -5], axis: true, grid: false}), board3 = JXG.JSXGraph.initBoard('jxgbox3', {boundingbox: [-1, 50, 18, -5], axis: true, grid: false}), colors = ['black', '#333333', 'red', 'yellow', 'green', '#8B00FF', 'orange', '#965220', '#96abee', 'gray', '#965220', 'red', 'blue', 'lightgray'], years = [1949, 1953, 1957, 1961, 1965, 1969, 1972, 1976, 1980, 1983, 1987, 1990, 1994, 1998, 2002, 2005, 2009], hStroke = [], charts1, charts2, charts3, i; //-------------------------------------- // sub page 1 //-------------------------------------- charts1 = board1.create('chart', ['btw'], {chartStyle: 'point,line', withHeaders: true, colorArray: colors, strokeColor: colors, fillColor: colors, highlightFillColor: colors, highlightStrokeColor: colors}); board1.highlightInfobox = function(x,y,el) { this.infobox.setText('<span style="color:black;font-weight:bold">' + years[Math.round(x)-1] + ': ' + y + ' %</span>'); this.infobox.rendNode.style.border = 'groove ' + el.visProp['strokeColor'] + ' 2px'; this.infobox.rendNode.style.padding = '5px'; this.infobox.rendNode.style.backgroundColor = 'white'; } //-------------------------------------- // sub page 2 //-------------------------------------- function select_parties() { var i, chartType = 'line', color = [], part; if(charts2) board2.removeObject(charts2); part = []; $('input[name=parties]').each(function () { if(this.checked) { part.push(parseInt($(this).val())); color.push(colors[parseInt($(this).val())]); } }); //if(part.length <4) chartType = 'bar'; charts2 = board2.create('chart', ['btw'], {chartStyle: 'point,' + chartType, withHeaders: true, colorArray: color, strokeColor: color, fillColor: color, highlightFillColor: color, highlightStrokeColor: color, rows: part}); } board2.highlightInfobox = function(x,y,el) { this.infobox.setText('<span style="color:black;font-weight:bold">' + years[Math.round(x)-1] + ': ' + y + ' %</span>'); this.infobox.rendNode.style.border = 'groove ' + el.visProp['strokeColor'] + ' 2px'; this.infobox.rendNode.style.padding = '5px'; this.infobox.rendNode.style.backgroundColor = 'white'; } //-------------------------------------- // sub page 3 //-------------------------------------- function select_years() { var years = [1949, 1953, 1957, 1961, 1965, 1969, 1972, 1976, 1980, 1983, 1987, 1990, 1994, 1998, 2002, 2005], i, data, table, col; year = parseInt($('#select_years').val()); table = (new JXG.DataSource()).loadFromTable('btw', true, true); col = table.getColumn(year); for(i=0; i<col.length; i++) { if(isNaN(col[i])) col[i] = 0.; } if(charts3) { for(i=0; i<charts3[0].length; i++) { charts3[0][i].vertices[1].moveTo([charts3[0][i].vertices[1].X(), col[i]], 500); charts3[0][i].vertices[2].moveTo([charts3[0][i].vertices[2].X(), col[i]], 500); } } else { board3.suspendUpdate(); charts3 = board3.create('chart', [col], {chartStyle: 'bar', colorArray: colors}); board3.unsuspendUpdate(); } } //-------------------------------------- // general //-------------------------------------- function show(page) { var i; for(i=0; i<4; i++) { $('#page' + i).css('display', 'none'); } $('#' + page).css('display', 'block'); } show('page0'); </script>
{{{Exo}}} significa {{{por fuera}}} y {{{geno}}} significa {{{formación, origen}}}; así que las rocas exógenas son las que se {{{forman fuera}}}, es decir, las que se forman __por procesos que ocurren en la superficie terrestre__[[*|1]]. Los principales procesos externos relacionados con la formación de las rocas son: *[[Meteorización]] *[[Erosión]] *[[Transporte]] *[[Sedimentación]] Muchas veces llamamos //rocas sedimentarias// a las rocas exógenas porque en la mayoría interviene el proceso de la sedimentación. En la Naturaleza hay muchos tipos de rocas sedimentarias; por eso, los geólogos las clasifican en varios subtipos. Los más importantes son: **[[Detríticas]] **[[Carbonatadas]] **[[Evaporíticas]] **[[Orgánicas]]
En el interior de los lisosomas hay sustancias que son capaces de //descomponer// todo tipo de biomoléculas. Por eso decimos que se dedican a la //digestión celular//. Cuando una célula tiene que destruir algo (por ejemplo una bacteria que se ha comido...) lo hace con la ayuda de los lisosomas. |[img(250px+,)[http://www2.uah.es/biologia_celular/LaCelula/Lisosoma3.jpg]]| |Lisosoma visto al microscopio electrónico. Dentro hay algo que se está descomponiendo.|c
iVBORw0KGgoAAAANSUhEUgAAACwAAAArCAYAAAADgWq5AAAABHNCSVQICAgIfAhkiAAAAAlwSFlzAAAN1wAADdcBQiibeAAAABl0RVh0U29mdHdhcmUAd3d3Lmlua3NjYXBlLm9yZ5vuPBoAAAk5SURBVFiF1ZlrbBzVFYC/O7Mz+16/vc47tmM7sZOQB5QGAkqiqhE0VKAqrSgJjfiRqpX4UyFaqCLLotDSIrVCoghKSyqSliYgSgpNVSC4SWlSIIoJBGPjPByIE9sbr1/7mp2d2x9jz67j9dp50Krn1+zcO+d+99xzzzn3rpBS8v8kyv8a4HLFdbUKHtzZWqWr1g1SUeqRsh5ENWCCHBEwIpEREIdMQz/4+H03j1zteOJKXKJl9/5QSrq/IRD3AOuZ2UqZCPEelvyLnhFPN29bN3jZA3OZwC07Wz2Gy/oRiAcB76XtLpeKz+tDCDDNDKZpYqQN8gwxBDxpKdovf/rttdEvBPjhXW9/XcCvgOrxd7qmURWuIFxZQcDvR9e1Sd+ZpslAdJCB6CCRgSixWPxS8O2Pblm/55oBf3PvXrUuVf5rYPv4u1AwQG3NQirKShFCzHQsAPojF+k63c3wcNadpeDJi7HQA89sX52+KuAf7D3s9aZSfwJ5B4CmuairqWbunNlcJuck6e3r50R7J2nTHCMRhzO6edvPNn9l6IqAW559zWf4A28i5RqAgN/HqhXL8Ho8V0eaI4lkkrYPP3asLaHV7Y5sbN682Zjqmyl3t+H3PTUOW1pSzI3Xr7ymsABej4cbV6+gorwMAAHrUqnynQKmXL+8wD/e/fZ9SLENoLgoxOoVy3G5rjpk5wdQFK5b1khxUQgAAXc/tPvAD6fqP8klHtrVukhBHge8uq6x5kur8bjdXwhsrqTTaY68f4x4PAEQN4VoePyedZ9f2m+ShRXkDsZi7PKmJZcHKyVKdATX2V6UodHLAtY0jaVLGsZ/+lQpf56v3wQL7/j9gVpLFR2AGq6sYMWyxhkN5jrbi378JEpkCJE2s/y6i0xFCcaqejJVpTPSdfyjds739tlwyJt/smXDvyaMlftDquIhQAWorV4wrXKRNnEfPoHWcTZ/u2HiOtePqydCYmkJxopGFE8xBfYU9XU19PVHyFgWFuL7wARgx8J22pVRwDMT64q0ie/Ph1AG7aVXXCrBcAmeoA/N68aIJ0kOxxmMnKO34g2S3nP2dy4//tpteObcPqXuHCvH9Hissnn7Jic9OhY2NHkzEg9AVbiiICyA+912B9ZXEqSqcQEuj+60+0qDGJkROgJPk7QGnPfSjDHa8RTC5cMdXpdX96yqynFgv+H33wn8YbzN2XRCsmH8ubS4uCCs2hNB+/gMAN4iP3NX1k2AHZeuwX0O7OxZfpY1laFp9pCxT3+DzCTy6i8vK82GUSlvy21zgKUQ64Epi5hc0T86DYBQFMKNC/O6ZCx9gc9HDwFQUe7lyzeEqastYnmTnSQsY5BE90t59QshCPh942D1eYGFlNWAE8ALidpvV4T+8hC6L3/Y64i+jJQWAMuashFi/rwgRSF7NRKfvYKVupj3e59vrHoV1OYFllAEoE1jXRFLIuIpADxBX94+A8lO+uMfADBvboDiouykhIClY1aWmRTxU7vy6vD7HN1lLTtbHR9VAL777FGNsWShqWpBYGUkW89qvny1haQjuhcAVRE0LSklOpii7XiEtuMRTp4eIlzhJVxpWzB54Q3M0TOTtOS6ZVLPOEukAJR5Bh0/UF2Fga0iv/OcjiUntZ+PvcdwqhuA2poifF4Xf3/rM1au3cPKtXu4/wHbr5c2ltklqpTET/5ukp6MmXGePUIdngA8OmSMAhZAMjVlZQeA9LqR/jHrjMQmTkaafBp9BQBdV2mos1cyGMxaKxi0/bcopLNgXhAA4+JR0gNtE3Q5dTLQMxJ0amQF4Mn7b0shOAtceoTJK5lwCQCxyDDJ4Wz/7uG3SJj2JlpcX+yEsGAgG/JCwexz4+JSVNUOMbGu35J7+EunncNHIvckkhuHOwFi8emBjesWgSKQUnLh4zPIjEXainFqaD8Afr9GzcJstAkGtLzPHo9KXa29CuboKVK9B5y26KBj1E9zx86JErIdIB5PYOYsRz7JlBfZ0IARS9L97id09L2CadmTXbqkFEXJBudADmQoNDHB1C8qwu22903s1AtIy8Aw0oyMOu72Vl5gRbIPsK3W118QGCC1qp5M2N68sXQfPYl/AlBa4mHObP+EvrlWzXUJAJdLobHBdjEr2U/ys1e5GM05+Qv5Rl5g16lDrUAPwPkLfdMCoyjEN63BWFVPtOzfSDE5STjAOZC58OOycEHI2Zjx7j30X+gebzIMyzyYF7i5udmS8CLAQHSQkZEZFOCKQmyRJOY/CcCcWX7KSifHZp/X5bjIpRaGsWSyZCyZmHG0i/vsBsmuX2z96oRQNOHEoUr1OSAD0N7ZNT0wEOt6boxd0NQ4dZEe8NsWzA1xuTKrykdFuR0uy2nDSzSjWPKxS/tNAH5k663twDNg79ILvYV9OdX/DumhdgCqF4QcqHyyYnk5DXXFVFZMuuFyZNnYhAUW89l/7pHvbDhZEBhAdxs7kAwAfNLZRSI5OZsBIE3iXTsB0DSFJQ2FS9J/7L+Ttne+xfUrK6fsU1zsZt7cAAAB8fn8l3ZtvGla4ObNGwekkA8ApAyDo20fkk5PDnOJc38lk+gBoKGuGF2fOqWPxtIsvfFFwrXP8+rrpwtOrCknJCpCeWJaYIDHtmx4XiCeADvzHTv+EWZObpeWQfy0fQjweV3U1hQVhHjnyHlOtA8wPGLw4suF94bP62JRVt+al/94+x3TAgM8umXdgyBfAtufD7971Ikc5uAJZNq+XlrcUIKqFL5ou/Wm2dxy0yzmzPZz39bFBfuCvWJO4snI9bltU17nSJAtprLVcEkv8LV4IsGR94/RsKiGSjW7Gf2+6W+EvF4XB/9217T9xkXTFHRNIZnKIATzZgQM0LxtXVLAHQ/vbn0YKVssy1LbO7s45xbUoQAWxz6IUL0whK5fu79L+vsTJFO2C4qxomxcZnyhveOFAxssIZ4H5gNUi9cp5cQ1g5xCzohM+vq77n3TOUfN2CyPbN1wQHdH6oSU3wPOdsuN9Mi1pAl8EaASOCIVuSkXFq70T5m9e3UjVXEvyDsF1q06Q0Fh1/+FJK2SOuiRA69VqUda3SIyRYAHN+7Iprv3RfK1XRFwrrS0trpSZzM3IJRbBLISIYJIAgipC5QzlrA6sUSn5cm0TXe7PhO5auD/tvwHQhyDgtGxXlsAAAAASUVORK5CYII=
/*** |''Name''|g.bar| |''Requires''|raphaeljs g.raphael| !Notes This fixes the issue at http://github.com/DmitryBaranovskiy/g.raphael/issues#issue/11 !Usage !Code ***/ /* * g.Raphael 0.4.1hack - Charting library, based on Raphaël * * Copyright (c) 2009 Dmitry Baranovskiy (http://g.raphaeljs.com) * Licensed under the MIT (http://www.opensource.org/licenses/mit-license.php) license. */ Raphael.fn.g.barchart=function(C,A,a,d,O,u){u=u||{};var P={round:"round",sharp:"sharp",soft:"soft"}[u.type]||"square",n=parseFloat(u.gutter||"20%"),M=this.set(),v=this.set(),e=this.set(),r=this.set(),w=Math.max.apply(Math,O),N=[],c=this,B=0,F=u.colors||this.g.colors,q=O.length;if(this.raphael.is(O[0],"array")){w=[];B=q;q=0;for(var K=O.length;K--;){v.push(this.set());w.push(Math.max.apply(Math,O[K]));q=Math.max(q,O[K].length);}if(u.stacked){for(var K=q;K--;){var l=0;for(var J=O.length;J--;){l+=+O[J][K]||0;}N.push(l);}}for(var K=O.length;K--;){if(O[K].length<q){for(var J=q;J--;){O[K].push(0);}}}w=Math.max.apply(Math,u.stacked?N:w);}w=(u.to)||w;var D=a/(q*(100+n)+n)*100,b=D*n/100,g=u.vgutter==null?20:u.vgutter,t=[],k=C+b,f=(d-2*g)/w;if(!u.stretch){b=Math.round(b);D=Math.floor(D);}!u.stacked&&(D/=B||1);for(var K=0;K<q;K++){t=[];for(var J=0;J<(B||1);J++){var L=Math.round((B?O[J][K]:O[K])*f),m=A+d-g-L,H=this.g.finger(Math.round(k+D/2),m+L,D,L,true,P).attr({stroke:"none",fill:F[B?J:K]});if(B){v[J].push(H);}else{v.push(H);}H.y=m;H.x=Math.round(k+D/2);H.w=D;H.h=L;H.value=B?O[J][K]:O[K];if(!u.stacked){k+=D;}else{t.push(H);}}if(u.stacked){var I;r.push(I=this.rect(t[0].x-t[0].w/2,A,D,d).attr(this.g.shim));I.bars=this.set();var o=0;for(var E=t.length;E--;){t[E].toFront();}for(var E=0,p=t.length;E<p;E++){var H=t[E],z,L=(o+H.value)*f,G=this.g.finger(H.x,A+d-g-!!o*0.5,D,L,true,P,1);I.bars.push(H);o&&H.attr({path:G});H.h=L;H.y=A+d-g-!!o*0.5-L;e.push(z=this.rect(H.x-H.w/2,H.y,D,H.value*f).attr(this.g.shim));z.bar=H;z.value=H.value;o+=H.value;}k+=D;}k+=b;}r.toFront();k=C+b;if(!u.stacked){for(var K=0;K<q;K++){for(var J=0;J<(B||1);J++){var z;e.push(z=this.rect(Math.round(k),A+g,D,d-g).attr(this.g.shim));z.bar=B?v[J][K]:v[K];z.value=z.bar.value;k+=D;}k+=b;}}M.label=function(y,S){y=y||[];this.labels=c.set();var T,h=-Infinity;if(u.stacked){for(var x=0;x<q;x++){var Q=0;for(var s=0;s<(B||1);s++){Q+=B?O[s][x]:O[x];if(s==B-1){var U=c.g.labelise(y[x],Q,w);T=c.g.text(v[s][x].x,A+d-g/2,U).insertBefore(e[x*(B||1)+s]);var R=T.getBBox();if(R.x-7<h){T.remove();}else{this.labels.push(T);h=R.x+R.width;}}}}}else{for(var x=0;x<q;x++){for(var s=0;s<(B||1);s++){var U=c.g.labelise(B?y[s]&&y[s][x]:y[x],B?O[s][x]:O[x],w);T=c.g.text(v[s][x].x,S?A+d-g/2:v[s][x].y-10,U).insertBefore(e[x*(B||1)+s]);var R=T.getBBox();if(R.x-7<h){T.remove();}else{this.labels.push(T);h=R.x+R.width;}}}}return this;};M.hover=function(i,h){r.hide();e.show();e.mouseover(i).mouseout(h);return this;};M.hoverColumn=function(i,h){e.hide();r.show();h=h||function(){};r.mouseover(i).mouseout(h);return this;};M.click=function(h){r.hide();e.show();e.click(h);return this;};M.each=function(j){if(!Raphael.is(j,"function")){return this;}for(var h=e.length;h--;){j.call(e[h]);}return this;};M.eachColumn=function(j){if(!Raphael.is(j,"function")){return this;}for(var h=r.length;h--;){j.call(r[h]);}return this;};M.clickColumn=function(h){e.hide();r.show();r.click(h);return this;};M.push(v,e,r);M.bars=v;M.covers=e;return M;};Raphael.fn.g.hbarchart=function(n,l,B,w,c,r){r=r||{};var e={round:"round",sharp:"sharp",soft:"soft"}[r.type]||"square",f=parseFloat(r.gutter||"20%"),u=this.set(),A=this.set(),h=this.set(),E=this.set(),M=Math.max.apply(Math,c),a=[],o=this,C=0,m=r.colors||this.g.colors,H=c.length;if(this.raphael.is(c[0],"array")){M=[];C=H;H=0;for(var G=c.length;G--;){A.push(this.set());M.push(Math.max.apply(Math,c[G]));H=Math.max(H,c[G].length);}if(r.stacked){for(var G=H;G--;){var p=0;for(var F=c.length;F--;){p+=+c[F][G]||0;}a.push(p);}}for(var G=c.length;G--;){if(c[G].length<H){for(var F=H;F--;){c[G].push(0);}}}M=Math.max.apply(Math,r.stacked?a:M);}M=(r.to)||M;var J=Math.floor(w/(H*(100+f)+f)*100),k=Math.floor(J*f/100),g=[],b=l+k,d=(B-1)/M;!r.stacked&&(J/=C||1);for(var G=0;G<H;G++){g=[];for(var F=0;F<(C||1);F++){var L=C?c[F][G]:c[G],I=this.g.finger(n,b+J/2,Math.round(L*d),J-1,false,e).attr({stroke:"none",fill:m[C?F:G]});if(C){A[F].push(I);}else{A.push(I);}I.x=n+Math.round(L*d);I.y=b+J/2;I.w=Math.round(L*d);I.h=J;I.value=+L;if(!r.stacked){b+=J;}else{g.push(I);}}if(r.stacked){var q=this.rect(n,g[0].y-g[0].h/2,B,J).attr(this.g.shim);E.push(q);q.bars=this.set();var v=0;for(var t=g.length;t--;){g[t].toFront();}for(var t=0,D=g.length;t<D;t++){var I=g[t],K,L=Math.round((v+I.value)*d),z=this.g.finger(n,I.y,L,J-1,false,e,1);q.bars.push(I);v&&I.attr({path:z});I.w=L;I.x=n+L;h.push(K=this.rect(n+v*d,I.y-I.h/2,I.value*d,J).attr(this.g.shim));K.bar=I;v+=I.value;}b+=J;}b+=k;}E.toFront();b=l+k;if(!r.stacked){for(var G=0;G<H;G++){for(var F=0;F<(C||1);F++){var K=this.rect(n,b,B,J).attr(this.g.shim);h.push(K);K.bar=C?A[F][G]:A[G];K.value=K.bar.value;b+=J;}b+=k;}}u.label=function(R,P){R=R||[];this.labels=o.set();for(var O=0;O<H;O++){for(var N=0;N<C;N++){var y=o.g.labelise(C?R[N]&&R[N][O]:R[O],C?c[N][O]:c[O],M);var Q=P?A[O*(C||1)+N].x-J/2+3:n+5,x=P?"end":"start",s;this.labels.push(s=o.g.text(Q,A[O*(C||1)+N].y,y).attr({"text-anchor":x}).insertBefore(h[0]));if(s.getBBox().x<n+5){s.attr({x:n+5,"text-anchor":"start"});}else{A[O*(C||1)+N].label=s;}}}return this;};u.hover=function(j,i){E.hide();h.show();i=i||function(){};h.mouseover(j).mouseout(i);return this;};u.hoverColumn=function(j,i){h.hide();E.show();i=i||function(){};E.mouseover(j).mouseout(i);return this;};u.each=function(s){if(!Raphael.is(s,"function")){return this;}for(var j=h.length;j--;){s.call(h[j]);}return this;};u.eachColumn=function(s){if(!Raphael.is(s,"function")){return this;}for(var j=E.length;j--;){s.call(E[j]);}return this;};u.click=function(i){E.hide();h.show();h.click(i);return this;};u.clickColumn=function(i){h.hide();E.show();E.click(i);return this;};u.push(A,h,E);u.bars=A;u.covers=h;return u;};
El tema de investigación es libre. Como orientación, podría incluir: *Superficie ocupada por el //erg//. *Vientos dominantes. *Tipos de dunas: estudio morfológico. *Dimensiones de las dunas. *...
/*** |''Name''|SvgEvent_Info| |''Description''|connects .svg mouse events with global TW jQuery custom events.| |''Author''|Mario Pietsch| |''Version''|0.2.0| |''Source''|http://fxplugins.tiddlyspace.com| |''License''|[[BSD|http://www.opensource.org/licenses/bsd-license.php]]| |''CoreVersion''|2.6| |''Keywords''|svg, events, animation, commands| !Idea http://softwareas.com/automagic-event-registration !The plugin structure # [[SvgEvent_Animations]] .. animation componets # [[SvgEvent_Menue]] .. menue / toolbar command components !Needed inside an .svg tiddler *eg: [[tfgNewTiddler.svg]] *onclick(): {{{onclick="jQuery(document).trigger('cmd3', {elem:this, comp:{menue:1}})"}}} **Click the icon, will trigger cmd3 in SvgEvent_Menue *onmousedown: {{{onmousedown="jQuery(document).trigger('cmd4', {elem:this, comp:{animations:1}})"}}} *onmouseup: {{{onmouseup="jQuery(document).trigger('cmd3', {elem:this, comp:{animations:1}})"}}} **onmousedown, onmouseup are activating the corresponding commands in SvgEvent_Animations !Known issues !Elements tagged {{{fxPlugins}}} <<list filter [tag[fxPlugins]]>>
/*** |''Name''|TiddlySpaceRevisionView| |''Description''|Show tiddler revisions in a stack of cards view| |''Author''|BenGillies| |''Version''|0.2.0| |''Status''|beta| |''Source''|http://github.com/TiddlySpace/tiddlyspace| |''CodeRepository''|http://github.com/TiddlySpace/tiddlyspace| |''License''|[[BSD|http://www.opensource.org/licenses/bsd-license.php]]| |''CoreVersion''|2.6.0| |''Requires''|TiddlyWebAdaptor| !Usage The viewRevisions macro can be attached to any element, which should be passed in as a parameter. For example: <<viewRevisions page:10 link:"<<view modified date>>">> would show the revisions "stack of cards" view, 10 at a time, when the modified date is clicked. !Code ***/ //{{{ (function($) { var me = config.macros.viewRevisions = { revisionTemplate: "RevisionTemplate", revSuffix: " [rev. #%0]", // text to append to each tiddler title defaultPageSize: 5, // default number of revisions to show defaultLinkText: "View Revisions", // when there's nothing else to use offsetTop: 30, // in px offsetLeft: 10, // in px shiftDownDelay: 50, // in ms visibleSlideAmount: 20, // amount of revisions to show on left hand edge after sliding zIndex: 100, // default z-index handler: function(place, macroName, params, wikifier, paramString, tiddler) { params = paramString.parseParams(null, null, true)[0]; var tiddlerElem = story.findContainingTiddler(place); var revButton; var pageSize = parseInt(params.page[0], 10) || me.defaultPageSize; var linkObj = params.link ? params.link[0] || me.defaultLinkText : false; if(linkObj) { revButton = $('<span class="button openRevisions" />') .appendTo(place); wikify(linkObj, revButton[0], null, tiddler); } else { revButton = place; } $(revButton).click(function() { if (!$(tiddlerElem).hasClass("revisions")) { me.showRevisions(tiddlerElem, tiddler, pageSize); } else { me.closeRevisions(tiddlerElem); } }); }, // initialisation for revision view showRevisions: function(tiddlerElem, tiddler, pageSize) { var context = { host: tiddler.fields["server.host"], workspace: tiddler.fields["server.workspace"] }; $(tiddlerElem).addClass("revisions").attr("revName", tiddler.title); // ensure toolbar commands deactivate RevisionsView $("a", ".toolbar", tiddlerElem).each(function(index, btn) { var _onclick = btn.onclick; btn.onclick = function(e) { me.closeRevisions(tiddlerElem); _onclick.apply(this, arguments); }; }); // ensure default action deactivates RevisionsView var _ondblclick = tiddlerElem.ondblclick; tiddlerElem.ondblclick = function(e) { me.closeRevisions(tiddlerElem); _ondblclick.apply(this, arguments); }; var type = tiddler.fields["server.type"]; var adaptor = new config.adaptors[type](); var userParams = { tiddlerElem: tiddlerElem, pageSize: pageSize, title: tiddler.title }; me.createCloak(tiddlerElem); adaptor.getTiddlerRevisionList(tiddler.title, null, context, userParams, function(context, userParams) { // strip the current revision context.revisions.shift(); me.expandStack(context, userParams); }); }, // fetch the actual revision and put it in the tiddler div showRevision: function(place, revision, callback) { var context = { host: revision.fields["server.host"], workspace: revision.fields["server.workspace"] }; var userParams = { revElem: place }; var type = revision.fields["server.type"]; var adaptor = new config.adaptors[type](); var revNo = revision.fields["server.page.revision"]; adaptor.getTiddlerRevision(revision.title, revNo, context, userParams, function(context, userParams) { var tiddler = context.tiddler; tiddler.title += me.revSuffix .format([$(place).attr("revision")]); tiddler.fields.doNotSave = true; if (store.getTiddler(tiddler.title)) { store.deleteTiddler(tiddler.title); } store.addTiddler(tiddler); //now, populate the existing div var revElem = userParams.revElem; $(revElem).attr("id", story.tiddlerId(tiddler.title)); $(revElem).attr("refresh", "tiddler"); var getTemplate = function() { var themeName = config.options.txtTheme; if (themeName) { return store.getTiddlerSlice(themeName, me.revisionTemplate) || me.revisionTemplate || "ViewTemplate"; } else { return (store.getTiddler(me.revisionTemplate)) ? me.revisionTemplate : "ViewTemplate"; } }; var template = getTemplate(); story.refreshTiddler(tiddler.title, template, true); callback(tiddler); }); }, createCloak: function(promoteElem) { var el = $(promoteElem); // cache styles for resetting later el.data({ top: el.css("top"), left: el.css("left"), zIndex: el.css("z-index") }); $('<div class="revisionCloak" />').css("z-index", me.zIndex) .click(function() { me.closeRevisions(promoteElem); }) .appendTo(document.body); el.css("z-index", me.zIndex + 1); }, // clean up, removing all evidence of revision view closeRevisions: function(promoteElem) { var el = $(promoteElem); // revert the original tiddler back to its previous state el.removeAttr("revName").removeClass("revisions").css({ top: el.data("top"), left: el.data("left"), zIndex: el.data("zIndex") }); // remove any revisions still in the store var revisions = $(".revisions"); revisions.each(function(index, revision) { var revAttributes = revision.attributes; if ((revAttributes.revname) && (revAttributes.revision)) { var revName = revAttributes.revname.value; var revNo = revAttributes.revision.value; var title = revName + me.revSuffix.format([revNo]); if (store.getTiddler(title)) { store.deleteTiddler(title); } } }); // delete the previous revisions revisions.remove(); // remove the cloak $(".revisionCloak").remove(); }, // calback from getting list of revisions expandStack: function(context, userParams) { var pageSize = userParams.pageSize; var from = userParams.from || 0; var tiddlerElem = userParams.tiddlerElem; userParams.defaultHeight = $(tiddlerElem).height(); userParams.defaultWidth = $(tiddlerElem).width(); if (from < context.revisions.length) { me.displayNextRevision(tiddlerElem, userParams, context, from, from + pageSize - 1); } }, // place the next div above and behind the previous one displayNextRevision: function(tiddlerElem, userParams, context, from, to) { var revision = context.revisions[from]; var callback = function() { var revText = revBtn.getRevisionText(tiddlerElem, revision); tiddlerElem = me.createRevisionObject(tiddlerElem, context, userParams, revText); $(tiddlerElem) .attr("revision", (context.revisions.length - from)); if ((from < to) && ((from + 1) < context.revisions.length)){ me.displayNextRevision(tiddlerElem, userParams, context, from + 1, to); } else if ((context.revisions.length - 1) > to) { me.showMoreButton(tiddlerElem, context, userParams, to + 1); } }; me.shiftVisibleDown(userParams.title, callback); }, createRevisionObject: function(tiddlerElem, context, userParams, text) { var newPosition = me.calculatePosition(tiddlerElem, context); return $('<div class="revisions tiddler" />') .css({ position: "absolute", top: newPosition.top, left: newPosition.left, "z-index": me.zIndex + 1, height: userParams.defaultHeight, width: userParams.defaultWidth }) .attr("revName", userParams.title) .append(text) .insertBefore(tiddlerElem); }, // move the already present revisions down by 1 to fit the next one in shiftVisibleDown: function(title, callback) { var revisions = $("[revName='%0'].revisions".format([title])); var revisionCount = revisions.length; $(revisions).animate({top: "+=" + me.offsetTop}, me.shiftDownDelay, function() { revisionCount -= 1; if ((callback) && (!revisionCount)) { callback(); } }); }, // where we put the new revision calculatePosition: function(elem, context) { var offset = $(elem).offset(); var currentPosition = $(elem).position(); var newPosition = { top: currentPosition.top - me.offsetTop }; if ((context.restrictLeft) || ((offset.left - me.offsetLeft) < $("#contentWrapper").offset().left)) { newPosition.left = $(elem).position().left; context.restrictLeft = true; } else { newPosition.left = currentPosition.left - me.offsetLeft; } return newPosition; }, // equivalent of displayNextRevision, but for the more button showMoreButton: function(tiddlerElem, context, userParams, moreIndex) { userParams.from = moreIndex + 1; me.shiftVisibleDown(userParams.title, function() { var btn = me.createRevisionObject(tiddlerElem, context, userParams, ""); var more = createTiddlyButton(btn[0], "more...", "show more revisions", function() { if ($(".viewRevision").length) { return; } userParams.tiddlerElem = btn[0]; $(btn).text("") .append(revBtn .getRevisionText(btn[0], context.revisions[moreIndex])) .attr("revision", context.revisions.length - moreIndex); me.expandStack(context, userParams); }); $(more).css("float", "right"); }); }, stripRevFromTitle: function(revisionTitle) { return revisionTitle.split(/ ?\[rev\. #[0-9]+\]$/)[0]; }, onClickRevision: function(revElem, revision, callback) { // don't do anything if we are still loading if ($(".revisions").hasClass("loading")) { return null; } var origTitle = me.stripRevFromTitle(revision.title); if ($(revElem).hasClass("viewRevision")) { $(".revisions").addClass("loading"); me.slideIn(revElem, revision, origTitle, function() { store.deleteTiddler(revision.title); revision.title = origTitle; $(revElem).text("").append(revBtn.getRevisionText(revElem, revision)) .removeAttr("tags").removeAttr("tiddler") .removeAttr("refresh").removeAttr("template") .removeAttr("id"); $(".revisions").removeClass("loading"); if (callback) { callback(); } }); $(revElem).removeAttr("prevPos").removeClass("viewRevision"); } else { var viewRevision = function() { var prevPos = $(revElem).position().left; $(revElem).addClass("viewRevision").attr("prevPos", prevPos); $(".revisions").addClass("loading"); me.showRevision(revElem, revision, function(rev) { me.slideOut(revElem, rev, origTitle, function() { $(".revisions").removeClass("loading"); }); }); }; // make sure another revision isn't already out if ($(".viewRevision").length) { var newRevElem = $(".viewRevision")[0]; var newRevision = store.getTiddler($(newRevElem) .attr("tiddler")); me.onClickRevision(newRevElem, newRevision, viewRevision); } else { viewRevision(); } } }, slideOut: function(revElem, revision, title, callback) { var leftMostPos = $("[revName='%0'].revisions".format([title])) .offset().left; var width = $(revElem).width(); var originalLeftPos = $(story.getTiddler(title)) .position().left; var slideAmount = leftMostPos + width - me.visibleSlideAmount; $("[revName='%0'].revisions:not(.viewRevision)".format([title])) .animate({left: "-=" + slideAmount}, 1000); $(revElem) .attr("baseHeight", $(revElem).css("height")) .css("height", "auto") .animate({left: originalLeftPos}, 1000, callback); }, slideIn: function(revElem, revision, title, callback) { var slideAmount = $(revElem).offset().left - $(story.getTiddler(title)).offset().left; var origRevPos = $(revElem).attr("prevPos"); $("[revName='%0'].revisions:not(.viewRevision)".format([title])) .animate({left: "+=" + slideAmount}, 1000); $(revElem).animate({left: origRevPos}, 1000, function() { $(revElem) .css("height", $(revElem).attr("baseHeight")) .removeAttr("baseHeight"); callback(); }); } }; var revBtn; config.macros.slideRevision = revBtn = { btnText: "created by %0 at %1 on %2", handler: function(place, macroName, params, wikifier, paramString, tiddler) { var btn = revBtn.getRevisionText(place, tiddler); $(place).append(btn); }, getRevisionText: function(place, revision) { var text = revBtn.btnText.format([revision.modifier, revision.modified.formatString("0hh:0mm"), revision.modified.formatString("0DD MMM YYYY")]); var btn = $('<a href="javascript:;" class="button revButton" />') .text(text) .click(function() { var revElem = story.findContainingTiddler(this); me.onClickRevision(revElem, revision); }); return btn; } }; })(jQuery); //}}}
/*{{{*/ /* user stuff comes here */ .siteTitle {text-align:left; font-size:1.8em; color:[[ColorPalette::PrimaryMid]];} .siteSubtitle {text-align:right; font-size:.9em; color:[[ColorPalette::PrimaryMid]];} /*}}}*/
geo12345.tiddlyspace.com #PRIMER DÍA **[[Recorrido Ermita San Cristóbal|https://docs.google.com/drawings/d/1RKq8mlslVPl8bzmObLFhA8zvOLrgzrhFz858Q3FjwLM/edit?usp=sharing]]. Comida en el campo. **Visita Cueva Hermosa. **Estudio sedimentológico: río Isuela. **Tiempo libre. #SEGUNDO DÍA **Estudio hidrogeológico: manantiales. **Estudio estratigráfico Triásico. **Recorrido minas de Valdeplata. Comida en el campo.
@@Please do not modify this tiddler; it was created automatically upon space creation.@@
El núcleo es un orgánulo ciertamente especial. Su función es almacenar la mayor parte del ADN presente en la célula (una pequeña parte está en las mitocondrias y cloroplastos -estos últimos en las células vegetales). El ADN se presenta como moléculas muy largas y delgadas, imposibles de ver ni siquiera al microscopio. Forma lo que se llama ''cromatina''. Sólo cuando se va a producir la [[mitosis]] esos filamentos de ADN se superenrrollan para formar los [[cromosomas]]. |[img(350px+,)[http://www.elergonomista.com/biologiaselectividad/sb202.JPG]]| |Núcleo durante la interfase. Los cromosomas no existen. Los filamentos de ADN, invisibles, forman la cromatina.|c
Esta página es para poner cosas que os puedan ser útiles. Lo primero que deberías hacer es quitar los menúes que tienes a la derecha y a la izquierda (si es que hay alguno) para tener más espacio en el centro. Para hacerlo, haz clic en cada una de las flechitas que hay en la barra de color arriba a la derecha. Lo segundo que puedes hacer es quitarte de en medio este mensaje clicando en la X que ves arriba a la derecha dentro de este rectángulo de texto (lo llamaremos //tiddler// a partir de ahora). Luego ya puedes empezar con el tema que quieras de los que hay en el menú de arriba a la izquierda...
Se debe hacer en forma de página web hecha con Google Sites. Esta página deberá contener: **Página de Inicio con: ***Presentación del sitio, una introducción a qué hicimos en la excursión, cómo navegar por la página,... ***Google Mapa con enlaces a cada una de las paradas Cada parada será una página en la que deberemos seguir el siguiente guión: **Localización de la parada, diciendo dónde se sitúa y dando las coordenadas del lugar **Geografía humana (cuando hayamos hablado de ello) **Litología, es decir, descripción de los materiales y edad de los mismos **Estructura tectónica e Historia Geológica (aquí deberá incluirse un corte geológico) **Formas del relieve **Ecosistemas (cuando hayamos hablado de ello) ---- AQUÍ ESTÁN VUESTROS TRABAJOS. https://sites.google.com/site/excursionsistemaiberico/home https://sites.google.com/site/excursionbelchite4oeso/home https://sites.google.com/site/trabajoexcursionbg4oeso/home https://sites.google.com/site/trabajoexcursionbyg/home https://sites.google.com/site/excursionestratos/home https://sites.google.com/site/excursionalexeirene/ https://sites.google.com/site/excursionalsibericoazucarera/ https://sites.google.com/site/salidabiologia4eso/home https://sites.google.com/site/ezegarciaexcursionbg4eso/home https://sites.google.com/site/depresiondelebrosistemaiberico/ https://sites.google.com/a/iesazucarera.es/trabajo-excursion/ https://sites.google.com/site/martayuste33/ https://sites.google.com/site/excursion4oesojavieryjulia/ https://sites.google.com/site/excursionbiologia4eso/ https://sites.google.com/site/excursiongeologiahistorica/ https://sites.google.com/a/iesazucarera.es/excursion-geologia-cmpb/
/*** |Name|TagGridPluginInfo| |Source|http://www.TiddlyTools.com/#TagGridPlugin| |Documentation|http://www.TiddlyTools.com/#TagGridPluginInfo| |Version|1.7.0| |Author|Eric Shulman| |License|http://www.TiddlyTools.com/#LegalStatements| |~CoreVersion|2.1| |Type|documentation| |Description|documentation for TagGridPlugin| !!!!!Usage <<< Specify which tags should be used for the columns and rows of the grid to ''see a particular cross-section'' of your document, or use //all// tags to ''get an instant 'birds-eye' overview of your entire document''. Each grid cell contains a label with the number of tiddlers in that grid cell. Click the number to ''show a popup of cross-indexed tiddler titles''. Grid cells with no matching tiddlers contain a "-" (dash) that can be clicked to ''create new tiddlers automatically pre-tagged with that cell's combination of tags.'' To keep the grid display from getting very wide, the grid tags used as column headings are not initially displayed. ''Click directly above the column to show/hide that heading'', or toggle all column headings at once by clicking the {{{>>>}}} symbol in the upper-left corner of the grid display. Clicking a displayed row/column tag heading opens the tiddler whose title is that tag name. The macro syntax to include a tag grid in your tiddler content is: {{{ <<tagGrid "columntags" "exclude:tags" "rowtags" "exclude:tags" "filter:tiddlerfilter" startcolor endcolor open inline colorall sortrows sortcolumns>> }}} where: ''rowtags/columntags'' are each: * a ''quoted'' space-separated lists of tags: {{{"tag1 tag2 [[tag3 with spaces]] tag4 ..."}}} * //or,// a tiddler name preceded by "+": {{{+TiddlerName}}} where the specified tiddler contains a space-separated list of tags (same format as DefaultTiddlers) * //or,// a tiddler name preceded by "@": {{{@TiddlerName}}} to use the same tags as those that are tagging the specified tiddler (i.e., the tiddler is a representative example of the kind of tags you are interested in cross-indexing) * //or,// a tag name preceded by "=": {{{=tagName}}} to use the group of tags that are themselves, in turn, tagged with the indicated tagName (i.e., useful when you have defined a 'meta-tag'/classification system, a.k.a. "~TagglyTagging" techniques) * //or,// keyword: {{{all}}} (use all tags) * if only columntags are specified, rows display all tags by default * if no parameters are provided, both rows and columns display all tags ''exclude:tag tag tag'' * This //optional// parameter can be placed immediately following the columntags and/or rowtags parameter to selectively omit certain tags from the grid row or column headings. You can exclude several tags at once by enclosing the entire parameter in quotes, e.g.: {{{"exclude:tag tag tag"}}}. This parameter is generally only needed to adjust the set of row/column headings that will be applied when using the {{{@TiddlerName}}} syntax. Otherwise, you can simply omit the undesired rows/column headings directly from the specified columntags and/or rowstags parameters. ''"filter:tiddlerfilter"'' * By default, all tiddlers in the document are scanned to determine the contents of the grid cells. The //optional// filter parameter allows you to specify a subset of tiddler to be scanned. The syntax for this parameter is: {{{"filter:[tag[tagname]]"}}}, which will select only tiddlers with the indicated tag. For more advanced selection of tiddlers, you can install [[MatchTagsPlugin]], which extends the {{{[tag[...]]}}} filter syntax to permit use of full boolean expressions, e.g., {{{"filter:[tag[NOT tag1]]"}}} or {{{"filter:[tag[tag1 AND NOT tag2]]"}}} or {{{"filter:[tag[(tag1 AND tag2) OR (tag3 AND NOT tag4)]]"}}}, etc. ''startcolor/endcolor'' * describes a ''color gradient'' where the grid cell background color is calculated as a combination of the starting and ending colors, in proportion to the cell value * colors are specified using 6-digit hex-coded RGB values (e.g., red="~FF0000", green="00FF00", blue="0000FF") * the cells with the lowest number use the starting background color * the cells with the highest number use the ending background color * if one or both color values are omitted, all cells have //transparent// backgrounds ''open'' * causes the grid column headings to be shown when the grid is initially displayed (you can hide all the column headings using the ⇐ link, or just toggle one heading by clicking //near// the tag text. (Note: clicking //on// the tag text will open the tiddler with the same name as the tag. ''inline'' * by default, cells with cross-indexed tiddlers display the total number of tiddlers in the cell. When this number is clicked, a popup is displayed, containing links to the individual tiddlers in that cell. However, the popup display makes it difficult to compare the contents of two or more cells because only one popup can be displayed at any given time. To address this, you can use the ''inline'' keyword parameter to ''display the grid contents directly in the cells'', without using any popups. While this can make the grid display significantly larger (to fit the text of each cell), it also enables quick comparisons between cells. Inline rendering of the cell contents also makes it possible to print the entire grid contents for easy off-line reporting and analysis. ''colorall'' * by default, cells with no cross-indexed tiddlers have a //transparent// background (e.g., the tiddler's background colors shows through). However, this can create a 'patchwork' appearance to the grid. Add the ''colorall'' keyword parameter to force these 'empty' cells to use the specified startcolor instead of a transparent background. ''sortrows/sortcolumns'' * rowtags and columntags are normally displayed in the order specified in the macro parameters, or in alphabetical order when ''all'' is used to generate the list of tags. Adding the ''sortrows'' and/or ''sortcolumns'' keyword parameters will sort the tags in decending order so that the most frequently used tags are displayed first (i.e., towards the top-left corner). <<< !!!!!Examples <<< {{{<<tagGrid +FavoriteTags +FavoriteTags eeeeff 3333ff colorall sortrows sortcolumns>>}}} <<tagGrid +FavoriteTags +FavoriteTags eeeeff 3333ff colorall sortrows sortcolumns>> <<< !!!!!Revisions <<< 2008.04.21 1.7.0 added support for "filter:..." param to exclude tiddlers from grid 2008.01.08 [*.*.*] plugin size reduction: documentation moved to ...Info tiddler 2007.12.04 [*.*.*] update for TW2.3.0: replaced deprecated core functions, regexps, and macros 2007.07.24 1.6.5 corrected handling for @TiddlerName with excluded tags, so that excluded tags are not actually removed from the @TiddlerName source tiddler. 2007.07.04 1.6.4 fix fatal "unterminated string" popup error caused by tiddlers containing double-quotes (now being encoded using """) 2007.03.08 1.6.3 use global flag to replace ALL single-quotes in tiddler titles (fixes popups where more than one tiddler title had a ' in it) 2007.03.06 1.6.2 removed debugging alert()s... D'oh! 2007.03.06 1.6.1 fix handling for excluding tags (was only removing last tag in list) 2007.03.05 1.6.0 added "exclude:tag tag tag..." parameter handling for both rows and columns 2006.12.20 1.5.1 fixed bordercolor calculation and CSS so grid correctly uses midtone-color for table cell borders 2006.12.09 1.5.0 added 'inline' keyword parameter to display tiddler titles directly in grid cells (in addition to popup) 2006.11.03 1.4.0 changed {{{=TiddlerName}}} param usage to {{{@TiddlerName}}} and added {{{=tagName}}} usage for specifying TagglyTagging "meta-tagged" groups of tag (based on ideas by GregWolff) 2006.11.03 1.3.3 performance optimization: calculate maximum cross-index value while building grid (eliminates extra calc during colormapping) 2006.10.29 1.3.2 fixes for IE: in decToHex and hexToDec, use substr() instead array indexing. Also, use {{{>>>}}} and {{{<<<}}} instead of {{{⇒}}} and {{{⇐}}} for 'toggle headings' link text 2006.10.29 1.3.1 suppress border around table 2006.10.21 1.3.0 added {{{=TiddlerName}}} and {{{open}}} parameter handling 2006.10.17 1.2.1 fixed row/column sorting to properly sort undefined tags to the end of the list 2006.10.16 1.2.0 added optional row/column sorting and improved parameter parsing 2006.10.15 1.1.0 added features: background gradients, collapsible column headings, eliminated table borders around row/column headings 2006.10.06 1.0.1 calls to displayTiddler() use 'this' instead of 'null' 2006.10.05 1.0.0 initial release (converted from prototype inline script) <<<
// //''Name:'' PopT Plugin // //''Name:'' PopTiddler Plugin // //''Author:'' Tiago Dionízio // //''Modified:''Steve Schneider // //''Source:'' http://mega.ist.utl.pt/~tngd/twiki/twiki.cgi/TWPlugins.html // //''Syntax:'' // //{{{<<popt 'Tiddler name' [open]>>}}} // //''Description:'' // // To display the included tiddler initially visible just pass ''open'' in the third parameter (not actually the only possible value but you can interpret it like that). // // The expand button can also collapse the included tiddler, this will actually remove the included contents. If the included tiddler is changed you can simply expand it again. // //''Modifications:'' // // // //Name changed from Quote to Popnote // //Name changed from Popnote to PopTiddler to reflect new purpose // //Name changes from Popnote to Popt to pop a named tiddler without other text // //''Code section:'' // (you should not need to alter anything below here)// {{{ version.extensions.poptiddler = { major: 1, minor: 0, revision: 0, date: new Date(2005, 07, 15)}; config.macros.popt = {}; config.macros.popt.onClick = function(e) { if (!e) var e = window.event; var container = this.nextSibling; var isOpen = container.style.display == "block"; var tick; this.removeChild(this.firstChild); if (isOpen) { container.style.display = "none"; tick = "+"; removeChildren(container); } else { tick = "-"; var title = container.getAttribute("tiddlyLink"); var text = store.getTiddlerText(title); removeChildren(container); if(text) wikify(text,container,null,null); container.style.display = "block"; } this.appendChild(document.createTextNode(tick)); } config.macros.popt.handler = function(place,macroName,params) { // param 2: text button (now same as parm0 tiddler name) // param 0: tiddler name to display // param 1: initial display by default var label = " "; var title = params[0]; var isOpen = params[1] != null; var link = createTiddlyLink(place,title,false); link.appendChild(document.createTextNode(title)); var btn = createTiddlyButton(place, isOpen ? "-" : "+", "expand tiddler " + title, this.onClick); var container = createTiddlyElement(place, "blockquote"); container.setAttribute("tiddlyLink", title); container.style.display = isOpen ? "block" : "none"; if (isOpen) { var text = store.getTiddlerText(title); if(text) wikify(text,container,null,null); } } }}}
Las vacuolas son orgánulos típicos de las células vegetales. Su principal función es almacenar agua y sustancias disueltas. Suele haber una sola vacuola de gran tamaño.
El retículo endoplasmático puede ser de dos tipos: *''rugoso'', que tiene ribosomas adosados a la cara externa de la membrana y se dedica a la síntesis (formación) de proteínas. *''liso'', que no tiene ribosomas y se dedica a la síntesis de lípidos. |[img(370px+,)[http://www.efn.uncor.edu/departamentos/divbioeco/anatocom/Biologia/Index_archivos/celula/ret%20met.jpg]]| [img(430px+,)[http://www.biologia.edu.ar/celulamit/figcelit/liso.gif]]| | RER | REL | |Los dos tipos de RE vistos al microscopio electrónico|c
<?xml version="1.0" encoding="UTF-8" standalone="no"?> <svg id="svg2" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns="http://www.w3.org/2000/svg" height="29pt" viewBox="13 43 29 29" width="29pt" version="1.0" xmlns:cc="http://creativecommons.org/ns#" xmlns:dc="http://purl.org/dc/elements/1.1/" onmousedown="if(jQuery) jQuery(document).trigger('cSmaller', {elem:this, comp:{animations:1}})" onmouseup="if(jQuery) jQuery(document).trigger('cResize', {elem:this, comp:{animations:1}})"> <defs id="defs6"> <linearGradient id="linearGradient001" y2="27.646" gradientUnits="userSpaceOnUse" x2="-45.8" y1="27.646" x1="-57.66"> <stop id="stop1" stop-color="#FF4646" offset="0"/> <stop id="stop2" stop-color="#ffcccc" offset="0.66462"/> <stop id="stop3" stop-color="#FF4646" offset="1"/> </linearGradient></defs> <g id="icon" stroke-linecap="round" stroke-miterlimit="4"> <rect id="iconBG" style="stroke-dasharray:none;" fill-rule="evenodd" ry="4.1663" transform="matrix(0, -1, 1, 0, 0, 0)" height="25" width="25" stroke="#696969" stroke-linecap="round" stroke-miterlimit="4" y="15.167" x="-70.116" stroke-width="1.2" fill="none"/> <rect id="iconFG" stroke-width="0" fill-rule="evenodd" ry="2.3755" transform="matrix(0, -1, 1, 0, 0, 0)" width="22" stroke-miterlimit="4" y="16.646" x="-68.6" height="22" fill="url(#linearGradient001)" class="showOnHover" opacity="0"/> <g id="iconSymbol" stroke-linejoin="miter" style="stroke-dasharray:none;" transform="translate(0.0627706, -0.0627706)" stroke="#4d4d4d" stroke-linecap="butt" stroke-miterlimit="4" stroke-width="1.60000002" fill="none"> <path id="path2874" style="stroke-dasharray:none;" d="m21.748,51.452,1.7934,14.247,7.9706,0,2.4908-15.144-12.255,0.89669z"/> <path id="path2880" style="stroke-dasharray:none;" d="m25.435,51.452,0.84687,14.048"/> <path id="path2882" style="stroke-dasharray:none;" d="M30.068,51.104,28.573,65.351"/> </g> <rect id="overlay" opacity="0.01" ry="4.1663" style="stroke-dasharray:none;" fill-rule="evenodd" transform="matrix(0, -1, 1, 0, 0, 0)" height="25" width="25" stroke="#e6e6e6" stroke-linecap="round" stroke-miterlimit="4" y="15.167" x="-70.116" stroke-width="1.2" fill="#e6e6e6" onmouseover="if(jQuery) jQuery(document).trigger('cTglBg', {elem:this, comp:{animations:1}})" onmouseout="if(jQuery) jQuery(document).trigger('cTglBg', {elem:this, comp:{animations:1}})"/> </g> </svg>
/*** |''Name:''|XCaseListPlugin| |''Description:''|Adds a new command ''xCase'' to the core list macro| |''Author:''|Mario Pietsch| |''Version:''|0.3| |''Date:''|2010.08.03| |''Status:''|''beta''| |''Source:''|http://apm-plugins.tiddlyspot.com/#XCaseListPlugin| |''License''|[[MIT License]]| |''CoreVersion:''|2.5.0| |''Requires:''|| |''Documentation:''|this file| |''Keywords:''|list, sort, not case sensitive, filter| !Description This plugin performs a alphabetical sort for tiddlers. Default it is not case sensitive. That means ab = AB = aB = Ab! And it does some little more filtering using the RegExp syntax. The RegExp Syntax can be a little bit tricky to read and configure. But the best description I have found is at [[regular-expressions.info]] !!!Example {{{ <<list xCase title '[m]'>> }}} < <list xCase title '[m]'>> !Default Format {{{ <<list xCase>> }}} !More Possibilities <<< !!!Reverse sort order {{{ <<list xCase -title >> }}} !!!Some basic filtering *Every tiddler title, that starts with a number from 0 to 9. {{{ <<list xCase title '[0-9]'>> }}} *Every tiddler title, that starts with an ''"a"'' or ''"b"'' or ''"c"''. {{{ <<list xCase title '[abc]'>> }}} *Every tiddler title, that starts with exactly ''abc''. {{{ <<list xCase title 'abc'>> }}} <<< !!!Some advanced filtering <<< *same as above but with a tagList for additional filtering. *adding the tag filter will disable the "excludeLists" setting !! **If you need excludeLists, than you have to define it with the expression. *XCaseListPlugin should be compatible to [[MatchTagsPlugin]] from TiddlyTools! {{{ <<list xCase title '[a]' "[tag[MyTag]]">> }}} !!!Global / Local Settings |<<option chkXCaseListCaseSensitive>> Global sort case sensitive |Sets case sensitiv sort globally| |<<option chkXCaseListCheckField>> Sortfield defines case sensitive |Ignores global setting. Evaluates sortField and sets the value everytime <br> {{{<<list xCase sortField ..>>}}} is executed.| If sortField is eg: 'title' .. not case sensitive (default). if sortField is eg: 'Title' or 'TITLE' .. case sesitive sort is active. <<< !Code ***/ /*{{{*/ if(!version.extensions.XCaseListPlugin) { //# ensure that the plugin is only installed once version.extensions.XCaseListPlugin = { installed: true }; config.macros.list.xCase = {}; config.macros.list.xCase.handler = function(params){ var lookupField = 'tags'; var lookupValue = 'excludeLists'; var lookupMatch = false; var sortField = params[1] || '+title'; // global setting for case sensitive search var caseSensitive = config.options.chkXCaseListCaseSensitive || false; var chkSortField = config.options.chkXCaseListCheckField || false; // if this option is active the macro parameter sortField is parsed // global setting is ignored !! if (chkSortField) caseSensitive = (sortField != sortField.toLowerCase()); sortField = sortField.toLowerCase(); // check if numberedText called this macro. // this parameter is used by <<list numberedText ..>> macro // if you directly use it, it will return an unsorted list !!! var numberedText = false; if (sortField.substr(0, 1)== '#') { numberedText = true; sortField = sortField.substr(1); caseSensitive = false; } // check for ascending or descending sort order var asc = 1; switch (sortField.substr(0, 1)) { case "-": asc = -1; case "+": sortField = sortField.substr(1); break; default: ; } var results = []; var tmpResults = []; // set the default for regExp filtering var regSnip = params[2] || '.'; var regExp = new RegExp('^' + regSnip, 'im'); var match = null; // check if [tag[...]] is set var tagList = params[3] || ''; var tagMatch = tagList.length != 0; // if list is empty everything is valid. if (tagMatch) { tmpResults = store.filterTiddlers(params[3]); for (var i=0, max=tmpResults.length; i<max; i++){ // match = tmpResults[i][sortField].match(regExp); match = tmpResults[i].title.match(regExp); if (match) results.push(tmpResults[i]); }; // for .. } else { store.forEachTiddler(function(title, tiddler){ var f = !lookupMatch; for (var lookup = 0; lookup < tiddler[lookupField].length; lookup++) { if (tiddler[lookupField][lookup] == lookupValue) { f = lookupMatch; } }; // for.. if (f) { // match = tiddler[sortField].match(regExp); match = tiddler.title.match(regExp); if (match) results.push(tiddler); }; // if (f) .. }); // store.forEach .. }; // else .. if (TiddlyWiki.isStandardField(sortField)) { if (caseSensitive) { results.sort(function(a, b){ return a[sortField] < b[sortField] ? -asc : a[sortField] == b[sortField] ? 0 : asc; }); // results.sort } else if (numberedText) { // do nothing, return the list, for further processing ! } else { results.sort(function(a, b){ return a[sortField].toLowerCase() < b[sortField].toLowerCase() ? -asc : a[sortField].toLowerCase() == b[sortField].toLowerCase() ? 0 : asc; }); // results.sort }; // if } else { results.sort(function (a, b) { var aField = (a.fields[sortField]) ? a.fields[sortField] : 'zzz'; var bField = (b.fields[sortField]) ? b.fields[sortField] : 'zzz'; return aField.toLowerCase() < bField.toLowerCase() ? -asc : aField.toLowerCase() == bField.toLowerCase() ? 0 : +asc; }); } return results; } } //# end of "install only once" /*}}}*/
/*** |''Name''|TiddlyWebConfig| |''Description''|configuration settings for TiddlyWebWiki| |''Author''|FND| |''Version''|1.3.2| |''Status''|stable| |''Source''|http://svn.tiddlywiki.org/Trunk/association/plugins/TiddlyWebConfig.js| |''License''|[[BSD|http://www.opensource.org/licenses/bsd-license.php]]| |''Requires''|TiddlyWebAdaptor ServerSideSavingPlugin| |''Keywords''|serverSide TiddlyWeb| !Code ***/ //{{{ (function($) { if(!config.extensions.ServerSideSavingPlugin) { throw "Missing dependency: ServerSideSavingPlugin"; } if(!config.adaptors.tiddlyweb) { throw "Missing dependency: TiddlyWebAdaptor"; } if(window.location.protocol != "file:") { config.options.chkAutoSave = true; } var adaptor = tiddler.getAdaptor(); var recipe = tiddler.fields["server.recipe"]; var workspace = recipe ? "recipes/" + recipe : "bags/common"; var plugin = config.extensions.tiddlyweb = { host: tiddler.fields["server.host"].replace(/\/$/, ""), username: null, status: {}, getStatus: null, // assigned later getUserInfo: function(callback) { this.getStatus(function(status) { callback({ name: plugin.username, anon: plugin.username ? plugin.username == "GUEST" : true }); }); }, hasPermission: function(type, tiddler) { var perms = tiddler.fields["server.permissions"]; if(perms) { return perms.split(", ").contains(type); } else { return true; } } }; config.defaultCustomFields = { "server.type": tiddler.getServerType(), "server.host": plugin.host, "server.workspace": workspace }; // modify toolbar commands config.shadowTiddlers.ToolbarCommands = config.shadowTiddlers.ToolbarCommands. replace("syncing ", "revisions syncing "); config.commands.saveTiddler.isEnabled = function(tiddler) { return plugin.hasPermission("write", tiddler) && !tiddler.isReadOnly(); }; config.commands.deleteTiddler.isEnabled = function(tiddler) { return !readOnly && plugin.hasPermission("delete", tiddler); }; // hijack option macro to disable username editing var _optionMacro = config.macros.option.handler; config.macros.option.handler = function(place, macroName, params, wikifier, paramString) { if(params[0] == "txtUserName") { params[0] = "options." + params[0]; var self = this; var args = arguments; args[0] = $("<span />").appendTo(place)[0]; plugin.getUserInfo(function(user) { config.macros.message.handler.apply(self, args); }); } else { _optionMacro.apply(this, arguments); } }; // hijack isReadOnly to take into account permissions and content type var _isReadOnly = Tiddler.prototype.isReadOnly; Tiddler.prototype.isReadOnly = function() { return _isReadOnly.apply(this, arguments) || !plugin.hasPermission("write", this); }; var getStatus = function(callback) { if(plugin.status.version) { callback(plugin.status); } else { var self = getStatus; if(self.pending) { if(callback) { self.queue.push(callback); } } else { self.pending = true; self.queue = callback ? [callback] : []; var _callback = function(context, userParams) { var status = context.serverStatus || {}; for(var key in status) { if(key == "username") { plugin.username = status[key]; config.macros.option.propagateOption("txtUserName", "value", plugin.username, "input"); } else { plugin.status[key] = status[key]; } } for(var i = 0; i < self.queue.length; i++) { self.queue[i](plugin.status); } delete self.queue; delete self.pending; }; adaptor.getStatus({ host: plugin.host }, null, _callback); } } }; (plugin.getStatus = getStatus)(); // XXX: hacky (arcane combo of assignment plus execution) })(jQuery); //}}}
Las rocas volcánicas no se consideran exógenas porque su origen está unos cuantos kilómetros en el interior de la corteza terrestre (aunque luego se formen en la superficie, cuando se produce una erupción...!)
La fotosíntesis es uno de los procesos biológicos más importantes de la Biosfera. La reacción química resumida es la siguiente: CO~~2~~ + H~~2~~O → C~~6~~H~~12~~O~~6~~ (glucosa) + O~~2~~ (oxígeno) La importancia viene del hecho de que es el (casi) único proceso que es capaz de transformar la materia inorgánica (CO~~2~~ y H~~2~~O) en materia orgánica (C~~6~~H~~12~~O~~6~~ (glucosa)). Como se utiliza agua como fuente de hidrógeno, se produce oxígeno (O~~2~~) como sustancia residual. La materia orgánica producida en los cloroplastos podrá ser utilizada por la planta y servirá de alimento para todos los organismos heterótrofos de la Biosfera (entre ellos, nosotros...!)
<?xml version="1.0" encoding="UTF-8" standalone="no"?> <svg id="svg2" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns="http://www.w3.org/2000/svg" height="29pt" viewBox="13 43 29 29" width="29pt" version="1.0" xmlns:cc="http://creativecommons.org/ns#" xmlns:dc="http://purl.org/dc/elements/1.1/" onclick="if(jQuery) jQuery(document).trigger('cNewTiddler', {elem:this, comp:{menue:1}})" onmousedown="if(jQuery) jQuery(document).trigger('cSmaller', {elem:this, comp:{animations:1}})" onmouseup="if(jQuery) jQuery(document).trigger('cResize', {elem:this, comp:{animations:1}})" title="Create a new tiddler"> <metadata id="metadata14"> <rdf:RDF> <cc:Work rdf:about=""> <dc:format>image/svg+xml</dc:format> <dc:type rdf:resource="http://purl.org/dc/dcmitype/StillImage"/> <dc:title/> <dc:rights> <cc:Agent> <dc:title>http://creativecommons.org/licenses/by-nc-sa/3.0/at/</dc:title> </cc:Agent> </dc:rights> <dc:source>http://iconbuilder.tiddlyspace.com</dc:source> <dc:creator> <cc:Agent> <dc:title>Mario Pietsch</dc:title> </cc:Agent> </dc:creator> </cc:Work> </rdf:RDF> </metadata> <defs id="defs_bBgTrans"> <linearGradient id="linearGradient001" y2="27.646" gradientUnits="userSpaceOnUse" x2="-45.8" y1="27.646" x1="-57.66"> <stop id="stop1" stop-color="#6BB546" offset="0"/> <stop id="stop2" stop-color="#B5DAA2" offset="0.66462"/> <stop id="stop3" stop-color="#6BB546" offset="1"/> </linearGradient></defs> <g id="icon"> <rect id="iconBG" stroke="#696969" ry="4.1663" transform="matrix(0,-1,1,0,0,0)" height="25" width="25" y="15.167" x="-70.116" stroke-width="1.2" fill="none" class="showBG"/> <rect id="iconFG" stroke-width="0" fill-rule="evenodd" ry="2.3755" transform="matrix(0,-1,1,0,0,0)" width="22" y="16.646" x="-68.6" height="22" fill="url(#linearGradient001)" class="showFG"/> <g id="iconSymbol" stroke-linejoin="miter" transform="translate(0.17754196,0)" stroke="#4d4d4d" stroke-linecap="round" stroke-miterlimit="4" stroke-dasharray="none" fill="none" class="showSY"> <path d="m21.585,50.448,7.3934-0.000001,0,4.5527,4.3752,0,0,10.101-11.769,0z" stroke-width="1.6"/> <path d="m29.712,50.447,3.644,3.8077" stroke-width="1.60000002"/> </g> <rect id="overlay" stroke="#696969" opacity="0" ry="4.1663" transform="matrix(0,-1,1,0,0,0)" height="25" width="25" y="15.167" x="-70.116" stroke-width="1.2" class="showOV"/> </g> </svg>
/*** |Name|TagGridPlugin| |Source|http://www.TiddlyTools.com/#TagGridPlugin| |Documentation|http://www.TiddlyTools.com/#TagGridPluginInfo| |Version|1.7.0| |Author|Eric Shulman| |License|http://www.TiddlyTools.com/#LegalStatements| |~CoreVersion|2.1| |Type|plugin| |Description|Generate a cross-referenced grid of tiddlers, based on tag values| !!!!!Documentation >see [[TagGridPluginInfo]] !!!!!Revisions <<< 2008.04.21 [1.7.0] added support for "filter:..." param to exclude tiddlers from grid 2008.01.08 [*.*.*] plugin size reduction: documentation moved to ...Info tiddler 2007.12.04 [*.*.*] update for TW2.3.0: replaced deprecated core functions, regexps, and macros 2007.07.24 [1.6.5] corrected handling for @TiddlerName with excluded tags, so that excluded tags are not actually removed from the @TiddlerName source tiddler. |please see [[TagGridPluginInfo]] for additional revision details| 2006.10.05 [1.0.0] initial release (converted from prototype inline script) <<< !!!!!Code ***/ //{{{ version.extensions.TagGridPlugin= {major: 1, minor: 7, revision: 0, date: new Date(2008,4,21)}; config.macros.tagGrid= { verbose:false, // display debugging/performance feedback messages warn:true, // display workload warning message before rendering threshold:300000, // workload warning threshold (workload=# of comparisons to perform) handler: function(place,macroName,params) { // get columns var columntags=params.shift(); var cols=[]; if ((!columntags)||(columntags=="all")) // no param (or "all") - use all tags { var all=store.getTags(); for (i=0;i<all.length;i++) cols.push(all[i][0]); } else if (columntags.substr(0,1)=="+") // get tag list from tiddler content { var t=store.getTiddlerText(columntags.substr(1)); if (t&&t.length) cols=t.readBracketedList(); } else if (columntags.substr(0,1)=="@") // get tag list from tiddler tags { var t=store.getTiddler(columntags.substr(1)); if (t&&t.tags) for (i=0;i<t.tags.length;i++) cols.push(t.tags[i]); } else if (columntags.substr(0,1)=="=") // get names of "tagtiddlers" tagged with meta-tag { var t=store.getTaggedTiddlers(columntags.substr(1)); for (i=0;i<t.length;i++) cols.push(t[i].title); } else cols=columntags.readBracketedList(); if (!cols.length) { wikify("~TagGrid: no columns to display\n",place); return; } // exclude specific column tags if (params[0]&¶ms[0].substr(0,8)=="exclude:") { var ex=params.shift().substr(8).readBracketedList(); for (x=0; x<ex.length; x++) { var i=cols.indexOf(ex[x]); if (i!=-1) cols.splice(i,1); // remove excluded tags } } // get rows var rowtags=params.shift(); var rows=[]; if ((!rowtags)||(rowtags=="all")) // no param (or "all") - use all tags { var all=store.getTags(); for (i=0;i<all.length;i++) rows.push(all[i][0]); } else if (rowtags.substr(0,1)=="+") // get tag list from tiddler content { var t=store.getTiddlerText(rowtags.substr(1)); if (t&&t.length) rows=t.readBracketedList(); } else if (rowtags.substr(0,1)=="@") // get tag list from tiddler tags { var t=store.getTiddler(rowtags.substr(1)); if (t&&t.tags) for (i=0;i<t.tags.length;i++) rows.push(t.tags[i]); } else if (rowtags.substr(0,1)=="=") // get names of "tagtiddlers" tagged with meta-tag { var t=store.getTaggedTiddlers(rowtags.substr(1)); for (i=0;i<t.length;i++) rows.push(t[i].title); } else rows=rowtags.readBracketedList(); if (!rows.length) { wikify("~TagGrid: no rows to display\n",place); return; } // exclude specific row tags if (params[0]&¶ms[0].substr(0,8)=="exclude:") { var ex=params.shift().substr(8).readBracketedList(); for (x=0; x<ex.length; x++) { var i=rows.indexOf(ex[x]); if (i!=-1) rows.splice(i,1); // remove excluded tags } } // get optional tiddler filter if (params[0]&¶ms[0].substr(0,7).toUpperCase()=="FILTER:") var filter=params.shift().substr(7); // get optional flag keywords and/or color gradient endpoints var defOpen=false; var colorAll=false; var sortRows=false; var sortColumns=false; var showInline=false; var p=params.shift(); while (p) { switch (p.toUpperCase()) { case "OPEN": defOpen=true; break; case "COLORALL": colorAll=true; break; case "SORTROWS": sortRows=true; break; case "SORTCOLUMNS": sortColumns=true; break; case "INLINE": showInline=true; break; default: if (startcolor==undefined) var startcolor=p; else if (endcolor==undefined) var endcolor=p; else alert("unexpected parameter: '"+p+"'"); break; } p=params.shift(); } // get the tiddlers if (filter&&filter.length) var tiddlers=store.filterTiddlers(filter); else var tiddlers=store.getTiddlers("modified","excludeLists"); // show "workload warning"... get permission to proceed... if (this.warn) { var workload=rows.length*cols.length*tiddlers.length; var warning="Cross-indexing %0 tiddlers in %1 row%3 by %2 column%4...\n(up to %5 comparisons MAY be needed)\n\n"; warning+="This may take a while. It is OK to proceed?"; warning=warning.format([tiddlers.length,rows.length,cols.length,rows.length!=1?"s":"",cols.length!=1?"s":"",workload]); if (workload>this.threshold&&!confirm(warning)) { wikify("~TagGrid: display cancelled by user\n",place); return; } } // sort row and column tags in decending order, by frequency of use if (sortRows||sortColumns) { var tags=store.getTags(); var tagcount={}; for (i=0; i<tags.length; i++) tagcount[tags[i][0]]=tags[i][1]; if (sortRows) rows.sort(function(a,b){return (!tagcount[a]||tagcount[a]<tagcount[b])?+1:(tagcount[a]==tagcount[b]?0:-1);}); if (sortColumns) cols.sort(function(a,b){return (!tagcount[a]||tagcount[a]<tagcount[b])?+1:(tagcount[a]==tagcount[b]?0:-1);}); } // cross-index tiddlers by tags, building lists of tiddler titles into grid[i][j] (sparse array) var time1=new Date(); var grid=new Array(); var max=0; // track maximum cross-index value for (var t=0;t<tiddlers.length;t++) { // for each tiddler for (var i=0;i<tiddlers[t].tags.length;i++) { // for each tag in tiddler var row=rows.indexOf(tiddlers[t].tags[i]); if (row==-1) continue; // this tag not in rows if (!grid[row]) grid[row]=new Array(); // create row as needed for (var j=0;j<tiddlers[t].tags.length;j++) { // for each tag in tiddler var col=cols.indexOf(tiddlers[t].tags[j]); if (col==-1) continue; // this tag not in columns if (!grid[row][col]) grid[row][col]=new Array(); // create cell grid[row][col].push("[["+tiddlers[t].title+"]]"); // add tiddler title to cell if (max<grid[row][col].length) max=grid[row][col].length; // check for new maximum } } } // compute gradient color map if (startcolor && endcolor) { var digits="0123456789ABCDEF"; function hexToDec(s) // 2-digit conversion { return digits.indexOf(s.substr(0,1).toUpperCase())*16+digits.indexOf(s.substr(1,1).toUpperCase()); } function decToHex(d) // 2-digit conversion { return digits.substr(Math.floor(d/16),1)+digits.substr(d%16,1); } var steps=max; var startR=hexToDec(startcolor.substr(0,2)); var startG=hexToDec(startcolor.substr(2,2)); var startB=hexToDec(startcolor.substr(4,2)); var endR=hexToDec(endcolor.substr(0,2)); var endG=hexToDec(endcolor.substr(2,2)); var endB=hexToDec(endcolor.substr(4,2)); var rangeR=endR-startR; var rangeG=endG-startG; var rangeB=endB-startB; var stepR=rangeR/steps; if (stepR>0) stepR=Math.floor(stepR); else stepR=Math.ceil(stepR); var stepG=rangeG/steps; if (stepG>0) stepG=Math.floor(stepG); else stepG=Math.ceil(stepG); var stepB=rangeB/steps; if (stepB>0) stepB=Math.floor(stepB); else stepB=Math.ceil(stepB); var colors=[]; colors[0]=startcolor; for (var i=1; i<steps; i++) colors[i]=decToHex(startR+stepR*i)+decToHex(startG+stepG*i)+decToHex(startB+stepB*i); colors[steps-1]=endcolor; // fixup for roundoff error } // generate HTML table containing popups (and optional inline links) var time2=new Date(); var out="<html><table cellpadding='0' cellspacing='0' style='border:0;border-collapse:collapse'>"; // column headings out+="<tr style='border:0;'><td style='text-align:right;border:0'>"; out+="<a href='' style='font-size:80%;'"; out+=" title='show all column headings'"; out+=" onclick='return config.macros.tagGrid.toggleAllColumns(this,event,"+defOpen+")'>"+(defOpen?"<<<":">>>")+"</a>"; out+="</td>"; for (var i=0;i<cols.length;i++) { out+="<td style='text-align:center;cursor:pointer;border:0;padding-left:2px;padding-right:2px' "; out+=" title='show/hide column heading' "; out+=" onclick='return config.macros.tagGrid.toggleColumn(this,event)'>"; out+="<a href='' title='open tag tiddler'"; if (!defOpen) out+=" style='display:none' "; out+=" onclick='story.displayTiddler(this,\""+cols[i]+"\");return false'>"+cols[i]+"</a>"; out+="</td>"; } out+="</tr>"; for (var i=0;i<rows.length;i++) { // row heading var rowlink="<a href='' onclick='story.displayTiddler(this,\""+rows[i]+"\");return false'>"+rows[i]+"</a>"; out +="<tr style='border:0'>"; out +="<td style='text-align:right;border:0;padding-right:2px'>"+rowlink+"</td>"; for (var j=0;j<cols.length;j++) { var content=""; var bgcolor="transparent"; // default empty cell background if (colors && colorAll) bgcolor="#"+colors[0]; // empty cell background uses startcolor var bordercolor=""; // default border color (inherits current CSS value) if (colors) bordercolor="#"+colors[Math.floor(colors.length/2-1)]; // border uses mid-tone color var linkstyle=""; // use default unless background color is very light or very dark var cross=(grid[i]&&grid[i][j])?grid[i][j]:null; var hdr=rows[i]+(rows[i]!=cols[j]?(" + "+cols[j]):""); if (cross) { // cross-tagged list of tiddlers (in a popup) var label="<b>"+cross.length+"</b>"; var tip=hdr; var list=cross.sort().join(' ').replace(/'/g,"\\'").replace(/"/g,'"'); var handler="return config.macros.tagGrid.popup(this,event,\'"+rows[i]+"\',\'"+cols[j]+"\',\'"+list+"\')"; if (colors) { var c=colors[cross.length-1]; bgcolor="#"+c; linkstyle="style='color:#000000 !important'"; // invert link color if background is very light if (c.substr(0,2)<"60" || c.substr(2,2)<"60" || c.substr(4,2)<"60") linkstyle="style='color:#FFFFFF !important'"; } } else { var label=" - "; var tip="create a new tiddler tagged with: "+hdr; var list=""; var handler="var title=config.macros.newTiddler.title;"; handler+="story.displayTiddler(this,title,DEFAULT_EDIT_TEMPLATE);"; handler+="story.setTiddlerTag(title,\'"+rows[i]+"\',+1);"; handler+="story.setTiddlerTag(title,\'"+cols[j]+"\',+1);"; handler+="story.focusTiddler(title,\'text\');return(false);"; } if (!showInline || !cross) content+='<a href="javascript:;" '+linkstyle+' onclick="'+handler+'" title="'+tip+'">'+label+'</a>'; if (showInline && cross) { content+="<div "+linkstyle+"><span style='white-space:nowrap'>"; content+=hdr+" ("+label+")"; content+="</span></div><hr>"; // list tiddler links inline in table cell for (t=0; t<cross.length; t++) { var title=cross[t].replace(/\[\[/g,'').replace(/\]\]/g,''); var handler="story.displayTiddler(null,'"+title+"');return false;" var tid=store.getTiddler(title); var author=tid.modifier; var date=tid.modified.toLocaleString(); var tip=config.messages.tiddlerLinkTooltip.format([title,author,date]); if (t>0) content+="<br>"; content+='<a href="javascript:;" '+linkstyle+' onclick="'+handler+'" title="'+tip+'">'+title+'</a>'; } content+="<hr>"; handler="var tids=\'"+list+"\'.readBracketedList();story.displayTiddlers(this,tids); return(false);" tip="display all tiddlers tagged with: "+hdr; content+='<a href="javascript:;" '+linkstyle+' onclick="'+handler+'" title="'+tip+'">open all...</a><br>'; handler="var title=config.macros.newTiddler.title;"; handler+="story.displayTiddler(this,title,DEFAULT_EDIT_TEMPLATE);"; handler+="story.setTiddlerTag(title,\'"+rows[i]+"\',+1);"; handler+="story.setTiddlerTag(title,\'"+cols[j]+"\',+1);"; handler+="story.focusTiddler(title,'text'); return(false);" tip="create a new tiddler tagged with: "+hdr; content+='<a href="javascript:;" '+linkstyle+' onclick="'+handler+'" title="'+tip+'">new tiddler...</a>'; } out+="<td style='background-color:"+bgcolor+";border:1px solid "+bordercolor+" !important;text-align:center'>"+content+"</td>"; } out+="</tr>"; } out+="</table>"; out+="</html>"; createTiddlyElement(place,"span").innerHTML=out; var time3=new Date(); if (this.verbose) displayMessage("TagGrid: scan="+(time2-time1)+", generate table="+(time3-time2)); }, popup: function(here,event,row,col,list) { var tids=list.replace(/"/g,'"').readBracketedList(); var hdr=row+(row!=col?(" AND "+col):""); if (tids.length) { var p=Popup.create(here); if (!p) return; createTiddlyText(p,hdr); createTiddlyElement(p,'hr'); for(var t=0; t<tids.length; t++) createTiddlyLink(createTiddlyElement(p,'li'),tids[t],true); createTiddlyElement(p,'hr'); createTiddlyButton(createTiddlyElement(p,'li'), "open all...", "display all tiddlers tagged with: "+hdr, function(){story.displayTiddlers(null,tids); return(false);}); var a=createTiddlyButton(createTiddlyElement(p,'li'), "new tiddler...", "create a new tiddler tagged with: "+hdr, function(){ var title=config.macros.newTiddler.title; story.displayTiddler(this,title,DEFAULT_EDIT_TEMPLATE); story.setTiddlerTag(title,this.getAttribute("rowtag"),+1); story.setTiddlerTag(title,this.getAttribute("coltag"),+1); story.focusTiddler(title,"text"); return(false); }); a.setAttribute("rowtag",row); a.setAttribute("coltag",col); Popup.show(); } event.cancelBubble = true; if (event.stopPropagation) event.stopPropagation(); return(false); }, toggleAllColumns: function(here,event,defOpen) { if (here.expanded==undefined) here.expanded=defOpen; var ex=here.expanded=!here.expanded; here.innerHTML=ex?"<<<":">>>"; here.title=ex?'hide all column headings':'show all column headings'; var cells=here.parentNode.parentNode.getElementsByTagName("td"); for (i=1; i<cells.length; i++) cells[i].firstChild.style.display=ex?"inline":"none"; event.cancelBubble = true; if (event.stopPropagation) event.stopPropagation(); return(false); }, toggleColumn: function(here,event) { here.firstChild.style.display=(here.firstChild.style.display=="none")?"inline":"none"; event.cancelBubble = true; if (event.stopPropagation) event.stopPropagation(); return(false); } }; //}}}
/*** |''Name''|AddNowCommand| |''Description''|Opens a tiddler in edit mode and adds "Date and Time" at the end of the text.| |''Authors''|see Related to| |''Version''|0.0.3| |''Date''|2011-06-10| |''Status''|@@beta@@| |''Source''|http://hoster.peermore.com/recipes/TeamWork/tiddlers.wiki#AddNowCommand| |''License''|BSD| |''CoreVersion''|2.5| |''Related to''|http://groups.google.com/group/tiddlywiki/browse_thread/thread/9f3fb012e80fdc4| |''Keywords''|toolbar command add date time edit| !!!Description <<< To use this new toolbar command you have to add {{{addNow}}} to ToolbarCommands tiddler eg: {{{ |~ViewToolbar|tagSearch addNow +editTiddler ... }}} <<< !!!Date Format <<< Possible date formats can be seen at [[TiddlyWiki.org|http://tiddlywiki.org/#%5b%5bDate%20Formats%5d%5d]] To change the date format add the following line to a tiddler eg: [[zzConfig]] tagged systemConfig //{{{ config.commands.addNow.dateFormat = 'YYYY-0MM-0DD 0hh:0mm'; //}}} To change the insert {{{mode}}} add: //{{{ config.commands.addNow.mode = 'post'; //}}} To change the {{{selectedText}}} in mode = 'pre' add: //{{{ config.commands.addNow.selectedText = 'your text here'; //}}} <<< !!!Code ***/ //{{{ // http://stackoverflow.com/questions/499126/jquery-set-cursor-position-in-text-area/841121#841121 // $('#elem').selectRange(3,5); jQuery.fn.selectRange = function(start, end) { return this.each(function() { if (this.setSelectionRange) { this.focus(); this.setSelectionRange(start, end); } else if (this.createTextRange) { var range = this.createTextRange(); range.collapse(true); range.moveEnd('character', end); range.moveStart('character', start); range.select(); } }); }; config.commands.addNow = { text: "addNow", tooltip: "Edit tiddler and add [Date & Time]!", selectedText: "insert text", mode: 'pre', // 'pre' or 'post' spacingText: '\n\n----\n', insertText: '[%0]\n', dateFormat: 'YYYY-0MM-0DD 0hh:0mm', isEnabled: function(tiddler) { return (!readOnly && !tiddler.isTagged('systemConfig')); } }; config.commands.addNow.handler = function(event,src,title) { config.commands.editTiddler.handler.call(this,event,src,title); var text = jQuery(story.getTiddler(title)).find('textarea[edit=text]'); var spacer = text.val() ? this.spacingText : '' ; var dynText = this.insertText.format([new Date().formatString(this.dateFormat)]); if (this.mode == 'post') { text.val(text.val() + spacer + dynText); } else { text.val(dynText + this.selectedText + spacer + text.val() ); jQuery(text).selectRange(dynText.length, dynText.length + this.selectedText.length); } return false; }; //}}}
sunyit-refs
Está formado por una serie de //sacos// membranosos. Su función es acabar la formación de sustancias que se van a utilizar en la célula o que se expulsarán fuera de ella. |[img(400px+,)[http://upload.wikimedia.org/wikipedia/commons/a/a9/Human_leukocyte,_showing_golgi_-_TEM.jpg]]| |Aparato de Golgi visto al microscopio electrónico|c
<?xml version="1.0" encoding="UTF-8" standalone="no"?> <svg id="svg2" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns="http://www.w3.org/2000/svg" height="29pt" viewBox="13 43 29 29" width="29pt" version="1.0" xmlns:cc="http://creativecommons.org/ns#" xmlns:dc="http://purl.org/dc/elements/1.1/" onmousedown="if(jQuery) jQuery(document).trigger('cSmaller', {elem:this, comp:{animations:1}})" onmouseup="if(jQuery) jQuery(document).trigger('cResize', {elem:this, comp:{animations:1}})"> <defs id="defs6"> <linearGradient id="linearGradient001" y2="27.646" gradientUnits="userSpaceOnUse" x2="-45.8" y1="27.646" x1="-57.66"> <stop id="stop1" stop-color="#CC9900" offset="0"/> <stop id="stop2" stop-color="#E8D18B" offset="0.66462"/> <stop id="stop3" stop-color="#CC9900" offset="1"/> </linearGradient></defs> <g id="icon" stroke-linecap="round" stroke-miterlimit="4"> <rect id="iconBG" style="stroke-dasharray:none;" fill-rule="evenodd" ry="4.1663" transform="matrix(0, -1, 1, 0, 0, 0)" height="25" width="25" stroke="#696969" stroke-linecap="round" stroke-miterlimit="4" y="15.167" x="-70.116" stroke-width="1.2" fill="none"/> <rect id="iconFG" stroke-width="0" fill-rule="evenodd" ry="2.3755" transform="matrix(0, -1, 1, 0, 0, 0)" width="22" stroke-miterlimit="4" y="16.646" x="-68.6" height="22" fill="url(#linearGradient001)" class="showOnHover" opacity="0"/> <g id="iconSymbol" stroke-linejoin="miter" style="stroke-dasharray:none;" transform="matrix(0.744603, -0.571406, 0.571406, 0.744603, -26.72, 29.8594)" stroke="#4d4d4d" stroke-width="2.4000001" fill="none"> <rect id="rect3648" style="stroke-dasharray:none;" ry="1.9242" height="6.1172" width="10.95" y="55.132" x="19.169"/> <rect id="rect3650" style="stroke-dasharray:none;" ry="1.9242" height="6.1172" width="10.95" y="56.513" x="25.822"/> </g> <rect id="overlay" opacity="0.01" ry="4.1663" style="stroke-dasharray:none;" fill-rule="evenodd" transform="matrix(0, -1, 1, 0, 0, 0)" height="25" width="25" stroke="#e6e6e6" stroke-linecap="round" stroke-miterlimit="4" y="15.167" x="-70.116" stroke-width="1.2" fill="#e6e6e6" onmouseover="if(jQuery) jQuery(document).trigger('cTglBg', {elem:this, comp:{animations:1}})" onmouseout="if(jQuery) jQuery(document).trigger('cTglBg', {elem:this, comp:{animations:1}})"/> </g> </svg>
/*** |''Name:''|StoryGlueMacro| |''Description:''|Makes SelectStoryMacro and NavigationMacro work together| |''Author:''|Mario Pietsch| |''Source:''|http://a-pm.tiddlyspot.com| |''Version:''|0.5.2| |''Status:''|beta| |''Date:''|2010.02.06| |''Requires:''|SelectStoryMacro, NavigationMacro| |''License:''|[[Creative Commons Attribution-ShareAlike 3.0 License|http://creativecommons.org/licenses/by-sa/3.0/]]| |''~CoreVersion:''|2.2.2| !!!!!Usage: <<< Add the macro to the ViewTemplate, specifying the tag eg:"story" and a cookie: eg:"ACTIVESTORY" to navigate between the possible stories. Find the line: {{{ <div class='viewer' macro='view text wikified'></div> }}} ''and add the following line below:'' {{{ <div class='viewer' macro='storyGlue story ACTIVESTORY</div> }}} If you are allready using "navigation" macro. Replace "navigation" macro because it is called by StoryGlueMacro to handle navigation. Don't delete it comment it !! <<< !!!!!Parameter <<< General Format: {{{ <div class='viewer' macro='storyGlue storyTag COOKIENAME</div> }}} storyTag: The macro searches all tiddlers tagged: "storyTag" >If the tiddler is found in one or more stories. "selectStory" macro is activated instead of "navigation" macro to switch to a new story if you want. >If it doesn't find a matching story nothing is displayed. COOKIENAME is last part of an txtSelectStory option cookie, that storyGlue will look at. >The cookie is used, to store the name of the actual story, that will be used for navigating. >The cookie can be manipulated also by SelectStoryMacro if the same name is used. >Bee carefull if you use a different name. Look at my examples! >If you don't use SelectStoryMacro you will need a little program somewhere in your init functions. >{{{config.options.txtSelectStoryCOOKIENAME = "yourTiddlerThatContainsAStoryAndIsTaggedWithXXXX";}}} >Better have a look at [[zzMptwUserConfigPlugin]] The option: {{{<<option txtSelectStoryACTIVESTORY>>}}}: ''<<varDisplay {{config.options.txtSelectStoryACTIVESTORY}}>>'' contains the active story, that is used in [[a-pm presentation manager|http://a-pm.tiddlyspot.com]]. If you click a tiddler, which is not part of the active story, but of any tiddler tagged: "story", storyGlue will activate the SelectStoryMarcro. SelectStoryMacro will display all stories found in a different color (default: blue). If you click on of the small sqares, it will activate this story, which can be used for navigatin now. The SelectStoryMacro can also work stand alone. See [[SelectStoryMacro]] for more details. <<< !!!!!Attention <<< There is no limit using different cookie names. ''But be warned: If you get confused. It is not my fault :)'' If your cookie name is eg: MYSTORY the option which contains the active story will be: {{{<<option txtSelectStoryMYSTORY>>}}} It is always: txtSelectStory + yourCookieName. In viewTemplate call it with: {{{ <div class='viewer' macro='storyGlue story MYSTORY</div> }}} <<< !!!!!Example: <<< [[Demo|Story1]] <<< !!!!!Revision History <<< *Version: 0.5.1 - 2010.01.30 **commented the displayMessage if an empty story is selected from SelectStoryMacro <<< ***/ /*{{{*/ // //!BEGIN-PLUGIN-CODE if(!version.extensions.StoryGluePlugin) { //# ensure that the plugin is only installed once version.extensions.StoryGluePlugin = { installed: true }; if(!config.extensions) { config.extensions = {}; } //# obsolete from v2.4.2 config.macros.storyGlue= { defineStoryMsg: "~StoryGlue: option name is not defined!\n"+ "Read the Documentation!\n" + "Check your ~ViewTemplate!\n" + "Check: config.options.", handler: function(place, macroName, params, wikifier, paramString, tiddler){ if (!config.macros.navigation) return false; if (!config.macros.selectStory) return false; if (config.options.chkDisableStoryGlue== undefined) config.options.chkDisableStoryGlue= false; var sets = store.getTaggedTiddlers(params[0]); // get tiddlers tagged eg:'story' var optId = config.macros.selectStory.optPreTxt + params[1]; // get the last part of the cookie name var txtArray = []; for (var i = 0; i < sets.length; i++) { txtArray.push(sets[i].title); } var navIndex = txtArray.indexOf(config.options[optId]); if (navIndex == -1) { // console.log(this.defineStoryMsg+optId); return false; // can only be if option is undefined or different pc / cookie } var tiddlers = store.getTiddlerText(sets[navIndex].title).readBracketedList(); // read tiddlers in active story var tidIndex = tiddlers.indexOf(tiddler.title); // storyline ok .. use navigation macro if (tidIndex != -1) { var p = "tiddlers:{{store.getTiddlerText('" + sets[navIndex].title + "').readBracketedList()}}"; invokeMacro(place, 'navigation', p, wikifier, tiddler); return false; } if (config.options.chkDisableStoryGlue) return false; if (this.debug) console.log('not disabled:', tiddlers); if (tidIndex == -1) { // search other stories for this tiddler. var text = params[1]+' '+'tiddlers: [['; var found = false; for (var i=0; i<txtArray.length; i++) { //!!!!!!! better search needed ! tiddlers = store.getTiddlerText(txtArray[i]).readBracketedList(); // read tiddlers in active story tidIndex = tiddlers.indexOf(tiddler.title); if (tidIndex != -1) { found = true; text = text + '"' + txtArray[i] + '" '; } // if tidIndex .. } // for i < txtArray.len .. text = text+']]'; // console.log( 'text: ' + text); // console.log( 'found: ' + found); // var text = params[1]+" "+ "tiddlers: {{ var array = store.filterTiddlers('[tag[" + params[0] + // "]]');var text = ''; for (var i=0; i<array.length; i++)"+ // "{text = text + '[[' + array[i].title + ']]';};}}"; // be carefull evaluated string !!! if (found) invokeMacro(place, 'selectStory', text, wikifier, tiddler); } // handler } // config macro } } //# end of "install only once" /*}}}*/
Hablar sobre la primera célula es hablar sobre el origen de la VIDA. No sabemos casi nada acerca de ello. Es uno de los grandes misterios de la Ciencia. Posiblemente no sepamos mucho más dentro de un siglo así que, de momento, no nos interesa...
!Question 1 Yes !Question 5 aaaaa !Question 3 aaa !Question 4 Cadburys !Pregunta 1 Sí
/*** |Name|ImageSizePlugin| |Source|http://www.TiddlyTools.com/#ImageSizePlugin| |Version|1.2.3| |Author|Eric Shulman| |License|http://www.TiddlyTools.com/#LegalStatements| |~CoreVersion|2.1| |Type|plugin| |Description|adds support for resizing images| This plugin adds optional syntax to scale an image to a specified width and height and/or interactively resize the image with the mouse. !!!!!Usage <<< The extended image syntax is: {{{ [img(w+,h+)[...][...]] }}} where ''(w,h)'' indicates the desired width and height (in CSS units, e.g., px, em, cm, in, or %). Use ''auto'' (or a blank value) for either dimension to scale that dimension proportionally (i.e., maintain the aspect ratio). You can also calculate a CSS value 'on-the-fly' by using a //javascript expression// enclosed between """{{""" and """}}""". Appending a plus sign (+) to a dimension enables interactive resizing in that dimension (by dragging the mouse inside the image). Use ~SHIFT-click to show the full-sized (un-scaled) image. Use ~CTRL-click to restore the starting size (either scaled or full-sized). <<< !!!!!Examples <<< {{{ [img(100px+,75px+)[http://upload.wikimedia.org/wikipedia/commons/thumb/0/0d/Andromeda_galaxy_2.jpg/800px-Andromeda_galaxy_2.jpg]] }}} [img(100px+,75px+)[images/meow2.jpg]] {{{ [<img(34%+,+)[images/meow.gif]] [<img(21% ,+)[images/meow.gif]] [<img(13%+, )[images/meow.gif]] [<img( 8%+, )[images/meow.gif]] [<img( 5% , )[images/meow.gif]] [<img( 3% , )[images/meow.gif]] [<img( 2% , )[images/meow.gif]] [img( 1%+,+)[images/meow.gif]] }}} [<img(34%+,+)[images/meow.gif]] [<img(21% ,+)[images/meow.gif]] [<img(13%+, )[images/meow.gif]] [<img( 8%+, )[images/meow.gif]] [<img( 5% , )[images/meow.gif]] [<img( 3% , )[images/meow.gif]] [<img( 2% , )[images/meow.gif]] [img( 1%+,+)[images/meow.gif]] {{tagClear{ }}} <<< !!!!!Revisions <<< 2011.09.03 [1.2.3] bypass addStretchHandlers() if no '+' suffix is used (i.e., not resizable) 2010.07.24 [1.2.2] moved tip/dragtip text to config.formatterHelpers.imageSize object to enable customization 2009.02.24 [1.2.1] cleanup width/height regexp, use '+' suffix for resizing 2009.02.22 [1.2.0] added stretchable images 2008.01.19 [1.1.0] added evaluated width/height values 2008.01.18 [1.0.1] regexp for "(width,height)" now passes all CSS values to browser for validation 2008.01.17 [1.0.0] initial release <<< !!!!!Code ***/ //{{{ version.extensions.ImageSizePlugin= {major: 1, minor: 2, revision: 3, date: new Date(2011,9,3)}; //}}} //{{{ var f=config.formatters[config.formatters.findByField("name","image")]; f.match="\\[[<>]?[Ii][Mm][Gg](?:\\([^,]*,[^\\)]*\\))?\\["; f.lookaheadRegExp=/\[([<]?)(>?)[Ii][Mm][Gg](?:\(([^,]*),([^\)]*)\))?\[(?:([^\|\]]+)\|)?([^\[\]\|]+)\](?:\[([^\]]*)\])?\]/mg; f.handler=function(w) { this.lookaheadRegExp.lastIndex = w.matchStart; var lookaheadMatch = this.lookaheadRegExp.exec(w.source) if(lookaheadMatch && lookaheadMatch.index == w.matchStart) { var floatLeft=lookaheadMatch[1]; var floatRight=lookaheadMatch[2]; var width=lookaheadMatch[3]; var height=lookaheadMatch[4]; var tooltip=lookaheadMatch[5]; var src=lookaheadMatch[6]; var link=lookaheadMatch[7]; // Simple bracketted link var e = w.output; if(link) { // LINKED IMAGE if (config.formatterHelpers.isExternalLink(link)) { if (config.macros.attach && config.macros.attach.isAttachment(link)) { // see [[AttachFilePluginFormatters]] e = createExternalLink(w.output,link); e.href=config.macros.attach.getAttachment(link); e.title = config.macros.attach.linkTooltip + link; } else e = createExternalLink(w.output,link); } else e = createTiddlyLink(w.output,link,false,null,w.isStatic); addClass(e,"imageLink"); } var img = createTiddlyElement(e,"img"); if(floatLeft) img.align="left"; else if(floatRight) img.align="right"; if(width||height) { var x=width.trim(); var y=height.trim(); var stretchW=(x.substr(x.length-1,1)=='+'); if (stretchW) x=x.substr(0,x.length-1); var stretchH=(y.substr(y.length-1,1)=='+'); if (stretchH) y=y.substr(0,y.length-1); if (x.substr(0,2)=="{{") { try{x=eval(x.substr(2,x.length-4))} catch(e){displayMessage(e.description||e.toString())} } if (y.substr(0,2)=="{{") { try{y=eval(y.substr(2,y.length-4))} catch(e){displayMessage(e.description||e.toString())} } img.style.width=x.trim(); img.style.height=y.trim(); if (stretchW||stretchH) config.formatterHelpers.addStretchHandlers(img,stretchW,stretchH); } if(tooltip) img.title = tooltip; // GET IMAGE SOURCE if (config.macros.attach && config.macros.attach.isAttachment(src)) src=config.macros.attach.getAttachment(src); // see [[AttachFilePluginFormatters]] else if (config.formatterHelpers.resolvePath) { // see [[ImagePathPlugin]] if (config.browser.isIE || config.browser.isSafari) { img.onerror=(function(){ this.src=config.formatterHelpers.resolvePath(this.src,false); return false; }); } else src=config.formatterHelpers.resolvePath(src,true); } img.src=src; w.nextMatch = this.lookaheadRegExp.lastIndex; } } config.formatterHelpers.imageSize={ tip: 'SHIFT-CLICK=show full size, CTRL-CLICK=restore initial size', dragtip: 'DRAG=stretch/shrink, ' } config.formatterHelpers.addStretchHandlers=function(e,stretchW,stretchH) { e.title=((stretchW||stretchH)?this.imageSize.dragtip:'')+this.imageSize.tip; e.statusMsg='width=%0, height=%1'; e.style.cursor='move'; e.originalW=e.style.width; e.originalH=e.style.height; e.minW=Math.max(e.offsetWidth/20,10); e.minH=Math.max(e.offsetHeight/20,10); e.stretchW=stretchW; e.stretchH=stretchH; e.onmousedown=function(ev) { var ev=ev||window.event; this.sizing=true; this.startX=!config.browser.isIE?ev.pageX:(ev.clientX+findScrollX()); this.startY=!config.browser.isIE?ev.pageY:(ev.clientY+findScrollY()); this.startW=this.offsetWidth; this.startH=this.offsetHeight; return false; }; e.onmousemove=function(ev) { var ev=ev||window.event; if (this.sizing) { var s=this.style; var currX=!config.browser.isIE?ev.pageX:(ev.clientX+findScrollX()); var currY=!config.browser.isIE?ev.pageY:(ev.clientY+findScrollY()); var newW=(currX-this.offsetLeft)/(this.startX-this.offsetLeft)*this.startW; var newH=(currY-this.offsetTop )/(this.startY-this.offsetTop )*this.startH; if (this.stretchW) s.width =Math.floor(Math.max(newW,this.minW))+'px'; if (this.stretchH) s.height=Math.floor(Math.max(newH,this.minH))+'px'; clearMessage(); displayMessage(this.statusMsg.format([s.width,s.height])); } return false; }; e.onmouseup=function(ev) { var ev=ev||window.event; if (ev.shiftKey) { this.style.width=this.style.height=''; } if (ev.ctrlKey) { this.style.width=this.originalW; this.style.height=this.originalH; } this.sizing=false; clearMessage(); return false; }; e.onmouseout=function(ev) { var ev=ev||window.event; this.sizing=false; clearMessage(); return false; }; } //}}}
*[[Principios básicos de la Estratigrafía]]
A [[SiteIcon|SiteIcon tiddler]]@glossary helps provide some identity to your space. Ideally it'd be a square and a minimum of 48*48 pixels size. You can upload your site icon using the uploader below. <<binaryUploadPublic title:SiteIcon>>
@@Please do not modify this tiddler; it was created automatically upon space creation.@@
//Omnis cellula ex cellula//... Este es el principio más básico de la [[Biología]]. Significa que toda célula procede de otra célula anterior pero esto plantea un par de cuestiones...: *¿qué es una [[célula]]? *¿de dónde vino la [[primera célula]]?
<!DOCTYPE html> <html> <head> <meta http-equiv="Content-Type" content="text/html;charset=utf-8"> <title>Account</title> <link href="/bags/common/tiddlers/profile.css" type='text/css' rel='stylesheet' > <link href="/bags/common/tiddlers/admin.css" type='text/css' rel='stylesheet' > <link href="/bags/common/tiddlers/jquery-ui.custom.css" type='text/css' rel='stylesheet' > </head> <body> <div id="container"> <div class="main section"> <a class="app" href="/">home</a> <div class="left"> <div id="siteiconArea"> <h2>User Icon</h2> <div> <img id="siteicon" class="siteicon"> <form id="upload" method="POST" enctype="multipart/form-data"> <input type="hidden" name="title" value="SiteIcon" /> <input type="hidden" name="tags" value="excludeLists"> <input type="hidden" name="csrf_token" class="csrf" /> <input type="file" name="file" accept="image/*" /> <input type="submit" value="upload" /> </form> <div id="dropzone">Drop file here <img class="notloading" src="/bags/common/tiddlers/ajax-loader.gif" alt="submitting SiteIcon" /> </div> </div> </div> <h2>Find Space</h2> <form class="spaceSearch"> <input class="inputBox" type="text" placeholder="find space" /> <a href="http://docs.tiddlyspace.com/What%20is%20a%20Space%3F" class="help" title="What is a space?">What is a space?</a> <button>view all</button> </form> <div class='list-container'> You are a member of the following spaces: <ul class='ts-space-search'> </ul> </div> <h2>Create New Space</h2> <form class="ts-spaces"> <input class="inputBox" type="text" name="spacename" placeholder="space name"><span class="hostSuffix">.tiddlyspace.com</span> <input type="submit" value="Create Space" /> </form> </div> <div class="right"> <h2>Change Password</h2> <form class="ts-password"> <input class="inputBox" placeholder="existing password" type="password" name="password"> <input class="inputBox" placeholder="new password" type="password" name="new_password"> <input class="inputBox" placeholder="new password" type="password" name="new_password_confirm"> <input type="submit" value="Change password"> </form> <h2>OpenID</h2> <h3>Why OpenID?</h3> <a href="http://openid.net/"><img src="/bags/common/tiddlers/openid.png" alt="openid" ></a><br /> Use just one username and password across hundreds of OpenID-enabled sites.<br /> It's an open standard.<br /> <a href="http://openid.net/what/">learn more</a> <ul class="ts-identities"></ul> <form class="ts-openid" target="_top"> <div> Add an openid: </div> <input class="inputBox" type="text" name="openid" placeholder="your openid" /> <input type="submit" value="Register" /> <a href="http://openid.net/get-an-openid/" class="help" title="What is an open id?">What is an open id?</a> </form> </div> <div class="clear"></div> </div> </div> <script src="/bags/common/tiddlers/backstage.js"></script> <script src='/bags/common/tiddlers/jquery.js'></script> <script src='/bags/tiddlyspace/tiddlers/chrjs'></script> <script src='/bags/common/tiddlers/chrjs.space'></script> <script src='/bags/common/tiddlers/chrjs.users'></script> <script src='/bags/common/tiddlers/chrjs.identities'></script> <script src="/bags/common/tiddlers/jquery-ui.custom.js"></script> <script src='/bags/common/tiddlers/jquery-form.js'></script> <script src="/bags/common/tiddlers/siteiconupload.js"></script> <script src='/bags/common/tiddlers/ts.js'></script> <script src="/status.js"></script> <script type="text/javascript"> /* * jQuery UI Autocomplete HTML Extension * * Copyright 2010, Scott González (http://scottgonzalez.com) * Dual licensed under the MIT or GPL Version 2 licenses. * * http://github.com/scottgonzalez/jquery-ui-extensions */ (function( $ ) { var proto = $.ui.autocomplete.prototype, initSource = proto._initSource; function filter( array, term ) { var matcher = new RegExp( $.ui.autocomplete.escapeRegex(term), "i" ); return $.grep( array, function(value) { return matcher.test( $( "<div>" ).html( value.label || value.value || value ).text() ); }); } $.extend( proto, { _initSource: function() { if ( this.options.html && $.isArray(this.options.source) ) { this.source = function( request, response ) { response( filter( this.options.source, request.term ) ); }; } else { initSource.call( this ); } }, _renderItem: function( ul, item) { return $( "<li></li>" ) .data( "item.autocomplete", item ) .append( $( "<a></a>" )[ this.options.html ? "html" : "text" ]( item.label ) ) .appendTo( ul ); } }); })( jQuery ); /*** _accounts application specific javascript ***/ var link; ts.init(function(ts) { if(ts.user.anon) { // redirect to homepage when user not logged in window.location = ts.getHost(); } else if(ts.user.name === ts.currentSpace){ initSiteIconUpload(ts.user.name); } else { link = $("<a />").attr("href", ts.getHost(ts.user.name) + "/_account").text("Change User Icon"); $("#siteiconArea div").empty().append(link); } $(".hostSuffix").text("." + ts.getHost("").split("//")[1]); ts.getSpaces(function(spaces) { $("<div class='info' />").text("You have " + spaces.length + " spaces.").insertBefore($(".spaceSearch")[0]); $("form.spaceSearch input").autocomplete({ html: true, source: function(req, response) { ts.getSpaces(function(spaces) { var selected = []; for(var i = 0; i < spaces.length; i++) { var space = spaces[i]; if(space.name.indexOf(req.term) > -1) { var host = ts.getHost(space.name) ; var img = host + "/SiteIcon"; selected.push({ value: space.name, label: '<a href="' + host + '" target="_parent" class="autocompleteLink"><img src="' + img + '" style="height:24px;width:auto;max-height:24px;max-width:24px;"/>' + space.name + '</a>' }); } } response(selected); }); }, select: function(event, ui) { window.top.location = ts.getHost(ui.item.value); } }); var $ul = $('.ts-space-search'); $.each(spaces, function(i, space) { $ul.append($('<li/>').html($('<a/>').attr('href', space.uri) .text(space.name))); }); $('form.spaceSearch button').click(function(ev) { $('.list-container').slideToggle('fast'); ev.preventDefault(); return false; }); }); }); if(window != window.top) { $("html").addClass("iframeMode"); $("a").live("click",function(ev) { $(ev.target).attr("target", "_parent"); }); } </script> <!--[if lt IE 8]> <script type="text/javascript" src="/bags/common/tiddlers/json2.js"></script> <![endif]--> </body> </html>
*Problemas cobertura
Bueno, para que fuera ópalo de verdad debería tener por ahí moléculas de agua, pero sería algo parecido...
El Sol. <html><img src="http://upload.wikimedia.org/wikipedia/commons/a/aa/Sun920607.jpg" style="width: 220px; "/></html> No te olvides de que es una estrella. ¡Es la única que se puede ver por el día! El Sol está a 150 millones de kilómetros de la Tierra. La siguiente estrella más cercana se llama alfa-Centauri y está a ¡40 __millones de millones__ de Km!
/*** |Name:|ToggleTagPlugin| |Description:|Makes a checkbox which toggles a tag in a tiddler| |Version:|3.1.0a| |Date:|27-Jun-2011| |Source:|http://mptw.tiddlyspot.com/#ToggleTagPlugin| |Author:|Simon Baird <simon.baird@gmail.com>| |License:|http://mptw.tiddlyspot.com/#TheBSDLicense| !!Usage {{{<<toggleTag }}}//{{{TagName TiddlerName LabelText}}}//{{{>>}}} * TagName - the tag to be toggled, default value "checked" * TiddlerName - the tiddler to toggle the tag in, default value the current tiddler * LabelText - the text (gets wikified) to put next to the check box, default value is '{{{[[TagName]]}}}' or '{{{[[TagName]] [[TiddlerName]]}}}' (If a parameter is '.' then the default will be used) * TouchMod flag - if non empty then touch the tiddlers mod date. Note, can set config.toggleTagAlwaysTouchModDate to always touch mod date !!Examples |Code|Description|Example|h |{{{<<toggleTag>>}}}|Toggles the default tag (checked) in this tiddler|<<toggleTag>>| |{{{<<toggleTag TagName>>}}}|Toggles the TagName tag in this tiddler|<<toggleTag TagName>>| |{{{<<toggleTag TagName TiddlerName>>}}}|Toggles the TagName tag in the TiddlerName tiddler|<<toggleTag TagName TiddlerName>>| |{{{<<toggleTag TagName TiddlerName 'click me'>>}}}|Same but with custom label|<<toggleTag TagName TiddlerName 'click me'>>| |{{{<<toggleTag . . 'click me'>>}}}|dot means use default value|<<toggleTag . . 'click me'>>| !!Notes * If TiddlerName doesn't exist it will be silently created * Set label to '-' to specify no label * See also http://mgtd-alpha.tiddlyspot.com/#ToggleTag2 !!Known issues * Doesn't smoothly handle the case where you toggle a tag in a tiddler that is current open for editing * Should convert to use named params ***/ //{{{ if (config.toggleTagAlwaysTouchModDate == undefined) config.toggleTagAlwaysTouchModDate = false; merge(config.macros,{ toggleTag: { createIfRequired: true, shortLabel: "[[%0]]", longLabel: "[[%0]] [[%1]]", handler: function(place,macroName,params,wikifier,paramString,tiddler) { var tiddlerTitle = tiddler ? tiddler.title : ''; var tag = (params[0] && params[0] != '.') ? params[0] : "checked"; var title = (params[1] && params[1] != '.') ? params[1] : tiddlerTitle; var defaultLabel = (title == tiddlerTitle ? this.shortLabel : this.longLabel); var label = (params[2] && params[2] != '.') ? params[2] : defaultLabel; var touchMod = (params[3] && params[3] != '.') ? params[3] : ""; label = (label == '-' ? '' : label); // dash means no label var theTiddler = (title == tiddlerTitle ? tiddler : store.getTiddler(title)); var cb = createTiddlyCheckbox(place, label.format([tag,title]), theTiddler && theTiddler.isTagged(tag), function(e) { if (!store.tiddlerExists(title)) { if (config.macros.toggleTag.createIfRequired) { var content = store.getTiddlerText(title); // just in case it's a shadow store.saveTiddler(title,title,content?content:"",config.options.txtUserName,new Date(),null); } else return false; } if ((touchMod != "" || config.toggleTagAlwaysTouchModDate) && theTiddler) theTiddler.modified = new Date(); store.setTiddlerTag(title,this.checked,tag); return true; }); } } }); //}}}
Gracias a los [[métodos de datación por radioisótopos]] sabemos que nuestro planeta se formó hace alrededor de 4500 millones de años. En estos vídeos podemos ver cómo fue ese origen y los primeros momentos de la historia de la Tierra. *[[Vídeo1|http://www.youtube.com/watch?v=UR_ESkqtgjM]], ver desde el minuto 1:30 *[[Vídeo2|http://www.youtube.com/watch?v=tBGAPdhh-XE]], ver desde el minuto 1 hasta el 10:30. *[[Vídeo3|http://www.youtube.com/watch?v=n6rOM8c7loQ]] ---- ***Después de ver estos vídeos deberías tener algunas ideas claras acerca de [[cómo fue el origen de nuestro planeta]]. ----
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xl="http://www.w3.org/1999/xlink" version="1.1" viewBox="434 218 68 68" width="30" height="30"> <g stroke="none" stroke-opacity="1" stroke-dasharray="none" fill="none" fill-opacity="1"> <g> <path d="M 478.39694 232.53705 L 478.39694 232.53705 C 477.1145 231.85132 475.77875 231.30147 474.41058 230.88734 L 474.41058 218.24994 L 461.58942 218.24994 L 461.58942 230.88734 C 460.22125 231.30147 458.8855 231.85132 457.60306 232.53705 L 448.66824 223.60214 L 439.6022 232.66814 L 448.53717 241.60304 C 447.8515 242.8854 447.30157 244.22116 446.88745 245.58936 L 434.25 245.58936 L 434.25 258.41052 L 446.88745 258.41052 C 447.30157 259.77869 447.8515 261.11447 448.53717 262.39688 L 439.6022 271.33173 L 448.66824 280.3978 L 457.60306 271.46283 C 458.8855 272.14862 460.22125 272.69846 461.58942 273.11252 L 461.58942 285.74988 L 474.41058 285.74988 L 474.41058 273.11252 C 475.77875 272.69846 477.1145 272.14862 478.39694 271.46283 L 487.33176 280.3978 L 496.39767 271.33173 L 487.46286 262.39688 C 488.14853 261.11447 488.69836 259.77869 489.11255 258.41052 L 501.74988 258.41052 L 501.74988 245.58936 L 489.11255 245.58936 C 488.69836 244.22116 488.14853 242.8854 487.46286 241.60304 L 496.39767 232.66814 L 487.33176 223.60214 Z M 475.3328 244.66714 C 479.3825 248.71698 479.3825 255.2829 475.3328 259.33273 C 471.28296 263.3826 464.71704 263.3826 460.66724 259.33273 C 456.61737 255.2829 456.61737 248.71698 460.66724 244.66714 C 464.71704 240.61734 471.28296 240.61734 475.3328 244.66714" fill="#111" class="glyph"/> </g> </g> </svg>
/*** |Name|TagCloudPlugin| |Source|http://www.TiddlyTools.com/#TagCloudPlugin| |Version|1.7.0| |Author|Eric Shulman| |Original Author|Clint Checketts| |License|http://www.TiddlyTools.com/#LegalStatements| |~CoreVersion|2.1| |Type|plugin| |Description|present a 'cloud' of tags (or links) using proportional font display| !Usage <<< {{{ <<cloud type action:... limit:... tag tag tag ...>> <<cloud type action:... limit:... +TiddlerName>> <<cloud type action:... limit:... -TiddlerName>> <<cloud type action:... limit:... =tagvalue>> }}} where: * //type// is a keyword, one of: ** ''tags'' (default) - displays a cloud of tags, based on frequency of use ** ''links'' - displays a cloud of tiddlers, based on number of links //from// each tiddler ** ''references'' - displays a cloud of tiddlers, based on number of links //to// each tiddler * ''action:popup'' (default) - clicking a cloud item shows a popup with links to related tiddlers<br>//or//<br> ''action:goto'' - clicking a cloud item immediately opens the tiddler corresponding to that item * ''limit:N'' (optional) - restricts the cloud display to only show the N most popular tags/links * ''tag tag tag...'' (or ''title title title'' if ''links''/''references'' is used)<br>shows all tags/links in the document //except// for those listed as macro parameters * ''+TiddlerName''<br>show only tags/links read from a space-separated, bracketed list stored in a separate tiddler. * ''-TiddlerName''<br>show all tags/links //except// those read from a space-separated, bracketed list stored in a separate tiddler. * ''=tagvalue'' (//only if type=''tags''//)<br>shows only tags that are themselves tagged with the indicated tag value (i.e., ~TagglyTagging usage) //note: for backward-compatibility, you can also use the macro {{{<<tagCloud ...>>}}} in place of {{{<<cloud ...>>}}}// <<< !Examples <<< //all tags excluding<<tag systemConfig>>, <<tag excludeMissing>> and <<tag script>>// {{{<<cloud systemConfig excludeMissing script>>}}} {{groupbox{<<cloud systemConfig excludeMissing script>>}}} //top 10 tags excluding<<tag systemConfig>>, <<tag excludeMissing>> and <<tag script>>// {{{<<cloud limit:10 systemConfig excludeMissing script>>}}} {{groupbox{<<cloud limit:10 systemConfig excludeMissing script>>}}} //tags listed in// [[FavoriteTags]] {{{<<cloud +FavoriteTags>>}}} {{groupbox{<<cloud +FavoriteTags>>}}} //tags NOT listed in// [[FavoriteTags]] {{{<<cloud -FavoriteTags>>}}} {{groupbox{<<cloud -FavoriteTags>>}}} //links to tiddlers tagged with 'package'// {{{<<cloud action:goto =package>>}}} {{groupbox{<<cloud action:goto =package>>}}} //top 20 most referenced tiddlers// {{{<<cloud references limit:20>>}}} {{groupbox{<<cloud references limit:20>>}}} //top 20 tiddlers that contain the most links// {{{<<cloud links limit:20>>}}} {{groupbox{<<cloud links limit:20>>}}} <<< !Revisions <<< 2009.07.17 [1.7.0] added {{{-TiddlerName}}} parameter to exclude tags that are listed in the indicated tiddler 2009.02.26 [1.6.0] added {{{action:...}}} parameter to apply popup vs. goto action when clicking cloud items 2009.02.05 [1.5.0] added ability to show links or back-links (references) instead of tags and renamed macro to {{{<<cloud>>}}} to reflect more generalized usage. 2008.12.16 [1.4.2] corrected group calculation to prevent 'group=0' error 2008.12.16 [1.4.1] revised tag filtering so excluded tags don't affect calculations 2008.12.15 [1.4.0] added {{{limit:...}}} parameter to restrict the number of tags displayed to the top N most popular 2008.11.15 [1.3.0] added {{{+TiddlerName}}} parameter to include only tags that are listed in the indicated tiddler 2008.09.05 [1.2.0] added '=tagname' parameter to include only tags that are themselves tagged with the specified value (i.e., ~TagglyTagging usage) 2008.07.03 [1.1.0] added 'segments' property to macro object. Extensive code cleanup <<< !Code ***/ //{{{ version.extensions.TagCloudPlugin= {major: 1, minor: 7 , revision: 0, date: new Date(2009,7,17)}; //Originally created by Clint Checketts, contributions by Jonny Leroy and Eric Shulman //Currently maintained and enhanced by Eric Shulman //}}} //{{{ config.macros.cloud = { tagstip: "%1 tiddlers tagged with '%0'", refslabel: " (%0 references)", refstip: "%1 tiddlers have links to '%0'", linkslabel: " (%0 links)", linkstip: "'%0' has links to %1 other tiddlers", groups: 9, init: function() { config.macros.tagCloud=config.macros.cloud; // for backward-compatibility config.shadowTiddlers.TagCloud='<<cloud>>'; config.shadowTiddlers.StyleSheetTagCloud= '/*{{{*/\n' +'.tagCloud span {line-height: 3.5em; margin:3px;}\n' +'.tagCloud1{font-size: 80%;}\n' +'.tagCloud2{font-size: 100%;}\n' +'.tagCloud3{font-size: 120%;}\n' +'.tagCloud4{font-size: 140%;}\n' +'.tagCloud5{font-size: 160%;}\n' +'.tagCloud6{font-size: 180%;}\n' +'.tagCloud7{font-size: 200%;}\n' +'.tagCloud8{font-size: 220%;}\n' +'.tagCloud9{font-size: 240%;}\n' +'/*}}}*/\n'; setStylesheet(store.getTiddlerText('StyleSheetTagCloud'),'tagCloudsStyles'); }, getLinks: function(tiddler) { // get list of links to existing tiddlers and shadows if (!tiddler.linksUpdated) tiddler.changed(); var list=[]; for (var i=0; i<tiddler.links.length; i++) { var title=tiddler.links[i]; if (store.isShadowTiddler(title)||store.tiddlerExists(title)) list.push(title); } return list; }, handler: function(place,macroName,params) { // unpack params var inc=[]; var ex=[]; var limit=0; var action='popup'; var links=(params[0]&¶ms[0].toLowerCase()=='links'); if (links) params.shift(); var refs=(params[0]&¶ms[0].toLowerCase()=='references'); if (refs) params.shift(); if (params[0]&¶ms[0].substr(0,7).toLowerCase()=='action:') action=params.shift().substr(7).toLowerCase(); if (params[0]&¶ms[0].substr(0,6).toLowerCase()=='limit:') limit=parseInt(params.shift().substr(6)); while (params.length) { if (params[0].substr(0,1)=='+') { // read taglist from tiddler inc=inc.concat(store.getTiddlerText(params[0].substr(1),'').readBracketedList()); } else if (params[0].substr(0,1)=='-') { // exclude taglist from tiddler ex=ex.concat(store.getTiddlerText(params[0].substr(1),'').readBracketedList()); } else if (params[0].substr(0,1)=='=') { // get tag list using tagged tags var tagged=store.getTaggedTiddlers(params[0].substr(1)); for (var t=0; t<tagged.length; t++) inc.push(tagged[t].title); } else ex.push(params[0]); // exclude params params.shift(); } // get all items, include/exclude specific items var items=[]; var list=(links||refs)?store.getTiddlers('title','excludeLists'):store.getTags(); for (var t=0; t<list.length; t++) { var title=(links||refs)?list[t].title:list[t][0]; if (links) var count=this.getLinks(list[t]).length; else if (refs) var count=store.getReferringTiddlers(title).length; else var count=list[t][1]; if ((!inc.length||inc.contains(title))&&(!ex.length||!ex.contains(title))) items.push({ title:title, count:count }); } if(!items.length) return; // sort by decending count, limit results (optional) items=items.sort(function(a,b){return(a.count==b.count)?0:(a.count>b.count?-1:1);}); while (limit && items.length>limit) items.pop(); // find min/max and group size var most=items[0].count; var least=items[items.length-1].count; var groupSize=(most-least+1)/this.groups; // sort by title and draw the cloud of items items=items.sort(function(a,b){return(a.title==b.title)?0:(a.title>b.title?1:-1);}); var cloudWrapper = createTiddlyElement(place,'div',null,'tagCloud',null); for (var t=0; t<items.length; t++) { cloudWrapper.appendChild(document.createTextNode(' ')); var group=Math.ceil((items[t].count-least)/groupSize)||1; var className='tagCloudtag tagCloud'+group; var tip=refs?this.refstip:links?this.linkstip:this.tagstip; tip=tip.format([items[t].title,items[t].count]); if (action=='goto') { // TAG/LINK/REFERENCES GOTO var btn=createTiddlyLink(cloudWrapper,items[t].title,true,className); btn.title=tip; btn.style.fontWeight='normal'; } else if (!links&&!refs) { // TAG POPUP var btn=createTiddlyButton(cloudWrapper,items[t].title,tip,onClickTag,className); btn.setAttribute('tag',items[t].title); } else { // LINK/REFERENCES POPUP var btn=createTiddlyButton(cloudWrapper,items[t].title,tip, function(ev) { var e=ev||window.event; var cmt=config.macros.cloud; var popup = Popup.create(this); var title = this.getAttribute('tiddler'); var count = this.getAttribute('count'); var refs = this.getAttribute('refs')=='T'; var links = this.getAttribute('links')=='T'; var label = (refs?cmt.refslabel:cmt.linkslabel).format([count]); createTiddlyLink(popup,title,true); createTiddlyText(popup,label); createTiddlyElement(popup,'hr'); if (refs) { popup.setAttribute('tiddler',title); config.commands.references.handlePopup(popup,title); } if (links) { var tiddler = store.fetchTiddler(title); var links=config.macros.cloud.getLinks(tiddler); for(var i=0;i<links.length;i++) createTiddlyLink(createTiddlyElement(popup,'li'), links[i],true); } Popup.show(); e.cancelBubble=true; if(e.stopPropagation) e.stopPropagation(); return false; }, className); btn.setAttribute('tiddler',items[t].title); btn.setAttribute('count',items[t].count); btn.setAttribute('refs',refs?'T':'F'); btn.setAttribute('links',links?'T':'F'); btn.title=tip; } } } }; //}}}
ColorPalette StyleSheet SiteSubtitle GettingStarted SiteTitle MainMenu SiteIcon DefaultTiddlers ViewTemplate PageTemplate SideBarOptions EditTemplate SiteInfo SideBarTabs ToolbarCommands
Organismos ''eucariotas [[heterótrofos]] con pared celular''.
@@Please do not modify this tiddler; it was created automatically upon space creation.@@
The title and subtitle of your space are visible to visitors and are also displayed in your browser's tabs. Click on the SiteTitle and SiteSubtitle tiddler links below to make changes. * [[SiteTitle]] * [[SiteSubtitle]]
<?xml version="1.0" encoding="UTF-8" standalone="no"?> <svg id="svg2" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns="http://www.w3.org/2000/svg" height="29pt" viewBox="13 43 29 29" width="29pt" version="1.0" xmlns:cc="http://creativecommons.org/ns#" xmlns:dc="http://purl.org/dc/elements/1.1/" onmousedown="if(jQuery) jQuery(document).trigger('cSmaller', {elem:this, comp:{animations:1}})" onmouseup="if(jQuery) jQuery(document).trigger('cResize', {elem:this, comp:{animations:1}})"> <defs id="defs6"> <linearGradient id="linearGradient001" y2="27.646" gradientUnits="userSpaceOnUse" x2="-45.8" y1="27.646" x1="-57.66"> <stop id="stop1" stop-color="#6BB546" offset="0"/> <stop id="stop2" stop-color="#B5DAA2" offset="0.66462"/> <stop id="stop3" stop-color="#6BB546" offset="1"/> </linearGradient></defs> <g id="icon" stroke-linecap="round" stroke-miterlimit="4"> <rect id="iconBG" style="stroke-dasharray:none;" fill-rule="evenodd" ry="4.1663" transform="matrix(0, -1, 1, 0, 0, 0)" height="25" width="25" stroke="#696969" stroke-linecap="round" stroke-miterlimit="4" y="15.167" x="-70.116" stroke-width="1.2" fill="none"/> <rect id="iconFG" stroke-width="0" fill-rule="evenodd" ry="2.3755" transform="matrix(0, -1, 1, 0, 0, 0)" width="22" stroke-miterlimit="4" y="16.646" x="-68.6" height="22" fill="url(#linearGradient001)" class="showOnHover" opacity="0"/> <path id="iconSymbol" stroke-linejoin="miter" style="stroke-dasharray:none;" d="m21.411,59.069,3.5152,4.3939,9.7922-11.675" stroke="#4d4d4d" stroke-linecap="round" stroke-miterlimit="4" stroke-width="2.4000001" fill="none"/> <rect id="overlay" opacity="0.01" ry="4.1663" style="stroke-dasharray:none;" fill-rule="evenodd" transform="matrix(0, -1, 1, 0, 0, 0)" height="25" width="25" stroke="#e6e6e6" stroke-linecap="round" stroke-miterlimit="4" y="15.167" x="-70.116" stroke-width="1.2" fill="#e6e6e6" onmouseover="if(jQuery) jQuery(document).trigger('cTglBg', {elem:this, comp:{animations:1}})" onmouseout="if(jQuery) jQuery(document).trigger('cTglBg', {elem:this, comp:{animations:1}})"/> </g> </svg>
/*{{{*/ [[StyleSheetTiddlySpaceMp]] [[StyleSheetMediaPrint]] /*}}}*/
[[GettingStarted]]
<!--{{{--> <div macro='slideRevision'></div> <div class='heading'> <span class="titleBar"> <div class='title' macro='view title text'></div> </span> <span class='modifierIcon' macro='view modifier SiteIcon label:no height:48 width:48 preserveAspectRatio:yes'> </span> <div class='toolbar' macro='toolbar [[ToolbarCommands::RevisionToolbar]] icons:yes height:48 width:48 more:popup'> </div> <div class='tagClear'></div> </div> <div class='content'> <div class='viewer' macro='view text wikified'></div> </div> <div class='tagInfo'> <div class='tidTags' macro='tags'></div> <div class='tagging' macro='tagging'></div> </div> <!--}}}-->
#[[Dónde está Calcena|https://maps.google.es/maps?q=Calcena&hl=es&ie=UTF8&ll=41.650341,-1.013489&spn=0.606445,1.352692&sll=41.651691,-0.894981&sspn=0.075805,0.169086&hnear=Calcena,+Zaragoza,+Arag%C3%B3n&t=m&z=10]]: cara oculta del Moncayo. #[[Quiénes vamos]] #[[Cómo vamos a ir allí|http://www.automovilesara.es]]: [[horario]] #[[Dónde nos alojamos|http://alberguecalcena.com/about/]] #Cómo sobrevivimos **[[Alimentación]] **[[Vestimenta y demás]] **[[Comunicaciones]] #[[Qué vamos a hacer]]
var map; function init() { map = new OpenLayers.Map('mapaGuguel'); map.addControl(new OpenLayers.Control.LayerSwitcher()); var gphy = new OpenLayers.Layer.Google( "Google Physical", {type: google.maps.MapTypeId.TERRAIN} ); var gmap = new OpenLayers.Layer.Google( "Google Streets", // the default {numZoomLevels: 20} ); var ghyb = new OpenLayers.Layer.Google( "Google Hybrid", {type: google.maps.MapTypeId.HYBRID, numZoomLevels: 20} ); var gsat = new OpenLayers.Layer.Google( "Google Satellite", {type: google.maps.MapTypeId.SATELLITE, numZoomLevels: 22} ); var osmbLayer = new OpenLayers.Layer.OSM("OSM base", "http://tah.openstreetmap.org/Tiles/tile/${z}/${x}/${y}.png"); var osmLayer = new OpenLayers.Layer.OSM("OSM", "http://tah.openstreetmap.org/Tiles/tile/${z}/${x}/${y}.png"); osmLayer.isBaseLayer=false; osmLayer.setOpacity(0.35); map.addLayers([gsat, gphy, ghyb, gmap, osmbLayer, osmLayer]);// // Google.v3 uses EPSG:900913 as projection, so we have to // transform our coordinates map.setCenter(new OpenLayers.LonLat(3.028, 39.609).transform( new OpenLayers.Projection("EPSG:4326"), map.getProjectionObject() ), 9); }
@@Please do not modify this tiddler; it was created automatically upon space creation.@@
http://people.sunyit.edu/~steve/idt585-fall2013/
Las mitocondrias reciben con justicia el título de ''centrales energéticas'' de la ''célula eucariota''. En ellas se producen grandes cantidades de la ''molécula energética'' de todos los seres vivos: el ''ATP''. Si en el citoplasma se pueden producir 2 moléculas de ATP por cada molécula de glucosa (nutriente), en la mitocondria esa misma molécula de glucosa producirá 38 moléculas de ATP. Para ello, la mitocondria necesita oxígeno (por eso decimos que es un proceso //aerobio//). La mitocondria es un orgánulo con muchas características especiales: *su membrana es doble: una externa y otra interna. *la membrana interna se extiende hacia el interior formando las ''crestas mitocondriales''. *en su interior (que se llama ''matriz mitocondrial'') encontramos ribosomas y ADN, lo cual apoya la [[Teoría endosimbiótica]]. |[img(350px+,)[http://recursostic.educacion.es/ciencias/biosfera/web/alumno/1ESO/clasica/imagenes/met.jpg]]| |Mitocondria vista al microscopio electrónico. Se aprecia que tiene una membrana doble y las crestas mitocondriales en su interior. Por fuera se ve gran cantidad de RER.|c
/*** |''Name''|TiddlySpaceBackstage| |''Version''|0.8.0| |''Description''|Provides a TiddlySpace version of the backstage and a homeLink macro| |''Status''|@@beta@@| |''Contributors''|Jon Lister, Jon Robson, Colm Britton| |''Source''|http://github.com/TiddlySpace/tiddlyspace/raw/master/src/plugins/TiddlySpaceBackstage.js| |''Requires''|TiddlySpaceConfig ImageMacroPlugin TiddlySpaceViewTypes| !StyleSheet .tiddler .error.annotation .button{ display: inline-block; } #backstageArea { z-index: 49; color: white; background-color: black; background: -webkit-gradient(linear,left bottom,left top,color-stop(0, #222),color-stop(0.5, #333),color-stop(1, #555)); background: -moz-linear-gradient(center bottom,#222 0%, #333 50%, #555 100%); filter: progid:DXImageTransform.Microsoft.gradient(startColorstr=#ff555555, endColorstr=#ff222222); -ms-filter: "progid:DXImageTransform.Microsoft.gradient(startColorstr=#ff555555, endColorstr=#ff222222)"; height: 25px; padding: 0; } #backstageButton { overflow: hidden; } #backstageButton #backstageShow, #backstageButton #backstageHide { margin: 0px; padding: 0px; } #backstageButton #backstageShow:hover, #backstageButton #backstageHide:hover { background: none; color: none; } #backstageButton img, #backstageButton svg { width: 24px; height: 24px; } #messageArea { top: 50px; } #backstageToolbar { position: relative; } #backstageArea a { padding: 0px; margin-left: 0px; color: white; background: none; } #backstageArea a:hover { background-color: white; } #backstage ol, #backstage ul { padding: auto; } #backstageButton a { margin: 0; } .backstagePanelBody ul { padding: 5px; margin: 5px; } #backstage #backstagePanel { margin-left: 5%; padding: 0em; margin-right: 5%; } #backstageToolbar a { position: relative; } #backstageArea a.backstageSelTab, #backstageToolbar .backstageTask { line-height: 25px; color: #767676; } .backstageTask .externalImage, .backstageTask .image { display: inline; } #backstageToolbar a span { z-index: 2; } a.backstageTask { display: inline; margin-left: 1em !important; } .backstagePanelBody .button { display: inline-block; margin-right: 10px; } .backstagePanelBody { margin: 0 0 0 0.6em; padding: 0.4em 0.5em 1px 0.5em; } #backstage table { margin: auto; } #backstage .wizard table { border: 0px; margin: 0; } #backstage div li.listLink { border: 0px; width: 78%; font-size: 0.7em; } #backstage div li.listTitle { font-weight: bold; text-decoration: underline; font-size: 1em; background: #ccc; width: 100%; } #backstage fieldset { border: solid 1px [[ColorPalette::Background]]; } #backstage .viewer table,#backstage table.twtable { border: 0px; } #backstageToolbar img { padding: 0; } #backstage .wizard, #backstage .wizardFooter { background: none; } .viewer td, .viewer tr, .twtable td, .twtable tr { border: 1px solid #eee; } #backstage .inlineList ul li { background-color: [[ColorPalette::Background]]; border: solid 1px [[ColorPalette::TertiaryMid]]; display: block; float: left; list-style: none; margin-right: 1em; padding: 0.5em; } .backstageClear, .inlineList form { clear: both; display: block; margin-top: 3em; } .tiddlyspaceMenu { text-align: center; } span.chunkyButton { display: inline-block; padding: 0; margin: 0; border: solid 2px #000; background-color: #04b; } span.chunkyButton a.button, span.chunkyButton a:active.button { white-space: nowrap; font-weight: bold; font-size: 1.8em; color: #fff; text-align: center; padding: 0.5em 0.5em; margin: 0; border-style: none; display: block; } span.chunkyButton:hover { background-color: #014; } span.chunkyButton a.button:hover { border-style: none; background: none; color: #fff; } #backstage .unpluggedSpaceTab .wizard, .unpluggedSpaceTab .wizard { background: white; border: 2px solid #CCC; padding: 5px; } .syncKey .keyItem { border: 1px solid black; display: inline-block; margin: 0.2em; padding: 0.1em 0.1em 0.1em 0.1em; } .keyHeading { font-size: 2em; font-weight: bold; margin: 0.4em 0em -0.2em; } .unpluggedSpaceTab .putToServer, .unpluggedSpaceTab .notChanged { display: none; } .tiddlyspaceMenu ul { margin: 0; padding: 0; } .tiddlyspaceMenu ul li { list-style: none; } .unsyncedChanges .unsyncedList { display: block; } .unsyncedList { display: none; } !Code ***/ //{{{ (function ($) { var name = "StyleSheet" + tiddler.title; config.shadowTiddlers[name] = "/*{{{*/\n%0\n/*}}}*/". format(store.getTiddlerText(tiddler.title + "##StyleSheet")); // this accesses the StyleSheet section of the current tiddler (the plugin that contains it) store.addNotification(name, refreshStyles); if (!config.extensions.tiddlyweb.status.tiddlyspace_version) { // unplugged config.extensions.tiddlyweb.status.tiddlyspace_version = "<unknown>"; config.extensions.tiddlyweb.status.server_host = { url:config.extensions.tiddlyweb.host }; // TiddlySpaceLinkPlugin expects this } var disabled_tasks_for_nonmembers = ["tiddlers", "plugins", "batch", "sync"]; var tweb = config.extensions.tiddlyweb; var tiddlyspace = config.extensions.tiddlyspace; var currentSpace = tiddlyspace.currentSpace.name; var imageMacro = config.macros.image; if (config.options.chkBackstage === undefined) { config.options.chkBackstage = false; } // Set up Backstage config.tasks = {}; config.tasks.status = { text:"status", tooltip:"TiddlySpace Info", content:"<<tiddler Backstage##Menu>>" }; config.tasks.tiddlers = { text:"tiddlers", tooltip:"tiddlers control panel", content:"<<tiddler Backstage##BackstageTiddlers>>" }; config.tasks.plugins = { text:"plugins", tooltip:"Manage installed plugins", content:"<<tiddler Backstage##Plugins>>" }; config.tasks.batch = { text:"batch", tooltip:"Batch manage public/private tiddlers", content:"<<tiddler Backstage##BatchOps>>" }; config.tasks.tweaks = { text:"tweaks", tooltip:"Tweak TiddlyWiki behaviors", content:"<<tiddler Backstage##Tweaks>>" }; config.tasks.exportTiddlers = { text:"import/export", tooltip:"Import/export tiddlers from/to a TiddlyWiki", content:"<<tiddler Backstage##ImportExport>>" }; config.tasks.sync = { text:"sync", tooltip:"Check Sync status", content:"<<tiddler Backstage##SpaceUnplugged>>" }; if (window.location.protocol === "file:") { config.unplugged = true; } config.backstageTasks = ["status", "tiddlers", "plugins", "batch", "tweaks", "exportTiddlers", "sync"]; config.messages.backstage.prompt = ""; // initialize state var _show = backstage.show; backstage.show = function () { // selectively hide backstage tasks and tabs based on user status var tasks = $("#backstageToolbar .backstageTask").show(); var bs = backstage.tiddlyspace; if (!config.unplugged) { tweb.getUserInfo(function (user) { if (user.anon) { jQuery.each(disabled_tasks_for_nonmembers, function (i, task) { var taskIndex = config.backstageTasks.indexOf(task); if (taskIndex !== -1) { config.backstageTasks.splice(taskIndex, 1); } }); config.messages.memberStatus = bs.locale.loggedout; } else { config.messages.memberStatus = readOnly ? bs.locale.nonmember : bs.locale.member; } }); } else { config.messages.memberStatus = bs.locale.unplugged; } // display backstage return _show.apply(this, arguments); }; if (readOnly) { jQuery.each(disabled_tasks_for_nonmembers, function (i, task) { var taskIndex = config.backstageTasks.indexOf(task); if (taskIndex !== -1) { config.backstageTasks.splice(taskIndex, 1); } }); } var tasks = config.tasks; var commonUrl = "/bags/common/tiddlers/%0"; backstage.tiddlyspace = { locale:{ member:"You are a member of this space.", nonmember:"You are not a member of this space.", loggedout:"You are currently logged out of TiddlySpace.", unplugged:"You are unplugged." }, showButton:function () { var showBtn = $("#backstageShow")[0]; var altText = $(showBtn).text(); $(showBtn).empty(); imageMacro.renderImage(showBtn, "backstage.svg", { altImage:commonUrl.format("backstage.png"), alt:altText}); }, hideButton:function () { var hideBtn = $("#backstageHide")[0]; var altText = $(hideBtn).text(); $(hideBtn).empty(); imageMacro.renderImage(hideBtn, "close.svg", { altImage:commonUrl.format("close.png"), alt:altText, width:24, height:24 }); } }; var _init = backstage.init; backstage.init = function () { _init.apply(this, arguments); var init = function (user) { var bs = backstage.tiddlyspace; bs.showButton(); bs.hideButton(); }; tweb.getUserInfo(init); }; var home = config.macros.homeLink = { locale:{ linkText:"your home space" }, handler:function (place) { var container = $("<span />").appendTo(place)[0]; tweb.getUserInfo(function (user) { if (!user.anon && user.name !== currentSpace) { createSpaceLink(container, user.name, null, home.locale.linkText); } }); } }; config.macros.exportSpace = { handler:function (place, macroName, params) { var filename = params[0] || "/tiddlers.wiki?download=%0.html".format(currentSpace); $('<a class="button">download</a>').// XXX: i18n attr("href", filename).appendTo(place); } }; }(jQuery)); //}}}
<?xml version="1.0" encoding="UTF-8" standalone="no"?> <svg id="svg2" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns="http://www.w3.org/2000/svg" height="29pt" viewBox="13 43 29 29" width="29pt" version="1.0" xmlns:cc="http://creativecommons.org/ns#" xmlns:dc="http://purl.org/dc/elements/1.1/" onmousedown="if(jQuery) jQuery(document).trigger('cSmaller', {elem:this, comp:{animations:1}})" onmouseup="if(jQuery) jQuery(document).trigger('cResize', {elem:this, comp:{animations:1}})"> <defs id="defs6"> <linearGradient id="linearGradient001" y2="27.646" gradientUnits="userSpaceOnUse" x2="-45.8" y1="27.646" x1="-57.66"> <stop id="stop1" stop-color="#FF4646" offset="0"/> <stop id="stop2" stop-color="#ffcccc" offset="0.66462"/> <stop id="stop3" stop-color="#FF4646" offset="1"/> </linearGradient></defs> <g id="icon" stroke-linecap="round" stroke-miterlimit="4"> <rect id="iconBG" style="stroke-dasharray:none;" fill-rule="evenodd" ry="4.1663" transform="matrix(0, -1, 1, 0, 0, 0)" height="25" width="25" stroke="#696969" stroke-linecap="round" stroke-miterlimit="4" y="15.167" x="-70.116" stroke-width="1.2" fill="none"/> <rect id="iconFG" stroke-width="0" fill-rule="evenodd" ry="2.3755" transform="matrix(0, -1, 1, 0, 0, 0)" width="22" stroke-miterlimit="4" y="16.646" x="-68.6" height="22" fill="url(#linearGradient001)" class="showOnHover" opacity="0"/> <g id="iconSymbol"> <path id="path3645" stroke-linejoin="miter" style="stroke-dasharray:none;" d="m-23.302,17.497c0.01395-0.0064,0.0156,0.0261,0.0143,0.03143-0.01484,0.061-0.10068,0.05137-0.14,0.02579-0.11849-0.07708-0.08526-0.2504-0.003-0.34004,0.17365-0.18931,0.47534-0.11872,0.63154,0.05396,0.27503,0.30406,0.15201,0.77586-0.14521,1.0145-0.46844,0.3761-1.1521,0.18524-1.4889-0.27069-0.49266-0.6669-0.21843-1.6041,0.43042-2.0548,0.89949-0.62476,2.1319-0.25161,2.7121,0.62439,0.77241,1.1662,0.28478,2.7356-0.8526,3.4609-1.4672,0.93564-3.4151,0.31794-4.3011-1.1151-1.1144-1.8023-0.3511-4.1704,1.4118-5.2328,2.1717-1.3088,5.0016-0.38425,6.256,1.7427,1.5188,2.5753,0.4174,5.9087-2.1079,7.3706-3.0131,1.7444-6.8916,0.45055-8.5767-2.5073-1.9855-3.4851-0.48369-7.9504,2.941-9.8743,3.9914-2.2422,9.0851-0.51682,11.263,3.4089" transform="matrix(1.02832, 0, 0, 1.02832, 51.2465, 40.8719)" stroke="#4d4d4d" stroke-linecap="round" stroke-miterlimit="4" stroke-width="1.55593979000000000" fill="none"/> </g> <rect id="overlay" opacity="0.01" ry="4.1663" style="stroke-dasharray:none;" fill-rule="evenodd" transform="matrix(0, -1, 1, 0, 0, 0)" height="25" width="25" stroke="#e6e6e6" stroke-linecap="round" stroke-miterlimit="4" y="15.167" x="-70.116" stroke-width="1.2" fill="#e6e6e6" onmouseover="if(jQuery) jQuery(document).trigger('cTglBg', {elem:this, comp:{animations:1}})" onmouseout="if(jQuery) jQuery(document).trigger('cTglBg', {elem:this, comp:{animations:1}})"/> </g> </svg>
iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHAAAKGmlDQ1BJQ0MgUHJvZmlsZQAAeAHVlmdUFMkWx6t7ciLNkNOQc84gOSfJUVSGAYY4wpAxIbK4AooiIgLKEpao4KoEWQMiigERUEBF3UEWAWVdDIiKyuuBd9w977z99r6826eqfn3r9q3quvXhDwDpIyMpKQEWACCRncrxdbajB4eE0nGTAAIUgAe6wJDBTEmy9fb2AP9oH8aRaMTua/Fy/WPYf58QjIxKYQIAeSPTEZEpzESEzyNsyEzipCI8h/BwRmoSwnA3wjQOskGEB3nMWmcujyPW+f1ajL+vPQAoPAB4MoPBYQFAoiF+ejqTheQhGSKsy46MZSMcibAVM4aBjKR6hDUTE7fxeBhh1Yi/5WH9jRmMiO85GQzWd17/F+RLZGGH2JSkBEbW2sv/sktMSEPOa814p06OYgf4IaMY0qSAA3AEHshDB/rABKmeCQgCTsA7NSoT+W8A7LclZXFiWTGpdFukUlGadFc2U1uTrq+rp8eb/r8x3h1d3+y7e2t3DxLjlf/fvmRtAMwakPr3/uULfw5A510ARPr/8ineAID/AADdTcw0Tvp6PjRvwAAi4Ac0IA5kgAJQBVrIaRoDC2CDnK4b8AL+IARsAUwQAxIBB2SAHWAPyAeF4BA4CipANagDTeA0OAu6wEVwFdwAd8AwGAOTgAtmwCuwCD6AFQiCcBAFokLikCykBGlA+pApZAU5Qh6QLxQChUMsiA2lQTugvVAhVAJVQDVQM/QLdAG6Ct2CRqBH0BQ0D72FPsMomAzTYGlYGdaBTWFb2B32hzfDLDgZzobz4INwOVwLn4I74avwHXgM5sKv4CUUQJFQIig5lBbKFGWP8kKFoqJRHNQuVAGqDFWLakP1oAZQ91Fc1ALqExqLpqLpaC20BdoFHYBmopPRu9BF6Ap0E7oT3Y++j55CL6K/YSgYKYwGxhzjignGsDAZmHxMGaYB04G5jhnDzGA+YLFYEawK1gTrgg3BxmG3Y4uwJ7Dt2F7sCHYau4TD4cRxGjhLnBeOgUvF5eOO407hruBGcTO4j3gSXhavj3fCh+LZ+Fx8Gb4Ffxk/ip/FrxAECEoEc4IXIZKQRSgm1BN6CPcIM4QVoiBRhWhJ9CfGEfcQy4ltxOvEJ8R3JBJJnmRG8iHFknJI5aQzpJukKdInshBZnWxPDiOnkQ+SG8m95EfkdxQKRZliQwmlpFIOUpop1yjPKB/5qHzafK58kXy7+Sr5OvlG+V7zE/iV+G35t/Bn85fxn+O/x78gQBBQFrAXYAjsEqgUuCAwIbAkSBXUE/QSTBQsEmwRvCU4J4QTUhZyFIoUyhOqE7omNE1FURWo9lQmdS+1nnqdOkPD0lRorrQ4WiHtNG2ItigsJGwoHCicKVwpfEmYK4ISURZxFUkQKRY5KzIu8llUWtRWNEp0v2ib6KjospikmI1YlFiBWLvYmNhncbq4o3i8+GHxLvGnEmgJdQkfiQyJkxLXJRYkaZIWkkzJAsmzko+lYCl1KV+p7VJ1UoNSS9Iy0s7SSdLHpa9JL8iIyNjIxMmUylyWmZelylrJxsqWyl6RfUkXptvSE+jl9H76opyUnItcmlyN3JDciryKfIB8rny7/FMFooKpQrRCqUKfwqKirKKn4g7FVsXHSgQlU6UYpWNKA0rLyirKQcr7lLuU51TEVFxVslVaVZ6oUlStVZNVa1UfqGHVTNXi1U6oDavD6kbqMeqV6vc0YA1jjViNExojmhhNM022Zq3mhBZZy1YrXatVa0pbRNtDO1e7S/u1jqJOqM5hnQGdb7pGugm69bqTekJ6bnq5ej16b/XV9Zn6lfoPDCgGTga7DboN3hhqGEYZnjR8aEQ18jTaZ9Rn9NXYxJhj3GY8b6JoEm5SZTJhSjP1Ni0yvWmGMbMz22120eyTubF5qvlZ8z8ttCziLVos5jaobIjaUL9h2lLekmFZY8m1oluFW/1kxbWWs2ZY11o/t1GwibRpsJm1VbONsz1l+9pO145j12G3bG9uv9O+1wHl4OxQ4DDkKOQY4Fjh+MxJ3onl1Oq06GzkvN251wXj4u5y2GXCVdqV6drsuuhm4rbTrd+d7O7nXuH+3EPdg+PR4wl7unke8XyyUWkje2OXF/By9Tri9dRbxTvZ+1cfrI+3T6XPC1893x2+A35Uv61+LX4f/O38i/0nA1QD0gL6AvkDwwKbA5eDHIJKgrjBOsE7g++ESITEhnSH4kIDQxtClzY5bjq6aSbMKCw/bHyzyubMzbe2SGxJ2HJpK/9WxtZz4ZjwoPCW8C8ML0YtYynCNaIqYpFpzzzGfBVpE1kaOR9lGVUSNRttGV0SPceyZB1hzcdYx5TFLMTax1bEvolziauOW473im+MX00ISmhPxCeGJ15gC7Hj2f3bZLZlbhtJ0kjKT+ImmycfTV7kuHMaUqCUzSndqTREDAymqab9kDaVbpVemf4xIzDjXKZgJjtzMEs9a3/WbLZT9s/b0duZ2/t2yO3Ys2Nqp+3Oml3QrohdfbsVduftnslxzmnaQ9wTv+durm5uSe77vUF7e/Kk83Lypn9w/qE1ny+fkz+xz2Jf9Y/oH2N/HNpvsP/4/m8FkQW3C3ULywq/FDGLbh/QO1B+YPVg9MGhYuPik4ewh9iHxg9bH24qESzJLpk+4nmks5ReWlD6/ujWo7fKDMuqjxGPpR3jlnuUdx9XPH7o+JeKmIqxSrvK9iqpqv1VyyciT4yetDnZVi1dXVj9+afYnx7WONd01irXltVh69LrXtQH1g/8bPpzc4NEQ2HD10Z2I7fJt6m/2aS5uUWqpbgVbk1rnT8Vdmr4tMPp7jattpp2kfbCM+BM2pmXv4T/Mn7W/WzfOdNzbeeVzld1UDsKOqHOrM7FrpgubndI98gFtwt9PRY9Hb9q/9p4Ue5i5SXhS8WXiZfzLq9eyb6y1JvUu3CVdXW6b2vf5LXgaw/6ffqHrrtfv3nD6ca1AduBKzctb168ZX7rwm3T2113jO90DhoNdtw1utsxZDzUec/kXvew2XDPyIaRy6PWo1fvO9y/8cD1wZ2xjWMj4wHjDyfCJrgPIx/OPUp49OZx+uOVyZwnmCcFTwWelj2Telb7m9pv7Vxj7qUph6nB537PJ6eZ069+T/n9y0zeC8qLslnZ2eY5/bmL807zwy83vZx5lfRqZSH/D8E/ql6rvj7/p82fg4vBizNvOG9W3xa9E3/X+N7wfd+S99KzD4kfVpYLPop/bPpk+mngc9Dn2ZWML7gv5V/VvvZ8c//2ZDVxdTWJwWGsaQEU0sPR0QC8bQSAEgIAFdGExN51DbkWAa3rXoR5SozXePYfvK4z12aMAajrBcDfBgAPZKzMAUAZYX6k8eSvP7KegcH3hnh4lhJtoL8GEFkCkSa9q6tvVwHAhQPwdWh1daV8dfVrGaJ13gNwZeO6duVFC5xCZDPVUE/Xry/9cA7P83f7FxpgvJtcDRvaAAAACXBIWXMAAAsTAAALEwEAmpwYAAAH+ElEQVRoBdVZa2xcxRWemXv37vq5dvxIbMdvEoNLCJQkJlBofkRR0poFq7hSBYlCBeIVojZ2ALWoriWo1OAEVaEhpKJINJUqWQ3CDgKqBKlNKdhJFCck69he4ziO4/gRr3dt7+69e+9MzxjZLLuz9u7m7g9Gsjz3zMyZ75s558yZWcwYQ9/nQr7P4Dl22WwC+9o77pMwrkMMlRGMixnCpQizPIywByE2DDs+zCgeoIS2+c76P2tq2qTfCgZshgm1fPC/fCzJOwkhv2SIVRGCDauisBSrVVIUC7ZYLEjXdaQFg0jTdMPn9yODUuCJJxmlrRozWl5xbHQlQuSWCRxo66xHEvkLYizTnpnBVuTmkLxlWUiSpKh4KKXI7fGisZtuNOF2AxemM8p+N3POdyDeHUmYQPPfOzIz7PggQnhHZnq6UVVRKqWm2KKCjtbAd8U1OMTGb7ox9DlPg8EtjXX3j0XrHy5PiMDugx9by8tz/o0QWV+6soCUFK5AYA7huuP6nnBPocuuAb4b5w335EON27fMxqIgoShUWp7zLjjnhupVFaS0qGBR8NzHVE0DC1s8XOdmZyHQx+3ubpyV3drc3BwTtrij0IH2jkaMyeMVxUUoF2xdVILgsAND19GU16sHAhoBxyYQhajNZqXgH3JJYQH4SCS+ZVl2tKq8mPQOXN2Wds/Wn4Puf4j0h8riMqE/tp6wW1LsQ7BaGT9YXRmqZ6F+c8qDLvdfgaBjUAB+DMJpL4TRIUbRSrCytUDeoSgyrb6tQrZnpC+Mm6/wnTr7ldOYDajde366bs28PNr/uHZATrE/B4rSS1cWCvX5Ayrq7vvaMBjtQkH2eEPdht7wjvvaOtdhLXj0Ul9/5bo11bICITa0cF8qKSqQul0Dd77RdnrrXsf6T0Lbw+uR+xjeI+Qb3PTXObDN6akpIdJvq7DyAJ7N+H36o3sE4HnPlxwbzugqfTioG2rfwFWhY+Qty+Z+RTFmP/pWu7gWM4E/HDtVACrywU6F4YbHde/MjIQMY89v6zcOi6f7Rrr3ZzV9cIAd4eYGphbRle+CzapQmGhVRGOYIGYCsqzczsdGi/XXR8cZTDwxrV49GjaH8JNhdAbsHQdUVdiearPJkIpUCRtDhDETIJjk8XEWOdJtAqqGbkIchyD+TlN9vRaiP3qVsrm5iSAa8UGUh12MA9EVfNMSMwGm0XN8CD9wwsvw6BgEG0bVgPF2eFu0b8iXfmGxyDrkS8IuAUiaKKNDwsYQYcwEuN0CyqOD10bo8I0xMHUDwamJRsYm0LWRUR793lvK9ufn3X+88ylY3p+UFKyQub2HF76jfn9AgvnmFi28PfQ70h5CW8PqwYBnF5wDaZC71PVD/gIgAPecKXw2HDB2h3UXfrZ8+OVmSZbfyrZn0qIV+cIFHBkbh7GYGUH6vlBJiDCug2x+3BvtX/yYMKkG5rCBKXcuFavnx81lroQcTUuxSWurV0sif/LOzKKuSz2wt/Sfe2o38NN40ZIQgUU1RmlsOX56N0H4zcyMNLRmdSWRBcGAh9QzF526qmp+nWq3v+R44HoUdQviuExoYVSclf3tna9DSPxN7jI7u6OyHMPFJ0IDd6Ker68wAE8YNXbGAp4rSTqB/e2n/wyO+nxBfi5aVVYC1Uin5Rccp2uAQSjGFKFfNTruOxbBMIogqQQOtJ9+E/A+X1ywHFWUrBRC4GZzsa+ferwzEPzRC42O9TGHYq4waT7QcrzjSYLIX4uW56PbyoqF4DUtiC709BmzPj9kFnR7o6NmyfQ5XFFSCOxr+7xQJooL0gHl3jXVEhxa4fMiXyCALnT3GkBC1RGt21tb86+ITjEIkmJChFhehbltVZVl4LAC8P4A6uru4XeGKarTrXsfrTkbA1Zhl8hwIOwWu/CZI0cskDftWJ6bgzPT0yIGcrPpcvYYelB3UxZ8sOEWwHPlphOoKrznIbgAp+XlZEeA54KeK4MUrpwaNeimhtqNl4Wd4hCaTgDieTWfX7T607M+NOn2wJzs1YZHapxx4Iza1XwCc8+IiMmCh62JSTcAgRTH7303KqI4G0wnACcRPEBg4VXRMzML5xTqerl+M7yTmlNMJwDwe8GMiA8iTWjh6beXH1YMnQiV32rddAJMNz6FHfD0DQ5R/mzIC08VIAXnlx5sGDjuw2oxkkk5yPZ/2PEYlsnfMMOKYrVQCJmYv0bD8v8eUuTmxQDF25YUAhxES3tnOWH4CUZYFTxqjWLCPmiorflvvACX6p80AktNbFa76T5gFrBY9SQlF+KTXz58shZesLdD/n8XY9QFT0AftY6dOtLU1MRDqWklKSbkPHziIKTSu2SrRVfSbLIe0AzNp/Kn8/8MBNUt217cJn7NSoCW6TvgPHTyMbgy7soszEFZJfnzzybS7LgHTbiGHyyTFR6FXkkAq3CI6T5AJPy0kmo1ADx/oF2YNC3PjuCPXymfXRCaUDGdAOQRP1QyUvkvkBHwrBmpXGa/cPBj8f0yYsTSAtMJwJTXDE0X5kIG3AWgBOXJmZh/xFuKgukE4AeCT/zuaaRO+78zN5BC0zfcOghPVTfF+AD8HQ3iD9MJ6D79NTCfwVHnFWNqaBz5gIzn+gQaOd9vUB0eC2nwGTGUxKRJCaMX/3RyuaTgw+AGDoDFF4n/dvC5StWn7npua09iUMWjkkJgfirnodZ0gu1Vs17iuvdl8+4A8/r5/6QSCJ0oWfX/A3UKXhQwWVptAAAAAElFTkSuQmCC
iVBORw0KGgoAAAANSUhEUgAAAC0AAAAtCAYAAAA6GuKaAAAABGdBTUEAALGPC/xhBQAACkNpQ0NQSUNDIFByb2ZpbGUAAHgBnZZ3VFNZE8Dvey+90BJCkRJ6DU1KAJESepFeRSUkAUIJGBKwV0QFVxQVaYoiiyIuuLoUWSuiWFgUFLAvyCKgrIuriIplX/QcZf/Y/b6z88ec35s7c+/cmbnnPAAovoFCUSasAECGSCIO8/FgxsTGMfHdAAZEgAPWAHB52VlB4d4RABU/Lw4zG3WSsUygz/p1/xe4xfINYTI/m/5/pcjLEkvQnULQkLl8QTYP5TyU03MlWTL7JMr0xDQZwxgZi9EEUVaVcfIXNv/s84XdZMzPEPFRH1nOWfwMvow7UN6SIxWgjASinJ8jFOSifBtl/XRphhDlNyjTMwTcbAAwFJldIuCloGyFMkUcEcZBeR4ABEryLE6cxRLBMjRPADiZWcvFwuQUCdOYZ8K0dnRkM30FuekCiYQVwuWlccV8JiczI4srWg7AlzvLooCSrLZMtMj21o729iwbC7T8X+VfF796/TvIevvF42Xo555BjK5vtm+x32yZ1QCwp9Da7PhmSywDoGUTAKr3vtn0DwAgnwdA841Z92HI5iVFIslysrTMzc21EAp4FrKCfpX/6fDV859h1nkWsvO+1o7pKUjiStMlTFlReZnpmVIxMzuLyxMwWX8bYnTr/xw4K61ZeZiHCZIEYoEIPSoKnTKhKBltt4gvlAgzRUyh6J86/B/DZuUgwy9zjQKt5iOgL7EACjfoAPm9C2BoZIDE70dXoK99CyRGAdnLi9Ye/TL3KKPrn/XfFFyEfsLZwmSmzMwJi2DypOIcGaNvQqawgATkAR2oAS2gB4wBC9gAB+AM3IAX8AfBIALEgsWAB1JABhCDXLAKrAf5oBDsAHtAOagCNaAONIAToAWcBhfAZXAd3AR94D4YBCPgGZgEr8EMBEF4iArRIDVIGzKAzCAbiA3Nh7ygQCgMioUSoGRIBEmhVdBGqBAqhsqhg1Ad9CN0CroAXYV6oLvQEDQO/Qm9gxGYAtNhTdgQtoTZsDscAEfAi+BkeCm8As6Dt8OlcDV8DG6GL8DX4T54EH4GTyEAISMMRAdhIWyEgwQjcUgSIkbWIAVICVKNNCBtSCdyCxlEJpC3GByGhmFiWBhnjC8mEsPDLMWswWzDlGOOYJoxHZhbmCHMJOYjlorVwJphnbB+2BhsMjYXm48twdZim7CXsH3YEexrHA7HwBnhHHC+uFhcKm4lbhtuH64Rdx7XgxvGTeHxeDW8Gd4FH4zn4iX4fHwZ/hj+HL4XP4J/QyATtAk2BG9CHEFE2EAoIRwlnCX0EkYJM0QFogHRiRhM5BOXE4uINcQ24g3iCHGGpEgyIrmQIkippPWkUlID6RLpAeklmUzWJTuSQ8lC8jpyKfk4+Qp5iPyWokQxpXAo8RQpZTvlMOU85S7lJZVKNaS6UeOoEup2ah31IvUR9Y0cTc5Czk+OL7dWrkKuWa5X7rk8Ud5A3l1+sfwK+RL5k/I35CcUiAqGChwFrsIahQqFUwoDClOKNEVrxWDFDMVtikcVryqOKeGVDJW8lPhKeUqHlC4qDdMQmh6NQ+PRNtJqaJdoI3Qc3YjuR0+lF9J/oHfTJ5WVlG2Vo5SXKVcon1EeZCAMQ4YfI51RxDjB6Ge8U9FUcVcRqGxVaVDpVZlWnaPqpipQLVBtVO1TfafGVPNSS1Pbqdai9lAdo26qHqqeq75f/ZL6xBz6HOc5vDkFc07MuacBa5hqhGms1Dik0aUxpaml6aOZpVmmeVFzQouh5aaVqrVb66zWuDZNe762UHu39jntp0xlpjsznVnK7GBO6mjo+OpIdQ7qdOvM6BrpRupu0G3UfahH0mPrJent1mvXm9TX1g/SX6Vfr3/PgGjANkgx2GvQaTBtaGQYbbjZsMVwzEjVyM9ohVG90QNjqrGr8VLjauPbJjgTtkmayT6Tm6awqZ1pimmF6Q0z2MzeTGi2z6zHHGvuaC4yrzYfYFFY7qwcVj1ryIJhEWixwaLF4rmlvmWc5U7LTsuPVnZW6VY1Vvetlaz9rTdYt1n/aWNqw7OpsLk9lzrXe+7aua1zX9ia2Qps99vesaPZBdlttmu3+2DvYC+2b7Afd9B3SHCodBhg09kh7G3sK45YRw/HtY6nHd862TtJnE44/eHMck5zPuo8Ns9onmBezbxhF10XrstBl8H5zPkJ8w/MH3TVceW6Vrs+dtNz47vVuo26m7inuh9zf+5h5SH2aPKY5jhxVnPOeyKePp4Fnt1eSl6RXuVej7x1vZO9670nfex8Vvqc98X6Bvju9B3w0/Tj+dX5Tfo7+K/27wigBIQHlAc8DjQNFAe2BcFB/kG7gh4sMFggWtASDIL9gncFPwwxClka8nMoLjQktCL0SZh12KqwznBa+JLwo+GvIzwiiiLuRxpHSiPbo+Sj4qPqoqajPaOLowdjLGNWx1yPVY8VxrbG4eOi4mrjphZ6LdyzcCTeLj4/vn+R0aJli64uVl+cvvjMEvkl3CUnE7AJ0QlHE95zg7nV3KlEv8TKxEkeh7eX94zvxt/NHxe4CIoFo0kuScVJY8kuybuSx1NcU0pSJoQcYbnwRapvalXqdFpw2uG0T+nR6Y0ZhIyEjFMiJVGaqCNTK3NZZk+WWVZ+1uBSp6V7lk6KA8S12VD2ouxWCR39meqSGks3SYdy5udU5LzJjco9uUxxmWhZ13LT5VuXj67wXvH9SsxK3sr2VTqr1q8aWu2++uAaaE3imva1emvz1o6s81l3ZD1pfdr6XzZYbSje8Gpj9Ma2PM28dXnDm3w21efL5YvzBzY7b67agtki3NK9de7Wsq0fC/gF1wqtCksK32/jbbv2nfV3pd992p60vbvIvmj/DtwO0Y7+na47jxQrFq8oHt4VtKt5N3N3we5Xe5bsuVpiW1K1l7RXunewNLC0tUy/bEfZ+/KU8r4Kj4rGSo3KrZXT+/j7eve77W+o0qwqrHp3QHjgzkGfg83VhtUlh3CHcg49qYmq6fye/X1drXptYe2Hw6LDg0fCjnTUOdTVHdU4WlQP10vrx4/FH7v5g+cPrQ2shoONjMbC4+C49PjTHxN+7D8RcKL9JPtkw08GP1U20ZoKmqHm5c2TLSktg62xrT2n/E+1tzm3Nf1s8fPh0zqnK84onyk6Szqbd/bTuRXnps5nnZ+4kHxhuH1J+/2LMRdvd4R2dF8KuHTlsvfli53uneeuuFw5fdXp6qlr7Gst1+2vN3fZdTX9YvdLU7d9d/MNhxutNx1vtvXM6znb69p74Zbnrcu3/W5f71vQ19Mf2X9nIH5g8A7/ztjd9Lsv7uXcm7m/7gH2QcFDhYcljzQeVf9q8mvjoP3gmSHPoa7H4Y/vD/OGn/2W/dv7kbwn1Cclo9qjdWM2Y6fHvcdvPl34dORZ1rOZifzfFX+vfG78/Kc/3P7omoyZHHkhfvHpz20v1V4efmX7qn0qZOrR64zXM9MFb9TeHHnLftv5Lvrd6Ezue/z70g8mH9o+Bnx88Cnj06e/AAOb8/zszueKAAAACXBIWXMAAA7EAAAOxAGVKw4bAAAIeUlEQVRYCe1Zb2xb1RU/9/k9O26TJqVpSByn+UNC3JZuQMukaWirBR9BGtJAIAqlEkgg+ABCsLVFWhAU0DRp8IlNYkIskSYhPvKBDxRvKIwVSin9Q9MmTRziJG7aQtrYcWw/v7tzrn1v3nOe/eIC+cKOZN97zz3n3J/vO+/cc48B/k9rswPs+y5z8B+xXZxZd6GdfuDsZmDQhf06m91L2E9wYMMA1iQ3tfde2xeN2+Zr7l4T6IG3Y01Z3XqUAduLK0bwo9e48jD+wL/7O2BoIBo1a9TFfamBBt6N1edz8HvO+dOoVu9QZYw3bWiAYF2A+f0B0A0f5HJ5sKwCLKQWIZ1ehEKh4FQBSALnLxod2lu1gF816BcGY7stxt8GLh6/WFzXdau1pVlrb2uFhoZ68Pl8DlD2Af5QmJ+/ComZGZi9cBGxcjWNID7IM/bYn/ZEE4pZpbMq0PuHDv+BcfYS2hFuQGB7ezq1jvYQaJpWxbz7VDabg6npGRiPf6PAI5Aks9hDL++Nfuiutcz1BH1gKPYmWn5cqoTbQ1akr0ertqtS1qtdSKXg5Omz6D4pJcoZu/fVPdH3FMOlUxW0HTDTNL5jW4S1Xb/Zxcy1s8hNRs9PwMTklDRiIvB7EPj7klHeVgR9YPDwAAD7IymQO+z8+U1aU1Njuf4PNp6cSsDIufPSXgqjyy9feTh6SjLsrSvoYuzln6Kg7tN81q5bdvyogCWgsfE4nJ+YLA45jPjr2G0D90WXfackuOItorDGgQ8SYJLZvq1/TQDTWr09XaDcj0Ekm4VXiV9OK0Bnc9ZTGL3pwICOcGjZSLnmjzTe2t8HgYBfWGfAn6KnXr6U4ySjXc5l+ZMk5DN03t/b4+o+5UbEuGCBPpkEfWoOtMtXgeHBAj4NrOs2gBneDGZPCLjhWM7VjGEYELmxD746ebo0b9F7dbdd2AHq4NDhpzlnfyGBvt5u6OncYpet2DfOTELgszNFoBWkuN+A7G0RyG/rqiDhZB/54jgeRleIidvBIq89FB2TEg73QMAP0gQGYd4ZbpcylVuLQ/DwF1A3fMIBWNN9YAT9QK0k2vm6T06i/FEBQ/IrtX3dXXLKpzF4Vg6oVTv9/FAsrHM+gTw9HGqF7Vv77XKufQKsj8+IOcYYNIY2QRO6grG+DmhMlF/Mwvz0JZhHt5FHt9nTBpnoTtwdtbyQLf/65MhRSKXSxL7sD7AuGUnUThvc+i1OCqcLtbaW668Yk0vYAYdv6YWWyBbw1wcVYFIy1gVgc187hHfeCKyUm+jjs2CMTK6wWc5obVEH2SY8+XfLeQXa4toNxKTjubGxQc67t+hl5MNEtKPhW/sguLG6TrBxPdAP00q7G/h8xOFSbguFWq9XbI3Db+RAgcbM8nZirgsGPZMgfWJGLdjY3gzBJmeWKo2XtwS8Mdwi2OTj+sRsuYhjHAzW0WkseBZwFfoUaJzpotmG+nXUVCUdfVRSE4KuhezyeuKip2pDw3ohg94flsJ20GL1QCAg5yq2FIeJRJTAl64WIh+XUUX7tminmv463O0SdciOHbTgaXggeJE4OFDIh7cTGSW8dOzzpCcI3w0v8hvF0xHl1G6uQGitwhAdFESFfEGFMcFY5RfpCVrFBrltoh30EhnKYpbiRdamDULEMguQTws1LxU1T3Gb9IjoiPcit01cBs0hTgbSGW8Qpu3lo4OjFrLLU07iRTm8SZdoXnYUaAy3cWIuLKTwBl3d18xuTH5KLnIFQWfmU9Je1TZzJQ1XEnNChvTN7raq8jRJN/kSxWVHgcY3CpMCfGQIOL2oBKWcs0VfzP5iq+DR0Zw4NuoJnAAnvhxD+1zoUfIkf7jT+PKIbFPpgahY7CnOKdCsAP8usgAuzHk/8vzWTpFuCoMl4HNnpyCXdr4T+UwOLo5Ow/Sxc8BLdQ/KPfKRTrlcxfbq1QVbrcRS575KcHULhvMaJHEfWmeTc+IWUdFaaSITvRWCuAeUS9CuzONhQR+KwxTWKErIl07aIsBLv77ZM1ki+SmskUjCi7UqLaidHtgXXeKMf0BCi5kMXLr8nZSv3GIekbljFyz9aofjUYuogjtsB0yuQHKU3a3mMmCaJj7xy3Lt4688GD0uB2qnBYNpb+CWPUL9sYk4NG/aKNheX5TY5/u3YC4xA8bURWDfLRRzE3lzCTWDecPyy+tlj+anZ5NAwIkwL3pHdEpfeKQ7af/gRzFk7ibuz27atuZ3RFqXwH78n88gn8crG8C832Td6AkrQx7NEmmcPYeN+Ilnzo7iYaPipJhfi6/R83EJGLAc91c7YFpf+bQEc+jh6FEs4b5OY/qlI+dG5dSatHOXvhV1vtJiY0YdHCpfeAVoEjDCsB+bU9RPYvijIspaENX0Tpz6WuUzuMv75BXLvr4raFEr5uwBFBQBm6o+tlqbXf8H69PN+/NjJ1RcxuzxZXzqw24LuIImQaqjaZYALs7oc2PjQB95OXUzdq08qlcfPX5S+TGef0NGO7xYyd6K6FEuuH8o9jvG+T+RL8JjQ3097Njejzec+nLRmsf0z8DpM2dFkX1Zmb/lD2tPVPtnwBM0GXvhndidlob/ApSuPJT4d20JAxXV6R5XK9HTmp69gO/KhCM6YTx+5tCeO0QQqGZzVaDJANVFDMt6E2vHdymDuEpbSzMLtbXBdRsbPS/EVMNIzCTx5Z5zghX/vbB7K/mwWq/UWTVoqXhgMPYoBs+D9v9eaI6qUuuDQUYXY7pn0o2DEnjKh9OLS0DJj0vKa2KE+DOFNbcoIdcsb2sGTQYGYjE9Nw33Y0l4L+NwZ7lRrzEumsTDeQjvL3+z1+i89OT8NYGWytQKt8HqFBV70FtuR1YXfsTNHluiJXwqcbpk4I88ooH2L92E/1KCVpz+iXz/D36BLy8VVzwEAAAAAElFTkSuQmCC
/* * g.Raphael 0.4.2 - Charting library, based on Raphaël * * Copyright (c) 2009 Dmitry Baranovskiy (http://g.raphaeljs.com) * Licensed under the MIT (http://www.opensource.org/licenses/mit-license.php) license. */ Raphael.fn.g.linechart=function(M,L,b,d,t,s,F){function E(x,ae){var i=x.length/ae,y=0,a=i,Y=0,X=[];while(y<x.length){a--;if(a<0){Y+=x[y]*(1+a);X.push(Y/i);Y=x[y++]*-a;a+=i}else{Y+=x[y++]}}return X}function P(j,i,aj,ah,ae,Y){var y=(aj-j)/2,x=(ae-aj)/2,ak=Math.atan((aj-j)/Math.abs(ah-i)),ai=Math.atan((ae-aj)/Math.abs(ah-Y));ak=i<ah?Math.PI-ak:ak;ai=Y<ah?Math.PI-ai:ai;var X=Math.PI/2-((ak+ai)%(Math.PI*2))/2,am=y*Math.sin(X+ak),ag=y*Math.cos(X+ak),al=x*Math.sin(X+ai),af=x*Math.cos(X+ai);return{x1:aj-am,y1:ah+ag,x2:aj+al,y2:ah+af}}F=F||{};if(!this.raphael.is(t[0],"array")){t=[t]}if(!this.raphael.is(s[0],"array")){s=[s]}var m=F.gutter||10,u=Math.max(t[0].length,s[0].length),o=F.symbol||"",Q=F.colors||Raphael.fn.g.colors,K=this,q=null,l=null,ab=this.set(),R=[];for(var aa=0,H=s.length;aa<H;aa++){u=Math.max(u,s[aa].length)}var ac=this.set();for(aa=0,H=s.length;aa<H;aa++){if(F.shade){ac.push(this.path().attr({stroke:"none",fill:Q[aa],opacity:F.nostroke?1:0.3}))}if(s[aa].length>b-2*m){s[aa]=E(s[aa],b-2*m);u=b-2*m}if(t[aa]&&t[aa].length>b-2*m){t[aa]=E(t[aa],b-2*m)}}var U=Array.prototype.concat.apply([],t),S=Array.prototype.concat.apply([],s),p=this.g.snapEnds(Math.min.apply(Math,U),Math.max.apply(Math,U),t[0].length-1),z=p.from,k=p.to,J=this.g.snapEnds(Math.min.apply(Math,S),Math.max.apply(Math,S),s[0].length-1),v=J.from,h=J.to,V=(b-m*2)/((k-z)||1),T=(d-m*2)/((h-v)||1);var B=this.set();if(F.axis){var g=(F.axis+"").split(/[,\s]+/);+g[0]&&B.push(this.g.axis(M+m,L+m,b-2*m,z,k,F.axisxstep||Math.floor((b-2*m)/20),2));+g[1]&&B.push(this.g.axis(M+b-m,L+d-m,d-2*m,v,h,F.axisystep||Math.floor((d-2*m)/20),3));+g[2]&&B.push(this.g.axis(M+m,L+d-m,b-2*m,z,k,F.axisxstep||Math.floor((b-2*m)/20),0));+g[3]&&B.push(this.g.axis(M+m,L+d-m,d-2*m,v,h,F.axisystep||Math.floor((d-2*m)/20),1))}var I=this.set(),W=this.set(),n;for(aa=0,H=s.length;aa<H;aa++){if(!F.nostroke){I.push(n=this.path().attr({stroke:Q[aa],"stroke-width":F.width||2,"stroke-linejoin":"round","stroke-linecap":"round","stroke-dasharray":F.dash||""}))}var c=this.raphael.is(o,"array")?o[aa]:o,C=this.set();R=[];for(var Z=0,r=s[aa].length;Z<r;Z++){var f=M+m+((t[aa]||t[0])[Z]-z)*V,e=L+d-m-(s[aa][Z]-v)*T;(Raphael.is(c,"array")?c[Z]:c)&&C.push(this.g[Raphael.fn.g.markers[this.raphael.is(c,"array")?c[Z]:c]](f,e,(F.width||2)*3).attr({fill:Q[aa],stroke:"none"}));if(F.smooth){if(Z&&Z!=r-1){var O=M+m+((t[aa]||t[0])[Z-1]-z)*V,A=L+d-m-(s[aa][Z-1]-v)*T,N=M+m+((t[aa]||t[0])[Z+1]-z)*V,w=L+d-m-(s[aa][Z+1]-v)*T;var ad=P(O,A,f,e,N,w);R=R.concat([ad.x1,ad.y1,f,e,ad.x2,ad.y2])}if(!Z){R=["M",f,e,"C",f,e]}}else{R=R.concat([Z?"L":"M",f,e])}}if(F.smooth){R=R.concat([f,e,f,e])}W.push(C);if(F.shade){ac[aa].attr({path:R.concat(["L",f,L+d-m,"L",M+m+((t[aa]||t[0])[0]-z)*V,L+d-m,"z"]).join(",")})}!F.nostroke&&n.attr({path:R.join(",")})}function G(ak){var ah=[];for(var ai=0,am=t.length;ai<am;ai++){ah=ah.concat(t[ai])}ah.sort();var an=[],ae=[];for(ai=0,am=ah.length;ai<am;ai++){ah[ai]!=ah[ai-1]&&an.push(ah[ai])&&ae.push(M+m+(ah[ai]-z)*V)}ah=an;am=ah.length;var Y=ak||K.set();for(ai=0;ai<am;ai++){var y=ae[ai]-(ae[ai]-(ae[ai-1]||M))/2,al=((ae[ai+1]||M+b)-ae[ai])/2+(ae[ai]-(ae[ai-1]||M))/2,a;ak?(a={}):Y.push(a=K.rect(y-1,L,Math.max(al+1,1),d).attr({stroke:"none",fill:"#000",opacity:0}));a.values=[];a.symbols=K.set();a.y=[];a.x=ae[ai];a.axis=ah[ai];for(var ag=0,aj=s.length;ag<aj;ag++){an=t[ag]||t[0];for(var af=0,x=an.length;af<x;af++){if(an[af]==ah[ai]){a.values.push(s[ag][af]);a.y.push(L+d-m-(s[ag][af]-v)*T);a.symbols.push(ab.symbols[ag][af])}}}ak&&ak.call(a)}!ak&&(q=Y)}function D(ai){var ae=ai||K.set(),a;for(var ag=0,ak=s.length;ag<ak;ag++){for(var af=0,ah=s[ag].length;af<ah;af++){var y=M+m+((t[ag]||t[0])[af]-z)*V,aj=M+m+((t[ag]||t[0])[af?af-1:1]-z)*V,x=L+d-m-(s[ag][af]-v)*T;ai?(a={}):ae.push(a=K.circle(y,x,Math.abs(aj-y)/2).attr({stroke:"none",fill:"#000",opacity:0}));a.x=y;a.y=x;a.value=s[ag][af];a.line=ab.lines[ag];a.shade=ab.shades[ag];a.symbol=ab.symbols[ag][af];a.symbols=ab.symbols[ag];a.axis=(t[ag]||t[0])[af];ai&&ai.call(a)}}!ai&&(l=ae)}ab.push(I,ac,W,B,q,l);ab.lines=I;ab.shades=ac;ab.symbols=W;ab.axis=B;ab.hoverColumn=function(i,a){!q&&G();q.mouseover(i).mouseout(a);return this};ab.clickColumn=function(a){!q&&G();q.click(a);return this};ab.hrefColumn=function(X){var Y=K.raphael.is(arguments[0],"array")?arguments[0]:arguments;if(!(arguments.length-1)&&typeof X=="object"){for(var a in X){for(var j=0,y=q.length;j<y;j++){if(q[j].axis==a){q[j].attr("href",X[a])}}}}!q&&G();for(j=0,y=Y.length;j<y;j++){q[j]&&q[j].attr("href",Y[j])}return this};ab.hover=function(i,a){!l&&D();l.mouseover(i).mouseout(a);return this};ab.click=function(a){!l&&D();l.click(a);return this};ab.each=function(a){D(a);return this};ab.eachColumn=function(a){G(a);return this};return ab};
/*** |''Name''|ImageMacroPlugin| |''Version''|0.9.4| |''Description''|Allows the rendering of svg images in a TiddlyWiki| |''Author''|Osmosoft| |''License''|[[BSD|http://www.opensource.org/licenses/bsd-license.php]]| |''Notes''|Currently only works in modern browsers (not IE)| |''Requires''|BinaryTiddlersPlugin| !Usage {{{<<image SVG>>}}} will render the text of the tiddler with title SVG as an SVG image (but not in ie where it will fail silently) !!Parameters width/height: specify width/height parameters link: make the image link to a given location tiddlyLink: link to a tiddler !Notes Binary tiddlers in TiddlyWeb when passed through the wikifier will be shown as images. eg. {{{<<view text wikified>>}}} on a binary tiddler will show the image. {{{<<view fieldname image>>}}} will render the value of the tiddler field 'fieldname' as an image. This field can contain a tid {{{<<image SiteIcon>>}}} will create an image tag where the tiddler has content type beginning image and not ending +xml will attempt to create svg object in other scenarios {{{<<image /photos/x.jpg>>}}} will create an image tag with src /photos/x.jpg as long as there is not a tiddler called /photos/x.jpg in which case it will render that tiddler as an image. Note for the case of svg files it will attempt to render as an svg if possible via the image tag. It doesn't embed the svg in the dom for security reasons as svg code can contain javascript. !Code ***/ //{{{ (function($) { var macro = config.macros.image = { shim: "/bags/common/tiddlers/shim", ieVersion: config.browser.isIE ? parseInt(config.browser.ieVersion[1], 10) : false, svgns: "http://www.w3.org/2000/svg", xlinkns: "http://www.w3.org/1999/xlink", svgAvailable: document.implementation.hasFeature("http://www.w3.org/TR/SVG11/feature#BasicStructure", "1.1"), _fixPrefix: 1, _external_cache: {}, _image_tag_cache: {}, _image_dimensions: {}, locale: { badImage: "This image cannot be displayed." }, handler: function(place, macroName, params, wikifier, paramString, tiddler){ var imageSource = params[0]; // collect named arguments var args = macro.getArguments(paramString, params); this.renderImage(place, imageSource, args); }, init: function() { var startupImages = store.getTaggedTiddlers("systemImage"); var place = $("<div />").attr("id", "systemImageArea").appendTo("body").hide()[0]; for(var i = 0; i < startupImages.length; i++) { var image = startupImages[i]; macro.renderImage(place, image.title, { idPrefix: "" }); } var data = new Image(); data.onload = function() { // note ie 8 only supports data uris up to 32k so cannot be relied on macro.supportsDataUris = this.width != 1 || this.height != 1 ? false : true; macro.supportsDataUris = macro.ieVersion && macro.ieVersion < 9 ? false : macro.supportsDataUris; }; data.onerror = data.onload; data.src = "data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///ywAAAAAAQABAAACAUwAOw=="; }, refreshImage: function(src) { var elements = macro._image_tag_cache[src] ? macro._image_tag_cache[src] : []; if(macro._image_dimensions[src]) { macro._image_dimensions[src] = false; } for(var i = 0; i < elements.length; i++) { var el = $(elements[i]); var newSrc = "%0?nocache=%1".format(src, Math.random()); el.attr("src", newSrc); // force reload } }, isBinaryImageType: function(contentType) { return (contentType && contentType.indexOf("image") === 0 && contentType.indexOf("+xml") != contentType.length - 4) ? true : false; }, isImageTiddler: function(tiddler) { return macro.isSVGTiddler(tiddler) || macro.isBinaryImageTiddler(tiddler); }, isSVGTiddler: function(tiddler) { var type = tiddler ? tiddler.fields['server.content-type'] : false; return type == "image/svg+xml"; }, isBinaryImageTiddler: function(tiddler) { return macro.isBinaryImageType(tiddler.fields['server.content-type']); }, renderImage: function(place, imageSource, options) { var imageTiddler = store.getTiddler(imageSource); var container; var classes = ["image"]; if(options.link) { classes = classes.concat(["imageLink", "externalLink"]); container = $("<a />").attr("href", options.link).appendTo(place)[0]; } else if(options.tiddlyLink) { classes.push("imageLink"); container = createTiddlyLink(place, options.tiddlyLink, false); } else { container = $("<span />").appendTo(place)[0]; } $(container).addClass(classes.join(" ")); options = options ? options : {}; if(imageTiddler && macro.isBinaryImageTiddler(imageTiddler)) { // handle the case where we have an image url return macro._renderBinaryImageTiddler(container, imageTiddler, options); } else if(imageTiddler){ // handle the case where we have a tiddler return macro._renderSVGTiddler(container, imageTiddler, options); } else { // we have a string representing a url return macro._renderBinaryImageUrl(container, imageSource, options); } }, _renderAlternateText: function(container, options) { var img; var src = options.src || ""; if(options.width && options.height) { img = $("<img />").attr("src", src).addClass("svgImageText").attr("width", options.width). attr("height", options.height).appendTo(container); } var alt = options.alt; if(img && alt) { img.attr("alt", alt).attr("title", alt); } else if(alt) { $(container).addClass("svgImageText").text(alt); } macro._image_tag_cache[src] = img; }, _renderSVGTiddler: function(place, tiddler, options) { if(!options) { options = {}; } merge(options, { tiddler: tiddler, fix: true}); if(macro.svgAvailable) { this._importSVG(place, options); // display the svg } else if(options.altImage) { var image = options.altImage; delete options.altImage; this._renderBinaryImageUrl(place, image, options); } else { this._renderAlternateText(place, options); // instead of showing the image show the alternate text. } }, _renderBinaryImageTiddler: function(place, tiddler, options) { var resourceURI; var fields = tiddler.fields; if(fields["server.type"] == "tiddlyweb") { // construct an accurate url for the resource resourceURI = "%0/%1/tiddlers/%2".format(config.defaultCustomFields["server.host"], fields["server.workspace"], encodeURI(fields["server.title"])); } else { // guess the url for the resource resourceURI = tiddler.title; } var ctype = fields["server.content-type"] || tiddler.type; var text = tiddler.text; if(macro.supportsDataUris && ctype && text.indexOf("<html") == -1) { var uri = "data:%0;base64,%1".format(ctype, text); options.src = resourceURI; return macro._renderBinaryImageUrl(place, uri, options); } else if(options.src) { return macro._renderBinaryImageUrl(place, options.src, options); } else { return macro._renderBinaryImageUrl(place, resourceURI, options); } }, _renderImageTag: function(container, src, width, height, options) { var img; img = $("<img />").appendTo(container); if(height) { img.attr("height", height); } if(width) { img.attr("width", width); } if(macro.ieVersion && macro.ieVersion < 7 && macro.shim && options.ie6png) { $(img).css({width: userW, height: userH, filter: "progid:DXImageTransform.Microsoft.AlphaImageLoader(src='%0', sizingMethod='scale')".format(src) }).attr("src", macro.shim); } else { img.attr("src", src); } if(!macro._image_tag_cache[options.srcUrl]) { macro._image_tag_cache[options.srcUrl] = []; } img = $(img).addClass(options.imageClass)[0]; macro._image_tag_cache[options.srcUrl].push(img); return img; }, _getDimensions: function(realDimensions, reqDimensions, preserve) { var w = realDimensions.width; var h = realDimensions.height; var reqh = reqDimensions.height; var reqw = reqDimensions.width; var finalw = w, finalh = h; var ratiow = reqw / w, ratioh = reqh / h; var scaledw = ratioh * w; var scaledh = ratiow * h; if(!reqw && reqh) { finalw = scaledw; finalh = reqh; } else if(reqw && !reqh) { finalw = reqw; finalh = scaledh; } else if(reqh && reqw) { var preserveWidth = w > h ? true : false; if(preserve) { if(preserveWidth && scaledh < reqh) { finalh = scaledh; finalw = reqw; } else { finalh = reqh; finalw = scaledw; } } else { finalw = reqw; finalh = reqh; } } return { width: parseInt(finalw, 10), height: parseInt(finalh, 10) }; }, _renderBinaryImageUrl: function(container, src, options) { var srcUrl = options.src ? options.src : src; srcUrl = srcUrl.indexOf("/") === -1 ? "/%0".format(srcUrl) : srcUrl; // for IE. var image_dimensions = macro._image_dimensions[srcUrl]; var image = new Image(); // due to weird scaling issues where you use just a width or just a height var createImageTag = function(dimensions, error) { if(error) { var altImage = options.altImage; if(altImage) { delete options.altImage; macro._renderBinaryImageUrl(container, altImage, options); } else { options.src = src; macro._renderAlternateText(container, options); } } else { var dim = macro._getDimensions(dimensions, { width: options.width, height: options.height }, options.preserveAspectRatio); options.srcUrl = srcUrl; macro._renderImageTag(container, src, dim.width, dim.height, options); } }; if(!image_dimensions) { image.onload = function() { var dimensions = { width: image.width, height: image.height}; macro._image_dimensions[srcUrl] = dimensions; createImageTag(dimensions); }; image.onerror = function() { createImageTag(null, true); }; image.src = src; } else { createImageTag(image_dimensions); } }, _generateIdPrefix: function(){ return "twsvgfix_" + (this._fixPrefix++).toString() + "_"; }, _fixSVG: function(childNodes, idPrefix) { var urlPattern = /url\(\#([^\)]*)\)*/ig; var fixes = [ { attr: "id", pattern: /^(.*)$/ig }, { attr: "href", namespace: macro.xlinkns, pattern: /^#(.*)$/ig } ]; var url_fixes = ["filter", "fill", "mask", "stroke", "style"]; for(var i = 0; i < url_fixes.length; i++) { fixes.push({ attr: url_fixes[i], pattern: urlPattern }); } for(var t = 0; t < childNodes.length; t++) { var node = childNodes[t]; for(var a = 0; a < fixes.length; a++) { var fix = fixes[a]; var attr = fix.attr; var ns = fix.namespace || ""; if(node.hasAttributeNS && node.hasAttributeNS(ns, attr)) { var v = node.getAttributeNS(ns, attr); fix.pattern.lastIndex = 0; var match = fix.pattern.exec(v); if(match) { // Make sure replacement string doesn't contain any single dollar signs var toReplace = match[1]; if(toReplace.indexOf(idPrefix) !== 0 && toReplace.indexOf("twglobal_") !== 0) { var replacement = (idPrefix + toReplace).replace("$", "$$$$"); v = v.replace(match[1], replacement); } node.setAttributeNS(ns, attr,v); } } } var children = node.childNodes; if(children.length > 0) { this._fixSVG(children, idPrefix); } } }, _importSVG: function(place, options){ options = options ? options : {}; var svgDoc, tiddlerText = options.tiddler.text; if (window.DOMParser) { svgDoc = new DOMParser().parseFromString(tiddlerText, "application/xml").documentElement; var idPrefix = options.idPrefix || this._generateIdPrefix(); this._fixSVG([svgDoc], idPrefix); var el = document.importNode(svgDoc, true); var svgHolder = document.createElementNS(macro.svgns,"svg"); var width = options.width; var height = options.height; if(width || height) { if(width && height) { // set view box of containing svg element based on the svg viewbox and width and height. var viewBox = el.getAttribute("viewBox"); var topLeft = "0 0"; if(viewBox) { topLeft = viewBox.replace(/([0-9]*) +([0-9]*) +([0-9]*) +([0-9]*) */gi,"$1 $2"); } svgHolder.setAttributeNS(macro.svgns, "viewBox", "0 0 %0 %1".format(width, height)); } else { if(!width) { width = el.getAttribute("width"); } if(!height) { height = el.getAttribute("height"); } } svgHolder.setAttribute("width", width); svgHolder.setAttribute("height", height); el.setAttribute("width", "100%"); el.setAttribute("height", "100%"); svgHolder.setAttribute("class", "svgImage svgIcon %0".format(options.imageClass || "")); svgHolder.appendChild(el); place.appendChild(svgHolder); } else { var existing = el.className ? el.className.baseVal : ""; el.setAttribute("class","svgImage %0".format(existing)); place.appendChild(el); } // if a tiddler attribute is set this is read as a link $("[tiddler], [tiddlyLink]", place).attr("refresh", "link").click(function(ev) { var tiddler = $(ev.target).attr("tiddlyLink"); if(tiddler) { story.displayTiddler(ev.target, tiddler); } }); } }, getArguments: function(paramString, params) { var args = paramString.parseParams("name", null, true, false, true)[0]; var options = {}; for(var id in args) { if(true) { var p = args[id]; if(id == "def") { options[id] = p; } else { options[id] = p[0]; } } } var width = isNaN(params[1]) ? false : parseInt(params[1], 10); var height = isNaN(params[2]) ? false : parseInt(params[2], 10); options.width = macro.lookupArgument(options, "width", width); options.height = macro.lookupArgument(options, "height", height); options.preserveAspectRatio = args.preserveAspectRatio && args.preserveAspectRatio[0] == "yes" ? true : false; options.tiddlyLink = macro.lookupArgument(options, "tiddlyLink", false); options.link = macro.lookupArgument(options, "link", false); return options; }, lookupArgument: function(args, id, ifEmpty) { return args[id] ? args[id] : ifEmpty; } }; // update views var _oldwikifiedview = config.macros.view.views.wikified; // update wikifier to check tiddler type before rendering merge(config.macros.view.views, { wikified: function(value, place, params, wikifier, paramString, tiddler) { if(macro.isImageTiddler(tiddler) && params[0] == "text") { var newplace = $("<div />").addClass("wikifiedImage").appendTo(place)[0]; macro.renderImage(newplace, tiddler.title, { alt: macro.locale.badImage }); } else { _oldwikifiedview.apply(this, arguments); } }, image: function(value, place, params, wikifier, paramString, tiddler) { // a field can point to another tiddler whereas text is the current tiddler. var title = params[0] == "text" ? tiddler.title : value; var args = macro.getArguments(paramString, params); macro.renderImage(place, title, args); } }); config.shadowTiddlers.StyleSheetImageMacro = [".wikifiedImage svg, .wikifiedImage .image { width: 80%; }", ".svgImageText { background-color:[[ColorPalette::Error]]; color:#ddd; display: inline-block; }", "span.svgImageText { display: inline-block; overflow: hidden; }" ].join(""); store.addNotification("StyleSheetImageMacro", refreshStyles); })(jQuery); //}}}
/*{{{*/ Background: #edf8dc Foreground: #172206 PrimaryPale: #fcfefa PrimaryLight: #ddedc4 PrimaryMid: #8cb648 PrimaryDark: #50534a SecondaryPale: #fefafc SecondaryLight: #edc4d6 SecondaryMid: #b64878 SecondaryDark: #534a4e TertiaryPale: #fafdfe TertiaryLight: #c4e4ed TertiaryMid: #48a0b6 TertiaryDark: #4a5153 Error: #f88 ColorPaletteParameters: HSL([83|71], [0.67|0.53|0.43|0.06],[0.31|0.5|0.85|0.99]) /*}}}*/
En sismología hay dos conceptos muy diferentes que debes saber distinguir: [[magnitud]] e [[intensidad]] de un terremoto. Está claro que en las facultades de periodismo que esto no se explica, porque pocas veces se oye usarlos adecuadamente en los telediarios. Ya sabes que el temblor de tierra se produce por las ondas superficiales R y L. Aquí tienes [[un vídeo|http://www.youtube.com/watch?v=jmpyrWFdE1I]] en el que las puedes reconocer. ---- Sobre la destrucción que provocan los terremotos hay mucho que discutir. Muchas veces oimos en los medios de comunicación que la Naturaleza es cruel con los países más pobres y no sé si eso es cierto. Con esta actividad intentaremos sacar alguna conclusión al respecto: #Visita [[esta paǵina|http://es.wikipedia.org/wiki/Anexo:Terremotos_del_siglo_XX]] y [[esta otra|http://en.wikipedia.org/wiki/List_of_21st-century_earthquakes]]. #Haz una tabla con 15 terremotos que hayan tenido lugar después de 1950. Deberás elegir seismos que hayan destacado por ser de gran magnitud y/o por causar grandes pérdidas humanas. La tabla tendrá tres columnas: país-año, magnitud y número de fallecidos. #Haz una gráfica que tenga en el eje horizontal la magnitud y en el vertical el número de muertes. Debe ser una gráfica de puntos (en cada punto, que es un terremoto, indica el país al que corresponde). #Extrae al menos tres conclusiones a partir de la gráfica. #En [[este mapa|https://maps.google.com/maps?q=http:%2F%2Ftoolserver.org%2F~para%2Fcgi-bin%2Fkmlexport%3Fproject%3Des%26article%3DAnexo%253ATerremotos_del_siglo_XX&ll=17.308688,156.269531&spn=65.138573,107.753906&t=m&z=3]] tienes la localización de todos los terremotos que salen en la tabla de los terremotos del siglo XX. #Saca un par de conclusiones de ese mapa. #[[Aquí tienes|http://es.wikipedia.org/wiki/Anexo:Pa%C3%ADses_por_gastos_militares]] el ranking de países por su gasto militar. En [[esta otra|http://es.wikipedia.org/wiki/Anexo:Pa%C3%ADses_por_igualdad_de_ingreso]] puedes ver ordenados los países según las diferencias que hay entre sus habitantes más ricos y los maś pobres. [[Aquí|http://es.wikipedia.org/wiki/%C3%8Dndice_de_Percepci%C3%B3n_de_Corrupci%C3%B3n]] tienes un ranking de la corrupción en el mundo. Finalmente [[aquí está|http://datos.bancomundial.org/indicador/SH.XPD.TOTL.ZS?order=wbapi_data_value_2011+wbapi_data_value+wbapi_data_value-last&sort=asc]] lo que gastan en salud. #Busca en las diferentes tablas los países de los terremotos que has representado en la gráfica y comenta su posición en cada una. Extrae conclusiones para cada caso. ----
Es ''el manto''. Podemos calcular su volumen fácilmente. Ya sabemos cuál es el volumen del manto más el núcleo. Podemos calcular el volumen del núcleo (que es una esfera) si sabemos cuál es su radio. Para eso debemos fijarnos en el modelo sísmico. Veremos que el núcleo comienza a 2885km de profundidad así que su radio es 6370km - 2885km = 3485km. Con la fórmula del volumen de una esfera obtenemos que V~~N~~ = 1.77x10^^11^^km^^3^^. Con este dato podemos calcular el volumen del manto ya que ''V~~M~~'' = V~~M+N~~ - V~~N~~ = 1.06x10^^12^^km^^3^^ - 1.77x10^^11^^km^^3^^ = ''8.83x10^^11^^km^^3^^'' Si comparamos este valor con el volumen del núcleo vemos que claramente más grande. Con un sencillo cálculo podrás comprobar que el manto supone casi el 82% del volumen de la Tierra, de modo que es la capa (con diferencia) más importante del planeta. A modo de resumen, esta tabla con los datos que hemos obtenido: | ''Capa'' | ''Volumen (km^^3^^)'' | ''%''| |Corteza | 2.03x10^^10^^ | 2 | | Manto | 8.83x10^^11^^ | 82 | | Núcleo | 1.77x10^^11^^ | 16 | |Capas de la Tierra|c
@@Please do not modify this tiddler; it was created automatically upon space creation.@@
<<tabs tabs "Concept" "" "Origins of this course" "Objectives" "" "Course Objectives" "Resources" "" "Resources" "Assignments" "" "Class Assignments" "Modules" "" "Modules" >>
/*{{{*/ * 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 0 1em 1em; left:-1px; top:-1px;} .headerForeground {position:absolute; padding:4.5em 0 1em 1em; left:0; top:0;} .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:0 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 0.3em 0;} #sidebarTabs .tabContents {width:15em; overflow:hidden;} .wizard {padding:0.1em 1em 0 2em;} .wizard h1 {font-size:2em; font-weight:bold; background:none; padding:0; margin:0.4em 0 0.2em;} .wizard h2 {font-size:1.2em; font-weight:bold; background:none; padding:0; margin:0.4em 0 0.2em;} .wizardStep {padding:1em 1em 1em 1em;} .wizard .button {margin:0.5em 0 0; font-size:1.2em;} .wizardFooter {padding:0.8em 0.4em 0.8em 0;} .wizardFooter .status {padding:0 0.4em; margin-left:1em;} .wizard .button {padding:0.1em 0.2em;} #messageArea {position:fixed; top:2em; right:0; margin:0.5em; padding:0.5em; z-index:2000; _position:absolute;} .messageToolbar {display:block; text-align:right; padding:0.2em;} #messageArea a {text-decoration:underline;} .tiddlerPopupButton {padding:0.2em;} .popupTiddler {position: absolute; z-index:300; padding: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 0;} .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 0 0 0.5em;} .tab {margin:0 0 0 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 0 14em;} .toolbar {text-align:right; font-size:.9em;} .tiddler {padding:1em 1em 0;} .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:0 0.25em; padding:0 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:0 3px 0 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 0; font-size:.9em;} .editorFooter .button {padding-top:0; padding-bottom:0;} .fieldsetFix {border:0; padding:0; margin:1px 0px;} .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;} #backstageToolbar {position:relative;} #backstageArea a {font-weight:bold; margin-left:0.5em; padding:0.3em 0.5em;} #backstageButton {display:none; position:absolute; z-index:175; top:0; right:0;} #backstageButton a {padding:0.1em 0.4em; margin:0.1em;} #backstage {position:relative; width:100%; z-index:50;} #backstagePanel {display:none; z-index:100; position:absolute; width:90%; margin-left:3em; padding:1em;} .backstagePanelFooter {padding-top:0.2em; float:right;} .backstagePanelFooter a {padding:0.2em 0.4em;} #backstageCloak {display:none; z-index:20; position:absolute; width:100%; height:100px;} .whenBackstage {display:none;} .backstageVisible .whenBackstage {display:block;} /*}}}*/
/*** |''Name''|SvgEvent_Menue| |''Description''|contains the global TW jQuery custom events.| |''Author''|Mario Pietsch| |''Version''|0.2.1| |''Status''|''stable''| |''Source''|http://fxplugins.tiddlyspace.com| |''CoreVersion''|2.6| |''Documentation''|[[SvgEvent_Info]]| |''Keywords''|svg, events, animation, commands| !Important !Known issues !History *V 0.2.1 **stable **[[SvgEvent_Info]] has more info now *Version: 0.2.0 **changed function names. They are not ugly anymore :) **SvgEventzPlugin is not needed anymore! *Version: 0.1.0 **initial release !Code ***/ /*{{{*/ if(!version.extensions.SvgEvent_Menue) { //# ensure that the plugin is only installed once version.extensions.SvgEvent_Menue= { installed: true }; (function($) { var eventTypes = ["cCloseAll", "cPermaview", "cNewTiddler", "cNewJournal", "cSaveChanges", "cReadDoc", "cmd99"]; menue= { // if you add event types here. Also go to the end and adjust "var eventTypes" accordingly. //menueCloseAll cCloseAll: function(e, trial) { if (! trial.comp.menue) return false; story.closeAllTiddlers(); return false; }, //menuePermaview cPermaview: function(e, trial) { if (! trial.comp.menue) return false; story.permaView(); return false; }, //menueNewTiddler cNewTiddler: function(e, trial) { if (! trial.comp.menue) return false; // trigger readOnly if (readOnly) {$(document).trigger('cmd99', trial); return false;} var title = 'New Tiddler'; story.displayTiddler(null, title); config.commands.editTiddler.handler(null, null, title); return false; }, //menueNewJournal cNewJournal: function(e, trial) { if (! trial.comp.menue) return false; // trigger readOnly if (readOnly) {$(document).trigger('cmd99', trial); return false;} var title = config.macros.timeline.dateFormat; title = new Date().formatString(title.trim()); story.displayTiddler(null, title); config.commands.editTiddler.handler(null, null, title); return false; }, // menueSaveChanges cSaveChanges: function(e, trial) { if (! trial.comp.menue) return false; // trigger readOnly if (readOnly) {$(document).trigger('cmd99', trial); return false;} saveChanges(); return false; }, cReadDoc: function(e, trial) { if (! trial.comp.menue) return false; var rdDocMsg= "Read the documentation!"; displayMessage(rdDocMsg); return false; }, cmd99: function(e, trial) { var rdOnlyMsg= "System is readOnly!"; if (! trial.comp.menue) return false; displayMessage(rdOnlyMsg); trial.elem.setAttribute('opacity', 0.3); return false; } }; // menue // if you add components here a var components = [menue]; $.each(components, function(i,component) { $.each(eventTypes, function(j,eventType) { var handler = component[eventType]; if (handler) $(document).bind(eventType, handler); }); }); })(jQuery); } //# end of "install only once" /*}}}*/
Deberéis hacer un informe con los siguientes apartados: ---- *Título *Objetivos *Material *Método: (es un apartado importante y debe explicarse bien la técnica utilizada en cada parte de la investigación) **Toma de muestras **Uso del microscopio del alumno **Uso del microscopio del laboratorio *Resultados **Fichas de todas las muestras de agua estudiadas con mapa de localización exacta del lugar donde se tomó. **Una ficha por cada organismo que hayamos estudiado. Incluirá: ***Clasificación ***Imágenes (se valorará la calidad) ***Descripciones ***Mediciones *Conclusiones *[[Tabla de recomendaciones|Cómo hacer un buen informe]] (con su valoración) ---- El informe se realizará en formato de presentación de diapositivas. Se puede hacer con googledrive o como se quiera, pero, en cualquier caso, debe subirse al google drive y compartirlo con bg@iesazucarera.es ---- Podéis encontrar imágenes de microorganismos de agua dulce en estas páginas. Es fácil que así podáis poner nombre (al menos del grupo al que pertenecen...) a vuestras imágenes. *[[Atlas andaluz|http://www.juntadeandalucia.es/medioambiente/portal_web/rediam/contenidos_ordenacion/PDF/Atlas_Org_Planctonicos_1.pdf]] *[[Proyecto Agua, mogollón de fotos|http://www.flickr.com/photos/microagua/sets/]]
<?xml version="1.0" encoding="UTF-8" standalone="no"?> <svg id="svg2" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns="http://www.w3.org/2000/svg" height="29pt" viewBox="13 43 29 29" width="29pt" version="1.0" xmlns:cc="http://creativecommons.org/ns#" xmlns:dc="http://purl.org/dc/elements/1.1/" onmousedown="if(jQuery) jQuery(document).trigger('cSmaller', {elem:this, comp:{animations:1}})" onmouseup="if(jQuery) jQuery(document).trigger('cResize', {elem:this, comp:{animations:1}})"> <defs id="defs6"> <linearGradient id="linearGradient001" y2="27.646" gradientUnits="userSpaceOnUse" x2="-45.8" y1="27.646" x1="-57.66"> <stop id="stop1" stop-color="#CC9900" offset="0"/> <stop id="stop2" stop-color="#E8D18B" offset="0.66462"/> <stop id="stop3" stop-color="#CC9900" offset="1"/> </linearGradient></defs> <g id="icon" stroke-linecap="round" stroke-miterlimit="4"> <rect id="iconBG" style="stroke-dasharray:none;" fill-rule="evenodd" ry="4.1663" transform="matrix(0, -1, 1, 0, 0, 0)" height="25" width="25" stroke="#696969" stroke-linecap="round" stroke-miterlimit="4" y="15.167" x="-70.116" stroke-width="1.2" fill="none"/> <rect id="iconFG" stroke-width="0" fill-rule="evenodd" ry="2.3755" transform="matrix(0, -1, 1, 0, 0, 0)" width="22" stroke-miterlimit="4" y="16.646" x="-68.6" height="22" fill="url(#linearGradient001)" class="showOnHover" opacity="0"/> <g id="iconSymbol" stroke-linejoin="miter" stroke="#4d4d4d" stroke-linecap="round" stroke-miterlimit="4"> <path id="path3640" style="stroke-dasharray:none;" d="m21.877,50.312,0,14.926" stroke-width="2.50369096" fill="none"/> <rect id="rect3642" style="stroke-dasharray:none;" transform="matrix(0.707107, -0.707107, 0.707107, 0.707107, 0, 0)" ry="0" height="2.1305" width="2.1305" y="59.855" x="-17.174" stroke-width="2.4" fill="none"/> <rect id="rect3644" ry="0" style="stroke-dasharray:none;" transform="matrix(0.707107, -0.707107, 0.707107, 0.707107, 0, 0)" height="2.1305" width="2.1305" y="66.038" x="-23.357" stroke-width="2.4" fill="none"/> <path id="path3646" style="stroke-dasharray:none;" d="m22.664,54.557,3.0416,0" stroke-width="2.4" fill="none"/> </g> <rect id="overlay" opacity="0.01" ry="4.1663" style="stroke-dasharray:none;" fill-rule="evenodd" transform="matrix(0, -1, 1, 0, 0, 0)" height="25" width="25" stroke="#e6e6e6" stroke-linecap="round" stroke-miterlimit="4" y="15.167" x="-70.116" stroke-width="1.2" fill="#e6e6e6" onmouseover="if(jQuery) jQuery(document).trigger('cTglBg', {elem:this, comp:{animations:1}})" onmouseout="if(jQuery) jQuery(document).trigger('cTglBg', {elem:this, comp:{animations:1}})"/> </g> </svg>
Los núcleos de los isótopos radioactivos se desintegran en otros núcleos que son más estables. La ventaja para nosotros es que la velocidad a la que ocurre el proceso se puede conocer y, gracias a ello, podemos calcular la edad de los materiales geológicos o arqueológicos. [img[http://upload.wikimedia.org/wikipedia/commons/thumb/c/c1/Thorium_decay_chain_from_lead-212_to_lead-208.svg/300px-Thorium_decay_chain_from_lead-212_to_lead-208.svg.png]] ---- Algunos enlaces buenos **[[Simulación|http://phet.colorado.edu/es/simulation/radioactive-dating-game]] **[[Muy buena explicación. Nivel un poco más alto|http://ansatte.uit.no/kare.kullerud/webgeology/webgeology_files/spanish/edad-abs_8new.html]] **[[Wiki de un profe. Muy clarito|http://wikitareas-de-biogeo4eso.wikispaces.com/05.Dataci%C3%B3n+absoluta+con+radiois%C3%B3topos+-+TEMA+3]] **[[Lección en inglés|http://sciencecourseware.com/VirtualDatingDemo/files/2.0_HalfLife.html]] **[[Ejercicios corregidos (en inglés)|http://itc.gsw.edu/faculty/tweiland/1122F09HmkKey.htm]]
iVBORw0KGgoAAAANSUhEUgAAABIAAAASCAYAAABWzo5XAAAABHNCSVQICAgIfAhkiAAAABl0RVh0U29mdHdhcmUAd3d3Lmlua3NjYXBlLm9yZ5vuPBoAAAF2SURBVDiN3ZI7S4JhGIav9y0MFBQHkQwMI81oCCQhS8LD6GQIgUMQ7UHw/QQXUTD/gEFbe2tjJwqHoMWtwVpyEJIksLfBA36+fgiN3dtz8zwXz0kopZiUEOUYkAaiwNbAfgIegWuljDutZhwkRNkFVIAjjW7WOXCqlNHWQEKUd4FLYGkGZKgmcKCUcTMCDTp5mQYJhdy0Wl+0Wl0r2IZSRlsOjIpVJ9VqikIhbtXV0qAWAaUYcDstK5NZ4epqn17vh0jkgufnDyvgjqR/HU02m6RSSQIwNyepVlNWEIC0pH9iTScnEYJB9yhOJPzkciErUFRAqQn4xl2v106jcYzTuWDKfn1tEw7X6HZ7k6A3OQkBKBTiGgRgedmFYUwdwCegZHrtzU0P9fohUoqpM3Q636yt1Wg2P02+nEw8O0taQgAcDhvF4p7mm0DZ7CqJhN8SMlQ+v8729qLJmx8PPB47xeLDTBBAIODi/v59FGs7+qu0Hf0f0C/2AGVt8aX+pAAAAABJRU5ErkJggg==
Llamamos Geología Histórica a la parte de la Geología que investiga cómo era la Tierra en el pasado, comenzando desde el mismo momento de la formación del planeta. Esto abarca ni más ni menos que 4500 millones de años, de modo que la historia es larga. Sin embargo, todo tiene un [[origen]]... Para reconstruir la historia geológica de una zona necesitamos //herramientas//. Las más importantes nos las aporta la [[Estratigrafía]], mediante una serie de [[principios básicos|Principios básicos de la Estratigrafía]] que debes conocer.
/*{{{*/ Name: MpBlue Background: #ffd Foreground: #000 PrimaryPale: #ccd PrimaryLight: #57c PrimaryMid: #114 PrimaryDark: #012 SecondaryPale: #ffc SecondaryLight: #fe8 SecondaryMid: #db4 SecondaryDark: #841 TertiaryPale: #eee TertiaryLight: #ccc TertiaryMid: #999 TertiaryDark: #666 Error: #f88 /*{{{*/
La Biología es la ciencia que estudia todo lo relacionado con los seres vivos. Esto incluye un montón de cosas, por ejemplo: *de qué están hechos *cómo funcionan *sus relaciones con su medio ambiente *... pero...¿qué es un [[ser vivo]]?
(function() { var getCSRFToken = function(window) { // XXX: should not use RegEx - cf. // http://www.quirksmode.org/js/cookies.html // https://github.com/TiddlySpace/tiddlyspace/commit/5f4adbe009ed4bda3ce39058a3fb07de1420358d var regex = /^(?:.*; )?csrf_token=([^(;|$)]*)(?:;|$)/; var match = regex.exec(document.cookie); var csrf_token = null; if (match && (match.length === 2)) { csrf_token = match[1]; } return csrf_token; }; if (typeof config !== 'undefined' && config.extensions && config.extensions.tiddlyspace && config.extensions.tiddlyspace.getCSRFToken === null) { config.extensions.tiddlyspace.getCSRFToken = getCSRFToken; } else { window.getCSRFToken = getCSRFToken; } })(window);
haz esta pregunta: [[Pruebas cuestionario]]
<<tiddler SiteTitle>> <<tiddler SiteSubtitle>>
En la metafase los cromosomas son colocados en un plano ecuatorial de la célula gracias a los filamentos de proteína. | [img(200px+,)[http://galeon.hispavista.com/ciclocelular/img/Diapositiva11.JPG]] | | En la metafase los cromosomas están todos //apelotonados// en el centro de la célula |
!Prefix De pruebas !Label La caliza ¿es una roca sedimentaria? !Type radio !Values Sí No Depende !Extensions Sí>>Question1a No>>Question1b Depende>>Question1c
../../data/
<html> <div id="jxgbox" class="jxgbox" style="height:400px; width:600px;"></div> </html> <script> var toDate = function(datestr) { var a = datestr.split('.'); return new Date(a[2]*1,a[1]*1-1,a[0]*1); }; //TU EDICIÓN EMPIEZA AQUÍ var table = [ ['23.10.2012',62.7], //FECHA Y SOMBRA DEL PRIMER DÍA ['2.11.2012',70.5], ['5.11.2012',72], ['13.11.2012',80.6], ['27.11.2012',92], //COPIA ESTA LÍNEA ENTERA Y PÉGALA POR DEBAJO. PON LA FECHA CORRECTA Y LA LONGITUD ['11.12.2012',96], //COPIA ESTA LÍNEA ENTERA Y PÉGALA POR DEBAJO. PON LA FECHA CORRECTA Y LA LONGITUD ]; //AQUÍ ACABA TU EDICIÓN //AQUÍ ACABA TU EDICIÓN //AQUÍ ACABA TU EDICIÓN //AQUÍ ACABA TU EDICIÓN var plotChartGoogleStyle = function(board, x, y, axisHeight) { var points = [], i, p; board.suspendUpdate(); points.push(board.createElement('point', [0, 0], {visible:false, name:'', fixed:true, withLabel:false})); for (i=0;i<x.length;i++) { p = board.create('point', [x[i],y[i]], {strokeWidth:2, strokeColor:'#ffffff', highlightStrokeColor:'#0077cc', fillColor:'#0077cc', highlightFillColor:'#0077cc', style:6, name:'', fixed:true}); points.push(p); } points.push(board.create('point', [0,0], {visible:false, name:'', fixed:true})); // Filled area. We need two additional points [start,axisHeight] and [end,axisHeight] board.create('polygon',points, {withLines:false,withLabel:false,fillColor:'none'}); // Curve: board.create('curve', [x,y], {strokeWidth:3, strokeColor:'#0077cc', highlightStrokeColor:'#0077cc'} ); board.unsuspendUpdate(); }; var i, x = [], y = [], birthday = toDate(table[0][0]); var brd = JXG.JSXGraph.initBoard('jxgbox', {boundingbox:[-5,150,350,-10]}); brd.create('axis',[[0,270],[0,270]]); brd.create('axis',[[0,0],[0,100]]); brd.highlightInfobox = function(x,y,el) { var date = new Date(x*1000.0*60.0*60.0*24.0 + birthday.getTime()); this.infobox.setText('<span style="color:black;font-weight:bold">' + date.getDate() + '.' + (date.getMonth()+1) + '.' + date.getFullYear() + ', ' + y + ' cm</span>'); this.infobox.rendNode.style.border = 'groove ' + el.visProp['strokecolor'] + ' 2px'; this.infobox.rendNode.style.padding = '5px'; this.infobox.rendNode.style.backgroundColor = 'white'; } // Transform the dates into days from birthday for (i=0;i<table.length;i++) { x[i] = Math.round(((toDate(table[i][0])).getTime()-birthday.getTime())/(1000.0*60.0*60.0*24.0)); y[i] = table[i][1]*1; } plotChartGoogleStyle(brd,x,y,270); var reg = brd.create('functiongraph',[JXG.Math.Numerics.regressionPolynomial(3,x,y)],{strokeColor:'white',dash:3}); </script>
<<slider chkSliderOptionsPanel OptionsPanel "Options »" "display the options panel">>
/*** |''Name:''|TiddlySpaceIntraSpaceInclusion| |''Description:''|Provides support for {{{<<tiddler Foo@bar>>}}} and {{{<<tiddler [[Foo]]@bar>>}}}| |''Author:''|Jon Robson| |''Source:''|https://github.com/jdlrobson/TiddlyWikiPlugins/raw/master/plugins/TiddlySpaceIntraSpaceInclusion/TiddlySpaceIntraSpaceInclusion.js| |''Version:''|0.3.8a| |''License:''|[[BSD License|http://www.opensource.org/licenses/bsd-license.php]] | |''Comments:''|Please make comments at http://groups.google.co.uk/group/TiddlyWikiDev | |''~CoreVersion:''|2.4| ***/ //{{{ (function() { var _tidtext = TiddlyWiki.prototype.getTiddlerText; var cache = {}; // allmost the same regExp as in TiddlySpaceLinkPlugin but .. no "mg" parameter, because it didn't work for this usecase. config.textPrimitives.spacenameLinkRegExp = new RegExp(config.textPrimitives.unWikiLink + "?(" + config.textPrimitives.bareTiddlerLetter + "*)@(" + config.textPrimitives.spaceName + ")", ""); config.textPrimitives.tiddlyLinkSpacenameLinkRegExp = new RegExp("\\[\\[(.*?)(?:\\|(.*?))?\\]\\]@(" + config.textPrimitives.spaceName + ")", ""); TiddlyWiki.prototype.getTiddlerText = function(title, defaultText) { var ct = config.textPrimitives; var match = ct.spacenameLinkRegExp.exec(title); // foo@bar var match2 = ct.tiddlyLinkSpacenameLinkRegExp.exec(title); // [[foo]]@bar if(match || match2) { // console.log('inner: ', 'spacename: ', match, 'tiddlyLink: ', match2, 'place: '); var tidtitle, space; if(match[1] && match.length === 3) { tidtitle = match[1]; space = match[2]; } else if(match2 && match2.length === 4) { tidtitle = match2[1]; space = match2[3]; } var newtitle = tidtitle + "@" + space; if(tidtitle && space) { title = newtitle; } if(tidtitle && space && !store.getTiddler(newtitle)) { var tiddler = new Tiddler(title); // get the tiddler, where the macro is rendered. //XXX will need more testing var el = story.findContainingTiddler(place); var refreshTitle = (el) ? el.getAttribute('tiddler') : null; tiddler.text = "//retrieving from server//"; tiddler.fields.doNotSave = "true"; tiddler.tags = ["excludeLists", "excludeSearch", "excludeMissing"]; merge(tiddler.fields, config.defaultCustomFields); tiddler.fields["server.bag"] = space + "_public"; tiddler = store.addTiddler(tiddler); ajaxReq({ url: "/bags/" + space + "_public/tiddlers/" + tidtitle, dataType: "json", success: function(tid) { var tiddler = store.getTiddler(title); tiddler.text = tid.text; store.addTiddler(tiddler); // store.notify(title,true); story.refreshTiddler(refreshTitle,null,true); // story.refreshAllTiddlers(); // hacky but above link doesn't always seem to work! }, error: function() { var tiddler = store.getTiddler(title); tiddler.text = "//error retrieving tiddler {{{" + title + "}}} from space @" + space + "//"; store.addTiddler(tiddler); // store.notify(title,true); story.refreshTiddler(refreshTitle,null,true); // story.refreshAllTiddlers(); // hacky but above link doesn't always seem to work! } }); } } return _tidtext.apply(this, [title, defaultText]); } })(); //}}}
/*** |''Name''|g.raphael| |''Version''|0.4.1| |''Requires''|raphaeljs| |''Source''|http://github.com/DmitryBaranovskiy/g.raphael| !Usage !Code ***/ /* * g.Raphael 0.4.1 - Charting library, based on Raphaël * * Copyright (c) 2009 Dmitry Baranovskiy (http://g.raphaeljs.com) * Licensed under the MIT (http://www.opensource.org/licenses/mit-license.php) license. */ (function(){var a=Math.max,c=Math.min;Raphael.fn.g=Raphael.fn.g||{};Raphael.fn.g.markers={disc:"disc",o:"disc",flower:"flower",f:"flower",diamond:"diamond",d:"diamond",square:"square",s:"square",triangle:"triangle",t:"triangle",star:"star","*":"star",cross:"cross",x:"cross",plus:"plus","+":"plus",arrow:"arrow","->":"arrow"};Raphael.fn.g.shim={stroke:"none",fill:"#000","fill-opacity":0};Raphael.fn.g.txtattr={font:"12px Arial, sans-serif"};Raphael.fn.g.colors=[];var e=[0.6,0.2,0.05,0.1333,0.75,0];for(var b=0;b<10;b++){if(b<e.length){Raphael.fn.g.colors.push("hsb("+e[b]+", .75, .75)");}else{Raphael.fn.g.colors.push("hsb("+e[b-e.length]+", 1, .5)");}}Raphael.fn.g.text=function(f,h,g){return this.text(f,h,g).attr(this.g.txtattr);};Raphael.fn.g.labelise=function(f,h,g){if(f){return(f+"").replace(/(##+(?:\.#+)?)|(%%+(?:\.%+)?)/g,function(i,k,j){if(k){return(+h).toFixed(k.replace(/^#+\.?/g,"").length);}if(j){return(h*100/g).toFixed(j.replace(/^%+\.?/g,"").length)+"%";}});}else{return(+h).toFixed(0);}};Raphael.fn.g.finger=function(l,k,g,m,h,i,j){if((h&&!m)||(!h&&!g)){return j?"":this.path();}i={square:"square",sharp:"sharp",soft:"soft"}[i]||"round";var o;m=Math.round(m);g=Math.round(g);l=Math.round(l);k=Math.round(k);switch(i){case"round":if(!h){var f=~~(m/2);if(g<f){f=g;o=["M",l+0.5,k+0.5-~~(m/2),"l",0,0,"a",f,~~(m/2),0,0,1,0,m,"l",0,0,"z"];}else{o=["M",l+0.5,k+0.5-f,"l",g-f,0,"a",f,f,0,1,1,0,m,"l",f-g,0,"z"];}}else{f=~~(g/2);if(m<f){f=m;o=["M",l-~~(g/2),k,"l",0,0,"a",~~(g/2),f,0,0,1,g,0,"l",0,0,"z"];}else{o=["M",l-f,k,"l",0,f-m,"a",f,f,0,1,1,g,0,"l",0,m-f,"z"];}}break;case"sharp":if(!h){var n=~~(m/2);o=["M",l,k+n,"l",0,-m,a(g-n,0),0,c(n,g),n,-c(n,g),n+(n*2<m),"z"];}else{n=~~(g/2);o=["M",l+n,k,"l",-g,0,0,-a(m-n,0),n,-c(n,m),n,c(n,m),n,"z"];}break;case"square":if(!h){o=["M",l,k+~~(m/2),"l",0,-m,g,0,0,m,"z"];}else{o=["M",l+~~(g/2),k,"l",1-g,0,0,-m,g-1,0,"z"];}break;case"soft":if(!h){f=c(g,Math.round(m/5));o=["M",l+0.5,k+0.5-~~(m/2),"l",g-f,0,"a",f,f,0,0,1,f,f,"l",0,m-f*2,"a",f,f,0,0,1,-f,f,"l",f-g,0,"z"];}else{f=c(Math.round(g/5),m);o=["M",l-~~(g/2),k,"l",0,f-m,"a",f,f,0,0,1,f,-f,"l",g-2*f,0,"a",f,f,0,0,1,f,f,"l",0,m-f,"z"];}}if(j){return o.join(",");}else{return this.path(o);}};Raphael.fn.g.disc=function(f,h,g){return this.circle(f,h,g);};Raphael.fn.g.line=function(f,h,g){return this.rect(f-g,h-g/5,2*g,2*g/5);};Raphael.fn.g.square=function(f,h,g){g=g*0.7;return this.rect(f-g,h-g,2*g,2*g);};Raphael.fn.g.triangle=function(f,h,g){g*=1.75;return this.path("M".concat(f,",",h,"m0-",g*0.58,"l",g*0.5,",",g*0.87,"-",g,",0z"));};Raphael.fn.g.diamond=function(f,h,g){return this.path(["M",f,h-g,"l",g,g,-g,g,-g,-g,g,-g,"z"]);};Raphael.fn.g.flower=function(j,h,f,g){f=f*1.25;var o=f,m=o*0.5;g=+g<3||!g?5:g;var p=["M",j,h+m,"Q"],l;for(var k=1;k<g*2+1;k++){l=k%2?o:m;p=p.concat([+(j+l*Math.sin(k*Math.PI/g)).toFixed(3),+(h+l*Math.cos(k*Math.PI/g)).toFixed(3)]);}p.push("z");return this.path(p.join(","));};Raphael.fn.g.star=function(f,n,m,h,g){h=h||m*0.382;g=g||5;var l=["M",f,n+h,"L"],k;for(var j=1;j<g*2;j++){k=j%2?m:h;l=l.concat([(f+k*Math.sin(j*Math.PI/g)),(n+k*Math.cos(j*Math.PI/g))]);}l.push("z");return this.path(l.join(","));};Raphael.fn.g.cross=function(f,h,g){g=g/2.5;return this.path("M".concat(f-g,",",h,"l",[-g,-g,g,-g,g,g,g,-g,g,g,-g,g,g,g,-g,g,-g,-g,-g,g,-g,-g,"z"]));};Raphael.fn.g.plus=function(f,h,g){g=g/2;return this.path("M".concat(f-g/2,",",h-g/2,"l",[0,-g,g,0,0,g,g,0,0,g,-g,0,0,g,-g,0,0,-g,-g,0,0,-g,"z"]));};Raphael.fn.g.arrow=function(f,h,g){return this.path("M".concat(f-g*0.7,",",h-g*0.4,"l",[g*0.6,0,0,-g*0.4,g,g*0.8,-g,g*0.8,0,-g*0.4,-g*0.6,0],"z"));};Raphael.fn.g.tag=function(f,m,l,k,i){k=k||0;i=i==null?5:i;l=l==null?"$9.99":l;var h=0.5522*i,g=this.set(),j=3;g.push(this.path().attr({fill:"#000",stroke:"#000"}));g.push(this.text(f,m,l).attr(this.g.txtattr).attr({fill:"#fff","font-family":"Helvetica, Arial"}));g.update=function(){this.rotate(0,f,m);var o=this[1].getBBox();if(o.height>=i*2){this[0].attr({path:["M",f,m+i,"a",i,i,0,1,1,0,-i*2,i,i,0,1,1,0,i*2,"m",0,-i*2-j,"a",i+j,i+j,0,1,0,0,(i+j)*2,"L",f+i+j,m+o.height/2+j,"l",o.width+2*j,0,0,-o.height-2*j,-o.width-2*j,0,"L",f,m-i-j].join(",")});}else{var n=Math.sqrt(Math.pow(i+j,2)-Math.pow(o.height/2+j,2));this[0].attr({path:["M",f,m+i,"c",-h,0,-i,h-i,-i,-i,0,-h,i-h,-i,i,-i,h,0,i,i-h,i,i,0,h,h-i,i,-i,i,"M",f+n,m-o.height/2-j,"a",i+j,i+j,0,1,0,0,o.height+2*j,"l",i+j-n+o.width+2*j,0,0,-o.height-2*j,"L",f+n,m-o.height/2-j].join(",")});}this[1].attr({x:f+i+j+o.width/2,y:m});k=(360-k)%360;this.rotate(k,f,m);k>90&&k<270&&this[1].attr({x:f-i-j-o.width/2,y:m,rotation:[180+k,f,m]});return this;};g.update();return g;};Raphael.fn.g.popupit=function(l,k,m,g,t){g=g==null?2:g;t=t||5;l=Math.round(l);k=Math.round(k);var j=m.getBBox(),n=Math.round(j.width/2),i=Math.round(j.height/2),s=[0,n+t*2,0,-n-t*2],o=[-i*2-t*3,-i-t,0,-i-t],f=["M",l-s[g],k-o[g],"l",-t,(g==2)*-t,-a(n-t,0),0,"a",t,t,0,0,1,-t,-t,"l",0,-a(i-t,0),(g==3)*-t,-t,(g==3)*t,-t,0,-a(i-t,0),"a",t,t,0,0,1,t,-t,"l",a(n-t,0),0,t,!g*-t,t,!g*t,a(n-t,0),0,"a",t,t,0,0,1,t,t,"l",0,a(i-t,0),(g==1)*t,t,(g==1)*-t,t,0,a(i-t,0),"a",t,t,0,0,1,-t,t,"l",-a(n-t,0),0,"z"].join(","),q=[{x:l,y:k+t*2+i},{x:l-t*2-n,y:k},{x:l,y:k-t*2-i},{x:l+t*2+n,y:k}][g];m.translate(q.x-n-j.x,q.y-i-j.y);return this.path(f).attr({fill:"#000",stroke:"none"}).insertBefore(m.node?m:m[0]);};Raphael.fn.g.popup=function(f,l,k,g,i){g=g==null?2:g>3?3:g;i=i||5;k=k||"$9.99";var h=this.set(),j=3;h.push(this.path().attr({fill:"#000",stroke:"#000"}));h.push(this.text(f,l,k).attr(this.g.txtattr).attr({fill:"#fff","font-family":"Helvetica, Arial"}));h.update=function(o,n,q){o=o||f;n=n||l;var t=this[1].getBBox(),u=t.width/2,s=t.height/2,y=[0,u+i*2,0,-u-i*2],v=[-s*2-i*3,-s-i,0,-s-i],m=["M",o-y[g],n-v[g],"l",-i,(g==2)*-i,-a(u-i,0),0,"a",i,i,0,0,1,-i,-i,"l",0,-a(s-i,0),(g==3)*-i,-i,(g==3)*i,-i,0,-a(s-i,0),"a",i,i,0,0,1,i,-i,"l",a(u-i,0),0,i,!g*-i,i,!g*i,a(u-i,0),0,"a",i,i,0,0,1,i,i,"l",0,a(s-i,0),(g==1)*i,i,(g==1)*-i,i,0,a(s-i,0),"a",i,i,0,0,1,-i,i,"l",-a(u-i,0),0,"z"].join(","),x=[{x:o,y:n+i*2+s},{x:o-i*2-u,y:n},{x:o,y:n-i*2-s},{x:o+i*2+u,y:n}][g];x.path=m;if(q){this.animate(x,500,">");}else{this.attr(x);}return this;};return h.update(f,l);};Raphael.fn.g.flag=function(f,k,j,i){i=i||0;j=j||"$9.99";var g=this.set(),h=3;g.push(this.path().attr({fill:"#000",stroke:"#000"}));g.push(this.text(f,k,j).attr(this.g.txtattr).attr({fill:"#fff","font-family":"Helvetica, Arial"}));g.update=function(l,o){this.rotate(0,l,o);var n=this[1].getBBox(),m=n.height/2;this[0].attr({path:["M",l,o,"l",m+h,-m-h,n.width+2*h,0,0,n.height+2*h,-n.width-2*h,0,"z"].join(",")});this[1].attr({x:l+m+h+n.width/2,y:o});i=360-i;this.rotate(i,l,o);i>90&&i<270&&this[1].attr({x:l-r-h-n.width/2,y:o,rotation:[180+i,l,o]});return this;};return g.update(f,k);};Raphael.fn.g.label=function(f,i,h){var g=this.set();g.push(this.rect(f,i,10,10).attr({stroke:"none",fill:"#000"}));g.push(this.text(f,i,h).attr(this.g.txtattr).attr({fill:"#fff"}));g.update=function(){var k=this[1].getBBox(),j=c(k.width+10,k.height+10)/2;this[0].attr({x:k.x-j/2,y:k.y-j/2,width:k.width+j,height:k.height+j,r:j});};g.update();return g;};Raphael.fn.g.labelit=function(h){var g=h.getBBox(),f=c(20,g.width+10,g.height+10)/2;return this.rect(g.x-f/2,g.y-f/2,g.width+f,g.height+f,f).attr({stroke:"none",fill:"#000"}).insertBefore(h.node?h:h[0]);};Raphael.fn.g.drop=function(f,k,j,h,i){h=h||30;i=i||0;var g=this.set();g.push(this.path(["M",f,k,"l",h,0,"A",h*0.4,h*0.4,0,1,0,f+h*0.7,k-h*0.7,"z"]).attr({fill:"#000",stroke:"none",rotation:[22.5-i,f,k]}));i=(i+90)*Math.PI/180;g.push(this.text(f+h*Math.sin(i),k+h*Math.cos(i),j).attr(this.g.txtattr).attr({"font-size":h*12/30,fill:"#fff"}));g.drop=g[0];g.text=g[1];return g;};Raphael.fn.g.blob=function(g,m,l,k,i){k=(+k+1?k:45)+90;i=i||12;var f=Math.PI/180,j=i*12/12;var h=this.set();h.push(this.path().attr({fill:"#000",stroke:"none"}));h.push(this.text(g+i*Math.sin((k)*f),m+i*Math.cos((k)*f)-j/2,l).attr(this.g.txtattr).attr({"font-size":j,fill:"#fff"}));h.update=function(t,s,y){t=t||g;s=s||m;var A=this[1].getBBox(),D=a(A.width+j,i*25/12),z=a(A.height+j,i*25/12),o=t+i*Math.sin((k-22.5)*f),B=s+i*Math.cos((k-22.5)*f),q=t+i*Math.sin((k+22.5)*f),C=s+i*Math.cos((k+22.5)*f),F=(q-o)/2,E=(C-B)/2,p=D/2,n=z/2,x=-Math.sqrt(Math.abs(p*p*n*n-p*p*E*E-n*n*F*F)/(p*p*E*E+n*n*F*F)),v=x*p*E/n+(q+o)/2,u=x*-n*F/p+(C+B)/2;if(y){this.animate({x:v,y:u,path:["M",g,m,"L",q,C,"A",p,n,0,1,1,o,B,"z"].join(",")},500,">");}else{this.attr({x:v,y:u,path:["M",g,m,"L",q,C,"A",p,n,0,1,1,o,B,"z"].join(",")});}return this;};h.update(g,m);return h;};Raphael.fn.g.colorValue=function(i,h,g,f){return"hsb("+[c((1-i/h)*0.4,1),g||0.75,f||0.75]+")";};Raphael.fn.g.snapEnds=function(n,o,m){var k=n,p=o;if(k==p){return{from:k,to:p,power:0};}function q(f){return Math.abs(f-0.5)<0.25?~~(f)+0.5:Math.round(f);}var l=(p-k)/m,g=~~(l),j=g,h=0;if(g){while(j){h--;j=~~(l*Math.pow(10,h))/Math.pow(10,h);}h++;}else{while(!g){h=h||1;g=~~(l*Math.pow(10,h))/Math.pow(10,h);h++;}h&&h--;}p=q(o*Math.pow(10,h))/Math.pow(10,h);if(p<o){p=q((o+0.5)*Math.pow(10,h))/Math.pow(10,h);}k=q((n-(h>0?0:0.5))*Math.pow(10,h))/Math.pow(10,h);return{from:k,to:p,power:h};};Raphael.fn.g.axis=function(v,u,o,G,l,J,m,L,n,g){g=g==null?2:g;n=n||"t";J=J||10;var F=n=="|"||n==" "?["M",v+0.5,u,"l",0,0.001]:m==1||m==3?["M",v+0.5,u,"l",0,-o]:["M",v,u+0.5,"l",o,0],z=this.g.snapEnds(G,l,J),K=z.from,B=z.to,I=z.power,H=0,C=this.set();d=(B-K)/J;var s=K,q=I>0?I:0;w=o/J;if(+m==1||+m==3){var h=u,A=(m-1?1:-1)*(g+3+!!(m-1));while(h>=u-o){n!="-"&&n!=" "&&(F=F.concat(["M",v-(n=="+"||n=="|"?g:!(m-1)*g*2),h+0.5,"l",g*2+1,0]));C.push(this.text(v+A,h,(L&&L[H++])||(Math.round(s)==s?s:+s.toFixed(q))).attr(this.g.txtattr).attr({"text-anchor":m-1?"start":"end"}));s+=d;h-=w;}if(Math.round(h+w-(u-o))){n!="-"&&n!=" "&&(F=F.concat(["M",v-(n=="+"||n=="|"?g:!(m-1)*g*2),u-o+0.5,"l",g*2+1,0]));C.push(this.text(v+A,u-o,(L&&L[H])||(Math.round(s)==s?s:+s.toFixed(q))).attr(this.g.txtattr).attr({"text-anchor":m-1?"start":"end"}));}}else{s=K;q=(I>0)*I;A=(m?-1:1)*(g+9+!m);var k=v,w=o/J,D=0,E=0;while(k<=v+o){n!="-"&&n!=" "&&(F=F.concat(["M",k+0.5,u-(n=="+"?g:!!m*g*2),"l",0,g*2+1]));C.push(D=this.text(k,u+A,(L&&L[H++])||(Math.round(s)==s?s:+s.toFixed(q))).attr(this.g.txtattr));var p=D.getBBox();if(E>=p.x-5){C.pop(C.length-1).remove();}else{E=p.x+p.width;}s+=d;k+=w;}if(Math.round(k-w-v-o)){n!="-"&&n!=" "&&(F=F.concat(["M",v+o+0.5,u-(n=="+"?g:!!m*g*2),"l",0,g*2+1]));C.push(this.text(v+o,u+A,(L&&L[H])||(Math.round(s)==s?s:+s.toFixed(q))).attr(this.g.txtattr));}}var M=this.path(F);M.text=C;M.all=this.set([M,C]);M.remove=function(){this.text.remove();this.constructor.prototype.remove.call(this);};return M;};Raphael.el.lighter=function(g){g=g||2;var f=[this.attrs.fill,this.attrs.stroke];this.fs=this.fs||[f[0],f[1]];f[0]=Raphael.rgb2hsb(Raphael.getRGB(f[0]).hex);f[1]=Raphael.rgb2hsb(Raphael.getRGB(f[1]).hex);f[0].b=c(f[0].b*g,1);f[0].s=f[0].s/g;f[1].b=c(f[1].b*g,1);f[1].s=f[1].s/g;this.attr({fill:"hsb("+[f[0].h,f[0].s,f[0].b]+")",stroke:"hsb("+[f[1].h,f[1].s,f[1].b]+")"});};Raphael.el.darker=function(g){g=g||2;var f=[this.attrs.fill,this.attrs.stroke];this.fs=this.fs||[f[0],f[1]];f[0]=Raphael.rgb2hsb(Raphael.getRGB(f[0]).hex);f[1]=Raphael.rgb2hsb(Raphael.getRGB(f[1]).hex);f[0].s=c(f[0].s*g,1);f[0].b=f[0].b/g;f[1].s=c(f[1].s*g,1);f[1].b=f[1].b/g;this.attr({fill:"hsb("+[f[0].h,f[0].s,f[0].b]+")",stroke:"hsb("+[f[1].h,f[1].s,f[1].b]+")"});};Raphael.el.original=function(){if(this.fs){this.attr({fill:this.fs[0],stroke:this.fs[1]});delete this.fs;}};})();
@pop @popnote @scrapbook
Este parece el más obvio de todos: los estratos que están por encima son más modernos que los que están por debajo. | [img(400px+,)[http://e-ducativa.catedu.es/44700165/aula/archivos/repositorio//750/990/html/estrato_conceptos2.jpg]] | [img(400px+,)[http://static.informe21.com/cdn/farfuture/3xywsLV5gDhewHfAkkObr_D7x1TiCkgukW9YcC82MWE/mtime:1326282913/sites/default/files/imagecache/600x400/images/Doodle_2.jpg]]| | ¿Cuál es el más antiguo? | Así celebró Google el aniversario de Nicolás Steno | El problema es que en zonas que han sufrido grandes deformaciones los estratos han podido //darse la vuelta// y estar //boca abajo//, es decir, que no se cumple el principio de superposición. Entonces se dice que la serie están //invertida//. | [img(500px+,)[http://tectonicadeplacas.files.wordpress.com/2012/06/098_sinclinal-volcado-e-invertido-el-flanco-superior-del-sinclinal-estc3a1-en-posicic3b3n-invertida-hdtv-720.jpg?w=497&h=372]] | | En uno de los flancos de este gran pliegue la serie está invertida |
Para //construir// la más sencilla de las células, que llamaremos ''PROCARIOTA'', necesitamos: *Membrana celular: separa el interior del exterior. Sin ella no hay célula. *Citoplasma: el medio interno, en el que tienen lugar multitud de ''reacciones químicas'' que permiten mantener la célula con vida. En el citoplasma se produce el ATP (molécula energética) que necesita la célula para realizar todas sus funciones. *Biomoléculas: las más importantes de las cuales son **el ADN **las proteínas *Ribosomas: que se encargan de //fabricar// proteínas. Las células más complejas, que llamamos ''EUCARIOTAS'', tienen (además) muchos ''orgánulos membranosos'' como *[[retículo endoplasmático]] *[[aparato de Golgi]] *[[lisosomas]] *[[vacuolas]] *[[mitocondrias]] *[[cloroplastos]] *[[núcleo]]
/*{{{*/ // Start with one of the following themes: // "NeUIemTheme", "NeUIemTheme01", "NeUIemTheme02", "NeUIemTheme03", "NeUIemTheme04", // "TWDefaultTheme" config.options.txtTheme = "NeUIemTheme03" // A temporary hack, to activate transclusions again config.evaluateMacroParameters = "full"; // remove leading // at the lines below to aktivate left or right sidebar // config.options.chkShowRightSidebar = false; // false or true // config.options.chkShowLeftSidebar = false; // false or true /*}}}*/
$(".date input").each(function(i, el) { $(el).datepicker(); }); var space = window.location.hostname.split(".")[0]; function gatherResults() { var sections = {}; $("form input, form textarea").each(function(i, el) { var name = $(el).attr("name"); var val = $(el).val(); var use; var type = $(el).attr("type"); if(type === "checkbox" || type == "radio") { use = $(el).attr("checked"); } else { use = true; } if(name && val && use) { sections[name] = sections[name] || []; sections[name].push(val); } }); var str = []; for(var i in sections) { str.push("!" + i); str.push(sections[i].join("\n")); } return str.join("\n"); } var form = $("form")[0] $("<input type='submit' value='complete' />").appendTo(form); $("form").submit(function(ev) { ev.preventDefault(); function gen() { var num = parseInt(Math.random() * 99, 10); return num < 10 ? "0" + num : "" +num; } var title = gen() + gen() + gen() + gen() + gen() + gen(); var tiddler = new tiddlyweb.Tiddler(title, new tiddlyweb.Bag(space + "_archive", "/")); tiddler.text = gatherResults(); tiddler.tags = [ "question "]; tiddler.put(function() { $(form).hide(1000); $("<div />").text("Thank you").insertBefore(form) }, function() { alert("error occurred") }); });
<!--{{{--> <div macro='slideRevision'></div> [[NeUIemTheme##ViewTemplate]] <!--}}}-->
*Saco de dormir *Toalla (secado rápido mejor) *Chanclas *Mudas *Calzado cómodo *[[Impermeable|http://tiempoytemperatura.es/espana/zaragoza/aranda-de-moncayo.html#por-dias]] *Paraguas *Calzado de repuesto *Bolsa para la ropa *Linterna
<?xml version="1.0" encoding="UTF-8" standalone="no"?> <svg id="svg2" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns="http://www.w3.org/2000/svg" height="29pt" viewBox="13 43 29 29" width="29pt" version="1.0" xmlns:cc="http://creativecommons.org/ns#" xmlns:dc="http://purl.org/dc/elements/1.1/" onmousedown="if(jQuery) jQuery(document).trigger('cSmaller', {elem:this, comp:{animations:1}})" onmouseup="if(jQuery) jQuery(document).trigger('cResize', {elem:this, comp:{animations:1}})"> <defs id="defs6"> <linearGradient id="linearGradient001" y2="27.646" gradientUnits="userSpaceOnUse" x2="-45.8" y1="27.646" x1="-57.66"> <stop id="stop1" stop-color="#6BB546" offset="0"/> <stop id="stop2" stop-color="#B5DAA2" offset="0.66462"/> <stop id="stop3" stop-color="#6BB546" offset="1"/> </linearGradient></defs> <g id="icon" stroke-linecap="round" stroke-miterlimit="4"> <rect id="iconBG" style="stroke-dasharray:none;" fill-rule="evenodd" ry="4.1663" transform="matrix(0, -1, 1, 0, 0, 0)" height="25" width="25" stroke="#696969" stroke-linecap="round" stroke-miterlimit="4" y="15.167" x="-70.116" stroke-width="1.2" fill="none"/> <rect id="iconFG" stroke-width="0" fill-rule="evenodd" ry="2.3755" transform="matrix(0, -1, 1, 0, 0, 0)" width="22" stroke-miterlimit="4" y="16.646" x="-68.6" height="22" fill="url(#linearGradient001)" class="showOnHover" opacity="0"/> <g id="iconSymbol" stroke="#4d4d4d" stroke-miterlimit="4" fill="none"> <path id="path3640" stroke-linejoin="round" style="stroke-dasharray:none;" d="m33.165,50.126-10.258,9.3293-2.0113,4.3956,4.2474-2.1224,9.8299-9.5985-1.8075-2.004z" stroke-linecap="butt" stroke-width="1.60000002"/> <path id="path3642" stroke-linejoin="miter" style="stroke-dasharray:none;" d="m13.981,27.04,12.705,0" transform="matrix(0.8, 0, 0, 0.8, 13, 43)" stroke-linecap="round" stroke-width="2"/> </g> <rect id="overlay" opacity="0.01" ry="4.1663" style="stroke-dasharray:none;" fill-rule="evenodd" transform="matrix(0, -1, 1, 0, 0, 0)" height="25" width="25" stroke="#e6e6e6" stroke-linecap="round" stroke-miterlimit="4" y="15.167" x="-70.116" stroke-width="1.2" fill="#e6e6e6" onmouseover="if(jQuery) jQuery(document).trigger('cTglBg', {elem:this, comp:{animations:1}})" onmouseout="if(jQuery) jQuery(document).trigger('cTglBg', {elem:this, comp:{animations:1}})"/> </g> </svg>
Podemos definir ''célula'' como: *__unidad estructural__ de los seres vivos: es decir, la unidad necesaria para //fabricar// seres vivos. Utilizamos el término //estructural// para referirnos a //construcción//. Sin células no hay seres vivos lo mismo que sin fichas de Lego® no hay construcciones de Lego®...! La cuestión es ¿[[cómo son las células]]? *__unidad funcional__ de los seres vivos: es decir, que no son piezas como las de Lego®, que no hacen nada, sino que son unidades que //funcionan//, que hacen cosas. Si las células realizan sus funciones correctamente, el ser vivo vive; si no, lo normal es que el ser vivo muera. Las células, **se relacionan **se nutren **y se [[reproducen]] ***por lo tanto, ¡¡LAS CÉLULAS SON SERES VIVOS!! La parte de la Biología que se encarga del estudio de las células se llama ''Citología''
|Month|Altura| |1|14| |2|27| |3|25| |4|25| |5|253| |6|250| |7|249| |8|243| |9|270| |10|290| |11|320| |12|300|
<?xml version="1.0" encoding="UTF-8" standalone="no"?> <svg id="svg2" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns="http://www.w3.org/2000/svg" height="29pt" viewBox="13 43 29 29" width="29pt" version="1.0" xmlns:cc="http://creativecommons.org/ns#" xmlns:dc="http://purl.org/dc/elements/1.1/"> <metadata id="metadata14"> <rdf:RDF> <cc:Work rdf:about=""> <dc:format>image/svg+xml</dc:format> <dc:type rdf:resource="http://purl.org/dc/dcmitype/StillImage"/> <dc:title/> <dc:rights> <cc:Agent> <dc:title>http://creativecommons.org/licenses/by-nc-sa/3.0/at/</dc:title> </cc:Agent> </dc:rights> <dc:source>http://iconbuilder.tiddlyspace.com</dc:source> <dc:creator> <cc:Agent> <dc:title>Mario Pietsch</dc:title> </cc:Agent> </dc:creator> </cc:Work> </rdf:RDF> </metadata> <defs id="defs_bBgTrans"> <linearGradient id="linearGradient001" y2="27.646" gradientUnits="userSpaceOnUse" x2="-45.8" y1="27.646" x1="-57.66"> <stop id="stop1" stop-color="#6BB546" offset="0"/> <stop id="stop2" stop-color="#B5DAA2" offset="0.66462"/> <stop id="stop3" stop-color="#6BB546" offset="1"/> </linearGradient></defs> <g id="icon"> <rect id="iconBG" stroke="#696969" ry="4.1663" transform="matrix(0, -1, 1, 0, 0, 0)" height="25" width="25" y="15.167" x="-70.116" stroke-width="1.2" fill="none" class="showBG"/> <rect id="iconFG" stroke-width="0" fill-rule="evenodd" ry="2.3755" transform="matrix(0, -1, 1, 0, 0, 0)" width="22" y="16.646" x="-68.6" height="22" fill="url(#linearGradient001)" class="showFG"/> <g id="iconSymbol" stroke="#4d4d4d" fill="none" class="showSY"> <path stroke-linejoin="round" d="m31.517,48.69-12.734,12.078,7.0859-1.3033-1.8415,7.4961,13.207-11.835-5.7181-6.4354z" stroke-miterlimit="4" stroke-width="1.60000002"/> </g> <rect id="overlay" stroke="#696969" opacity="0" ry="4.1663" transform="matrix(0, -1, 1, 0, 0, 0)" height="25" width="25" y="15.167" x="-70.116" stroke-width="1.2" class="showOV"/> </g> </svg>
Etimológicamente {{{endo}}} significa {{{dentro, por dentro}}} y {{{geno}}} significa {{{formación, origen}}}; así que las {{{rocas endógenas}}} son las que se {{{forman por dentro}}}, es decir, las que se forman __por procesos que ocurren en el interior de nuestro planeta__. La profundidad puede variar mucho, desde pocos kilómetros hasta varias decenas de kilómetros. Es un error habitual decir que estas rocas se forman en el centro de la Tierra así que ten cuidado!![[*|2]]. Podemos diferenciar dos grandes grupos dentro de las rocas endógenas: **[[Rocas ígneas]] **[[Rocas metamórficas]]
|linkTable|k |width:400px; !by modified date |width:400px; !by date created | |vertical-align:top;padding-left:20px;<<timeline "modified">>|vertical-align:top;padding-left:20px;<<timeline "created">>|
<?xml version="1.0" encoding="UTF-8" standalone="no"?> <svg id="svg2" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns="http://www.w3.org/2000/svg" height="29pt" viewBox="13 43 29 29" width="29pt" version="1.0" xmlns:cc="http://creativecommons.org/ns#" xmlns:dc="http://purl.org/dc/elements/1.1/" class="smallOnActive"> <metadata id="metadata14"> <rdf:RDF> <cc:Work rdf:about=""> <dc:format>image/svg+xml</dc:format> <dc:type rdf:resource="http://purl.org/dc/dcmitype/StillImage"/> <dc:title/> <dc:rights> <cc:Agent> <dc:title>http://creativecommons.org/licenses/by-nc-sa/3.0/at/</dc:title> </cc:Agent> </dc:rights> <dc:source>http://iconbuilder.tiddlyspace.com</dc:source> <dc:creator> <cc:Agent> <dc:title>Mario Pietsch</dc:title> </cc:Agent> </dc:creator> </cc:Work> </rdf:RDF> </metadata> <defs id="defs_bBgTrans"> <linearGradient id="linearGradient001" y2="27.646" gradientUnits="userSpaceOnUse" x2="-45.8" y1="27.646" x1="-57.66"> <stop id="stop1" stop-color="#6BB546" offset="0"/> <stop id="stop2" stop-color="#B5DAA2" offset="0.66462"/> <stop id="stop3" stop-color="#6BB546" offset="1"/> </linearGradient></defs> <g id="icon"> <rect id="iconBG" stroke="#696969" ry="4.1663" transform="matrix(0, -1, 1, 0, 0, 0)" height="25" width="25" y="15.167" x="-70.116" stroke-width="1.2" fill="none" class="showBG"/> <rect id="iconFG" stroke-width="0" fill-rule="evenodd" ry="2.3755" transform="matrix(0, -1, 1, 0, 0, 0)" width="22" y="16.646" x="-68.6" height="22" fill="url(#linearGradient001)" class="showFG"/> <g id="iconSymbol" stroke="#4d4d4d" stroke-linecap="round" stroke-dasharray="none" stroke-miterlimit="4" stroke-width="1.60000002" fill="none" class="showSY"> <path stroke-linejoin="round" d="m21.763,50.448,8.4828-0.000001-5.7033,7.7568,4.2356-1.4238-0.71852,4.4997,5.472-7.3053,0,11.126-11.769,0z"/> <path stroke-linejoin="miter" d="m30.667,50.506,2.8355,2.9981"/> </g> <rect id="overlay" stroke="#696969" opacity="0" ry="4.1663" transform="matrix(0, -1, 1, 0, 0, 0)" height="25" width="25" y="15.167" x="-70.116" stroke-width="1.2" class="showOV"/> </g> </svg>
El centro de la Tierra está a más de 6000 km de profundidad. Los geólogos no saben casi nada de lo que ocurre por debajo de los 20 km porque los pozos que se han perforado nunca han llegado tan profundo. No tenemos muestras en nuestros laboratorios cogidas a esas profundidades, sólo tenemos datos obtenidos gracias a las ondas sísmicas. Por eso decimos que nuestro conocimiento del interior del planeta es sobre todo //indirecto//.
/*** |Name|InlineJavascriptPluginInfo| |Source|http://www.TiddlyTools.com/#InlineJavascriptPlugin| |Documentation|http://www.TiddlyTools.com/#InlineJavascriptPluginInfo| |Version|1.9.6| |Author|Eric Shulman| |License|http://www.TiddlyTools.com/#LegalStatements| |~CoreVersion|2.1| |Type|documentation| |Description|Documentation for InlineJavascriptPlugin| ''Call directly into TW core utility routines, define new functions, calculate values, add dynamically-generated TiddlyWiki-formatted output'' into tiddler content, or perform any other programmatic actions each time the tiddler is rendered. !!!!!Usage <<< This plugin adds wiki syntax for surrounding tiddler content with {{{<script>}}} and {{{</script>}}} markers, so that it can be recognized as embedded javascript code. When a tiddler is rendered, the plugin automatically invokes any embedded scripts, which can be used to construct and return dynamically-generated output that is inserted into the tiddler content. {{{ <script type="..." src="..." label="..." title="..." key="..." show> /* javascript code goes here... */ </script> }}} All parameters are //optional//. When the ''show'' keyword is used, the plugin will also include the script source code in the output that it displays in the tiddler. This is helpful when creating examples for documentation purposes (such as used in this tiddler!) __''Deferred execution from an 'onClick' link''__ <script label="click here" title="mouseover tooltip text" key="X" show> /* javascript code goes here... */ alert('you clicked on the link!'); </script> By including a {{{label="..."}}} parameter in the initial {{{<script>}}} marker, the plugin will create a link to an 'onclick' script that will only be executed when that specific link is clicked, rather than running the script each time the tiddler is rendered. You may also include a {{{title="..."}}} parameter to specify the 'tooltip' text that will appear whenever the mouse is moved over the onClick link text, and a {{{key="X"}}} parameter to specify an //access key// (which must be a //single// letter or numeric digit only). __''Loading scripts from external source files''__ <script src="URL" show> /* optional javascript code goes here... */ </script>You can also load javascript directly from an external source URL, by including a src="..." parameter in the initial {{{<script>}}} marker (e.g., {{{<script src="demo.js"></script>}}}). This is particularly useful when incorporating third-party javascript libraries for use in custom extensions and plugins. The 'foreign' javascript code remains isolated in a separate file that can be easily replaced whenever an updated library file becomes available. In addition to loading the javascript from the external file, you can also use this feature to invoke javascript code contained within the {{{<script>...</script>}}} markers. This code is invoked //after// the external script file has been processed, and can make immediate use of the functions and/or global variables defined by the external script file. >Note: To ensure that your javascript functions are always available when needed, you should load the libraries from a tiddler that is rendered as soon as your TiddlyWiki document is opened, such as MainMenu. For example: put your {{{<script src="..."></script>}}} syntax into a separate 'library' tiddler (e.g., LoadScripts), and then add {{{<<tiddler LoadScripts>>}}} to MainMenu so that the library is loaded before any other tiddlers that rely upon the functions it defines. > >Normally, loading external javascript in this way does not produce any direct output, and should not have any impact on the appearance of your MainMenu. However, if your LoadScripts tiddler contains notes or other visible content, you can suppress this output by using 'inline CSS' in the MainMenu, like this: {{{@@display:none;<<tiddler LoadScripts>>@@}}} <<< !!!!!Creating dynamic tiddler content and accessing the ~TiddlyWiki DOM <<< An important difference between TiddlyWiki inline scripting and conventional embedded javascript techniques for web pages is the method used to produce output that is dynamically inserted into the document: in a typical web document, you use the {{{document.write()}}} (or {{{document.writeln()}}}) function to output text sequences (often containing HTML tags) that are then rendered when the entire document is first loaded into the browser window. However, in a ~TiddlyWiki document, tiddlers (and other DOM elements) are created, deleted, and rendered "on-the-fly", so writing directly to the global 'document' object does not produce the results you want (i.e., replacing the embedded script within the tiddler content), and instead will //completely replace the entire ~TiddlyWiki document in your browser window (which is clearly not a good thing!)//. In order to allow scripts to use {{{document.write()}}}, the plugin automatically converts and buffers all HTML output so it can be safely inserted into your tiddler content, immediately following the script. ''Note that {{{document.write()}}} can only be used to output "pure HTML" syntax. To produce //wiki-formatted// output, your script should instead return a text value containing the desired wiki-syntax content'', which will then be automatically rendered immediately following the script. If returning a text value is not sufficient for your needs, the plugin also provides an automatically-defined variable, 'place', that gives the script code ''direct access to the //containing DOM element//'' into which the tiddler output is being rendered. You can use this variable to ''perform direct DOM manipulations'' that can, for example: * generate wiki-formatted output using {{{wikify("...content...",place)}}} * vary the script's actions based upon the DOM element in which it is embedded * access 'tiddler-relative' DOM information using {{{story.findContainingTiddler(place)}}} Note: ''When using an 'onclick' script, the 'place' element actually refers to the onclick //link text// itself, instead of the containing DOM element.'' This permits you to directly reference or modify the link text to reflect any 'stateful' conditions that might set by the script. To refer to the containing DOM element from within an 'onclick' script, you can use "place.parentNode" instead. <<< !!!!!Instant "bookmarklets" <<< You can also use an 'onclick' link to define a "bookmarklet": a small piece of javascript that can be ''invoked directly from the browser without having to be defined within the current document.'' This allows you to create 'stand-alone' commands that can be applied to virtually ANY TiddlyWiki document... even remotely-hosted documents that have been written by others!! To create a bookmarklet, simply define an 'onclick' script and then grab the resulting link text and drag-and-drop it onto your browser's toolbar (or right-click and use the 'bookmark this link' command to add it to the browser's menu). Notes: *When writing scripts intended for use as bookmarklets, due to the ~URI-encoding required by the browser, ''you cannot not use ANY double-quotes (") within the bookmarklet script code.'' *All comments embedded in the bookmarklet script must ''use the fully-delimited {{{/* ... */}}} comment syntax,'' rather than the shorter {{{//}}} comment syntax. *Most importantly, because bookmarklets are invoked directly from the browser interface and are not embedded within the TiddlyWiki document, there is NO containing 'place' DOM element surrounding the script. As a result, ''you cannot use a bookmarklet to generate dynamic output in your document,'' and using {{{document.write()}}} or returning wiki-syntax text or making reference to the 'place' DOM element will halt the script and report a "Reference Error" when that bookmarklet is invoked. Please see [[InstantBookmarklets]] for many examples of 'onclick' scripts that can also be used as bookmarklets. <<< !!!!!Special reserved function name <<< The plugin 'wraps' all inline javascript code inside a function, {{{_out()}}}, so that any return value you provide can be correctly handled by the plugin and inserted into the tiddler. To avoid unpredictable results (and possibly fatal execution errors), this function should never be redefined or called from ''within'' your script code. <<< !!!!!$(...) 'shorthand' function <<< As described by Dustin Diaz [[here|http://www.dustindiaz.com/top-ten-javascript/]], the plugin defines a 'shorthand' function that allows you to write: {{{ $(id) }}} in place of the normal standard javascript syntax: {{{ document.getElementById(id) }}} This function is provided merely as a convenience for javascript coders that may be familiar with this abbreviation, in order to allow them to save a few bytes when writing their own inline script code. <<< !!!!!Examples <<< simple dynamic output: ><script show> document.write("The current date/time is: "+(new Date())+"<br>"); return "link to current user: [["+config.options.txtUserName+"]]\n"; </script> dynamic output using 'place' to get size information for current tiddler: ><script show> if (!window.story) window.story=window; var title=story.findContainingTiddler(place).getAttribute("tiddler"); var size=store.getTiddlerText(title).length; return title+" is using "+size+" bytes"; </script> dynamic output from an 'onclick' script, using {{{document.write()}}} and/or {{{return "..."}}} ><script label="click here" show> document.write("<br>The current date/time is: "+(new Date())+"<br>"); return "link to current user: [["+config.options.txtUserName+"]]\n"; </script> creating an 'onclick' button/link that accesses the link text AND the containing tiddler: ><script label="click here" title="clicking this link will show an 'alert' box" key="H" show> if (!window.story) window.story=window; var txt=place.firstChild.data; var tid=story.findContainingTiddler(place).getAttribute('tiddler'); alert('Hello World!\nlinktext='+txt+'\ntiddler='+tid); </script> dynamically setting onclick link text based on stateful information: >{{block{ {{{ <script label="click here"> /* toggle "txtSomething" value */ var on=(config.txtSomething=="ON"); place.innerHTML=on?"enable":"disable"; config.txtSomething=on?"OFF":"ON"; return "\nThe current value is: "+config.txtSomething; </script><script> /* initialize onclick link text based on current "txtSomething" value */ var on=(config.txtSomething=="ON"); place.lastChild.previousSibling.innerHTML=on?"disable":"enable"; </script> }}} <script label="click here"> /* toggle "txtSomething" value */ var on=(config.txtSomething=="ON"); place.innerHTML=on?"enable":"disable"; config.txtSomething=on?"OFF":"ON"; return "\nThe current value is: "+config.txtSomething; </script><script> /* initialize onclick link text based on current "txtSomething" value */ var on=(config.txtSomething=="ON"); place.lastChild.innerHTML=on?"enable":"disable"; </script> }}} loading a script from a source url: >http://www.TiddlyTools.com/demo.js contains: >>{{{function inlineJavascriptDemo() { alert('Hello from demo.js!!') } }}} >>{{{displayMessage('InlineJavascriptPlugin: demo.js has been loaded');}}} >note: When using this example on your local system, you will need to download the external script file from the above URL and install it into the same directory as your document. > ><script src="demo.js" show> return "inlineJavascriptDemo() function has been defined" </script> ><script label="click to invoke inlineJavascriptDemo()" key="D" show> inlineJavascriptDemo(); </script> <<< !!!!!Revisions <<< 2010.12.15 1.9.6 allow (but ignore) type="..." syntax 2009.04.11 1.9.5 pass current tiddler object into wrapper code so it can be referenced from within 'onclick' scripts 2009.02.26 1.9.4 in $(), handle leading '#' on ID for compatibility with JQuery syntax 2008.06.11 1.9.3 added $(...) function as 'shorthand' for document.getElementById() 2008.03.03 1.9.2 corrected fallback declaration of wikifyPlainText() (fixes Safari "parse error") 2008.02.23 1.9.1 in onclick function, use string instead of array for 'bufferedHTML' (fixes IE errors) 2008.02.21 1.9.0 output from 'onclick' scripts (return value or document.write() calls) are now buffered and rendered into into a span following the script. Also, added default 'return false' handling if no return value provided (prevents HREF from being triggered -- return TRUE to allow HREF to be processed). Thanks to Xavier Verges for suggestion and preliminary code. 2008.02.14 1.8.1 added backward-compatibility for use of wikifyPlainText() in TW2.1.3 and earlier 2008.01.08 [*.*.*] plugin size reduction: documentation moved to ...Info tiddler 2007.12.28 1.8.0 added support for key="X" syntax to specify custom access key definitions 2007.12.15 1.7.0 autogenerate URI encoded HREF on links for onclick scripts. Drag links to browser toolbar to create bookmarklets. IMPORTANT NOTE: place is NOT defined when scripts are used as bookmarklets. In addition, double-quotes will cause syntax errors. Thanks to PaulReiber for debugging and brainstorming. 2007.11.26 1.6.2 when converting "document.write()" function calls in inline code, allow whitespace between "write" and "(" so that "document.write ( foobar )" is properly converted. 2007.11.16 1.6.1 when rendering "onclick scripts", pass label text through wikifyPlainText() to parse any embedded wiki-syntax to enable use of HTML entities or even TW macros to generate dynamic label text. 2007.02.19 1.6.0 added support for title="..." to specify mouseover tooltip when using an onclick (label="...") script 2006.10.16 1.5.2 add newline before closing '}' in 'function out_' wrapper. Fixes error caused when last line of script is a comment. 2006.06.01 1.5.1 when calling wikify() on script return value, pass hightlightRegExp and tiddler params so macros that rely on these values can render properly 2006.04.19 1.5.0 added 'show' parameter to force display of javascript source code in tiddler output 2006.01.05 1.4.0 added support 'onclick' scripts. When label="..." param is present, a button/link is created using the indicated label text, and the script is only executed when the button/link is clicked. 'place' value is set to match the clicked button/link element. 2005.12.13 1.3.1 when catching eval error in IE, e.description contains the error text, instead of e.toString(). Fixed error reporting so IE shows the correct response text. Based on a suggestion by UdoBorkowski 2005.11.09 1.3.0 for 'inline' scripts (i.e., not scripts loaded with src="..."), automatically replace calls to 'document.write()' with 'place.innerHTML+=' so script output is directed into tiddler content. Based on a suggestion by BradleyMeck 2005.11.08 1.2.0 handle loading of javascript from an external URL via src="..." syntax 2005.11.08 1.1.0 pass 'place' param into scripts to provide direct DOM access 2005.11.08 1.0.0 initial release <<<
/*** |Name|InlineJavascriptPlugin| |Source|http://www.TiddlyTools.com/#InlineJavascriptPlugin| |Documentation|http://www.TiddlyTools.com/#InlineJavascriptPluginInfo| |Version|1.9.6| |Author|Eric Shulman| |License|http://www.TiddlyTools.com/#LegalStatements| |~CoreVersion|2.1| |Type|plugin| |Description|Insert Javascript executable code directly into your tiddler content.| ''Call directly into TW core utility routines, define new functions, calculate values, add dynamically-generated TiddlyWiki-formatted output'' into tiddler content, or perform any other programmatic actions each time the tiddler is rendered. !!!!!Documentation >see [[InlineJavascriptPluginInfo]] !!!!!Revisions <<< 2010.12.15 1.9.6 allow (but ignore) type="..." syntax |please see [[InlineJavascriptPluginInfo]] for additional revision details| 2005.11.08 1.0.0 initial release <<< !!!!!Code ***/ //{{{ version.extensions.InlineJavascriptPlugin= {major: 1, minor: 9, revision: 6, date: new Date(2010,12,15)}; config.formatters.push( { name: "inlineJavascript", match: "\\<script", lookahead: "\\<script(?: type=\\\"[^\\\"]*\\\")?(?: src=\\\"([^\\\"]*)\\\")?(?: label=\\\"([^\\\"]*)\\\")?(?: title=\\\"([^\\\"]*)\\\")?(?: key=\\\"([^\\\"]*)\\\")?( show)?\\>((?:.|\\n)*?)\\</script\\>", handler: 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 src=lookaheadMatch[1]; var label=lookaheadMatch[2]; var tip=lookaheadMatch[3]; var key=lookaheadMatch[4]; var show=lookaheadMatch[5]; var code=lookaheadMatch[6]; if (src) { // external script library var script = document.createElement("script"); script.src = src; document.body.appendChild(script); document.body.removeChild(script); } if (code) { // inline code if (show) // display source in tiddler wikify("{{{\n"+lookaheadMatch[0]+"\n}}}\n",w.output); if (label) { // create 'onclick' command link var link=createTiddlyElement(w.output,"a",null,"tiddlyLinkExisting",wikifyPlainText(label)); var fixup=code.replace(/document.write\s*\(/gi,'place.bufferedHTML+=('); link.code="function _out(place,tiddler){"+fixup+"\n};_out(this,this.tiddler);" link.tiddler=w.tiddler; link.onclick=function(){ this.bufferedHTML=""; try{ var r=eval(this.code); if(this.bufferedHTML.length || (typeof(r)==="string")&&r.length) var s=this.parentNode.insertBefore(document.createElement("span"),this.nextSibling); if(this.bufferedHTML.length) s.innerHTML=this.bufferedHTML; if((typeof(r)==="string")&&r.length) { wikify(r,s,null,this.tiddler); return false; } else return r!==undefined?r:false; } catch(e){alert(e.description||e.toString());return false;} }; link.setAttribute("title",tip||""); var URIcode='javascript:void(eval(decodeURIComponent(%22(function(){try{'; URIcode+=encodeURIComponent(encodeURIComponent(code.replace(/\n/g,' '))); URIcode+='}catch(e){alert(e.description||e.toString())}})()%22)))'; link.setAttribute("href",URIcode); link.style.cursor="pointer"; if (key) link.accessKey=key.substr(0,1); // single character only } else { // run script immediately var fixup=code.replace(/document.write\s*\(/gi,'place.innerHTML+=('); var c="function _out(place,tiddler){"+fixup+"\n};_out(w.output,w.tiddler);"; try { var out=eval(c); } catch(e) { out=e.description?e.description:e.toString(); } if (out && out.length) wikify(out,w.output,w.highlightRegExp,w.tiddler); } } w.nextMatch = lookaheadMatch.index + lookaheadMatch[0].length; } } } ) //}}} // // Backward-compatibility for TW2.1.x and earlier //{{{ if (typeof(wikifyPlainText)=="undefined") window.wikifyPlainText=function(text,limit,tiddler) { if(limit > 0) text = text.substr(0,limit); var wikifier = new Wikifier(text,formatter,null,tiddler); return wikifier.wikifyPlain(); } //}}} // // GLOBAL FUNCTION: $(...) -- 'shorthand' convenience syntax for document.getElementById() //{{{ if (typeof($)=='undefined') { function $(id) { return document.getElementById(id.replace(/^#/,'')); } } //}}}
Vamos a leer el Quijote y buscar en él pasajes en los que haga referencia a la Naturaleza. Dividiremos el trabajo de modo que cada alumnoa leerá un solo capítulo y escribirá lo que encuentre acerca de animales, plantas, geología, clima,... todo lo que tenga que ver con la Naturaleza. Aquí está el [[enlace a una versión online|http://www.elmundo.es/quijote/capitulo.html?cual=1]] de la obra maestra de Cervantes. ---- Nuestro wiki está organizado por capítulos... |CapítuloUno|CapítuloDos|CapítuloTres|CapítuloCuatro|...|CapítuloVeinte|
The popnote and poptiddler macros will be used extensively. The syntax for the popnote macro is: // //{{{<<popnote 'Text to display' 'Tiddler name' [open]>>}}} For example, // //{{{<<popnote 'This is the text to display' 'MainMenu' [open]>>}}} will produce this: <<popnote 'This is the text to display' 'MainMenu' [open]>> Leaving the "open" out of the syntax: // //{{{<<popnote 'This is the text to display' 'MainMenu'>>}}} will produce this: <<popnote 'This is the text to display' 'MainMenu'>> The syntax for the poptiddler macro is simpler: // //{{{<<popt MainMenu>>}}} For example, // // {{{<<popt MainMenu>>}}} will produce this: <<popt MainMenu>>
<<saveChanges>>
!!¿Qué son las galaxias? Las galaxias son agrupaciones de miles de millones de estrellas separadas por enormes distancias que se miden en años-luz. [img(300px+,)[http://upload.wikimedia.org/wikipedia/commons/thumb/0/0d/Andromeda_galaxy_2.jpg/800px-Andromeda_galaxy_2.jpg]] <html><img src="http://upload.wikimedia.org/wikipedia/commons/thumb/0/0d/Andromeda_galaxy_2.jpg/800px-Andromeda_galaxy_2.jpg" style="width: 500px; "/></html>
El dossier de mineralogía debe incluir los siguientes documentos: #Tabla con las rocas más abundantes en la corteza terrestre indicando sus minerales principales. #Tabla con las características cristalográficas de esos minerales que incluirá... ##Sistema cristalino ##Parámetros de red (longitud de aristas y ángulos) #Tabla con la clasificación química de los minerales colocando... ##los minerales del apartado 1 en la categoría que les corresponda. ##el mineral más característico de las categorías en las que no haya ninguno de la lista 1. #Tabla de composición química de los minerales del apartado 1 teniendo en cuenta que... ##Debe incluir ###Nombre del mineral ###Fórmula ###Tanto por ciento de cada componente (salvo de oxígeno). Cada componente irá en una columna diferente. El (OH) se considerará un componente más. ##Los silicatos deberán ordenarse de menor a mayor acidez
Un cromosoma no es más que un filamento de ADN superenrrollado. Como es más grueso, es posible verlo al microscopio óptico. En un cromosoma hay muchos [[genes]]. En la especie humana las células //normales// tienen 46 cromosomas, así que hay muchos miles de genes en total. Durante la //vida normal// de una célula los filamentos de ADN son sencillos, pero antes de la mitosis es necesario que cada filamento se duplique para que las dos células //hijas// tengan exactamente la misma información genética. Por eso, los cromosomas que vemos en la mitosis tienen la siguiente forma: |[img(350px+,)[http://www.profesorenlinea.cl/imagenciencias/Cromatidas_image002.jpg]]| |Cromosoma con dos ''cromátidas''. Las dos cromátidas tienen exactamente (salvo mutaciones) los mismos genes en las mismas posiciones. El punto en el que se unen las cromátidas se llama ''centrómero''.|c
|~ViewToolbar|editTiddler cloneTiddler newTagged +closeOthers closeTiddler > flickTiddler pushTiddler fields publishTiddlerRevision pubRev revisions syncing permalink references jump <| |~EditToolbar|+saveTiddler saveDraft savePublicTiddler -cancelTiddler deleteTiddler| |~RevisionToolbar|fields revert >|
<html> <div id="jxgbox" class="jxgbox" style="height:400px; width:600px;"></div> </html> <script> var toDate = function(datestr) { var a = datestr.split('.'); return new Date(a[2]*1,a[1]*1-1,a[0]*1); }; //OJO, AQUÍ HAY QUE PONER LOS CENTÍMETROS MULTIPLICADOS POR 100. POR EJEMPLO: 75.5cm QUEDA COMO 7500 //OJO, AQUÍ HAY QUE PONER LOS CENTÍMETROS MULTIPLICADOS POR 100. POR EJEMPLO: 75.5cm QUEDA COMO 7500 //OJO, AQUÍ HAY QUE PONER LOS CENTÍMETROS MULTIPLICADOS POR 100. POR EJEMPLO: 75.5cm QUEDA COMO 7500 //OJO, AQUÍ HAY QUE PONER LOS CENTÍMETROS MULTIPLICADOS POR 100. POR EJEMPLO: 75.5cm QUEDA COMO 7500 //OJO, AQUÍ HAY QUE PONER LOS CENTÍMETROS MULTIPLICADOS POR 100. POR EJEMPLO: 75.5cm QUEDA COMO 7500 //OJO, AQUÍ HAY QUE PONER LOS CENTÍMETROS MULTIPLICADOS POR 100. POR EJEMPLO: 75.5cm QUEDA COMO 7500 var table = [ ['1.11.2012',3250], //FECHA Y SOMBRA DEL PRIMER DÍA ['7.11.2012',2950], ['15.11.2012',3200], ['17.11.2012',3200], ['18.11.2012',3210], ['20.11.2012',3250], ['23.11.2012',3400], ['27.11.2012',3590], ['31.11.2012',3750] ]; //AQUÍ ACABA TU EDICIÓN //AQUÍ ACABA TU EDICIÓN //AQUÍ ACABA TU EDICIÓN //AQUÍ ACABA TU EDICIÓN var plotChartGoogleStyle = function(board, x, y, axisHeight) { var points = [], i, p; board.suspendUpdate(); points.push(board.createElement('point', [0, axisHeight], {visible:false, name:'', fixed:true, withLabel:false})); for (i=0;i<x.length;i++) { p = board.create('point', [x[i],y[i]], {strokeWidth:2, strokeColor:'#ffffff', highlightStrokeColor:'#0077cc', fillColor:'#0077cc', highlightFillColor:'#0077cc', style:6, name:'', fixed:true}); points.push(p); } points.push(board.create('point', [x[x.length-1],axisHeight], {visible:false, name:'', fixed:true})); // Filled area. We need two additional points [start,axisHeight] and [end,axisHeight] board.create('polygon',points, {withLines:false,fillColor:'#e6f2fa',withLabel:false}); // Curve: board.create('curve', [x,y], {strokeWidth:3, strokeColor:'#0077cc', highlightStrokeColor:'#0077cc'} ); board.unsuspendUpdate(); }; var i, x = [], y = [], birthday = toDate(table[0][0]); var brd = JXG.JSXGraph.initBoard('jxgbox', {boundingbox:[-1,7000,160,2500]}); brd.create('axis',[[0,2700],[1,2700]]); brd.create('axis',[[0,0],[0,1]]); brd.highlightInfobox = function(x,y,el) { var date = new Date(x*1000.0*60.0*60.0*24.0 + birthday.getTime()); this.infobox.setText('<span style="color:black;font-weight:bold">' + date.getDate() + '.' + (date.getMonth()+1) + '.' + date.getFullYear() + ', ' + y/100 + ' cm</span>'); this.infobox.rendNode.style.border = 'groove ' + el.visProp['strokecolor'] + ' 2px'; this.infobox.rendNode.style.padding = '5px'; this.infobox.rendNode.style.backgroundColor = 'white'; } // Transform the dates into days from birthday for (i=0;i<table.length;i++) { x[i] = Math.round(((toDate(table[i][0])).getTime()-birthday.getTime())/(1000.0*60.0*60.0*24.0)); y[i] = table[i][1]*1; } plotChartGoogleStyle(brd,x,y,2700); var reg = brd.create('functiongraph',[JXG.Math.Numerics.regressionPolynomial(3,x,y)],{strokeColor:'black',dash:3}); </script>
<<image tfgNewTiddler.svg>><<image tfgPermaview.svg>><<image tfgCloseAll.svg>> /%<<image tfgNewTiddler.svg>><<image tfgNewJournal.svg>><<image tfgSaveToWeb.svg>><<image tfgPermaview.svg>><<image tfgCloseAll.svg>> %/
iVBORw0KGgoAAAANSUhEUgAAABIAAAASCAYAAABWzo5XAAAABHNCSVQICAgIfAhkiAAAABl0RVh0U29mdHdhcmUAd3d3Lmlua3NjYXBlLm9yZ5vuPBoAAAFVSURBVDiNndSxS0JRFMfx75UwaFAcwiFokHQJdLEhW4SgxSULagskcRXhgf+C4IP+AAc3IRAnwcm0IJQUQTECJw2soRyEJAnsNj0oe+rTM97z48PlHO4VkJQsrhegDtSAopRKZTogDELTlQZiUipD7cC0AgIQAh6FUA9mQpGIm2Bwxwi2BVwLoVp1IYfDSi53TKl0hsezaQS70oW08vu3aTQuSKWOsNs35mEhIdT9uTMymQThsJtO5xJF8WI2z4wfGhq2xbJOMumn3Q4RCDj0IntLbc3ptJHPn1AonOJy2X63vEuvfzL5ptsdMhh8/jlfWwYpl5+JRm9otd6nW3VDUK83RFFuyWY7syK1udBo9EUi8YCq1hiPJ/OiRV1ISkkm80Q8fke//7Howmkplco/qNl8w+fLUK2+LgIA+kAMVn/9GnIupXIPq7/+NLCrIWB8/Qs/th/Sj3HEFRbWQQAAAABJRU5ErkJggg==
!Type textarea !Label When did you start liking chocolate? !Class text
iVBORw0KGgoAAAANSUhEUgAAADEAAAAwCAYAAAC4wJK5AAAAIGNIUk0AAHomAACAhAAA+gAAAIDoAAB1MAAA6mAAADqYAAAXcJy6UTwAAAAEZ0FNQQAAsY58+1GTAAAAAXNSR0IArs4c6QAAAAZiS0dEAP8A/wD/oL2nkwAAAAlwSFlzAAAOxAAADsQBlSsOGwAACvZJREFUeNrtWWtsW+UZfs6JnfgaO47jOInTXJrSNEkvdOUm2jEXJJC2VaUrEhpopNImfkzA/rAN+NNJY5vGj20a0n4wBIEixsaAafuxSUWG0a6wAqW59ZamaWInTmInduw4ji/n7P2+4+M48SVuWmA/eCXrnGMff+d9vvf9nvd5vwN8Zf8fJlzvAEc9Hs2yD/eJMu6SIXUIELbJQCv9VLXyFGEesjxBx//IsnRZEMXjv3jI/dmXDuLp1zy7IONRcu4BuqzdwIMvy5CPpQTxj79+2O39QkE884pnryzIv6HTPWt/q6iogNlsgkFXBV2VDkKFgEQiCUlKIxKNIRZbQiqVWvu3ZQjy61JS/NmvjrjHPlcQR//sMSWWpT/QXx6kS436vdFgQGNjPerr7NDrdBBFsegYsiwjEonCO+XHzGwAy8uJ3J8XaewfVbrw8lG3O3XDQTxzzHM7OfAXOnWp39lsVmxpa4XVatlQCkiShEn/DK5OeBGNLq4AFXC8Kik8cPSIO3TDQDx9zPMwTeFL6uzr9Tr0dG7lIG6EsehM+CZxceQK0ul0hgdwFZJw+NnvuT8uZ4yKMgBQCkHHrl2NTuze2QOj0XDj6JE8tlRXo6HegdBChFJsmX1tpek9dOeh3rdPvN03t2EQT73qOShAfk0F0NHeips62kvm/PWYVqtBU4MTi4uLiC7G2FcGwnfgjkO9fz35Vt/CNYP46UueVlGU/06nJnbdedNmtLVs4rP2uRYtGt9JEckBYqUp+/rdB3pffe9vfUUXe8FpFTR8DdjZ+SZXE1qaXV9oBd7R0wV7bY16uWdZg+euKRJPv+r5Ps334+ycDbS9u7PsCKRSaWKbGVy64sXZoVFcGJnAyJVJBIJhxBMJWMzGstKRPa+2pga+qWnOYvT0W+862Hvy3+/0ja4LgkmIdIRTqZU9bM/undBqNGUBYM6+f6ofE5OzCIWjvMglkyl+DEcWMTU9h0ujPp77tTXV646n0VDhNJngn55RqXf33Y/3vvBeX59UMp0SPjxIUoLpHjQ3NVLVrVqfIiUZJz8axCdnL/JIqKavImfNOph02lWR+vTsJQ42995ixjLBYbeplz1xL+4pCHiVQ5AfYYnDotDW0lxWBE78d5CKVlCZEVHA/h3NuG1rA5xWA79mNhtewocXpvDuZ+NIpiWa3Tmc+ngYe2/tgSCWTtWO9jbMBOZ4PSG2/Al99c+i6fTjYx5XhYzfMl+cDjuaqCaUk0IXL3uzM//Egd24o7MBZn3lqnVkpGhsbapBh9OMQCCIFouMTbolaBZ8EMJTkOd9kBcobZbCfCqFCoqeqLhWWVlJ6RlGbCnO1kbrHd/pfXEt5WYjoZWlg/R3jZJKTesCSNOC6x8ezUbgh9/chbb6wrkei8Xg8/kwOTmJXXU5KS0TayYzzJmMQ45HIIeneckWrQ0QbMSKWj2llY3IYV5xWOIp9XJBEJIsbhYEmSagQrZYzOvS0ZWrfr5wme3raioIgDHL2NgYJiYm+HmusRk2m8200LVZoNFoVLmPUkeanwRCUxBtzaiz1+P8xcuZVSzdVRQEAdjLQ6/XC+XQ4FxoJaJ7u/Mjx+TD4OAgFhZW7rNYLKR4G0l32TiIvOiSdpqZmeFRi0QiCpjgOKooQiaDHlGS8qSpbi+1sDkrmU3l6aL5UDS7FtgiXqWpqeL29/cjHo8r9+j1aG9vh8PhKK2BqB9paCBScDrh9Xp5FHn/sTiPbosWpxmGjJ/FQNiRYaZyTE0lQ6Umy0LMmONnzpyh35P8uq6uDp2dncT7mrIrNiOF5uZmDnpgYIBHxSwmsY2E8/C8ouVKyg41R8sRbDyXEynKYzm7BlgKqQDq6+vR3d19TQByrYrq1I4dO3gkmTVQwBuNZWinRDJR1gNqrFwbYmk5BX+IizUefp7LrOmurcW2bduuWzSytbN9+3aearxuEH94PB57sXRiCaxLJcvrDG3Was5QvOAN+fDtPc2chdQHd3V1FQUQHQtgbsCLpekwUrEEREpJI9WR2ptbYHTV5N1vNBrR1taGkZERaJVpZ0Xvybxit+/+Rx6mamKXqDSSal13+iwWI9dCLIUmAhE4K2NIxJWIsAgw+lxri955jP7pI0yfvIQlfxjJSBzpeBKpxWV+HTxzFfHZCCwd9VTwVieJiXQUY60MVbf39vb+ri+jo1buFOUPeXosxYXcnrcokxAB7OhqV9YH1ZdISGnAqqlLs9vtefdHRmcx8soJ7mzuAtZSdc8lhtDwJLz/GizIXIyeM8bkxLfy00kS34cg97LT6dkAITeuC6SjrZHUaRC6eBCqHy6XKy+NktFlXHnzNKSUUvCMtdWwtTqho2iq90YDYUwPX0Wa0plFxP61VhgaV/fxjHrHx8fVy3vp886qSKREHGcHLtiCc2UvPCbiXDbdSh9Qm7+PxpxiacMj5axF487N0BMx5II12S1wbF0RnYFPxgquDXWBU9b35LGTsgsnv8nOw+EFqrSR8jidQuCwKJLdYDAUpNMwKdhsMdrcUHTBmxxWiBrFyUXffOF7TCb1tLMgxYqS+KJ6fuHyaPk8uLy49gGrO76YQtsaYiGNrrJkkavQKiCkRGGWVGuGWpzzQPz8EfdxtnnFtdFciOv48nbC0lknCjYtBsXxdDLNc76kOl5W0q5Cpy17DvM1hig8pq6N/uFzclzZB1pnlIqMFEkW/NncVpfdKFuYChYPaCSWrf76unVb2GhREL/8rvu8LAvPKzOXEobOXeAPL60PjFnlWshYEVM7uMCoH/GFWGFROT67AryjrmhvkrHzJbdsqtJ4ig68brBm5OzAUEkgok4pbKwfUJXrqvFsRtTdotQUmeT2xKeXMD8xk02tFOX/7EUvFjJtrs5RjZpuV8H+hD0jE9XSII4ecccpCPdTBR9T6kYQ/YPDeY1N1gwrm8rT09MFb2m6twcWal1VIMzp0Q8GMHpyEFdODHBQ6lpoPbi7YO8dDAZzfThZEgSz5464/SkI+2goLpD8MwGcOv0pq+j5rGKi2iAq1Do1NZXdGF5rbYdvQYN7G90qZtdIKp7IRplpqNZDe6B3Ft5pV7UZL2ui+GZZG8qsId93uPdd6t1ZX2tje0jeST8VHBHV5pxixY4yzVAszJsY1pNYrdaCFGpqqUXtzk1cG0nEVqwuaKv1sPW4sOnAzVwIFrJQKMRVcgb8W/v37+8rCwSzD97q87O9UEnELqY02KyxdeKfnuW+s5cszGlBX63sWEgp/kAGIofTV+ugKi3M7XVcWjhu24y6PW2o7nBAo68s+i6DdYoq+9HzHiXxN76h112Zrf7f86337E6dBg1OBxrrHajWSpC9A7w3Zt+zPqBQRK7VhoaGeO+diebzbrf7sbLfTxSISv+dB3rfEESZSrPQxXdQaJaYRPFN+XF1KgC5ohJWbYqyS+KLnIFhsnwjzREb+9y5c1kAbKuLxnmAopC4rhePqj35ksep0Uq9giw8lNExWdHUShA3W1YGr6mpwZYtW7iAK9cYlZ4/fz7bKZJ5CQAFwT2y4RePJdPsFU+PIEr3SJLYktn6aXXoYe+iTMoQUVbhsr6bHVU1uvbVF3Oa7XSw2c+pTUUB3DAQxYx64U5y5AWm2NeyFIsK+6hpxook26NaW4vo//+ghfwDAuDf8IvHGwTmG+TcE+TwferrszLsY7r/WXL+nXXbgS/yDRDbpSAwh+n0NnKwJyOnXZlNikAmbd6j4xtMG7mv8X32V/Zl2/8AlGCJNTw3pK8AAAAASUVORK5CYII=
Es la parte de la geología que estudia las [[rocas]]: sobre todo cómo son y cómo se han formado. Los geólogos clasifican las rocas según __dónde se han formado__ en dos grandes grupos: *[[Rocas endógenas]] *[[Rocas exógenas]]
Vamos a hacer un póster para mostrar al mundo cómo es nuestro pueblo desde el punto de vista de las Ciencias naturales. Los apartados generales y los correspondientes a la Geología ya puedes ir preparándolos. El guión aproximado puede ser el siguiente: *Título y subtítulos de los apartados. *Localización geográfica. *Estudio del relieve. Para ello podéis usar googlemaps usando la vista de relieve. Se debe incluir por lo menos un perfil topográfico. También se deben añadir fotos que dejen claro cuál es el relieve de la zona. *Estudio de las rocas y sus edades geológicas. **Para geología de todo el mundo: http://portal.onegeology.org/ **Para la [[Isla Bioko de Guinea Ecuatorial|http://www.geol.sc.edu/gegeo/guiadecampo/Bioko.htm]] **Para geología de España: http://www.igme.es/internet/cartografia/cartografia/magna50.asp#Munici . Deberás ir buscando tu pueblo y acceder al mapa geológico de la zona. ***Puedes probar también con esta dirección http://www.igme.es/infoigme/visor/ es mucho más fácil, pero tendrás que instalarte un programa. **Desde este enlace podemos acceder a la [[cartografía WMS y KML|http://mapas.igme.es/Servicios/default.aspx]] (de googleearth) *Paleontología: presencia de fósiles.
//{{{ config.shadowTiddlers["StyleSheetNeuiEm"]="/*{{{*/\n"+ ".image .showFG {\n"+ " opacity: 0;\n"+ "}\n"+ "\n"+ ".image:hover .showFG {\n"+ " opacity: 1;\n"+ "}\n"+ "/*}}}*/"; store.addNotification("StyleSheetNeuiEm",refreshStyles); //}}}
/*** |''Name:''|TagSearchPlugin| |''Description:''|Provides a drop down listing current tags and others to be set. Based on [[x-tagger|http://tbgtd.tiddlyspot.com/#x-tagger]] which in turn was once based on [[TaggerPlugin|http://tw.lewcid.org/#TaggerPlugin]].| |''Author:''|[[Tobias Beer]]| |''Version:''|1.2.0 (2010-10-10)| |''Documentation:''|http://tagsearch.tiddlyspot.com| |''Source:''|http://tagsearch.tiddlyspot.com/#TagSearchPlugin| |''~TiddlyWiki:''|Version 2.5 or better| /%***/ (function(e){config.macros.tagsearch={cfg:{defaultSource:"",defaultMore:"",defaultMode:1,keepModified:false,sidebarOffset:20,newAtSingle:30,newAt:18,excludeTagged:"",toolbar:"",label:"tags",options:"Options",more:"More...",tooltip:"Manage tiddler tags",notags:"no tags set...",aretags:"Current tags",addTag:"Add tag...",addTags:"Set tag...",txtEdit:"~ edit categories...",txtEditTip:"edit tiddler with GTD tag categories used by x-tagger",txtNew:"~ add another tag",txtRemove:"remove tag %0",txtAdd:"set tag %0",txtFor:"To be tagged... ",txtCtrl:" (hold SHIFT to just add it or CTRL to replace in category)",promptNew:"Enter new tag:",modeAsk:"Do you want to remove existing tags from category '%0'?\nCancel simply adds tag '%1'."},handler:function(k,g,i,l,h,n){var m=this.cfg,j=story.findContainingTiddler(k),f=h.parseParams("tagman",null,true);e(createTiddlyButton(k,getParam(f,"label",m.label),getParam(f,"tooltip",m.tooltip),this.click,"button")).attr({id:this.newId("btntgs"),tid:(j?j.getAttribute("tiddler"):"")}).data({pa:i,p:f})},click:function(O){var k,G,S,R,K=[],w=true,W,V,U,M,A,Y,T,D,N,L,J=[],C,f,H,aa=O||window.event,X=e(this),F=X.attr("popup"),B=window.event?"keydown":"keypress",I=config.macros.tagsearch,ab=I.cfg,u=X.data("pa"),Q=X.data("p"),h=u.contains("toolbar"),v=getParam(Q,"source",ab.defaultSource),q=getParam(Q,"more",ab.defaultMore),Z=!u.contains("nosearch"),z=!u.contains("notags"),E=!u.contains("nomore"),n=getParam(Q,"goto",""),o=parseInt(getParam(Q,"mode")),g=getParam(Q,"tiddler",""),r=g?g:X.attr("tid"),ac=(getParam(Q,"exclude","")+" "+ab.excludeTagged).readBracketedList(),y=nu=v?ab.newAt:ab.newAtSingle,P=store.getTiddler(r);if(!r){return}o=isNaN(o)?ab.defaultMode:o;ac.map(function(i){K.pushUnique(i)});for(W=0;W<ac.length;W++){store.getTaggedTiddlers(ac[W]).map(function(i){K.pushUnique(i.title)})}if(v&&!store.getTiddlerText(v)){return false}if(F){D=e("#"+F)[0];e(D).empty()}if(!D){M=true;F=I.newId("tgspop");D=Popup.create(this);e(D).addClass("tgs").attr({id:F}).data({btn:X,tiddler:r,source:v,mode:o}).click(I.noBubble);X.attr("popup",F)}if(v){C=store.getTiddlerText(v).readBracketedList();for(L=0;L<C.length;L++){if(!K.contains(C[L])){H=store.getTaggedTiddlers(C[L]);J.push("TAG:"+C[L]);for(N=0;N<H.length;N++){if(!K.contains(H[N].title)){J.push(H[N].title)}}}}}else{J=store.getTags()}G=P?P.tags.sort():[];Y=function(j,i){return createTiddlyElement(createTiddlyElement(j,"li",null,null),"ol",null,i?i:null)};A=function(j,x,i,p){var m,l;m=createTiddlyElement(createTiddlyElement(j,"li"),"span",null,null);l=e(createTiddlyButton(m,x,p.format(["'"+i+"'"]),I.setTag,"button toggleButton",null));l.data({tiddler:r,tag:i,source:v,mode:o});insertSpacer(m);createTagButton(m,i)};S=Y(D,"tgside");if(config.macros.gotoTiddler&&Z){R=Y(S);if(g){U=createTiddlyElement(R,"li",null,"addto","");wikify("{{title{"+ab.txtFor+"}}}<<tag [["+r+"]]>>",U);R=Y(S)}createTiddlyElement(R,"li",null,"title",ab.addTag);wikify("<<gotoTiddler "+n+" >>",R);e("input",D).bind(B,I.noBubble).data("notify",config.macros.tagsearch.notify).focus()}R=Y(S);createTiddlyElement(R,"li",null,"title",ab.aretags);if(G.length==0){wikify("{{notags{"+ab.notags+"}}}",R)}else{for(L=0;L<G.length;L++){A(R,"[X]",G[L],ab.txtRemove)}}if(z){for(W=0;W<J.length;W++){nu++;f=v?J[W]:J[W][0];if(f.indexOf("TAG:")==0){f=f.substr(4);if(nu>y){nu=0;S=Y(D)}R=Y(S);nu++;createTiddlyLink(createTiddlyElement(R,"li",null,null),f,f,"title")}else{if(!G.contains(f)&&!K.contains(f)){if(!v&&nu>y||v&&nu>ab.newAtSingle){nu=0;S=Y(D);R=Y(S);if(w){createTiddlyElement(createTiddlyElement(R,"li",null,null),"li",null,"title",ab.addTags);w=false}}A(R,"["+String.fromCharCode(160,160,160)+"]",f,ab.txtAdd+(v?ab.txtCtrl:""))}}}}if(E){S=Y(D,"tgside");R=Y(S);createTiddlyElement(R,"li",null,"title",ab.options,null);createTiddlyButton(createTiddlyElement(R,"li"),ab.txtNew,null,I.setTag,"tsopt",null,null,{tiddler:r});if(v){createTiddlyButton(createTiddlyElement(R,"li"),ab.txtEdit,ab.txtEditTip,onClickTiddlerLink,"tsopt",null,null,{tiddlyLink:v.split("##")[0]})}w=true;if(q){T=store.getTiddlerText(q).readBracketedList();if(T.length>0){for(W=0;W<T.length;W++){f=T[W];if(f.indexOf("TAG:")==0){f=f.substr(4,f.length-4);R=Y(S);createTiddlyLink(createTiddlyElement(R,"li",null,null),f,f,"title");k=store.getTaggedTiddlers(f);for(V=0;V<k.length;V++){f=k[V].title;if(!G.contains(f)&&!K.contains(f)){A(R,"["+String.fromCharCode(160,160)+"]",f,ab.txtAdd)}}}else{if(w){R=Y(S);createTiddlyElement(R,"li",null,"title",ab.more);w=false}if(!G.contains(f)&&!K.contains(f)){A(R,"["+String.fromCharCode(160,160)+"]",f,ab.txtAdd)}}}}}}if(M){Popup.show(D,false);if(h){N=document.getElementById("sidebar");D.style.left="";D.style.right=(ab.sidebarOffset+(N?N.offsetWidth:0))+"px"}}return I.noBubble(aa)},setTag:function(w){var q,j,z,l=true,n,u,s,g,v=w||window.event,k=config.macros.tagsearch,y=k.cfg,f=e(this),o=f.closest(".tgs"),i=o.data("btn"),A=f.data("tag"),B=o.data("tiddler"),h=o.data("source"),r=parseInt(o.data("mode"));if(!A){z=prompt(y.promptNew,"");if(!z){return false}else{A=z}}tid=k.exists(B,A);if(tid){u=tid.tags;if(!u.contains(A)){if(h&&r<2&&!v.shiftKey){j=store.getTiddlerText(h).readBracketedList();findTagged:for(q=0;q<j.length;q++){g=j[q];s=store.getTaggedTiddlers(g).map(function(m){return m.title});if(s.contains(A)){s.splice(s.indexOf(A),1);if(!v.ctrlKey&&r==1&&u.containsAny(s)){l=confirm(y.modeAsk.format([g,A]))}if(l){for(n=0;n<s.length;n++){g=s[n];if(u.contains(g)){store.setTiddlerTag(B,false,g)}}}break findTagged}}}store.setTiddlerTag(B,true,A)}else{if(!z){store.setTiddlerTag(B,false,A)}}n=store.getTiddler(B);store.saveTiddler(B,B,n.text,y.keepModified?n.modifier:config.options.txtUserName,y.keepModified?n.modified:new Date(),n.tags,n.fields)}if(config.options.chkAutoSave){autoSaveChanges()}i.click();o.find("input").focus();return k.noBubble(v)},newId:function(f){return f+Math.random().toString().substr(3)},notify:function(f,h){var j=e(h).closest(".tgs"),g=e("form input",j)[0];t=config.macros.tagsearch.exists(j.data("tiddler"),f);if(t&&!t.tags.contains(f)){store.setTiddlerTag(t.title,t,f)}j.data("btn").click();g.select()},exists:function(i,g){if(!store.getTiddler(i)){var h=merge({},config.defaultCustomFields);store.saveTiddler(i,i,"",config.options.txtUserName,new Date(),g,h);return false}return store.getTiddler(i)},noBubble:function(g){var h=g||window.event,f=resolveTarget(h);if(h.keyCode==27){Popup.remove(0)}else{if(h.type!="click"&&f.nodeName.toUpperCase()=="INPUT"){return true}}if(e(f).hasClass("tiddlyLink")){return true}Popup.remove(1);h.cancelBubble=true;try{event.keyCode=0}catch(h){}if(window.event){h.returnValue=false}if(h.preventDefault){h.preventDefault()}if(h.stopPropagation){h.stopPropagation()}return false}};config.commands.tagSearch={};var d=config.macros.toolbar;d.createCommandTAGS=d.createCommand;d.createCommand=function(f,h,g,i){if(h=="tagSearch"){wikify("<<tagsearch toolbar "+config.macros.tagsearch.cfg.toolbar+">>",f);e(f.lastChild).attr({commandName:"tagSearch",tiddler:g.title})}else{d.createCommandTAGS.apply(this,arguments)}};var b=config.macros.gotoTiddler;if(b){b.processItem=function(i,g,h,f){if(!i.length){return}h.style.display=f?"block":"none";if(i=="*"){story.search(g.value);return false}if(!f){g.value=i}var j=e(g).data("notify");if(j){j.call(this,i,g)}else{story.displayTiddler(null,i)}return false};b.IEtableFixup="%0"}var c=store.getTiddlerText("ColorPalette::TertiaryMid"),a=store.getTiddlerText("ColorPalette::TertiaryDark");config.shadowTiddlers.StyleSheetTagSearch="/*{{{*/\n.tgs {padding:7px !important;-moz-border-radius:5px; -webkit-border-radius:5px;border-radius:5px;}\n.tgs li a, .tgs .quickopentag .tiddlyLink {display:inline;padding:2px;clear:none;}\n.tgs li a.toggleButton {display:inline;margin-left:5px;}\n.tgs .title {margin:3px 0 0 5px;font-weight:bold;font-size:150%;color:"+c+";padding:0;}\n.tgs form{display:block;float:left;clear:both;padding-left:5px !important;}\n.tgs .addto .quickopentag{display:block;clear:both;padding:5px;font-size:120%;}\n.tgs .notags, .tsopt{display:block;clear:both;margin:5px;}\n.tgs .highlight{background:"+a+";}\n.tgs ol{margin:0;padding:0 0 5px 0;}\n.tgs li{display:block;float:left;padding-bottom:10px !important;}\n.tgs li span{line-height:1em;}\n.tgs li ol li{clear:both;min-width:120px;display:inline;border:1px solid transparent;}\n.tgs li ol li:hover{border:1px solid "+c+";}\n.tgs li ol li ol li{padding:0 !important;}\n.tgs li ol li ol li:hover{border:1px solid transparent;}\n.tgside li ol li {min-width:150px;}.tgs .quickopentag {display:inline;}\n.tgs .quickopentag .tiddlyLink:hover {text-decoration:underline;}\n.tgs .quickopentag .button {border:0;padding:2px;font-size:1.5em;}\n/*}}}*/";store.addNotification("StyleSheetTagSearch",refreshStyles)})(jQuery); //%/
/*** |Name|ScrapbookPlugin| |Created by|[[Steve Schneider|http://webarchivist.org]]| |Version|1.0|| !!!Description A TiddlyWikiMacro to easily create a link to a [[Scrapbooked|http://amb.vis.ne.jp/mozilla/scrapbook/]] page. /*** Example: Given this text in tiddler ScrapbookLocation - <<tiddler ScrapbookLocation>> Typing this in a tiddler: {{{<<sbk "Today in History" 20100523110142>>}}} will generate this link: <<sbk "Today in History" 20100523110142>> (to see this example work, you need to create ScrapbookLocation, and edit this tiddler, replacing the two timestamps with one of your own) Directions: ! # Create tiddler ScrapbookLocation # Open an entry in a scrapbook in browser, and copy URL into ScrapbookLocation # remove timestamp and index.url from URL, leaving the slash after "data" # If you move your scrapbook, or put it on the Web, change ScrapbookLocation accordingly. !!!Code ***/ //{{{ config.macros.sbk = {}; config.macros.sbk.handler= function(place,macroName,params) { var key1=params[1]; var key0=params[0]; var key3=wikifyPlain("ScrapbookLocation"); wikify("[["+key0+"|"+key3+key1+"/index.html]]",place) } //}}}
Todo lo relativo al origen de la Tierra son hipótesis que, además, es imposible comprobadar porque no podemos viajar hacia el pasado para ver cómo fue en realidad. Los científicos piensan creen que hay algunas cosas que están claras como por ejemplo: **La Tierra se formó hace unos 4500 millones de años. **Se formó por la aglomeración de millones y millones de cuerpos rocosos que llamamos ''planetesimales''. **Los impactos de los planetesimales debieron generar cantidades inmensas de calor que mantuvieron fundido el //protoplaneta// total o parcialmente. **El impacto de un protoplaneta contra la ''prototierra'' provocó la formación de la Luna. **Durante ese estado de fusión los elementos más pesados (hierro y níquel) se //hundieron// hacia el centro y formaron el núcleo del planeta. **El enfriamiento de las capas externas hizo que el material fundido se solidificase y se formase la //primera corteza terrestre//. Entre la corteza y el núcleo quedó el Manto. **Esta corteza //atrapó// el calor interno de la Tierra, que va escapando poco a poco hacia el exterior desde entonces en un proceso que todavía no ha acabado. **La //primera atmósfera// terrestre debió ser muy diferente a la actual. No tenía oxígeno porque los volcanes no producen oxígeno. Era rica en nitrógeno (N~~2~~) y dióxido de carbono (CO~~2~~). **El agua presente en la Tierra procede de los cometas y meteoritos que bombardearon nuestro planeta hace unos 4000 millones de años. **Por supuesto, en aquellos primeros millones de años no había vida en el planeta porque ni siquiera había agua líquida. La Hidrosfera se formó cuando la temperatura de la atmósfera bajó lo necesario para que el vapor de agua se condensase. Entonces empezaron a formarse los //océanos primitivos//, que serían de agua dulce ya que el agua de lluvia es dulce. **Los océanos se hicieron salados a medida que los ríos llevaron sales disueltas. En cada ciclo hidrológico iría aumentando la cantidad de sales en el agua del mar. Las menos solubles, como el carbonato de calcio (~CaCO~~3~~), se fueron acumulando en el fondo formando rocas sedimentarias que llamamos //calizas//. Las más solubles, como la sal común (~NaCl), se fueron acumulando en el agua dándole el sabor salado que conocemos.
|''Name:''|[[NeUIemTheme]]| |''Description:''|Your description here!| |''Generator:''|[[TW FreeStyle|http://FreeStyle.tiddlyspace.com]]| |''Gen.Description:''|Automatically generated from: tsNeUIemProject| |''PageTemplate:''|##PageTemplate| |''ViewTemplate:''|##ViewTemplate| |''EditTemplate:''|##EditTemplate| |''RevisionTemplate:''|NeUIemTheme##RevisionTemplate| |''StyleSheet:''|##StyleSheet| |''UsedClones:''|StyleSheetHeaderMp StyleSheetMenuBarMp StyleSheetSideBarMp StyleSheetTiddlerMp StyleSheetTiddlySpaceMp StyleSheet_neui-em EmasticSystem NeuiemZzConfig:zzConfig TerminateStyleSheet:StyleSheet CSideBarTabs CSidebarOptions CSidebarTools NeuiemSidebarTools:SidebarTools TopMenu SideBarOptions OptionsPanel [[sidebarSearch]] FontPalette ToolbarCommands GettingStarted NeUIemTheme01 NeUIemTheme02 NeUIemTheme03 NeUIemTheme04 | !Important If any of the obove clones is missing, the theme may not work. !PageTemplate <!--{{{--> <!-- tsRowTitle --> <div class='dp100 header clearfix'> <!-- tsColTitle --> <div class='dp80'> <!-- BoxTsHeader --> <div class='box headerForeground'> <span class='siteTitle' refresh='content' tiddler='SiteTitle'></span> <span class='siteSubtitle' refresh='content' tiddler='SiteSubtitle'></span> </div> </div> <!-- tsColSearch --> <div class='dp20'> <!-- tsBoxGoto --> <div id='sidebarSearch' class='box searchForeground'> <div refresh='content' tiddler='sidebarSearch'></div> </div> </div> </div> <!-- row --> <!-- tsRowMenuBar --> <div id='menuBar' class='dp100 clearfix'> <!-- tsColTopMenue --> <div class='dp60'> <!-- tsBoxTopMenue --> <!-- horizontal TopMenu --> <div class='box topMenu clearfix' refresh='content' tiddler='TopMenu'></div> </div> <!-- tsColThemeSwitcher --> <div class='dp40'> <!-- tsBoxThemeSwitcher --> <div id='sidebarOptions' class='dpfr' refresh='content' tiddler='SideBarOptions'></div> </div> </div> <!-- row --> <!-- tsRowBody --> <div class='dp100 clearfix row'> <!-- tsColSidebar --> <div id='sidebar' class='dp15 dpfr' style='width:15%; position:relative;'> <!-- tsBoxSidebarTools --> <div id='sidebarTools' class='box' refresh='content' force='true' tiddler='CSidebarTools'></div> <!-- tsBoxSidebarTabs --> <div id='sidebarTabs' class='box' refresh='content' force='true' tiddler='CSideBarTabs'></div> </div> <!-- tsColMainMenu --> <div class='dp15'> <!-- tsBoxMainMenu --> <!-- original MainMenu menu --> <div id='mainMenu' refresh='content' tiddler='MainMenu'></div> </div> <!-- tsColDisplayArea --> <div id='displayArea' class='dp70'> <!-- tsBoxMessageArea --> <div id='messageArea' class='box'></div> <!-- tsBoxBreadCrumbs --> <div id='breadCrumbs' class='breadCrumbs box'></div> <!-- tsBoxTiddlersBar --> <div id='tiddlersBar' refresh='none' ondblclick='config.macros.tiddlersBar.onTiddlersBarAction(event)'></div> <!-- tsBoxTiddlerDisplay --> <div id='tiddlerDisplay' class='box'></div> </div> </div> <!-- row --> <!--}}}--> !ViewTemplate <!--{{{--> <!-- tsVT_NEUIem --> <div class='dp100 clearfix'> <!-- tsVT_toolbar --> <div class='dp100'> <!-- tsBoxVT_FollowPlaceHolder --> <div class='followPlaceHolder' macro='linkedTiddlers'> <span macro="view title replyLink"></span> </div> <!-- tsBoxVT_Toolbar --> <div class='box toolbar' macro='toolbar [[ToolbarCommands::ViewToolbar]] icons:yes'></div> </div> <!-- tsVT_leftCol --> <div class='dp10'> <!-- tsBoxVT_SiteIcon --> <div class='box spaceSiteIcon' macro='tiddlerOrigin label:yes height:48 width:48'></div> <!-- BoxVT_Calender --> <div class='box calendar' macro='viewRevisions page:5'> <div class='month' macro='view modified date mmm'></div> <div class='date' macro='view modified date 0DD'></div> <!-- div class='time' macro='view modified date 0hh:0mm'></div --> </div> <!-- BoxVTts_tagged --> <div class='box tagged' macro='tags'></div> <div class='box' macro='tiddler CTagBox'></div> </div> <!-- tsViewTemplate --> <div class='dp90'> <!-- tsBox_ModifierIcon --> <div class='box modifierIcon dpfr' macro='view modifier SiteIcon label:yes height:30 width:30 labelPrefix:"modified by "'> </div> <!-- tsBoxVT_Title --> <div class='titleContainer'> <div class='box title' macro='view title'></div> </div> <!-- tsBox_concertina --> <div class='box concertina clear'></div> <!-- tsBoxVT_Body --> <div class='box content'> <div class='viewer' macro='view text wikified'></div> </div> <!-- tsBoxVT_TagglyTaggingFooter --> <div class="box tagglyTagging" macro="tagglyTagging"></div> <!-- tsBox_StoryGlue --> <div class='box storyGlue' macro='storyGlue fsStory ACTIVESTORY'></div> </div> </div> <!-- row --> <!--}}}--> !EditTemplate <!--{{{--> <!-- tsET_NEUIem --> <div class='dp100 clearfix'> <!-- tsEditTemplate --> <div class='dp100'> <!-- BoxET_tsEditToolbar --> <div class='box dpfr toolbar' macro='toolbar [[ToolbarCommands::EditToolbar]] icons:yes'></div> <!-- BoxET_tsSetPrivate --> <div class="box dpfr privacyEdit" macro='setPrivacy label:no interactive:yes'></div> <div class='box dpfr editSpaceSiteIcon' macro='tiddlerOrigin height:25 width:25 label:no interactive:no'></div> <!-- BoxET_tsTitle --> <div class='box title' macro='view title'></div> <!-- BoxET_tsEditTitle --> <div class='box editor' macro='edit title'></div> <div macro='annotations'></div> <!-- BoxET_tsEditBody --> <div class='box editor' macro='edit text'></div> <!-- BoxET_tsTagging --> <div class='box save editor' macro='edit tags'></div> <!-- BoxET_tsEditFooter --> <div class='box editorFooter'><span macro='message views.editor.tagPrompt'></span><span macro='tagChooser excludeLists'></span></div> </div> </div> <!-- row --> <!--}}}--> !RevisionTemplate <!--{{{--> <!-- tsRT_NEUIem --> <div macro='slideRevision'></div> <div class='dp100 clearfix'> <!-- tsRT_toolbar --> <div class='dp100'> <!-- tsBoxVT_FollowPlaceHolder --> <div class='followPlaceHolder' macro='followTiddlers'> <span macro="view title replyLink"></span> </div> <!-- tsBoxRT_Toolbar --> <div class='box toolbar' macro='toolbar [[ToolbarCommands::RevisionToolbar]] icons:yes'></div> </div> <!-- tsVT_leftCol --> <div class='dp10'> <!-- tsBoxVT_SiteIcon --> <div class='box spaceSiteIcon' macro='tiddlerOrigin label:yes height:48 width:48'></div> <!-- BoxVT_Calender --> <div class='box calendar' macro='viewRevisions page:5'> <div class='month' macro='view modified date mmm'></div> <div class='date' macro='view modified date 0DD'></div> <!-- div class='time' macro='view modified date 0hh:0mm'></div --> </div> <!-- BoxVTts_tagged --> <div class='box tagged' macro='tags'></div> <div class='box' macro='tiddler CTagBox'></div> </div> <!-- tsViewTemplate --> <div class='dp90'> <!-- tsBox_ModifierIcon --> <div class='box modifierIcon dpfr' macro='view modifier SiteIcon label:yes height:30 width:30 labelPrefix:"modified by "'> </div> <!-- tsBoxVT_Title --> <div class='titleContainer'> <div class='box title' macro='view title'></div> </div> <!-- tsBox_concertina --> <div class='box concertina clear'></div> <!-- tsBoxVT_Body --> <div class='box content'> <div class='viewer' macro='view text wikified'></div> </div> <!-- tsBoxVT_TagglyTaggingFooter --> <div class="box tagglyTagging" macro="tagglyTagging"></div> <!-- tsBox_StoryGlue --> <div class='box storyGlue' macro='storyGlue fsStory ACTIVESTORY'></div> </div> </div> <!-- row --> <!--}}}--> !StyleSheet /*{{{*/ Version: 1.0 - 2010.08.12 /*****************************************************/ /*-- some simple rules to change the global layout --*/ /*-- margin should not be uses for row, col, box --*/ /*-- margin is used to adjust special elements --*/ /*-- The layout doesn't allow padding-left/right or margin-left/right ! for rows and cols --*/ .row { margin: 0; padding: 0; margin-top: 0.5em; } /*-- The layout doesn't allow padding-left/right or margin-left/right ! for rows and cols --*/ /*-- col is not assigned to layout yet --*/ .col { margin: 0; padding: 0; } /*-- if you want more space between 2 columns use box 2nd and 4th parameter. --*/ /*-- boxes must have padding-bottom: 0; !! --*/ .box { margin: 0; padding: 0.5em 0.5em 0 0.5em; } /* general stuff */ .noBullets ul { list-style:none; } .noNumbers ol { list-style:none; } .noBr br { display: none; } /* prefer monospace for editing */ .editor textarea, .editor input { font-size: 90%; font-family: [[FontPalette::twEditor]], 'Courier New', monospace; background-color:[[ColorPalette::TertiaryPale]]; } /*-- emastic System --*/ [[EmasticSystem]] /*-- theme specific stuff --*/ [[StyleSheet_neui-em]] /* 2012.01.04 inserted */ .notLoaded { background-image: URL('loading.gif'); background-repeat:no-repeat; background-position:center; } /*-- call the standard StyleSheet --*/ [[StyleSheet]] /*}}}*/
<?xml version="1.0" encoding="UTF-8" standalone="no"?> <svg id="svg2" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns="http://www.w3.org/2000/svg" height="29pt" viewBox="13 43 29 29" width="29pt" version="1.0" xmlns:cc="http://creativecommons.org/ns#" xmlns:dc="http://purl.org/dc/elements/1.1/" onmousedown="if(jQuery) jQuery(document).trigger('cSmaller', {elem:this, comp:{animations:1}})" onmouseup="if(jQuery) jQuery(document).trigger('cResize', {elem:this, comp:{animations:1}})"> <defs id="defs6"> <linearGradient id="linearGradient001" y2="27.646" gradientUnits="userSpaceOnUse" x2="-45.8" y1="27.646" x1="-57.66"> <stop id="stop1" stop-color="#CC9900" offset="0"/> <stop id="stop2" stop-color="#E8D18B" offset="0.66462"/> <stop id="stop3" stop-color="#CC9900" offset="1"/> </linearGradient></defs> <g id="icon" stroke-linecap="round" stroke-miterlimit="4"> <rect id="iconBG" style="stroke-dasharray:none;" fill-rule="evenodd" ry="4.1663" transform="matrix(0, -1, 1, 0, 0, 0)" height="25" width="25" stroke="#696969" stroke-linecap="round" stroke-miterlimit="4" y="15.167" x="-70.116" stroke-width="1.2" fill="none"/> <rect id="iconFG" stroke-width="0" fill-rule="evenodd" ry="2.3755" transform="matrix(0, -1, 1, 0, 0, 0)" width="22" stroke-miterlimit="4" y="16.646" x="-68.6" height="22" fill="url(#linearGradient001)" class="showOnHover" opacity="0"/> <g id="iconSymbol" stroke-linejoin="miter" transform="matrix(0.979566, -0.500632, 0.735105, 0.667118, -41.7482, 33.1452)" stroke="#4d4d4d" stroke-linecap="butt" stroke-width="0.80000001px" fill="none"> <path id="path3696" d="m37.954,54.163-4.5532,5.7819-0.03139-4.2335-7.7522,0,0-2.605,7.7522,0,0-3.4444,4.5846,4.501z"/> <path id="path3719" d="m17.41,60.825,4.4254-5.6117,0.03139,4.2335,7.7522,0,0,2.605-7.7522,0,0,3.4444-4.4568-4.6712z"/> </g> <rect id="overlay" opacity="0.01" ry="4.1663" style="stroke-dasharray:none;" fill-rule="evenodd" transform="matrix(0, -1, 1, 0, 0, 0)" height="25" width="25" stroke="#e6e6e6" stroke-linecap="round" stroke-miterlimit="4" y="15.167" x="-70.116" stroke-width="1.2" fill="#e6e6e6" onmouseover="if(jQuery) jQuery(document).trigger('cTglBg', {elem:this, comp:{animations:1}})" onmouseout="if(jQuery) jQuery(document).trigger('cTglBg', {elem:this, comp:{animations:1}})"/> </g> </svg>
El Hádico es el primer eón de la historia de la Tierra. Empieza hace más de 4500 millones de años con la formación de nuestro planeta y termina hace unos 4000 millones de años aunque esto no está del todo claro para los geólogos. Pero...¿cómo sabemos la edad la Tierra? La respuesta es corta: gracias a los [[métodos de datación por radioisótopos]]. Acerca del [[origen]] de la Tierra casi todo son hipótesis, lo cual no quiere decir que sean imaginaciones. Ya sabes que las hipótesis deben tener una base científica. Además, debe haber datos que las apoyen si quieren ser aceptadas por los científicos. ----
/*{{{*/ /* make it print a little cleaner */ /* FireFox only prints one page. Google Chrome works. */ @media print { /* basic setting */ #displayArea { font:11px/120% Arial, serif; background-color: white !important; background-image: none !important; color:black; width: 95%; } #sidebarSearch, .clear, .topMenu, .quickopentag a.button, .miniTag, .noPrint, .tagglyTagging { display: none ! important; } /* not sure if we need all the importants */ .tiddler { -moz-box-shadow: none; -web-box-shadow: none; boder:none ! important; border-style: none ! important; margin:0px ! important; padding:0px ! important; padding-bottom:2em ! important; display:inline; } .headerShadow { visibility: hidden ! important; } .tagglyTagged .quickopentag, .tagged .quickopentag { /* border-style: none ! important; */ } .siteIcon, .spaceSiteIcon { display: none ! important; } } /*}}}*/
<<list filter "[[Pregunta 1]]" template:QuestionnaireTemplate>>
En el cielo hay muchísimas estrellas pero... ¿sabes cuál es la más próxima a la Tierra? [[respuesta|Univ1]]
/*** |Name:|SelectThemePluginMP| |Description:|Lets you easily switch theme and palette| |Version:|1.0.1 ($Rev: 3646 $) MP 02| |Date:|$Date: 2008-02-27 02:34:38 +1000 (Wed, 27 Feb 2008) $| |OriginalSource:|http://mptw.tiddlyspot.com/#SelectThemePlugin| |OriginalAuthor:|Simon Baird <simon.baird@gmail.com>| |License:|http://mptw.tiddlyspot.com/#TheBSDLicense| |Author:|Mario Pietsch| !Notes * Borrows largely from ThemeSwitcherPlugin by Martin Budden http://www.martinswiki.com/#ThemeSwitcherPlugin * Theme is cookie based. But set a default by setting config.options.txtTheme in MptwConfigPlugin (for example) * Palette is not cookie based. It actually overwrites your ColorPalette tiddler when you select a palette, so beware. *MP Added the label to applyTheme macro. *Made selectPalette tiddlySpace ready. !Usage * {{{<<selectTheme>>}}} makes a dropdown selector * {{{<<selectPalette>>}}} makes a dropdown selector * {{{<<applyTheme>>}}} applies the current tiddler as a theme * {{{<<applyPalette>>}}} applies the current tiddler as a palette * {{{<<applyTheme TiddlerName>>}}} applies TiddlerName as a theme * {{{<<applyPalette TiddlerName>>}}} applies TiddlerName as a palette * {{{<<applyTheme TiddlerName label>>}}} applies TiddlerName as a theme and uses costumized button label * {{{<<applyTheme {{tiddler.title}} label>>}}} applies actual tiddler as a theme and uses costumized button label ***/ //{{{ config.macros.selectTheme = { label: { selectTheme:"select theme", selectPalette:"select palette" }, prompt: { selectTheme:"Select the current theme", selectPalette:"Select the current palette" }, tags: { selectTheme:'systemTheme', selectPalette:'systemPalette' } }; config.macros.selectTheme.handler = function(place,macroName) { var btn = createTiddlyButton(place,this.label[macroName],this.prompt[macroName],this.onClick); // want to handle palettes and themes with same code. use mode attribute to distinguish btn.setAttribute('mode',macroName); }; config.macros.selectTheme.onClick = function(ev) { var e = ev ? ev : window.event; var popup = Popup.create(this); var mode = this.getAttribute('mode'); var tiddlers = store.getTaggedTiddlers(config.macros.selectTheme.tags[mode]); // for default if (mode == "selectPalette") { var btn = createTiddlyButton(createTiddlyElement(popup,'li'),"(default)","default color palette",config.macros.selectTheme.onClickTheme); btn.setAttribute('theme',"(default)"); btn.setAttribute('mode',mode); } for(var i=0; i<tiddlers.length; i++) { var t = tiddlers[i].title; var name = store.getTiddlerSlice(t,'Name'); var desc = store.getTiddlerSlice(t,'Description'); var btn = createTiddlyButton(createTiddlyElement(popup,'li'), name?name:t, desc?desc:config.macros.selectTheme.label['mode'], config.macros.selectTheme.onClickTheme); btn.setAttribute('theme',t); btn.setAttribute('mode',mode); } Popup.show(); return stopEvent(e); }; config.macros.selectTheme.onClickTheme = function(ev) { var mode = this.getAttribute('mode'); var theme = this.getAttribute('theme'); if (mode == 'selectTheme') story.switchTheme(theme); else // selectPalette config.macros.selectTheme.updatePalette(theme); return false; }; config.macros.selectTheme.updatePalette = function(title) { var tiddlyspace = config.extensions.tiddlyspace; if (title != "") { if (title != "(default)") { var tiddler = store.getTiddler('ColorPalette'); tiddler.fields["server.workspace"] = "bags/%0_private".format([tiddlyspace.currentSpace.name]); tiddler.fields["server.page.revision"] = "false"; // tiddler.fields["server.permissions"] = "read, write, create"; // no delete delete tiddler.fields["server.title"]; delete tiddler.fields["server.etag"]; // special handling for pseudo-shadow tiddlers if(tiddlyspace.coreBags.contains(tiddler.fields["server.bag"])) { tiddler.tags.remove("excludeLists"); } store.saveTiddler("ColorPalette","ColorPalette", store.getTiddlerText(title), config.options.txtUserName,undefined,tiddler.tags, tiddler.fields); } refreshAll(); if(config.options.chkAutoSave) saveChanges(true); } }; config.macros.applyTheme = { label: "apply", prompt: "apply this theme or palette: " // i'm lazy }; config.macros.applyTheme.handler = function(place,macroName,params,wikifier,paramString,tiddler) { var label = params[1] ? params[1] : this.label; var useTiddler = params[0] ? params[0] : tiddler.title; var btn = createTiddlyButton(place,label,this.prompt+useTiddler,config.macros.selectTheme.onClickTheme); btn.setAttribute('theme',useTiddler); btn.setAttribute('mode',macroName=="applyTheme"?"selectTheme":"selectPalette"); // a bit untidy here } config.macros.selectPalette = config.macros.selectTheme; config.macros.applyPalette = config.macros.applyTheme; config.macros.refreshAll = { handler: function(place,macroName,params,wikifier,paramString,tiddler) { createTiddlyButton(place,"refresh","refresh layout and styles",function() { refreshAll(); }); }}; //}}}
Click the "new tiddler" button towards the top right of the screen to write something in your space. You'll need to give it a title, some content and, optionally, some tags that will help you identify it later. !Stuck for ideas? Not sure what to write about? Not sure what to keep in your space? Other people use ~TiddlySpace for almost anything. How about some of the following: * [[Save interesting sites|http://bookmarks.tiddlyspace.com]], images or articles from around the web so that you can refer back to them. * [[Record your family tree|http://familytree.tiddlyspace.com]], store notes on long lost relatives or ancestors and map their relationship to you. * [[Make up a pocketbook|http://pocketbook.tiddlyspace.com]] to store some useful information in, then print it out, [[fold it up|http://www.pocketmod.com/]], and take it with you. * [[Plan your holiday|http://the-web-is-your-oyster.tiddlyspace.com/]], record where you're planning to go, note down places of interest and refer back to it later. * [[Create a mindmap|http://mindmaps.tiddlyspace.com/]] to visualise your inner thoughts and see how they relate to each other. * [[Set up a questionnaire|http://questionnaire.tiddlyspace.com/]] and get all your friends to answer it. If you don't like any of those ideas, you can still use this space directly to keep notes and link them together, make a todo list and keep track of everything you're doing, or any one of a hundred million other things. Still stuck? Check out the @featured space for more suggestions. You can also [[socialise with others|How to socialise]].
<?xml version="1.0" encoding="UTF-8" standalone="no"?> <svg id="svg2" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns="http://www.w3.org/2000/svg" height="29pt" viewBox="13 43 29 29" width="29pt" version="1.0" xmlns:cc="http://creativecommons.org/ns#" xmlns:dc="http://purl.org/dc/elements/1.1/" onclick="if(jQuery) jQuery(document).trigger('cCloseAll', {elem:this, comp:{menue:1}})" onmousedown="if(jQuery) jQuery(document).trigger('cSmaller', {elem:this, comp:{animations:1}})" onmouseup="if(jQuery) jQuery(document).trigger('cResize', {elem:this, comp:{animations:1}})" title="Close all tiddlers (except any, that are being edited)"> <metadata id="metadata14"> <rdf:RDF> <cc:Work rdf:about=""> <dc:format>image/svg+xml</dc:format> <dc:type rdf:resource="http://purl.org/dc/dcmitype/StillImage"/> <dc:title/> <dc:rights> <cc:Agent> <dc:title>http://creativecommons.org/licenses/by-nc-sa/3.0/at/</dc:title> </cc:Agent> </dc:rights> <dc:source>http://iconbuilder.tiddlyspace.com</dc:source> <dc:creator> <cc:Agent> <dc:title>Mario Pietsch</dc:title> </cc:Agent> </dc:creator> </cc:Work> </rdf:RDF> </metadata> <defs id="defs_bBgTrans"> <linearGradient id="linearGradient001" y2="27.646" gradientUnits="userSpaceOnUse" x2="-45.8" y1="27.646" x1="-57.66"> <stop id="stop1" stop-color="#FF4646" offset="0"/> <stop id="stop2" stop-color="#ffcccc" offset="0.66462"/> <stop id="stop3" stop-color="#FF4646" offset="1"/> </linearGradient></defs> <g id="icon"> <rect id="iconBG" stroke="#696969" ry="4.1663" transform="matrix(0,-1,1,0,0,0)" height="25" width="25" y="15.167" x="-70.116" stroke-width="1.2" fill="none" class="showBG"/> <rect id="iconFG" stroke-width="0" fill-rule="evenodd" ry="2.3755" transform="matrix(0,-1,1,0,0,0)" width="22" stroke-miterlimit="4" y="16.646" x="-68.6" height="22" fill="url(#linearGradient001)" class="showFG"/> <g id="iconSymbol" stroke="#4d4d4d" stroke-linecap="round" stroke-width="1.60000002" class="showSY"> <g> <path d="m21.166,64.294,4.9545-4.9546"/> <path d="M26.12,64.294,21.165,59.339"/> </g> <g transform="translate(8.3261246,-8.609083)"> <path d="m21.166,64.294,4.9545-4.9546"/> <path d="M26.12,64.294,21.165,59.339"/> </g> <g transform="translate(8.3261246,0)"> <path d="m21.166,64.294,4.9545-4.9546"/> <path d="M26.12,64.294,21.165,59.339"/> </g> <g transform="translate(0.02508651,-8.6271626)"> <path d="m21.166,64.294,4.9545-4.9546"/> <path d="M26.12,64.294,21.165,59.339"/> </g> </g> <rect id="overlay" stroke="#696969" opacity="0" ry="4.1663" transform="matrix(0,-1,1,0,0,0)" height="25" width="25" y="15.167" x="-70.116" stroke-width="1.2" class="showOV"/> </g> </svg>
/*** |''Name''|TiddlySpaceViewTypes| |''Version''|0.6.0| |''Status''|@@beta@@| |''Description''|Provides TiddlySpace specific view types| |''Author''|Jon Robson| |''Source''|http://github.com/TiddlySpace/tiddlyspace/raw/master/src/plugins/TiddlySpaceViewTypes.js| |''Requires''|TiddlySpaceConfig TiddlySpaceTiddlerIconsPlugin| !Usage Provides replyLink, spaceLink and SiteIcon view types. !!SiteIcon view parameters * labelPrefix / labelSuffix : prefix or suffix the label with additional text. eg. labelPrefix:'modified by ' * spaceLink: if set to "yes" will make any avatars link to the corresponding space. {{{<<originMacro spaceLink:yes>>}}} !Code ***/ //{{{ (function($) { var tiddlyspace = config.extensions.tiddlyspace; var originMacro = config.macros.tiddlerOrigin; var tweb = config.extensions.tiddlyweb; config.macros.view.replyLink = { locale: { label: "Reply to this tiddler" } }; var _replyButtons = []; var _replyInitialised, _replyScriptLoaded; config.macros.view.views.replyLink = function(value, place, params, wikifier, paramString, tiddler) { var valueField = params[0]; var imported; if(valueField == "title") { // special casing for imported tiddlers var localTitle = tiddler.title; var serverTitle = tiddler.fields["server.title"]; if(serverTitle && localTitle != serverTitle) { value = serverTitle ? serverTitle : localTitle; imported = true; } } else { title = tiddler[valueField] ? tiddler[valueField] : tiddler.fields[valueField]; } var args = paramString.parseParams("anon")[0]; var label = (args.label) ? args.label : config.macros.view.replyLink.locale.label; var space; if(tiddler) { var bag = tiddler.fields["server.bag"]; space = tiddlyspace.resolveSpaceName(bag); } var container = $('<span class="replyLink" />').appendTo(place)[0]; tweb.getUserInfo(function(user) { if ((!user.anon) && ((space && user.name != space && user.name != tiddlyspace.currentSpace.name) || imported)) { var link = $("<a />") .text(config.macros.view.replyLink.locale.label) .appendTo(container)[0]; if(typeof(createReplyButton) === "undefined") { _replyButtons.push(link); } if(_replyInitialised) { createReplyButton(link); } else if(!_replyScriptLoaded) { _replyScriptLoaded = true; $.getScript("/bags/common/tiddlers/_reply-button.js", function() { _replyInitialised = true; for(var i = 0; i < _replyButtons.length; i++) { createReplyButton(_replyButtons[i]); } _replyButtons = []; }); } } }); }; config.macros.view.views.spaceLink = function(value, place, params, wikifier, paramString, tiddler) { var spaceName = tiddlyspace.resolveSpaceName(value); var isBag = params[0] == "server.bag" && value === spaceName ? true : false; var args = paramString.parseParams("anon")[0]; var titleField = args.anon[2]; var labelField = args.labelField ? args.labelField[0] : false; var label; if(labelField) { label = tiddler[labelField] ? tiddler[labelField] : tiddler.fields[labelField]; } else { label = args.label ? args.label[0] : false; } var title = tiddler[titleField] ? tiddler[titleField] : tiddler.fields[titleField]; var link = createSpaceLink(place, spaceName, title, label, isBag); if(args.external && args.external[0] == "no") { $(link).click(function(ev) { var el = $(ev.target); var title = el.attr("tiddler"); var bag = el.attr("bag"); var space = el.attr("tiddlyspace"); bag = space ? space + "_public" : bag; if(title && bag) { ev.preventDefault(); tiddlyspace.displayServerTiddler(el[0], title, "bags/" + bag); } return false; }); } }; config.macros.view.views.SiteIcon = function(value, place, params, wikifier, paramString, tiddler) { var options = originMacro.getOptions(paramString); if(!tiddler || value == "None") { // some core tiddlers lack modifier value = false; } var field = params[0]; if(field == "server.bag") { options.notSpace = !originMacro._isSpace(value); } tiddlyspace.renderAvatar(place, value, options); }; })(jQuery); //}}}
<?xml version="1.0" encoding="UTF-8" standalone="no"?> <svg id="svg2" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns="http://www.w3.org/2000/svg" height="29pt" viewBox="13 43 29 29" width="29pt" version="1.0" xmlns:cc="http://creativecommons.org/ns#" xmlns:dc="http://purl.org/dc/elements/1.1/" onmousedown="if(jQuery) jQuery(document).trigger('cSmaller', {elem:this, comp:{animations:1}})" onmouseup="if(jQuery) jQuery(document).trigger('cResize', {elem:this, comp:{animations:1}})"> <defs id="defs6"> <linearGradient id="linearGradient001" y2="27.646" gradientUnits="userSpaceOnUse" x2="-45.8" y1="27.646" x1="-57.66"> <stop id="stop1" stop-color="#FF4646" offset="0"/> <stop id="stop2" stop-color="#ffcccc" offset="0.66462"/> <stop id="stop3" stop-color="#FF4646" offset="1"/> </linearGradient></defs> <g id="icon" stroke-linecap="round" stroke-miterlimit="4"> <rect id="iconBG" style="stroke-dasharray:none;" fill-rule="evenodd" ry="4.1663" transform="matrix(0, -1, 1, 0, 0, 0)" height="25" width="25" stroke="#696969" stroke-linecap="round" stroke-miterlimit="4" y="15.167" x="-70.116" stroke-width="1.2" fill="none"/> <rect id="iconFG" stroke-width="0" fill-rule="evenodd" ry="2.3755" transform="matrix(0, -1, 1, 0, 0, 0)" width="22" stroke-miterlimit="4" y="16.646" x="-68.6" height="22" fill="url(#linearGradient001)" class="showOnHover" opacity="0"/> <g id="iconSymbol" stroke-linejoin="miter" style="stroke-dasharray:none;" transform="matrix(0.579556, -0.579556, 0.579556, 0.579556, -4.21894, 26.7647)" stroke="#4d4d4d" stroke-width="3.19999981" fill="#4d4d4d"> <path id="path3219" style="stroke-dasharray:none;" d="M-7.3399,53.9h16.353"/> <path id="path3221" style="stroke-dasharray:none;" d="M0.8368,62.077v-16.354"/> </g> <rect id="overlay" opacity="0.01" ry="4.1663" style="stroke-dasharray:none;" fill-rule="evenodd" transform="matrix(0, -1, 1, 0, 0, 0)" height="25" width="25" stroke="#e6e6e6" stroke-linecap="round" stroke-miterlimit="4" y="15.167" x="-70.116" stroke-width="1.2" fill="#e6e6e6" onmouseover="if(jQuery) jQuery(document).trigger('cTglBg', {elem:this, comp:{animations:1}})" onmouseout="if(jQuery) jQuery(document).trigger('cTglBg', {elem:this, comp:{animations:1}})"/> </g> </svg>
/*** |''Name''|ToggleTiddlerPrivacyPlugin| |''Version''|0.7.1| |''Status''|@@beta@@| |''Description''|Allows you to set the privacy of new tiddlers and external tiddlers within an EditTemplate, and allows you to set a default privacy setting| |''CoreVersion''|2.6.1| |''Requires''|TiddlySpaceConfig| |''Source''|http://github.com/TiddlySpace/tiddlyspace/raw/master/src/plugins/ToggleTiddlerPrivacyPlugin.js| !Notes When used in conjunction with TiddlySpaceTiddlerIconsPlugin changing the privacy setting will also interact with any privacy icons. Currently use of {{{<<setPrivacy defaultValue:public>>}}} is in conflict with {{{<<newTiddler fields:"server.workspace:x_private">>}}} There is an option, found in the tweak tab of the backstage, called txtPrivacyMode. Set this to either ''public'' or ''private'' depending on your security preference. If you choose not to set it then it will default to ''public''. !Params defaultValue:[private|public] Allows you to set the default privacy value (Default is private) !Code ***/ //{{{ (function($) { var tiddlyspace = config.extensions.tiddlyspace, macro; macro = config.macros.setPrivacy = { handler: function(place, macroName, params, wikifier, paramString, tiddler) { if(readOnly) { return; } var el = $(story.findContainingTiddler(place)), args = paramString.parseParams("name", null, true, false, true)[0], container = $("<div />"). addClass("privacySettings"). appendTo(place)[0], currentSpace = tiddlyspace.currentSpace.name, currentBag = tiddler ? tiddler.fields["server.bag"] : false, // XXX: is the following reliable? isNewTiddler = el.hasClass("missing") || !currentBag, tiddlerStatus = tiddlyspace.getTiddlerStatusType(tiddler), customFields = el.attr("tiddlyfields"), defaultValue = "public", options = config.macros.tiddlerOrigin ? config.macros.tiddlerOrigin.getOptions(paramString) : {}; customFields = customFields ? customFields.decodeHashMap() : {}; if(isNewTiddler || !["public", "private", "unsyncedPrivate", "unsyncedPublic"].contains(tiddlerStatus)) { if(args.defaultValue) { defaultValue = args.defaultValue[0].toLowerCase(); } else { defaultValue = config.options.chkPrivateMode ? "private" : "public"; } defaultValue = defaultValue ? "%0_%1".format(currentSpace, defaultValue) : customFields["server.bag"]; this.createRoundel(container, tiddler, currentSpace, defaultValue, options); } }, updateEditFields: function(tiddlerEl, bag) { var saveBagField = $('[edit="server.bag"]', tiddlerEl), saveWorkspaceField = $('[edit="server.workspace"]', tiddlerEl), input = $("<input />").attr("type", "hidden"), workspace = "bags/" + bag; if(saveBagField.length === 0) { input.clone().attr("edit", "server.bag").val(bag). appendTo(tiddlerEl); } else { saveBagField.val(bag); } // reset to prevent side effects $(tiddlerEl).attr("tiddlyFields", ""); if(saveWorkspaceField.length === 0) { input.clone().attr("edit", "server.workspace"). val(workspace).appendTo(tiddlerEl); } else { saveWorkspaceField.val(workspace); } }, setBag: function(tiddlerEl, newBag, options) { var bagStatus, title = $(tiddlerEl).attr("tiddler"), tiddler = store.getTiddler(title), originButton = $(".originButton", tiddlerEl)[0], refreshIcon, newWorkspace = "bags/" + newBag, rPrivate = $("input[type=radio].isPrivate", tiddlerEl), rPublic = $("input[type=radio].isPublic", tiddlerEl); refreshIcon = function(type) { var originMacro = config.macros.tiddlerOrigin; if(originButton && originMacro) { options.noclick = true; originMacro.showPrivacyRoundel(tiddler, type, originButton, options); } }; macro.updateEditFields(tiddlerEl, newBag); if(tiddler) { tiddler.fields["server.bag"] = newBag; // for external tiddlers tiddler.fields["server.workspace"] = newWorkspace; } if(newBag.indexOf("_public") > -1) { rPrivate.attr("checked", false); rPublic.attr("checked", true); bagStatus = "public"; } else { rPublic.attr("checked", false); // explicitly do this for ie rPrivate.attr("checked", true); bagStatus = "private"; } refreshIcon(bagStatus); }, createRoundel: function(container, tiddler, currentSpace, defaultValue, options) { var privateBag = "%0_private".format(currentSpace), publicBag = "%0_public".format(currentSpace), rbtn = $("<input />").attr("type", "radio"). attr("name", tiddler.title), el = story.findContainingTiddler(container); rbtn.clone().val("private").addClass("isPrivate"). appendTo(container); $("<label />").text("private").appendTo(container); // TODO: i18n rbtn.clone().val("public").addClass("isPublic") .appendTo(container); $("<label />").text("public").appendTo(container); // TODO: i18n $("[type=radio]", container).click(function(ev) { var btn = $(ev.target); tiddler.fields["server.page.revision"] = "false"; if(btn.hasClass("isPrivate")) { // private button clicked. $(el).addClass("isPrivate").removeClass("isPublic"); macro.setBag(el, privateBag, options); } else { $(el).addClass("isPublic").removeClass("isPrivate"); macro.setBag(el, publicBag, options); } }); window.setTimeout(function() { macro.setBag(el, defaultValue, options); }, 100); // annoyingly this is needed as customFields are added to end of EditTemplate so are not present yet // and don't seem to respect any existing customFields. } }; }(jQuery)); //}}}
/% |Name|CreateTiddlersFromCSV-MOD| |Based on|http://www.TiddlyTools.com/#CreateTiddlersFromCSV| |Version|1.3.1| |Author|Eric Shulman| |Modder|@pmario| |License|http://www.TiddlyTools.com/#LegalStatements| |~CoreVersion|2.1| |Type|html| |Description|create tiddlers from CSV data| |Modifications|added defaultCustomFields for TiddlySpace compability. added "saveChanges" button below the input area. | !FORMAT <<< ~Comma-Separated Value (CSV) format: {{{ title,modifier,tags,text,customfield1,customfield2,... MyTiddler,YourName,tag1 [[tag 2]] tag3,"This is ""quoted"" content, with a comma",value,value,... }}} {{wrap{ ''The first line contains lower-case field names and must include a //"title"// field''. Subsequent lines define //~CSV-encoded// data: any values that contain quotes or commas are surrounded by double-quotes, and quotes occuring //within// the values are doubled-up. The ''tags'' field is entered as a //space-separated bracketed list//. Additional fieldnames ("fieldN") are added as custom tiddler fields. Important for ~TiddlySpace users: The {{{modified, created}}} date-fields are set by the server. }}} <<< !end REVISIONS: [1.3.1] remove debugging message [1.3.0] correct handling for embedded quotes and strip \r from input [1.2.0] convert created/modified values from strings to date objects [1.1.0] handle CSV-encoded embedded commas and quotes %/<<tiddler HideTiddlerTags>>{{small smallform{ Enter/paste<<slider {{config.options['']=false;'';}} [[CreateTiddlersFromCSV-MOD##FORMAT]] 'CSV-formatted data...' 'view CSV format description' >> or, read data from a tiddler: <html><nowiki> <form style='display:inline;margin:0;padding:0;white-space:normal;'> <select class='editor' name='tid' title='select a tiddler title'> <option>select a tiddler title...</option> </select> <input type='button' value='get data' onclick="this.form.src.value=store.getTiddlerText(this.form.tid.value,'')"> <input type='button' value='create tiddlers' onclick=" var CSV=this.form.src.value; // GET NAMES var lines=CSV.replace(/\r/g,'').split('\n'); var names=lines.shift().replace(/\x22/g,'').split(','); CSV=lines.join('\n'); // ENCODE commas and newlines within quoted values var comma='!~comma~!'; var commaRE=new RegExp(comma,'g'); var newline='!~newline~!'; var newlineRE=new RegExp(newline,'g'); CSV=CSV.replace(/\x22([^\x22]*?)\x22/g, function(x){ return x.replace(/\,/g,comma).replace(/\n/g,newline); }); var lines=CSV.split('\n'); var count=0; for (var i=0; i<lines.length; i++) { if (!lines[i].length) continue; var values=lines[i].split(','); // DECODE commas, newlines, and doubled-quotes, and remove enclosing quotes (if any) for (var j=0; j<values.length; j++) values[j]=values[j].replace(commaRE,',').replace(newlineRE,'\n') .replace(/^\x22|\x22$/g,'').replace(/\x22\x22/g,'\x22'); // EXTRACT tiddler values var title=''; var text=''; var tags=[]; var fields= merge({}, config.defaultCustomFields); var created=null; var when=new Date(); var who=config.options.txtUserName; for (var v=0; v<values.length; v++) { var val=values[v]; if (names[v]) switch(names[v].toLowerCase()) { case 'title': title=val.replace(/\[\]\|/g,'_'); break; case 'created': created=new Date(val); break; case 'modified':when=new Date(val); break; case 'modifier':who=val; break; case 'text': text=val; break; case 'tags': tags=val.readBracketedList(); break; default: fields[names[v].toLowerCase()]=val; break; } } if (title.length) { store.saveTiddler(title,title,text,who,when,tags,fields,false,created||when); displayMessage('Created '+title); count++; } else if (!confirm('invalid data on line '+i+': missing/blank TiddlerName\n\n' +values.join('\n')+'\n\n\OK=skip, CANCEL=stop')) break; } displayMessage('Created '+count+' tiddlers'); "><br><textarea class='editor' name='src' style='display:inline;width:100%;height:10em;'></textarea> </form> </html><<tiddler {{ var list=place.lastChild.getElementsByTagName('form')[0].tid; store.forEachTiddler(function(title,tiddler){ list.options[list.length]=new Option(title,title); }); '';}}>>}}}<<saveChanges>>
<html> <head> <link rel="stylesheet" type="text/css" href="/HtmlCss"> </head> <body> <div id='container'> <form> <!-- STARTSURVEY --> </form> <script type='text/javascript' src='http://tiddlyspace.com/bags/ts_public/tiddlers/jquery.min.js'></script> <script type='text/javascript' src='http://tiddlyspace.com/bags/ts_public/tiddlers/jquery-json.min.js'></script> <script type='text/javascript' src='http://tiddlyspace.com/bags/tiddlyspace/tiddlers/chrjs'></script> <script type="text/javascript" src="http://jqueryui.tiddlyspace.com/jQueryUI"></script> <script type="text/javascript" src="http://questionnaire.tiddlyspace.com/htmlsurvey"></script> </body> </html>
var user, userbag; var friends = []; var host = "http://tiddlyspace.com"; $.ajaxSetup({ beforeSend: function(xhr) { xhr.setRequestHeader("X-ControlView", "false"); } }); function printMessage(txt) { alert(txt); } function printError(txt) { alert(txt); } var simpleDate = (function() { var measures = { second: 1, minute: 60, hour: 3600, day: 86400, week: 604800, month: 2592000, year: 31536000 }; var chkMultiple = function(amount, type) { return (amount > 1) ? amount + " " + type + "s":"a " + type; }; return function(thedate) { var dateStr, amount, current = new Date().getTime(), diff = (current - thedate.getTime()) / 1000; // work with seconds if(diff > measures.year) { amount = Math.round(diff/measures.year); dateStr = "about " + chkMultiple(amount, "year") + " ago"; } else if(diff > measures.month) { amount = Math.round(diff/measures.month); //if(typeof amount == "") dateStr = "about " + chkMultiple(amount, "month") + " ago"; } else if(diff > measures.week) { amount = Math.round(diff/measures.week); dateStr = "about " + chkMultiple(amount, "week") + " ago"; } else if(diff > measures.day) { amount = Math.round(diff/measures.day); dateStr = "about " + chkMultiple(amount, "day") + " ago"; } else if(diff > measures.hour) { amount = Math.round(diff/measures.hour); dateStr = "about " + chkMultiple(amount, "hour") + " ago"; } else if(diff > measures.minute) { amount = Math.round(diff/measures.minute); dateStr = "about " + chkMultiple(amount, "minute") + " ago"; } else { dateStr = "a few seconds ago"; } return dateStr; }; })(); function prettyDate(t) { var date = new Date(Date.UTC( parseInt(t.substr(0, 4), 10), parseInt(t.substr(4, 2), 10) - 1, parseInt(t.substr(6, 2), 10), parseInt(t.substr(8, 2), 10), parseInt(t.substr(10, 2), 10), parseInt(t.substr(12, 2) || "0", 10), parseInt(t.substr(14, 3) || "0", 10) )); return simpleDate(date); } function endsWith(str, suffix) { return str.indexOf(suffix) == str.length - suffix.length; } function isShadow(tid) { var shadows = ["MarkupPreHead", "DefaultTiddlers", "PageTemplate", "SideBarTabs", "GettingStarted", "MainMenu", "SiteTitle", "SiteSubtitle", "ColorPalette", "SiteIcon", "ViewTemplate", "EditTemplate", "ServerSettings", "MarkupPostHead", "MarkupPostBody", "MarkupPreBody"]; return tid.title.indexOf("StyleSheet") === 0 || tid.title.indexOf("SideBar") === 0 || shadows.indexOf(tid.title) > -1 || endsWith(tid.title, "SetupFlag") ? true : false; } function isPlugin(tid) { return tid.tags.indexOf("systemConfig") > -1 ? true : false; } function isArtifact(tid) { var follow = tid.tags.indexOf("follow") > -1; var type = tid.type; if(follow || type) { return true; } else { return false; } } function chooseTiddlers(tiddlers) { var _tiddlers = []; for(var i = 0; i < tiddlers.length; i++) { var tid = tiddlers[i]; if(!isPlugin(tid) && !isShadow(tid) && !isArtifact(tid)) { _tiddlers.push(tid); } } return _tiddlers; } function bubbleDown() { var friends = $(".friend"); friends.css({ position: "relative" }); var target; friends.each(function(i, el) { if(!target && $(el).hasClass("silentFriend") && $(el).next(".friend").hasClass("noisyFriend")) { target = el; } }); if(target) { var other = $(target).next(".friend"); // we want to move target above the prev element // target is an element which has the class noisy and the previous node is quiet var swapDuration = 50; var otherHeight = other.height(); var thisHeight = $(target).height(); $(target).animate({ top: + otherHeight }, { duration: swapDuration }); $(other).animate({ top: - thisHeight }, { duration: swapDuration, complete: function() { var newTarget = $(target).clone(true).insertAfter(other)[0]; $(target).remove(); $(other).css({ top: 0 }); $(newTarget).css({ top: 0 }); bubbleDown(); } }); } } function renderTiddlerList(container,friend) { var tidList = $("<ul />").appendTo(container)[0]; $("<li />").text("loading").appendTo(tidList); var oncompletion = function() { if($(".errorFriend,.silentFriend,.noisyFriend").length === $(".friend").length) { bubbleDown(); } } $.ajax({ dataType: "json", url: "/search?q=modifier:" + friend + "&select=modified:>3d&sort=-modified", error: function() { $(container).addClass("errorFriend"); oncompletion(); }, success: function(tiddlers) { $(tidList).empty(); tiddlers = chooseTiddlers(tiddlers); if(tiddlers.length === 0) { $(container).addClass("silentFriend"); $("<li />").text("No recent activity.").appendTo(tidList); oncompletion(); return; } else { $(container).addClass("noisyFriend").removeClass("inactiveFriend"); oncompletion(); } for(var i=0; i < tiddlers.length; i++) { var tiddler = tiddlers[i]; var item = $("<li />").appendTo(tidList)[0]; var win; var space = tiddler.bag.split("_")[0]; var spaceUrl = "http://" + space + ".tiddlyspace.com"; var path = "/bags/" + tiddler.bag + "/tiddlers/" + encodeURIComponent(tiddler.title); var link = $("<a />").text(tiddler.title). attr("href", spaceUrl + path). data("path", path). click(function(ev) { var win = $(ev.target).data("win"); if($(ev.target).hasClass("active")) { $(win).toggle(1000); } else { $(ev.target).addClass("active"); $(".text", win).text("loading..."); $(win).show(); $.ajax({ url: $(ev.target).data("path"), data: { render: "y" }, dataType: "json", success: function(tiddler) { $(".text",win).html(tiddler.render); $(win).show(1000); }, error: function() { $(".text", win).text("error loading that tiddler"); } }); } ev.preventDefault(); }). appendTo(item)[0]; var space = tiddler.bag.split("_")[0]; $("<span />").text(" in ").appendTo(item); $("<a />").attr("href", spaceUrl).text(space).appendTo(item); $("<span />").text(" (" + prettyDate(tiddler.modified) + ")").appendTo(item); win = $("<div />").addClass("tiddler").appendTo(item)[0]; $("<div />").addClass("text").appendTo(win); var toolbar = $("<div />").addClass("toolbar").appendTo(win)[0]; var extra = $("<div />").addClass("extra").appendTo(win)[0]; $("<button />").data("bag", tiddler.bag).data("title", tiddler.title).text("give feedback"). data("revision", tiddler.revision).click(function(ev) { var title = $(ev.target).data("title"); var revision = $(ev.target).data("revision"); var bag = $(ev.target).data("bag"); var revisionURL = host + "/bags/" + bag + "/tiddlers/" + encodeURIComponent(title) + "/revisions/" + revision; var space = bag.split("_")[0]; var area = $(ev.target).parents(".tiddler").children(".extra")[0]; $(area).hide(); $("<textarea />").appendTo(area); $("<button />").text("save feedback").click(function(ev) { var tid = new tiddlyweb.Tiddler("Feedback for " + title, userbag); tid.tags = ["feedback", "@" + space]; tid.text = ["In reply to [[", title, "]]@", space, " (revision [[", revision, "|", revisionURL, "]])\n\n"].join("") + $("textarea", area).val(); tid.put(function(tiddler) { $(area).empty(); $("<span />").text("your comment: ").appendTo(area); $("<a />").attr("href", "/" + encodeURIComponent(tiddler.title)).text(tiddler.title).appendTo(area); }, function() { printError("error commenting!"); }); }).appendTo(area); $(area).show(1000); ev.preventDefault(); $(ev.target).remove(); return false; }).appendTo(toolbar); $(win).hide(); $(link).data("win", win); } } }) } function removeFriend(friend) { var tiddler = new tiddlyweb.Tiddler("@" + friend, userbag); var success = function() { printMessage("User removed from friends"); var newFriends = []; for(var i = 0; i < friends.length; i++) { var f = friends[i]; if(f !== friend) { newFriends.push(f); } } friends = newFriends; $("#friend-" + friend).hide(2000); }; tiddler["delete"](success, function() { var old = new tiddlyweb.Tiddler(friend, userbag); old["delete"](success, function() { printError("Unable to remove friend " + friend); }) }) } function renderFriend(list, friend) { var bag = friend + "_public"; var item = $("<li />").addClass("friend").attr("id", "friend-" + friend).addClass("inactiveFriend").appendTo(list)[0]; $("<img />").attr("alt", friend).attr("title", friend). attr("src", host + "/bags/" + bag + "/tiddlers/SiteIcon").css({ width: 48, height: 48 }).appendTo(item); var heading = $("<h2>").appendTo(item)[0]; $("<a />").attr("href", "#friend-" + friend).attr("name", "friend-" + friend).text(friend).appendTo(heading); $("<button />").data("who", friend).text("remove from friends"). click(function(ev) { if(confirm("Are you sure you want to remove " + friend + " as a friend?")) { removeFriend($(ev.target).data("who")); } }).appendTo(item)[0]; renderTiddlerList(item,friend); } function renderFriends() { var list = $("<ul />").appendTo("#friends")[0]; $("<li />").text("Activity of your friends will appear below when available").appendTo(list); for(var i = 0; i < friends.length; i++) { var friend = friends[i]; renderFriend(list, friend); } } function followWidget() { $("#friends").empty(); var container = $("<div />").addClass("addfriends").appendTo("#friends")[0]; $("<input />").attr("name", "friend").appendTo(container); $("<button />").text("add friend").click(function(ev) { var friend = $(ev.target).parent().children("[name='friend']").val(); if(friends.indexOf(friend) > -1) { return printError("You already follow " + friend + "!"); } var title; if(friend.indexOf("@") !== 0) { title = "@" + friend; } else { title = friend; } $.ajax({ dataType: "text", url: "/users/" + friend, success: function() { var tid = new tiddlyweb.Tiddler(title, userbag); tid.tags = ["follow", "excludeLists"]; tid.put(function(tiddler) { printMessage("Added friend " + friend); renderFriend($("#friends ul")[0], friend); window.location.hash = "#friend-" + friend; }, function() { printError("Failed to add friend " + friend); }) }, error: function() { printError("No one with name " + friend + " exists!"); } }); }).appendTo(container); renderFriends(); } $.ajax({ url: "/status", dataType: "json", success: function(status) { user = status.username; userbag = new tiddlyweb.Bag(user + "_public", "/"); $.ajax({ url: "/bags/" + user + "_public/tiddlers?select=tag:follow", dataType: "json", success: function(tiddlers) { for(var i = 0; i < tiddlers.length; i++) { var title = tiddlers[i].title; if(title.indexOf("@") === 0) { title = title.substr(1, title.length); } friends.push(title); } friends.sort(); followWidget(); } }); } })
/*** |''Name''|ErrorHandlerPlugin| |''Version''|0.4.3| |''Author''|Jon Robson| |''Description''|Localised tiddler save errors including edit conflict resolution.| |''CoreVersion''|2.6.1| |''Requires''|TiddlySpaceConfig| ***/ //{{{ (function($) { var tiddlyspace = config.extensions.tiddlyspace; var currentSpace = tiddlyspace.currentSpace.name; tiddlyspace.getLocalTitle = function(title, workspace, suffix) { var endsWith = config.extensions.BinaryTiddlersPlugin.endsWith; if(!suffix) { var isPublic = endsWith(workspace, "_public"); suffix = tiddlyspace.resolveSpaceName(workspace); if(currentSpace == suffix) { suffix = isPublic ? "public" : "private"; } else { suffix = "@%0".format(suffix); } } return "%0 *(%1)*".format(title, suffix); }; var sssp = config.extensions.ServerSideSavingPlugin; var msgs = config.messages.editConflict = { loading: "Loading..", resolve: "[[Edit Conflict]]@glossary: this tiddler may have been changed by someone else.", reviewDiff: "review (recommended)", reviewDiffTooltip: "review changes made to this tiddler", reviewDiffError: "error retrieving revision.", save: "overwrite", saveTooltip: "make this revision the top revision of this tiddler", discard: "cancel", discardTooltip: "undo changes to this tiddler and get most recent version", diffTitle: "%0", diffFieldTitle: "%0 - fields", diffTextTitle: "%0 - text", updating: "updating your version...", diffHeader: ["Review the changes that have been made whilst you were editing this tiddler. ", "Fold relevant changes back into your version.\n", "{{removed{Red}}} highlight shows content removed. ", "{{added{Green}}} highlight shows content added.\n"].join(""), diffTextHeader: "View changes in text", diffFieldsHeader: "View changes in fields" }; var plugin = config.extensions.errorHandler = { diffTags: ["excludeLists", "excludeMissing", "excludeSearch"], displayMessage: function(message, tiddler, context) { var desc = context && context.httpStatus ? context.statusText : sssp.locale.connectionError; var reportArea = plugin.reportError(tiddler.title); var msg = $("<div />").appendTo(reportArea); if(message == "saveConflict") { wikify(msgs.resolve, msg[0]); var choiceArea = $("<div />").appendTo(reportArea)[0]; plugin.editConflictHandler(choiceArea, tiddler); } else { msg.text(sssp.locale[message].format(tiddler.title, desc)); } }, editConflictHandler: function(container, tiddler) { var title = tiddler.title; var myrev = tiddler.fields["server.page.revision"]; // note user now needs to edit, fix problem and save. // TODO: make sure this gets reset in save callback store.getTiddler(title).fields["server.page.revision"] = "false"; var diffBtn = createTiddlyButton(container, msgs.reviewDiff, msgs.reviewDiffTooltip, function(ev) { var title = $(ev.target).data("title"); plugin.displayDiff(ev.target, store.getTiddler(title), myrev); }); var saveBtn = createTiddlyButton(container, msgs.save, msgs.saveTooltip, function(ev) { var title = $(ev.target).data("title"); var tid = store.saveTiddler(store.getTiddler(title)); autoSaveChanges(null, [tid]); }); var ignoreBtn = createTiddlyButton(container, msgs.discard, msgs.discardTooltip, function(ev) { var title = $(ev.target).text(msgs.updating).data("title"); plugin.resetToServerVersion(store.getTiddler(title)); }); $([diffBtn, ignoreBtn, saveBtn]).data("title", title); }, getDiffTiddlerTexts: function(diffText) { var chunks = diffText.split("\n \n"); if(chunks.length < 2) { return [chunks[0], ""]; } else { var diffFieldsText = "{{diff{\n%0\n}}}".format(chunks[0]); diffText = '{{diff{\n%0\n}}}'.format(chunks.splice(1, chunks.length).join("\n")); return [diffText, diffFieldsText]; } }, makeDiffTiddler: function(title, diff) { var newTiddler = new Tiddler(title); var tags = plugin.diffTags; newTiddler.text = msgs.loading; newTiddler.fields.doNotSave = true; newTiddler.tags = diff ? tags.concat(["diff"]) : tags; newTiddler = store.saveTiddler(newTiddler); $.extend(store.getTiddler(title).fields, config.defaultCustomFields); // allow option to save it return newTiddler; }, displayDiff: function(src, tiddler, latestRevision) { var adaptor = tiddler.getAdaptor(); var title = tiddler.title; var ts = new Date().formatString("0hh:0mm:0ss"); var suffix = "edit conflict %0".format(ts); var diffTitle = tiddlyspace.getLocalTitle(msgs.diffTitle.format(title), "", suffix); var diffTextTitle = tiddlyspace.getLocalTitle(msgs.diffTextTitle.format(title), "", suffix); var diffFieldsTitle = tiddlyspace.getLocalTitle(msgs.diffFieldTitle.format(title), "", suffix); plugin.makeDiffTiddler(diffTextTitle, true); plugin.makeDiffTiddler(diffFieldsTitle, true); var newTiddler = plugin.makeDiffTiddler(diffTitle, false); newTiddler.text = ['%0\n<<slider chkViewDiffText "%1" "%2">>\n', '<<slider chkViewDiffField "%3" "%4">>'].join(""). format(msgs.diffHeader, diffTextTitle, msgs.diffTextHeader, diffFieldsTitle, msgs.diffFieldsHeader); store.saveTiddler(newTiddler); var callback = function(r) { var text = plugin.getDiffTiddlerTexts(r); store.getTiddler(diffTextTitle).text = text[0]; store.getTiddler(diffFieldsTitle).text = text[1]; story.refreshTiddler(diffTitle, null, true); }; var workspace = "bags/%0".format(tiddler.fields["server.bag"]); ajaxReq({ type: "get", dataType: "text", url: "/diff?format=unified&rev1=%0/%1/%2&rev2=%0/%1".format(workspace, title, latestRevision), success: callback, error: function() { displayMessage(msgs.reviewDiffError); } }); story.displayTiddler(src, diffTitle); }, resetToServerVersion: function(tiddler) { var adaptor = tiddler.getAdaptor(); var ctx = { host: tiddler.fields["server.host"], workspace: "bags/" + tiddler.fields["server.bag"] }; adaptor.getTiddler(tiddler.title, ctx, null, function(context) { store.saveTiddler(context.tiddler); story.refreshTiddler(tiddler.title); store.setDirty(false); }); }, reportError: function(title) { var el = story.getTiddler(title); if(!el) { el = story.displayTiddler(null, title); } return $("<div />").addClass("error annotation").prependTo(el)[0]; } }; sssp.reportFailure = function(message, tiddler, context) { config.options.chkViewDiffText = config.options.chkViewDiffText === undefined ? true : config.options.chkViewDiffText; config.options.chkViewDiffFields = config.options.chkViewDiffFields || false; plugin.displayMessage(message, tiddler, context); }; })(jQuery); //}}}
/*** |Name|ScrapbookImagePlugin| |Created by|[[Steve Schneider|http://webarchivist.org]], built on ImageLinkMacro| |Version|1.0|| !!!Description A TiddlyWikiMacro to easily create an image link to a [[Scrapbooked|http://amb.vis.ne.jp/mozilla/scrapbook/]] page. /*** Example: Given this text in tiddler ScrapbookLocation - <<tiddler ScrapbookLocation>> and this text in tiddle ImageLocation - <<tiddler ImageLocation>> Typing this in a tiddler: {{{<<sbki select-make.png 20100523112405 "Select Make Feature" http://www.autotrader.com/ 2010-05-23>>}}} will generate this link: <<sbki select-make.png 20100523112405 "Select Make Feature" www.autotrader.com 2010-05-23>> Directions: ! # Create tiddler ScrapbookLocation # Open an entry in a scrapbook in browser, and copy URL into ScrapbookLocation # remove timestamp and index.url from URL, leaving the slash after "data" # If you move your scrapbook, or put it on the Web, change ScrapbookLocation accordingly. # Create tiddler ImageLocation and put location of images files there !!!Code ***/ //{{{ config.macros.sbki = {}; config.macros.sbki.handler= function(place,macroName,params) { var key0=params[0]; var key1=params[1]; var key2=params[2]; var key3=params[3]; var key4=params[4]; var sl=wikifyPlain("ScrapbookLocation"); var il=wikifyPlain("ImageLocation"); wikify("<<imglink "+il+key0+" "+sl+key1+"/index.html '"+key2+": Click on the image to see the archived page' '5'>>\n//"+key3+", "+key4+"//",place) } //}}}
/*** |''Name''|TiddlySpaceTiddlerIconsPlugin| |''Version''|0.8.10| |''Status''|@@beta@@| |''Author''|Jon Robson| |''Description''|Provides ability to render SiteIcons and icons that correspond to the home location of given tiddlers| |''Source''|http://github.com/TiddlySpace/tiddlyspace/raw/master/src/plugins/TiddlySpaceTiddlerIconsPlugin.js| |''Requires''|TiddlySpaceConfig BinaryTiddlersPlugin ImageMacroPlugin TiddlySpacePublishingCommands| !Notes {{{<<tiddlerOrigin>>}}} shows the origin of the tiddler it is being run on. In TiddlySpace terms this means it will determine whether the tiddler is external, public or private. Where private it will analyse whether a public version exists and distinguish between the different scenarios. If a tiddler is external, the SiteIcon of that external space will be shown !Parameters width / height : define a width or height of the outputted icon label: if label parameter is set to yes, a label will accompany the icon. !Code ***/ //{{{ (function($) { if(!config.macros.image) { throw "Missing dependency: ImageMacroPlugin"; } var imageMacro = config.macros.image; var tiddlyspace = config.extensions.tiddlyspace; var tweb = config.extensions.tiddlyweb; var cmds = config.commands; var cmd = cmds.publishTiddler; tiddlyspace.resolveSpaceName = function(value) { var endsWith = config.extensions.BinaryTiddlersPlugin.endsWith; if(value) { value = value.indexOf("bags/") === 0 ? value.substr(5) : value; value = value.indexOf("recipes/") === 0 ? value.substr(8) : value; if(value.indexOf("@") === 0) { value = value.substr(1); } if(endsWith(value, "_public")) { value = value.substr(0, value.length - 7); } else if(endsWith(value, "_private")) { value = value.substr(0, value.length - 8); } value = value.toLowerCase(); } return value; }; tiddlyspace.renderAvatar = function(place, value, options) { options = options ? options : {}; options.labelOptions = options.labelOptions ? options.labelOptions : { include: false, height: 48, width: 48 }; options.imageOptions = options.imageOptions ? options.imageOptions : {}; options.imageOptions.altImage = "/bags/common/tiddlers/defaultUserIcon"; var container = $('<div class="siteIcon" />').appendTo(place); value = tiddlyspace.resolveSpaceName(value); tweb.getStatus(function(status) { var link, noLabel; if(!value || value == config.views.wikified.defaultModifier || value == config.views.wikified.shadowModifier) { var icon = config.views.wikified.shadowModifier == value ? "shadowIcon" : "missingIcon"; if(store.tiddlerExists(icon)) { imageMacro.renderImage(container, icon, options.imageOptions); } else { noLabel = true; } } else { var spaceURI; if(value != tiddlyspace.currentSpace.name) { spaceURI = options.notSpace ? tiddlyspace.getHost(status.server_host) : tiddlyspace.getHost(status.server_host, value); } link = spaceURI ? $("<a />").attr("href", spaceURI) : $("<span />"); link.text(value); var imageOptions = options.imageOptions; if(options.spaceLink && !imageOptions.link) { imageOptions.link = spaceURI; } var avatar = options.notSpace ? false : value; var uri = tiddlyspace.getAvatar(status.server_host, avatar); imageMacro.renderImage(container, uri, options.imageOptions); if(!value) { value = "tiddlyspace"; } } if(!noLabel && options.labelOptions.include) { var prefix = $("<span />").text(options.labelOptions.prefix || "")[0]; var suffix = $("<span />").text(options.labelOptions.suffix || "")[0]; $('<div class="label" />').append(prefix).append(link). append(suffix).appendTo(container); } }); if(value) { var prefix = options.labelOptions.prefix || ""; var suffix = options.labelOptions.suffix || ""; var label = "%0%1%2".format(prefix, value, suffix); $(container).attr("title", label); } }; var originMacro = config.macros.tiddlerOrigin = { locale: { "shadow": "shadow tiddler", "missing": "missing tiddler", "private": "private", "unknown": "unknown state", "public": "public", "unsyncedPrivate": "unsynced and private", "unsyncedPublic": "unsynced and public", externalPrefix: "from ", externalBagSuffix: " bag", externalSuffix: " space", publishPrivateDeletePrivate: "Are you sure you want to make this tiddler public?", moveToPrivate: "Are you sure you want to make this tiddler private? Only members will be able to see it.", pleaseWait: "please wait..", keepPublic: "keep public", cannotPublishDirtyTiddler: "The current tiddler is unsaved so cannot be published. Please save the tiddler first.", keepPrivate: "keep private", makePublic: "make public", makePrivate: "make private" }, handler: function(place, macroName, params,wikifier, paramString, tiddler){ var adaptor = tiddler.getAdaptor(); var btn = $("<div />").addClass("originButton").attr("params", paramString). attr("refresh", "macro").attr("macroName", macroName).appendTo(place)[0]; $(btn).data("tiddler", tiddler); originMacro.refresh(btn); }, refresh: function(btn) { $(btn).empty(); var paramString = $(btn).attr("params"); var tiddler = $(btn).data("tiddler"); var options = originMacro.getOptions(paramString); var type = tiddlyspace.getTiddlerStatusType(tiddler); originMacro.renderIcon(tiddler, type, btn, options); }, getOptions: function(paramString) { paramString = "%0 label:no width:48 height:48 spaceLink:yes preserveAspectRatio:yes".format(paramString); var parsedParams = paramString.parseParams("name"); var params = parsedParams[0].name; var options = { labelOptions: originMacro._getLabelOptions(parsedParams), imageOptions: imageMacro.getArguments(paramString, []), noclick: parsedParams[0].interactive && parsedParams[0].interactive[0] == "no" ? true : false }; if(!options.noclick) { var spaceLink = parsedParams[0].spaceLink; options.spaceLink = spaceLink && spaceLink[0] == "no" ? false : true; } else { options.spaceLink = false; } return options; }, _getLabelOptions: function(parsedParams) { parsedParams = parsedParams[0]; var includeLabel = !parsedParams.label || ( parsedParams.label && parsedParams.label[0] == "yes" ); var prefix = parsedParams.labelPrefix ? parsedParams.labelPrefix[0] : false; var suffix = parsedParams.labelSuffix ? parsedParams.labelSuffix[0] : false; return { include: includeLabel, suffix: suffix, prefix: prefix }; }, _isSpace: function(value) { value = value ? value : ""; var endsWith = config.extensions.BinaryTiddlersPlugin.endsWith; if(endsWith(value, "_private") || endsWith(value, "_public")) { return true; } else { return false; } }, renderIcon: function(tiddler, type, button, options) { var locale = originMacro.locale; originMacro.annotateTiddler(button, type); if(type != "external") { originMacro.showPrivacyRoundel(tiddler, type, button, options); } else { var prefix = options.labelOptions.prefix, suffix = options.labelOptions.suffix; var space = tiddler.fields["server.bag"]; options.notSpace = !originMacro._isSpace(space); options.labelOptions.prefix = prefix ? prefix : locale.externalPrefix; options.labelOptions.suffix = suffix ? suffix : (options.notSpace ? locale.externalBagSuffix : locale.externalSuffix); tiddlyspace.renderAvatar(button, space, options); } }, showPrivacyRoundel: function(thisTiddler, privacyType, button, options) { // there is a public tiddler as well as the current tiddler! // TODO: not this is not enough.. we also need to check if the public tiddler is the same as.. // .. the private tiddler to determine whether this is a draft // use of hashes would be useful here. $(button).empty(); var icon = "%0Icon".format(privacyType); if(privacyType.indexOf("unsynced") === 0 && !store.tiddlerExists(icon)) { icon = "unsyncedIcon"; } if(privacyType == "shadow") { if(!store.tiddlerExists(icon)) { icon = "bags/tiddlyspace/tiddlers/SiteIcon"; } } if(privacyType == "missing" && !store.tiddlerExists(icon)) { return; // the user is not making use of the missingIcon } else { imageMacro.renderImage(button, icon, options.imageOptions); originMacro.showLabel(button, privacyType, options.labelOptions); var cmd = originMacro.iconCommands[privacyType]; if(cmd && thisTiddler && !options.noclick) { $(button).click(function(ev) { cmd(ev, thisTiddler); }); } } }, annotateTiddler: function(place, type) { var tidEl = $(story.findContainingTiddler(place)); tidEl. removeClass("private public external privateAndPublic privateNotPublic shadow"). addClass(type); }, showLabel: function(button, type, options) { var locale = originMacro.locale; var label = options.label ? options.label : locale[type]; label = label ? label : locale.unknown; if(options && options.include) { $('<div class="roundelLabel" />').html(label).appendTo(button); } $(button).attr("title", label); }, confirm: function(ev, msg, onYes, options) { options = options ? options : {}; onYes = onYes ? onYes : function(ev) {}; var btn = $(".originButton", $(ev.target).parents())[0]; var popup = Popup.create(btn); $(popup).addClass("confirmationPopup"); $("<div />").addClass("message").text(msg).appendTo(popup); $("<button />").addClass("button").text(options.yesLabel || "yes").appendTo(popup).click(onYes); $("<button />").addClass("button").text(options.noLabel || "no").click(function(ev) { Popup.remove(); }).appendTo(popup); Popup.show(); ev.stopPropagation(); return false; }, alert: function(ev, msg) { var popup = Popup.create(ev.target); $(popup).addClass("confirmationPopup alert"); $("<div />").addClass("message").text(msg).appendTo(popup); Popup.show(); ev.stopPropagation(); }, reportDirty: function(el) { originMacro.alert(el, originMacro.locale.cannotPublishDirtyTiddler); }, iconCommands: { "public": function(ev, tiddler) { if(!readOnly) { var locale = originMacro.locale; var msg = locale.moveToPrivate; if(story.isDirty(tiddler.title)) { originMacro.reportDirty(ev); } else { originMacro.confirm(ev, msg, function(ev) { var target = $(ev.target); var onComplete = function(info) {}; var privateBag = cmd.toggleBag(tiddler, "private"); cmd.moveTiddler(tiddler, { title: tiddler.title, fields: { "server.bag": privateBag } }, onComplete); }, { yesLabel: locale.makePrivate, noLabel: locale.keepPublic }); } } }, "private": function(ev, tiddler) { if(!readOnly) { var locale = originMacro.locale; var adaptor = tiddler.getAdaptor(); var publishTo = tiddler.fields["publish.name"] || tiddler.title; var workspace = "bags/%0".format(tiddler.fields["server.bag"]); tiddler.fields["server.workspace"] = workspace; var publicBag = cmd.toggleBag(tiddler, "public"); var msg; msg = locale.publishPrivateDeletePrivate; var title = tiddler.title; var newTitle = publishTo || tiddler.title; tiddler.fields["server.page.revision"] = "false"; store.addTiddler(tiddler); if(story.isDirty(tiddler.title)) { originMacro.reportDirty(ev); } else { originMacro.confirm(ev, msg, function(ev) { var onComplete = function(info) {}; cmd.moveTiddler(tiddler, { title: newTitle, fields: { "server.bag": publicBag } }, onComplete); }, { yesLabel: locale.makePublic, noLabel: locale.keepPrivate }); } } } } }; })(jQuery); //}}}
* modified [[SidebarButtons]] to display only three buttons that are used: <<tiddler SidebarButtons>> * added <<tag excludeLists>> to many tiddlers so they don't display when sunyit users include @sunyit-plugins
Los más importantes son los siguientes: *[[Principio de horizontalidad]]. *[[Principio de continuidad lateral]]. *[[Principio de superposición de los estratos]]. *[[Principio de sucesión de eventos]]. *[[Principio del actualismo]]. *Principio de sucesión faunística. ---- ***[[Explica la historia geológica de estos dos esquemas]] ***En [[esta página|http://www.educa.madrid.org/web/cc.nsdelasabiduria.madrid/ejercicios1b.htm]] tienes ejercicios online de interpretaciones de cortes geológicos. Busca el Tema 15 y los encontrarás. ***[[Soluciones a los cortes de la fotocopia de clase]]
/*** |''Name''|ServerSideSavingPlugin| |''Description''|server-side saving| |''Author''|FND| |''Version''|0.6.5| |''Status''|stable| |''Source''|http://svn.tiddlywiki.org/Trunk/association/plugins/ServerSideSavingPlugin.js| |''License''|[[BSD|http://www.opensource.org/licenses/bsd-license.php]]| |''CoreVersion''|2.5.3| |''Keywords''|serverSide| !Notes This plugin relies on a dedicated adaptor to be present. The specific nature of this plugin depends on the respective server. !Revision History !!v0.1 (2008-11-24) * initial release !!v0.2 (2008-12-01) * added support for local saving !!v0.3 (2008-12-03) * added Save to Web macro for manual synchronization !!v0.4 (2009-01-15) * removed ServerConfig dependency by detecting server type from the respective tiddlers !!v0.5 (2009-08-25) * raised CoreVersion to 2.5.3 to take advantage of core fixes !!v0.6 (2010-04-21) * added notification about cross-domain restrictions to ImportTiddlers !To Do * conflict detection/resolution * rename to ServerLinkPlugin? * document deletion/renaming convention !Code ***/ //{{{ (function($) { readOnly = false; //# enable editing over HTTP var plugin = config.extensions.ServerSideSavingPlugin = {}; plugin.locale = { saved: "%0 saved successfully", saveError: "Error saving %0: %1", saveConflict: "Error saving %0: edit conflict", deleted: "Removed %0", deleteError: "Error removing %0: %1", deleteLocalError: "Error removing %0 locally", removedNotice: "This tiddler has been deleted.", connectionError: "connection could not be established", hostError: "Unable to import from this location due to cross-domain restrictions." }; plugin.sync = function(tiddlers) { tiddlers = tiddlers && tiddlers[0] ? tiddlers : store.getTiddlers(); $.each(tiddlers, function(i, tiddler) { var changecount = parseInt(tiddler.fields.changecount, 10); if(tiddler.fields.deleted === "true" && changecount === 1) { plugin.removeTiddler(tiddler); } else if(tiddler.isTouched() && !tiddler.doNotSave() && tiddler.getServerType() && tiddler.fields["server.host"]) { // XXX: server.host could be empty string delete tiddler.fields.deleted; plugin.saveTiddler(tiddler); } }); }; plugin.saveTiddler = function(tiddler) { try { var adaptor = this.getTiddlerServerAdaptor(tiddler); } catch(ex) { return false; } var context = { tiddler: tiddler, changecount: tiddler.fields.changecount, workspace: tiddler.fields["server.workspace"] }; var serverTitle = tiddler.fields["server.title"]; // indicates renames if(!serverTitle) { tiddler.fields["server.title"] = tiddler.title; } else if(tiddler.title != serverTitle) { return adaptor.moveTiddler({ title: serverTitle }, { title: tiddler.title }, context, null, this.saveTiddlerCallback); } var req = adaptor.putTiddler(tiddler, context, {}, this.saveTiddlerCallback); return req ? tiddler : false; }; plugin.saveTiddlerCallback = function(context, userParams) { var tiddler = context.tiddler; if(context.status) { if(tiddler.fields.changecount == context.changecount) { //# check for changes since save was triggered tiddler.clearChangeCount(); } else if(tiddler.fields.changecount > 0) { tiddler.fields.changecount -= context.changecount; } plugin.reportSuccess("saved", tiddler); store.setDirty(false); } else { if(context.httpStatus == 412) { plugin.reportFailure("saveConflict", tiddler); } else { plugin.reportFailure("saveError", tiddler, context); } } }; plugin.removeTiddler = function(tiddler) { try { var adaptor = this.getTiddlerServerAdaptor(tiddler); } catch(ex) { return false; } var context = { host: tiddler.fields["server.host"], workspace: tiddler.fields["server.workspace"], tiddler: tiddler }; var req = adaptor.deleteTiddler(tiddler, context, {}, this.removeTiddlerCallback); return req ? tiddler : false; }; plugin.removeTiddlerCallback = function(context, userParams) { var tiddler = context.tiddler; if(context.status) { if(tiddler.fields.deleted === "true") { store.deleteTiddler(tiddler.title); } else { plugin.reportFailure("deleteLocalError", tiddler); } plugin.reportSuccess("deleted", tiddler); store.setDirty(false); } else { plugin.reportFailure("deleteError", tiddler, context); } }; plugin.getTiddlerServerAdaptor = function(tiddler) { // XXX: rename? var type = tiddler.fields["server.type"] || config.defaultCustomFields["server.type"]; return new config.adaptors[type](); }; plugin.reportSuccess = function(msg, tiddler) { displayMessage(plugin.locale[msg].format([tiddler.title])); }; plugin.reportFailure = function(msg, tiddler, context) { var desc = (context && context.httpStatus) ? context.statusText : plugin.locale.connectionError; displayMessage(plugin.locale[msg].format([tiddler.title, desc])); }; config.macros.saveToWeb = { // XXX: hijack existing sync macro? locale: { // TODO: merge with plugin.locale? btnLabel: "save to web", btnTooltip: "synchronize changes", btnAccessKey: null }, handler: function(place, macroName, params, wikifier, paramString, tiddler) { createTiddlyButton(place, this.locale.btnLabel, this.locale.btnTooltip, plugin.sync, null, null, this.locale.btnAccessKey); } }; // hijack saveChanges to trigger remote saving var _saveChanges = saveChanges; saveChanges = function(onlyIfDirty, tiddlers) { if(window.location.protocol == "file:") { _saveChanges.apply(this, arguments); } else { plugin.sync(tiddlers); } }; // override removeTiddler to flag tiddler as deleted -- XXX: use hijack to preserve compatibility? TiddlyWiki.prototype.removeTiddler = function(title) { // XXX: should override deleteTiddler instance method? var tiddler = this.fetchTiddler(title); if(tiddler) { tiddler.tags = ["excludeLists", "excludeSearch", "excludeMissing"]; tiddler.text = plugin.locale.removedNotice; tiddler.fields.deleted = "true"; // XXX: rename to removed/tiddlerRemoved? tiddler.fields.changecount = "1"; this.notify(title, true); this.setDirty(true); } }; // hijack ImportTiddlers wizard to handle cross-domain restrictions var _onOpen = config.macros.importTiddlers.onOpen; config.macros.importTiddlers.onOpen = function(ev) { var btn = $(resolveTarget(ev)); var url = btn.closest(".wizard").find("input[name=txtPath]").val(); if(window.location.protocol != "file:" && url.indexOf("://") != -1) { var host = url.split("/")[2]; var macro = config.macros.importTiddlers; if(host != window.location.host) { btn.text(macro.cancelLabel).attr("title", macro.cancelPrompt); btn[0].onclick = macro.onCancel; $('<span class="status" />').text(plugin.locale.hostError).insertAfter(btn); return false; } } return _onOpen.apply(this, arguments); }; })(jQuery); //}}}
/*** |''Name''|GroupByPlugin| |''Description''|Mimics allTags macro to provide ways of creating lists grouping tiddlers by any field| |''Version''|0.6.1| |''Author''|Jon Robson| |''Status''|beta| !Usage {{{<<groupBy tags>>}}} mimics allTags macro {{{<<groupBy server.bag>>}}} groups by the server.bag field (this version contains TiddlySpace specific code for turning a bag into a space name) {{{groupBy modified dateFormat:"YYYY"}}} group tiddlers by year. {{{<<groupBy tags exclude:excludeLists exclude:systemConfig>>}}} group tiddlers by tag but exclude the tags with values excludeLists and systemConfig Within that group you can also exclude things by filter {{{groupBy modifier filter:[tag[film]]}}} will group tiddlers tagged with film by modifier. ***/ //{{{ (function($) { var taglocale = config.views.wikified.tag; var macro = config.macros.groupBy = { locale: { tooltip: "all tiddlers in group %0", noTiddlers: "no tiddlers", openAllText: taglocale.openAllText, openAllTooltip: taglocale.openAllTooltip, openTiddler: "open tiddler with title %0" }, morpher: { // TODO: note currently the following 2 morphers are TiddlySpace specific and probably should be in separate plugin "server.workspace": function(value, options) { return macro.morpher["server.bag"](value.replace("bags/", "").replace("recipes/", "")); }, "server.bag": function(value, options) { if(typeof(value) !== "string") { return false; } else if(value.indexOf("_public") === -1 && value.indexOf("_private") === -1) { value = "*%0".format(value); // add star for non-space bags. } return value.replace("_public", "").replace("_private", ""); }, created: function(value, options) { return value.formatString(options.dateFormat || "DD MMM YYYY"); }, modified: function(value, options) { return macro.morpher.created(value, options); } }, handler: function(place, macroName, params, wikifier, paramString) { var field = params[0] || "server.workspace"; var dateFormat = params[1] || "DD MMM YYYY"; var container = $("<div />").attr("macroName", macroName).addClass("groupBy"). attr("refresh", "macro").attr("fieldName", field). attr("paramString", paramString). attr("dateFormat", dateFormat).appendTo(place)[0]; macro.refresh(container); }, isTypeArray: function(value) { var valueType = typeof value; if(valueType === "object" && typeof value.length === "number" && !(value.propertyIsEnumerable("length")) && typeof value.splice === "function") { //is Array return true; } else { return false; } }, _onClickGroup: function(ev, options) { var i, target = ev.target, locale = macro.locale; var tiddlers = $(target).closest(".templateContainer").data("tiddlers"); var popup = $(Popup.create(target)).addClass("taggedTiddlerList")[0]; var value = $(target).attr("value"); var openAll = createTiddlyButton($("<li />").appendTo(popup)[0], locale.openAllText.format(value), locale.openAllTooltip); $(openAll).click(function(ev) { story.displayTiddlers(ev.target, tiddlers); return false; }); var listBreak = $("<li />").addClass("listBreak").html("<div />").appendTo(popup); for(i = 0; i < tiddlers.length; i++) { var item = $("<li />").appendTo(popup)[0]; var template = store.getTiddlerText(options.template) || macro.template; wikify(template, item, null, tiddlers[i]); } listBreak.clone().appendTo(popup); $(createTiddlyLink($("<li />").appendTo(popup)[0], value, false)). text(locale.openTiddler.format(value)); Popup.show(); ev.stopPropagation(); return false; }, _refresh: function(container, tiddlers, options) { var totalGroups = 0, locale = macro.locale, i, j; var excludeValues = options.exclude; var values = {}, value_ids = []; var field = options.field; var morpher = macro.morpher[field] || function(value) { return value; }; for(i = 0; i < tiddlers.length; i++) { var tiddler = tiddlers[i]; var value = tiddler[field] || tiddler.fields[field]; value = macro.isTypeArray(value) ? value : [ value ]; for(j = 0; j < value.length; j++) { var v = morpher(value[j], options); if(v && $.inArray(v, excludeValues) === -1) { totalGroups += 1; if(!values[v]) { values[v] = []; } values[v].push(tiddler); value_ids.pushUnique(v); } } } var ul = $("<ul />").appendTo(container)[0]; if(totalGroups === 0) { $("<li />").addClass("listTitle").text(locale.noTiddlers); } value_ids = value_ids.sort(); var groupTemplate = store.getTiddlerText(options.groupTemplate); var onClick = function(ev) { macro._onClickGroup(ev, options); }; for(i = 0; i < value_ids.length; i++) { var title = value_ids[i]; var info = getTiddlyLinkInfo(title); tiddlers = values[title]; var btn = createTiddlyButton($("<li />").appendTo(ul)[0], "%0 (%1)".format(title, tiddlers.length), locale.tooltip.format(title), null, info.classes); if(groupTemplate) { $(btn).empty(); wikify(groupTemplate, btn, null, tiddlers[0]); } $(btn).click(onClick).attr("value", title).attr("refresh", "link").attr("tiddlyLink", title); $(btn).addClass("templateContainer").data("tiddlers", tiddlers); } }, refresh: function(container) { container = $(container).empty(); var paramString = container.attr("paramString"); var args = paramString.parseParams("name", null, true, false, true)[0]; var options = { field: container.attr("fieldName"), dateFormat: container.attr("dateFormat"), exclude: args.exclude || [], template: args.template ? args.template[0] : false, groupTemplate: args.groupTemplate ? args.groupTemplate[0] : "" }; var tiddlers = args.filter ? store.filterTiddlers(args.filter[0]) : store.getTiddlers("title"); macro._refresh(container, tiddlers, options); }, template: "<<view title link>>" }; }(jQuery)); //}}}
Es la ciencia que estudia todo lo relacionado con el ciclo del agua en la Naturaleza: las aguas subterráneas, las fuentes, los ríos,...
/*** |''Name''|TiddlySpaceFilters| |''Description''|provide TiddlySpace-specific filter extensions| |''Author''|Jon Robson| |''Version''|0.6.1| |''Status''|@@beta@@| |''CoreVersion''|2.6.2| |''Requires''|TiddlySpaceConfig| |''License''|[[BSD|http://www.opensource.org/licenses/bsd-license.php]]| !Usage {{{ <<tsList Private>> <<tsList Public>> <<tsList Draft>> }}} !Code ***/ //{{{ (function($) { var tiddlyspace = config.extensions.tiddlyspace; var privateBag = tiddlyspace.getCurrentBag("private"); var publicBag = tiddlyspace.getCurrentBag("public"); config.filterHelpers = { is: { "private": function(tiddler) { var bag = tiddler.fields["server.bag"]; return bag == privateBag; }, "public": function(tiddler) { var bag = tiddler.fields["server.bag"]; return bag == publicBag; }, draft: function(tiddler) { var fields = tiddler.fields; var bag = fields["server.bag"]; return (privateBag == bag && fields["publish.name"]) ? true : false; }, local: function(tiddler) { return config.filterHelpers.is["public"](tiddler) || config.filterHelpers.is["private"](tiddler); }, unsynced: function(tiddler) { return tiddler ? tiddler.isTouched() : false; } } }; config.filters.is = function(results, match) { var candidates = store.getTiddlers("title"); var type = match[3]; for (var i = 0; i < candidates.length; i++) { var tiddler = candidates[i]; var helper = config.filterHelpers.is[type]; if(helper && helper(tiddler)) { results.pushUnique(tiddler); } } return results; }; })(jQuery); //}}}
/*** |''Name''|DiffFormatter| |''Description''|highlighting of text comparisons| |''Author''|FND| |''Version''|0.9.0| |''Status''|beta| |''Source''|http://svn.tiddlywiki.org/Trunk/contributors/FND/formatters/DiffFormatter.js| |''CodeRepository''|http://svn.tiddlywiki.org/Trunk/contributors/FND/| |''License''|[[BSD|http://www.opensource.org/licenses/bsd-license.php]]| |''Keywords''|formatting| !Description Highlights changes in a unified [[diff|http://en.wikipedia.org/wiki/Diff#Unified_format]]. !Notes Based on Martin Budden's [[DiffFormatterPlugin|http://svn.tiddlywiki.org/Trunk/contributors/MartinBudden/formatters/DiffFormatterPlugin.js]]. !Usage The formatter is applied to blocks wrapped in <html><code>{{{diff{..}}}</code></html> within tiddlers tagged with "diff". !Revision History !!v0.9 (2010-04-07) * initial release; fork of DiffFormatterPlugin !StyleSheet .diff { white-space: pre; font-family: monospace; } .diff ins, .diff del { display: block; text-decoration: none; } .diff ins { background-color: #dfd; } .diff del { background-color: #fdd; } .diff .highlight { background-color: [[ColorPalette::SecondaryPale]]; } !Code ***/ //{{{ (function() { config.shadowTiddlers.StyleSheetDiffFormatter = store.getTiddlerText(tiddler.title + "##StyleSheet"); store.addNotification("StyleSheetDiffFormatter", refreshStyles); var formatters = [{ name: "diffWrapper", match: "^\\{\\{diff\\{\n", // XXX: suboptimal termRegExp: /(.*\}\}\})$/mg, handler: function(w) { var el = createTiddlyElement(w.output, "div", null, "diff"); w.subWikifyTerm(el, this.termRegExp); } }, { name: "diffRange", match: "^(?:@@|[+\\-]{3}) ", lookaheadRegExp: /^(?:@@|[+\-]{3}) .*\n/mg, handler: function(w) { createTiddlyElement(w.output, "div", null, "highlight"). innerHTML = "…"; this.lookaheadRegExp.lastIndex = w.matchStart; var lookaheadMatch = this.lookaheadRegExp.exec(w.source); if(lookaheadMatch && lookaheadMatch.index == w.matchStart) { w.nextMatch = this.lookaheadRegExp.lastIndex; } } }, { name: "diffAdded", match: "^\\+", termRegExp: /(\n)/mg, handler: function(w) { var el = createTiddlyElement(w.output, "ins", null, "added"); w.subWikifyTerm(el, this.termRegExp); } }, { name: "diffRemoved", match: "^-", termRegExp: /(\n)/mg, handler: function(w) { var el = createTiddlyElement(w.output, "del", null, "removed"); w.subWikifyTerm(el, this.termRegExp); } } ]; config.parsers.diffFormatter = new Formatter(formatters); config.parsers.diffFormatter.format = "diff"; config.parsers.diffFormatter.formatTag = "diff"; })(); //}}}
El término //teledetección// incluye un montón de técnicas de estudio de nuestro planeta desde las alturas. Las más importantes son las que se basan en sensores que viajan a bordo de los satélites espaciales que orbitan alrededor de la Tierra en número cada vez más grande. En este módulo estudiaremos la aportación tan importante que hacen estas técnicas en el mundo de la Geología. **Actividades con [[google earth|https://docs.google.com/file/d/0Bw7EgsxrDzDyMUtmUFlOLW4zUjQ/edit?usp=sharing]] ---- El dossier de este módulo se presentará en forma de página web que haremos con Google Sites. Incluirá: ***[[Investigación sobre las dunas del desierto de Namib]]. (hecha con Google Earth)
// //''Name:'' Popnote Plugin // //''Author:'' Tiago Dionízio // //''Modified:''Steve Schneider // //''Source:'' http://mega.ist.utl.pt/~tngd/twiki/twiki.cgi/TWPlugins.html // //''Syntax:'' // //{{{<<popnote 'Text to display' 'Tiddler name' [open]>>}}} // //''Description:'' // // Create a direct link to a tiddler using a normal button and a button that expands the specified tiddler inside the current tiddler. // // To display the included tiddler initially visible just pass ''open'' in the third parameter (not actually the only possible value but you can interpret it like that). // // The expand button can also collapse the included tiddler, this will actually remove the included contents. If the included tiddler is changed you can simply expand it again. // //''Modifications:'' // // // //Name changed from Quote to Popnote // //''Code section:'' // (you should not need to alter anything below here)// {{{ version.extensions.popnote = { major: 1, minor: 0, revision: 0, date: new Date(2005, 07, 15)}; config.macros.popnote = {}; config.macros.popnote.onClick = function(e) { if (!e) var e = window.event; var container = this.nextSibling; var isOpen = container.style.display == "block"; var tick; this.removeChild(this.firstChild); if (isOpen) { container.style.display = "none"; tick = "+"; removeChildren(container); } else { tick = "-"; var title = container.getAttribute("tiddlyLink"); var text = store.getTiddlerText(title); removeChildren(container); if(text) wikify(text,container,null,null); container.style.display = "block"; } this.appendChild(document.createTextNode(tick)); } config.macros.popnote.handler = function(place,macroName,params) { // param 0: text button // param 1: tiddler name to display // param 2: initial display by default var label = params[0]; var title = params[1]; var isOpen = params[2] != null; var link = createTiddlyLink(place,title,false); link.appendChild(document.createTextNode(label)); var btn = createTiddlyButton(place, isOpen ? "-" : "+", "expand tiddler " + title, this.onClick); var container = createTiddlyElement(place, "blockquote"); container.setAttribute("tiddlyLink", title); container.style.display = isOpen ? "block" : "none"; if (isOpen) { var text = store.getTiddlerText(title); if(text) wikify(text,container,null,null); } } }}}
//{{{ /* Version 0.83rc4 */ /* Copyright 2008-2011 Matthias Ehmann, Michael Gerhaeuser, Carsten Miller, Bianca Valentin, Alfred Wassermann, Peter Wilfahrt This file is part of JSXGraph. JSXGraph is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. JSXGraph 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 Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with JSXGraph. If not, see <http://www.gnu.org/licenses/>. */ var JXG={};(function(){var d,e;JXG.countDrawings=0;JXG.countTime=0;JXG.require=function(f){};JXG.rendererFiles=[];JXG.rendererFiles.svg="SVGRenderer";JXG.rendererFiles.vml="VMLRenderer";JXG.rendererFiles.canvas="CanvasRenderer";JXG.baseFiles=null;JXG.requirePath="";for(d=0;d<document.getElementsByTagName("script").length;d++){e=document.getElementsByTagName("script")[d];if(e.src&&e.src.match(/loadjsxgraphInOneFile\.js(\?.*)?$/)){JXG.requirePath=e.src.replace(/loadjsxgraphInOneFile\.js(\?.*)?$/,"")}}JXG.serverBase=JXG.requirePath+"server/"})();JXG.Math=(function(e,d,f){var g=function(j){var h,k;if(j.memo){return j.memo}h={};k=Array.prototype.join;return(j.memo=function(){var l=k.call(arguments);return(h[l]!==f)?h[l]:h[l]=j.apply(this,arguments)})};return{eps:0.000001,vector:function(l,k){var j,h;k=k||0;j=new Array(d.ceil(l));for(h=0;h<l;h++){j[h]=k}return j},matrix:function(s,h,q){var p,l,k;q=q||0;h=h||s;p=new Array(d.ceil(s));for(l=0;l<s;l++){p[l]=new Array(d.ceil(h));for(k=0;k<h;k++){p[l][k]=q}}return p},identity:function(l,h){var k,j;if((h===f)&&(typeof h!=="number")){h=l}k=this.matrix(l,h);for(j=0;j<d.min(l,h);j++){k[j][j]=1}return k},matVecMult:function(r,q){var h=r.length,u=q.length,p=[],l,t,j;if(u===3){for(l=0;l<h;l++){p[l]=r[l][0]*q[0]+r[l][1]*q[1]+r[l][2]*q[2]}}else{for(l=0;l<h;l++){t=0;for(j=0;j<u;j++){t+=r[l][j]*q[j]}p[l]=t}}return p},matMatMult:function(l,h){var q=l.length,p=q>0?h[0].length:0,w=h.length,v=this.matrix(q,p),u,t,x,r;for(u=0;u<q;u++){for(t=0;t<p;t++){x=0;for(r=0;r<w;r++){x+=l[u][r]*h[r][t]}v[u][t]=x}}return v},transpose:function(r){var l,p,k,h,q;h=r.length;q=r.length>0?r[0].length:0;l=this.matrix(q,h);for(p=0;p<q;p++){for(k=0;k<h;k++){l[p][k]=r[k][p]}}return l},inverse:function(y){var v,u,t,B,z,h,x,q=y.length,m=[],l=[],w=[];for(v=0;v<q;v++){m[v]=[];for(u=0;u<q;u++){m[v][u]=y[v][u]}l[v]=v}for(u=0;u<q;u++){z=d.abs(m[u][u]);h=u;for(v=u+1;v<q;v++){if(d.abs(m[v][u])>z){z=d.abs(m[v][u]);h=v}}if(z<=e.Math.eps){return false}if(h>u){for(t=0;t<q;t++){x=m[u][t];m[u][t]=m[h][t];m[h][t]=x}x=l[u];l[u]=l[h];l[h]=x}B=1/m[u][u];for(v=0;v<q;v++){m[v][u]*=B}m[u][u]=B;for(t=0;t<q;t++){if(t!=u){for(v=0;v<q;v++){if(v!=u){m[v][t]-=m[v][u]*m[u][t]}}m[u][t]=-B*m[u][t]}}}for(v=0;v<q;v++){for(t=0;t<q;t++){w[l[t]]=m[v][t]}for(t=0;t<q;t++){m[v][t]=w[t]}}return m},innerProduct:function(j,h,m){var k,l=0;if((m===f)||(typeof m!=="number")){m=j.length}for(k=0;k<m;k++){l+=j[k]*h[k]}return l},crossProduct:function(j,h){return[j[1]*h[2]-j[2]*h[1],j[2]*h[0]-j[0]*h[2],j[0]*h[1]-j[1]*h[0]]},factorial:g(function(h){if(h<0){return NaN}h=d.floor(h);if(h===0||h===1){return 1}return h*arguments.callee(h-1)}),binomial:g(function(m,j){var h,l;if(j>m||j<0){return NaN}j=d.floor(j);m=d.floor(m);if(j===0||j===m){return 1}h=1;for(l=0;l<j;l++){h*=(m-l);h/=(l+1)}return h}),cosh:function(h){return(d.exp(h)+d.exp(-h))*0.5},sinh:function(h){return(d.exp(h)-d.exp(-h))*0.5},pow:function(j,h){if(j===0){if(h===0){return 1}else{return 0}}if(d.floor(h)===h){return d.pow(j,h)}else{if(j>0){return d.exp(h*d.log(d.abs(j)))}else{return NaN}}},squampow:function(k,j){var h;if(d.floor(j)===j){h=1;if(j<0){k=1/k;j*=-1}while(j!=0){if(j&1){h*=k}j>>=1;k*=k}return h}else{return this.pow(k,j)}},normalize:function(k){var h=2*k[3],l=k[4]/(h),m,j;k[5]=l;k[6]=-k[1]/h;k[7]=-k[2]/h;if(l===Infinity||isNaN(l)){m=d.sqrt(k[1]*k[1]+k[2]*k[2]);k[0]/=m;k[1]/=m;k[2]/=m;k[3]=0;k[4]=1}else{if(d.abs(l)>=1){k[0]=(k[6]*k[6]+k[7]*k[7]-l*l)/(2*l);k[1]=-k[6]/l;k[2]=-k[7]/l;k[3]=1/(2*l);k[4]=1}else{j=(l<=0)?(-1):(1);k[0]=j*(k[6]*k[6]+k[7]*k[7]-l*l)*0.5;k[1]=-j*k[6];k[2]=-j*k[7];k[3]=j/2;k[4]=j*l}}return k}}})(JXG,Math);JXG.Math.Numerics=(function(e,d){var f={rk4:{s:4,A:[[0,0,0,0],[0.5,0,0,0],[0,0.5,0,0],[0,0,1,0]],b:[1/6,1/3,1/3,1/6],c:[0,0.5,0.5,1]},heun:{s:2,A:[[0,0],[1,0]],b:[0.5,0.5],c:[0,1]},euler:{s:1,A:[[0]],b:[1],c:[0]}};return{Gauss:function(g,s){var u=e.Math.eps,h=g.length>0?g[0].length:0,q,t,r,p,m,l=function(v,n){var k=this[v];this[v]=this[n];this[n]=k};if((h!==s.length)||(h!==g.length)){throw new Error("JXG.Math.Numerics.Gauss: Dimensions don't match. A must be a square matrix and b must be of the same length as A.")}q=new Array(h);t=s.slice(0,h);for(r=0;r<h;r++){q[r]=g[r].slice(0,h)}for(p=0;p<h;p++){for(r=h-1;r>p;r--){if(d.abs(q[r][p])>u){if(d.abs(q[p][p])<u){l.apply(q,[r,p]);l.apply(t,[r,p])}else{q[r][p]/=q[p][p];t[r]-=q[r][p]*t[p];for(m=p+1;m<h;m++){q[r][m]-=q[r][p]*q[p][m]}}}}if(d.abs(q[p][p])<u){throw new Error("JXG.Math.Numerics.Gauss(): The given matrix seems to be singular.")}}this.backwardSolve(q,t,true);return t},backwardSolve:function(r,k,q){var h,g,s,p,l;if(q){h=k}else{h=k.slice(0,k.length)}g=r.length;s=r.length>0?r[0].length:0;for(p=g-1;p>=0;p--){for(l=s-1;l>p;l--){h[p]-=r[p][l]*h[l]}h[p]/=r[p][p]}return h},gaussBareiss:function(v){var l,u,y,q,m,g,h,r,w,x=e.Math.eps;h=v.length;if(h<=0){return 0}if(v[0].length<h){h=v[0].length}r=new Array(h);for(q=0;q<h;q++){r[q]=v[q].slice(0,h)}u=1;y=1;for(l=0;l<h-1;l++){g=r[l][l];if(d.abs(g)<x){for(q=0;q<h;q++){if(d.abs(r[q][l])>=x){break}}if(q==h){return 0}for(m=l;m<h;m++){w=r[q][m];r[q][m]=r[l][m];r[l][m]=w}y=-y;g=r[l][l]}for(q=l+1;q<h;q++){for(m=l+1;m<h;m++){w=g*r[q][m]-r[q][l]*r[l][m];r[q][m]=w/u}}u=g}return y*r[h-1][h-1]},det:function(g){return this.gaussBareiss(g)},Jacobi:function(z){var s,q,p,g,t,y,x,B=e.Math.eps,w=0,v,r,l=z.length,m=[[0,0,0],[0,0,0],[0,0,0]],h=[[0,0,0],[0,0,0],[0,0,0]],u=0;for(s=0;s<l;s++){for(q=0;q<l;q++){m[s][q]=0;h[s][q]=z[s][q];w+=d.abs(h[s][q])}m[s][s]=1}if(l==1){return[h,m]}if(w<=0){return[h,m]}w/=(l*l);do{v=0;r=0;for(q=1;q<l;q++){for(s=0;s<q;s++){g=d.abs(h[s][q]);if(g>r){r=g}v+=g;if(g>=B){g=d.atan2(2*h[s][q],h[s][s]-h[q][q])*0.5;t=d.sin(g);y=d.cos(g);for(p=0;p<l;p++){x=h[p][s];h[p][s]=y*x+t*h[p][q];h[p][q]=-t*x+y*h[p][q];x=m[p][s];m[p][s]=y*x+t*m[p][q];m[p][q]=-t*x+y*m[p][q]}h[s][s]=y*h[s][s]+t*h[q][s];h[q][q]=-t*h[s][q]+y*h[q][q];h[s][q]=0;for(p=0;p<l;p++){h[s][p]=h[p][s];h[q][p]=h[p][q]}}}}u++}while(d.abs(v)/w>B&&u<2000);return[h,m]},NewtonCotes:function(g,k,h){var l=0,q=h&&typeof h.number_of_nodes==="number"?h.number_of_nodes:28,n={trapez:true,simpson:true,milne:true},r=h&&h.integration_type&&n.hasOwnProperty(h.integration_type)&&n[h.integration_type]?h.integration_type:"milne",p=(g[1]-g[0])/q,m,j,s;switch(r){case"trapez":l=(k(g[0])+k(g[1]))*0.5;m=g[0];for(j=0;j<q-1;j++){m+=p;l+=k(m)}l*=p;break;case"simpson":if(q%2>0){throw new Error("JSXGraph: INT_SIMPSON requires config.number_of_nodes dividable by 2.")}s=q/2;l=k(g[0])+k(g[1]);m=g[0];for(j=0;j<s-1;j++){m+=2*p;l+=2*k(m)}m=g[0]-p;for(j=0;j<s;j++){m+=2*p;l+=4*k(m)}l*=p/3;break;default:if(q%4>0){throw new Error("JSXGraph: Error in INT_MILNE: config.number_of_nodes must be a multiple of 4")}s=q*0.25;l=7*(k(g[0])+k(g[1]));m=g[0];for(j=0;j<s-1;j++){m+=4*p;l+=14*k(m)}m=g[0]-3*p;for(j=0;j<s;j++){m+=4*p;l+=32*(k(m)+k(m+2*p))}m=g[0]-2*p;for(j=0;j<s;j++){m+=4*p;l+=12*k(m)}l*=2*p/45}return l},I:function(g,h){return this.NewtonCotes(g,h,{number_of_nodes:16,integration_type:"milne"})},Newton:function(p,g,j){var k=0,m=e.Math.eps,n=p.apply(j,[g]),l=1,q;if(e.isArray(g)){g=g[0]}while(k<50&&d.abs(n)>m){q=this.D(p,j)(g);l+=2;if(d.abs(q)>m){g-=n/q}else{g+=(d.random()*0.2-1)}n=p.apply(j,[g]);l++;k++}return g},root:function(j,g,h){return this.fzero(j,g,h)},Neville:function(l){var h=[],g=function(m){return function(x,n){var q,w,y,z=e.Math.binomial,v=l.length,p=v-1,r=0,u=0;if(!n){y=1;for(q=0;q<v;q++){h[q]=z(p,q)*y;y*=(-1)}}w=x;for(q=0;q<v;q++){if(w===0){return l[q][m]()}else{y=h[q]/w;w--;r+=l[q][m]()*y;u+=y}}return r/u}},k=g("X"),j=g("Y");return[k,j,0,function(){return l.length-1}]},splineDef:function(s,r){var g=d.min(s.length,r.length),j,m,h,p=[],q=[],k=[],v=[],t=[],u=[];if(g===2){return[0,0]}for(m=0;m<g;m++){j={X:s[m],Y:r[m]};k.push(j)}k.sort(function(n,l){return n.X-l.X});for(m=0;m<g;m++){s[m]=k[m].X;r[m]=k[m].Y}for(m=0;m<g-1;m++){v.push(s[m+1]-s[m])}for(m=0;m<g-2;m++){t.push(6*(r[m+2]-r[m+1])/(v[m+1])-6*(r[m+1]-r[m])/(v[m]))}p.push(2*(v[0]+v[1]));q.push(t[0]);for(m=0;m<g-3;m++){h=v[m+1]/p[m];p.push(2*(v[m+1]+v[m+2])-h*v[m+1]);q.push(t[m+1]-h*q[m])}u[g-3]=q[g-3]/p[g-3];for(m=g-4;m>=0;m--){u[m]=(q[m]-(v[m+1]*u[m+1]))/p[m]}for(m=g-3;m>=0;m--){u[m+1]=u[m]}u[0]=0;u[g-1]=0;return u},splineEval:function(h,z,v,B){var k=d.min(z.length,v.length),p=1,m=false,A=[],r,q,w,u,t,s,g;if(e.isArray(h)){p=h.length;m=true}else{h=[h]}for(r=0;r<p;r++){if((h[r]<z[0])||(z[r]>z[k-1])){return NaN}for(q=1;q<k;q++){if(h[r]<=z[q]){break}}q--;w=v[q];u=(v[q+1]-v[q])/(z[q+1]-z[q])-(z[q+1]-z[q])/6*(B[q+1]+2*B[q]);t=B[q]/2;s=(B[q+1]-B[q])/(6*(z[q+1]-z[q]));g=h[r]-z[q];A.push(w+(u+(t+s*g)*g)*g)}if(m){return A}else{return A[0]}},generatePolynomialTerm:function(g,m,h,j){var l=[],k;for(k=m;k>=0;k--){l=l.concat(["(",g[k].toPrecision(j),")"]);if(k>1){l=l.concat(["*",h,"<sup>",k,"<","/sup> + "])}else{if(k===1){l=l.concat(["*",h," + "])}}}return l.join("")},lagrangePolynomial:function(j){var g=[],h=function(w,l){var p,m,t,v,y,q=0,r=0,u,n;t=j.length;if(!l){for(p=0;p<t;p++){g[p]=1;v=j[p].X();for(m=0;m<t;m++){if(m!=p){g[p]*=(v-j[m].X())}}g[p]=1/g[p]}u=[];for(n=0;n<t;n++){u.push([1])}}for(p=0;p<t;p++){v=j[p].X();if(w===v){return j[p].Y()}else{y=g[p]/(w-v);r+=y;q+=y*j[p].Y()}}return q/r};h.getTerm=function(){return""};return h},regressionPolynomial:function(l,q,p){var g,h,n,m,j,r,k="";if(e.isPoint(l)&&typeof l.Value=="function"){h=function(){return l.Value()}}else{if(e.isFunction(l)){h=l}else{if(e.isNumber(l)){h=function(){return l}}else{throw new Error("JSXGraph: Can't create regressionPolynomial from degree of type'"+(typeof l)+"'.")}}}if(arguments.length==3&&e.isArray(q)&&e.isArray(p)){j=0}else{if(arguments.length==2&&e.isArray(q)&&q.length>0&&e.isPoint(q[0])){j=1}else{throw new Error("JSXGraph: Can't create regressionPolynomial. Wrong parameters.")}}r=function(G,t){var w,v,D,A,F,u,E,H,C,z=q.length;C=d.floor(h());if(!t){if(j===1){n=[];m=[];for(w=0;w<z;w++){n[w]=q[w].X();m[w]=q[w].Y()}}if(j===0){n=[];m=[];for(w=0;w<z;w++){if(e.isFunction(q[w])){n.push(q[w]())}else{n.push(q[w])}if(e.isFunction(p[w])){m.push(p[w]())}else{m.push(p[w])}}}D=[];for(v=0;v<z;v++){D.push([1])}for(w=1;w<=C;w++){for(v=0;v<z;v++){D[v][w]=D[v][w-1]*n[v]}}F=m;A=e.Math.transpose(D);u=e.Math.matMatMult(A,D);E=e.Math.matVecMult(A,F);g=e.Math.Numerics.Gauss(u,E);k=e.Math.Numerics.generatePolynomialTerm(g,C,"x",3)}H=g[C];for(w=C-1;w>=0;w--){H=(H*G+g[w])}return H};r.getTerm=function(){return k};return r},bezier:function(j){var g,h=function(k){return function(m,l){var q=d.floor(m)*3,p=m%1,n=1-p;if(!l){g=d.floor(j.length/3)}if(m<0){return j[0][k]()}if(m>=g){return j[j.length-1][k]()}if(isNaN(m)){return NaN}return n*n*(n*j[q][k]()+3*p*j[q+1][k]())+(3*n*j[q+2][k]()+p*j[q+3][k]())*p*p}};return[h("X"),h("Y"),0,function(){return d.floor(j.length/3)}]},bspline:function(k,g){var l,n=[],m=function(s,p){var q,r=[];for(q=0;q<s+p+1;q++){if(q<p){r[q]=0}else{if(q<=s){r[q]=q-p+1}else{r[q]=s-p+2}}}return r},j=function(z,B,p,q,A){var u,r,x,w,y,v=[];if(B[A]<=z&&z<B[A+1]){v[A]=1}else{v[A]=0}for(u=2;u<=q;u++){for(r=A-u+1;r<=A;r++){if(r<=A-u+1||r<0){x=0}else{x=v[r]}if(r>=A){w=0}else{w=v[r+1]}y=B[r+u-1]-B[r];if(y==0){v[r]=0}else{v[r]=(z-B[r])/y*x}y=B[r+u]-B[r+1];if(y!=0){v[r]+=(B[r+u]-z)/y*w}}}return v},h=function(p){return function(w,r){var q=k.length,A,v,x,z=q-1,u=g;if(z<=0){return NaN}if(z+2<=u){u=z+1}if(w<=0){return k[0][p]()}if(w>=z-u+2){return k[z][p]()}l=m(z,u);x=d.floor(w)+u-1;n=j(w,l,z,u,x);A=0;for(v=x-u+1;v<=x;v++){if(v<q&&v>=0){A+=k[v][p]()*n[v]}}return A}};return[h("X"),h("Y"),0,function(){return k.length-1}]},D:function(k,l){var j=0.00001,g=1/(j*2);if(arguments.length==1||(arguments.length>1&&!e.exists(arguments[1]))){return function(h,m){return(k(h+j,m)-k(h-j,m))*g}}else{return function(h,m){return(k.apply(l,[h+j,m])-k.apply(l,[h-j,m]))*g}}},riemann:function(s,m,t,k,p){var l=[],A=[],r,q=0,z,w=k,u,h,v,g;m=d.floor(m);l[q]=w;A[q]=0;if(m>0){z=(p-k)/m;g=z*0.01;for(r=0;r<m;r++){if(t==="right"){u=s(w+z)}else{if(t==="middle"){u=s(w+z*0.5)}else{if((t==="left")||(t==="trapezodial")){u=s(w)}else{if(t==="lower"){u=s(w);for(h=w+g;h<=w+z;h+=g){v=s(h);if(v<u){u=v}}}else{u=s(w);for(h=w+g;h<=w+z;h+=g){v=s(h);if(v>u){u=v}}}}}}q++;l[q]=w;A[q]=u;q++;w+=z;if(t==="trapezodial"){u=s(w)}l[q]=w;A[q]=u;q++;l[q]=w;A[q]=0}}return[l,A]},riemannsum:function(p,k,r,j,l){var q=0,m,v,u=j,s,h,t,g;k=d.floor(k);if(k>0){v=(l-j)/k;g=v*0.01;for(m=0;m<k;m++){if(r==="right"){s=p(u+v)}else{if(r==="middle"){s=p(u+v*0.5)}else{if(r==="trapezodial"){s=0.5*(p(u+v)+p(u))}else{if(r==="left"){s=p(u)}else{if(r==="lower"){s=p(u);for(h=u+g;h<=u+v;h+=g){t=p(h);if(t<s){s=t}}}else{s=p(u);for(h=u+g;h<=u+v;h+=g){t=p(h);if(t>s){s=t}}}}}}}q+=v*s;u+=v}}return q},rungeKutta:function(g,H,p,m,G){var q=[],n=[],F=(p[1]-p[0])/m,v=p[0],J,E,D,B,A,C=H.length,w,u=[],z=0;if(e.isString(g)){g=f[g]||f.euler}w=g.s;for(J=0;J<C;J++){q[J]=H[J]}for(E=0;E<m;E++){u[z]=[];for(J=0;J<C;J++){u[z][J]=q[J]}z++;B=[];for(D=0;D<w;D++){for(J=0;J<C;J++){n[J]=0}for(A=0;A<D;A++){for(J=0;J<C;J++){n[J]+=(g.A[D][A])*F*B[A][J]}}for(J=0;J<C;J++){n[J]+=q[J]}B.push(G(v+g.c[D]*F,n))}for(J=0;J<C;J++){n[J]=0}for(A=0;A<w;A++){for(J=0;J<C;J++){n[J]+=g.b[A]*B[A][J]}}for(J=0;J<C;J++){q[J]=q[J]+F*n[J]}v+=F}return u},fzero:function(G,H,M){var z=e.Math.eps,g=50,y=0,B=0,r=z,K,J,I,A,x,w,L,j,D,E,n,h,C,F,v,s,m,l,t,k;if(e.isArray(H)){if(H.length<2){throw new Error("JXG.Math.Numerics.fzero: length of array x0 has to be at least two.")}K=H[0];A=G.apply(M,[K]);B++;J=H[1];x=G.apply(M,[J]);B++}else{K=H;A=G.apply(M,[K]);B++;if(K==0){L=1}else{L=K}j=[0.9*L,1.1*L,L-1,L+1,0.5*L,1.5*L,-L,2*L,-10*L,10*L];E=j.length;for(D=0;D<E;D++){J=j[D];x=G.apply(M,[J]);B++;if(A*x<=0){break}}if(J<K){n=K;K=J;J=n;h=A;A=x;x=h}}if(A*x>0){if(e.isArray(H)){return this.fminbr(G,[K,J],M)}else{return this.Newton(G,K,M)}}I=K;w=A;while(y<g){C=J-K;if(d.abs(w)<d.abs(x)){K=J;J=I;I=K;A=x;x=w;w=A}F=2*r*d.abs(J)+z*0.5;m=(I-J)*0.5;if(d.abs(m)<=F||d.abs(x)<=r){return J}if(d.abs(C)>=F&&d.abs(A)>d.abs(x)){t=I-J;if(K==I){l=x/A;v=t*l;s=1-l}else{s=A/w;l=x/w;k=x/A;v=k*(t*s*(s-l)-(J-K)*(l-1));s=(s-1)*(l-1)*(k-1)}if(v>0){s=-s}else{v=-v}if(v<(0.75*t*s-d.abs(F*s)*0.5)&&v<d.abs(C*s*0.5)){m=v/s}}if(d.abs(m)<F){if(m>0){m=F}else{m=-F}}K=J;A=x;J+=m;x=G.apply(M,[J]);B++;if((x>0&&w>0)||(x<0&&w<0)){I=K;w=A}y++}e.debug("fzero: maxiter="+g+" reached.");return J},fminbr:function(I,J,N){var M,K,m,u,s,h,k,j,A=(3-d.sqrt(5))*0.5,F=e.Math.eps,C=d.sqrt(e.Math.eps),g=50,E=0,z,L,H,n,D,B,y,l,G=0;if(!e.isArray(J)||J.length<2){throw new Error("JXG.Math.Numerics.fminbr: length of array x0 has to be at least two.")}M=J[0];K=J[1];u=M+A*(K-M);k=I.apply(N,[u]);G++;m=u;s=u;h=k;j=k;while(E<g){z=K-M;L=(M+K)*0.5;H=C*d.abs(m)+F/3;if(d.abs(m-L)+z*0.5<=2*H){return m}n=A*(m<L?K-m:M-m);if(d.abs(m-s)>=H){y=(m-s)*(h-k);B=(m-u)*(h-j);D=(m-u)*B-(m-s)*y;B=2*(B-y);if(B>0){D=-D}else{B=-B}if(d.abs(D)<d.abs(n*B)&&D>B*(M-m+2*H)&&D<B*(K-m-2*H)){n=D/B}}if(d.abs(n)<H){if(n>0){n=H}else{n=-H}}y=m+n;l=I.apply(N,[y]);G++;if(l<=h){if(y<m){K=m}else{M=m}u=s;s=m;m=y;k=j;j=h;h=l}else{if(y<m){M=y}else{K=y}if(l<=j||s==m){u=s;s=y;k=j;j=l}else{if(l<=k||u==m||u==s){u=y;k=l}}}E++}e.debug("fminbr: maxiter="+g+" reached.");return m},reuleauxPolygon:function(j,k){var n=d.PI*2,h=n/k,m=(k-1)/2,l,p=0,g=function(r,q){return function(u,w){if(!w){p=j[0].Dist(j[m]);l=e.Math.Geometry.rad([j[0].X()+1,j[0].Y()],j[0],j[(m)%k])}var v=(u%n+n)%n;var s=d.floor(v/h)%k;if(isNaN(s)){return s}v=v*0.5+s*h*0.5+l;return j[s][r]()+p*d[q](v)}};return[g("X","cos"),g("Y","sin"),0,d.PI*2]}}})(JXG,Math);JXG.Math.Statistics={};JXG.Math.Statistics.sum=function(e){var g,d,f=0;for(g=0,d=e.length;g<d;g++){f+=e[g]}return f};JXG.Math.Statistics.prod=function(e){var g,d,f=1;for(g=0,d=e.length;g<d;g++){f*=e[g]}return f};JXG.Math.Statistics.mean=function(d){if(d.length>0){return this.sum(d)/d.length}else{return 0}};JXG.Math.Statistics.median=function(e){var f,d;if(e.length>0){f=e.slice(0,e.length);f.sort(function(h,g){return h-g});d=f.length;if(d%2==1){return f[parseInt(d*0.5)]}else{return(f[d*0.5-1]+f[d*0.5])*0.5}}else{return 0}};JXG.Math.Statistics.variance=function(f){var e,h,g,d;if(f.length>1){e=this.mean(f);h=0;for(g=0,d=f.length;g<d;g++){h+=(f[g]-e)*(f[g]-e)}return h/(f.length-1)}else{return 0}};JXG.Math.Statistics.sd=function(d){return Math.sqrt(this.variance(d))};JXG.Math.Statistics.weightedMean=function(d,e){if(d.length!=e.length){return}if(d.length>0){return this.mean(this.multiply(d,e))}else{return 0}};JXG.Math.Statistics.max=function(e){var g,f,d;if(e.length==0){return NaN}g=e[0];for(f=1,d=e.length;f<d;f++){g=(e[f]>g)?(e[f]):g}return g};JXG.Math.Statistics.min=function(e){var g,f,d;if(e.length==0){return NaN}g=e[0];for(f=1,d=e.length;f<d;f++){g=(e[f]<g)?(e[f]):g}return g};JXG.Math.Statistics.range=function(d){return[this.min(d),this.max(d)]};JXG.Math.Statistics.diff=function(d){return d};JXG.Math.Statistics.min=function(e){var g,f,d;if(e.length==0){return NaN}g=e[0];for(f=1,d=e.length;f<d;f++){g=(e[f]<g)?(e[f]):g}return g};JXG.Math.Statistics.abs=function(e){var g,d,f=[];if(typeof JXG.isArray(arr1)){for(g=0,d=e.length;g<d;g++){f[g]=Math.abs(e[g])}}else{if(typeof e=="number"){return Math.abs(e)}else{f=null}}return f};JXG.Math.Statistics.add=function(f,e){var h,d,g=[];if(typeof JXG.isArray(f)&&typeof e=="number"){for(h=0,d=f.length;h<d;h++){g[h]=f[h]+e}}else{if(typeof f=="number"&&typeof JXG.isArray(e)){for(h=0,d=e.length;h<d;h++){g[h]=f+e[h]}}else{if(typeof JXG.isArray(f)&&typeof JXG.isArray(e)){for(h=0,d=Math.min(f.length,e.length);h<d;h++){g[h]=f[h]+e[h]}}else{if(typeof f=="number"&&typeof e=="number"){g=f+e}else{g=null}}}}return g};JXG.Math.Statistics.divide=function(f,e){var h,d,g=[];if(typeof JXG.isArray(f)&&typeof e=="number"){for(h=0,d=f.length;h<d;h++){g[h]=f[h]/e}}else{if(typeof f=="number"&&typeof JXG.isArray(e)){for(h=0,d=e.length;h<d;h++){g[h]=f/e[h]}}else{if(typeof JXG.isArray(f)&&typeof JXG.isArray(e)){for(h=0,d=Math.min(f.length,e.length);h<d;h++){g[h]=f[h]/e[h]}}else{if(typeof f=="number"&&typeof e=="number"){g=f/e}else{g=null}}}}return g};JXG.Math.Statistics.mod=function(f,e){var h,d,g=[];if(typeof JXG.isArray(f)&&typeof e=="number"){for(h=0,d=f.length;h<d;h++){g[h]=f[h]%e}}else{if(typeof f=="number"&&typeof JXG.isArray(e)){for(h=0,d=e.length;h<d;h++){g[h]=f%e[h]}}else{if(typeof JXG.isArray(f)&&typeof JXG.isArray(e)){for(h=0,d=Math.min(f.length,e.length);h<d;h++){g[h]=f[h]%e[h]}}else{if(typeof f=="number"&&typeof e=="number"){g=f%e}else{g=null}}}}return g};JXG.Math.Statistics.multiply=function(f,e){var h,d,g=[];if(typeof JXG.isArray(f)&&typeof e=="number"){for(h=0,d=f.length;h<d;h++){g[h]=f[h]*e}}else{if(typeof f=="number"&&typeof JXG.isArray(e)){for(h=0,d=e.length;h<d;h++){g[h]=f*e[h]}}else{if(typeof JXG.isArray(f)&&typeof JXG.isArray(e)){for(h=0,d=Math.min(f.length,e.length);h<d;h++){g[h]=f[h]*e[h]}}else{if(typeof f=="number"&&typeof e=="number"){g=f*e}else{g=null}}}}return g};JXG.Math.Statistics.subtract=function(f,e){var h,d,g=[];if(typeof JXG.isArray(f)&&typeof e=="number"){for(h=0,d=f.length;h<d;h++){g[h]=f[h]-e}}else{if(typeof f=="number"&&typeof JXG.isArray(e)){for(h=0,d=e.length;h<d;h++){g[h]=f-e[h]}}else{if(typeof JXG.isArray(f)&&typeof JXG.isArray(e)){for(h=0,d=Math.min(f.length,e.length);h<d;h++){g[h]=f[h]-e[h]}}else{if(typeof f=="number"&&typeof e=="number"){g=f-e}else{g=null}}}}return g};JXG.Math.Symbolic=function(d,e){return{generateSymbolicCoordinatesPartial:function(q,l,j,g){var f=function(k){var s;if(g==="underscore"){s=""+j+"_{"+k+"}"}else{if(g=="brace"){s=""+j+"["+k+"]"}else{s=""+j+""+k}}return s},n=l.ancestors,m=0,p,r,h;q.listOfFreePoints=[];q.listOfDependantPoints=[];for(r in n){p=0;if(d.isPoint(n[r])){for(h in n[r].ancestors){p++}if(p===0){n[r].symbolic.x=n[r].coords.usrCoords[1];n[r].symbolic.y=n[r].coords.usrCoords[2];q.listOfFreePoints.push(n[r])}else{m++;n[r].symbolic.x=f(m);m++;n[r].symbolic.y=f(m);q.listOfDependantPoints.push(n[r])}}}if(d.isPoint(l)){l.symbolic.x="x";l.symbolic.y="y"}return m},clearSymbolicCoordinates:function(g){var f=function(k){var j,h=(k&&k.length)||0;for(j=0;j<h;j++){if(d.isPoint(k[j])){k[j].symbolic.x="";k[j].symbolic.y=""}}};f(g.listOfFreePoints);f(g.listOfDependantPoints);delete (g.listOfFreePoints);delete (g.listOfDependantPoints)},generatePolynomials:function(n,h,j){var m=h.ancestors,p,l=[],r=[],q,f,g;if(j){this.generateSymbolicCoordinatesPartial(n,h,"u","brace")}m[h.id]=h;for(q in m){p=0;l=[];if(d.isPoint(m[q])){for(f in m[q].ancestors){p++}if(p>0){l=m[q].generatePolynomial();for(g=0;g<l.length;g++){r.push(l[g])}}}}if(j){this.clearSymbolicCoordinates(n)}return r},geometricLocusByGroebnerBase:function(n,A){var l=this.generateSymbolicCoordinatesPartial(n,A,"u","brace"),m,h,r,f={},w=new d.Coords(d.COORDS_BY_USR,[0,0],n),u=new d.Coords(d.COORDS_BY_USR,[n.canvasWidth,n.canvasHeight],n),k,j,D,G=1,v=0,t=0,p=0,E,x,F,q,z,B,g,C=function(H,I){var s;for(s=0;s<I.length;s++){if(I[s].id===H){return true}}return false},y=n.options.locus;if(d.Server.modules.geoloci===e){d.Server.loadModule("geoloci")}if(d.Server.modules.geoloci===e){throw new Error("JSXGraph: Unable to load JXG.Server module 'geoloci.py'.")}q=w.usrCoords[1];z=u.usrCoords[1];B=u.usrCoords[2];g=w.usrCoords[2];if(y.translateToOrigin&&(n.listOfFreePoints.length>0)){if((y.toOrigin!==e)&&(y.toOrigin!=null)&&C(y.toOrigin.id,n.listOfFreePoints)){k=y.toOrigin}else{k=n.listOfFreePoints[0]}v=k.symbolic.x;t=k.symbolic.y;for(D=0;D<n.listOfFreePoints.length;D++){n.listOfFreePoints[D].symbolic.x-=v;n.listOfFreePoints[D].symbolic.y-=t}q-=v;z-=v;B-=t;g-=t;if(y.translateTo10&&(n.listOfFreePoints.length>1)){if((y.to10!==e)&&(y.to10!=null)&&(y.to10.id!=y.toOrigin.id)&&C(y.to10.id,n.listOfFreePoints)){j=y.to10}else{if(n.listOfFreePoints[0].id==k.id){j=n.listOfFreePoints[1]}else{j=n.listOfFreePoints[0]}}p=d.Math.Geometry.rad([1,0],[0,0],[j.symbolic.x,j.symbolic.y]);E=Math.cos(-p);x=Math.sin(-p);for(D=0;D<n.listOfFreePoints.length;D++){F=n.listOfFreePoints[D].symbolic.x;n.listOfFreePoints[D].symbolic.x=E*n.listOfFreePoints[D].symbolic.x-x*n.listOfFreePoints[D].symbolic.y;n.listOfFreePoints[D].symbolic.y=x*F+E*n.listOfFreePoints[D].symbolic.y}j.symbolic.y=0;F=q;q=E*q-x*B;B=x*F+E*B;F=z;z=E*z-x*g;g=x*F+E*g;if(y.stretch&&(Math.abs(j.symbolic.x)>d.Math.eps)){G=j.symbolic.x;for(D=0;D<n.listOfFreePoints.length;D++){n.listOfFreePoints[D].symbolic.x/=G;n.listOfFreePoints[D].symbolic.y/=G}for(D in n.objects){if((n.objects[D].elementClass==d.OBJECT_CLASS_CIRCLE)&&(n.objects[D].method=="pointRadius")){f[D]=n.objects[D].radius;n.objects[D].radius/=G}}q/=G;z/=G;B/=G;g/=G;j.symbolic.x=1}}for(D=0;D<n.listOfFreePoints.length;D++){F=n.listOfFreePoints[D].symbolic.x;if(Math.abs(F)<d.Math.eps){n.listOfFreePoints[D].symbolic.x=0}if(Math.abs(F-Math.round(F))<d.Math.eps){n.listOfFreePoints[D].symbolic.x=Math.round(F)}F=n.listOfFreePoints[D].symbolic.y;if(Math.abs(F)<d.Math.eps){n.listOfFreePoints[D].symbolic.y=0}if(Math.abs(F-Math.round(F))<d.Math.eps){n.listOfFreePoints[D].symbolic.y=Math.round(F)}}}m=this.generatePolynomials(n,A);h=m.join(",");this.cbp=function(s){r=s};this.cb=d.bind(this.cbp,this);d.Server.modules.geoloci.lociCoCoA(q,z,B,g,l,h,G,p,v,t,this.cb,true);this.clearSymbolicCoordinates(n);for(D in f){n.objects[D].radius=f[D]}return r}}}(JXG);JXG.Math.Geometry={angle:function(f,e,d){var j=[],h=[],g=[],l,k,n,m;if(f.coords==null){j[0]=f[0];j[1]=f[1]}else{j[0]=f.coords.usrCoords[1];j[1]=f.coords.usrCoords[2]}if(e.coords==null){h[0]=e[0];h[1]=e[1]}else{h[0]=e.coords.usrCoords[1];h[1]=e.coords.usrCoords[2]}if(d.coords==null){g[0]=d[0];g[1]=d[1]}else{g[0]=d.coords.usrCoords[1];g[1]=d.coords.usrCoords[2]}l=j[0]-h[0];k=j[1]-h[1];n=g[0]-h[0];m=g[1]-h[1];return Math.atan2(l*m-k*n,l*n+k*m)},trueAngle:function(d,f,e){return this.rad(d,f,e)*57.29577951308232},rad:function(g,f,e){var d,n,m,l,j,h,k;if(g.coords==null){d=g[0];n=g[1]}else{d=g.coords.usrCoords[1];n=g.coords.usrCoords[2]}if(f.coords==null){m=f[0];l=f[1]}else{m=f.coords.usrCoords[1];l=f.coords.usrCoords[2]}if(e.coords==null){j=e[0];h=e[1]}else{j=e.coords.usrCoords[1];h=e.coords.usrCoords[2]}k=Math.atan2(h-l,j-m)-Math.atan2(n-l,d-m);if(k<0){k+=6.283185307179586}return k},angleBisector:function(j,h,f,m){var g=j.coords.usrCoords,q=h.coords.usrCoords,k=f.coords.usrCoords,r=g[1]-q[1],p=g[2]-q[2],n=Math.sqrt(r*r+p*p),e,s,l;if(!JXG.exists(m)){m=j.board}r/=n;p/=n;e=Math.acos(r);if(p<0){e*=-1}if(e<0){e+=2*Math.PI}r=k[1]-q[1];p=k[2]-q[2];n=Math.sqrt(r*r+p*p);r/=n;p/=n;s=Math.acos(r);if(p<0){s*=-1}if(s<0){s+=2*Math.PI}l=(e+s)*0.5;if(e>s){l+=Math.PI}r=Math.cos(l)+q[1];p=Math.sin(l)+q[2];return new JXG.Coords(JXG.COORDS_BY_USER,[r,p],m)},reflection:function(q,m,f){var h=m.coords.usrCoords,r=q.point1.coords.usrCoords,g=q.point2.coords.usrCoords,e,l,d,j,n,k,p;if(!JXG.exists(f)){f=m.board}n=g[1]-r[1];k=g[2]-r[2];e=h[1]-r[1];l=h[2]-r[2];p=(n*l-k*e)/(n*n+k*k);d=h[1]+2*p*k;j=h[2]-2*p*n;return new JXG.Coords(JXG.COORDS_BY_USER,[d,j],f)},rotation:function(d,p,h,j){var l=p.coords.usrCoords,e=d.coords.usrCoords,g,n,k,q,f,m;if(!JXG.exists(j)){j=p.board}g=l[1]-e[1];n=l[2]-e[2];k=Math.cos(h);q=Math.sin(h);f=g*k-n*q+e[1];m=g*q+n*k+e[2];return new JXG.Coords(JXG.COORDS_BY_USER,[f,m],j)},perpendicular:function(s,q,j){var h=s.point1.coords.usrCoords,g=s.point2.coords.usrCoords,e=q.coords.usrCoords,n,m,l,r,k,f,d,p;if(!JXG.exists(j)){j=q.board}if(q==s.point1){n=h[1]+g[2]-h[2];m=h[2]-g[1]+h[1];l=true}else{if(q==s.point2){n=g[1]+h[2]-g[2];m=g[2]-h[1]+g[1];l=false}else{if(((Math.abs(h[1]-g[1])>JXG.Math.eps)&&(Math.abs(e[2]-(h[2]-g[2])*(e[1]-h[1])/(h[1]-g[1])-h[2])<JXG.Math.eps))||((Math.abs(h[1]-g[1])<=JXG.Math.eps)&&(Math.abs(h[1]-e[1])<JXG.Math.eps))){n=e[1]+g[2]-e[2];m=e[2]-g[1]+e[1];l=true;if(Math.abs(n-e[1])<JXG.Math.eps&&Math.abs(m-e[2])<JXG.Math.eps){n=e[1]+h[2]-e[2];m=e[2]-h[1]+e[1];l=false}}else{r=h[2]-g[2];k=h[1]-g[1];f=g[1]*r-g[2]*k;d=e[1]*k+e[2]*r;p=r*r+k*k;if(Math.abs(p)<JXG.Math.eps){p=JXG.Math.eps}n=(f*r+d*k)/p;m=(d*r-f*k)/p;l=true}}}return[new JXG.Coords(JXG.COORDS_BY_USER,[n,m],j),l]},circumcenterMidpoint:function(l,j,h,g){var f=l.coords.usrCoords,e=j.coords.usrCoords,d=h.coords.usrCoords,q,p,n,m,k;if(!JXG.exists(g)){g=l.board}q=((f[1]-e[1])*(f[1]+e[1])+(f[2]-e[2])*(f[2]+e[2]))*0.5;p=((e[1]-d[1])*(e[1]+d[1])+(e[2]-d[2])*(e[2]+d[2]))*0.5;n=(f[1]-e[1])*(e[2]-d[2])-(e[1]-d[1])*(f[2]-e[2]);if(Math.abs(n)<JXG.Math.eps){n=JXG.Math.eps}m=(q*(e[2]-d[2])-p*(f[2]-e[2]))/n;k=(p*(f[1]-e[1])-q*(e[1]-d[1]))/n;return new JXG.Coords(JXG.COORDS_BY_USER,[m,k],g)},distance:function(h,g){var f=0,e,d;if(h.length!=g.length){return NaN}d=h.length;for(e=0;e<d;e++){f+=(h[e]-g[e])*(h[e]-g[e])}return Math.sqrt(f)},affineDistance:function(f,e){var g;if(f.length!=e.length){return NaN}g=this.distance(f,e);if(g>JXG.Math.eps&&(Math.abs(f[0])<JXG.Math.eps||Math.abs(e[0])<JXG.Math.eps)){return Infinity}else{return g}},intersectLineLine:function(q,p,k){var j=q.point1.coords.usrCoords,g=q.point2.coords.usrCoords,f=p.point1.coords.usrCoords,d=p.point2.coords.usrCoords,h,e,n,m,l;if(!JXG.exists(k)){k=q.board}h=j[1]*g[2]-j[2]*g[1];e=f[1]*d[2]-f[2]*d[1];n=(g[2]-j[2])*(f[1]-d[1])-(j[1]-g[1])*(d[2]-f[2]);if(Math.abs(n)<JXG.Math.eps){n=JXG.Math.eps}m=(h*(f[1]-d[1])-e*(j[1]-g[1]))/n;l=(e*(g[2]-j[2])-h*(d[2]-f[2]))/n;return new JXG.Coords(JXG.COORDS_BY_USER,[m,l],k)},intersectCircleLine:function(m,z,n){var L=z.point1.coords.usrCoords,J=z.point2.coords.usrCoords,g=m.midpoint.coords.usrCoords,D,e,K,I,B,G,E,p,C,A,k,j,F,u,q,f,v,t,H;if(!JXG.exists(n)){n=z.board}D=z.point1.Dist(z.point2);if(D>0){e=m.midpoint.Dist(z.point1);K=m.midpoint.Dist(z.point2);I=((e*e)+(D*D)-(K*K))/(2*D);B=(e*e)-(I*I);B=(B<0)?0:B;G=Math.sqrt(B);E=m.Radius();p=Math.sqrt((E*E)-G*G);C=J[1]-L[1];A=J[2]-L[2];k=g[1]+(G/D)*A;j=g[2]-(G/D)*C;e=(J[1]*A)-(J[2]*C);K=(k*C)+(j*A);F=(A*A)+(C*C);if(Math.abs(F)<JXG.Math.eps){F=JXG.Math.eps}u=((e*A)+(K*C))/F;q=((K*A)-(e*C))/F;f=p/D;v=new JXG.Coords(JXG.COORDS_BY_USER,[u+f*C,q+f*A],n);t=new JXG.Coords(JXG.COORDS_BY_USER,[u-f*C,q-f*A],n);H=m.midpoint.coords.distance(JXG.COORDS_BY_USER,v);if((E<(H-1))||isNaN(H)){return[0]}else{return[2,v,t]}}return[0]},intersectCircleCircle:function(m,l,p){var e={},j=m.Radius(),g=l.Radius(),f=m.midpoint.coords.usrCoords,d=l.midpoint.coords.usrCoords,r,k,v,u,t,q,n;if(!JXG.exists(p)){p=m.board}r=j+g;k=Math.abs(j-g);v=m.midpoint.coords.distance(JXG.COORDS_BY_USER,l.midpoint.coords);if(v>r){return[0]}else{if(v<k){return[0]}else{if(v!=0){e[0]=1;u=d[1]-f[1];t=d[2]-f[2];q=(v*v-g*g+j*j)/(2*v);n=Math.sqrt(j*j-q*q);e[1]=new JXG.Coords(JXG.COORDS_BY_USER,[f[1]+(q/v)*u+(n/v)*t,f[2]+(q/v)*t-(n/v)*u],p);e[2]=new JXG.Coords(JXG.COORDS_BY_USER,[f[1]+(q/v)*u-(n/v)*t,f[2]+(q/v)*t+(n/v)*u],p)}else{return[0]}return e}}},meet:function(g,e,f,h){var d=JXG.Math.eps;if(Math.abs(g[3])<d&&Math.abs(e[3])<d){return this.meetLineLine(g,e,f,h)}else{if(Math.abs(g[3])>=d&&Math.abs(e[3])<d){return this.meetLineCircle(e,g,f,h)}else{if(Math.abs(g[3])<d&&Math.abs(e[3])>=d){return this.meetLineCircle(g,e,f,h)}else{return this.meetCircleCircle(g,e,f,h)}}}},meetLineLine:function(e,d,f,h){var g=JXG.Math.crossProduct(e,d);if(Math.abs(g[0])>JXG.Math.eps){g[1]/=g[0];g[2]/=g[0];g[0]=1}return new JXG.Coords(JXG.COORDS_BY_USER,g,h)},meetLineCircle:function(j,e,p,q){var v,u,s,r,l,h,g,f,m,w;if(e[4]<JXG.Math.eps){return new JXG.Coords(JXG.COORDS_BY_USER,e.slice(1,3),q)}s=e[0];u=e.slice(1,3);v=e[3];r=j[0];l=j.slice(1,3);h=v;g=(u[0]*l[1]-u[1]*l[0]);f=v*r*r-(u[0]*l[0]+u[1]*l[1])*r+s;m=g*g-4*h*f;if(m>=0){m=Math.sqrt(m);w=[(-g+m)/(2*h),(-g-m)/(2*h)];return((p==0)?new JXG.Coords(JXG.COORDS_BY_USER,[-w[0]*(-l[1])-r*l[0],-w[0]*l[0]-r*l[1]],q):new JXG.Coords(JXG.COORDS_BY_USER,[-w[1]*(-l[1])-r*l[0],-w[1]*l[0]-r*l[1]],q))}else{return new JXG.Coords(JXG.COORDS_BY_USER,[NaN,NaN],q)}},meetCircleCircle:function(f,d,e,g){var h;if(f[4]<JXG.Math.eps){if(this.distance(f.slice(1,3),d.slice(1,3))==d[4]){return new JXG.Coords(JXG.COORDS_BY_USER,f.slice(1,3),g)}else{return new JXG.Coords(JXG.COORDS_BY_USER,[NaN,NaN],g)}}if(d[4]<JXG.Math.eps){if(this.distance(d.slice(1,3),f.slice(1,3))==f[4]){return new JXG.Coords(JXG.COORDS_BY_USER,d.slice(1,3),g)}else{return new JXG.Coords(JXG.COORDS_BY_USER,[NaN,NaN],g)}}h=[d[3]*f[0]-f[3]*d[0],d[3]*f[1]-f[3]*d[1],d[3]*f[2]-f[3]*d[2],0,1,Infinity,Infinity,Infinity];h=JXG.Math.normalize(h);return this.meetLineCircle(h,f,e,g)},meetCurveCurve:function(t,s,h,l,n){var m=0,q,p,B,z,x,w,g,v,u,r,A,y,k,j;if(!JXG.exists(n)){n=t.board}if(arguments.callee.t1memo){q=arguments.callee.t1memo;p=arguments.callee.t2memo}else{q=h;p=l}v=t.X(q)-s.X(p);u=t.Y(q)-s.Y(p);r=v*v+u*u;A=t.board.D(t.X,t);y=s.board.D(s.X,s);k=t.board.D(t.Y,t);j=s.board.D(s.Y,s);while(r>JXG.Math.eps&&m<10){B=A(q);z=-y(p);x=k(q);w=-j(p);g=B*w-z*x;q-=(w*v-z*u)/g;p-=(B*u-x*v)/g;v=t.X(q)-s.X(p);u=t.Y(q)-s.Y(p);r=v*v+u*u;m++}arguments.callee.t1memo=q;arguments.callee.t2memo=p;if(Math.abs(q)<Math.abs(p)){return(new JXG.Coords(JXG.COORDS_BY_USER,[t.X(q),t.Y(q)],n))}else{return(new JXG.Coords(JXG.COORDS_BY_USER,[s.X(p),s.Y(p)],n))}},meetCurveLine:function(s,r,e,j){var p,l,u,g,q,h,k,x,v,w,n,m,f,d;if(!JXG.exists(j)){j=s.board}for(u=0;u<=1;u++){if(arguments[u].elementClass==JXG.OBJECT_CLASS_CURVE){g=arguments[u]}else{if(arguments[u].elementClass==JXG.OBJECT_CLASS_LINE){q=arguments[u]}else{throw new Error("JSXGraph: Can't call meetCurveLine with parent class "+(arguments[u].elementClass)+".")}}}h=function(y){return q.stdform[0]+q.stdform[1]*g.X(y)+q.stdform[2]*g.Y(y)};if(arguments.callee.t1memo){n=arguments.callee.t1memo;p=JXG.Math.Numerics.root(h,n)}else{n=g.minX();m=g.maxX();p=JXG.Math.Numerics.root(h,[n,m])}arguments.callee.t1memo=p;f=g.X(p);d=g.Y(p);if(e==1){if(arguments.callee.t2memo){n=arguments.callee.t2memo;l=JXG.Math.Numerics.root(h,n)}if(!(Math.abs(l-p)>0.1&&Math.abs(f-g.X(l))>0.1&&Math.abs(d-g.Y(l))>0.1)){v=20;w=(g.maxX()-g.minX())/v;x=g.minX();for(u=0;u<v;u++){l=JXG.Math.Numerics.root(h,[x,x+w]);if(Math.abs(l-p)>0.1&&Math.abs(f-g.X(l))>0.1&&Math.abs(d-g.Y(l))>0.1){break}x+=w}}p=l;arguments.callee.t2memo=p}if(Math.abs(h(p))>JXG.Math.eps){k=0}else{k=1}return(new JXG.Coords(JXG.COORDS_BY_USER,[k,g.X(p),g.Y(p)],j))},projectPointToCircle:function(m,d,f){var j=m.coords.distance(JXG.COORDS_BY_USER,d.midpoint.coords),e=m.coords.usrCoords,g=d.midpoint.coords.usrCoords,l,k,h;if(!JXG.exists(f)){f=m.board}if(Math.abs(j)<JXG.Math.eps){j=JXG.Math.eps}h=d.Radius()/j;l=g[1]+h*(e[1]-g[1]);k=g[2]+h*(e[2]-g[2]);return new JXG.Coords(JXG.COORDS_BY_USER,[l,k],f)},projectPointToLine:function(d,e,g){var f=[0,e.stdform[1],e.stdform[2]];if(!JXG.exists(g)){g=d.board}f=JXG.Math.crossProduct(f,d.coords.usrCoords);return this.meetLineLine(f,e.stdform,0,g)},projectPointToCurve:function(f,j,h){if(!JXG.exists(h)){h=f.board}var e=f.X(),k=f.Y(),g=f.position||0,d=this.projectCoordsToCurve(e,k,g,j,h);f.position=d[1];return d[0]},projectCoordsToCurve:function(n,l,q,r,h){var C,A,e,z,d,k,v,B,s,g,u,p=1000000,m,F,D,f,E,w;if(!JXG.exists(h)){h=r.board}if(r.curveType=="parameter"||r.curveType=="polar"){m=function(y){var x=n-r.X(y),j=l-r.Y(y);return x*x+j*j};f=m(q);w=20;E=(r.maxX()-r.minX())/w;F=r.minX();for(u=0;u<w;u++){D=m(F);if(D<f){q=F;f=D}F+=E}q=JXG.Math.Numerics.root(JXG.Math.Numerics.D(m),q);if(q<r.minX()){q=r.maxX()+q-r.minX()}if(q>r.maxX()){q=r.minX()+q-r.maxX()}C=new JXG.Coords(JXG.COORDS_BY_USER,[r.X(q),r.Y(q)],h)}else{if(r.curveType=="plot"){B=p;for(v=0;v<r.numberPoints;v++){A=n-r.X(v);e=l-r.Y(v);s=Math.sqrt(A*A+e*e);if(s<B){B=s;q=v}if(v==r.numberPoints-1){continue}z=r.X(v+1)-r.X(v);d=r.Y(v+1)-r.Y(v);k=z*z+d*d;if(k>=JXG.Math.eps){g=(A*z+e*d)/k;s=Math.sqrt(A*A+e*e-g*(A*z+e*d))}else{g=0;s=Math.sqrt(A*A+e*e)}if(g>=0&&g<=1&&s<B){q=v+g;B=s}}v=Math.floor(q);g=q-v;if(v<r.numberPoints-1){n=g*r.X(v+1)+(1-g)*r.X(v);l=g*r.Y(v+1)+(1-g)*r.Y(v)}else{n=r.X(v);l=r.Y(v)}C=new JXG.Coords(JXG.COORDS_BY_USER,[n,l],h)}else{q=n;n=q;l=r.Y(q);C=new JXG.Coords(JXG.COORDS_BY_USER,[n,l],h)}}return[r.updateTransform(C),q]},projectPointToTurtle:function(p,s,k){var r,u,n,m,f,q=0,j=0,g=1000000,l,d,e,h=s.objects.length;if(!JXG.exists(k)){k=p.board}for(f=0;f<h;f++){d=s.objects[f];if(d.elementClass==JXG.OBJECT_CLASS_CURVE){r=this.projectPointToCurve(p,d);l=this.distance(r.usrCoords,p.coords.usrCoords);if(l<g){n=r.usrCoords[1];m=r.usrCoords[2];u=p.position;g=l;e=d;j=q}q+=d.numberPoints}}r=new JXG.Coords(JXG.COORDS_BY_USER,[n,m],k);p.position=u+j;return e.updateTransform(r)}};JXG.Complex=function(d,e){this.isComplex=true;if(typeof d=="undefined"){d=0}if(typeof e=="undefined"){e=0}if(d.isComplex){e=d.imaginary;d=d.real}this.real=d;this.imaginary=e;this.absval=0;this.angle=0};JXG.Complex.prototype.toString=function(){return""+this.real+" + "+this.imaginary+"i"};JXG.Complex.prototype.add=function(d){if(typeof d=="number"){this.real+=d}else{this.real+=d.real;this.imaginary+=d.imaginary}};JXG.Complex.prototype.sub=function(d){if(typeof d=="number"){this.real-=d}else{this.real-=d.real;this.imaginary-=d.imaginary}};JXG.Complex.prototype.mult=function(f){var e,d;if(typeof f=="number"){this.real*=f;this.imaginary*=f}else{e=this.real;d=this.imaginary;this.real=e*f.real-d*f.imaginary;this.imaginary=e*f.imaginary+d*f.real}};JXG.Complex.prototype.div=function(g){var e,d,f;if(typeof g=="number"){if(Math.abs(g)<Math.eps){this.real=Infinity;this.imaginary=Infinity;return}this.real/=g;this.imaginary/=g}else{if((Math.abs(g.real)<Math.eps)&&(Math.abs(g.imaginary)<Math.eps)){this.real=Infinity;this.imaginary=Infinity;return}e=g.real*g.real+g.imaginary*g.imaginary;f=this.real;d=this.imaginary;this.real=(f*g.real+d*g.imaginary)/e;this.imaginary=(d*g.real-f*g.imaginary)/e}};JXG.Complex.prototype.conj=function(){this.imaginary*=-1};JXG.C={};JXG.C.add=function(e,d){var f=new JXG.Complex(e);f.add(d);return f};JXG.C.sub=function(e,d){var f=new JXG.Complex(e);f.sub(d);return f};JXG.C.mult=function(e,d){var f=new JXG.Complex(e);f.mult(d);return f};JXG.C.div=function(e,d){var f=new JXG.Complex(e);f.div(d);return f};JXG.C.conj=function(d){var e=new JXG.Complex(d);e.conj();return e};JXG.C.abs=function(d){var e=new JXG.Complex(d);e.conj();e.mult(d);return Math.sqrt(e.real)};JXG.AbstractRenderer=function(){return{vOffsetText:8,enhancedRendering:true,updateVisual:function(d,f,e){f=f||{};if(e||this.enhancedRendering){if(!d.visProp.draft){if(!f.stroke){this.setObjectStrokeWidth(d,d.visProp.strokeWidth);this.setObjectStrokeColor(d,d.visProp.strokeColor,d.visProp.strokeOpacity)}if(!f.fill){this.setObjectFillColor(d,d.visProp.fillColor,d.visProp.fillOpacity)}if(!f.dash){this.setDashStyle(d,d.visProp)}if(!f.shadow){this.setShadow(d)}}else{this.setDraft(d)}}},drawPoint:function(e){var d,f=JXG.Point.prototype.normalizeFace.call(this,e.visProp.face);if(f==="o"){d="circle"}else{if(f==="[]"){d="rect"}else{d="path"}}this.appendChildPrim(this.createPrim(d,e.id),e.layer);this.appendNodesToElement(e,d);this.updateVisual(e,{dash:true,shadow:true},true);this.updatePoint(e)},updatePoint:function(e){var d=e.visProp.size,f=JXG.Point.prototype.normalizeFace.call(this,e.visProp.face);if(isNaN(e.coords.scrCoords[2])||isNaN(e.coords.scrCoords[1])){return}this.updateVisual(e,{dash:false,shadow:false});d*=((!e.board||!e.board.options.point.zoom)?1:Math.sqrt(e.board.zoomX*e.board.zoomY));if(f==="o"){this.updateCirclePrim(e.rendNode,e.coords.scrCoords[1],e.coords.scrCoords[2],d+1)}else{if(f==="[]"){this.updateRectPrim(e.rendNode,e.coords.scrCoords[1]-d,e.coords.scrCoords[2]-d,d*2,d*2)}else{this.updatePathPrim(e.rendNode,this.updatePathStringPoint(e,d,f),e.board)}}this.setShadow(e)},changePointStyle:function(d){var e=this.getElementById(d.id);if(JXG.exists(e)){this.remove(e)}this.drawPoint(d);JXG.clearVisPropOld(d);if(!d.visProp.visible){this.hide(d)}if(d.visProp.draft){this.setDraft(d)}},drawLine:function(d){this.appendChildPrim(this.createPrim("line",d.id),d.layer);this.appendNodesToElement(d,"lines");this.updateLine(d)},updateLine:function(e){var m=new JXG.Coords(JXG.COORDS_BY_USER,e.point1.coords.usrCoords,e.board),l=new JXG.Coords(JXG.COORDS_BY_USER,e.point2.coords.usrCoords,e.board),d,n,g,f,k,j,h;this.calcStraight(e,m,l);this.updateLinePrim(e.rendNode,m.scrCoords[1],m.scrCoords[2],l.scrCoords[1],l.scrCoords[2],e.board);this.makeArrows(e);this.updateVisual(e,{fill:true})},calcStraight:function(g,q,p){var e,d,m,k,r,f,n,v,l,h,u,t;r=g.visProp.straightFirst;f=g.visProp.straightLast;if(Math.abs(q.scrCoords[0])<JXG.Math.eps){r=true}if(Math.abs(p.scrCoords[0])<JXG.Math.eps){f=true}if(!r&&!f){return}n=[];n[0]=g.stdform[0]-g.stdform[1]*g.board.origin.scrCoords[1]/g.board.stretchX+g.stdform[2]*g.board.origin.scrCoords[2]/g.board.stretchY;n[1]=g.stdform[1]/g.board.stretchX;n[2]=g.stdform[2]/(-g.board.stretchY);if(isNaN(n[0]+n[1]+n[2])){return}v=[];v[0]=JXG.Math.crossProduct(n,[0,0,1]);v[1]=JXG.Math.crossProduct(n,[0,1,0]);v[2]=JXG.Math.crossProduct(n,[-g.board.canvasHeight,0,1]);v[3]=JXG.Math.crossProduct(n,[-g.board.canvasWidth,1,0]);for(l=0;l<4;l++){if(Math.abs(v[l][0])>JXG.Math.eps){for(h=2;h>0;h--){v[l][h]/=v[l][0]}v[l][0]=1}}e=false;d=false;if(!r&&q.scrCoords[1]>=0&&q.scrCoords[1]<=g.board.canvasWidth&&q.scrCoords[2]>=0&&q.scrCoords[2]<=g.board.canvasHeight){e=true}if(!f&&p.scrCoords[1]>=0&&p.scrCoords[1]<=g.board.canvasWidth&&p.scrCoords[2]>=0&&p.scrCoords[2]<=g.board.canvasHeight){d=true}if(Math.abs(v[1][0])<JXG.Math.eps){m=v[0];k=v[2]}else{if(Math.abs(v[0][0])<JXG.Math.eps){m=v[1];k=v[3]}else{if(v[1][2]<0){m=v[0];if(v[3][2]>g.board.canvasHeight){k=v[2]}else{k=v[3]}}else{if(v[1][2]>g.board.canvasHeight){m=v[2];if(v[3][2]<0){k=v[0]}else{k=v[3]}}else{m=v[1];if(v[3][2]<0){k=v[0]}else{if(v[3][2]>g.board.canvasHeight){k=v[2]}else{k=v[3]}}}}}}m=new JXG.Coords(JXG.COORDS_BY_SCREEN,m.slice(1),g.board);k=new JXG.Coords(JXG.COORDS_BY_SCREEN,k.slice(1),g.board);if(!e&&!d){if(!r&&f&&!this.isSameDirection(q,p,m)&&!this.isSameDirection(q,p,k)){return}else{if(r&&!f&&!this.isSameDirection(p,q,m)&&!this.isSameDirection(p,q,k)){return}}}if(!e){if(!d){if(this.isSameDirection(q,p,m)){if(!this.isSameDirection(q,p,k)){t=m;u=k}else{if(JXG.Math.Geometry.affineDistance(p.usrCoords,m.usrCoords)<JXG.Math.Geometry.affineDistance(p.usrCoords,k.usrCoords)){u=m;t=k}else{t=m;u=k}}}else{if(this.isSameDirection(q,p,k)){u=m;t=k}else{if(JXG.Math.Geometry.affineDistance(p.usrCoords,m.usrCoords)<JXG.Math.Geometry.affineDistance(p.usrCoords,k.usrCoords)){t=m;u=k}else{u=m;t=k}}}}else{if(this.isSameDirection(p,q,m)){u=m}else{u=k}}}else{if(!d){if(this.isSameDirection(q,p,m)){t=m}else{t=k}}}if(u){q.setCoordinates(JXG.COORDS_BY_USER,u.usrCoords.slice(1))}if(t){p.setCoordinates(JXG.COORDS_BY_USER,t.usrCoords.slice(1))}},isSameDirection:function(l,h,f){var e,d,k,j,g=false;e=h.usrCoords[1]-l.usrCoords[1];d=h.usrCoords[2]-l.usrCoords[2];k=f.usrCoords[1]-l.usrCoords[1];j=f.usrCoords[2]-l.usrCoords[2];if(Math.abs(e)<JXG.Math.eps){e=0}if(Math.abs(d)<JXG.Math.eps){d=0}if(Math.abs(k)<JXG.Math.eps){k=0}if(Math.abs(j)<JXG.Math.eps){j=0}if(e>=0&&k>=0){if((d>=0&&j>=0)||(d<=0&&j<=0)){g=true}}else{if(e<=0&&k<=0){if((d>=0&&j>=0)||(d<=0&&j<=0)){g=true}}}return g},updateTicks:function(e,g,d,h,f){},removeTicks:function(d){this.remove(this.getElementById(d.id+"_ticks"))},drawCurve:function(d){this.appendChildPrim(this.createPrim("path",d.id),d.layer);this.appendNodesToElement(d,"path");this.updateVisual(d,{shadow:true},true);this.updateCurve(d)},updateCurve:function(d){this.updateVisual(d);this.updatePathPrim(d.rendNode,this.updatePathStringPrim(d),d.board);this.makeArrows(d)},drawCircle:function(d){this.appendChildPrim(this.createPrim("ellipse",d.id),d.layer);this.appendNodesToElement(d,"ellipse");this.updateCircle(d)},updateCircle:function(e){this.updateVisual(e);var d=e.Radius();if(d>0&&!isNaN(d+e.midpoint.coords.scrCoords[1]+e.midpoint.coords.scrCoords[2])&&d*e.board.stretchX<20000){this.updateEllipsePrim(e.rendNode,e.midpoint.coords.scrCoords[1],e.midpoint.coords.scrCoords[2],(d*e.board.stretchX),(d*e.board.stretchY))}},drawPolygon:function(d){this.appendChildPrim(this.createPrim("polygon",d.id),d.layer);this.appendNodesToElement(d,"polygon");this.updatePolygon(d)},updatePolygon:function(d){this.updateVisual(d,{stroke:true,dash:true});this.updatePolygonPrim(d.rendNode,d)},drawText:function(d){var e;if(d.display=="html"){e=this.container.ownerDocument.createElement("div");e.style.position="absolute";e.style.color=d.visProp.strokeColor;e.className="JXGtext";e.style.zIndex="10";this.container.appendChild(e);e.setAttribute("id",this.container.id+"_"+d.id)}else{e=this.drawInternalText(d)}e.style.fontSize=d.board.options.text.fontSize+"px";d.rendNode=e;d.htmlStr="";this.updateText(d)},drawInternalText:function(d){},updateText:function(d){if(!d.visProp.visible){return}if(isNaN(d.coords.scrCoords[1]+d.coords.scrCoords[2])){return}this.updateTextStyle(d);if(d.display=="html"){d.rendNode.style.left=(d.coords.scrCoords[1])+"px";d.rendNode.style.top=(d.coords.scrCoords[2]-this.vOffsetText)+"px";d.updateText();if(d.htmlStr!=d.plaintextStr){d.rendNode.innerHTML=d.plaintextStr;if(d.board.options.text.useASCIIMathML){AMprocessNode(d.rendNode,false)}d.htmlStr=d.plaintextStr;if(d.board.options.text.useMathJax){MathJax.Hub.Typeset(d.rendNode)}}this.transformImage(d,d.transformations)}else{this.updateInternalText(d)}},updateInternalText:function(d){},updateTextStyle:function(e){var d;if(e.visProp.fontSize){if(typeof e.visProp.fontSize=="function"){d=e.visProp.fontSize();e.rendNode.style.fontSize=(d>0?d:0)}else{e.rendNode.style.fontSize=(e.visProp.fontSize)}}},drawImage:function(d){},updateImageURL:function(d){},updateImage:function(d){this.updateRectPrim(d.rendNode,d.coords.scrCoords[1],d.coords.scrCoords[2]-d.size[1],d.size[0],d.size[1]);this.updateImageURL(d);this.transformImage(d,d.transformations);this.updateVisual(d,{stroke:true,dash:true},true)},joinTransforms:function(d,n){var g=[[1,0,0],[0,1,0],[0,0,1]],l=[[1,0,0],[-d.board.origin.scrCoords[1],1,0],[-d.board.origin.scrCoords[2],0,1]],k=[[1,0,0],[0,1/d.board.stretchX,0],[0,0,-1/d.board.stretchY]],e=[[1,0,0],[0,d.board.stretchX,0],[0,0,-d.board.stretchY]],f=[[1,0,0],[d.board.origin.scrCoords[1],1,0],[d.board.origin.scrCoords[2],0,1]],h,j=n.length;for(h=0;h<j;h++){g=JXG.Math.matMatMult(l,g);g=JXG.Math.matMatMult(k,g);g=JXG.Math.matMatMult(n[h].matrix,g);g=JXG.Math.matMatMult(e,g);g=JXG.Math.matMatMult(f,g)}return g},drawGrid:function(t){var q=t.options.grid.gridX,p=t.options.grid.gridY,g=new JXG.Coords(JXG.COORDS_BY_SCREEN,[0,0],t),s=new JXG.Coords(JXG.COORDS_BY_SCREEN,[t.canvasWidth,t.canvasHeight],t),m=Math.ceil(g.usrCoords[1]),h=0,n,y,f,e,x,w,u,r,v,d;t.options.grid.hasGrid=true;for(n=0;n<=q+1;n++){if(m-n/q<g.usrCoords[1]){h=n-1;break}}m=Math.floor(s.usrCoords[1]);y=0;for(n=0;n<=q+1;n++){if(m+n/q>s.usrCoords[1]){y=n-1;break}}m=Math.ceil(s.usrCoords[2]);e=0;for(n=0;n<=p+1;n++){if(m-n/p<s.usrCoords[2]){e=n-1;break}}m=Math.floor(g.usrCoords[2]);f=0;for(n=0;n<=p+1;n++){if(m+n/p>g.usrCoords[2]){f=n-1;break}}x=Math.round((1/q)*t.stretchX);w=Math.round((1/p)*t.stretchY);u=new JXG.Coords(JXG.COORDS_BY_USER,[Math.ceil(g.usrCoords[1])-h/q,Math.floor(g.usrCoords[2])+f/p],t);r=new JXG.Coords(JXG.COORDS_BY_USER,[Math.floor(s.usrCoords[1])+y/q,Math.ceil(s.usrCoords[2])-e/p],t);v=this.drawVerticalGrid(u,r,x,t);this.appendChildPrim(v,t.options.layer.grid);if(!t.options.grid.snapToGrid){d=new Object();d.visProp={};d.rendNode=v;d.elementClass=JXG.OBJECT_CLASS_LINE;d.id="gridx";JXG.clearVisPropOld(d);this.setObjectStrokeColor(d,t.options.grid.gridColor,t.options.grid.gridOpacity)}else{d=new Object();d.visProp={};d.rendNode=v;d.elementClass=JXG.OBJECT_CLASS_LINE;d.id="gridx";JXG.clearVisPropOld(d);this.setObjectStrokeColor(d,"#FF8080",0.5)}this.setPropertyPrim(v,"stroke-width","0.4px");if(t.options.grid.gridDash){this.setGridDash("gridx")}v=this.drawHorizontalGrid(u,r,w,t);this.appendChildPrim(v,t.options.layer.grid);if(!t.options.grid.snapToGrid){d=new Object();d.visProp={};d.rendNode=v;d.elementClass=JXG.OBJECT_CLASS_LINE;d.id="gridy";JXG.clearVisPropOld(d);this.setObjectStrokeColor(d,t.options.grid.gridColor,t.options.grid.gridOpacity)}else{d=new Object();d.visProp={};d.rendNode=v;d.elementClass=JXG.OBJECT_CLASS_LINE;d.id="gridy";JXG.clearVisPropOld(d);this.setObjectStrokeColor(d,"#FF8080",0.5)}this.setPropertyPrim(v,"stroke-width","0.4px");if(t.options.grid.gridDash){this.setGridDash("gridy")}},removeGrid:function(d){this.remove(this.getElementById("gridx"));this.remove(this.getElementById("gridy"));d.options.grid.hasGrid=false},hide:function(d){},show:function(d){},setObjectStrokeWidth:function(e,d){},setObjectStrokeColor:function(f,d,e){},setObjectFillColor:function(f,d,e){},setDraft:function(e){if(!e.visProp.draft){return}var d=e.board.options.elements.draft.color,f=e.board.options.elements.draft.opacity;if(e.type==JXG.OBJECT_TYPE_POLYGON){this.setObjectFillColor(e,d,f)}else{if(e.elementClass==JXG.OBJECT_CLASS_POINT){this.setObjectFillColor(e,d,f)}else{this.setObjectFillColor(e,"none",0)}this.setObjectStrokeColor(e,d,f);this.setObjectStrokeWidth(e,e.board.options.elements.draft.strokeWidth)}},removeDraft:function(d){if(d.type==JXG.OBJECT_TYPE_POLYGON){this.setObjectFillColor(d,d.visProp.fillColor,d.visProp.fillColorOpacity)}else{if(d.type==JXG.OBJECT_CLASS_POINT){this.setObjectFillColor(d,d.visProp.fillColor,d.visProp.fillColorOpacity)}this.setObjectStrokeColor(d,d.visProp.strokeColor,d.visProp.strokeColorOpacity);this.setObjectStrokeWidth(d,d.visProp.strokeWidth)}},highlight:function(e){var d;if(!e.visProp.draft){if(e.type==JXG.OBJECT_CLASS_POINT){this.setObjectStrokeColor(e,e.visProp.highlightStrokeColor,e.visProp.highlightStrokeOpacity);this.setObjectFillColor(e,e.visProp.highlightStrokeColor,e.visProp.highlightStrokeOpacity)}else{if(e.type==JXG.OBJECT_TYPE_POLYGON){this.setObjectFillColor(e,e.visProp.highlightFillColor,e.visProp.highlightFillOpacity);for(d=0;d<e.borders.length;d++){this.setObjectStrokeColor(e.borders[d],e.borders[d].visProp.highlightStrokeColor,e.visProp.highlightStrokeOpacity)}}else{this.setObjectStrokeColor(e,e.visProp.highlightStrokeColor,e.visProp.highlightStrokeOpacity);this.setObjectFillColor(e,e.visProp.highlightFillColor,e.visProp.highlightFillOpacity)}}if(e.visProp.highlightStrokeWidth){this.setObjectStrokeWidth(e,e.visProp.highlightStrokeWidth)}}},noHighlight:function(e){var d;if(!e.visProp.draft){if(e.type==JXG.OBJECT_CLASS_POINT){this.setObjectStrokeColor(e,e.visProp.strokeColor,e.visProp.strokeOpacity);this.setObjectFillColor(e,e.visProp.strokeColor,e.visProp.strokeOpacity)}else{if(e.type==JXG.OBJECT_TYPE_POLYGON){this.setObjectFillColor(e,e.visProp.fillColor,e.visProp.fillOpacity);for(d=0;d<e.borders.length;d++){this.setObjectStrokeColor(e.borders[d],e.borders[d].visProp.strokeColor,e.visProp.strokeOpacity)}}else{this.setObjectStrokeColor(e,e.visProp.strokeColor,e.visProp.strokeOpacity);this.setObjectFillColor(e,e.visProp.fillColor,e.visProp.fillOpacity)}}this.setObjectStrokeWidth(e,e.visProp.strokeWidth)}},remove:function(d){},suspendRedraw:function(){},unsuspendRedraw:function(){},drawZoomBar:function(e){var g,f,d=function(h,k){var j;j=g.createElement("span");f.appendChild(j);j.innerHTML=h;JXG.addEvent(j,"click",k,e)};g=this.container.ownerDocument;f=g.createElement("div");f.setAttribute("id",this.container.id+"_navigationbar");f.className="JXGtext";f.style.color="#aaaaaa";f.style.backgroundColor="#f5f5f5";f.style.padding="2px";f.style.position="absolute";f.style.fontSize="10px";f.style.cursor="pointer";f.style.zIndex="100";this.container.appendChild(f);f.style.right="5px";f.style.bottom="5px";d(" – ",e.zoomOut);d(" o ",e.zoom100);d(" + ",e.zoomIn);d(" ← ",e.clickLeftArrow);d(" ↑ ",e.clickUpArrow);d(" ↓ ",e.clickDownArrow);d(" → ",e.clickRightArrow)},getElementById:function(d){return document.getElementById(this.container.id+"_"+d)},findSplit:function(x,n,m){var r=0,p=n,q,l,y,w,v,h,u,g,s,t,e;if(m-n<2){return[-1,0]}y=x[n].scrCoords;w=x[m].scrCoords;if(isNaN(y[1]+y[2]+w[1]+w[2])){return[NaN,m]}for(l=n+1;l<m;l++){v=x[l].scrCoords;h=v[1]-y[1];u=v[2]-y[2];g=w[1]-y[1];s=w[2]-y[2];t=g*g+s*s;if(t>=JXG.Math.eps){e=(h*g+u*s)/t;q=h*h+u*u-e*(h*g+u*s)}else{e=0;q=h*h+u*u}if(e<0){q=h*h+u*u}else{if(e>1){h=v[1]-w[1];u=v[2]-w[2];q=h*h+u*u}}if(q>r){r=q;p=l}}return[Math.sqrt(r),p]},RDP:function(k,h,g,e,f){var d=this.findSplit(k,h,g);if(d[0]>e){this.RDP(k,h,d[1],e,f);this.RDP(k,d[1],g,e,f)}else{f.push(k[g])}},RamenDouglasPeuker:function(j,e){var g=[],h,f,d;d=j.length;h=0;while(h<d&&isNaN(j[h].scrCoords[1]+j[h].scrCoords[2])){h++}f=d-1;while(f>h&&isNaN(j[f].scrCoords[1]+j[f].scrCoords[2])){f--}if(!(h>f||h==d)){g[0]=j[h];this.RDP(j,h,f,e,g)}return g},setShadow:function(d){},updatePathStringPoint:function(f,d,e){},evaluate:function(d){if(JXG.isFunction(d)){return d()}else{return d}},setBuffering:function(){}}};JXG.FileReader=new function(){this.parseFileContent=function(d,f,h){this.request=false;var g;try{this.request=new XMLHttpRequest();if(h.toLowerCase()=="raw"){this.request.overrideMimeType("text/plain; charset=iso-8859-1")}else{this.request.overrideMimeType("text/xml; charset=iso-8859-1")}}catch(g){try{this.request=new ActiveXObject("Msxml2.XMLHTTP")}catch(g){try{this.request=new ActiveXObject("Microsoft.XMLHTTP")}catch(g){this.request=false}}}if(!this.request){alert("AJAX not activated!");return}this.request.open("GET",d,true);if(h.toLowerCase()=="raw"){this.cbp=function(){var e=this.request;if(e.readyState==4){f(e.responseText)}}}else{this.cbp=function(){var e=this.request;if(e.readyState==4){var j="";if(typeof e.responseStream!="undefined"&&(e.responseText.slice(0,2)=="PK"||JXG.Util.asciiCharCodeAt(e.responseText.slice(0,1),0)==31)){j=JXG.Util.Base64.decode(BinFileReader(e))}else{j=e.responseText}this.parseString(j,f,h,false)}}}this.cb=JXG.bind(this.cbp,this);this.request.onreadystatechange=this.cb;try{this.request.send(null)}catch(g){throw new Error("JSXGraph: problems opening "+d+" !")}};this.cleanWhitespace=function(d){var e=d.firstChild;while(e!=null){if(e.nodeType==3&&!/\S/.test(e.nodeValue)){d.removeChild(e)}else{if(e.nodeType==1){this.cleanWhitespace(e)}}e=e.nextSibling}};this.stringToXMLTree=function(e){if(typeof DOMParser=="undefined"){DOMParser=function(){};DOMParser.prototype.parseFromString=function(h,j){if(typeof ActiveXObject!="undefined"){var g=new ActiveXObject("MSXML.DomDocument");g.loadXML(h);return g}}}var f=new DOMParser();var d=f.parseFromString(e,"text/xml");this.cleanWhitespace(d);return d};this.parseString=function(h,f,j,e){var d,g;if(j.toLowerCase()=="cdy"||j.toLowerCase()=="cinderella"){if(e){h=JXG.Util.Base64.decode(h)}h=JXG.CinderellaReader.readCinderella(h,f);f.xmlString=h;return}if(j.toLowerCase()=="graph"){h=JXG.GraphReader.readGraph(h,f,false);return}if(j.toLowerCase()=="digraph"){h=JXG.GraphReader.readGraph(h,f,true);return}if(j.toLowerCase()=="geonext"){h=JXG.GeonextReader.prepareString(h)}if(j.toLowerCase()=="geogebra"){e=h.slice(0,2)!=="PK";h=JXG.GeogebraReader.prepareString(h,e)}if(j.toLowerCase()=="intergeo"){if(e){h=JXG.Util.Base64.decode(h)}h=JXG.IntergeoReader.prepareString(h)}f.xmlString=h;d=this.stringToXMLTree(h);this.readElements(d,f,j)};this.readElements=function(d,e,f){if(f.toLowerCase()=="geonext"){e.suspendUpdate();if(d.getElementsByTagName("GEONEXT").length!=0){JXG.GeonextReader.readGeonext(d,e)}e.unsuspendUpdate()}else{if(d.getElementsByTagName("geogebra").length!=0){JXG.GeogebraReader.readGeogebra(d,e)}else{if(f.toLowerCase()=="intergeo"){JXG.IntergeoReader.readIntergeo(d,e)}}}}};if(/msie/i.test(navigator.userAgent)&&!/opera/i.test(navigator.userAgent)){document.write('<script type="text/vbscript">\nFunction Base64Encode(inData)\n Const Base64 = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"\n Dim cOut, sOut, I\n For I = 1 To LenB(inData) Step 3\n Dim nGroup, pOut, sGroup\n nGroup = &H10000 * AscB(MidB(inData, I, 1)) + _\n &H100 * MyASC(MidB(inData, I + 1, 1)) + MyASC(MidB(inData, I + 2, 1))\n nGroup = Oct(nGroup)\n nGroup = String(8 - Len(nGroup), "0") & nGroup\n pOut = Mid(Base64, CLng("&o" & Mid(nGroup, 1, 2)) + 1, 1) + _\n Mid(Base64, CLng("&o" & Mid(nGroup, 3, 2)) + 1, 1) + _\n Mid(Base64, CLng("&o" & Mid(nGroup, 5, 2)) + 1, 1) + _\n Mid(Base64, CLng("&o" & Mid(nGroup, 7, 2)) + 1, 1)\n sOut = sOut + pOut\n Next\n Select Case LenB(inData) Mod 3\n Case 1: \'8 bit final\n sOut = Left(sOut, Len(sOut) - 2) + "=="\n Case 2: \'16 bit final\n sOut = Left(sOut, Len(sOut) - 1) + "="\n End Select\n Base64Encode = sOut\nEnd Function\n\nFunction MyASC(OneChar)\n If OneChar = "" Then MyASC = 0 Else MyASC = AscB(OneChar)\nEnd Function\n\nFunction BinFileReader(xhr)\n Dim byteString\n Dim b64String\n Dim i\n byteString = xhr.responseBody\n ReDim byteArray(LenB(byteString))\n For i = 1 To LenB(byteString)\n byteArray(i-1) = AscB(MidB(byteString, i, 1))\n Next\n b64String = Base64Encode(byteString)\n BinFileReader = b64String\nEnd Function\n<\/script>\n')}JXG.GeonextParser={};JXG.GeonextParser.replacePow=function(f){var k,n,l,j,m,g,d,e,h,r,q;f=f.replace(/(\s*)\^(\s*)/g,"^");h=f.indexOf("^");while(h>=0){e=f.slice(0,h);r=f.slice(h+1);if(e.charAt(e.length-1)==")"){k=1;n=e.length-2;while(n>=0&&k>0){l=e.charAt(n);if(l==")"){k++}else{if(l=="("){k--}}n--}if(k==0){j="";g=e.substring(0,n+1);d=n;while(d>=0&&g.substr(d,1).match(/([\w\.]+)/)){j=RegExp.$1+j;d--}j+=e.substring(n+1,e.length);j=j.replace(/([\(\)\+\*\%\^\-\/\]\[])/g,"\\$1")}else{throw new Error("JSXGraph: Missing '(' in expression")}}else{j="[\\w\\.]+"}if(r.match(/^([\w\.]*\()/)){k=1;n=RegExp.$1.length;while(n<r.length&&k>0){l=r.charAt(n);if(l==")"){k--}else{if(l=="("){k++}}n++}if(k==0){m=r.substring(0,n);m=m.replace(/([\(\)\+\*\%\^\-\/\[\]])/g,"\\$1")}else{throw new Error("JSXGraph: Missing ')' in expression")}}else{m="[\\w\\.]+"}q=new RegExp("("+j+")\\^("+m+")");f=f.replace(q,"JXG.Math.pow($1,$2)");h=f.indexOf("^")}return f};JXG.GeonextParser.replaceIf=function(e){var t="",f,r,h=null,d=null,l=null,g,q,j,m,k,n,p;g=e.indexOf("If(");if(g<0){return e}e=e.replace(/""/g,"0");while(g>=0){f=e.slice(0,g);r=e.slice(g+3);j=1;q=0;m=-1;k=-1;while(q<r.length&&j>0){n=r.charAt(q);if(n==")"){j--}else{if(n=="("){j++}else{if(n==","&&j==1){if(m<0){m=q}else{k=q}}}}q++}p=r.slice(0,q-1);r=r.slice(q);if(m<0){return""}if(k<0){return""}h=p.slice(0,m);d=p.slice(m+1,k);l=p.slice(k+1);h=this.replaceIf(h);d=this.replaceIf(d);l=this.replaceIf(l);t+=f+"(("+h+")?("+d+"):("+l+"))";e=r;h=null;d=null;g=e.indexOf("If(")}t+=r;return t};JXG.GeonextParser.replaceSub=function(f){if(f.indexOf){}else{return f}var e=f.indexOf("_{"),d;while(e>=0){f=f.substr(0,e)+f.substr(e).replace(/_\{/,"<sub>");d=f.substr(e).indexOf("}");if(d>=0){f=f.substr(0,d)+f.substr(d).replace(/\}/,"</sub>")}e=f.indexOf("_{")}e=f.indexOf("_");while(e>=0){f=f.substr(0,e)+f.substr(e).replace(/_(.?)/,"<sub>$1</sub>");e=f.indexOf("_")}return f};JXG.GeonextParser.replaceSup=function(f){if(f.indexOf){}else{return f}var e=f.indexOf("^{"),d;while(e>=0){f=f.substr(0,e)+f.substr(e).replace(/\^\{/,"<sup>");d=f.substr(e).indexOf("}");if(d>=0){f=f.substr(0,d)+f.substr(d).replace(/\}/,"</sup>")}e=f.indexOf("^{")}e=f.indexOf("^");while(e>=0){f=f.substr(0,e)+f.substr(e).replace(/\^(.?)/,"<sup>$1</sup>");e=f.indexOf("^")}return f};JXG.GeonextParser.replaceNameById=function(g,j){var l=0,d,k,h,f,e=["X","Y","L","V"];for(f=0;f<e.length;f++){l=g.indexOf(e[f]+"(");while(l>=0){if(l>=0){d=g.indexOf(")",l+2);if(d>=0){k=g.slice(l+2,d);k=k.replace(/\\(['"])?/g,"$1");h=j.elementsByName[k];g=g.slice(0,l+2)+h.id+g.slice(d)}}d=g.indexOf(")",l+2);l=g.indexOf(e[f]+"(",d)}}l=g.indexOf("Dist(");while(l>=0){if(l>=0){d=g.indexOf(",",l+5);if(d>=0){k=g.slice(l+5,d);k=k.replace(/\\(['"])?/g,"$1");h=j.elementsByName[k];g=g.slice(0,l+5)+h.id+g.slice(d)}}d=g.indexOf(",",l+5);l=g.indexOf(",",d);d=g.indexOf(")",l+1);if(d>=0){k=g.slice(l+1,d);k=k.replace(/\\(['"])?/g,"$1");h=j.elementsByName[k];g=g.slice(0,l+1)+h.id+g.slice(d)}d=g.indexOf(")",l+1);l=g.indexOf("Dist(",d)}e=["Deg","Rad"];for(f=0;f<e.length;f++){l=g.indexOf(e[f]+"(");while(l>=0){if(l>=0){d=g.indexOf(",",l+4);if(d>=0){k=g.slice(l+4,d);k=k.replace(/\\(['"])?/g,"$1");h=j.elementsByName[k];g=g.slice(0,l+4)+h.id+g.slice(d)}}d=g.indexOf(",",l+4);l=g.indexOf(",",d);d=g.indexOf(",",l+1);if(d>=0){k=g.slice(l+1,d);k=k.replace(/\\(['"])?/g,"$1");h=j.elementsByName[k];g=g.slice(0,l+1)+h.id+g.slice(d)}d=g.indexOf(",",l+1);l=g.indexOf(",",d);d=g.indexOf(")",l+1);if(d>=0){k=g.slice(l+1,d);k=k.replace(/\\(['"])?/g,"$1");h=j.elementsByName[k];g=g.slice(0,l+1)+h.id+g.slice(d)}d=g.indexOf(")",l+1);l=g.indexOf(e[f]+"(",d)}}return g};JXG.GeonextParser.replaceIdByObj=function(d){var e=/(X|Y|L)\(([\w_]+)\)/g;d=d.replace(e,'this.board.objects["$2"].$1()');e=/(V)\(([\w_]+)\)/g;d=d.replace(e,'this.board.objects["$2"].Value()');e=/(Dist)\(([\w_]+),([\w_]+)\)/g;d=d.replace(e,'this.board.objects["$2"].Dist(this.board.objects["$3"])');e=/(Deg)\(([\w_]+),([ \w\[\w_]+),([\w_]+)\)/g;d=d.replace(e,'JXG.Math.Geometry.trueAngle(this.board.objects["$2"],this.board.objects["$3"],this.board.objects["$4"])');e=/Rad\(([\w_]+),([\w_]+),([\w_]+)\)/g;d=d.replace(e,'JXG.Math.Geometry.rad(this.board.objects["$1"],this.board.objects["$2"],this.board.objects["$3"])');return d};JXG.GeonextParser.geonext2JS=function(e,g){var h,f,d,k=["Abs","ACos","ASin","ATan","Ceil","Cos","Exp","Floor","Log","Max","Min","Random","Round","Sin","Sqrt","Tan","Trunc"],j=["Math.abs","Math.acos","Math.asin","Math.atan","Math.ceil","Math.cos","Math.exp","Math.floor","Math.log","Math.max","Math.min","Math.random","this.board.round","Math.sin","Math.sqrt","Math.tan","Math.ceil"];e=e.replace(/</g,"<");e=e.replace(/>/g,">");e=e.replace(/&/g,"&");f=e;f=this.replaceNameById(f,g);f=this.replaceIf(f);f=this.replacePow(f);f=this.replaceIdByObj(f);for(d=0;d<k.length;d++){h=new RegExp(["(\\W|^)(",k[d],")"].join(""),"ig");f=f.replace(h,["$1",j[d]].join(""))}f=f.replace(/True/g,"true");f=f.replace(/False/g,"false");f=f.replace(/fasle/g,"false");f=f.replace(/Pi/g,"Math.PI");return f};JXG.GeonextParser.findDependencies=function(h,e,g){if(typeof g=="undefined"){g=h.board}var j=g.elementsByName,f,k,d;for(f in j){if(f!=h.name){if(j[f].type==JXG.OBJECT_TYPE_TEXT){if(!j[f].isLabel){d=f.replace(/\[/g,"\\[");d=d.replace(/\]/g,"\\]");k=new RegExp("\\(([\\w\\[\\]'_ ]+,)*("+d+")(,[\\w\\[\\]'_ ]+)*\\)","g");if(e.search(k)>=0){j[f].addChild(h)}}}else{d=f.replace(/\[/g,"\\[");d=d.replace(/\]/g,"\\]");k=new RegExp("\\(([\\w\\[\\]'_ ]+,)*("+d+")(,[\\w\\[\\]'_ ]+)*\\)","g");if(e.search(k)>=0){j[f].addChild(h)}}}}};JXG.Board=function(d,j,e,p,n,m,l,k,f,g,h){this.BOARD_MODE_NONE=0;this.BOARD_MODE_DRAG=1;this.BOARD_MODE_MOVE_ORIGIN=2;this.BOARD_QUALITY_LOW=1;this.BOARD_QUALITY_HIGH=2;this.BOARD_MODE_CONSTRUCT=16;this.CONSTRUCTION_TYPE_POINT=1129599060;this.CONSTRUCTION_TYPE_CIRCLE=1129595724;this.CONSTRUCTION_TYPE_LINE=1129598030;this.CONSTRUCTION_TYPE_GLIDER=1129596740;this.CONSTRUCTION_TYPE_MIDPOINT=1129598288;this.CONSTRUCTION_TYPE_PERPENDICULAR=1129599044;this.CONSTRUCTION_TYPE_PARALLEL=1129599052;this.CONSTRUCTION_TYPE_INTERSECTION=1129597267;this.container=d;this.containerObj=document.getElementById(this.container);if(this.containerObj==null){throw new Error("\nJSXGraph: HTML container element '"+(d)+"' not found.")}this.renderer=j;this.options=JXG.deepCopy(JXG.Options);this.dimension=2;this.origin={};this.origin.usrCoords=[1,0,0];this.origin.scrCoords=[1,p[0],p[1]];this.zoomX=n;this.zoomY=m;this.unitX=l;this.unitY=k;this.stretchX=this.zoomX*this.unitX;this.stretchY=this.zoomY*this.unitY;this.canvasWidth=f;this.canvasHeight=g;if(JXG.exists(e)&&e!==""&&!JXG.exists(document.getElementById(e))){this.id=e}else{this.id=this.generateId()}this.hooks=[];this.dependentBoards=[];this.objects={};this.animationObjects={};this.highlightedObjects={};this.numObjects=0;this.elementsByName={};this.mode=this.BOARD_MODE_NONE;this.updateQuality=this.BOARD_QUALITY_HIGH;this.isSuspendedRedraw=false;this.calculateSnapSizes();this.drag_dx=0;this.drag_dy=0;this.mousePosAbs=[0,0];this.mousePosRel=[0,0];this.drag_obj=[];this.last_click={time:0,posX:0,posY:0};this.xmlString="";this.showCopyright=false;if((h!=null&&h)||(h==null&&this.options.showCopyright)){this.renderer.displayCopyright(JXG.JSXGraph.licenseText,this.options.text.fontSize);this.showCopyright=true}this.needsFullUpdate=false;this.reducedUpdate=false;this.currentCBDef="none";this.geonextCompatibilityMode=false;if(this.options.text.useASCIIMathML&&translateASCIIMath){init()}else{this.options.text.useASCIIMathML=false}JXG.addEvent(this.containerObj,"mousedown",this.mouseDownListener,this);JXG.addEvent(this.containerObj,"mousemove",this.mouseMoveListener,this);JXG.addEvent(document,"mouseup",this.mouseUpListener,this);JXG.addEvent(this.containerObj,"touchstart",this.touchStartListener,this);JXG.addEvent(this.containerObj,"touchmove",this.touchMoveListener,this);JXG.addEvent(this.containerObj,"touchend",this.touchEndListener,this);this.containerObj.oncontextmenu=function(q){if(JXG.exists(q)){q.preventDefault()}return false}};JXG.Board.prototype.generateName=function(f){if(f.type==JXG.OBJECT_TYPE_TICKS){return""}var l,h=3,e="",m="",n=[],d="",k,g;if(f.elementClass==JXG.OBJECT_CLASS_POINT){l=["","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"]}else{l=["","a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z"]}switch(f.type){case JXG.OBJECT_TYPE_POLYGON:e="P_{";m="}";break;case JXG.OBJECT_TYPE_CIRCLE:e="k_{";m="}";break;case JXG.OBJECT_TYPE_ANGLE:e="W_{";m="}";break;default:if(f.elementClass!=JXG.OBJECT_CLASS_POINT&&f.elementClass!=JXG.OBJECT_CLASS_LINE){e="s_{";m="}"}}for(k=0;k<h;k++){n[k]=0}while(n[h-1]<l.length){for(n[0]=1;n[0]<l.length;n[0]++){d=e;for(k=h;k>0;k--){d+=l[n[k-1]]}if(this.elementsByName[d+m]==null){return d+m}}n[0]=l.length;for(k=1;k<h;k++){if(n[k-1]==l.length){n[k-1]=1;n[k]++}}}return""};JXG.Board.prototype.generateId=function(){var d=1;while(JXG.JSXGraph.boards["jxgBoard"+d]!=null){d=Math.round(Math.random()*33)}return("jxgBoard"+d)};JXG.Board.prototype.setId=function(g,f){var e=this.numObjects++,d=g.id;if(d==""||!JXG.exists(d)){d=this.id+f+e}g.id=d;this.objects[d]=g;if(true&&g.hasLabel){g.label.content.id=d+"Label";if(!g.label.content.isLabel){this.renderer.drawText(g.label.content);if(!g.label.content.visProp.visible){this.renderer.hide(g.label.content)}}}return d};JXG.Board.prototype.finalizeAdding=function(d){if(d.hasLabel){if(false){d.label.content.id=d.id+"Label";if(!d.label.content.isLabel){this.renderer.drawText(d.label.content);if(!d.label.content.visProp.visible){this.renderer.hide(d.label.content)}}}this.renderer.drawText(d.label.content)}if(!d.visProp.visible){this.renderer.hide(d)}if(d.hasLabel&&!d.label.content.visProp.visible){this.renderer.hide(d.label.content)}};JXG.Board.prototype.getRelativeMouseCoordinates=function(){var e=this.containerObj,d=JXG.getOffset(e),f;f=parseInt(JXG.getStyle(e,"borderLeftWidth"));if(isNaN(f)){f=0}d[0]+=f;f=parseInt(JXG.getStyle(e,"borderTopWidth"));if(isNaN(f)){f=0}d[1]+=f;f=parseInt(JXG.getStyle(e,"paddingLeft"));if(isNaN(f)){f=0}d[0]+=f;f=parseInt(JXG.getStyle(e,"paddingTop"));if(isNaN(f)){f=0}d[1]+=f;return d};JXG.Board.prototype.clickLeftArrow=function(){this.origin.scrCoords[1]+=this.canvasWidth*0.1;this.moveOrigin();return this};JXG.Board.prototype.clickRightArrow=function(){this.origin.scrCoords[1]-=this.canvasWidth*0.1;this.moveOrigin();return this};JXG.Board.prototype.clickUpArrow=function(){this.origin.scrCoords[2]+=this.canvasHeight*0.1;this.moveOrigin();return this};JXG.Board.prototype.clickDownArrow=function(){this.origin.scrCoords[2]-=this.canvasHeight*0.1;this.moveOrigin();return this};JXG.Board.prototype.touchStartListener=function(f){f.preventDefault();var h=document.createEvent("MouseEvents"),g,d=false;this.drag_obj=[];if((f.targetTouches.length==2)&&(JXG.Math.Geometry.distance([f.targetTouches[0].screenX,f.targetTouches[0].screenY],[f.targetTouches[1].screenX,f.targetTouches[1].screenY])<80)){f.targetTouches.length=1;d=true}this.options.precision.hasPoint=this.options.precision.touch;for(g=0;g<f.targetTouches.length;g++){h.initMouseEvent("mousedown",true,false,this.containerObj,0,f.targetTouches[g].screenX,f.targetTouches[g].screenY,f.targetTouches[g].clientX,f.targetTouches[g].clientY,false,false,d,false,0,null);h.fromTouch=true;this.mouseDownListener(h)}};JXG.Board.prototype.touchMoveListener=function(d){d.preventDefault();var f,e;for(f=0;f<d.targetTouches.length;f++){e={pageX:d.targetTouches[f].pageX,pageY:d.targetTouches[f].pageY,clientX:d.targetTouches[f].clientX,clientY:d.targetTouches[f].clientY};e.fromTouch=true;this.mouseMoveListener(e,f)}};JXG.Board.prototype.touchEndListener=function(d){var g=document.createEvent("MouseEvents"),f;g.initMouseEvent("mouseup",true,false,this.containerObj,0,0,0,0,0,false,false,false,false,0,null);g.fromTouch=true;this.mouseUpListener(g);this.options.precision.hasPoint=this.options.precision.mouse};JXG.Board.prototype.mouseDownListener=function(k){var g,l,j,d,f,e,h;this.updateHooks("mousedown",k);if(document.selection){document.selection.empty()}else{if(window.getSelection){window.getSelection().removeAllRanges()}}j=this.getRelativeMouseCoordinates(k);d=JXG.getPosition(k);f=d[0]-j[0];e=d[1]-j[1];this.mousePosAbs=d;this.mousePosRel=[f,e];if(k.shiftKey){this.drag_dx=f-this.origin.scrCoords[1];this.drag_dy=e-this.origin.scrCoords[2];this.mode=this.BOARD_MODE_MOVE_ORIGIN;JXG.addEvent(document,"mouseup",this.mouseUpListener,this);return}if(this.mode==this.BOARD_MODE_CONSTRUCT){return}this.last_click.time=(new Date()).getTime();this.last_click.posX=d[0];this.last_click.posY=d[1];this.mode=this.BOARD_MODE_DRAG;if(this.mode==this.BOARD_MODE_DRAG){h=0;for(g in this.objects){l=this.objects[g];if(JXG.exists(l.hasPoint)&&((l.type==JXG.OBJECT_TYPE_POINT)||(l.type==JXG.OBJECT_TYPE_GLIDER))&&(l.visProp.visible)&&(!l.fixed)&&(!l.frozen)&&(l.hasPoint(f,e))){if((l.type==JXG.OBJECT_TYPE_POINT)||(l.type==JXG.OBJECT_TYPE_GLIDER)){this.drag_obj.push({obj:this.objects[g],pos:h});if(this.options.takeFirst){break}}}h++}}if(this.drag_obj.length==0){this.mode=this.BOARD_MODE_NONE;return true}else{if(k&&k.preventDefault){k.preventDefault()}else{window.event.returnValue=false}}this.dragObjCoords=new JXG.Coords(JXG.COORDS_BY_SCREEN,[f,e],this);return false};JXG.Board.prototype.mouseUpListener=function(d){this.updateHooks("mouseup",d);this.updateQuality=this.BOARD_QUALITY_HIGH;this.mode=this.BOARD_MODE_NONE;if(this.mode==this.BOARD_MODE_MOVE_ORIGIN){this.moveOrigin()}else{this.update()}this.drag_obj=[]};JXG.Board.prototype.mouseMoveListener=function(l,f){var e,h,n,d,j,p,m,g,k;this.updateHooks("mousemove",l,this.mode);f=f||0;n=this.getRelativeMouseCoordinates(l);d=JXG.getPosition(l);p=d[0]-n[0];m=d[1]-n[1];this.mousePosAbs=d;this.mousePosRel=[p,m];this.updateQuality=this.BOARD_QUALITY_LOW;this.dehighlightAll();if(this.mode!=this.BOARD_MODE_DRAG){this.renderer.hide(this.infobox)}if(this.mode==this.BOARD_MODE_MOVE_ORIGIN){this.origin.scrCoords[1]=p-this.drag_dx;this.origin.scrCoords[2]=m-this.drag_dy;this.moveOrigin()}else{if(this.mode==this.BOARD_MODE_DRAG){j=new JXG.Coords(JXG.COORDS_BY_SCREEN,this.getScrCoordsOfMouse(p,m),this);g=this.drag_obj[f].obj;if(g.type==JXG.OBJECT_TYPE_POINT||g.type==JXG.OBJECT_TYPE_LINE||g.type==JXG.OBJECT_TYPE_CIRCLE||g.elementClass==JXG.OBJECT_CLASS_CURVE){g.setPositionDirectly(JXG.COORDS_BY_USER,j.usrCoords[1],j.usrCoords[2]);this.update(g)}else{if(g.type==JXG.OBJECT_TYPE_GLIDER){k=g.coords;g.setPositionDirectly(JXG.COORDS_BY_USER,j.usrCoords[1],j.usrCoords[2]);if(g.slideObject.type==JXG.OBJECT_TYPE_CIRCLE){g.coords=JXG.Math.Geometry.projectPointToCircle(g,g.slideObject,this)}else{if(g.slideObject.type==JXG.OBJECT_TYPE_LINE){g.coords=JXG.Math.Geometry.projectPointToLine(g,g.slideObject,this)}}if(g.group.length!=0){g.group[g.group.length-1].dX=g.coords.scrCoords[1]-k.scrCoords[1];g.group[g.group.length-1].dY=g.coords.scrCoords[2]-k.scrCoords[2];g.group[g.group.length-1].update(this)}else{this.update(g)}}}this.updateInfobox(g)}else{for(e in this.objects){h=this.objects[e];if(JXG.exists(h.hasPoint)&&h.visProp.visible&&h.hasPoint(p,m)){this.updateInfobox(h);if(this.highlightedObjects[e]==null){this.highlightedObjects[e]=h;h.highlight()}}}}}this.updateQuality=this.BOARD_QUALITY_HIGH};JXG.Board.prototype.updateInfobox=function(e){var d,h,f,g;if(!e.showInfobox){return this}if(e.elementClass==JXG.OBJECT_CLASS_POINT){f=e.coords.usrCoords[1];g=e.coords.usrCoords[2];this.infobox.setCoords(f+this.infobox.distanceX/(this.stretchX),g+this.infobox.distanceY/(this.stretchY));if(typeof(e.infoboxText)!="string"){d=Math.abs(f);if(d>0.1){d=f.toFixed(2)}else{if(d>=0.01){d=f.toFixed(4)}else{if(d>=0.0001){d=f.toFixed(6)}else{d=f}}}h=Math.abs(g);if(h>0.1){h=g.toFixed(2)}else{if(h>=0.01){h=g.toFixed(4)}else{if(h>=0.0001){h=g.toFixed(6)}else{h=g}}}this.highlightInfobox(d,h,e)}else{this.highlightCustomInfobox(e.infoboxText,e)}this.renderer.show(this.infobox);this.renderer.updateText(this.infobox)}return this};JXG.Board.prototype.highlightCustomInfobox=function(d){this.infobox.setText('<span style="color:#bbbbbb;">'+d+"</span>");return this};JXG.Board.prototype.highlightInfobox=function(d,e){this.highlightCustomInfobox("("+d+", "+e+")");return this};JXG.Board.prototype.dehighlightAll=function(){var e,f,d=false;for(e in this.highlightedObjects){f=this.highlightedObjects[e];f.noHighlight();delete (this.highlightedObjects[e]);d=true}return this};JXG.Board.prototype.getScrCoordsOfMouse=function(d,f){if(this.options.grid.snapToGrid){var e=new JXG.Coords(JXG.COORDS_BY_SCREEN,[d,f],this);e.setCoordinates(JXG.COORDS_BY_USER,[Math.round((e.usrCoords[1])*this.options.grid.snapSizeX)/this.options.grid.snapSizeX,Math.round((e.usrCoords[2])*this.options.grid.snapSizeY)/this.options.grid.snapSizeY]);return[e.scrCoords[1],e.scrCoords[2]]}else{return[d,f]}};JXG.Board.prototype.getUsrCoordsOfMouse=function(h){var f=this.getRelativeMouseCoordinates(h),e=JXG.getPosition(h),d=e[0]-f[0],j=e[1]-f[1],g=new JXG.Coords(JXG.COORDS_BY_SCREEN,[d,j],this);if(this.options.grid.snapToGrid){g.setCoordinates(JXG.COORDS_BY_USER,[Math.round((g.usrCoords[1])*this.options.grid.snapSizeX)/this.options.grid.snapSizeX,Math.round((g.usrCoords[2])*this.options.grid.snapSizeY)/this.options.grid.snapSizeY])}return[g.usrCoords[1],g.usrCoords[2]]};JXG.Board.prototype.getAllUnderMouse=function(e){var d=this.getAllObjectsUnderMouse(e);d.push(this.getUsrCoordsOfMouse(e));return d};JXG.Board.prototype.getAllObjectsUnderMouse=function(k){var j=this.getRelativeMouseCoordinates(k),d=JXG.getPosition(k),f=d[0]-j[0],e=d[1]-j[1],g=[];for(var h in this.objects){if(this.objects[h].visProp.visible&&this.objects[h].hasPoint&&this.objects[h].hasPoint(f,e)){g.push(this.objects[h])}}return g};JXG.Board.prototype.moveOrigin=function(){var e,d;for(d in this.objects){e=this.objects[d];if(!e.frozen&&(e.elementClass==JXG.OBJECT_CLASS_POINT||e.elementClass==JXG.OBJECT_CLASS_CURVE||e.type==JXG.OBJECT_TYPE_AXIS||e.type==JXG.OBJECT_TYPE_TEXT)){if(e.elementClass!=JXG.OBJECT_CLASS_CURVE&&e.type!=JXG.OBJECT_TYPE_AXIS){e.coords.usr2screen()}}}this.clearTraces();this.fullUpdate();if(this.options.grid.hasGrid){this.renderer.removeGrid(this);this.renderer.drawGrid(this)}return this};JXG.Board.prototype.addConditions=function(p){var e="var el,x,y,c;\n",n=p.indexOf("<data>"),l=p.indexOf("</data>"),k,h,g,r,d,f;if(n<0){return}while(n>=0){k=p.slice(n+6,l);h=k.indexOf("=");g=k.slice(0,h);r=k.slice(h+1);h=g.indexOf(".");d=g.slice(0,h);f=this.elementsByName[JXG.unescapeHTML(d)];var q=g.slice(h+1).replace(/\s+/g,"").toLowerCase();r=JXG.GeonextParser.geonext2JS(r,this);r=r.replace(/this\.board\./g,"this.");if(!JXG.exists(this.elementsByName[d])){JXG.debug("debug conditions: |"+d+"| undefined")}e+='el = this.objects["'+f.id+'"];\n';switch(q){case"x":e+="var y=el.coords.usrCoords[2];\n";e+="el.setPositionDirectly(JXG.COORDS_BY_USER,"+(r)+",y);\n";e+="el.update();\n";break;case"y":e+="var x=el.coords.usrCoords[1];\n";e+="el.coords=new JXG.Coords(JXG.COORDS_BY_USER,[x,"+(r)+"],this);\n";break;case"visible":e+="var c="+(r)+";\n";e+="if (c) {el.showElement();} else {el.hideElement();}\n";break;case"position":e+="el.position = "+(r)+";\n";e+="el.update();\n";break;case"stroke":e+="el.strokeColor = "+(r)+";\n";break;case"style":e+="el.setStyle("+(r)+");\n";break;case"strokewidth":e+="el.strokeWidth = "+(r)+";\n";break;case"fill":e+="var f="+(r)+";\n";e+="el.setProperty({fillColor:f})\n";break;case"label":break;default:JXG.debug("property '"+q+"' in conditions not yet implemented:"+r);break}p=p.slice(l+7);n=p.indexOf("<data>");l=p.indexOf("</data>")}e+="this.prepareUpdate();\n";e+="this.updateElements();\n";e+="return true;\n";this.updateConditions=new Function(e);this.updateConditions()};JXG.Board.prototype.updateConditions=function(){return false};JXG.Board.prototype.calculateSnapSizes=function(){var f=new JXG.Coords(JXG.COORDS_BY_USER,[0,0],this),e=new JXG.Coords(JXG.COORDS_BY_USER,[1/this.options.grid.gridX,1/this.options.grid.gridY],this),d=f.scrCoords[1]-e.scrCoords[1],g=f.scrCoords[2]-e.scrCoords[2];this.options.grid.snapSizeX=this.options.grid.gridX;while(Math.abs(d)>25){this.options.grid.snapSizeX*=2;d/=2}this.options.grid.snapSizeY=this.options.grid.gridY;while(Math.abs(g)>25){this.options.grid.snapSizeY*=2;g/=2}return this};JXG.Board.prototype.applyZoom=function(){var e,d;for(d in this.objects){e=this.objects[d];if(!e.frozen&&(e.elementClass==JXG.OBJECT_CLASS_POINT||e.elementClass==JXG.OBJECT_CLASS_CURVE||e.type==JXG.OBJECT_TYPE_AXIS||e.type==JXG.OBJECT_TYPE_TEXT)){if(e.elementClass!=JXG.OBJECT_CLASS_CURVE&&e.type!=JXG.OBJECT_TYPE_AXIS){e.coords.usr2screen()}}}this.calculateSnapSizes();this.clearTraces();this.fullUpdate();if(this.options.grid.hasGrid){this.renderer.removeGrid(this);this.renderer.drawGrid(this)}return this};JXG.Board.prototype.updateStretch=function(){this.stretchX=this.zoomX*this.unitX;this.stretchY=this.zoomY*this.unitY;return this};JXG.Board.prototype.zoomIn=function(){var e,d;this.zoomX*=this.options.zoom.factor;this.zoomY*=this.options.zoom.factor;e=this.origin.scrCoords[1]*this.options.zoom.factor;d=this.origin.scrCoords[2]*this.options.zoom.factor;this.origin=new JXG.Coords(JXG.COORDS_BY_SCREEN,[e,d],this);this.updateStretch();this.applyZoom();return this};JXG.Board.prototype.zoomOut=function(){var e,d;this.zoomX/=this.options.zoom.factor;this.zoomY/=this.options.zoom.factor;e=this.origin.scrCoords[1]/this.options.zoom.factor;d=this.origin.scrCoords[2]/this.options.zoom.factor;this.origin=new JXG.Coords(JXG.COORDS_BY_SCREEN,[e,d],this);this.updateStretch();this.applyZoom();return this};JXG.Board.prototype.zoom100=function(){var g,e,f,d;f=this.zoomX;d=this.zoomY;this.zoomX=1;this.zoomY=1;g=this.origin.scrCoords[1]/f;e=this.origin.scrCoords[2]/d;this.origin=new JXG.Coords(JXG.COORDS_BY_SCREEN,[g,e],this);this.updateStretch();this.applyZoom();return this};JXG.Board.prototype.zoomAllPoints=function(){var p,l,g,k,e,j,m,t,s,r,q,n,h,f,d,u;p=this.zoomX/this.zoomY;l=0;g=0;k=0;e=0;for(j in this.objects){if((this.objects[j].elementClass==JXG.OBJECT_CLASS_POINT)&&this.objects[j].visProp.visible){if(this.objects[j].coords.usrCoords[1]<l){l=this.objects[j].coords.usrCoords[1]}else{if(this.objects[j].coords.usrCoords[1]>g){g=this.objects[j].coords.usrCoords[1]}}if(this.objects[j].coords.usrCoords[2]>e){e=this.objects[j].coords.usrCoords[2]}else{if(this.objects[j].coords.usrCoords[2]<k){k=this.objects[j].coords.usrCoords[2]}}}}m=50;t=m/(this.unitX*this.zoomX);s=m/(this.unitY*this.zoomY);r=g-l+2*t;q=e-k+2*s;n=Math.min(this.canvasWidth/(this.unitX*r),this.canvasHeight/(this.unitY*q));f=n;h=n*p;d=-(l-t)*this.unitX*h;u=(e+s)*this.unitY*f;this.origin=new JXG.Coords(JXG.COORDS_BY_SCREEN,[d,u],this);this.zoomX=h;this.zoomY=f;this.updateStretch();this.applyZoom();return this};JXG.Board.prototype.removeObject=function(d){var g,f;if(JXG.isArray(d)){for(f=0;f<d.length;f++){this.removeObject(d[f])}}d=JXG.getReference(this,d);if(!JXG.exists(d)){return this}try{for(g in d.childElements){d.childElements[g].board.removeObject(d.childElements[g])}for(g in this.objects){if(JXG.exists(this.objects[g].childElements)){delete (this.objects[g].childElements[d.id])}}delete (this.objects[d.id]);delete (this.elementsByName[d.name]);if(JXG.exists(d.remove)){d.remove()}}catch(h){JXG.debug(d.id+": Could not be removed, JS says:\n\n"+h)}return this};JXG.Board.prototype.initGeonextBoard=function(){var h,g,f,e,d;h=new JXG.Point(this,[0,0],this.id+"gOOe0","Ursprung",false);h.fixed=true;g=new JXG.Point(this,[1,0],this.id+"gXOe0","Punkt_1_0",false);g.fixed=true;f=new JXG.Point(this,[0,1],this.id+"gYOe0","Punkt_0_1",false);f.fixed=true;e=new JXG.Line(this,this.id+"gOOe0",this.id+"gXOe0",this.id+"gXLe0","X-Achse",false);e.hideElement();d=new JXG.Line(this,this.id+"gOOe0",this.id+"gYOe0",this.id+"gYLe0","Y-Achse",false);d.hideElement();return this};JXG.Board.prototype.initInfobox=function(){this.infobox=new JXG.Text(this,"0,0","",[0,0],this.id+"__infobox",null,null,false,"html");this.infobox.distanceX=-20;this.infobox.distanceY=25;this.renderer.hide(this.infobox);return this};JXG.Board.prototype.resizeContainer=function(d,e){this.canvasWidth=parseFloat(d);this.canvasHeight=parseFloat(e);this.containerObj.style.width=(this.canvasWidth)+"px";this.containerObj.style.height=(this.canvasHeight)+"px";return this};JXG.Board.prototype.showDependencies=function(){var g,e,j,h,d;e="<p>\n";for(g in this.objects){d=0;for(j in this.objects[g].childElements){d++}if(d>=0){e+="<b>"+this.objects[g].id+":</b> "}for(j in this.objects[g].childElements){e+=this.objects[g].childElements[j].id+"("+this.objects[g].childElements[j].name+"), "}e+="<p>\n"}e+="</p>\n";h=window.open();h.document.open();h.document.write(e);h.document.close();return this};JXG.Board.prototype.showXML=function(){var d=window.open("");d.document.open();d.document.write("<pre>"+JXG.escapeHTML(this.xmlString)+"</pre>");d.document.close();return this};JXG.Board.prototype.prepareUpdate=function(){var d;for(d in this.objects){this.objects[d].needsUpdate=true}return this};JXG.Board.prototype.updateElements=function(e){var d,f;e=JXG.getRef(this,e);for(d in this.objects){f=this.objects[d];if(!this.needsFullUpdate&&(!f.needsRegularUpdate)){continue}if(e==null||f.id!=e.id){f.update(true)}else{f.update(false)}}return this};JXG.Board.prototype.updateRenderer=function(e){var d,f;if(this.options.renderer=="canvas"){this.updateRendererCanvas(e)}else{for(d in this.objects){f=this.objects[d];if(!this.needsFullUpdate&&(!f.needsRegularUpdate)){continue}f.updateRenderer()}}return this};JXG.Board.prototype.updateRendererCanvas=function(h){var g,l,f,k=this.options.layer,d=this.options.layer.numlayers,j=Number.NEGATIVE_INFINITY,e;for(f=0;f<d;f++){mini=Number.POSITIVE_INFINITY;for(la in k){if(k[la]>j&&k[la]<mini){mini=k[la]}}j=mini;for(g in this.objects){l=this.objects[g];if(l.layer==mini){l.updateRenderer()}}}return this};JXG.Board.prototype.addHook=function(e,d){if(!JXG.exists(d)){d="update"}this.hooks.push({fn:e,mode:d});if(d=="update"){e(this)}return(this.hooks.length-1)};JXG.Board.prototype.removeHook=function(d){this.hooks[d]=null;return this};JXG.Board.prototype.updateHooks=function(d){var f,e=arguments.length>1?Array.prototype.slice.call(arguments,1):[];if(!JXG.exists(d)){d="update"}for(f=0;f<this.hooks.length;f++){if((this.hooks[f]!=null)&&(this.hooks[f].mode==d)){this.hooks[f].fn.apply(this,e)}}return this};JXG.Board.prototype.addChild=function(d){this.dependentBoards.push(d);this.update();return this};JXG.Board.prototype.removeChild=function(e){var d;for(d=this.dependentBoards.length-1;d>=0;d--){if(this.dependentBoards[d]==e){this.dependentBoards.splice(d,1)}}return this};JXG.Board.prototype.update=function(g){var f,e,h,d;if(this.isSuspendedUpdate){return this}this.prepareUpdate(g).updateElements(g).updateConditions();this.renderer.suspendRedraw();this.updateRenderer(g);this.renderer.unsuspendRedraw();this.updateHooks();e=this.dependentBoards.length;for(f=0;f<e;f++){h=this.dependentBoards[f].id;d=JXG.JSXGraph.boards[h];if(d!=this){d.updateQuality=this.updateQuality;d.prepareUpdate().updateElements().updateConditions();d.renderer.suspendRedraw();d.updateRenderer();d.renderer.unsuspendRedraw();d.updateHooks()}}return this};JXG.Board.prototype.fullUpdate=function(){this.needsFullUpdate=true;this.update();this.needsFullUpdate=false;return this};JXG.Board.prototype.createElement=function(e,f,d){var j,g,h;if(e!="turtle"&&(!JXG.exists(f)||(f.length&&f.length==0))){return null}if(!JXG.exists(f)){f=[]}e=e.toLowerCase();if(d==null){d={}}for(g=0;g<f.length;g++){f[g]=JXG.getReference(this,f[g])}if(JXG.JSXGraph.elements[e]!=null){if(typeof JXG.JSXGraph.elements[e]=="function"){j=JXG.JSXGraph.elements[e](this,f,d)}else{j=JXG.JSXGraph.elements[e].creator(this,f,d)}}else{throw new Error("JSXGraph: JXG.createElement: Unknown element type given: "+e)}if(!JXG.exists(j)){JXG.debug("JSXGraph: JXG.createElement: failure creating "+e);return j}if(JXG.isArray(d)){d=d[0]}if(j.multipleElements){for(h in j){if(j[h].setProperty){j[h].setProperty(d)}}}else{if(j.setProperty){j.setProperty(d)}}this.update(j);return j};JXG.Board.prototype.create=JXG.Board.prototype.createElement;JXG.Board.prototype.clearTraces=function(){var d;for(d in this.objects){if(this.objects[d].traced){this.objects[d].clearTrace()}}this.numTraces=0;return this};JXG.Board.prototype.suspendUpdate=function(){this.isSuspendedUpdate=true;return this};JXG.Board.prototype.unsuspendUpdate=function(){this.isSuspendedUpdate=false;this.update();return this};JXG.Board.prototype.setBoundingBox=function(l,g){if(!JXG.isArray(l)){return this}var j,f,e,d,k=JXG.getDimensions(this.container);this.canvasWidth=parseInt(k.width);this.canvasHeight=parseInt(k.height);f=this.canvasWidth;j=this.canvasHeight;if(g){this.unitX=f/(l[2]-l[0]);this.unitY=j/(-l[3]+l[1]);if(this.unitX<this.unitY){this.unitY=this.unitX}else{this.unitX=this.unitY}}else{this.unitX=f/(l[2]-l[0]);this.unitY=j/(-l[3]+l[1])}e=-this.unitX*l[0]*this.zoomX;d=this.unitY*l[1]*this.zoomY;this.origin=new JXG.Coords(JXG.COORDS_BY_SCREEN,[e,d],this);this.updateStretch();this.moveOrigin();return this};JXG.Board.prototype.getBoundingBox=function(){var e=new JXG.Coords(JXG.COORDS_BY_SCREEN,[0,0],this),d=new JXG.Coords(JXG.COORDS_BY_SCREEN,[this.canvasWidth,this.canvasHeight],this);return[e.usrCoords[1],e.usrCoords[2],d.usrCoords[1],d.usrCoords[2]]};JXG.Board.prototype.addAnimation=function(d){this.animationObjects[d.id]=d;if(!this.animationIntervalCode){this.animationIntervalCode=window.setInterval("JXG.JSXGraph.boards['"+this.id+"'].animate();",35)}return this};JXG.Board.prototype.stopAllAnimation=function(){var d;for(d in this.animationObjects){if(this.animationObjects[d]===null){continue}this.animationObjects[d]=null;delete (this.animationObjects[d])}window.clearInterval(this.animationIntervalCode);delete (this.animationIntervalCode);return this};JXG.Board.prototype.animate=function(){var f=0,d,k,j,e,h,l,g=null;for(d in this.animationObjects){if(this.animationObjects[d]===null){continue}f++;k=this.animationObjects[d];if(k.animationPath){if(JXG.isFunction(k.animationPath)){j=k.animationPath(new Date().getTime()-k.animationStart)}else{j=k.animationPath.pop()}if((!JXG.exists(j))||(!JXG.isArray(j)&&isNaN(j))){delete (k.animationPath)}else{k.setPositionDirectly(JXG.COORDS_BY_USER,j[0],j[1]);k.prepareUpdate().update().updateRenderer();g=k}}if(k.animationData){l=0;for(e in k.animationData){h=k.animationData[e].pop();if(!JXG.exists(h)){delete (k.animationData[h])}else{l++;k.setProperty(e+":"+h)}}if(l==0){delete (k.animationData)}}if(!JXG.exists(k.animationData)&&!JXG.exists(k.animationPath)){this.animationObjects[d]=null;delete (this.animationObjects[d])}}if(f==0){window.clearInterval(this.animationIntervalCode);delete (this.animationIntervalCode)}else{this.update(g)}return this};JXG.Board.prototype.emulateColorblindness=function(d){var f,g,h=this;if(!JXG.exists(d)){d="none"}if(this.currentCBDef==d){return this}for(f in h.objects){g=h.objects[f];if(d!="none"){if(this.currentCBDef=="none"){g.visPropOriginal=JXG.deepCopy(g.visProp)}g.setProperty({strokeColor:JXG.rgb2cb(g.visPropOriginal.strokeColor,d),fillColor:JXG.rgb2cb(g.visPropOriginal.fillColor,d),highlightStrokeColor:JXG.rgb2cb(g.visPropOriginal.highlightStrokeColor,d),highlightFillColor:JXG.rgb2cb(g.visPropOriginal.highlightFillColor,d)})}else{if(JXG.exists(g.visPropOriginal)){g.visProp=JXG.deepCopy(g.visPropOriginal)}}}this.currentCBDef=d;this.update();return this};JXG.Board.prototype.createRoulette=function(h,g,m,j,l,e,k){var f=this;var d=function(){var u=0,y=0,x=0,w=m,v=JXG.Math.Numerics.root(function(G){var I=h.X(w),H=h.Y(w),F=g.X(G),E=g.Y(G);return(I-F)*(I-F)+(H-E)*(H-E)},[0,Math.PI*2]),r=0,n=0,B,C=f.create("transform",[function(){return u}],{type:"rotate"}),q=f.create("transform",[function(){return u},function(){return h.X(w)},function(){return h.Y(w)}],{type:"rotate"}),t=f.create("transform",[function(){return y},function(){return x}],{type:"translate"}),z=function(N,P,O){var M=JXG.Math.Numerics.D(N.X)(P),G=JXG.Math.Numerics.D(N.Y)(P),L=JXG.Math.Numerics.D(N.X)(O),F=JXG.Math.Numerics.D(N.Y)(O),I=JXG.Math.Numerics.D(N.X)((P+O)*0.5),K=JXG.Math.Numerics.D(N.Y)((P+O)*0.5),J=Math.sqrt(M*M+G*G),H=Math.sqrt(L*L+F*F),E=Math.sqrt(I*I+K*K);return(J+4*E+H)*(O-P)/6},D=function(E){return B-z(g,v,E)},A=Math.PI/18,p=A*9,s=null;this.rolling=function(){r=w+l*j;B=z(h,w,r);n=JXG.Math.Numerics.root(D,v);var F=new JXG.Complex(h.X(r),h.Y(r));var G=new JXG.Complex(g.X(n),g.Y(n));var H=new JXG.Complex(JXG.Math.Numerics.D(h.X)(r),JXG.Math.Numerics.D(h.Y)(r));var E=new JXG.Complex(JXG.Math.Numerics.D(g.X)(n),JXG.Math.Numerics.D(g.Y)(n));var I=JXG.C.div(H,E);u=Math.atan2(I.imaginary,I.real);I.div(JXG.C.abs(I));I.mult(G);y=F.real-I.real;x=F.imaginary-I.imaginary;if(u<-A&&u>-p){u=-A;q.applyOnce(k)}else{if(u>A&&u<p){u=A;q.applyOnce(k)}else{C.applyOnce(k);t.applyOnce(k);w=r;v=n}}f.update()};this.start=function(){if(e>0){s=setInterval(this.rolling,e)}return this};this.stop=function(){clearInterval(s);return this};return this};return new d()};JXG.Options={showCopyright:true,showNavigation:true,takeSizeFromFile:false,renderer:"svg",takeFirst:false,grid:{hasGrid:false,gridX:1,gridY:1,gridColor:"#C0C0C0",gridOpacity:"0.5",gridDash:true,snapToGrid:false,snapSizeX:2,snapSizeY:2},zoom:{factor:1.25},elements:{strokeColor:"#0000ff",highlightStrokeColor:"#C3D9FF",fillColor:"none",highlightFillColor:"none",strokeOpacity:1,highlightStrokeOpacity:1,fillOpacity:1,highlightFillOpacity:1,strokeWidth:"2px",withLabel:false,draft:{draft:false,color:"#565656",opacity:0.8,strokeWidth:"1px"}},point:{withLabel:true,style:5,face:"o",size:3,fillColor:"#ff0000",highlightFillColor:"#EEEEEE",strokeWidth:"2px",strokeColor:"#ff0000",highlightStrokeColor:"#C3D9FF",zoom:false,showInfobox:true},line:{firstArrow:false,lastArrow:false,straightFirst:true,straightLast:true,fillColor:"#000000",highlightFillColor:"none",strokeColor:"#0000ff",highlightStrokeColor:"#888888",ticks:{drawLabels:true,drawZero:false,insertTicks:false,minTicksDistance:50,maxTicksDistance:300,minorHeight:4,majorHeight:10,minorTicks:4,defaultDistance:1},labelOffsets:[10,10]},axis:{strokeColor:"#666666",highlightStrokeColor:"#888888"},circle:{fillColor:"none",highlightFillColor:"none",strokeColor:"#0000ff",highlightStrokeColor:"#C3D9FF"},conic:{fillColor:"none",highlightFillColor:"none",strokeColor:"#0000ff",highlightStrokeColor:"#C3D9FF"},angle:{withLabel:true,radius:1,fillColor:"#FF7F00",highlightFillColor:"#FF7F00",strokeColor:"#FF7F00",textColor:"#0000FF",fillOpacity:0.3,highlightFillOpacity:0.3},arc:{firstArrow:false,lastArrow:false,fillColor:"none",highlightFillColor:"none",strokeColor:"#0000ff",highlightStrokeColor:"#C3D9FF"},polygon:{fillColor:"#00FF00",highlightFillColor:"#00FF00",fillOpacity:0.3,highlightFillOpacity:0.3},sector:{fillColor:"#00FF00",highlightFillColor:"#00FF00",fillOpacity:0.3,highlightFillOpacity:0.3},text:{fontSize:12,strokeColor:"#000000",useASCIIMathML:false,useMathJax:false,defaultDisplay:"html"},curve:{strokeWidth:"1px",strokeColor:"#0000ff",RDPsmoothing:false,numberPointsHigh:1600,numberPointsLow:400,doAdvancedPlot:true},precision:{touch:30,mouse:4,epsilon:0.0001,hasPoint:4},layer:{numlayers:20,text:9,point:9,arc:8,line:7,circle:6,curve:5,polygon:4,sector:3,angle:3,grid:1,image:0},locus:{translateToOrigin:false,translateTo10:false,stretch:false,toOrigin:null,to10:null}};JXG.useStandardOptions=function(g){var j=JXG.Options,f=g.hasGrid,e,d,h;g.options.grid.hasGrid=j.grid.hasGrid;g.options.grid.gridX=j.grid.gridX;g.options.grid.gridY=j.grid.gridY;g.options.grid.gridColor=j.grid.gridColor;g.options.grid.gridOpacity=j.grid.gridOpacity;g.options.grid.gridDash=j.grid.gridDash;g.options.grid.snapToGrid=j.grid.snapToGrid;g.options.grid.snapSizeX=j.grid.SnapSizeX;g.options.grid.snapSizeY=j.grid.SnapSizeY;g.takeSizeFromFile=j.takeSizeFromFile;for(e in g.objects){h=g.objects[e];if(h.elementClass==JXG.OBJECT_CLASS_POINT){h.visProp.fillColor=j.point.fillColor;h.visProp.highlightFillColor=j.point.highlightFillColor;h.visProp.strokeColor=j.point.strokeColor;h.visProp.highlightStrokeColor=j.point.highlightStrokeColor}else{if(h.elementClass==JXG.OBJECT_CLASS_LINE){h.visProp.fillColor=j.line.fillColor;h.visProp.highlightFillColor=j.line.highlightFillColor;h.visProp.strokeColor=j.line.strokeColor;h.visProp.highlightStrokeColor=j.line.highlightStrokeColor;for(d in h.ticks){d.majorTicks=j.line.ticks.majorTicks;d.minTicksDistance=j.line.ticks.minTicksDistance;d.minorHeight=j.line.ticks.minorHeight;d.majorHeight=j.line.ticks.majorHeight}}else{if(h.elementClass==JXG.OBJECT_CLASS_CIRCLE){h.visProp.fillColor=j.circle.fillColor;h.visProp.highlightFillColor=j.circle.highlightFillColor;h.visProp.strokeColor=j.circle.strokeColor;h.visProp.highlightStrokeColor=j.circle.highlightStrokeColor}else{if(h.type==JXG.OBJECT_TYPE_ANGLE){h.visProp.fillColor=j.angle.fillColor;h.visProp.highlightFillColor=j.angle.highlightFillColor;h.visProp.strokeColor=j.angle.strokeColor}else{if(h.type==JXG.OBJECT_TYPE_ARC){h.visProp.fillColor=j.arc.fillColor;h.visProp.highlightFillColor=j.arc.highlightFillColor;h.visProp.strokeColor=j.arc.strokeColor;h.visProp.highlightStrokeColor=j.arc.highlightStrokeColor}else{if(h.type==JXG.OBJECT_TYPE_POLYGON){h.visProp.fillColor=j.polygon.fillColor;h.visProp.highlightFillColor=j.polygon.highlightFillColor;h.visProp.fillOpacity=j.polygon.fillOpacity;h.visProp.highlightFillOpacity=j.polygon.highlightFillOpacity}else{if(h.type==JXG.OBJECT_TYPE_CONIC){h.visProp.fillColor=j.conic.fillColor;h.visProp.highlightFillColor=j.conic.highlightFillColor;h.visProp.strokeColor=j.conic.strokeColor;h.visProp.highlightStrokeColor=j.conic.highlightStrokeColor}else{if(h.type==JXG.OBJECT_TYPE_CURVE){h.visProp.strokeColor=j.curve.strokeColor}}}}}}}}}for(e in g.objects){h=g.objects[e];if(h.type==JXG.OBJECT_TYPE_SECTOR){h.arc.visProp.fillColor=j.sector.fillColor;h.arc.visProp.highlightFillColor=j.sector.highlightFillColor;h.arc.visProp.fillOpacity=j.sector.fillOpacity;h.arc.visProp.highlightFillOpacity=j.sector.highlightFillOpacity}}g.fullUpdate();if(f&&g.hasGrid){g.renderer.removeGrid(g);g.renderer.drawGrid(g)}else{if(f&&!g.hasGrid){g.renderer.removeGrid(g)}else{if(!f&&g.hasGrid){g.renderer.drawGrid(g)}}}};JXG.useBlackWhiteOptions=function(d){var e=JXG.Options;e.point.fillColor=JXG.rgb2bw(e.point.fillColor);e.point.highlightFillColor=JXG.rgb2bw(e.point.highlightFillColor);e.point.strokeColor=JXG.rgb2bw(e.point.strokeColor);e.point.highlightStrokeColor=JXG.rgb2bw(e.point.highlightStrokeColor);e.line.fillColor=JXG.rgb2bw(e.line.fillColor);e.line.highlightFillColor=JXG.rgb2bw(e.line.highlightFillColor);e.line.strokeColor=JXG.rgb2bw(e.line.strokeColor);e.line.highlightStrokeColor=JXG.rgb2bw(e.line.highlightStrokeColor);e.circle.fillColor=JXG.rgb2bw(e.circle.fillColor);e.circle.highlightFillColor=JXG.rgb2bw(e.circle.highlightFillColor);e.circle.strokeColor=JXG.rgb2bw(e.circle.strokeColor);e.circle.highlightStrokeColor=JXG.rgb2bw(e.circle.highlightStrokeColor);e.arc.fillColor=JXG.rgb2bw(e.arc.fillColor);e.arc.highlightFillColor=JXG.rgb2bw(e.arc.highlightFillColor);e.arc.strokeColor=JXG.rgb2bw(e.arc.strokeColor);e.arc.highlightStrokeColor=JXG.rgb2bw(e.arc.highlightStrokeColor);e.polygon.fillColor=JXG.rgb2bw(e.polygon.fillColor);e.polygon.highlightFillColor=JXG.rgb2bw(e.polygon.highlightFillColor);e.sector.fillColor=JXG.rgb2bw(e.sector.fillColor);e.sector.highlightFillColor=JXG.rgb2bw(e.sector.highlightFillColor);e.curve.strokeColor=JXG.rgb2bw(e.curve.strokeColor);e.grid.gridColor=JXG.rgb2bw(e.grid.gridColor);JXG.useStandardOptions(d)};JXG.rgb2bw=function(f){if(f=="none"){return f}var e,h="0123456789ABCDEF",g,d;d=JXG.rgbParser(f);e=0.3*d[0]+0.59*d[1]+0.11*d[2];g=h.charAt((e>>4)&15)+h.charAt(e&15);f="#"+g+""+g+""+g;return f};JXG.simulateColorBlindness=function(e,d){o=JXG.Options;o.point.fillColor=JXG.rgb2cb(o.point.fillColor,d);o.point.highlightFillColor=JXG.rgb2cb(o.point.highlightFillColor,d);o.point.strokeColor=JXG.rgb2cb(o.point.strokeColor,d);o.point.highlightStrokeColor=JXG.rgb2cb(o.point.highlightStrokeColor,d);o.line.fillColor=JXG.rgb2cb(o.line.fillColor,d);o.line.highlightFillColor=JXG.rgb2cb(o.line.highlightFillColor,d);o.line.strokeColor=JXG.rgb2cb(o.line.strokeColor,d);o.line.highlightStrokeColor=JXG.rgb2cb(o.line.highlightStrokeColor,d);o.circle.fillColor=JXG.rgb2cb(o.circle.fillColor,d);o.circle.highlightFillColor=JXG.rgb2cb(o.circle.highlightFillColor,d);o.circle.strokeColor=JXG.rgb2cb(o.circle.strokeColor,d);o.circle.highlightStrokeColor=JXG.rgb2cb(o.circle.highlightStrokeColor,d);o.arc.fillColor=JXG.rgb2cb(o.arc.fillColor,d);o.arc.highlightFillColor=JXG.rgb2cb(o.arc.highlightFillColor,d);o.arc.strokeColor=JXG.rgb2cb(o.arc.strokeColor,d);o.arc.highlightStrokeColor=JXG.rgb2cb(o.arc.highlightStrokeColor,d);o.polygon.fillColor=JXG.rgb2cb(o.polygon.fillColor,d);o.polygon.highlightFillColor=JXG.rgb2cb(o.polygon.highlightFillColor,d);o.sector.fillColor=JXG.rgb2cb(o.sector.fillColor,d);o.sector.highlightFillColor=JXG.rgb2cb(o.sector.highlightFillColor,d);o.curve.strokeColor=JXG.rgb2cb(o.curve.strokeColor,d);o.grid.gridColor=JXG.rgb2cb(o.grid.gridColor,d);JXG.useStandardOptions(e)};JXG.rgb2cb=function(j,r){if(j=="none"){return j}var u,h,g,x,t,p,f,w,n,e,v,k,q;t=JXG.rgb2LMS(j);h=t.l;g=t.m;x=t.s;r=r.toLowerCase();switch(r){case"protanopia":f=-0.06150039994295001;w=0.08277001656812001;n=-0.013200141220000003;e=0.05858939668799999;v=-0.07934519995360001;k=0.013289415272000003;q=0.6903216543277437;p=x/g;if(p<q){h=-(w*g+n*x)/f}else{h=-(v*g+k*x)/e}break;case"tritanopia":f=-0.00058973116217;w=0.007690316482;n=-0.01011703519052;e=0.025495080838999994;v=-0.0422740347;k=0.017005316784;q=0.8349489908460004;p=g/h;if(p<q){x=-(f*h+w*g)/n}else{x=-(e*h+v*g)/k}break;default:f=-0.06150039994295001;w=0.08277001656812001;n=-0.013200141220000003;e=0.05858939668799999;v=-0.07934519995360001;k=0.013289415272000003;q=0.5763833686400911;p=x/h;if(p<q){g=-(f*h+n*x)/w}else{g=-(e*h+k*x)/v}break}u=JXG.LMS2rgb(h,g,x);var d="0123456789ABCDEF";p=d.charAt((u.r>>4)&15)+d.charAt(u.r&15);j="#"+p;p=d.charAt((u.g>>4)&15)+d.charAt(u.g&15);j+=p;p=d.charAt((u.b>>4)&15)+d.charAt(u.b&15);j+=p;return j};JXG.loadOptionsFromFile=function(e,f,d){this.cbp=function(g){this.parseString(g,f,d)};this.cb=JXG.bind(this.cbp,this);JXG.FileReader.parseFileContent(e,this.cb,"raw")};JXG.parseOptionsString=function(text,applyTo,board){var newOptions="";if(text!=""){newOptions=eval("("+text+")")}else{return}var maxDepth=10;var applyOption=function(base,option,depth){if(depth==10){return}depth++;for(var key in option){if((JXG.isNumber(option[key]))||(JXG.isArray(option[key]))||(JXG.isString(option[key]))||(option[key]==true)||(option[key]==false)){base[key]=option[key]}else{applyOption(base[key],option[key],depth)}}};applyOption(this,newOptions,0);if(applyTo&&typeof board!="undefined"){JXG.useStandardOptions(board)}};JXG.supportsVML=function(){if(!!document.namespaces){return true}else{return false}};JXG.supportsSVG=function(){return document.implementation.hasFeature("http://www.w3.org/TR/SVG11/feature#BasicStructure","1.1")};JXG.JSXGraph={licenseText:"JSXGraph v0.83rc4 Copyright (C) see http://jsxgraph.org",boards:{},elements:{},rendererType:(function(){if(JXG.supportsSVG()){JXG.Options.renderer="svg"}else{if(JXG.supportsVML()){JXG.Options.renderer="vml";function d(){document.body.scrollLeft;document.body.scrollTop}document.onmousemove=d}else{JXG.Options.renderer="canvas"}}arr=JXG.rendererFiles[JXG.Options.renderer].split(",");for(i=0;i<arr.length;i++){(function(e){JXG.require(JXG.requirePath+e+".js")})(arr[i])}return JXG.Options.renderer})(),initBoard:function(g,e){var m,x,v,q,n,s,f,d,u,t,r,p,l,j,k;d=JXG.getDimensions(g);if(typeof e=="undefined"){e={}}if(typeof e.boundingbox!="undefined"){u=e.boundingbox;s=parseInt(d.width);f=parseInt(d.height);if(e.keepaspectratio){q=s/(u[2]-u[0]);n=f/(-u[3]+u[1]);if(q<n){n=q}else{q=n}}else{q=s/(u[2]-u[0]);n=f/(-u[3]+u[1])}x=-q*u[0];v=n*u[1]}else{x=((typeof e.originX)=="undefined"?150:e.originX);v=((typeof e.originY)=="undefined"?150:e.originY);q=((typeof e.unitX)=="undefined"?50:e.unitX);n=((typeof e.unitY)=="undefined"?50:e.unitY)}t=((typeof e.zoom)=="undefined"?1:e.zoom);r=t*((typeof e.zoomX)=="undefined"?1:e.zoomX);p=t*((typeof e.zoomY)=="undefined"?1:e.zoomY);l=((typeof e.showCopyright)=="undefined"?JXG.Options.showCopyright:e.showCopyright);if(JXG.Options.renderer=="svg"){m=new JXG.SVGRenderer(document.getElementById(g))}else{if(JXG.Options.renderer=="vml"){m=new JXG.VMLRenderer(document.getElementById(g))}else{if(JXG.Options.renderer=="silverlight"){m=new JXG.SilverlightRenderer(document.getElementById(g),d.width,d.height)}else{m=new JXG.CanvasRenderer(document.getElementById(g))}}}k=new JXG.Board(g,m,"",[x,v],1,1,q,n,d.width,d.height,l);this.boards[k.id]=k;k.suspendUpdate();k.initInfobox();if(e.axis){k.defaultAxes={};k.defaultAxes.x=k.create("axis",[[0,0],[1,0]],{});k.defaultAxes.y=k.create("axis",[[0,0],[0,1]],{})}if(e.grid){k.renderer.drawGrid(k)}if(typeof e.shownavigation!="undefined"){e.showNavigation=e.shownavigation}j=((typeof e.showNavigation)=="undefined"?k.options.showNavigation:e.showNavigation);if(j){k.renderer.drawZoomBar(k)}k.unsuspendUpdate();return k},loadBoardFromFile:function(g,d,j){var h,e,f;if(JXG.Options.renderer=="svg"){h=new JXG.SVGRenderer(document.getElementById(g))}else{if(JXG.Options.renderer=="vml"){h=new JXG.VMLRenderer(document.getElementById(g))}else{if(JXG.Options.renderer=="silverlight"){h=new JXG.SilverlightRenderer(document.getElementById(g),f.width,f.height)}else{h=new JXG.CanvasRenderer(document.getElementById(g))}}}f=JXG.getDimensions(g);e=new JXG.Board(g,h,"",[150,150],1,1,50,50,f.width,f.height);e.initInfobox();JXG.FileReader.parseFileContent(d,e,j);if(e.options.showNavigation){e.renderer.drawZoomBar(e)}this.boards[e.id]=e;return e},loadBoardFromString:function(g,d,j){var h,f,e;if(JXG.Options.renderer=="svg"){h=new JXG.SVGRenderer(document.getElementById(g))}else{if(JXG.Options.renderer=="vml"){h=new JXG.VMLRenderer(document.getElementById(g))}else{if(JXG.Options.renderer=="silverlight"){h=new JXG.SilverlightRenderer(document.getElementById(g),f.width,f.height)}else{h=new JXG.CanvasRenderer(document.getElementById(g))}}}f=JXG.getDimensions(g);e=new JXG.Board(g,h,"",[150,150],1,1,50,50,f.width,f.height);e.initInfobox();JXG.FileReader.parseString(d,e,j,true);if(e.options.showNavigation){e.renderer.drawZoomBar(e)}this.boards[e.id]=e;return e},freeBoard:function(e){var d;if(typeof(e)=="string"){e=this.boards[e]}JXG.removeEvent(document,"mousedown",e.mouseDownListener,e);JXG.removeEvent(document,"mouseup",e.mouseUpListener,e);JXG.removeEvent(e.containerObj,"mousemove",e.mouseMoveListener,e);for(d in e.objects){e.removeObject(e.objects[d])}e.containerObj.innerHTML="";for(d in e.objects){delete (e.objects[d])}delete (e.renderer);delete (e.algebra);delete (this.boards[e.id])},registerElement:function(d,e){d=d.toLowerCase();this.elements[d]=e;if(JXG.Board.prototype["_"+d]){throw new Error("JSXGraph: Can't create wrapper method in JXG.Board because member '_"+d+"' already exists'")}JXG.Board.prototype["_"+d]=function(g,f){return this.create(d,g,f)}},unregisterElement:function(d){delete (this.elements[d.toLowerCase()]);delete (JXG.Board.prototype["_"+d.toLowerCase()])}};JXG.getReference=function(e,d){if(typeof(d)=="string"){if(e.objects[d]!=null){d=e.objects[d]}else{if(e.elementsByName[d]!=null){d=e.elementsByName[d]}}}return d};JXG.getRef=JXG.getReference;JXG.isString=function(d){return typeof d=="string"};JXG.isNumber=function(d){return typeof d=="number"};JXG.isFunction=function(d){return typeof d=="function"};JXG.isArray=function(d){return d!=null&&typeof d=="object"&&"splice" in d&&"join" in d};JXG.isPoint=function(d){if(typeof d=="object"){return(d.elementClass==JXG.OBJECT_CLASS_POINT)}return false};JXG.exists=(function(d){return function(e){return !(e===d||e===null)}})();JXG.str2Bool=function(d){if(!JXG.exists(d)){return true}if(typeof d=="boolean"){return d}return(d.toLowerCase()=="true")};JXG._board=function(e,d){return JXG.JSXGraph.initBoard(e,d)};JXG.createEvalFunction=function(e,j,k){var g=[],d,h;for(d=0;d<k;d++){if(typeof j[d]=="string"){h=JXG.GeonextParser.geonext2JS(j[d],e);h=h.replace(/this\.board\./g,"board.");g[d]=new Function("","return "+(h)+";")}}return function(l){var f=j[l];if(typeof f=="string"){return g[l]()}else{if(typeof f=="function"){return f()}else{if(typeof f=="number"){return f}}}return 0}};JXG.createFunction=function(e,f,g,h){var d;if((h==null||h)&&JXG.isString(e)){d=JXG.GeonextParser.geonext2JS(e,f);return new Function(g,"return "+d+";")}else{if(JXG.isFunction(e)){return e}else{if(JXG.isNumber(e)){return function(){return e}}else{if(JXG.isString(e)){return function(){return e}}}}}return null};JXG.checkParents=function(f,p,n){var g,e,d,l,q=[],m=p.slice(0),h=function(k,j){var r=(typeof k).toLowerCase();if(r==="number"){return j&&((j.type&&j.type===k)||(j.elementClass&&j.elementClass===k))}else{switch(k.toLowerCase()){case"string":case"object":case"function":case"number":return(typeof j).toLowerCase()===k.toLowerCase();break;case"array":return JXG.isArray(j);break}}return false};for(g=0;g<n.length;g++){for(e=0;e<n[g].length&&p.length>=n[g].length;e++){d=0;while(d<m.length&&!h(n[g][e],m[d])){d++}if(d<m.length){q.push(m.splice(l-d-1,1)[0])}}if(m.length){m=p.slice(0);q=[]}else{return q}}};JXG.readOption=function(d,f,e){var g=d.elements[e];if(JXG.exists(d[f][e])){g=d[f][e]}return g};JXG.checkAttributes=function(d,f){var e;if(!JXG.exists(d)){d={}}for(e in f){if(!JXG.exists(d[e])){d[e]=f[e]}}return d};JXG.getDimensions=function(j){var h,l,f,m,k,e,d,g;h=document.getElementById(j);if(!JXG.exists(h)){throw new Error("\nJSXGraph: HTML container element '"+(j)+"' not found.")}l=h.style.display;if(l!="none"&&l!=null){return{width:h.offsetWidth,height:h.offsetHeight}}f=h.style;m=f.visibility;k=f.position;e=f.display;f.visibility="hidden";f.position="absolute";f.display="block";d=h.clientWidth;g=h.clientHeight;f.display=e;f.position=k;f.visibility=m;return{width:d,height:g}};JXG.addEvent=function(g,f,e,d){d["x_internal"+f]=function(){return e.apply(d,arguments)};if(JXG.exists(g.addEventListener)){g.addEventListener(f,d["x_internal"+f],false)}else{g.attachEvent("on"+f,d["x_internal"+f])}};JXG.removeEvent=function(j,g,f,d){try{if(JXG.exists(j.addEventListener)){j.removeEventListener(g,d["x_internal"+g],false)}else{j.detachEvent("on"+g,d["x_internal"+g])}}catch(h){JXG.debug("JSXGraph: Can't remove event listener on"+g+": "+d["x_internal"+g])}};JXG.bind=function(e,d){return function(){return e.apply(d,arguments)}};JXG.getPosition=function(f){var d=0,g=0;if(!f){f=window.event}if(f.pageX||f.pageY){d=f.pageX;g=f.pageY}else{if(f.clientX||f.clientY){d=f.clientX+document.body.scrollLeft+document.documentElement.scrollLeft;g=f.clientY+document.body.scrollTop+document.documentElement.scrollTop}}return[d,g]};JXG.getOffset=function(f){var g=f,d=g.offsetLeft,e=g.offsetTop;while(g=g.offsetParent){d+=g.offsetLeft;e+=g.offsetTop;if(g.offsetParent){d+=g.clientLeft;e+=g.clientTop}}return[d,e]};JXG.getStyle=function(e,d){return e.style[d]};JXG.keys=function(d,e){var f=[],g;for(g in d){if(e){if(d.hasOwnProperty(g)){f.push(g)}}else{f.push(g)}}return f};JXG.escapeHTML=function(d){return d.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">")};JXG.unescapeHTML=function(d){return d.replace(/<\/?[^>]+>/gi,"").replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">")};JXG.clone=function(e){var d={};d.prototype=e;return d};JXG.cloneAndCopy=function(g,f){var d={},e;d.prototype=g;for(e in f){d[e]=f[e]}return d};JXG.deepCopy=function(f){var h,e,g,d;if(typeof f!=="object"||f==null){return f}if(this.isArray(f)){h=[];for(e=0;e<f.length;e++){g=f[e];if(typeof g=="object"){if(this.isArray(g)){h[e]=[];for(d=0;d<g.length;d++){if(typeof g[d]!="object"){h[e].push(g[d])}else{h[e].push(this.deepCopy(g[d]))}}}else{h[e]=this.deepCopy(g)}}else{h[e]=g}}}else{h={};for(e in f){g=f[e];if(typeof g=="object"){if(this.isArray(g)){h[e]=[];for(d=0;d<g.length;d++){if(typeof g[d]!="object"){h[e].push(g[d])}else{h[e].push(this.deepCopy(g[d]))}}}else{h[e]=this.deepCopy(g)}}else{h[e]=g}}}return h};JXG.toJSON=function(j){var f;if(window.JSON&&window.JSON.stringify){try{f=JSON.stringify(j);return f}catch(h){}}switch(typeof j){case"object":if(j){var g=[];if(j instanceof Array){for(var d=0;d<j.length;d++){g.push(JXG.toJSON(j[d]))}return"["+g.join(",")+"]"}else{for(var k in j){g.push('"'+k+'":'+JXG.toJSON(j[k]))}return"{"+g.join(",")+"}"}}else{return"null"}case"string":return'"'+j.replace(/(["'])/g,"\\$1")+'"';case"number":case"boolean":return new String(j)}};JXG.capitalize=function(d){return d.charAt(0).toUpperCase()+d.substring(1).toLowerCase()};JXG.timedChunk=function(e,g,f,h){var d=e.concat();setTimeout(function(){var j=+new Date();do{g.call(f,d.shift())}while(d.length>0&&(+new Date()-j<300));if(d.length>0){setTimeout(arguments.callee,1)}else{h(e)}},1)};JXG.trimNumber=function(d){d=d.replace(/^0+/,"");d=d.replace(/0+$/,"");if(d[d.length-1]=="."||d[d.length-1]==","){d=d.slice(0,-1)}if(d[0]=="."||d[0]==","){d="0"+d}return d};JXG.trim=function(d){d=d.replace(/^w+/,"");d=d.replace(/w+$/,"");return d};JXG.debug=function(d){if(console&&console.log){if(typeof d==="string"){d=d.replace(/<\S[^><]*>/g,"")}console.log(d)}else{if(document.getElementById("debug")){document.getElementById("debug").innerHTML+=d+"<br/>"}}};JXG.addEvent(window,"load",function(){var h=document.getElementsByTagName("script"),n,l,k,e,m,f,q,p,g,d;for(l=0;l<h.length;l++){n=h[l].getAttribute("type",false);if(!JXG.exists(n)){continue}if(n.toLowerCase()==="text/jessiescript"||n.toLowerCase==="jessiescript"){f=h[l].getAttribute("width",false)||"500px";q=h[l].getAttribute("height",false)||"500px";p=h[l].getAttribute("boundingbox",false)||"-5, 5, 5, -5";p=p.split(",");if(p.length!==4){p=[-5,5,5,-5]}else{for(k=0;k<p.length;k++){p[k]=parseFloat(p[k])}}g=JXG.str2Bool(h[l].getAttribute("axis",false)||"false");d=JXG.str2Bool(h[l].getAttribute("grid",false)||"false");e=document.createElement("div");e.setAttribute("id","jessiescript_autgen_jxg_"+l);e.setAttribute("style","width:"+f+"; height:"+q+"; float:left");e.setAttribute("class","jxgbox");document.body.insertBefore(e,h[l]);m=JXG.JSXGraph.initBoard("jessiescript_autgen_jxg_"+l,{boundingbox:p,keepaspectratio:true,grid:d,axis:g});m.construct(h[l].innerHTML)}}},window);JXG.OBJECT_TYPE_ARC=1330921795;JXG.OBJECT_TYPE_ARROW=1330921815;JXG.OBJECT_TYPE_AXIS=1330921816;JXG.OBJECT_TYPE_TICKS=1330926680;JXG.OBJECT_TYPE_CIRCLE=1330922316;JXG.OBJECT_TYPE_CONIC=1330922319;JXG.OBJECT_TYPE_CURVE=1330923344;JXG.OBJECT_TYPE_GLIDER=1330923340;JXG.OBJECT_TYPE_IMAGE=1330926157;JXG.OBJECT_TYPE_LINE=1330924622;JXG.OBJECT_TYPE_POINT=1330925652;JXG.OBJECT_TYPE_SLIDER=1330926404;JXG.OBJECT_TYPE_CAS=1330922320;JXG.OBJECT_TYPE_POLYGON=1330925657;JXG.OBJECT_TYPE_SECTOR=1330926403;JXG.OBJECT_TYPE_TEXT=1330926661;JXG.OBJECT_TYPE_ANGLE=1330921799;JXG.OBJECT_TYPE_INTERSECTION=1330926158;JXG.OBJECT_TYPE_TURTLE=5198933;JXG.OBJECT_TYPE_VECTOR=1330927188;JXG.OBJECT_CLASS_POINT=1;JXG.OBJECT_CLASS_LINE=2;JXG.OBJECT_CLASS_CIRCLE=3;JXG.OBJECT_CLASS_CURVE=4;JXG.OBJECT_CLASS_AREA=5;JXG.OBJECT_CLASS_OTHER=6;JXG.GeometryElement=function(){this.board=null;this.id="";this.needsUpdate=true;this.name="";this.visProp={};JXG.clearVisPropOld(this);this.isReal=true;this.visProp.dash=0;this.childElements={};this.hasLabel=false;this.layer=9;this.notExistingParents={};this.traced=false;this.fixed=false;this.frozen=false;this.traces={};this.numTraces=0;this.transformations=[];this.baseElement=null;this.descendants={};this.ancestors={};this.symbolic={};this.stdform=[1,0,0,0,1,1,0,0];this.quadraticform=[[1,0,0],[0,1,0],[0,0,1]];this.needsRegularUpdate=true};JXG.GeometryElement.prototype.init=function(e,f,d){this.board=e;this.id=f;if(!JXG.exists(d)){d=this.board.generateName(this)}this.board.elementsByName[d]=this;this.name=d;this.visProp.strokeColor=this.board.options.elements.strokeColor;this.visProp.highlightStrokeColor=this.board.options.elements.highlightStrokeColor;this.visProp.fillColor=this.board.options.elements.fillColor;this.visProp.highlightFillColor=this.board.options.elements.highlightFillColor;this.visProp.strokeWidth=this.board.options.elements.strokeWidth;this.visProp.highlightStrokeWidth=this.visProp.strokeWidth;this.visProp.strokeOpacity=this.board.options.elements.strokeOpacity;this.visProp.highlightStrokeOpacity=this.board.options.elements.highlightStrokeOpacity;this.visProp.fillOpacity=this.board.options.elements.fillOpacity;this.visProp.highlightFillOpacity=this.board.options.elements.highlightFillOpacity;this.visProp.draft=this.board.options.elements.draft.draft;this.visProp.visible=true;this.visProp.shadow=false;this.visProp.gradient="none";this.visProp.gradientSecondColor="black";this.visProp.gradientAngle="270";this.visProp.gradientSecondOpacity=this.visProp.fillOpacity;this.visProp.gradientPositionX=0.5;this.visProp.gradientPositionY=0.5};JXG.GeometryElement.prototype.addChild=function(f){var e,d;this.childElements[f.id]=f;this.addDescendants(f);f.ancestors[this.id]=this;for(e in this.descendants){this.descendants[e].ancestors[this.id]=this;for(d in this.ancestors){this.descendants[e].ancestors[this.ancestors[d].id]=this.ancestors[d]}}for(e in this.ancestors){for(d in this.descendants){this.ancestors[e].descendants[this.descendants[d].id]=this.descendants[d]}}return this};JXG.GeometryElement.prototype.addDescendants=function(e){var d;this.descendants[e.id]=e;for(d in e.childElements){this.addDescendants(e.childElements[d])}return this};JXG.GeometryElement.prototype.generatePolynomial=function(){return[]};JXG.GeometryElement.prototype.animate=function(g,f){var d,e,j=35,k=Math.ceil(f/(j*1)),h,m=this;this.animationData={};var n=function(w,v,t){var u,s,r,q,p;u=JXG.rgb2hsv(w);s=JXG.rgb2hsv(v);r=(s[0]-u[0])/(1*k);q=(s[1]-u[1])/(1*k);p=(s[2]-u[2])/(1*k);m.animationData[t]=new Array(k);for(h=0;h<k;h++){m.animationData[t][k-h-1]=JXG.hsv2rgb(u[0]+(h+1)*r,u[1]+(h+1)*q,u[2]+(h+1)*p)}},l=function(t,p,r){t=parseFloat(t);p=parseFloat(p);if(isNaN(t)||isNaN(p)){return}var q=(p-t)/(1*k);m.animationData[r]=new Array(k);for(h=0;h<k;h++){m.animationData[r][k-h-1]=t+(h+1)*q}};for(d in g){e=d.toLowerCase();switch(e){case"strokecolor":n(this.visProp.strokeColor,g[d],"strokeColor");break;case"strokeopacity":l(this.visProp.strokeOpacity,g[d],"strokeOpacity");break;case"strokewidth":l(this.visProp.strokeWidth,g[d],"strokeWidth");break;case"fillcolor":n(this.visProp.fillColor,g[d],"fillColor");break;case"fillopacity":l(this.visProp.fillOpacity,g[d],"fillOpacity");break}}this.board.addAnimation(this);return this};JXG.GeometryElement.prototype.update=function(){if(this.traced){this.cloneToBackground(true)}return this};JXG.GeometryElement.prototype.updateRenderer=function(){};JXG.GeometryElement.prototype.hideElement=function(){this.visProp.visible=false;this.board.renderer.hide(this);if(this.label!=null&&this.hasLabel){this.label.hiddenByParent=true;if(this.label.content.visProp.visible){this.board.renderer.hide(this.label.content)}}return this};JXG.GeometryElement.prototype.showElement=function(){this.visProp.visible=true;this.board.renderer.show(this);if(this.label!=null&&this.hasLabel&&this.label.hiddenByParent){this.label.hiddenByParent=false;if(this.label.content.visProp.visible){this.board.renderer.show(this.label.content)}}return this};JXG.GeometryElement.prototype.setProperty=function(){var j,h,f,e,g,k;for(j=0;j<arguments.length;j++){e=arguments[j];if(typeof e=="string"){k=e.split(":");k[0]=k[0].replace(/^\s+/,"").replace(/\s+$/,"");k[1]=k[1].replace(/^\s+/,"").replace(/\s+$/,"")}else{if(!JXG.isArray(e)){for(h in e){this.setProperty([h,e[h]])}return this}else{k=e}}if(k[1]==null){continue}switch(k[0].replace(/\s+/g,"").toLowerCase()){case"needsregularupdate":this.needsRegularUpdate=!(k[1]=="false"||k[1]==false);this.board.renderer.setBuffering(this,this.needsRegularUpdate?"auto":"static");break;case"color":this.setProperty({strokeColor:k[1],fillColor:k[1]});break;case"opacity":this.setProperty({strokeOpacity:k[1],fillOpacity:k[1]});break;case"strokewidth":this.visProp.strokeWidth=k[1];this.visProp.highlightStrokeWidth=k[1];this.board.renderer.setObjectStrokeWidth(this,this.visProp.strokeWidth);break;case"strokecolor":f=k[1];if(f.length=="9"&&f.substr(0,1)=="#"){g=f.substr(7,2);f=f.substr(0,7)}else{g="FF"}this.visProp.strokeColor=f;this.visProp.strokeOpacity=parseInt(g.toUpperCase(),16)/255;this.board.renderer.setObjectStrokeColor(this,this.visProp.strokeColor,this.visProp.strokeOpacity);break;case"fillcolor":f=k[1];if(f.length=="9"&&f.substr(0,1)=="#"){g=f.substr(7,2);f=f.substr(0,7)}else{g="FF"}this.visProp.fillColor=f;this.visProp.fillOpacity=parseInt(g.toUpperCase(),16)/255;this.board.renderer.setObjectFillColor(this,this.visProp.fillColor,this.visProp.fillOpacity);break;case"highlightstrokewidth":this.visProp.highlightStrokeWidth=k[1];break;case"highlightstrokecolor":f=k[1];if(f.length=="9"&&f.substr(0,1)=="#"){g=f.substr(7,2);f=f.substr(0,7)}else{g="FF"}this.visProp.highlightStrokeColor=f;this.visProp.highlightStrokeOpacity=parseInt(g.toUpperCase(),16)/255;break;case"highlightfillcolor":f=k[1];if(f.length=="9"&&f.substr(0,1)=="#"){g=f.substr(7,2);f=f.substr(0,7)}else{g="FF"}this.visProp.highlightFillColor=f;this.visProp.highlightFillOpacity=parseInt(g.toUpperCase(),16)/255;break;case"fillopacity":this.visProp.fillOpacity=k[1];this.board.renderer.setObjectFillColor(this,this.visProp.fillColor,this.visProp.fillOpacity);break;case"strokeopacity":this.visProp.strokeOpacity=k[1];this.board.renderer.setObjectStrokeColor(this,this.visProp.strokeColor,this.visProp.strokeOpacity);break;case"highlightfillopacity":this.visProp.highlightFillOpacity=k[1];break;case"highlightstrokeopacity":this.visProp.highlightStrokeOpacity=k[1];break;case"labelcolor":f=k[1];if(f.length=="9"&&f.substr(0,1)=="#"){g=f.substr(7,2);f=f.substr(0,7)}else{g="FF"}if(g=="00"){if(this.label!=null&&this.hasLabel){this.label.content.hideElement()}}if(this.label!=null&&this.hasLabel){this.label.color=f;this.board.renderer.setObjectStrokeColor(this.label.content,f,g)}if(this.type==JXG.OBJECT_TYPE_TEXT){this.visProp.strokeColor=f;this.board.renderer.setObjectStrokeColor(this,this.visProp.strokeColor,1)}break;case"infoboxtext":if(typeof(k[1])=="string"){this.infoboxText=k[1]}else{this.infoboxText=false}break;case"showinfobox":if(k[1]=="false"||k[1]==false){this.showInfobox=false}else{if(k[1]=="true"||k[1]==true){this.showInfobox=true}}break;case"visible":if(k[1]=="false"||k[1]==false){this.visProp.visible=false;this.hideElement()}else{if(k[1]=="true"||k[1]==true){this.visProp.visible=true;this.showElement()}}break;case"dash":this.setDash(k[1]);break;case"trace":if(k[1]=="false"||k[1]==false){this.traced=false}else{if(k[1]=="true"||k[1]==true){this.traced=true}}break;case"style":this.setStyle(1*k[1]);break;case"face":if(this.elementClass==JXG.OBJECT_CLASS_POINT){this.setFace(k[1])}break;case"size":if(this.elementClass==JXG.OBJECT_CLASS_POINT){this.visProp.size=1*k[1];this.board.renderer.updatePoint(this)}break;case"fixed":this.fixed=((k[1]=="false")||(k[1]==false))?false:true;break;case"frozen":this.frozen=((k[1]=="false")||(k[1]==false))?false:true;break;case"shadow":if(k[1]=="false"||k[1]==false){this.visProp.shadow=false}else{if(k[1]=="true"||k[1]==true){this.visProp.shadow=true}}this.board.renderer.setShadow(this);break;case"gradient":this.visProp.gradient=k[1];this.board.renderer.setGradient(this);break;case"gradientsecondcolor":f=k[1];if(f.length=="9"&&f.substr(0,1)=="#"){g=f.substr(7,2);f=f.substr(0,7)}else{g="FF"}this.visProp.gradientSecondColor=f;this.visProp.gradientSecondOpacity=parseInt(g.toUpperCase(),16)/255;this.board.renderer.updateGradient(this);break;case"gradientsecondopacity":this.visProp.gradientSecondOpacity=k[1];this.board.renderer.updateGradient(this);break;case"draft":if(k[1]=="false"||k[1]==false){if(this.visProp.draft==true){this.visProp.draft=false;this.board.renderer.removeDraft(this)}}else{if(k[1]=="true"||k[1]==true){this.visProp.draft=true;this.board.renderer.setDraft(this)}}break;case"straightfirst":if(k[1]=="false"||k[1]==false){this.visProp.straightFirst=false}else{if(k[1]=="true"||k[1]==true){this.visProp.straightFirst=true}}this.setStraight(this.visProp.straightFirst,this.visProp.straightLast);break;case"straightlast":if(k[1]=="false"||k[1]==false){this.visProp.straightLast=false}else{if(k[1]=="true"||k[1]==true){this.visProp.straightLast=true}}this.setStraight(this.visProp.straightFirst,this.visProp.straightLast);break;case"firstarrow":if(k[1]=="false"||k[1]==false){this.visProp.firstArrow=false}else{if(k[1]=="true"||k[1]==true){this.visProp.firstArrow=true}}this.setArrow(this.visProp.firstArrow,this.visProp.lastArrow);break;case"lastarrow":if(k[1]=="false"||k[1]==false){this.visProp.lastArrow=false}else{if(k[1]=="true"||k[1]==true){this.visProp.lastArrow=true}}this.setArrow(this.visProp.firstArrow,this.visProp.lastArrow);break;case"curvetype":this.curveType=k[1];break;case"fontsize":this.visProp.fontSize=k[1];break;case"insertticks":if(this.type==JXG.OBJECT_TYPE_TICKS){var d=this.insertTicks;this.insertTicks=!(k[1]=="false"||k[1]==false);if(d!=this.insertTicks){this.prepareUpdate().update().updateRenderer()}}break;case"drawlabels":if(this.type==JXG.OBJECT_TYPE_TICKS){var d=this.drawLabels;this.drawLabels=!(k[1]=="false"||k[1]==false);if(d!=this.drawLabels){this.prepareUpdate().update().updateRenderer()}}break;case"drawzero":if(this.type==JXG.OBJECT_TYPE_TICKS){var d=this.drawZero;this.drawZero=!(k[1]=="false"||k[1]==false);if(d!=this.drawZero){this.prepareUpdate().update().updateRenderer()}}break;case"minorticks":if(this.type==JXG.OBJECT_TYPE_TICKS){var d=this.minorTicks;if((k[1]!=null)&&(k[1]>0)){this.minorTicks=k[1]}if(d!=this.minorTicks){this.prepareUpdate().update().updateRenderer()}}break;case"majortickheight":if(this.type==JXG.OBJECT_TYPE_TICKS){var d=this.majorHeight;if((k[1]!=null)&&(k[1]>0)){this.majorHeight=k[1]}if(d!=this.majorHeight){this.prepareUpdate().update().updateRenderer()}}break;case"minortickheight":if(this.type==JXG.OBJECT_TYPE_TICKS){var d=this.minorHeight;if((k[1]!=null)&&(k[1]>0)){this.minorHeight=k[1]}if(d!=this.minorHeight){this.prepareUpdate().update().updateRenderer()}}break;case"snapwidth":if(this.type==JXG.OBJECT_TYPE_GLIDER){this.snapWidth=k[1]}break;case"withlabel":if(!k[1]){if(this.label!=null&&this.hasLabel){this.label.content.hideElement()}}else{if(this.label!=null&&this.hasLabel){if(this.visProp.visible){this.label.content.showElement()}}else{this.addLabelToElement();if(!this.visProp.visible){this.label.content.hideElement()}}}this.hasLabel=k[1]}}this.board.update(this);return this};JXG.GeometryElement.prototype.setDash=function(d){this.visProp.dash=d;this.board.renderer.setDashStyle(this,this.visProp);return this};JXG.GeometryElement.prototype.prepareUpdate=function(){this.needsUpdate=true;return this};JXG.GeometryElement.prototype.remove=function(){this.board.renderer.remove(this.board.renderer.getElementById(this.id));if(this.hasLabel){this.board.renderer.remove(this.board.renderer.getElementById(this.label.content.id))}return this};JXG.GeometryElement.prototype.getTextAnchor=function(){return new JXG.Coords(JXG.COORDS_BY_USER,[0,0],this.board)};JXG.GeometryElement.prototype.getLabelAnchor=function(){return new JXG.Coords(JXG.COORDS_BY_USER,[0,0],this.board)};JXG.GeometryElement.prototype.setStyle=function(d){return this};JXG.GeometryElement.prototype.setStraight=function(d,e){return this};JXG.GeometryElement.prototype.setArrow=function(e,d){this.visProp.firstArrow=e;this.visProp.lastArrow=d;this.prepareUpdate().update();return this};JXG.GeometryElement.prototype.createLabel=function(e,f){var d=false;if(!JXG.exists(f)){f=[10,10]}this.nameHTML=JXG.GeonextParser.replaceSup(JXG.GeonextParser.replaceSub(this.name));this.label={};if(typeof e=="undefined"||e==true){if(this.board.objects[this.id]==null){this.board.objects[this.id]=this;d=true}this.label.relativeCoords=f;this.label.content=new JXG.Text(this.board,this.nameHTML,this.id,[this.label.relativeCoords[0],-this.label.relativeCoords[1]],this.id+"Label","",null,true,this.board.options.text.defaultDisplay);if(d){delete (this.board.objects[this.id])}this.label.color="#000000";if(!this.visProp.visible){this.label.hiddenByParent=true;this.label.content.visProp.visible=false}this.hasLabel=true}return this};JXG.GeometryElement.prototype.addLabelToElement=function(){this.createLabel(true);this.label.content.id=this.id+"Label";this.board.setId(this.label.content,"T");this.board.renderer.drawText(this.label.content);if(!this.label.content.visProp.visible){this.board.renderer.hide(this.label.content)}return this};JXG.GeometryElement.prototype.highlight=function(){this.board.renderer.highlight(this);return this};JXG.GeometryElement.prototype.noHighlight=function(){this.board.renderer.noHighlight(this);return this};JXG.GeometryElement.prototype.clearTrace=function(){var d;for(d in this.traces){this.board.renderer.remove(this.traces[d])}this.numTraces=0;return this};JXG.GeometryElement.prototype.cloneToBackground=function(d){return this};JXG.GeometryElement.prototype.normalize=function(){this.stdform=JXG.Math.normalize(this.stdform);return this};JXG.GeometryElement.prototype.toJSON=function(){var e='{"name":'+this.name;e+=', "id":'+this.id;var f=[];for(var d in this.visProp){if(this.visProp[d]!=null){f.push('"'+d+'":'+this.visProp[d])}}e+=', "visProp":{'+f.toString()+"}";e+="}";return e};JXG.GeometryElement.prototype.highlightStrokeColor=function(d){this.setProperty({highlightStrokeColor:d})};JXG.GeometryElement.prototype.strokeColor=function(d){this.setProperty({strokeColor:d})};JXG.GeometryElement.prototype.strokeWidth=function(d){this.setProperty({strokeWidth:d})};JXG.GeometryElement.prototype.fillColor=function(d){this.setProperty({fillColor:d})};JXG.GeometryElement.prototype.highlightFillColor=function(d){this.setProperty({highlightFillColor:d})};JXG.GeometryElement.prototype.labelColor=function(d){this.setProperty({labelColor:d})};JXG.GeometryElement.prototype.dash=function(e){this.setProperty({dash:e})};JXG.GeometryElement.prototype.visible=function(d){this.setProperty({visible:d})};JXG.GeometryElement.prototype.shadow=function(d){this.setProperty({shadow:d})};JXG.clearVisPropOld=function(d){d.visPropOld={};d.visPropOld.strokeColor="";d.visPropOld.strokeOpacity="";d.visPropOld.strokeWidth="";d.visPropOld.fillColor="";d.visPropOld.fillOpacity="";d.visPropOld.shadow=false;d.visPropOld.firstArrow=false;d.visPropOld.lastArrow=false};JXG.COORDS_BY_USER=1;JXG.COORDS_BY_SCREEN=2;JXG.Coords=function(f,e,d){this.board=d;this.usrCoords=[];this.scrCoords=[];if(f==JXG.COORDS_BY_USER){if(e.length<=2){this.usrCoords[0]=1;this.usrCoords[1]=e[0];this.usrCoords[2]=e[1]}else{this.usrCoords[0]=e[0];this.usrCoords[1]=e[1];this.usrCoords[2]=e[2];this.normalizeUsrCoords()}this.usr2screen()}else{this.scrCoords[0]=1;this.scrCoords[1]=e[0];this.scrCoords[2]=e[1];this.screen2usr()}};JXG.Coords.prototype.normalizeUsrCoords=function(){var d=0.000001;if(Math.abs(this.usrCoords[0])>d){this.usrCoords[1]/=this.usrCoords[0];this.usrCoords[2]/=this.usrCoords[0];this.usrCoords[0]=1}};JXG.Coords.prototype.usr2screen=function(h){var g=Math.round,d=this.board,f=this.usrCoords,e=d.origin.scrCoords;if(h==null||h){this.scrCoords[0]=g(f[0]);this.scrCoords[1]=g(f[0]*e[1]+f[1]*d.stretchX);this.scrCoords[2]=g(f[0]*e[2]-f[2]*d.stretchY)}else{this.scrCoords[0]=f[0];this.scrCoords[1]=f[0]*e[1]+f[1]*d.stretchX;this.scrCoords[2]=f[0]*e[2]-f[2]*d.stretchY}};JXG.Coords.prototype.screen2usr=function(){var f=this.board.origin.scrCoords,e=this.scrCoords,d=this.board;this.usrCoords[0]=1;this.usrCoords[1]=(e[1]-f[1])/d.stretchX;this.usrCoords[2]=(f[2]-e[2])/d.stretchY};JXG.Coords.prototype.distance=function(e,h){var g=0,l,d=this.usrCoords,k=this.scrCoords,j;if(e==JXG.COORDS_BY_USER){l=h.usrCoords;j=d[0]-l[0];g=j*j;j=d[1]-l[1];g+=j*j;j=d[2]-l[2];g+=j*j}else{l=h.scrCoords;j=k[0]-l[0];g=j*j;j=k[1]-l[1];g+=j*j;j=k[2]-l[2];g+=j*j}return Math.sqrt(g)};JXG.Coords.prototype.setCoordinates=function(h,f,e){var d=this.usrCoords,g=this.scrCoords;if(h==JXG.COORDS_BY_USER){if(f.length==2){d[0]=1;d[1]=f[0];d[2]=f[1]}else{d[0]=f[0];d[1]=f[1];d[2]=f[2];this.normalizeUsrCoords()}this.usr2screen(e)}else{g[1]=f[0];g[2]=f[1];this.screen2usr()}};JXG.POINT_STYLE_X_SMALL=0;JXG.POINT_STYLE_X=1;JXG.POINT_STYLE_X_BIG=2;JXG.POINT_STYLE_CIRCLE_TINY=3;JXG.POINT_STYLE_CIRCLE_SMALL=4;JXG.POINT_STYLE_CIRCLE=5;JXG.POINT_STYLE_CIRCLE_BIG=6;JXG.POINT_STYLE_SQUARE_SMALL=7;JXG.POINT_STYLE_SQUARE=8;JXG.POINT_STYLE_SQUARE_BIG=9;JXG.POINT_STYLE_PLUS_SMALL=10;JXG.POINT_STYLE_PLUS=11;JXG.POINT_STYLE_PLUS_BIG=12;JXG.Point=function(h,j,k,e,d,g,f){this.constructor();this.type=JXG.OBJECT_TYPE_POINT;this.elementClass=JXG.OBJECT_CLASS_POINT;this.init(h,k,e);if(j==null){j=[0,0]}this.coords=new JXG.Coords(JXG.COORDS_BY_USER,j,this.board);this.initialCoords=new JXG.Coords(JXG.COORDS_BY_USER,j,this.board);if(f==null){f=h.options.layer.point}this.layer=f;this.showInfobox=JXG.Options.point.showInfobox;this.label={};this.label.relativeCoords=[10,-10];this.nameHTML=JXG.GeonextParser.replaceSup(JXG.GeonextParser.replaceSub(this.name));if(typeof g=="undefined"||g==true){this.board.objects[this.id]=this;this.label.content=new JXG.Text(this.board,this.nameHTML,this.id,this.label.relativeCoords,this.id+"Label","",null,true,this.board.options.text.defaultDisplay);delete (this.board.objects[this.id]);this.label.color="#000000";if(!d){this.label.hiddenByParent=true;this.label.content.visProp.visible=false}this.hasLabel=true}else{this.showInfobox=false}this.fixed=false;this.position=null;this.onPolygon=false;this.visProp.style=this.board.options.point.style;this.visProp.face=this.board.options.point.face;this.visProp.size=this.board.options.point.size;this.visProp.fillColor=this.board.options.point.fillColor;this.visProp.highlightFillColor=this.board.options.point.highlightFillColor;this.visProp.strokeColor=this.board.options.point.strokeColor;this.visProp.highlightStrokeColor=this.board.options.point.highlightStrokeColor;this.visProp.strokeWidth=this.board.options.point.strokeWidth;this.visProp.visible=d;this.slideObject=null;this.group=[];this.id=this.board.setId(this,"P");this.board.renderer.drawPoint(this);this.board.finalizeAdding(this)};JXG.Point.prototype=new JXG.GeometryElement();JXG.Point.prototype.hasPoint=function(e,g){var d=this.coords.scrCoords,f;f=this.visProp.size;if(f<this.board.options.precision.hasPoint){f=this.board.options.precision.hasPoint}return((Math.abs(d[1]-e)<f+2)&&(Math.abs(d[2]-g))<f+2)};JXG.Point.prototype.updateConstraint=function(){return this};JXG.Point.prototype.update=function(h){if(!this.needsUpdate){return}if(typeof h=="undefined"){h=false}if(this.traced){this.cloneToBackground(true)}if(this.type==JXG.OBJECT_TYPE_GLIDER){if(this.slideObject.type==JXG.OBJECT_TYPE_CIRCLE){if(h){this.coords.setCoordinates(JXG.COORDS_BY_USER,[this.slideObject.midpoint.X()+Math.cos(this.position),this.slideObject.midpoint.Y()+Math.sin(this.position)]);this.coords=JXG.Math.Geometry.projectPointToCircle(this,this.slideObject,this.board)}else{this.coords=JXG.Math.Geometry.projectPointToCircle(this,this.slideObject,this.board);this.position=JXG.Math.Geometry.rad([this.slideObject.midpoint.X()+1,this.slideObject.midpoint.Y()],this.slideObject.midpoint,this)}}else{if(this.slideObject.type==JXG.OBJECT_TYPE_LINE){this.coords=JXG.Math.Geometry.projectPointToLine(this,this.slideObject,this.board);var g=this.slideObject.point1.coords;var l=this.slideObject.point2.coords;if(h){if(Math.abs(g.usrCoords[0])>=JXG.Math.eps&&Math.abs(l.usrCoords[0])>=JXG.Math.eps){this.coords.setCoordinates(JXG.COORDS_BY_USER,[g.usrCoords[1]+this.position*(l.usrCoords[1]-g.usrCoords[1]),g.usrCoords[2]+this.position*(l.usrCoords[2]-g.usrCoords[2])])}}else{var m=1;var r=g.distance(JXG.COORDS_BY_USER,this.coords);var e=g.distance(JXG.COORDS_BY_USER,l);var k=l.distance(JXG.COORDS_BY_USER,this.coords);if(((r>e)||(k>e))&&(r<k)){m=-1}this.position=m*r/e;if(this.snapWidth!=null&&Math.abs(this._smax-this._smin)>=JXG.Math.eps){if(this.position<0){this.position=0}if(this.position>1){this.position=1}var s=this.position*(this._smax-this._smin)+this._smin;s=Math.round(s/this.snapWidth)*this.snapWidth;this.position=(s-this._smin)/(this._smax-this._smin);this.update(true)}}var f=this.slideObject.point1.coords.scrCoords;var q=this.slideObject.point2.coords.scrCoords;var j;if(this.slideObject.getSlope()==0){j=1}else{j=2}var n=this.coords.scrCoords[j];if(!this.slideObject.visProp.straightFirst){if(f[j]<q[j]){if(n<f[j]){this.coords=this.slideObject.point1.coords;this.position=0}}else{if(f[j]>q[j]){if(n>f[j]){this.coords=this.slideObject.point1.coords;this.position=0}}}}if(!this.slideObject.visProp.straightLast){if(f[j]<q[j]){if(n>q[j]){this.coords=this.slideObject.point2.coords;this.position=1}}else{if(f[j]>q[j]){if(n<q[j]){this.coords=this.slideObject.point2.coords;this.position=1}}}}if(this.onPolygon){var t=this.slideObject.point1.coords;var p=this.slideObject.point2.coords;if(Math.abs(this.coords.scrCoords[1]-t.scrCoords[1])<this.board.options.precision.hasPoint&&Math.abs(this.coords.scrCoords[2]-t.scrCoords[2])<this.board.options.precision.hasPoint){var d=this.slideObject.parentPolygon;for(var j=0;j<d.borders.length;j++){if(this.slideObject==d.borders[j]){this.slideObject=d.borders[(j-1+d.borders.length)%d.borders.length];break}}}else{if(Math.abs(this.coords.scrCoords[1]-p.scrCoords[1])<this.board.options.precision.hasPoint&&Math.abs(this.coords.scrCoords[2]-p.scrCoords[2])<this.board.options.precision.hasPoint){var d=this.slideObject.parentPolygon;for(var j=0;j<d.borders.length;j++){if(this.slideObject==d.borders[j]){this.slideObject=d.borders[(j+1+d.borders.length)%d.borders.length];break}}}}}}else{if(this.slideObject.type==JXG.OBJECT_TYPE_TURTLE){this.updateConstraint();this.coords=JXG.Math.Geometry.projectPointToTurtle(this,this.slideObject,this.board)}else{if(this.slideObject.elementClass==JXG.OBJECT_CLASS_CURVE){this.updateConstraint();this.coords=JXG.Math.Geometry.projectPointToCurve(this,this.slideObject,this.board)}}}}}if(this.type==JXG.OBJECT_TYPE_CAS){this.updateConstraint()}this.updateTransform();this.needsUpdate=false;return this};JXG.Point.prototype.updateRenderer=function(){if(this.visProp.visible){var d=this.isReal;this.isReal=(isNaN(this.coords.usrCoords[1]+this.coords.usrCoords[2]))?false:true;this.isReal=(Math.abs(this.coords.usrCoords[0])>JXG.Math.eps)?this.isReal:false;if(this.isReal){if(d!=this.isReal){this.board.renderer.show(this);if(this.hasLabel&&this.label.content.visProp.visible){this.board.renderer.show(this.label.content)}}this.board.renderer.updatePoint(this)}else{if(d!=this.isReal){this.board.renderer.hide(this);if(this.hasLabel&&this.label.content.visProp.visible){this.board.renderer.hide(this.label.content)}}}}if(this.hasLabel&&this.label.content.visProp.visible&&this.isReal){this.label.content.update();this.board.renderer.updateText(this.label.content)}return this};JXG.Point.prototype.X=function(){return this.coords.usrCoords[1]};JXG.Point.prototype.Y=function(){return this.coords.usrCoords[2]};JXG.Point.prototype.Z=function(){return this.coords.usrCoords[0]};JXG.Point.prototype.XEval=function(){return this.coords.usrCoords[1]};JXG.Point.prototype.YEval=function(){return this.coords.usrCoords[2]};JXG.Point.prototype.ZEval=function(){return this.coords.usrCoords[0]};JXG.Point.prototype.Dist=function(e){var g,j=e.coords.usrCoords,d=this.coords.usrCoords,h;h=d[0]-j[0];g=h*h;h=d[1]-j[1];g+=h*h;h=d[2]-j[2];g+=h*h;return Math.sqrt(g)};JXG.Point.prototype.setPositionDirectly=function(d,k,h){var g,m,l,f,e,j=this.coords;this.coords=new JXG.Coords(d,[k,h],this.board);if(this.group.length!=0){m=this.coords.usrCoords[1]-j.usrCoords[1];l=this.coords.usrCoords[2]-j.usrCoords[2];for(g=0;g<this.group.length;g++){for(f in this.group[g].objects){e=this.group[g].objects[f];e.initialCoords=new JXG.Coords(JXG.COORDS_BY_USER,[e.initialCoords.usrCoords[1]+m,e.initialCoords.usrCoords[2]+l],this.board)}}this.group[this.group.length-1].dX=this.coords.scrCoords[1]-j.scrCoords[1];this.group[this.group.length-1].dY=this.coords.scrCoords[2]-j.scrCoords[2];this.group[this.group.length-1].update(this)}else{for(g=this.transformations.length-1;g>=0;g--){this.initialCoords=new JXG.Coords(d,JXG.Math.matVecMult(JXG.Math.inverse(this.transformations[g].matrix),[1,k,h]),this.board)}this.update()}return this};JXG.Point.prototype.setPositionByTransform=function(h,d,g){var f=this.coords;var e=this.board.create("transform",[d,g],{type:"translate"});if(this.transformations.length>0&&this.transformations[this.transformations.length-1].isNumericMatrix){this.transformations[this.transformations.length-1].melt(e)}else{this.addTransform(this,e)}if(this.group.length!=0){}else{this.update()}return this};JXG.Point.prototype.setPosition=function(f,d,e){this.setPositionDirectly(f,d,e);return this};JXG.Point.prototype.makeGlider=function(d){this.slideObject=JXG.getReference(this.board,d);this.type=JXG.OBJECT_TYPE_GLIDER;this.snapWidth=null;this.slideObject.addChild(this);this.generatePolynomial=function(){return this.slideObject.generatePolynomial(this)};this.needsUpdate=true;this.update();return this};JXG.Point.prototype.addConstraint=function(h){this.type=JXG.OBJECT_TYPE_CAS;var j=this.board.elementsByName;var k=[];var d;for(var g=0;g<h.length;g++){var e=h[g];if(typeof e=="string"){var f=JXG.GeonextParser.geonext2JS(e,this.board);k[g]=new Function("","return "+f+";")}else{if(typeof e=="function"){k[g]=e}else{if(typeof e=="number"){k[g]=function(l){return function(){return l}}(e)}else{if(typeof e=="object"&&typeof e.Value=="function"){k[g]=(function(l){return function(){return l.Value()}})(e)}}}}}if(h.length==1){this.updateConstraint=function(){var l=k[0]();if(JXG.isArray(l)){this.coords.setCoordinates(JXG.COORDS_BY_USER,l)}else{this.coords=l}}}else{if(h.length==2){this.XEval=k[0];this.YEval=k[1];d="this.coords.setCoordinates(JXG.COORDS_BY_USER,[this.XEval(),this.YEval()]);";this.updateConstraint=new Function("",d)}else{this.ZEval=k[0];this.XEval=k[1];this.YEval=k[2];d="this.coords.setCoordinates(JXG.COORDS_BY_USER,[this.ZEval(),this.XEval(),this.YEval()]);";this.updateConstraint=new Function("",d)}}if(!this.board.isSuspendedUpdate){this.update()}return this};JXG.Point.prototype.updateTransform=function(){if(this.transformations.length==0||this.baseElement==null){return}var e,d;if(this===this.baseElement){e=this.transformations[0].apply(this.baseElement,"self")}else{e=this.transformations[0].apply(this.baseElement)}this.coords.setCoordinates(JXG.COORDS_BY_USER,e);for(d=1;d<this.transformations.length;d++){this.coords.setCoordinates(JXG.COORDS_BY_USER,this.transformations[d].apply(this))}return this};JXG.Point.prototype.addTransform=function(g,e){var h,f,d;if(this.transformations.length==0){this.baseElement=g}if(JXG.isArray(e)){h=e}else{h=[e]}d=h.length;for(f=0;f<d;f++){this.transformations.push(h[f])}return this};JXG.Point.prototype.startAnimation=function(d,e){if((this.type==JXG.OBJECT_TYPE_GLIDER)&&(typeof this.intervalCode=="undefined")){this.intervalCode=window.setInterval("JXG.JSXGraph.boards['"+this.board.id+"'].objects['"+this.id+"']._anim("+d+", "+e+")",250);if(typeof this.intervalCount=="undefined"){this.intervalCount=0}}return this};JXG.Point.prototype.stopAnimation=function(){if(typeof this.intervalCode!="undefined"){window.clearInterval(this.intervalCode);delete (this.intervalCode)}return this};JXG.Point.prototype.moveAlong=function(m,e){var l=[],g=35,j=function(p,n){return function(){return m[p][n]}},d=[],f,h,k=e/g;if(JXG.isArray(m)){for(f=0;f<m.length;f++){if(JXG.isPoint(m[f])){d[f]=m[f]}else{d[f]={elementClass:JXG.OBJECT_CLASS_POINT,X:j(f,0),Y:j(f,1)}}}e=e||0;if(e===0){this.setPosition(JXG.COORDS_BY_USER,d[d.length-1].X(),d[d.length-1].Y());return this.board.update(this)}h=JXG.Math.Numerics.Neville(d);for(f=0;f<k;f++){l[f]=[];l[f][0]=h[0]((k-f)/k*h[3]());l[f][1]=h[1]((k-f)/k*h[3]())}this.animationPath=l}else{if(JXG.isFunction(m)){this.animationPath=m;this.animationStart=new Date().getTime()}}this.board.addAnimation(this);return this};JXG.Point.prototype.moveTo=function(k,f){if(typeof f=="undefined"||f==0){this.setPosition(JXG.COORDS_BY_USER,k[0],k[1]);return this.board.update(this)}var l=35,m=Math.ceil(f/(l*1)),n=new Array(m+1),e=this.coords.usrCoords[1],d=this.coords.usrCoords[2],h=(k[0]-e),g=(k[1]-d),j;if(Math.abs(h)<JXG.Math.eps&&Math.abs(g)<JXG.Math.eps){return this}for(j=m;j>=0;j--){n[m-j]=[e+h*Math.sin((j/(m*1))*Math.PI/2),d+g*Math.sin((j/(m*1))*Math.PI/2)]}this.animationPath=n;this.board.addAnimation(this);return this};JXG.Point.prototype.visit=function(n,g,e){if(arguments.length==2){e=1}var p=35,q=Math.ceil(g/(p*1)),r=new Array(e*(q+1)),f=this.coords.usrCoords[1],d=this.coords.usrCoords[2],l=(n[0]-f),h=(n[1]-d),m,k;for(k=0;k<e;k++){for(m=q;m>=0;m--){r[k*(q+1)+q-m]=[f+l*Math.pow(Math.sin((m/(q*1))*Math.PI),2),d+h*Math.pow(Math.sin((m/(q*1))*Math.PI),2)]}}this.animationPath=r;this.board.addAnimation(this);return this};JXG.Point.prototype._anim=function(p,j){var e,m,k,h,g,f,n=1,d,l;this.intervalCount++;if(this.intervalCount>j){this.intervalCount=0}if(this.slideObject.elementClass==JXG.OBJECT_CLASS_LINE){e=this.slideObject.point1.coords.distance(JXG.COORDS_BY_SCREEN,this.slideObject.point2.coords);m=this.slideObject.getSlope();if(m!="INF"){g=Math.atan(m);k=Math.round((this.intervalCount/j)*e*Math.cos(g));h=Math.round((this.intervalCount/j)*e*Math.sin(g))}else{k=0;h=Math.round((this.intervalCount/j)*e)}if(p<0){f=this.slideObject.point2;if(this.slideObject.point2.coords.scrCoords[1]-this.slideObject.point1.coords.scrCoords[1]>0){n=-1}else{if(this.slideObject.point2.coords.scrCoords[1]-this.slideObject.point1.coords.scrCoords[1]==0){if(this.slideObject.point2.coords.scrCoords[2]-this.slideObject.point1.coords.scrCoords[2]>0){n=-1}}}}else{f=this.slideObject.point1;if(this.slideObject.point1.coords.scrCoords[1]-this.slideObject.point2.coords.scrCoords[1]>0){n=-1}else{if(this.slideObject.point1.coords.scrCoords[1]-this.slideObject.point2.coords.scrCoords[1]==0){if(this.slideObject.point1.coords.scrCoords[2]-this.slideObject.point2.coords.scrCoords[2]>0){n=-1}}}}this.coords.setCoordinates(JXG.COORDS_BY_SCREEN,[f.coords.scrCoords[1]+n*k,f.coords.scrCoords[2]+n*h])}else{if(this.slideObject.elementClass==JXG.OBJECT_CLASS_CURVE){if(p>0){d=Math.round(this.intervalCount/j*this.board.canvasWidth)}else{d=Math.round((j-this.intervalCount)/j*this.board.canvasWidth)}this.coords.setCoordinates(JXG.COORDS_BY_SCREEN,[d,0]);this.coords=JXG.Math.Geometry.projectPointToCurve(this,this.slideObject,this.board)}else{if(this.slideObject.elementClass==JXG.OBJECT_CLASS_CIRCLE){if(p<0){g=this.intervalCount/j*2*Math.PI}else{g=(j-this.intervalCount)/j*2*Math.PI}l=this.slideObject.Radius();this.coords.setCoordinates(JXG.COORDS_BY_USER,[this.slideObject.midpoint.coords.usrCoords[1]+l*Math.cos(g),this.slideObject.midpoint.coords.usrCoords[2]+l*Math.sin(g)])}}}this.board.update(this);return this};JXG.Point.prototype.setStyle=function(d){if(d==0||d==1||d==2){this.visProp.face="cross";if(d==0){this.visProp.size=2}else{if(d==1){this.visProp.size=3}else{this.visProp.size=4}}}else{if(d==3||d==4||d==5||d==6){this.visProp.face="circle";if(d==3){this.visProp.size=1}else{if(d==4){this.visProp.size=2}else{if(d==5){this.visProp.size=3}else{this.visProp.size=4}}}}else{if(d==7||d==8||d==9){this.visProp.face="square";if(d==7){this.visProp.size=2}else{if(d==8){this.visProp.size=3}else{this.visProp.size=4}}}else{if(d==10||d==11||d==12){this.visProp.face="plus";if(d==10){this.visProp.size=2}else{if(d==11){this.visProp.size=3}else{this.visProp.size=4}}}}}}this.board.renderer.changePointStyle(this);return this};JXG.Point.prototype.normalizeFace=function(d){var e={cross:"x",x:"x",circle:"o",o:"o",square:"[]","[]":"[]",plus:"+","+":"+",diamond:"<>","<>":"<>",triangleup:"^",a:"^","^":"^",triangledown:"v",v:"v",triangleleft:"<","<":"<",triangleright:">",">":">"};return e[d]};JXG.Point.prototype.setFace=function(d){d=d.toLowerCase();if(d=="cross"||d=="x"||d=="plus"||d=="+"||d=="circle"||d=="o"||d=="square"||d=="[]"||d=="diamond"||d=="<>"||d=="triangleup"||d=="a"||d=="triangledown"||d=="v"||d=="triangleleft"||d=="<"||d=="triangleright"||d==">"){this.visProp.face=d}else{this.visProp.face="circle"}this.board.renderer.changePointStyle(this);return this};JXG.Point.prototype.remove=function(){if(this.hasLabel){this.board.renderer.remove(this.board.renderer.getElementById(this.label.content.id))}this.board.renderer.remove(this.board.renderer.getElementById(this.id))};JXG.Point.prototype.getTextAnchor=function(){return this.coords};JXG.Point.prototype.getLabelAnchor=function(){return this.coords};JXG.Point.prototype.face=function(d){this.setProperty({face:d})};JXG.Point.prototype.size=function(d){this.setProperty({size:d})};JXG.Point.prototype.cloneToBackground=function(d){var e={};e.id=this.id+"T"+this.numTraces;this.numTraces++;e.coords=this.coords;e.visProp=this.visProp;e.elementClass=JXG.OBJECT_CLASS_POINT;JXG.clearVisPropOld(e);this.board.renderer.drawPoint(e);this.traces[e.id]=e.rendNode;delete e;return this};JXG.createPoint=function(j,f,k){var h,e=false,g,d;k=JXG.checkAttributes(k,{withLabel:JXG.readOption(j.options,"point","withLabel"),layer:null});d=(typeof k.visible=="undefined")||JXG.str2Bool(k.visible);for(g=0;g<f.length;g++){if(typeof f[g]=="function"||typeof f[g]=="string"){e=true}}if(!e){if((JXG.isNumber(f[0]))&&(JXG.isNumber(f[1]))){h=new JXG.Point(j,f,k.id,k.name,d,k.withLabel,k.layer);if(k.slideObject!=null){h.makeGlider(k.slideObject)}else{h.baseElement=h}}else{if((typeof f[0]=="object")&&(typeof f[1]=="object")){h=new JXG.Point(j,[0,0],k.id,k.name,d,k.withLabel,k.layer);h.addTransform(f[0],f[1])}else{throw new Error("JSXGraph: Can't create point with parent types '"+(typeof f[0])+"' and '"+(typeof f[1])+"'.\nPossible parent types: [x,y], [z,x,y], [point,transformation]")}}}else{h=new JXG.Point(j,[0,0],k.id,k.name,d,k.withLabel,k.layer);h.addConstraint(f)}return h};JXG.createGlider=function(g,e,h){var f,d;h=JXG.checkAttributes(h,{withLabel:JXG.readOption(g.options,"point","withLabel"),layer:null});d=(typeof h.visible=="undefined")||JXG.str2Bool(h.visible);if(e.length==1){f=new JXG.Point(g,[0,0],h.id,h.name,d,h.withLabel)}else{f=g.create("point",e.slice(0,-1),h)}f.makeGlider(e[e.length-1]);return f};JXG.createIntersectionPoint=function(g,e,d){var f;if(e.length>=3){if(e.length==3){e.push(null)}f=g.create("point",[g.intersection(e[0],e[1],e[2],e[3])],d)}e[0].addChild(f);e[1].addChild(f);f.generatePolynomial=function(){var h=e[0].generatePolynomial(f);var j=e[1].generatePolynomial(f);if((h.length==0)||(j.length==0)){return[]}else{return[h[0],j[0]]}};return f};JXG.createOtherIntersectionPoint=function(g,e,d){var f;if(e.length!=3||!JXG.isPoint(e[2])||(e[0].elementClass!=JXG.OBJECT_CLASS_LINE&&e[0].elementClass!=JXG.OBJECT_CLASS_CIRCLE)||(e[1].elementClass!=JXG.OBJECT_CLASS_LINE&&e[1].elementClass!=JXG.OBJECT_CLASS_CIRCLE)){throw new Error("JSXGraph: Can't create 'other intersection point' with parent types '"+(typeof e[0])+"', '"+(typeof e[1])+"'and '"+(typeof e[2])+"'.\nPossible parent types: [circle|line,circle|line,point]")}else{f=g.create("point",[g.otherIntersection(e[0],e[1],e[2])],d)}e[0].addChild(f);e[1].addChild(f);f.generatePolynomial=function(){var h=e[0].generatePolynomial(f);var j=e[1].generatePolynomial(f);if((h.length==0)||(j.length==0)){return[]}else{return[h[0],j[0]]}};return f};JXG.JSXGraph.registerElement("point",JXG.createPoint);JXG.JSXGraph.registerElement("glider",JXG.createGlider);JXG.JSXGraph.registerElement("intersection",JXG.createIntersectionPoint);JXG.JSXGraph.registerElement("otherintersection",JXG.createOtherIntersectionPoint);JXG.Line=function(g,j,h,k,d,f,e){this.constructor();this.type=JXG.OBJECT_TYPE_LINE;this.elementClass=JXG.OBJECT_CLASS_LINE;this.init(g,k,d);if(e==null){e=g.options.layer.line}this.layer=e;this.point1=JXG.getReference(this.board,j);this.point2=JXG.getReference(this.board,h);this.visProp.fillColor=this.board.options.line.fillColor;this.visProp.highlightFillColor=this.board.options.line.highlightFillColor;this.visProp.strokeColor=this.board.options.line.strokeColor;this.visProp.highlightStrokeColor=this.board.options.line.highlightStrokeColor;this.visProp.straightFirst=this.board.options.line.straightFirst;this.visProp.straightLast=this.board.options.line.straightLast;this.visProp.visible=true;this.visProp.firstArrow=this.board.options.line.firstArrow;this.visProp.lastArrow=this.board.options.line.lastArrow;this.ticks=[];this.defaultTicks=null;this.parentPolygon=null;this.labelOffsets=[].concat(this.board.options.line.labelOffsets);this.labelOffsets[0]=Math.abs(this.labelOffsets[0]);this.labelOffsets[1]=Math.abs(this.labelOffsets[1]);this.createLabel(f);this.id=this.board.setId(this,"L");this.board.renderer.drawLine(this);this.board.finalizeAdding(this);this.point1.addChild(this);this.point2.addChild(this);this.needsUpdate=true;this.update()};JXG.Line.prototype=new JXG.GeometryElement;JXG.Line.prototype.hasPoint=function(l,j){var h=[],r,p=[1,l,j],m=[],t,f,k,e,n,q,g,d;h[0]=this.stdform[0]-this.stdform[1]*this.board.origin.scrCoords[1]/this.board.stretchX+this.stdform[2]*this.board.origin.scrCoords[2]/this.board.stretchY;h[1]=this.stdform[1]/this.board.stretchX;h[2]=this.stdform[2]/(-this.board.stretchY);var m=[0,h[1],h[2]];m=JXG.Math.crossProduct(m,p);m=JXG.Math.crossProduct(m,h);m[1]/=m[0];m[2]/=m[0];m[0]=1;r=(p[0]-m[0])*(p[0]-m[0])+(p[1]-m[1])*(p[1]-m[1])+(p[2]-m[2])*(p[2]-m[2]);if(isNaN(r)||r>this.board.options.precision.hasPoint*this.board.options.precision.hasPoint){return false}if(this.visProp.straightFirst&&this.visProp.straightLast){return true}else{e=this.point1.coords.scrCoords;n=this.point2.coords.scrCoords;d=(n[1]-e[1])*(n[1]-e[1])+(n[2]-e[2])*(n[2]-e[2]);q=(m[1]-e[1])*(m[1]-e[1])+(m[2]-e[2])*(m[2]-e[2]);g=(m[1]-n[1])*(m[1]-n[1])+(m[2]-n[2])*(m[2]-n[2]);if((q>d)||(g>d)){if(q<g){if(!this.visProp.straightFirst){return false}}else{if(!this.visProp.straightLast){return false}}}return true}};JXG.Line.prototype.update=function(){var d,e;if(this.constrained){if(typeof this.funps!="undefined"){e=this.funps();this.point1=e[0];this.point2=e[1]}else{this.point1=this.funp1();this.point2=this.funp2()}}if(this.needsUpdate){if(true||!this.board.geonextCompatibilityMode){this.updateStdform()}}if(this.traced){this.cloneToBackground(true)}};JXG.Line.prototype.updateStdform=function(){var d=JXG.Math.crossProduct(this.point1.coords.usrCoords,this.point2.coords.usrCoords);this.stdform[0]=d[0];this.stdform[1]=d[1];this.stdform[2]=d[2];this.stdform[3]=0;this.normalize()};JXG.Line.prototype.updateRenderer=function(){var d,e;if(this.needsUpdate&&this.visProp.visible){d=this.isReal;this.isReal=(isNaN(this.point1.coords.usrCoords[1]+this.point1.coords.usrCoords[2]+this.point2.coords.usrCoords[1]+this.point2.coords.usrCoords[2]))?false:true;if(this.isReal){if(d!=this.isReal){this.board.renderer.show(this);if(this.hasLabel&&this.label.content.visProp.visible){this.board.renderer.show(this.label.content)}}this.board.renderer.updateLine(this)}else{if(d!=this.isReal){this.board.renderer.hide(this);if(this.hasLabel&&this.label.content.visProp.visible){this.board.renderer.hide(this.label.content)}}}this.needsUpdate=false}if(this.hasLabel&&this.label.content.visProp.visible&&this.isReal){this.label.content.update();this.board.renderer.updateText(this.label.content)}};JXG.Line.prototype.generatePolynomial=function(h){var g=this.point1.symbolic.x,f=this.point1.symbolic.y,k=this.point2.symbolic.x,j=this.point2.symbolic.y,e=h.symbolic.x,d=h.symbolic.y;return[["(",f,")*(",e,")-(",f,")*(",k,")+(",d,")*(",k,")-(",g,")*(",d,")+(",g,")*(",j,")-(",e,")*(",j,")"].join("")]};JXG.Line.prototype.getRise=function(){if(Math.abs(this.stdform[2])>=JXG.Math.eps){return -this.stdform[0]/this.stdform[2]}else{return Infinity}};JXG.Line.prototype.getSlope=function(){if(Math.abs(this.stdform[2])>=JXG.Math.eps){return -this.stdform[1]/this.stdform[2]}else{return Infinity}};JXG.Line.prototype.setStraight=function(d,e){this.visProp.straightFirst=d;this.visProp.straightLast=e;this.board.renderer.updateLine(this)};JXG.Line.prototype.getTextAnchor=function(){return new JXG.Coords(JXG.COORDS_BY_USER,[this.point1.X()+0.5*(this.point2.X()-this.point1.X()),this.point1.Y()+0.5*(this.point2.Y()-this.point1.Y())],this.board)};JXG.Line.prototype.setLabelRelativeCoords=function(d){if(typeof this.label.content!="undefined"){this.label.content.relativeCoords=new JXG.Coords(JXG.COORDS_BY_SCREEN,[d[0],-d[1]],this.board)}};JXG.Line.prototype.getLabelAnchor=function(){var h,f,e,g,d,j=this.labelOffsets[0],k=this.labelOffsets[1];if(!this.visProp.straightFirst&&!this.visProp.straightLast){this.setLabelRelativeCoords(this.labelOffsets);return new JXG.Coords(JXG.COORDS_BY_USER,[this.point2.X()-0.5*(this.point2.X()-this.point1.X()),this.point2.Y()-0.5*(this.point2.Y()-this.point1.Y())],this.board)}else{f=new JXG.Coords(JXG.COORDS_BY_USER,this.point1.coords.usrCoords,this.board);e=new JXG.Coords(JXG.COORDS_BY_USER,this.point2.coords.usrCoords,this.board);this.board.renderer.calcStraight(this,f,e);if(this.visProp.straightFirst){h=f}else{h=e}if(this.label.content!=null){g=[0,0];d=this.getSlope();if(h.scrCoords[2]==0){if(d==Infinity){g=[j,-k]}else{if(d>=0){g=[j,-k]}else{g=[-j,-k]}}}else{if(h.scrCoords[2]==this.board.canvasHeight){if(d==Infinity){g=[j,k]}else{if(d>=0){g=[-j,k]}else{g=[j,k]}}}}if(h.scrCoords[1]==0){if(d==Infinity){g=[j,k]}else{if(d>=0){g=[j,-k]}else{g=[j,k]}}}else{if(h.scrCoords[1]==this.board.canvasWidth){if(d==Infinity){g=[-j,k]}else{if(d>=0){g=[-j,k]}else{g=[-j,-k]}}}}this.setLabelRelativeCoords(g)}return h}};JXG.Line.prototype.cloneToBackground=function(e){var h={},f,d,g;h.id=this.id+"T"+this.numTraces;h.elementClass=JXG.OBJECT_CLASS_LINE;this.numTraces++;h.point1=this.point1;h.point2=this.point2;h.stdform=this.stdform;h.board={};h.board.unitX=this.board.unitX;h.board.unitY=this.board.unitY;h.board.zoomX=this.board.zoomX;h.board.zoomY=this.board.zoomY;h.board.stretchX=this.board.stretchX;h.board.stretchY=this.board.stretchY;h.board.origin=this.board.origin;h.board.canvasHeight=this.board.canvasHeight;h.board.canvasWidth=this.board.canvasWidth;h.board.dimension=this.board.dimension;h.visProp=this.visProp;JXG.clearVisPropOld(h);d=this.getSlope();f=this.getRise();h.getSlope=function(){return d};h.getRise=function(){return f};g=this.board.renderer.enhancedRendering;this.board.renderer.enhancedRendering=true;this.board.renderer.drawLine(h);this.board.renderer.enhancedRendering=g;this.traces[h.id]=h.rendNode;delete h};JXG.Line.prototype.addTransform=function(d){var f,e;if(JXG.isArray(d)){f=d}else{f=[d]}for(e=0;e<f.length;e++){this.point1.transformations.push(f[e]);this.point2.transformations.push(f[e])}};JXG.Line.prototype.setPosition=function(g,d,f){var e=this.board.create("transform",[d,f],{type:"translate"});if(this.point1.transformations.length>0&&this.point1.transformations[this.point1.transformations.length-1].isNumericMatrix){this.point1.transformations[this.point1.transformations.length-1].melt(e)}else{this.point1.addTransform(this.point1,e)}if(this.point2.transformations.length>0&&this.point2.transformations[this.point2.transformations.length-1].isNumericMatrix){this.point2.transformations[this.point2.transformations.length-1].melt(e)}else{this.point2.addTransform(this.point2,e)}};JXG.Line.prototype.X=function(j){var m=this.stdform[1],l=this.stdform[2],k=this.stdform[0],g,f,d,e,h;j*=Math.PI;g=m*Math.cos(j)+l*Math.sin(j);f=k;d=Math.sqrt(g*g+f*f);e=-f/d;h=g/d;if(Math.abs(h)<JXG.Math.eps){h=1}return e*Math.cos(j)/h};JXG.Line.prototype.Y=function(j){var m=this.stdform[1],l=this.stdform[2],k=this.stdform[0],g,f,d,e,h;j*=Math.PI;g=m*Math.cos(j)+l*Math.sin(j);f=k;d=Math.sqrt(g*g+f*f);e=-f/d;h=g/d;if(Math.abs(h)<JXG.Math.eps){h=1}return e*Math.sin(j)/h};JXG.Line.prototype.Z=function(h){var f=this.stdform[1],e=this.stdform[2],l=this.stdform[0],d,k,g,j;h*=Math.PI;d=f*Math.cos(h)+e*Math.sin(h);k=l;g=Math.sqrt(d*d+k*k);j=d/g;if(Math.abs(j)>=JXG.Math.eps){return 1}else{return 0}};JXG.Line.prototype.minX=function(){return 0};JXG.Line.prototype.maxX=function(){return 1};JXG.Line.prototype.addTicks=function(d){if(d.id==""||typeof d.id=="undefined"){d.id=this.id+"_ticks_"+(this.ticks.length+1)}this.board.renderer.drawTicks(d);this.ticks.push(d);this.ticks[this.ticks.length-1].updateRenderer();return d.id};JXG.Line.prototype.removeAllTicks=function(){var d;for(d=this.ticks.length;d>0;d--){this.board.renderer.remove(this.ticks[d-1].rendNode)}this.ticks=new Array()};JXG.Line.prototype.removeTicks=function(f){var e,d;if(this.defaultTicks!=null&&this.defaultTicks==f){this.defaultTicks=null}for(e=this.ticks.length;e>0;e--){if(this.ticks[e-1]==f){this.board.renderer.remove(this.ticks[e-1].rendNode);for(d=0;d<this.ticks[e-1].ticks.length;d++){if(this.ticks[e-1].labels[d]!=null){if(this.ticks[e-1].labels[d].show){this.board.renderer.remove(this.ticks[e-1].labels[d].rendNode)}}}delete (this.ticks[e-1])}}};JXG.createLine=function(j,l,h){var e,n,m,g,k=[];h=JXG.checkAttributes(h,{withLabel:JXG.readOption(j.options,"line","withLabel"),layer:null,labelOffsets:JXG.readOption(j.options,"line","labelOffsets")});var f=false;if(l.length==2){if(l[0].length>1){n=j.create("point",l[0],{visible:false,fixed:true})}else{if(l[0].elementClass==JXG.OBJECT_CLASS_POINT){n=JXG.getReference(j,l[0])}else{if((typeof l[0]=="function")&&(l[0]().elementClass==JXG.OBJECT_CLASS_POINT)){n=l[0]();f=true}else{throw new Error("JSXGraph: Can't create line with parent types '"+(typeof l[0])+"' and '"+(typeof l[1])+"'.\nPossible parent types: [point,point], [[x1,y1],[x2,y2]], [a,b,c]")}}}if(l[1].length>1){m=j.create("point",l[1],{visible:false,fixed:true})}else{if(l[1].elementClass==JXG.OBJECT_CLASS_POINT){m=JXG.getReference(j,l[1])}else{if((typeof l[1]=="function")&&(l[1]().elementClass==JXG.OBJECT_CLASS_POINT)){m=l[1]();f=true}else{throw new Error("JSXGraph: Can't create line with parent types '"+(typeof l[0])+"' and '"+(typeof l[1])+"'.\nPossible parent types: [point,point], [[x1,y1],[x2,y2]], [a,b,c]")}}}e=new JXG.Line(j,n.id,m.id,h.id,h.name,h.withLabel,h.layer);if(f){e.constrained=true;e.funp1=l[0];e.funp2=l[1]}}else{if(l.length==3){for(g=0;g<3;g++){if(typeof l[g]=="number"){k[g]=function(p){return function(){return p}}(l[g])}else{if(typeof l[g]=="function"){k[g]=l[g]}else{throw new Error("JSXGraph: Can't create line with parent types '"+(typeof l[0])+"' and '"+(typeof l[1])+"' and '"+(typeof l[2])+"'.\nPossible parent types: [point,point], [[x1,y1],[x2,y2]], [a,b,c]")}}}n=j.create("point",[function(){return(0+k[2]()*k[2]()+k[1]()*k[1]())*0.5},function(){return(k[2]()-k[1]()*k[0]()+k[2]())*0.5},function(){return(-k[1]()-k[2]()*k[0]()-k[1]())*0.5}],{visible:false,name:" "});m=j.create("point",[function(){return k[2]()*k[2]()+k[1]()*k[1]()},function(){return -k[1]()*k[0]()+k[2]()},function(){return -k[2]()*k[0]()-k[1]()}],{visible:false,name:" "});e=new JXG.Line(j,n.id,m.id,h.id,h.name,h.withLabel)}else{if((l.length==1)&&(typeof l[0]=="function")&&(l[0]().length==2)&&(l[0]()[0].elementClass==JXG.OBJECT_CLASS_POINT)&&(l[0]()[1].elementClass==JXG.OBJECT_CLASS_POINT)){var d=l[0]();e=new JXG.Line(j,d[0].id,d[1].id,h.id,h.name,h.withLabel,h.layer);e.constrained=true;e.funps=l[0]}else{throw new Error("JSXGraph: Can't create line with parent types '"+(typeof l[0])+"' and '"+(typeof l[1])+"'.\nPossible parent types: [point,point], [[x1,y1],[x2,y2]], [a,b,c]")}}}e.labelOffsets=h.labelOffsets;return e};JXG.JSXGraph.registerElement("line",JXG.createLine);JXG.createSegment=function(f,d,g){var e;g=JXG.checkAttributes(g,{withLabel:JXG.readOption(f.options,"line","withLabel"),layer:null});g.straightFirst=false;g.straightLast=false;e=f.create("line",d,g);return e};JXG.JSXGraph.registerElement("segment",JXG.createSegment);JXG.createArrow=function(g,e,d){var f;d=JXG.checkAttributes(d,{withLabel:JXG.readOption(g.options,"line","withLabel"),layer:null});f=g.create("line",e,d);f.setStraight(false,false);f.setArrow(false,true);f.type=JXG.OBJECT_TYPE_VECTOR;return f};JXG.JSXGraph.registerElement("arrow",JXG.createArrow);JXG.createAxis=function(h,n,e){var l,k,p,j,f,d,g,m;if((JXG.isArray(n[0])||JXG.isPoint(n[0]))&&(JXG.isArray(n[1])||JXG.isPoint(n[1]))){if(JXG.isPoint(n[0])){l=n[0]}else{l=new JXG.Point(h,n[0],"","",false)}if(JXG.isPoint(n[1])){k=n[1]}else{k=new JXG.Point(h,n[1],"","",false)}l.fixed=true;k.fixed=true;e=JXG.checkAttributes(e,{lastArrow:true,straightFirst:true,straightLast:true,strokeWidth:1,withLabel:false,strokeColor:h.options.axis.strokeColor});e.highlightStrokeColor=e.highlightStrokeColor||e.strokeColor||h.options.axis.highlightStrokeColor;p=h.create("line",[l,k],e);p.setProperty({needsRegularUpdate:false});e=JXG.checkAttributes(e,{minorTicks:4,insertTicks:true});if(e.ticksDistance!="undefined"&&e.ticksDistance!=null){j=e.ticksDistance}else{if(JXG.isArray(e.ticks)){j=e.ticks}else{f=new JXG.Coords(JXG.COORDS_BY_USER,[p.point1.coords.usrCoords.slice(1)],h);d=new JXG.Coords(JXG.COORDS_BY_USER,[p.point2.coords.usrCoords.slice(1)],h);h.renderer.calcStraight(p,f,d);g=f.distance(JXG.COORDS_BY_USER,d);j=1}}p.defaultTicks=h.create("ticks",[p,j],e);p.defaultTicks.setProperty({needsRegularUpdate:false})}else{throw new Error("JSXGraph: Can't create point with parent types '"+(typeof n[0])+"' and '"+(typeof n[1])+"'.\nPossible parent types: [point,point], [[x1,y1],[x2,y2]]")}return p};JXG.JSXGraph.registerElement("axis",JXG.createAxis);JXG.createTangent=function(q,s,k){var d,r,m,n,l,h,e,t,u,v;if(s.length==1){d=s[0];r=d.slideObject}else{if(s.length==2){if(JXG.isPoint(s[0])){d=s[0];r=s[1]}else{if(JXG.isPoint(s[1])){r=s[0];d=s[1]}else{throw new Error("JSXGraph: Can't create tangent with parent types '"+(typeof s[0])+"' and '"+(typeof s[1])+"'.\nPossible parent types: [glider], [point,line|curve|circle|conic]")}}}else{throw new Error("JSXGraph: Can't create tangent with parent types '"+(typeof s[0])+"' and '"+(typeof s[1])+"'.\nPossible parent types: [glider], [point,line|curve|circle|conic]")}}k=JXG.checkAttributes(k,{withLabel:JXG.readOption(q.options,"line","withLabel"),layer:null});if(r.elementClass==JXG.OBJECT_CLASS_LINE){v=q.create("line",[r.point1,r.point2],k)}else{if(r.elementClass==JXG.OBJECT_CLASS_CURVE&&!(r.type==JXG.OBJECT_TYPE_CONIC)){if(r.curveType!="plot"){m=r.X;n=r.Y;v=q.create("line",[function(){return -d.X()*q.D(n)(d.position)+d.Y()*q.D(m)(d.position)},function(){return q.D(n)(d.position)},function(){return -q.D(m)(d.position)}],k);d.addChild(v);v.glider=d}else{v=q.create("line",[function(){l=Math.floor(d.position);if(l==r.numberPoints-1){l--}if(l<0){return 1}return r.Y(l)*r.X(l+1)-r.X(l)*r.Y(l+1)},function(){l=Math.floor(d.position);if(l==r.numberPoints-1){l--}if(l<0){return 0}return r.Y(l+1)-r.Y(l)},function(){l=Math.floor(d.position);if(l==r.numberPoints-1){l--}if(l<0){return 0}return r.X(l)-r.X(l+1)}],k);d.addChild(v);v.glider=d}}else{if(r.type==JXG.OBJECT_TYPE_TURTLE){v=q.create("line",[function(){l=Math.floor(d.position);for(h=0;h<r.objects.length;h++){e=r.objects[h];if(e.type==JXG.OBJECT_TYPE_CURVE){if(l<e.numberPoints){break}l-=e.numberPoints}}if(l==e.numberPoints-1){l--}if(l<0){return 1}return e.Y(l)*e.X(l+1)-e.X(l)*e.Y(l+1)},function(){l=Math.floor(d.position);for(h=0;h<r.objects.length;h++){e=r.objects[h];if(e.type==JXG.OBJECT_TYPE_CURVE){if(l<e.numberPoints){break}l-=e.numberPoints}}if(l==e.numberPoints-1){l--}if(l<0){return 0}return e.Y(l+1)-e.Y(l)},function(){l=Math.floor(d.position);for(h=0;h<r.objects.length;h++){e=r.objects[h];if(e.type==JXG.OBJECT_TYPE_CURVE){if(l<e.numberPoints){break}l-=e.numberPoints}}if(l==e.numberPoints-1){l--}if(l<0){return 0}return e.X(l)-e.X(l+1)}],k);d.addChild(v);v.glider=d}else{if(r.elementClass==JXG.OBJECT_CLASS_CIRCLE||r.type==JXG.OBJECT_TYPE_CONIC){v=q.create("line",[function(){return JXG.Math.matVecMult(r.quadraticform,d.coords.usrCoords)[0]},function(){return JXG.Math.matVecMult(r.quadraticform,d.coords.usrCoords)[1]},function(){return JXG.Math.matVecMult(r.quadraticform,d.coords.usrCoords)[2]}],k);d.addChild(v);v.glider=d}}}}return v};JXG.JSXGraph.registerElement("tangent",JXG.createTangent);JXG.JSXGraph.registerElement("polar",JXG.createTangent);JXG.Group=function(h,l,d){var j,g,e,k,f;this.board=h;this.objects={};j=this.board.numObjects;this.board.numObjects++;if((l=="")||!JXG.exists(l)){this.id=this.board.id+"Group"+j}else{this.id=l}this.type=JXG.OBJECT_TYPE_POINT;this.elementClass=JXG.OBJECT_CLASS_POINT;if((d=="")||!JXG.exists(d)){this.name="group_"+this.board.generateName(this)}else{this.name=d}delete (this.type);if((arguments.length==4)&&(JXG.isArray(arguments[3]))){g=arguments[3]}else{g=[];for(e=3;e<arguments.length;e++){g.push(arguments[e])}}for(e=0;e<g.length;e++){k=JXG.getReference(this.board,g[e]);if((!k.fixed)&&((k.type==JXG.OBJECT_TYPE_POINT)||(k.type==JXG.OBJECT_TYPE_GLIDER))){if(k.group.length!=0){this.addGroup(k.group[k.group.length-1])}else{this.addPoint(k)}}}for(f in this.objects){this.objects[f].group.push(this)}this.dX=0;this.dY=0};JXG.Group.prototype.ungroup=function(){var d;for(d in this.objects){if(this.objects[d].group[this.objects[d].group.length-1]==this){this.objects[d].group.pop()}delete (this.objects[d])}};JXG.Group.prototype.update=function(d){var f=null,e;for(e in this.objects){f=this.objects[e];if(f.id!=d.id){f.coords=new JXG.Coords(JXG.COORDS_BY_SCREEN,[f.coords.scrCoords[1]+this.dX,f.coords.scrCoords[2]+this.dY],f.board)}}for(e in this.objects){if(JXG.exists(this.board.objects[e])){this.objects[e].update(false)}else{delete (this.objects[e])}}};JXG.Group.prototype.addPoint=function(d){this.objects[d.id]=d};JXG.Group.prototype.addPoints=function(d){var e;for(e in d){this.objects[e.id]=e}};JXG.Group.prototype.addGroup=function(e){var d;for(d in e.objects){this.addPoint(e.objects[d])}};JXG.createGroup=function(f,e,d){return new JXG.Group(f,d.id,d.name,e)};JXG.JSXGraph.registerElement("group",JXG.createGroup);JXG.Circle=function(j,l,h,e,k,d,g,f){this.constructor();this.type=JXG.OBJECT_TYPE_CIRCLE;this.elementClass=JXG.OBJECT_CLASS_CIRCLE;this.init(j,k,d);if(f==null){f=j.options.layer.circle}this.layer=f;this.method=l;this.midpoint=JXG.getReference(this.board,h);this.midpoint.addChild(this);this.visProp.visible=true;this.visProp.fillColor=this.board.options.circle.fillColor;this.visProp.highlightFillColor=this.board.options.circle.highlightFillColor;this.visProp.strokeColor=this.board.options.circle.strokeColor;this.visProp.highlightStrokeColor=this.board.options.circle.highlightStrokeColor;this.point2=null;this.radius=0;this.line=null;this.circle=null;if(l=="twoPoints"){this.point2=JXG.getReference(j,e);this.point2.addChild(this);this.radius=this.Radius()}else{if(l=="pointRadius"){this.generateTerm(e);this.updateRadius()}else{if(l=="pointLine"){this.line=JXG.getReference(j,e);this.radius=this.line.point1.coords.distance(JXG.COORDS_BY_USER,this.line.point2.coords)}else{if(l=="pointCircle"){this.circle=JXG.getReference(j,e);this.radius=this.circle.Radius()}}}}if(g!=null){this.createLabel(g)}this.id=this.board.setId(this,"C");this.board.renderer.drawCircle(this);this.board.finalizeAdding(this);if(l=="pointRadius"){this.notifyParents(e)}else{if(l=="pointLine"){this.line.addChild(this)}else{if(l=="pointCircle"){this.circle.addChild(this)}}}};JXG.Circle.prototype=new JXG.GeometryElement;JXG.Circle.prototype.hasPoint=function(d,k){var e=this.board.options.precision.hasPoint/(this.board.stretchX),g=this.midpoint.coords.usrCoords,h=new JXG.Coords(JXG.COORDS_BY_SCREEN,[d,k],this.board),f=this.Radius();var j=Math.sqrt((g[1]-h.usrCoords[1])*(g[1]-h.usrCoords[1])+(g[2]-h.usrCoords[2])*(g[2]-h.usrCoords[2]));return(Math.abs(j-f)<e)};JXG.Circle.prototype.generatePolynomial=function(k){var h=this.midpoint.symbolic.x;var g=this.midpoint.symbolic.y;var f=k.symbolic.x;var e=k.symbolic.y;var d=this.generateRadiusSquared();if(d==""){return[]}var j="(("+f+")-("+h+"))^2 + (("+e+")-("+g+"))^2 - ("+d+")";return[j]};JXG.Circle.prototype.generateRadiusSquared=function(){var e="";if(this.method=="twoPoints"){var g=this.midpoint.symbolic.x;var f=this.midpoint.symbolic.y;var j=this.point2.symbolic.x;var h=this.point2.symbolic.y;e="(("+j+")-("+g+"))^2 + (("+h+")-("+f+"))^2"}else{if(this.method=="pointRadius"){if(typeof(this.radius)=="number"){e=""+this.radius*this.radius}}else{if(this.method=="pointLine"){var j=this.line.point1.symbolic.x;var h=this.line.point1.symbolic.y;var d=this.line.point2.symbolic.x;var k=this.line.point2.symbolic.y;e="(("+j+")-("+d+"))^2 + (("+h+")-("+k+"))^2"}else{if(this.method=="pointCircle"){e=this.circle.Radius()}}}}return e};JXG.Circle.prototype.update=function(){if(this.traced){this.cloneToBackground(true)}if(this.needsUpdate){if(this.method=="pointLine"){this.radius=this.line.point1.coords.distance(JXG.COORDS_BY_USER,this.line.point2.coords)}else{if(this.method=="pointCircle"){this.radius=this.circle.Radius()}else{if(this.method=="pointRadius"){this.radius=this.updateRadius()}}}if(!this.board.geonextCompatibilityMode){this.updateStdform();this.updateQuadraticform()}}};JXG.Circle.prototype.updateQuadraticform=function(){var d=this.midpoint,g=d.X(),f=d.Y(),e=this.Radius();this.quadraticform=[[g*g+f*f-e*e,-g,-f],[-g,1,0],[-f,0,1]]};JXG.Circle.prototype.updateStdform=function(){this.stdform[3]=0.5;this.stdform[4]=this.Radius();this.stdform[1]=-this.midpoint.coords.usrCoords[1];this.stdform[2]=-this.midpoint.coords.usrCoords[2];this.normalize()};JXG.Circle.prototype.updateRenderer=function(){if(this.needsUpdate&&this.visProp.visible){var d=this.isReal;this.isReal=(isNaN(this.midpoint.coords.usrCoords[1]+this.midpoint.coords.usrCoords[2]+this.Radius()))?false:true;if(this.isReal){if(d!=this.isReal){this.board.renderer.show(this);if(this.hasLabel&&this.label.content.visProp.visible){this.board.renderer.show(this.label.content)}}this.board.renderer.updateCircle(this)}else{if(d!=this.isReal){this.board.renderer.hide(this);if(this.hasLabel&&this.label.content.visProp.visible){this.board.renderer.hide(this.label.content)}}}this.needsUpdate=false}if(this.hasLabel&&this.label.content.visProp.visible&&this.isReal){this.label.content.update();this.board.renderer.updateText(this.label.content)}};JXG.Circle.prototype.generateTerm=function(e){if(typeof e=="string"){var f=this.board.elementsByName;var d=JXG.GeonextParser.geonext2JS(e+"",this.board);this.updateRadius=new Function("return "+d+";")}else{if(typeof e=="number"){this.updateRadius=function(){return e}}else{this.updateRadius=e}}};JXG.Circle.prototype.notifyParents=function(e){var d=null;var f=this.board.elementsByName;if(typeof e=="string"){JXG.GeonextParser.findDependencies(this,e+"",this.board)}};JXG.Circle.prototype.Radius=function(){if(this.method=="twoPoints"){return(Math.sqrt(Math.pow(this.midpoint.coords.usrCoords[1]-this.point2.coords.usrCoords[1],2)+Math.pow(this.midpoint.coords.usrCoords[2]-this.point2.coords.usrCoords[2],2)))}else{if(this.method=="pointLine"||this.method=="pointCircle"){return this.radius}else{if(this.method=="pointRadius"){return this.updateRadius()}}}};JXG.Circle.prototype.getRadius=function(){return this.Radius()};JXG.Circle.prototype.getTextAnchor=function(){return this.midpoint.coords};JXG.Circle.prototype.getLabelAnchor=function(){if(this.method=="twoPoints"){var e=this.midpoint.coords.usrCoords[1]-this.point2.coords.usrCoords[1];var d=this.midpoint.coords.usrCoords[2]-this.point2.coords.usrCoords[2];return new JXG.Coords(JXG.COORDS_BY_USER,[this.midpoint.coords.usrCoords[1]+e,this.midpoint.coords.usrCoords[2]+d],this.board)}else{if(this.method=="pointLine"||this.method=="pointCircle"||this.method=="pointRadius"){return new JXG.Coords(JXG.COORDS_BY_USER,[this.midpoint.coords.usrCoords[1]-this.Radius(),this.midpoint.coords.usrCoords[2]],this.board)}}};JXG.Circle.prototype.cloneToBackground=function(d){var g={},e,f;g.id=this.id+"T"+this.numTraces;g.elementClass=JXG.OBJECT_CLASS_CIRCLE;this.numTraces++;g.midpoint={};g.midpoint.coords=this.midpoint.coords;e=this.Radius();g.Radius=function(){return e};g.getRadius=function(){return e};g.board={};g.board.unitX=this.board.unitX;g.board.unitY=this.board.unitY;g.board.zoomX=this.board.zoomX;g.board.zoomY=this.board.zoomY;g.board.stretchX=this.board.stretchX;g.board.stretchY=this.board.stretchY;g.visProp=this.visProp;JXG.clearVisPropOld(g);f=this.board.renderer.enhancedRendering;this.board.renderer.enhancedRendering=true;this.board.renderer.drawCircle(g);this.board.renderer.enhancedRendering=f;this.traces[g.id]=g.rendNode;delete g};JXG.Circle.prototype.addTransform=function(d){var f;if(JXG.isArray(d)){f=d}else{f=[d]}for(var e=0;e<f.length;e++){this.midpoint.transformations.push(f[e]);if(this.method=="twoPoints"){this.point2.transformations.push(f[e])}}};JXG.Circle.prototype.setPosition=function(g,d,f){var e=this.board.create("transform",[d,f],{type:"translate"});this.addTransform(e)};JXG.Circle.prototype.X=function(d){d*=2*Math.PI;return this.Radius()*Math.cos(d)+this.midpoint.coords.usrCoords[1]};JXG.Circle.prototype.Y=function(d){d*=2*Math.PI;return this.Radius()*Math.sin(d)+this.midpoint.coords.usrCoords[2]};JXG.Circle.prototype.minX=function(){return 0};JXG.Circle.prototype.maxX=function(){return 1};JXG.Circle.prototype.Area=function(){var d=this.Radius();return d*d*Math.PI};JXG.createCircle=function(h,k,e){var g,j,f;e=JXG.checkAttributes(e,{withLabel:JXG.readOption(h.options,"circle","withLabel"),layer:null});j=[];for(f=0;f<k.length;f++){if(JXG.isPoint(k[f])){j[f]=k[f]}else{if(k[f].length>1){j[f]=h.create("point",k[f],{visible:false,fixed:true})}else{j[f]=k[f]}}}if(k.length==2&&JXG.isPoint(j[0])&&JXG.isPoint(j[1])){g=new JXG.Circle(h,"twoPoints",j[0],j[1],e.id,e.name,e.withLabel,e.layer)}else{if((JXG.isNumber(j[0])||JXG.isFunction(j[0])||JXG.isString(j[0]))&&JXG.isPoint(j[1])){g=new JXG.Circle(h,"pointRadius",j[1],j[0],e.id,e.name,e.withLabel,e.layer)}else{if((JXG.isNumber(j[1])||JXG.isFunction(j[1])||JXG.isString(j[1]))&&JXG.isPoint(j[0])){g=new JXG.Circle(h,"pointRadius",j[0],j[1],e.id,e.name,e.withLabel,e.layer)}else{if((j[0].type==JXG.OBJECT_TYPE_CIRCLE)&&JXG.isPoint(j[1])){g=new JXG.Circle(h,"pointCircle",j[1],j[0],e.id,e.name,e.withLabel,e.layer)}else{if((j[1].type==JXG.OBJECT_TYPE_CIRCLE)&&JXG.isPoint(j[0])){g=new JXG.Circle(h,"pointCircle",j[0],j[1],e.id,e.name,e.withLabel,e.layer)}else{if((j[0].type==JXG.OBJECT_TYPE_LINE)&&JXG.isPoint(j[1])){g=new JXG.Circle(h,"pointLine",j[1],j[0],e.id,e.name,e.withLabel,e.layer)}else{if((j[1].type==JXG.OBJECT_TYPE_LINE)&&JXG.isPoint(j[0])){g=new JXG.Circle(h,"pointLine",j[0],j[1],e.id,e.name,e.withLabel,e.layer)}else{if(k.length==3&&JXG.isPoint(j[0])&&JXG.isPoint(j[1])&&JXG.isPoint(j[2])){var d=JXG.createCircumcircle(h,j,e);d[0].setProperty({visible:false});return d[1]}else{throw new Error("JSXGraph: Can't create circle with parent types '"+(typeof k[0])+"' and '"+(typeof k[1])+"'.\nPossible parent types: [point,point], [point,number], [point,function], [point,circle], [point,point,point]")}}}}}}}}return g};JXG.JSXGraph.registerElement("circle",JXG.createCircle);JXG.createEllipse=function(l,n,k){var q=[],e,d,h,j;k=JXG.checkAttributes(k,{withLabel:JXG.readOption(l.options,"conic","withLabel"),layer:null});for(h=0;h<2;h++){if(n[h].length>1){q[h]=l.create("point",n[h],{visible:false,fixed:true})}else{if(JXG.isPoint(n[h])){q[h]=JXG.getReference(l,n[h])}else{if((typeof n[h]=="function")&&(n[h]().elementClass==JXG.OBJECT_CLASS_POINT)){q[h]=n[h]()}else{if(JXG.isString(n[h])){q[h]=JXG.getReference(l,n[h])}else{throw new Error("JSXGraph: Can't create Ellipse with parent types '"+(typeof n[0])+"' and '"+(typeof n[1])+"'.\nPossible parent types: [point,point,point], [point,point,number|function]")}}}}}if(JXG.isNumber(n[2])){d=JXG.createFunction(n[2],l)}else{if((typeof n[2]=="function")&&(JXG.isNumber(n[2]()))){d=n[2]}else{if(JXG.isPoint(n[2])){e=JXG.getReference(l,n[2])}else{if(n[2].length>1){e=l.create("point",n[2],{visible:false,fixed:true})}else{if((typeof n[2]=="function")&&(n[2]().elementClass==JXG.OBJECT_CLASS_POINT)){e=n[2]()}else{if(JXG.isString(n[2])){e=JXG.getReference(l,n[2])}else{throw new Error("JSXGraph: Can't create Ellipse with parent types '"+(typeof n[0])+"' and '"+(typeof n[1])+"' and '"+(typeof n[2])+"'.\nPossible parent types: [point,point,point], [point,point,number|function]")}}}}d=function(){return e.Dist(q[0])+e.Dist(q[1])}}}if(typeof n[4]=="undefined"){n[4]=1.0001*Math.PI}if(typeof n[3]=="undefined"){n[3]=-1.0001*Math.PI}k=JXG.checkAttributes(k,{curveType:"parameter"});var m=l.create("point",[function(){return(q[0].X()+q[1].X())*0.5},function(){return(q[0].Y()+q[1].Y())*0.5}],{visible:false,name:"",withLabel:false});var p=function(){var r=q[0].X(),z=q[0].Y(),w=q[1].X(),v=q[1].Y(),y,x,u;var t=(w-r>0)?1:-1;if(Math.abs(w-r)>1e-7){y=Math.atan2(v-z,w-r)+((t<0)?Math.PI:0)}else{y=((v-z>0)?0.5:-0.5)*Math.PI}x=Math.cos(y);u=Math.sin(y);var s=[[1,0,0],[m.X(),x,-u],[m.Y(),u,x]];return s};var f=l.create("curve",[function(r){return 0},function(r){return 0},n[3],n[4]],k);var g=function(u,s){var y=d()*0.5,r=y*y,t=q[1].Dist(q[0])*0.5,v=r-t*t,x=Math.sqrt(v),w=[[1,0,0],[0,1,0],[0,0,1]],A,z;if(!s){j=p();A=m.X();z=m.Y();w[0][0]=j[0][0];w[0][1]=0;w[0][2]=0;w[1][0]=A*(1-j[1][1])+z*j[1][2];w[1][1]=j[1][1];w[1][2]=j[2][1];w[2][0]=z*(1-j[1][1])-A*j[1][2];w[2][1]=j[1][2];w[2][2]=j[2][2];f.quadraticform=JXG.Math.matMatMult(JXG.Math.transpose(w),JXG.Math.matMatMult([[-1+A*A/(y*y)+z*z/v,-A/r,-A/v],[-A/r,1/r,0],[-z/v,0,1/v]],w))}return JXG.Math.matVecMult(j,[1,y*Math.cos(u),x*Math.sin(u)])};f.X=function(r,s){return g(r,s)[1]};f.Y=function(r,s){return g(r,s)[2]};f.midpoint=m;f.type=JXG.OBJECT_TYPE_CONIC;return f};JXG.createHyperbola=function(l,n,k){var q=[],e,d,h,j;k=JXG.checkAttributes(k,{withLabel:JXG.readOption(l.options,"conic","withLabel"),layer:null});for(h=0;h<2;h++){if(n[h].length>1){q[h]=l.create("point",n[h],{visible:false,fixed:true})}else{if(JXG.isPoint(n[h])){q[h]=JXG.getReference(l,n[h])}else{if((typeof n[h]=="function")&&(n[h]().elementClass==JXG.OBJECT_CLASS_POINT)){q[h]=n[h]()}else{if(JXG.isString(n[h])){q[h]=JXG.getReference(l,n[h])}else{throw new Error("JSXGraph: Can't create Hyperbola with parent types '"+(typeof n[0])+"' and '"+(typeof n[1])+"'.\nPossible parent types: [point,point,point], [point,point,number|function]")}}}}}if(JXG.isNumber(n[2])){d=JXG.createFunction(n[2],l)}else{if((typeof n[2]=="function")&&(JXG.isNumber(n[2]()))){d=n[2]}else{if(JXG.isPoint(n[2])){e=JXG.getReference(l,n[2])}else{if(n[2].length>1){e=l.create("point",n[2],{visible:false,fixed:true})}else{if((typeof n[2]=="function")&&(n[2]().elementClass==JXG.OBJECT_CLASS_POINT)){e=n[2]()}else{if(JXG.isString(n[2])){e=JXG.getReference(l,n[2])}else{throw new Error("JSXGraph: Can't create Hyperbola with parent types '"+(typeof n[0])+"' and '"+(typeof n[1])+"' and '"+(typeof n[2])+"'.\nPossible parent types: [point,point,point], [point,point,number|function]")}}}}d=function(){return e.Dist(q[0])-e.Dist(q[1])}}}if(typeof n[4]=="undefined"){n[4]=1.0001*Math.PI}if(typeof n[3]=="undefined"){n[3]=-1.0001*Math.PI}k=JXG.checkAttributes(k,{curveType:"parameter"});var m=l.create("point",[function(){return(q[0].X()+q[1].X())*0.5},function(){return(q[0].Y()+q[1].Y())*0.5}],{visible:false,name:"",withLabel:false});var p=function(){var t=q[0].X(),s=q[0].Y(),x=q[1].X(),v=q[1].Y(),u;var w=(x-t>0)?1:-1;if(Math.abs(x-t)>1e-7){u=Math.atan2(v-s,x-t)+((w<0)?Math.PI:0)}else{u=((v-s>0)?0.5:-0.5)*Math.PI}var r=[[1,0,0],[m.X(),Math.cos(u),-Math.sin(u)],[m.Y(),Math.sin(u),Math.cos(u)]];return r};var f=l.create("curve",[function(r){return 0},function(r){return 0},n[3],n[4]],k);var g=function(u,s){var y=d()*0.5,r=y*y,t=q[1].Dist(q[0])*0.5,x=Math.sqrt(-y*y+t*t),v=x*x,w=[[1,0,0],[0,1,0],[0,0,1]],A,z;if(!s){j=p();A=m.X();z=m.Y();w[0][0]=j[0][0];w[0][1]=0;w[0][2]=0;w[1][0]=A*(1-j[1][1])+z*j[1][2];w[1][1]=j[1][1];w[1][2]=j[2][1];w[2][0]=z*(1-j[1][1])-A*j[1][2];w[2][1]=j[1][2];w[2][2]=j[2][2];f.quadraticform=JXG.Math.matMatMult(JXG.Math.transpose(w),JXG.Math.matMatMult([[-1+A*A/r+z*z/v,-A/r,z/v],[-A/r,1/r,0],[z/v,0,-1/v]],w))}return JXG.Math.matVecMult(j,[1,y/Math.cos(u),x*Math.tan(u)])};f.X=function(r,s){return g(r,s)[1]};f.Y=function(r,s){return g(r,s)[2]};f.midpoint=m;f.type=JXG.OBJECT_TYPE_CONIC;return f};JXG.createParabola=function(k,n,j){var h=n[0],e=n[1],g;j=JXG.checkAttributes(j,{withLabel:JXG.readOption(k.options,"conic","withLabel"),layer:null});if(n[0].length>1){h=k.create("point",n[0],{visible:false,fixed:true})}else{if(JXG.isPoint(n[0])){h=JXG.getReference(k,n[0])}else{if((typeof n[0]=="function")&&(n[0]().elementClass==JXG.OBJECT_CLASS_POINT)){h=n[0]()}else{if(JXG.isString(n[0])){h=JXG.getReference(k,n[0])}else{throw new Error("JSXGraph: Can't create Parabola with parent types '"+(typeof n[0])+"' and '"+(typeof n[1])+"'.\nPossible parent types: [point,line]")}}}}if(typeof n[3]=="undefined"){n[3]=10}if(typeof n[2]=="undefined"){n[2]=-10}j=JXG.checkAttributes(j,{curveType:"parameter"});var m=k.create("point",[function(){var l=[0,e.stdform[1],e.stdform[2]];l=JXG.Math.crossProduct(l,h.coords.usrCoords);return JXG.Math.Geometry.meetLineLine(l,e.stdform,0,k).usrCoords}],{visible:false,name:"",withLabel:false});var p=function(){var r=Math.atan(e.getSlope()),q=(m.X()+h.X())*0.5,s=(m.Y()+h.Y())*0.5;r+=(h.Y()-m.Y()<0||(h.Y()==m.Y()&&h.X()>m.X()))?Math.PI:0;var l=[[1,0,0],[q*(1-Math.cos(r))+s*Math.sin(r),Math.cos(r),-Math.sin(r)],[s*(1-Math.cos(r))-q*Math.sin(r),Math.sin(r),Math.cos(r)]];return l};var d=k.create("curve",[function(l){return 0},function(l){return 0},n[2],n[3]],j);var f=function(s,u){var v=m.Dist(h)*0.5,r=[[1,0,0],[0,1,0],[0,0,1]],q=(m.X()+h.X())*0.5,l=(m.Y()+h.Y())*0.5;if(!u){g=p();r[0][0]=g[0][0];r[0][1]=0;r[0][2]=0;r[1][0]=q*(1-g[1][1])+l*g[1][2];r[1][1]=g[1][1];r[1][2]=g[2][1];r[2][0]=l*(1-g[1][1])-q*g[1][2];r[2][1]=g[1][2];r[2][2]=g[2][2];d.quadraticform=JXG.Math.matMatMult(JXG.Math.transpose(r),JXG.Math.matMatMult([[-l*4*v-q*q,q,2*v],[q,-1,0],[2*v,0,0]],r))}return JXG.Math.matVecMult(g,[1,s+q,s*s/(v*4)+l])};d.X=function(l,q){return f(l,q)[1]};d.Y=function(l,q){return f(l,q)[2]};d.type=JXG.OBJECT_TYPE_CONIC;return d};JXG.createConic=function(e,v,n){var g=[[1,0,0],[0,1,0],[0,0,1]],A,y,x,w,f=[[1,0,0],[0,1,0],[0,0,1]],q,m,s=[],t,r,z,l=[];if(v.length==5){z=true}else{if(v.length==6){z=false}else{throw new Error("JSXGraph: Can't create generic Conic with "+parent.length+" parameters.")}}n=JXG.checkAttributes(n,{withLabel:JXG.readOption(e.options,"conic","withLabel"),layer:null});if(z){for(t=0;t<5;t++){if(v[t].length>1){s[t]=e.create("point",v[t],{visible:false,fixed:true})}else{if(JXG.isPoint(v[t])){s[t]=JXG.getReference(e,v[t])}else{if((typeof v[t]=="function")&&(v[t]().elementClass==JXG.OBJECT_CLASS_POINT)){s[t]=v[t]()}else{if(JXG.isString(v[t])){s[t]=JXG.getReference(e,v[t])}else{throw new Error("JSXGraph: Can't create Conic section with parent types '"+(typeof v[t])+"'.\nPossible parent types: [point,point,point,point,point], [a00,a11,a22,a01,a02,a12]")}}}}}}else{r=[[0,0,0],[0,0,0],[0,0,0]];r[0][0]=(JXG.isFunction(v[2]))?function(){return v[2]()}:function(){return v[2]};r[0][1]=(JXG.isFunction(v[4]))?function(){return v[4]()}:function(){return v[4]};r[0][2]=(JXG.isFunction(v[5]))?function(){return v[5]()}:function(){return v[5]};r[1][1]=(JXG.isFunction(v[0]))?function(){return v[0]()}:function(){return v[0]};r[1][2]=(JXG.isFunction(v[3]))?function(){return v[3]()}:function(){return v[3]};r[2][2]=(JXG.isFunction(v[1]))?function(){return v[1]()}:function(){return v[1]}}var h=function(p){var C,B;for(C=0;C<3;C++){for(B=C;B<3;B++){p[C][B]+=p[B][C]}}for(C=0;C<3;C++){for(B=0;B<C;B++){p[C][B]=p[B][C]}}return p};var k=function(B,p){var E,C,D=[[0,0,0],[0,0,0],[0,0,0]];for(E=0;E<3;E++){for(C=0;C<3;C++){D[E][C]=B[E]*p[C]}}return h(D)};var u=function(F,D,E){var I,J,C,K=[[0,0,0],[0,0,0],[0,0,0]],H,G;C=JXG.Math.matVecMult(D,E);I=JXG.Math.innerProduct(E,C);C=JXG.Math.matVecMult(F,E);J=JXG.Math.innerProduct(E,C);for(H=0;H<3;H++){for(G=0;G<3;G++){K[H][G]=I*F[H][G]-J*D[H][G]}}return K};var j=e.create("curve",[function(p){return 0},function(p){return 0},0,2*Math.PI],n);var d=function(E,F){var D,C,p,B;if(!F){if(z){for(D=0;D<5;D++){l[D]=s[D].coords.usrCoords}q=k(JXG.Math.crossProduct(l[0],l[1]),JXG.Math.crossProduct(l[2],l[3]));m=k(JXG.Math.crossProduct(l[0],l[2]),JXG.Math.crossProduct(l[1],l[3]));f=u(q,m,l[4])}else{for(D=0;D<3;D++){for(C=D;C<3;C++){f[D][C]=r[D][C]();if(C>D){f[C][D]=f[D][C]}}}}j.quadraticform=f;A=JXG.Math.Numerics.Jacobi(f);if(A[0][0][0]<0){A[0][0][0]*=(-1);A[0][1][1]*=(-1);A[0][2][2]*=(-1)}for(D=0;D<3;D++){p=0;for(C=0;C<3;C++){p+=A[1][C][D]*A[1][C][D]}p=Math.sqrt(p);for(C=0;C<3;C++){}}g=A[1];w=Math.sqrt(Math.abs(A[0][0][0]));y=Math.sqrt(Math.abs(A[0][1][1]));x=Math.sqrt(Math.abs(A[0][2][2]))}if(A[0][1][1]<=0&&A[0][2][2]<=0){B=JXG.Math.matVecMult(g,[1/w,Math.cos(E)/y,Math.sin(E)/x])}else{if(A[0][1][1]<=0&&A[0][2][2]>0){B=JXG.Math.matVecMult(g,[Math.cos(E)/w,1/y,Math.sin(E)/x])}else{if(A[0][2][2]<0){B=JXG.Math.matVecMult(g,[Math.sin(E)/w,Math.cos(E)/y,1/x])}}}B[1]/=B[0];B[2]/=B[0];B[0]=1;return B};j.X=function(p,B){return d(p,B)[1]};j.Y=function(p,B){return d(p,B)[2]};j.midpoint=e.create("point",[function(){var p=j.quadraticform;return[p[1][1]*p[2][2]-p[1][2]*p[1][2],p[1][2]*p[0][2]-p[2][2]*p[0][1],p[0][1]*p[1][2]-p[1][1]*p[0][2]]}],{name:"",visible:false});j.type=JXG.OBJECT_TYPE_CONIC;return j};JXG.JSXGraph.registerElement("ellipse",JXG.createEllipse);JXG.JSXGraph.registerElement("hyperbola",JXG.createHyperbola);JXG.JSXGraph.registerElement("parabola",JXG.createParabola);JXG.JSXGraph.registerElement("conic",JXG.createConic);JXG.Polygon=function(p,q,r,f,e,g,d,k,n){var j,m,h;this.constructor();this.type=JXG.OBJECT_TYPE_POLYGON;this.elementClass=JXG.OBJECT_CLASS_AREA;this.init(p,f,e);if(n==null){n=p.options.layer.polygon}this.layer=n;if((typeof g=="undefined")||(g==null)){g=true}if((typeof k=="undefined")||(k==null)){k=false}this.withLines=g;this.vertices=[];for(j=0;j<q.length;j++){m=JXG.getReference(this.board,q[j]);this.vertices[j]=m}if((typeof r=="undefined")||(r==null)){r=[];for(j=0;j<q.length-1;j++){r[j]={}}}if(this.vertices[this.vertices.length-1]!=this.vertices[0]){this.vertices.push(this.vertices[0]);r.push({})}this.visProp.fillColor=this.board.options.polygon.fillColor;this.visProp.highlightFillColor=this.board.options.polygon.highlightFillColor;this.visProp.fillOpacity=this.board.options.polygon.fillOpacity;this.visProp.highlightFillOpacity=this.board.options.polygon.highlightFillOpacity;this.borders=[];if(g){for(j=0;j<this.vertices.length-1;j++){h=new JXG.Line(p,this.vertices[j],this.vertices[j+1],r[j].id,r[j].name,k,this.layer+1);h.setStraight(false,false);this.borders[j]=h;h.parentPolygon=this}}for(j=0;j<this.vertices.length-1;j++){m=JXG.getReference(this.board,this.vertices[j]);m.addChild(this)}this.createLabel(d,[0,0]);this.id=this.board.setId(this,"Py");this.board.renderer.drawPolygon(this);this.board.finalizeAdding(this)};JXG.Polygon.prototype=new JXG.GeometryElement;JXG.Polygon.prototype.hasPoint=function(d,e){return false};JXG.Polygon.prototype.updateRenderer=function(){if(this.needsUpdate){this.board.renderer.updatePolygon(this);this.needsUpdate=false}if(this.hasLabel&&this.label.content.visProp.visible){this.label.content.update();this.board.renderer.updateText(this.label.content)}};JXG.Polygon.prototype.getTextAnchor=function(){var f=0;var e=0;var d=0;var h=0;f=d=this.vertices[0].X();e=h=this.vertices[0].Y();for(var g=0;g<this.vertices.length;g++){if(this.vertices[g].X()<f){f=this.vertices[g].X()}if(this.vertices[g].X()>d){d=this.vertices[g].X()}if(this.vertices[g].Y()>e){e=this.vertices[g].Y()}if(this.vertices[g].Y()<h){h=this.vertices[g].Y()}}return new JXG.Coords(JXG.COORDS_BY_USER,[(f+d)*0.5,(e+h)*0.5],this.board)};JXG.Polygon.prototype.getLabelAnchor=function(){var f=0;var e=0;var d=0;var h=0;f=d=this.vertices[0].X();e=h=this.vertices[0].Y();for(var g=0;g<this.vertices.length;g++){if(this.vertices[g].X()<f){f=this.vertices[g].X()}if(this.vertices[g].X()>d){d=this.vertices[g].X()}if(this.vertices[g].Y()>e){e=this.vertices[g].Y()}if(this.vertices[g].Y()<h){h=this.vertices[g].Y()}}return new JXG.Coords(JXG.COORDS_BY_USER,[(f+d)*0.5,(e+h)*0.5],this.board)};JXG.Polygon.prototype.cloneToBackground=function(d){var f={},e;f.id=this.id+"T"+this.numTraces;this.numTraces++;f.vertices=this.vertices;f.visProp=this.visProp;JXG.clearVisPropOld(f);e=this.board.renderer.enhancedRendering;this.board.renderer.enhancedRendering=true;this.board.renderer.drawPolygon(f);this.board.renderer.enhancedRendering=e;this.traces[f.id]=f.rendNode;delete f};JXG.createPolygon=function(g,d,h){var f,e;h=JXG.checkAttributes(h,{withLabel:JXG.readOption(g.options,"polygon","withLabel"),layer:null});for(e=0;e<d.length;e++){d[e]=JXG.getReference(g,d[e]);if(!JXG.isPoint(d[e])){throw new Error("JSXGraph: Can't create polygon with parent types other than 'point'.")}}f=new JXG.Polygon(g,d,h.borders,h.id,h.name,h.withLines,h.withLabel,h.lineLabels,h.layer);return f};JXG.JSXGraph.registerElement("polygon",JXG.createPolygon);JXG.Polygon.prototype.hideElement=function(){this.visProp.visible=false;this.board.renderer.hide(this);if(this.withLines){for(var d=0;d<this.borders.length;d++){this.borders[d].hideElement()}}if(this.hasLabel&&this.label!=null){this.label.hiddenByParent=true;if(this.label.content.visProp.visible){this.board.renderer.hide(this.label.content)}}};JXG.Polygon.prototype.showElement=function(){this.visProp.visible=true;this.board.renderer.show(this);if(this.withLines){for(var d=0;d<this.borders.length;d++){this.borders[d].showElement()}}};JXG.Polygon.prototype.Area=function(){var e=0,d;for(d=0;d<this.vertices.length-1;d++){e+=(this.vertices[d].X()*this.vertices[d+1].Y()-this.vertices[d+1].X()*this.vertices[d].Y())}e/=2;return Math.abs(e)};JXG.createRegularPolygon=function(l,r,k){var f,h,g,d=[],e,q,j,m;k=JXG.checkAttributes(k,{withLabel:JXG.readOption(l.options,"polygon","withLabel"),layer:null});if(JXG.isNumber(r[r.length-1])&&r.length!=3){throw new Error("JSXGraph: A regular polygon needs two point and a number as input.")}j=r.length;g=r[j-1];if((!JXG.isNumber(g)&&!JXG.isPoint(JXG.getReference(l,g)))||g<3){throw new Error("JSXGraph: The third parameter has to be number greater than 2 or a point.")}if(JXG.isPoint(JXG.getReference(l,g))){g=j;m=true}else{j--;m=false}for(h=0;h<j;h++){r[h]=JXG.getReference(l,r[h]);if(!JXG.isPoint(r[h])){throw new Error("JSXGraph: Can't create regular polygon if the first two parameters aren't points.")}}d[0]=r[0];d[1]=r[1];for(h=2;h<g;h++){e=l.create("transform",[Math.PI*(2-(g-2)/g),d[h-1]],{type:"rotate"});if(m){d[h]=r[h];d[h].addTransform(r[h-2],e)}else{d[h]=l.create("point",[d[h-2],e],{name:"",withLabel:false,fixed:true,face:"o",size:1})}}f=l.create("polygon",d,k);return f};JXG.JSXGraph.registerElement("regularpolygon",JXG.createRegularPolygon);JXG.Curve=function(h,e,j,d,g,f){this.constructor();this.points=[];this.type=JXG.OBJECT_TYPE_CURVE;this.elementClass=JXG.OBJECT_CLASS_CURVE;this.init(h,j,d);if(f==null){f=h.options.layer.curve}this.layer=f;this.doAdvancedPlot=this.board.options.curve.doAdvancedPlot;this.numberPointsHigh=this.board.options.curve.numberPointsHigh;this.numberPointsLow=this.board.options.curve.numberPointsLow;this.numberPoints=this.numberPointsHigh;this.visProp.strokeWidth=this.board.options.curve.strokeWidth;this.visProp.highlightStrokeWidth=this.visProp.strokeWidth;this.visProp.visible=true;this.dataX=null;this.dataY=null;this.curveType=null;if(e[0]!=null){this.varname=e[0]}else{this.varname="x"}this.xterm=e[1];this.yterm=e[2];this.generateTerm(this.varname,this.xterm,this.yterm,e[3],e[4]);this.updateCurve();this.createLabel(g);this.id=this.board.setId(this,"G");this.board.renderer.drawCurve(this);this.board.finalizeAdding(this);if(typeof this.xterm=="string"){this.notifyParents(this.xterm)}if(typeof this.yterm=="string"){this.notifyParents(this.yterm)}};JXG.Curve.prototype=new JXG.GeometryElement;JXG.Curve.prototype.minX=function(){if(this.curveType=="polar"){return 0}else{var d=new JXG.Coords(JXG.COORDS_BY_SCREEN,[0,0],this.board);return d.usrCoords[1]}};JXG.Curve.prototype.maxX=function(){var d;if(this.curveType=="polar"){return 2*Math.PI}else{d=new JXG.Coords(JXG.COORDS_BY_SCREEN,[this.board.canvasWidth,0],this.board);return d.usrCoords[1]}};JXG.Curve.prototype.hasPoint=function(s,r){var u,B=Infinity,J,m,D,C,w,v,z,f,K,A,p,H,l,G,h,n,q,F=this.numberPointsLow,I=(this.maxX()-this.minX())/F,e=this.board.options.precision.hasPoint/(this.board.unitX*this.board.zoomX),g,E,k=true;e=e*e;g=new JXG.Coords(JXG.COORDS_BY_SCREEN,[s,r],this.board);s=g.usrCoords[1];r=g.usrCoords[2];if(this.curveType=="parameter"||this.curveType=="polar"||this.curveType=="functiongraph"){E=this.transformations.length;for(D=0,u=this.minX();D<F;D++){w=this.X(u,k);v=this.Y(u,k);for(C=0;C<E;C++){m=this.transformations[C];m.update();J=JXG.Math.matVecMult(m.matrix,[1,w,v]);w=J[1];v=J[2]}B=(s-w)*(s-w)+(r-v)*(r-v);if(B<e){return true}u+=I}}else{if(this.curveType=="plot"){E=this.numberPoints;for(D=0;D<E-1;D++){z=this.X(D);f=this.X(D+1);K=this.Y(D);A=this.Y(D+1);G=f-z;h=A-K;H=s-z;l=r-K;q=G*G+h*h;if(q>=JXG.Math.eps){n=H*G+l*h;p=n/q;B=H*H+l*l-p*n}else{p=0;B=H*H+l*l}if(p>=0&&p<=1&&B<e){return true}}return false}}return(B<e)};JXG.Curve.prototype.allocatePoints=function(){var e,d;d=this.numberPoints;if(this.points.length<this.numberPoints){for(e=this.points.length;e<d;e++){this.points[e]=new JXG.Coords(JXG.COORDS_BY_USER,[0,0],this.board)}}};JXG.Curve.prototype.update=function(){if(this.needsUpdate){this.updateCurve()}if(this.traced){this.cloneToBackground(true)}return this};JXG.Curve.prototype.updateRenderer=function(){if(this.needsUpdate){this.board.renderer.updateCurve(this);this.needsUpdate=false}if(this.hasLabel&&this.label.content.visProp.visible){this.label.content.update();this.board.renderer.updateText(this.label.content)}return this};JXG.Curve.prototype.updateDataArray=function(){return this};JXG.Curve.prototype.updateCurve=function(){var e,f,k,d,j,g,h=false;this.updateDataArray();f=this.minX();k=this.maxX();if(this.dataX!=null){this.numberPoints=this.dataX.length;e=this.numberPoints;this.allocatePoints();for(g=0;g<e;g++){d=g;if(this.dataY!=null){j=g}else{j=this.X(d)}this.points[g].setCoordinates(JXG.COORDS_BY_USER,[this.X(d,h),this.Y(j,h)],false);this.updateTransform(this.points[g]);h=true}}else{if(this.doAdvancedPlot){this.updateParametricCurve(f,k,e)}else{if(this.board.updateQuality==this.board.BOARD_QUALITY_HIGH){this.numberPoints=this.numberPointsHigh}else{this.numberPoints=this.numberPointsLow}e=this.numberPoints;this.allocatePoints();this.updateParametricCurveNaive(f,k,e)}}this.getLabelAnchor();return this};JXG.Curve.prototype.updateParametricCurveNaive=function(f,k,e){var h,g,j=false,d=(k-f)/e;for(h=0;h<e;h++){g=f+h*d;this.points[h].setCoordinates(JXG.COORDS_BY_USER,[this.X(g,j),this.Y(g,j)],false);this.updateTransform(this.points[h]);j=true}return this};JXG.Curve.prototype.updateParametricCurve=function(D,d,z){var v,n,m,f=false,w=new JXG.Coords(JXG.COORDS_BY_USER,[0,0],this.board),l,k,B,e,p,F,E,r,h,u=[],g=[],C=[],A=[],q=false,s=0;if(this.board.updateQuality==this.board.BOARD_QUALITY_LOW){E=12;r=12;h=12}else{E=20;r=2;h=2}A[0]=d-D;for(v=1;v<E;v++){A[v]=A[v-1]*0.5}v=1;u[0]=1;g[0]=0;n=D;w.setCoordinates(JXG.COORDS_BY_USER,[this.X(n,f),this.Y(n,f)],false);f=true;B=w.scrCoords[1];e=w.scrCoords[2];m=n;n=d;w.setCoordinates(JXG.COORDS_BY_USER,[this.X(n,f),this.Y(n,f)],false);l=w.scrCoords[1];k=w.scrCoords[2];C[0]=[l,k];p=1;F=0;this.points=[];this.points[s++]=new JXG.Coords(JXG.COORDS_BY_SCREEN,[B,e],this.board);do{q=this.isDistOK(B,e,l,k,r,h)||this.isSegmentOutside(B,e,l,k);while(F<E&&(!q||F<3)&&!(!this.isSegmentDefined(B,e,l,k)&&F>8)){u[p]=v;g[p]=F;C[p]=[l,k];p++;v=2*v-1;F++;n=D+v*A[F];w.setCoordinates(JXG.COORDS_BY_USER,[this.X(n,f),this.Y(n,f)],false);l=w.scrCoords[1];k=w.scrCoords[2];q=this.isDistOK(B,e,l,k,r,h)||this.isSegmentOutside(B,e,l,k)}this.points[s]=new JXG.Coords(JXG.COORDS_BY_SCREEN,[l,k],this.board);this.updateTransform(this.points[s]);s++;B=l;e=k;m=n;p--;l=C[p][0];k=C[p][1];F=g[p]+1;v=u[p]*2}while(p!=0);this.numberPoints=this.points.length;return this};JXG.Curve.prototype.isSegmentOutside=function(e,g,d,f){if(g<0&&f<0){return true}else{if(g>this.board.canvasHeight&&f>this.board.canvasHeight){return true}else{if(e<0&&d<0){return true}else{if(e>this.board.canvasWidth&&d>this.board.canvasWidth){return true}}}}return false};JXG.Curve.prototype.isDistOK=function(g,j,f,h,e,d){if(isNaN(g+j+f+h)){return false}return(Math.abs(f-g)<d&&Math.abs(h-j)<d)};JXG.Curve.prototype.isSegmentDefined=function(e,g,d,f){return !(isNaN(e+g)&&isNaN(d+f))};JXG.Curve.prototype.updateTransform=function(g){var f,h,e,d=this.transformations.length;if(d==0){return g}for(e=0;e<d;e++){f=this.transformations[e];f.update();h=JXG.Math.matVecMult(f.matrix,g.usrCoords);g.setCoordinates(JXG.COORDS_BY_USER,[h[1],h[2]])}return g};JXG.Curve.prototype.addTransform=function(e){var g,f,d;if(JXG.isArray(e)){g=e}else{g=[e]}d=g.length;for(f=0;f<d;f++){this.transformations.push(g[f])}return this};JXG.Curve.prototype.setPosition=function(g,d,f){var e=this.board.create("transform",[d,f],{type:"translate"});if(this.transformations.length>0&&this.transformations[this.transformations.length-1].isNumericMatrix){this.transformations[this.transformations.length-1].melt(e)}else{this.addTransform(e)}return this};JXG.Curve.prototype.generateTerm=function(e,j,f,d,k){var h,g;if(JXG.isArray(j)){this.dataX=j;this.X=function(l){return this.dataX[l]};this.curveType="plot";this.numberPoints=this.dataX.length}else{this.X=JXG.createFunction(j,this.board,e);if(JXG.isString(j)){this.curveType="functiongraph"}else{if(JXG.isFunction(j)||JXG.isNumber(j)){this.curveType="parameter"}}}if(JXG.isArray(f)){this.dataY=f;this.Y=function(l){if(JXG.isFunction(this.dataY[l])){return this.dataY[l]()}else{return this.dataY[l]}}}else{this.Y=JXG.createFunction(f,this.board,e)}if(JXG.isFunction(j)&&JXG.isArray(f)){h=JXG.createFunction(f[0],this.board,"");g=JXG.createFunction(f[1],this.board,"");this.X=function(l){return(j)(l)*Math.cos(l)+h()};this.Y=function(l){return(j)(l)*Math.sin(l)+g()};this.curveType="polar"}if(d!=null){this.minX=JXG.createFunction(d,this.board,"")}if(k!=null){this.maxX=JXG.createFunction(k,this.board,"")}};JXG.Curve.prototype.notifyParents=function(d){JXG.GeonextParser.findDependencies(this,d,this.board)};JXG.Curve.prototype.getLabelAnchor=function(){var d=new JXG.Coords(JXG.COORDS_BY_SCREEN,[0,this.board.canvasHeight*0.5],this.board);d=JXG.Math.Geometry.projectCoordsToCurve(d.usrCoords[1],d.usrCoords[2],0,this,this.board)[0];return d};JXG.Curve.prototype.cloneToBackground=function(f){var j={},g,e,d,h;j.id=this.id+"T"+this.numTraces;j.elementClass=JXG.OBJECT_CLASS_CURVE;this.numTraces++;j.points=this.points.slice(0);j.numberPoints=this.numberPoints;j.curveType=this.curveType;j.board={};j.board.unitX=this.board.unitX;j.board.unitY=this.board.unitY;j.board.zoomX=this.board.zoomX;j.board.zoomY=this.board.zoomY;j.board.stretchX=this.board.stretchX;j.board.stretchY=this.board.stretchY;j.board.origin=this.board.origin;j.board.canvasHeight=this.board.canvasHeight;j.board.canvasWidth=this.board.canvasWidth;j.board.dimension=this.board.dimension;j.board.options=this.board.options;j.visProp=this.visProp;JXG.clearVisPropOld(j);h=this.board.renderer.enhancedRendering;this.board.renderer.enhancedRendering=true;this.board.renderer.drawCurve(j);this.board.renderer.enhancedRendering=h;this.traces[j.id]=j.rendNode;delete j};JXG.createCurve=function(f,e,d){d=JXG.checkAttributes(d,{withLabel:JXG.readOption(f.options,"curve","withLabel"),layer:null});return new JXG.Curve(f,["x"].concat(e),d.id,d.name,d.withLabel,d.layer)};JXG.JSXGraph.registerElement("curve",JXG.createCurve);JXG.createFunctiongraph=function(g,e,d){var f=["x","x"].concat(e);d=JXG.checkAttributes(d,{withLabel:JXG.readOption(g.options,"curve","withLabel"),layer:null});d.curveType="functiongraph";return new JXG.Curve(g,f,d.id,d.name,d.withLabel,d.layer)};JXG.JSXGraph.registerElement("functiongraph",JXG.createFunctiongraph);JXG.createSpline=function(f,e,d){var g;d=JXG.checkAttributes(d,{withLabel:JXG.readOption(f.options,"curve","withLabel"),layer:null});g=function(){var k,h=[],l=[];var j=function(q,p){var n,m;if(!p){h=[];l=[];if(e.length==2&&JXG.isArray(e[0])&&JXG.isArray(e[1])&&e[0].length==e[1].length){for(n=0;n<e[0].length;n++){if(typeof e[0][n]=="function"){h.push(e[0][n]())}else{h.push(e[0][n])}if(typeof e[1][n]=="function"){l.push(e[1][n]())}else{l.push(e[1][n])}}}else{for(n=0;n<e.length;n++){if(JXG.isPoint(e[n])){h.push(e[n].X());l.push(e[n].Y())}else{if(JXG.isArray(e[n])&&e[n].length==2){for(n=0;n<e.length;n++){if(typeof e[n][0]=="function"){h.push(e[n][0]())}else{h.push(e[n][0])}if(typeof e[n][1]=="function"){l.push(e[n][1]())}else{l.push(e[n][1])}}}}}}k=JXG.Math.Numerics.splineDef(h,l)}return JXG.Math.Numerics.splineEval(q,h,l,k)};return j};return new JXG.Curve(f,["x","x",g()],d.id,d.name,d.withLabel,d.layer)};JXG.JSXGraph.registerElement("spline",JXG.createSpline);JXG.createRiemannsum=function(j,e,d){var m,h,k,g,l;d=JXG.checkAttributes(d,{withLabel:JXG.readOption(j.options,"curve","withLabel"),layer:null,fillOpacity:0.3,fillColor:"#ffff00",curveType:"plot"});k=e[0];m=JXG.createFunction(e[1],j,"");if(m==null){throw new Error("JSXGraph: JXG.createRiemannsum: argument '2' n has to be number or function.\nPossible parent types: [function,n:number|function,type,start:number|function,end:number|function]")}h=JXG.createFunction(e[2],j,"",false);if(h==null){throw new Error("JSXGraph: JXG.createRiemannsum: argument 3 'type' has to be string or function.\nPossible parent types: [function,n:number|function,type,start:number|function,end:number|function]")}g=["x",[0],[0]].concat(e.slice(3));l=new JXG.Curve(j,g,d.id,d.name,d.withLabel,d.layer);l.updateDataArray=function(){var f=JXG.Math.Numerics.riemann(k,m(),h(),this.minX(),this.maxX());this.dataX=f[0];this.dataY=f[1]};return l};JXG.JSXGraph.registerElement("riemannsum",JXG.createRiemannsum);JXG.createArc=function(j,f,d){var h,k,g,e;if(!(f=JXG.checkParents("arc",f,[[JXG.OBJECT_CLASS_POINT,JXG.OBJECT_CLASS_POINT,JXG.OBJECT_CLASS_POINT]]))){throw new Error("JSXGraph: Can't create Arc with parent types '"+(typeof f[0])+"' and '"+(typeof f[1])+"' and '"+(typeof f[2])+"'.\nPossible parent types: [point,point,point]")}k={withLabel:JXG.readOption(j.options,"elements","withLabel"),layer:JXG.readOption(j.options,"layer","arc"),useDirection:false,strokeWidth:JXG.readOption(j.options,"elements","strokeWidth")};e=j.options.arc;for(g in e){k[g]=e[g]}d=JXG.checkAttributes(d,k);h=j.create("curve",[[0],[0]],d);h.type=JXG.OBJECT_TYPE_ARC;h.midpoint=JXG.getReference(j,f[0]);h.point2=JXG.getReference(j,f[1]);h.point3=JXG.getReference(j,f[2]);h.midpoint.addChild(h);h.point2.addChild(h);h.point3.addChild(h);h.useDirection=d.useDirection;h.updateDataArray=function(){var D=this.point2,z=this.midpoint,w=this.point3,I,q,K,F,l=JXG.Math.Geometry.rad(D,z,w),G,E=Math.ceil(l/Math.PI*90)+1,J=l/E,s=z.X(),r=z.Y(),t,p,m,u,H;if(this.useDirection){m=f[1].coords.usrCoords;u=f[3].coords.usrCoords;H=f[2].coords.usrCoords;p=(m[1]-H[1])*(m[2]-u[2])-(m[2]-H[2])*(m[1]-u[1]);if(p<0){this.point2=f[1];this.point3=f[2]}else{this.point2=f[2];this.point3=f[1]}}this.dataX=[D.X()];this.dataY=[D.Y()];for(I=J,G=1;G<=E;G++,I+=J){q=Math.cos(I);K=Math.sin(I);F=[[1,0,0],[s*(1-q)+r*K,q,-K],[r*(1-q)-s*K,K,q]];t=JXG.Math.matVecMult(F,D.coords.usrCoords);this.dataX.push(t[1]/t[0]);this.dataY.push(t[2]/t[0])}};h.Radius=function(){return this.point2.Dist(this.midpoint)};h.getRadius=function(){return this.Radius()};h.hasPoint=function(l,u){var n=this.board.options.precision.hasPoint/(this.board.stretchX),t=new JXG.Coords(JXG.COORDS_BY_SCREEN,[l,u],this.board),p=this.Radius(),s=this.midpoint.coords.distance(JXG.COORDS_BY_USER,t),m=(Math.abs(s-p)<n),q;if(m){q=JXG.Math.Geometry.rad(this.point2,this.midpoint,t.usrCoords.slice(1));if(q>JXG.Math.Geometry.rad(this.point2,this.midpoint,this.point3)){m=false}}return m};h.hasPointSector=function(l,t){var s=new JXG.Coords(JXG.COORDS_BY_SCREEN,[l,t],this.board),n=this.Radius(),q=this.midpoint.coords.distance(JXG.COORDS_BY_USER,s),m=(q<n),p;if(m){p=JXG.Math.Geometry.rad(this.point2,this.midpoint,s.usrCoords.slice(1));if(p>JXG.Math.Geometry.rad(this.point2,this.midpoint,this.point3)){m=false}}return m};h.getTextAnchor=function(){return this.midpoint.coords};h.getLabelAnchor=function(){var n=JXG.Math.Geometry.rad(this.point2,this.midpoint,this.point3),w=10/(this.board.stretchX),u=10/(this.board.stretchY),s=this.point2.coords.usrCoords,l=this.midpoint.coords.usrCoords,m=s[1]-l[1],v=s[2]-l[2],t,q,p,r;if(this.label.content!=null){this.label.content.relativeCoords=new JXG.Coords(JXG.COORDS_BY_SCREEN,[0,0],this.board)}t=new JXG.Coords(JXG.COORDS_BY_USER,[l[1]+Math.cos(n*0.5)*m-Math.sin(n*0.5)*v,l[2]+Math.sin(n*0.5)*m+Math.cos(n*0.5)*v],this.board);q=t.usrCoords[1]-l[1];p=t.usrCoords[2]-l[2];r=Math.sqrt(q*q+p*p);q=q*(r+w)/r;p=p*(r+u)/r;return new JXG.Coords(JXG.COORDS_BY_USER,[l[1]+q,l[2]+p],this.board)};h.prepareUpdate().update();return h};JXG.JSXGraph.registerElement("arc",JXG.createArc);JXG.createSemicircle=function(g,e,d){var f,j,h="";d=JXG.checkAttributes(d,{});if(d.id!=null){h=d.id+"_mp"}if((JXG.isPoint(e[0]))&&(JXG.isPoint(e[1]))){j=g.create("midpoint",[e[0],e[1]],{id:h,withLabel:false,visible:false});f=g.create("arc",[j,e[1],e[0]],d)}else{throw new Error("JSXGraph: Can't create Semicircle with parent types '"+(typeof e[0])+"' and '"+(typeof e[1])+"'.\nPossible parent types: [point,point]")}return f};JXG.JSXGraph.registerElement("semicircle",JXG.createSemicircle);JXG.createCircumcircleArc=function(g,e,d){var f,j,h;d=JXG.checkAttributes(d,{withLabel:JXG.readOption(g.options,"arc","withLabel"),layer:null});if(d.id!=null){h=d.id+"_mp"}if((JXG.isPoint(e[0]))&&(JXG.isPoint(e[1]))&&(JXG.isPoint(e[2]))){j=g.create("circumcirclemidpoint",[e[0],e[1],e[2]],{id:h,withLabel:false,visible:false});d.useDirection=true;f=g.create("arc",[j,e[0],e[2],e[1]],d)}else{throw new Error("JSXGraph: create Circumcircle Arc with parent types '"+(typeof e[0])+"' and '"+(typeof e[1])+"' and '"+(typeof e[2])+"'.\nPossible parent types: [point,point,point]")}return f};JXG.JSXGraph.registerElement("circumcirclearc",JXG.createCircumcircleArc);JXG.createSector=function(j,f,d){var h,k,g,e;if(!(JXG.isPoint(f[0])&&JXG.isPoint(f[1])&&JXG.isPoint(f[2]))){throw new Error("JSXGraph: Can't create Sector with parent types '"+(typeof f[0])+"' and '"+(typeof f[1])+"' and '"+(typeof f[2])+"'.")}k={withLabel:JXG.readOption(j.options,"elements","withLabel"),layer:JXG.readOption(j.options,"layer","sector"),useDirection:false};k.strokeWidth=j.options.elements.strokeWidth;e=j.options.sector;for(g in e){k[g]=e[g]}d=JXG.checkAttributes(d,k);h=j.create("curve",[[0],[0]],d);h.type=JXG.OBJECT_TYPE_SECTOR;h.point1=JXG.getReference(j,f[0]);h.midpoint=h.point1;h.point2=JXG.getReference(j,f[1]);h.point3=JXG.getReference(j,f[2]);h.point1.addChild(h);h.point2.addChild(h);h.point3.addChild(h);h.useDirection=d.useDirection;h.updateDataArray=function(){var D=this.point2,z=this.point1,w=this.point3,I,q,K,F,l=JXG.Math.Geometry.rad(D,z,w),G,E=Math.ceil(l/Math.PI*90)+1,J=l/E,s=z.X(),r=z.Y(),t,p,m,u,H;if(this.useDirection){var p,m=f[1].coords.usrCoords,u=f[3].coords.usrCoords,H=f[2].coords.usrCoords;p=(m[1]-H[1])*(m[2]-u[2])-(m[2]-H[2])*(m[1]-u[1]);if(p<0){this.point2=f[1];this.point3=f[2]}else{this.point2=f[2];this.point3=f[1]}}this.dataX=[z.X(),D.X()];this.dataY=[z.Y(),D.Y()];for(I=J,G=1;G<=E;G++,I+=J){q=Math.cos(I);K=Math.sin(I);F=[[1,0,0],[s*(1-q)+r*K,q,-K],[r*(1-q)-s*K,K,q]];t=JXG.Math.matVecMult(F,D.coords.usrCoords);this.dataX.push(t[1]/t[0]);this.dataY.push(t[2]/t[0])}this.dataX.push(z.X());this.dataY.push(z.Y())};h.Radius=function(){return this.point2.Dist(this.point1)};h.getRadius=function(){return this.Radius()};h.hasPointSector=function(l,t){var s=new JXG.Coords(JXG.COORDS_BY_SCREEN,[l,t],this.board),n=this.Radius(),q=this.point1.coords.distance(JXG.COORDS_BY_USER,s),m=(q<n),p;if(m){p=JXG.Math.Geometry.rad(this.point2,this.point1,s.usrCoords.slice(1));if(p>JXG.Math.Geometry.rad(this.point2,this.point1,this.point3)){m=false}}return m};h.getTextAnchor=function(){return this.point1.coords};h.getLabelAnchor=function(){var n=JXG.Math.Geometry.rad(this.point2,this.point1,this.point3),w=10/(this.board.stretchX),u=10/(this.board.stretchY),s=this.point2.coords.usrCoords,l=this.point1.coords.usrCoords,m=s[1]-l[1],v=s[2]-l[2],t,q,p,r;if(this.label.content!=null){this.label.content.relativeCoords=new JXG.Coords(JXG.COORDS_BY_SCREEN,[0,0],this.board)}t=new JXG.Coords(JXG.COORDS_BY_USER,[l[1]+Math.cos(n*0.5)*m-Math.sin(n*0.5)*v,l[2]+Math.sin(n*0.5)*m+Math.cos(n*0.5)*v],this.board);q=t.usrCoords[1]-l[1];p=t.usrCoords[2]-l[2];r=Math.sqrt(q*q+p*p);q=q*(r+w)/r;p=p*(r+u)/r;return new JXG.Coords(JXG.COORDS_BY_USER,[l[1]+q,l[2]+p],this.board)};h.prepareUpdate().update();return h};JXG.JSXGraph.registerElement("sector",JXG.createSector);JXG.createCircumcircleSector=function(h,e,d){var g,k,j="",f;d=JXG.checkAttributes(d,{withLabel:JXG.readOption(h.options,"sector","withLabel"),layer:null});if(d.id!=null){j=d.id+"_mp"}if((JXG.isPoint(e[0]))&&(JXG.isPoint(e[1]))&&(JXG.isPoint(e[2]))){k=h.create("circumcirclemidpoint",[e[0],e[1],e[2]],{id:j,withLabel:false,visible:false});d.useDirection=true;g=h.create("sector",[k,e[0],e[2],e[1]],d)}else{throw new Error("JSXGraph: Can't create circumcircle sector with parent types '"+(typeof e[0])+"' and '"+(typeof e[1])+"' and '"+(typeof e[2])+"'.")}return g};JXG.JSXGraph.registerElement("circumcirclesector",JXG.createCircumcircleSector);JXG.createAngle=function(n,s,k){var e,d,g,y,u,v,r=["α","β","γ","δ","ε","ζ","&eta","θ","ι","κ","λ","μ","ν","ξ","ο","π","ρ","ς","σ","τ","υ","φ","χ","ψ","ω"],m=0,l,h,q,f,t,w;g={withLabel:JXG.readOption(n.options,"elements","withLabel"),layer:JXG.readOption(n.options,"layer","angle"),radius:JXG.readOption(n.options,"angle","radius"),text:""};y=n.options.angle;for(u in y){g[u]=y[u]}k=JXG.checkAttributes(k,g);if((JXG.isPoint(s[0]))&&(JXG.isPoint(s[1]))&&(JXG.isPoint(s[2]))){v=k.text;if(v==""){while(m<r.length){h=m;q=r[m];for(e in n.objects){if(n.objects[e].type==JXG.OBJECT_TYPE_ANGLE){if(n.objects[e].text==q){m++;break}}}if(m==h){v=q;m=r.length+1}}if(m==r.length){f="α_{";t="}";w=false;h=0;while(!w){for(e in n.objects){if(n.objects[e].type==JXG.OBJECT_TYPE_ANGLE){if(n.objects[e].text==(f+h+t)){w=true;break}}}if(w){w=false}else{w=true;v=(f+h+t)}}}}d=n.create("point",[function(){var j=s[0],z=s[1],p=k.radius,x=z.Dist(j);return[z.X()+(j.X()-z.X())*p/x,z.Y()+(j.Y()-z.Y())*p/x]}],{withLabel:false,visible:false});for(m=0;m<3;m++){JXG.getReference(n,s[m]).addChild(d)}e=n.create("sector",[s[1],d,s[2]],k);e.type=JXG.OBJECT_TYPE_ANGLE;if(e.withLabel){e.label.content.setText(v)}JXG.getReference(n,s[0]).addChild(e);e.getLabelAnchor=function(){var x=JXG.Math.Geometry.rad(this.point2,this.point1,this.point3),G=10/(this.board.stretchX),E=10/(this.board.stretchY),C=this.point2.coords.usrCoords,j=this.point1.coords.usrCoords,p=C[1]-j[1],F=C[2]-j[2],D,A,z,B;if(this.label.content!=null){this.label.content.relativeCoords=new JXG.Coords(JXG.COORDS_BY_SCREEN,[0,0],this.board)}D=new JXG.Coords(JXG.COORDS_BY_USER,[j[1]+Math.cos(x*0.5*1.125)*p-Math.sin(x*0.5*1.125)*F,j[2]+Math.sin(x*0.5*1.125)*p+Math.cos(x*0.5*1.125)*F],this.board);A=D.usrCoords[1]-j[1];z=D.usrCoords[2]-j[2];B=Math.sqrt(A*A+z*z);A=A*(B+G)/B;z=z*(B+E)/B;return new JXG.Coords(JXG.COORDS_BY_USER,[j[1]+A,j[2]+z],this.board)}}else{throw new Error("JSXGraph: Can't create angle with parent types '"+(typeof s[0])+"' and '"+(typeof s[1])+"' and '"+(typeof s[2])+"'.")}return e};JXG.JSXGraph.registerElement("angle",JXG.createAngle);JXG.Algebra=function(d){this.board=d;this.eps=JXG.Math.eps};JXG.Algebra.prototype.angle=function(d,f,e){return JXG.Math.Geometry.angle(d,f,e)};JXG.Algebra.prototype.trueAngle=function(d,f,e){return this.rad(d,f,e)*57.29577951308232};JXG.Algebra.prototype.rad=function(d,f,e){return JXG.Math.Geometry.rad(d,f,e)};JXG.Algebra.prototype.angleBisector=function(d,f,e){return JXG.Math.Geometry.angleBisector(d,f,e,this.board)};JXG.Algebra.prototype.reflection=function(e,d){return JXG.Math.Geometry.reflection(e,d,this.board)};JXG.Algebra.prototype.rotation=function(e,d,f){return JXG.Math.Geometry.rotation(e,d,f,this.board)};JXG.Algebra.prototype.perpendicular=function(e,d){return JXG.Math.Geometry.perpendicular(e,d,this.board)};JXG.Algebra.prototype.circumcenterMidpoint=function(f,e,d){return JXG.Math.Geometry.circumcenterMidpoint(f,e,d,this.board)};JXG.Algebra.prototype.intersectLineLine=function(e,d){return JXG.Math.Geometry.intersectLineLine(e,d,this.board)};JXG.Algebra.prototype.intersectCircleLine=function(e,d){return JXG.Math.Geometry.intersectCircleLine(e,d,this.board)};JXG.Algebra.prototype.intersectCircleCircle=function(e,d){return JXG.Math.Geometry.intersectCircleCircle(e,d,this.board)};JXG.Algebra.prototype.projectPointToCircle=function(d,e){return JXG.Math.Geometry.projectPointToCircle(d,e,this.board)};JXG.Algebra.prototype.projectPointToLine=function(d,e){return JXG.Math.Geometry.projectPointToLine(d,e,this.board)};JXG.Algebra.prototype.projectPointToCurve=function(d,e){return JXG.Math.Geometry.projectPointToCurve(d,e,this.board)};JXG.Algebra.prototype.projectCoordsToCurve=function(d,g,e,f){return JXG.Math.Geometry.projectCoordsToCurve(d,g,e,f,this.board)};JXG.Algebra.prototype.projectPointToTurtle=function(d,e){return JXG.Math.Geometry.projectPointToTurtle(d,e,this.board)};JXG.Algebra.prototype.replacePow=function(d){return JXG.GeonextParser.replacePow(d)};JXG.Algebra.prototype.replaceIf=function(d){return JXG.GeonextParser.replaceIf(d)};JXG.Algebra.prototype.replaceSub=function(d){return JXG.GeonextParser.replaceSub(d)};JXG.Algebra.prototype.replaceSup=function(d){return JXG.GeonextParser.replaceSup(d)};JXG.Algebra.prototype.replaceNameById=function(d){return JXG.GeonextParser.replaceNameById(d,this.board)};JXG.Algebra.prototype.replaceIdByObj=function(d){return JXG.GeonextParser.replaceIdByObj(d)};JXG.Algebra.prototype.geonext2JS=function(d){return JXG.GeonextParser.geonext2JS(d,this.board)};JXG.Algebra.prototype.findDependencies=function(e,d){JXG.GeonextParser.findDependencies(e,d,this.board)};JXG.Algebra.prototype.distance=function(e,d){return JXG.Math.Geometry.distance(e,d)};JXG.Algebra.prototype.affineDistance=function(e,d){return JXG.Math.Geometry.affineDistance(e,d)};JXG.Algebra.prototype.pow=function(e,d){return JXG.Math.pow(e,d)};JXG.Algebra.prototype.meet=function(f,d,e){return JXG.Math.Geometry.meet(f,d,e,this.board)};JXG.Algebra.prototype.meetLineLine=function(e,d,f){return JXG.Math.Geometry.meetLineLine(e,d,f,this.board)};JXG.Algebra.prototype.meetLineCircle=function(f,e,d){return JXG.Math.Geometry.meetLineCircle(f,e,d,this.board)};JXG.Algebra.prototype.meetCircleCircle=function(f,d,e){return JXG.Math.Geometry.meetCircleCircle(f,d,e,this.board)};JXG.Algebra.prototype.normalize=function(d){return JXG.Math.normalize(d)};JXG.Algebra.prototype.meetCurveCurve=function(f,e,d,g){return JXG.Math.Geometry.meetCurveCurve(f,e,d,g,this.board)};JXG.Algebra.prototype.meetCurveLine=function(e,d,f){return JXG.Math.Geometry.meetCurveLine(e,d,f,this.board)};JXG.Intersection=function(h,e,g,f,k,j,p,n){this.constructor();this.board=h;this.id=e;this.name=this.id;this.visProp={};this.visProp.visible=true;this.show=true;this.real=true;this.notExistingParents={};this.intersect1=JXG.getReference(this.board,g);this.intersect2=JXG.getReference(this.board,f);this.type=JXG.OBJECT_TYPE_INTERSECTION;if(((this.intersect1=="")||(!JXG.exists(this.intersect1)))&&((this.intersect2=="")||(!JXG.exists(this.intersect2)))){return}if(((this.intersect1.type==this.intersect2.type)&&(this.intersect1.type==JXG.OBJECT_TYPE_LINE||this.intersect1.type==JXG.OBJECT_TYPE_ARROW))||((this.intersect1.type==JXG.OBJECT_TYPE_LINE)&&(this.intersect2.type==JXG.OBJECT_TYPE_ARROW))||((this.intersect2.type==JXG.OBJECT_TYPE_LINE)&&(this.intersect1.type==JXG.OBJECT_TYPE_ARROW))){var l=JXG.Math.Geometry.intersectLineLine(this.intersect1,this.intersect2,this.board).usrCoords.slice(1);this.p=new JXG.Point(this.board,l,k,p,true);this.p.fixed=true;this.addChild(this.p);this.real=true;this.update=function(){if(this.needsUpdate){this.p.coords=JXG.Math.Geometry.intersectLineLine(this.intersect1,this.intersect2,this.board);this.needsUpdate=false}};this.hideElement=function(){this.visProp.visible=false;this.p.hideElement()};this.showElement=function(){this.visProp.visible=true;this.p.showElement()};this.hideChild=function(r){this.notExistingParents[r]=this.board.objects[r];for(var q in this.descendants){if(this.descendants[q].visProp.visible&&this.descendants[q].type!=JXG.OBJECT_TYPE_INTERSECTION){if(this.descendants[q].type!=JXG.OBJECT_TYPE_TEXT){this.descendants[q].hideElement();this.descendants[q].visProp.visible=true}else{if(!this.descendants[q].isLabel){this.descendants[q].hideElement();this.descendants[q].visProp.visible=true}}}this.descendants[q].notExistingParents[r]=this.board.objects[r]}};this.showChild=function(r){for(var q in this.board.objects){delete (this.board.objects[q].notExistingParents[r]);if(this.board.objects[q].visProp.visible&&JXG.keys(this.board.objects[q].notExistingParents).length==0){if(this.board.objects[q].type!=JXG.OBJECT_TYPE_INTERSECTION){this.board.objects[q].showElement()}}}}}else{if(((g.type==f.type)&&(g.type==JXG.OBJECT_TYPE_CIRCLE||g.type==JXG.OBJECT_TYPE_ARC))||(g.type==JXG.OBJECT_TYPE_CIRCLE&&f.type==JXG.OBJECT_TYPE_ARC)||(f.type==JXG.OBJECT_TYPE_CIRCLE&&g.type==JXG.OBJECT_TYPE_ARC)){this.p1=new JXG.Point(this.board,[0,0],k,p,false);this.p1.fixed=true;this.p1.label.content.visProp.visible=true;this.p2=new JXG.Point(this.board,[0,0],j,n,false);this.p2.fixed=true;this.p2.label.content.visProp.visible=true;this.addChild(this.p1);this.addChild(this.p2);var m=JXG.Math.Geometry.intersectCircleCircle(this.intersect1,this.intersect2,this.board);if(m[0]==1){this.p1.coords=m[1];this.p1.showElement();this.p1.updateRenderer();this.p2.coords=m[2];this.p2.showElement();this.p2.updateRenderer();this.real=true}else{this.real=false}this.update=function(){if(!this.needsUpdate){return}var s=JXG.Math.Geometry.intersectCircleCircle(this.intersect1,this.intersect2,this.board);var r=this.p1.visProp.visible;var q=this.p2.visProp.visible;if(s[0]==0){if(this.real){this.hideChild(this.id);this.p1.visProp.visible=r;this.p2.visProp.visible=q;this.real=false}}else{this.p1.coords=s[1];this.p2.coords=s[2];if(!this.real){this.showChild(this.id);this.real=true}}this.needsUpdate=false};this.hideElement=function(){this.visProp.visible=false;this.p1.hideElement();this.p2.hideElement()};this.showElement=function(){this.visProp.visible=true;this.p1.showElement();this.p2.showElement()};this.hideChild=function(r){this.notExistingParents[r]=this.board.objects[r];for(var q in this.descendants){if(this.descendants[q].visProp.visible&&this.descendants[q].type!=JXG.OBJECT_TYPE_INTERSECTION){if(this.descendants[q].type!=JXG.OBJECT_TYPE_TEXT){this.descendants[q].hideElement();this.descendants[q].visProp.visible=true}else{if(!this.descendants[q].isLabel){this.descendants[q].hideElement();this.descendants[q].visProp.visible=true}}}this.descendants[q].notExistingParents[r]=this.board.objects[r]}};this.showChild=function(r){var q;for(q in this.board.objects){delete (this.board.objects[q].notExistingParents[r]);if(this.board.objects[q].visProp.visible&&JXG.keys(this.board.objects[q].notExistingParents).length==0){if(this.board.objects[q].type!=JXG.OBJECT_TYPE_INTERSECTION){this.board.objects[q].showElement()}}}}}else{this.p1=new JXG.Point(this.board,[0,0],k,p,false);this.p1.fixed=true;this.p1.label.content.visProp.visible=true;this.p2=new JXG.Point(this.board,[0,0],j,n,false);this.p2.fixed=true;this.p2.label.content.visProp.visible=true;this.addChild(this.p1);this.addChild(this.p2);if(this.intersect1.type==JXG.OBJECT_TYPE_LINE||this.intersect1.type==JXG.OBJECT_TYPE_ARROW){var d=this.intersect1;this.intersect1=this.intersect2;this.intersect2=d}var m=JXG.Math.Geometry.intersectCircleLine(this.intersect1,this.intersect2,this.board);if(m[0]==1){this.p1.coords=m[1];this.p1.showElement();this.p1.update()}else{if(m[0]==2){this.p1.coords=m[1];this.p1.showElement();this.p2.coords=m[2];this.p2.showElement();this.p1.updateRenderer();this.p2.updateRenderer();this.real=true}else{this.real=false}}this.update=function(){if(!this.needsUpdate){return}var s=JXG.Math.Geometry.intersectCircleLine(this.intersect1,this.intersect2,this.board);var r=this.p1.visProp.visible;var q=this.p2.visProp.visible;if(s[0]==0){if(this.real){this.hideChild(this.id);this.p1.visProp.visible=r;this.p2.visProp.visible=q;this.real=false}}else{if(s[0]==2){this.p1.coords=s[1];this.p2.coords=s[2];if(!this.real){this.showChild(this.id);this.real=true}}}this.needsUpdate=false};this.hideElement=function(){this.visProp.visible=false;this.p1.hideElement();this.p2.hideElement()};this.showElement=function(){this.visProp.visible=true;this.p1.showElement();this.p2.showElement()};this.hideChild=function(r){this.notExistingParents[r]=this.board.objects[r];for(var q in this.descendants){if(this.descendants[q].visProp.visible&&this.descendants[q].type!=JXG.OBJECT_TYPE_INTERSECTION){if(this.descendants[q].type!=JXG.OBJECT_TYPE_TEXT){this.descendants[q].hideElement();this.descendants[q].visProp.visible=true}else{if(!this.descendants[q].isLabel){this.descendants[q].hideElement();this.descendants[q].visProp.visible=true}}}this.descendants[q].notExistingParents[r]=this.board.objects[r]}};this.showChild=function(r){var q;for(q in this.board.objects){delete (this.board.objects[q].notExistingParents[r]);if(this.board.objects[q].visProp.visible&&JXG.keys(this.board.objects[q].notExistingParents).length==0){if(this.board.objects[q].type!=JXG.OBJECT_TYPE_INTERSECTION){this.board.objects[q].showElement()}}}}}}this.id=this.board.setId(this,"I");this.intersect1.addChild(this);this.intersect2.addChild(this)};JXG.Intersection.prototype=new JXG.GeometryElement();JXG.Intersection.prototype.update=function(){};JXG.Intersection.prototype.hasPoint=function(d,e){};JXG.Intersection.prototype.hideChild=function(d){};JXG.Intersection.prototype.showChild=function(d){};JXG.Intersection.prototype.remove=function(){if(JXG.exists(this.p)){this.board.removeObject(this.p)}if(JXG.exists(this.p1)){this.board.removeObject(this.p1)}if(JXG.exists(this.p2)){this.board.removeObject(this.p2)}};JXG.Intersection.prototype.updateRenderer=function(){};JXG.createPerpendicularPoint=function(f,j,h){var d,g,e;if(JXG.isPoint(j[0])&&j[1].type==JXG.OBJECT_TYPE_LINE){g=j[0];d=j[1]}else{if(JXG.isPoint(j[1])&&j[0].type==JXG.OBJECT_TYPE_LINE){g=j[1];d=j[0]}else{throw new Error("JSXGraph: Can't create perpendicular point with parent types '"+(typeof j[0])+"' and '"+(typeof j[1])+"'.\nPossible parent types: [point,line]")}}e=JXG.createPoint(f,[function(){return JXG.Math.Geometry.perpendicular(d,g,f)[0]}],{fixed:true,name:h.name,id:h.id});g.addChild(e);d.addChild(e);e.update();e.generatePolynomial=function(){var l=d.point1.symbolic.x;var k=d.point1.symbolic.y;var s=d.point2.symbolic.x;var r=d.point2.symbolic.y;var u=g.symbolic.x;var t=g.symbolic.y;var p=e.symbolic.x;var m=e.symbolic.y;var q="("+k+")*("+p+")-("+k+")*("+s+")+("+m+")*("+s+")-("+l+")*("+m+")+("+l+")*("+r+")-("+p+")*("+r+")";var n="("+t+")*("+k+")-("+t+")*("+r+")-("+m+")*("+k+")+("+m+")*("+r+")+("+u+")*("+l+")-("+u+")*("+s+")-("+p+")*("+l+")+("+p+")*("+s+")";return[q,n]};return e};JXG.createPerpendicular=function(h,m,k){var j,d,e,g,f;m[0]=JXG.getReference(h,m[0]);m[1]=JXG.getReference(h,m[1]);if(JXG.isPoint(m[0])&&m[1].elementClass==JXG.OBJECT_CLASS_LINE){d=m[1];j=m[0]}else{if(JXG.isPoint(m[1])&&m[0].elementClass==JXG.OBJECT_CLASS_LINE){d=m[0];j=m[1]}else{throw new Error("JSXGraph: Can't create perpendicular with parent types '"+(typeof m[0])+"' and '"+(typeof m[1])+"'.\nPossible parent types: [line,point]")}}if(!JXG.isArray(k.id)){k.id=["",""]}if(!JXG.isArray(k.name)){k.name=["",""]}g=JXG.createPerpendicularPoint(h,[d,j],{fixed:true,name:k.name[1],id:k.id[1],visible:false});e=JXG.createSegment(h,[function(){return(JXG.Math.Geometry.perpendicular(d,j,h)[1]?[g,j]:[j,g])}],{name:k.name[0],id:k.id[0]});f=[e,g];f.line=e;f.point=g;f.multipleElements=true;return f};JXG.createMidpoint=function(g,j,h){var e,d,f;if(j.length==2&&JXG.isPoint(j[0])&&JXG.isPoint(j[1])){e=j[0];d=j[1]}else{if(j.length==1&&j[0].elementClass==JXG.OBJECT_CLASS_LINE){e=j[0].point1;d=j[0].point2}else{throw new Error("JSXGraph: Can't create midpoint.\nPossible parent types: [point,point], [line]")}}if(h){h.fixed=true}else{h={fixed:true}}f=g.create("point",[function(){return(e.coords.usrCoords[1]+d.coords.usrCoords[1])/2},function(){return(e.coords.usrCoords[2]+d.coords.usrCoords[2])/2}],h);e.addChild(f);d.addChild(f);f.update();f.generatePolynomial=function(){var m=e.symbolic.x;var l=e.symbolic.y;var p=d.symbolic.x;var n=d.symbolic.y;var r=f.symbolic.x;var q=f.symbolic.y;var k="("+l+")*("+r+")-("+l+")*("+p+")+("+q+")*("+p+")-("+m+")*("+q+")+("+m+")*("+n+")-("+r+")*("+n+")";var s="("+m+")^2 - 2*("+m+")*("+r+")+("+l+")^2-2*("+l+")*("+q+")-("+p+")^2+2*("+p+")*("+r+")-("+n+")^2+2*("+n+")*("+q+")";return[k,s]};if(JXG.nullAtts){h=null}return f};JXG.createParallelPoint=function(f,k,j){var e,d,h,g;if(k.length==3&&k[0].elementClass==JXG.OBJECT_CLASS_POINT&&k[1].elementClass==JXG.OBJECT_CLASS_POINT&&k[2].elementClass==JXG.OBJECT_CLASS_POINT){e=k[0];d=k[1];h=k[2]}else{if(k[0].elementClass==JXG.OBJECT_CLASS_POINT&&k[1].elementClass==JXG.OBJECT_CLASS_LINE){h=k[0];e=k[1].point1;d=k[1].point2}else{if(k[1].elementClass==JXG.OBJECT_CLASS_POINT&&k[0].elementClass==JXG.OBJECT_CLASS_LINE){h=k[1];e=k[0].point1;d=k[0].point2}else{throw new Error("JSXGraph: Can't create parallel point with parent types '"+(typeof k[0])+"', '"+(typeof k[1])+"' and '"+(typeof k[2])+"'.\nPossible parent types: [line,point], [point,point,point]")}}}g=f.create("point",[function(){return h.coords.usrCoords[1]+d.coords.usrCoords[1]-e.coords.usrCoords[1]},function(){return h.coords.usrCoords[2]+d.coords.usrCoords[2]-e.coords.usrCoords[2]}],j);e.addChild(g);d.addChild(g);h.addChild(g);g.update();g.generatePolynomial=function(){var m=e.symbolic.x;var l=e.symbolic.y;var v=d.symbolic.x;var u=d.symbolic.y;var p=h.symbolic.x;var n=h.symbolic.y;var s=g.symbolic.x;var q=g.symbolic.y;var t="("+u+")*("+s+")-("+u+")*("+p+")-("+l+")*("+s+")+("+l+")*("+p+")-("+q+")*("+v+")+("+q+")*("+m+")+("+n+")*("+v+")-("+n+")*("+m+")";var r="("+q+")*("+m+")-("+q+")*("+p+")-("+u+")*("+m+")+("+u+")*("+p+")-("+s+")*("+l+")+("+s+")*("+n+")+("+v+")*("+l+")-("+v+")*("+n+")";return[t,r]};return g};JXG.createParallel=function(h,f,m){var l,d,g,j;j={name:null,id:null,fixed:true,visible:false};if(JXG.isArray(m.name)&&m.name.length==2){j.name=m.name[1];m.name=m.name[0]}else{j.name=m.name+"p2"}if(JXG.isArray(m.id)&&m.id.length==2){j.id=m.id[1];m.id=m.id[0]}else{if(JXG.exists(m.id)){j.id=m.id+"p2"}}try{d=JXG.createParallelPoint(h,f,j)}catch(k){throw new Error("JSXGraph: Can't create parallel with parent types '"+(typeof f[0])+"' and '"+(typeof f[1])+"'.\nPossible parent types: [line,point], [point,point,point]")}l=null;if(f.length==3){l=f[2]}else{if(f[0].elementClass==JXG.OBJECT_CLASS_POINT){l=f[0]}else{if(f[1].elementClass==JXG.OBJECT_CLASS_POINT){l=f[1]}}}g=h.create("line",[l,d],m);return g};JXG.createArrowParallel=function(g,f,k){var d,h;try{d=JXG.createParallel(g,f,k)}catch(j){throw new Error("JSXGraph: Can't create arrowparallel with parent types '"+(typeof f[0])+"' and '"+(typeof f[1])+"'.\nPossible parent types: [line,point], [point,point,point]")}d.setStraight(false,false);d.setArrow(false,true);return d};JXG.createNormal=function(h,e,d){var l;var m;if(e.length==1){l=e[0];m=l.slideObject}else{if(e.length==2){if(JXG.isPoint(e[0])){l=e[0];m=e[1]}else{if(JXG.isPoint(e[1])){m=e[0];l=e[1]}else{throw new Error("JSXGraph: Can't create normal with parent types '"+(typeof e[0])+"' and '"+(typeof e[1])+"'.\nPossible parent types: [point,line], [point,circle], [glider]")}}}else{throw new Error("JSXGraph: Can't create normal with parent types '"+(typeof e[0])+"' and '"+(typeof e[1])+"'.\nPossible parent types: [point,line], [point,circle], [glider]")}}if(m.elementClass==JXG.OBJECT_CLASS_LINE){return h.create("line",[function(){return m.stdform[1]*l.Y()-m.stdform[2]*l.X()},function(){return m.stdform[2]*l.Z()},function(){return -m.stdform[1]*l.Z()}],d)}else{if(m.elementClass==JXG.OBJECT_CLASS_CIRCLE){return h.create("line",[m.midpoint,l],d)}else{if(m.elementClass==JXG.OBJECT_CLASS_CURVE){if(m.curveType!="plot"){var j=m.X;var k=m.Y;return h.create("line",[function(){return -l.X()*h.D(j)(l.position)-l.Y()*h.D(k)(l.position)},function(){return h.D(j)(l.position)},function(){return h.D(k)(l.position)}],d)}else{return h.create("line",[function(){var g=Math.floor(l.position);var f=l.position-g;if(g==m.numberPoints-1){g--;f=1}if(g<0){return 1}return(m.Y(g)+f*(m.Y(g+1)-m.Y(g)))*(m.Y(g)-m.Y(g+1))-(m.X(g)+f*(m.X(g+1)-m.X(g)))*(m.X(g+1)-m.X(g))},function(){var f=Math.floor(l.position);if(f==m.numberPoints-1){f--}if(f<0){return 0}return m.X(f+1)-m.X(f)},function(){var f=Math.floor(l.position);if(f==m.numberPoints-1){f--}if(f<0){return 0}return m.Y(f+1)-m.Y(f)}],d)}}else{if(m.type==JXG.OBJECT_TYPE_TURTLE){return h.create("line",[function(){var n=Math.floor(l.position);var f=l.position-n;var p,g;for(g=0;g<m.objects.length;g++){p=m.objects[g];if(p.type==JXG.OBJECT_TYPE_CURVE){if(n<p.numberPoints){break}n-=p.numberPoints}}if(n==p.numberPoints-1){n--;f=1}if(n<0){return 1}return(p.Y(n)+f*(p.Y(n+1)-p.Y(n)))*(p.Y(n)-p.Y(n+1))-(p.X(n)+f*(p.X(n+1)-p.X(n)))*(p.X(n+1)-p.X(n))},function(){var g=Math.floor(l.position);var n,f;for(f=0;f<m.objects.length;f++){n=m.objects[f];if(n.type==JXG.OBJECT_TYPE_CURVE){if(g<n.numberPoints){break}g-=n.numberPoints}}if(g==n.numberPoints-1){g--}if(g<0){return 0}return n.X(g+1)-n.X(g)},function(){var g=Math.floor(l.position);var n,f;for(f=0;f<m.objects.length;f++){n=m.objects[f];if(n.type==JXG.OBJECT_TYPE_CURVE){if(g<n.numberPoints){break}g-=n.numberPoints}}if(g==n.numberPoints-1){g--}if(g<0){return 0}return n.Y(g+1)-n.Y(g)}],d)}else{throw new Error("JSXGraph: Can't create normal with parent types '"+(typeof e[0])+"' and '"+(typeof e[1])+"'.\nPossible parent types: [point,line], [point,circle], [glider]")}}}}};JXG.createBisector=function(f,k,j){var h,d,g,e;if(k[0].elementClass==JXG.OBJECT_CLASS_POINT&&k[1].elementClass==JXG.OBJECT_CLASS_POINT&&k[2].elementClass==JXG.OBJECT_CLASS_POINT){g={name:"",id:null,fixed:true,visible:false};if(j){g=JXG.cloneAndCopy(j,g)}h=f.create("point",[function(){return JXG.Math.Geometry.angleBisector(k[0],k[1],k[2],f)}],g);for(e=0;e<3;e++){k[e].addChild(h)}if(typeof j.straightFirst=="undefined"){j.straightFirst=false}if(typeof j.straightLast=="undefined"){j.straightLast=true}d=JXG.createLine(f,[k[1],h],j);return d}else{throw new Error("JSXGraph: Can't create angle bisector with parent types '"+(typeof k[0])+"' and '"+(typeof k[1])+"'.\nPossible parent types: [point,point,point]")}};JXG.createAngularBisectorsOfTwoLines=function(k,m,g){var f=JXG.getReference(k,m[0]),e=JXG.getReference(k,m[1]),p="",n="",l="",h="",j;if(f.elementClass!=JXG.OBJECT_CLASS_LINE||e.elementClass!=JXG.OBJECT_CLASS_LINE){throw new Error("JSXGraph: Can't create angle bisectors of two lines with parent types '"+(typeof m[0])+"' and '"+(typeof m[1])+"'.\nPossible parent types: [line,line]")}g=JXG.checkAttributes(g,{});if(g.id!=null){if(JXG.isArray(g.id)){p=g.id[0];n=g.id[1]}else{p=g.id;n=g.id}}if(g.name!=null){if(JXG.isArray(g.name)){l=g.name[0];h=g.name[1]}else{l=g.name;h=g.name}}g.id=p;g.name=l;var d=k.create("line",[function(){var s=Math.sqrt(f.stdform[1]*f.stdform[1]+f.stdform[2]*f.stdform[2]);var r=Math.sqrt(e.stdform[1]*e.stdform[1]+e.stdform[2]*e.stdform[2]);return f.stdform[0]/s-e.stdform[0]/r},function(){var s=Math.sqrt(f.stdform[1]*f.stdform[1]+f.stdform[2]*f.stdform[2]);var r=Math.sqrt(e.stdform[1]*e.stdform[1]+e.stdform[2]*e.stdform[2]);return f.stdform[1]/s-e.stdform[1]/r},function(){var s=Math.sqrt(f.stdform[1]*f.stdform[1]+f.stdform[2]*f.stdform[2]);var r=Math.sqrt(e.stdform[1]*e.stdform[1]+e.stdform[2]*e.stdform[2]);return f.stdform[2]/s-e.stdform[2]/r}],g);g.id=n;g.name=h;var q=k.create("line",[function(){var s=Math.sqrt(f.stdform[1]*f.stdform[1]+f.stdform[2]*f.stdform[2]);var r=Math.sqrt(e.stdform[1]*e.stdform[1]+e.stdform[2]*e.stdform[2]);return f.stdform[0]/s+e.stdform[0]/r},function(){var s=Math.sqrt(f.stdform[1]*f.stdform[1]+f.stdform[2]*f.stdform[2]);var r=Math.sqrt(e.stdform[1]*e.stdform[1]+e.stdform[2]*e.stdform[2]);return f.stdform[1]/s+e.stdform[1]/r},function(){var s=Math.sqrt(f.stdform[1]*f.stdform[1]+f.stdform[2]*f.stdform[2]);var r=Math.sqrt(e.stdform[1]*e.stdform[1]+e.stdform[2]*e.stdform[2]);return f.stdform[2]/s+e.stdform[2]/r}],g);j=[d,q];j.lines=[d,q];j.line1=d;j.line2=q;j.multipleElements=true;return j};JXG.createCircumcircleMidpoint=function(f,d,h){var g,e;if(d[0].elementClass==JXG.OBJECT_CLASS_POINT&&d[1].elementClass==JXG.OBJECT_CLASS_POINT&&d[2].elementClass==JXG.OBJECT_CLASS_POINT){h.fixed=h.fixed||true;g=JXG.createPoint(f,[function(){return JXG.Math.Geometry.circumcenterMidpoint(d[0],d[1],d[2],f)}],h);for(e=0;e<3;e++){d[e].addChild(g)}g.generatePolynomial=function(){var k=a.symbolic.x;var j=a.symbolic.y;var t=b.symbolic.x;var s=b.symbolic.y;var m=c.symbolic.x;var l=c.symbolic.y;var q=g.symbolic.x;var n=g.symbolic.y;var r=["((",q,")-(",k,"))^2+((",n,")-(",j,"))^2-((",q,")-(",t,"))^2-((",n,")-(",s,"))^2"].join("");var p=["((",q,")-(",k,"))^2+((",n,")-(",j,"))^2-((",q,")-(",m,"))^2-((",n,")-(",l,"))^2"].join("");return[r,p]};return g}else{throw new Error("JSXGraph: Can't create circumcircle midpoint with parent types '"+(typeof d[0])+"', '"+(typeof d[1])+"' and '"+(typeof d[2])+"'.\nPossible parent types: [point,point,point]")}};JXG.createIncenter=function(j,m,h){var f,l,k,g,e,d;if(m.length>=3&&JXG.isPoint(m[0])&&JXG.isPoint(m[1])&&JXG.isPoint(m[2])){g=m[0];e=m[1];d=m[2];f=j.create("point",[function(){var p,n,q;p=Math.sqrt((e.X()-d.X())*(e.X()-d.X())+(e.Y()-d.Y())*(e.Y()-d.Y()));n=Math.sqrt((g.X()-d.X())*(g.X()-d.X())+(g.Y()-d.Y())*(g.Y()-d.Y()));q=Math.sqrt((e.X()-g.X())*(e.X()-g.X())+(e.Y()-g.Y())*(e.Y()-g.Y()));return new JXG.Coords(JXG.COORDS_BY_USER,[(p*g.X()+n*e.X()+q*d.X())/(p+n+q),(p*g.Y()+n*e.Y()+q*d.Y())/(p+n+q)],j)}],h)}else{throw new Error("JSXGraph: Can't create incenter with parent types '"+(typeof m[0])+"', '"+(typeof m[1])+"' and '"+(typeof m[2])+"'.\nPossible parent types: [point,point,point]")}return f};JXG.createCircumcircle=function(f,m,l){var j,k,g,d;g=JXG.clone(l);if(l.name&&JXG.isArray(l.name)){g.name=l.name[0];l.name=l.name[1]}if(l.id&&JXG.isArray(l.id)){g.id=l.id[0];l.id=l.id[1]}try{j=JXG.createCircumcircleMidpoint(f,m,g);k=JXG.createCircle(f,[j,m[0]],l)}catch(h){throw new Error("JSXGraph: Can't create circumcircle with parent types '"+(typeof m[0])+"', '"+(typeof m[1])+"' and '"+(typeof m[2])+"'.\nPossible parent types: [point,point,point]")}d=[j,k];d.point=j;d.circle=k;d.multipleElements=true;return d};JXG.createIncircle=function(g,f,m){var k,l,h,d;h=JXG.clone(m);if(m.name&&JXG.isArray(m.name)){h.name=m.name[0];m.name=m.name[1]}if(m.id&&JXG.isArray(m.id)){h.id=m.id[0];m.id=m.id[1]}try{k=JXG.createIncenter(g,f,h);l=JXG.createCircle(g,[k,function(){var n=Math.sqrt((f[1].X()-f[2].X())*(f[1].X()-f[2].X())+(f[1].Y()-f[2].Y())*(f[1].Y()-f[2].Y())),e=Math.sqrt((f[0].X()-f[2].X())*(f[0].X()-f[2].X())+(f[0].Y()-f[2].Y())*(f[0].Y()-f[2].Y())),q=Math.sqrt((f[1].X()-f[0].X())*(f[1].X()-f[0].X())+(f[1].Y()-f[0].Y())*(f[1].Y()-f[0].Y())),p=(n+e+q)/2;return Math.sqrt(((p-n)*(p-e)*(p-q))/p)}],m)}catch(j){throw new Error("JSXGraph: Can't create circumcircle with parent types '"+(typeof f[0])+"', '"+(typeof f[1])+"' and '"+(typeof f[2])+"'.\nPossible parent types: [point,point,point]")}d=[k,l];d.point=k;d.circle=l;d.multipleElements=true;return d};JXG.createReflection=function(e,j,h){var d,g,f;if(j[0].elementClass==JXG.OBJECT_CLASS_POINT&&j[1].elementClass==JXG.OBJECT_CLASS_LINE){g=j[0];d=j[1]}else{if(j[1].elementClass==JXG.OBJECT_CLASS_POINT&&j[0].elementClass==JXG.OBJECT_CLASS_LINE){g=j[1];d=j[0]}else{throw new Error("JSXGraph: Can't create reflection point with parent types '"+(typeof j[0])+"' and '"+(typeof j[1])+"'.\nPossible parent types: [line,point]")}}f=JXG.createPoint(e,[function(){return JXG.Math.Geometry.reflection(d,g,e)}],h);g.addChild(f);d.addChild(f);f.update();f.generatePolynomial=function(){var l=d.point1.symbolic.x;var k=d.point1.symbolic.y;var s=d.point2.symbolic.x;var r=d.point2.symbolic.y;var u=g.symbolic.x;var t=g.symbolic.y;var n=f.symbolic.x;var m=f.symbolic.y;var q=["((",m,")-(",t,"))*((",k,")-(",r,"))+((",l,")-(",s,"))*((",n,")-(",u,"))"].join("");var p=["((",n,")-(",l,"))^2+((",m,")-(",k,"))^2-((",u,")-(",l,"))^2-((",t,")-(",k,"))^2"].join("");return[q,p]};return f};JXG.createMirrorPoint=function(e,h,g){var f,d;if(JXG.isPoint(h[0])&&JXG.isPoint(h[1])){g.fixed=g.fixed||true;f=JXG.createPoint(e,[function(){return JXG.Math.Geometry.rotation(h[0],h[1],Math.PI,e)}],g);for(d=0;d<2;d++){h[d].addChild(f)}}else{throw new Error("JSXGraph: Can't create mirror point with parent types '"+(typeof h[0])+"' and '"+(typeof h[1])+"'.\nPossible parent types: [point,point]")}f.update();return f};JXG.createIntegral=function(j,z,n){var y,v,s={},g=0,f=0,e,d,m,l,u=1,x,q,h,A,k,r,w;if(!JXG.isArray(n.id)||(n.id.length!=5)){n.id=["","","","",""]}if(!JXG.isArray(n.name)||(n.name.length!=5)){n.name=["","","","",""]}if(JXG.isArray(z[0])&&z[1].elementClass==JXG.OBJECT_CLASS_CURVE){y=z[0];v=z[1]}else{if(JXG.isArray(z[1])&&z[0].elementClass==JXG.OBJECT_CLASS_CURVE){y=z[1];v=z[0]}else{throw new Error("JSXGraph: Can't create integral with parent types '"+(typeof z[0])+"' and '"+(typeof z[1])+"'.\nPossible parent types: [[number|function,number|function],curve]")}}if((typeof n!="undefined")&&(n!=null)){s=JXG.cloneAndCopy(n,{name:n.name[0],id:n.id[0]})}g=y[0];f=y[1];if(JXG.isFunction(g)){e=g;d=function(){return v.yterm(e())};g=e()}else{e=g;d=v.yterm(g)}if(JXG.isFunction(g)){m=f;l=function(){return v.yterm(m())};f=m()}else{m=f;l=v.yterm(f)}if(f<g){u=-1}x=j.create("glider",[e,d,v],s);if(JXG.isFunction(e)){x.hideElement()}s.name=n.name[1];s.id=n.id[1];s.visible=false;q=j.create("point",[function(){return x.X()},0],s);s.name=n.name[2];s.id=n.id[2];s.visible=n.visible||true;h=j.create("glider",[m,l,v],s);if(JXG.isFunction(m)){h.hideElement()}s.name=n.name[3];s.id=n.id[3];s.visible=false;A=j.create("point",[function(){return h.X()},0],s);if(n.withLabel!==false){k=JXG.Math.Numerics.I([g,f],v.yterm);r=j.create("text",[function(){return h.X()+0.2},function(){return h.Y()-0.8},function(){var p=JXG.Math.Numerics.I([q.X(),A.X()],v.yterm);return"∫ = "+(p).toFixed(4)}],{labelColor:n.labelColor});x.addChild(r);h.addChild(r)}s.name=n.name[4];s.id=n.id[4];s.visible=n.visible||true;s.fillColor=s.fillColor||j.options.polygon.fillColor;s.highlightFillColor=s.highlightFillColor||j.options.polygon.highlightFillColor;s.fillOpacity=s.fillOpacity||j.options.polygon.fillOpacity;s.highlightFillOpacity=s.highlightFillOpacity||j.options.polygon.highlightFillOpacity;s.strokeWidth=0;s.highlightStrokeWidth=0;s.strokeOpacity=0;w=j.create("curve",[[0],[0]],s);w.updateDataArray=function(){var p,D,B,C,t;if(q.X()<A.X()){C=q.X();t=A.X()}else{C=A.X();t=q.X()}p=[C,C];D=[0,v.yterm(C)];for(B=0;B<v.numberPoints;B++){if((C<=v.points[B].usrCoords[1])&&(v.points[B].usrCoords[1]<=t)){p.push(v.points[B].usrCoords[1]);D.push(v.points[B].usrCoords[2])}}p.push(t);D.push(v.yterm(t));p.push(t);D.push(0);p.push(C);D.push(0);this.dataX=p;this.dataY=D};x.addChild(w);h.addChild(w);return w};JXG.createLocus=function(f,e,d){var h,g;if(JXG.isArray(e)&&e.length==1&&e[0].elementClass==JXG.OBJECT_CLASS_POINT){g=e[0]}else{throw new Error("JSXGraph: Can't create locus with parent of type other than point.\nPossible parent types: [point]")}h=f.create("curve",[[null],[null]],d);h.dontCallServer=false;h.updateDataArray=function(){if(h.board.mode>0){return}var k=JXG.Math.Symbolic.generatePolynomials(f,g,true).join("|");if(k===h.spe){return}h.spe=k;var j=function(n,q,m,p){h.dataX=n;h.dataY=q;h.eq=m;h.ctime=p;h.generatePolynomial=(function(r){return function(t){var s="("+t.symbolic.x+")",w="("+t.symbolic.y+")",v=[],u;for(u=0;u<r.length;u++){v[u]=r[u].replace(/\*\*/g,"^").replace(/x/g,s).replace(/y/g,w)}return v}})(m)},l=JXG.Math.Symbolic.geometricLocusByGroebnerBase(f,g,j);j(l.datax,l.datay,l.polynomial,l.exectime)};return h};JXG.JSXGraph.registerElement("arrowparallel",JXG.createArrowParallel);JXG.JSXGraph.registerElement("bisector",JXG.createBisector);JXG.JSXGraph.registerElement("bisectorlines",JXG.createAngularBisectorsOfTwoLines);JXG.JSXGraph.registerElement("circumcircle",JXG.createCircumcircle);JXG.JSXGraph.registerElement("circumcirclemidpoint",JXG.createCircumcircleMidpoint);JXG.JSXGraph.registerElement("circumcenter",JXG.createCircumcircleMidpoint);JXG.JSXGraph.registerElement("incenter",JXG.createIncenter);JXG.JSXGraph.registerElement("incircle",JXG.createIncircle);JXG.JSXGraph.registerElement("integral",JXG.createIntegral);JXG.JSXGraph.registerElement("midpoint",JXG.createMidpoint);JXG.JSXGraph.registerElement("mirrorpoint",JXG.createMirrorPoint);JXG.JSXGraph.registerElement("normal",JXG.createNormal);JXG.JSXGraph.registerElement("parallel",JXG.createParallel);JXG.JSXGraph.registerElement("parallelpoint",JXG.createParallelPoint);JXG.JSXGraph.registerElement("perpendicular",JXG.createPerpendicular);JXG.JSXGraph.registerElement("perpendicularpoint",JXG.createPerpendicularPoint);JXG.JSXGraph.registerElement("reflection",JXG.createReflection);JXG.JSXGraph.registerElement("locus",JXG.createLocus);JXG.Text=function(m,r,j,q,f,d,g,p,n,l){this.constructor();this.type=JXG.OBJECT_TYPE_TEXT;this.elementClass=JXG.OBJECT_CLASS_OTHER;this.init(m,f,d);this.contentStr=r;this.plaintextStr="";if(l==null){l=m.options.layer.text}this.layer=l;this.display=n||"html";if((typeof p!="undefined")&&(p!=null)){this.isLabel=p}else{this.isLabel=false}this.visProp.strokeColor=this.board.options.text.strokeColor;this.visProp.visible=true;if(g!=null){this.digits=g}else{this.digits=2}if((this.element=this.board.objects[j])){var h;if(!this.isLabel){h=this.element.getTextAnchor()}else{h=this.element.getLabelAnchor()}this.element.addChild(this);this.relativeCoords=new JXG.Coords(JXG.COORDS_BY_SCREEN,[parseFloat(q[0]),parseFloat(q[1])],this.board);this.coords=new JXG.Coords(JXG.COORDS_BY_SCREEN,[this.relativeCoords.scrCoords[1]+h.scrCoords[1],this.relativeCoords.scrCoords[2]+h.scrCoords[2]],this.board)}else{this.X=JXG.createFunction(q[0],this.board,"");this.Y=JXG.createFunction(q[1],this.board,"");this.coords=new JXG.Coords(JXG.COORDS_BY_USER,[this.X(),this.Y()],this.board);var k="this.coords.setCoordinates(JXG.COORDS_BY_USER,[this.X(),this.Y()]);";this.updateCoords=new Function("",k)}if(typeof this.contentStr=="function"){this.updateText=function(){this.plaintextStr=this.contentStr()}}else{var e;if(typeof this.contentStr=="number"){e=(this.contentStr).toFixed(this.digits)}else{if(this.board.options.text.useASCIIMathML){e="'`"+this.contentStr+"`'"}else{e=this.generateTerm(this.contentStr)}}this.updateText=new Function("this.plaintextStr = "+e+";")}this.updateText();if(!this.isLabel){this.id=this.board.setId(this,"T");this.board.renderer.drawText(this);if(!this.visProp.visible){this.board.renderer.hide(this)}}if(typeof this.contentStr=="string"){this.notifyParents(this.contentStr)}this.size=[1,1]};JXG.Text.prototype=new JXG.GeometryElement();JXG.Text.prototype.hasPoint=function(d,e){return false};JXG.Text.prototype.setText=function(e){var d;if(JXG.isNumber(e)){d=(e).toFixed(this.digits);this.updateText=new Function("this.plaintextStr = "+d+";")}else{if(JXG.isFunction(e)){this.updateText=function(){this.plaintextStr=e()}}else{d=this.generateTerm(e);this.updateText=new Function("this.plaintextStr = "+d+";")}}this.updateText();this.updateSize();return this};JXG.Text.prototype.updateSize=function(){if(this.display=="html"&&this.board.renderer.type!="vml"){this.size=[this.rendNode.offsetWidth,this.rendNode.offsetHeight]}else{if(this.display=="internal"&&this.board.renderer.type=="svg"){this.size=[this.rendNode.getBBox().width,this.rendNode.getBBox().height]}else{if(this.board.renderer.type=="vml"||(this.display=="internal"&&this.board.renderer.type=="canvas")){this.size=[parseFloat(this.visProp.fontSize)*this.plaintextStr.length*0.45,parseFloat(this.visProp.fontSize)*0.9]}}}};JXG.Text.prototype.getSize=function(){return this.size};JXG.Text.prototype.setCoords=function(d,e){this.X=function(){return d};this.Y=function(){return e};this.coords=new JXG.Coords(JXG.COORDS_BY_USER,[d,e],this.board);return this};JXG.Text.prototype.update=function(){var e,d;if(this.needsUpdate&&!this.frozen){if(this.relativeCoords){e;if(!this.isLabel){e=this.element.getTextAnchor()}else{e=this.element.getLabelAnchor()}this.coords.setCoordinates(JXG.COORDS_BY_SCREEN,[this.relativeCoords.scrCoords[1]+e.scrCoords[1],this.relativeCoords.scrCoords[2]+e.scrCoords[2]])}else{this.updateCoords()}}if(this.needsUpdate){this.updateText();this.updateSize();this.updateTransform()}return this};JXG.Text.prototype.updateRenderer=function(){if(this.needsUpdate){this.board.renderer.updateText(this);this.needsUpdate=false}return this};JXG.Text.prototype.updateTransform=function(){if(this.transformations.length==0){return}for(var d=0;d<this.transformations.length;d++){this.transformations[d].update()}};JXG.Text.prototype.generateTerm=function(h){var g=null;var l=this.board.elementsByName;var k='""';h=h.replace(/\r/g,"");h=h.replace(/\n/g,"");h=h.replace(/\"/g,'\\"');h=h.replace(/\'/g,"\\'");h=h.replace(/&arc;/g,"∠");h=h.replace(/<arc\s*\/>/g,"∠");h=h.replace(/<sqrt\s*\/>/g,"√");var f;f=h.indexOf("<value>");var d=h.indexOf("</value>");if(f>=0){while(f>=0){k+=' + "'+JXG.GeonextParser.replaceSub(JXG.GeonextParser.replaceSup(h.slice(0,f)))+'"';var e=h.slice(f+7,d);var g=JXG.GeonextParser.geonext2JS(e,this.board);g=g.replace(/\\"/g,'"');g=g.replace(/\\'/g,"'");if(g.indexOf("toFixed")<0){k+="+("+g+").toFixed("+(this.digits)+")"}else{k+="+("+g+")"}h=h.slice(d+8);f=h.indexOf("<value>");d=h.indexOf("</value>")}}k+=' + "'+JXG.GeonextParser.replaceSub(JXG.GeonextParser.replaceSup(h))+'"';k=k.replace(/<overline>/g,"<span style=text-decoration:overline>");k=k.replace(/<\/overline>/g,"</span>");k=k.replace(/<arrow>/g,"<span style=text-decoration:overline>");k=k.replace(/<\/arrow>/g,"</span>");k=k.replace(/&/g,"&");return k};JXG.Text.prototype.notifyParents=function(f){var e=null;var g=this.board.elementsByName;do{var d=/<value>([\w\s\*\/\^\-\+\(\)\[\],<>=!]+)<\/value>/;e=d.exec(f);if(e!=null){JXG.GeonextParser.findDependencies(this,e[1],this.board);f=f.substr(e.index);f=f.replace(d,"")}}while(e!=null);return this};JXG.createText=function(d,f,e){e=JXG.checkAttributes(e,{layer:null,display:d.options.text.defaultDisplay,parent:null});if(e.parent!=null){e.parent=e.parent.id}return new JXG.Text(d,f[f.length-1],e.parent,f,e.id,e.name,e.digits,false,e.display,e.layer)};JXG.JSXGraph.registerElement("text",JXG.createText);JXG.Image=function(j,e,k,g,f,l,d,h){this.type=JXG.OBJECT_TYPE_IMAGE;this.elementClass=JXG.OBJECT_CLASS_OTHER;this.transformations=[];this.init(j,l,d);this.initialCoords=new JXG.Coords(JXG.COORDS_BY_USER,k,this.board);this.X=JXG.createFunction(k[0],this.board,"");this.Y=JXG.createFunction(k[1],this.board,"");this.W=JXG.createFunction(g[0],this.board,"");this.H=JXG.createFunction(g[1],this.board,"");this.coords=new JXG.Coords(JXG.COORDS_BY_USER,[this.X(),this.Y()],this.board);this.updateCoords=new Function("","this.coords.setCoordinates(JXG.COORDS_BY_USER,[this.X(),this.Y()]);");this.updateSize=new Function("","this.coords.setCoordinates(JXG.COORDS_BY_USER,[this.W(),this.H()]);");this.usrSize=[this.W(),this.H()];this.size=[this.usrSize[0]*j.stretchX,this.usrSize[1]*j.stretchY];this.url=e;if(f==null){f=j.options.layer.image}this.layer=f;this.parent=h;this.visProp.visible=true;this.id=this.board.setId(this,"Im");this.board.renderer.drawImage(this);if(!this.visProp.visible){this.board.renderer.hide(this)}};JXG.Image.prototype=new JXG.GeometryElement;JXG.Image.prototype.hasPoint=function(d,e){return false};JXG.Image.prototype.update=function(){if(this.needsUpdate){this.updateCoords();this.usrSize=[this.W(),this.H()];this.size=[this.usrSize[0]*this.board.stretchX,this.usrSize[1]*this.board.stretchY];this.updateTransform()}return this};JXG.Image.prototype.updateRenderer=function(){if(this.needsUpdate){this.board.renderer.updateImage(this);this.needsUpdate=false}return this};JXG.Image.prototype.updateTransform=function(){if(this.transformations.length==0){return}for(var d=0;d<this.transformations.length;d++){this.transformations[d].update()}};JXG.Image.prototype.addTransform=function(d){if(JXG.isArray(d)){for(var e=0;e<d.length;e++){this.transformations.push(d[e])}}else{this.transformations.push(d)}};JXG.createImage=function(f,e,g){var d;if(g==null){g={}}else{if(g.imageString!=null){d=g.imageString}}if(typeof g.layer=="undefined"){g.layer=null}return new JXG.Image(f,e[0],e[1],e[2],g.layer,false,false)};JXG.JSXGraph.registerElement("image",JXG.createImage);JXG.createSlider=function(q,A,w){var l,j,z,m,B,r,f,e,y,C,p,h,g,d,x,v,s,u,k;l=A[0];j=A[1];z=A[2][0];m=A[2][1];B=A[2][2];r=B-z;w=JXG.checkAttributes(w,{strokeColor:"#000000",fillColor:"#ffffff",withTicks:true});k=JXG.str2Bool(w.fixed);f=q.create("point",l,{visible:!k,fixed:k,name:"",withLabel:false,face:"<>",size:5,strokeColor:"#000000",fillColor:"#ffffff"});e=q.create("point",j,{visible:!k,fixed:k,name:"",withLabel:false,face:"<>",size:5,strokeColor:"#000000",fillColor:"#ffffff"});q.create("group",[f,e]);y=q.create("segment",[f,e],{strokewidth:1,name:"",withLabel:false,strokeColor:w.strokeColor});if(w.withTicks){C=2;p=q.create("ticks",[y,e.Dist(f)/C],{insertTicks:true,minorTicks:0,drawLabels:false,drawZero:true})}if(k){f.setProperty({needsRegularUpdate:false});e.setProperty({needsRegularUpdate:false});y.setProperty({needsRegularUpdate:false})}h=l[0]+(j[0]-l[0])*(m-z)/(B-z);g=l[1]+(j[1]-l[1])*(m-z)/(B-z);if(w.snapWidth!=null){u=w.snapWidth}if(w.snapwidth!=null){u=w.snapwidth}d=q.create("glider",[h,g,y],{style:6,strokeColor:w.strokeColor,fillColor:w.fillColor,showInfobox:false,name:w.name,withLabel:false,snapWidth:u});x=q.create("line",[f,d],{straightFirst:false,straightLast:false,strokewidth:3,strokeColor:w.strokeColor,name:"",withLabel:false});d.Value=function(){return this.position*r+z};d._smax=B;d._smin=z;if(typeof w.withLabel=="undefined"||w.withLabel==true){if(w.name&&w.name!=""){v=w.name+" = "}else{v=""}s=q.create("text",[function(){return(e.X()-f.X())*0.05+e.X()},function(){return(e.Y()-f.Y())*0.05+e.Y()},function(){return v+(d.Value()).toFixed(2)}],{name:""})}return d};JXG.JSXGraph.registerElement("slider",JXG.createSlider);JXG.Chart=function(k,n,g){this.constructor();if(n.length==0){return}this.elements=[];var f=g.id||"";var e=g.name||"";this.init(k,f,e);var p,m,h;if(n.length>0&&(typeof n[0]=="number")){m=n;p=[];for(h=0;h<m.length;h++){p[h]=h+1}}else{if(n.length==1){m=n[0];p=[];var j;if(JXG.isFunction(m)){j=m().length}else{j=m.length}for(h=0;h<j;h++){p[h]=h+1}}if(n.length==2){p=n[0];m=n[1]}}if(!JXG.exists(g)){g={}}var d=g.chartStyle||"line";d=d.replace(/ /g,"");d=d.split(",");var l;for(h=0;h<d.length;h++){switch(d[h]){case"bar":l=this.drawBar(k,[p,m],g);break;case"line":l=this.drawLine(k,[p,m],g);break;case"fit":l=this.drawFit(k,[p,m],g);break;case"spline":l=this.drawSpline(k,[p,m],g);break;case"pie":l=this.drawPie(k,[m],g);break;case"point":l=this.drawPoints(k,[p,m],g);break;case"radar":l=this.drawRadar(k,n,g);break}this.elements.push(l)}this.id=this.board.setId(this,"Chart");return this.elements};JXG.Chart.prototype=new JXG.GeometryElement;JXG.Chart.prototype.drawLine=function(h,g,e){var f=g[0],d=g[1];e.fillColor="none";e.highlightFillColor="none";var j=h.create("curve",[f,d],e);this.rendNode=j.rendNode;return j};JXG.Chart.prototype.drawSpline=function(h,f,e){var d=f[0],k=f[1],g;e.fillColor="none";e.highlightFillColor="none";var j=h.create("spline",[d,k],e);this.rendNode=j.rendNode;return j};JXG.Chart.prototype.drawFit=function(h,g,f){var d=g[0],l=g[1],j=(((typeof f.degree=="undefined")||(parseInt(f.degree)==NaN)||(parseInt(f.degree)<1))?1:parseInt(f.degree));f.fillColor="none";f.highlightFillColor="none";var e=JXG.Math.Numerics.regressionPolynomial(j,d,l);var k=h.create("functiongraph",[e],f);this.rendNode=k.rendNode;return k};JXG.Chart.prototype.drawBar=function(f,A,g){var v,h=[],l=A[0],j=A[1],q,r,n,k,z,m,d,t=[],u,s,e;if(!JXG.exists(g.fillOpacity)){g.fillOpacity=0.6}if(g&&g.width){q=g.width}else{if(l.length<=1){q=1}else{q=l[1]-l[0];for(v=1;v<l.length-1;v++){q=(l[v+1]-l[v]<q)?(l[v+1]-l[v]):q}}q*=0.8}u=g.fillColor;e=parseFloat(f.options.text.fontSize);for(v=0;v<l.length;v++){if(JXG.isFunction(l[v])){r=function(){return l[v]()-q*0.5};n=function(){return l[v]()};k=function(){return l[v]()+q*0.5}}else{r=l[v]-q*0.5;n=l[v];k=l[v]+q*0.5}if(JXG.isFunction(j[v])){m=z}else{m=j[v]+0.2}z=j[v];if(g.dir=="horizontal"){t[0]=f.create("point",[0,r],{name:"",fixed:true,visible:false});t[1]=f.create("point",[z,r],{name:"",fixed:true,visible:false});t[2]=f.create("point",[z,k],{name:"",fixed:true,visible:false});t[3]=f.create("point",[0,k],{name:"",fixed:true,visible:false});if(JXG.exists(g.labels)&&JXG.exists(g.labels[v])){s=g.labels[v].toString().length;s=2*s*e/f.stretchX;if(z>=0){z+=e*0.5/f.stretchX}else{z-=e*s/f.stretchX}n-=e*0.2/f.stretchY;f.create("text",[z,n,g.labels[v]],g)}}else{t[0]=f.create("point",[r,0],{name:"",fixed:true,visible:false});t[1]=f.create("point",[r,z],{name:"",fixed:true,visible:false});t[2]=f.create("point",[k,z],{name:"",fixed:true,visible:false});t[3]=f.create("point",[k,0],{name:"",fixed:true,visible:false});if(JXG.exists(g.labels)&&JXG.exists(g.labels[v])){s=g.labels[v].toString().length;s=0.6*s*e/f.stretchX;if(z>=0){z+=e*0.5/f.stretchY}else{z-=e*1/f.stretchY}f.create("text",[n-s*0.5,z,g.labels[v]],g)}}g.withLines=false;if(!u){d=g.colorArray||["#B02B2C","#3F4C6B","#C79810","#D15600","#FFFF88","#C3D9FF","#4096EE","#008C00"];g.fillColor=d[v%d.length]}h[v]=f.create("polygon",t,g)}this.rendNode=h[0].rendNode;return h};JXG.Chart.prototype.drawPoints=function(k,g,f){var h;var j=[];f.fixed=true;f.name="";var e=JXG.isArray(f.infoboxArray)?f.infoboxArray||false:false;var d=g[0];var l=g[1];for(h=0;h<d.length;h++){f.infoboxtext=e?e[h%e.length]:false;j[h]=k.create("point",[d[h],l[h]],f)}this.rendNode=j[0].rendNode;return j};JXG.Chart.prototype.drawPie=function(g,x,j){var k=x[0];if(k.length<=0){return}var w;var t=[];var h=[];var l=JXG.Math.Statistics.sum(k);var f=j.colorArray||["#B02B2C","#3F4C6B","#C79810","#D15600","#FFFF88","#C3D9FF","#4096EE","#008C00"];var B=j.highlightColorArray||["#FF7400"];var u=new Array(k.length);for(w=0;w<k.length;w++){u[w]=""}var m=j.labelArray||u;var n=j.radius||4;var e;if(!JXG.isFunction(n)){e=function(){return n}}else{e=n}var A={};if(!JXG.exists(j.highlightOnSector)){j.highlightOnSector=false}A.name=j.name;A.id=j.id;A.strokeWidth=j.strokeWidth||1;A.strokeColor=j.strokeColor||"none";A.straightFirst=false;A.straightLast=false;A.fillColor=j.fillColor||"#FFFF88";A.fillOpacity=j.fillOpacity||0.6;A.highlightFillColor=j.highlightFillColor||"#FF7400";A.highlightStrokeColor=j.highlightStrokeColor||"#FFFFFF";A.gradient=j.gradient||"none";A.gradientSecondColor=j.gradientSecondColor||"black";var q=j.center||[0,0];var v=q[0];var d=q[1];var z=g.create("point",[v,d],{name:"",fixed:true,visible:false});t[0]=g.create("point",[function(){return e()+v},function(){return 0+d}],{name:"",fixed:true,visible:false});var C=0;for(w=0;w<k.length;w++){t[w+1]=g.create("point",[(function(p){return function(){var E=0,D=0,y;for(y=0;y<=p;y++){if(JXG.isFunction(k[y])){D+=parseFloat(k[y]())}else{D+=parseFloat(k[y])}}E=D;for(y=p+1;y<k.length;y++){if(JXG.isFunction(k[y])){E+=parseFloat(k[y]())}else{E+=parseFloat(k[y])}}var r=(E!=0)?(2*Math.PI*D/E):0;return e()*Math.cos(r)+v}})(w),(function(p){return function(){var E=0,D=0,y;for(y=0;y<=p;y++){if(JXG.isFunction(k[y])){D+=parseFloat(k[y]())}else{D+=parseFloat(k[y])}}E=D;for(y=p+1;y<k.length;y++){if(JXG.isFunction(k[y])){E+=parseFloat(k[y]())}else{E+=parseFloat(k[y])}}var r=(E!=0)?(2*Math.PI*D/E):0;return e()*Math.sin(r)+d}})(w)],{name:"",fixed:false,visible:false,withLabel:false});A.fillColor=f[w%f.length];A.name=m[w];A.withLabel=A.name!="";A.labelColor=f[w%f.length];A.highlightfillColor=B[w%B.length];h[w]=g.create("sector",[z,t[w],t[w+1]],A);if(j.highlightOnSector){h[w].hasPoint=h[w].hasPointSector}if(j.highlightBySize){h[w].highlight=function(){this.board.renderer.highlight(this);if(this.label.content!=null){this.label.content.rendNode.style.fontSize=(2*this.board.options.text.fontSize)+"px"}var r=-this.midpoint.coords.usrCoords[1]+this.point2.coords.usrCoords[1];var p=-this.midpoint.coords.usrCoords[2]+this.point2.coords.usrCoords[2];this.point2.coords=new JXG.Coords(JXG.COORDS_BY_USER,[this.midpoint.coords.usrCoords[1]+r*1.1,this.midpoint.coords.usrCoords[2]+p*1.1],this.board);this.prepareUpdate().update().updateRenderer()};h[w].noHighlight=function(){this.board.renderer.noHighlight(this);if(this.label.content!=null){this.label.content.rendNode.style.fontSize=(this.board.options.text.fontSize)+"px"}var r=-this.midpoint.coords.usrCoords[1]+this.point2.coords.usrCoords[1];var p=-this.midpoint.coords.usrCoords[2]+this.point2.coords.usrCoords[2];this.point2.coords=new JXG.Coords(JXG.COORDS_BY_USER,[this.midpoint.coords.usrCoords[1]+r/1.1,this.midpoint.coords.usrCoords[2]+p/1.1],this.board);this.prepareUpdate().update().updateRenderer()}}}this.rendNode=h[0].rendNode;return{arcs:h,points:t,midpoint:z}};JXG.Chart.prototype.drawRadar=function(n,Q,L){var Z,X,aa,N,ac,G,C=Q.length,K,u,f,M,D,z,E,B,g,Y,v,s,w,P,x,V,R,F,d,m,e,U,l,O,r,T,af,y,k,q,I,S,ae,A,h;if(C<=0){alert("No data");return}aa=L.paramArray;if(!JXG.exists(aa)){alert("Need paramArray attribute");return}N=aa.length;if(N<=1){alert("Need more than 1 param");return}for(Z=0;Z<C;Z++){if(N!=Q[Z].length){alert("Use data length equal to number of params ("+Q[Z].length+" != "+N+")");return}}ac=new Array(N);G=new Array(N);for(X=0;X<N;X++){ac[X]=Q[0][X];G[X]=ac[X]}for(Z=1;Z<C;Z++){for(X=0;X<N;X++){if(Q[Z][X]>ac[X]){ac[X]=Q[Z][X]}if(Q[Z][X]<G[X]){G[X]=Q[Z][X]}}}K=new Array(C);u=new Array(C);for(Z=0;Z<C;Z++){K[Z]="";u[Z]=[]}f=new Array(N);M=new Array(N);D=L.startShiftRatio||0;z=L.endShiftRatio||0;for(Z=0;Z<N;Z++){f[Z]=(ac[Z]-G[Z])*D;M[Z]=(ac[Z]-G[Z])*z}E=L.startShiftArray||f;B=L.endShiftArray||M;g=L.startArray||G;if(JXG.exists(L.start)){for(Z=0;Z<N;Z++){g[Z]=L.start}}Y=L.endArray||ac;if(JXG.exists(L.end)){for(Z=0;Z<N;Z++){Y[Z]=L.end}}if(E.length!=N){alert("Start shifts length is not equal to number of parameters");return}if(B.length!=N){alert("End shifts length is not equal to number of parameters");return}if(g.length!=N){alert("Starts length is not equal to number of parameters");return}if(Y.length!=N){alert("Ends length is not equal to number of parameters");return}v=L.labelArray||K;s=L.colorArray||["#B02B2C","#3F4C6B","#C79810","#D15600","#FFFF88","#C3D9FF","#4096EE","#008C00"];w=L.highlightColorArray||["#FF7400"];P=L.radius||10;x={};if(!JXG.exists(L.highlightOnSector)){L.highlightOnSector=false}x.name=L.name;x.id=L.id;x.strokeWidth=L.strokeWidth||1;x.polyStrokeWidth=L.polyStrokeWidth||2*x.strokeWidth;x.strokeColor=L.strokeColor||"black";x.straightFirst=false;x.straightLast=false;x.fillColor=L.fillColor||"#FFFF88";x.fillOpacity=L.fillOpacity||0.4;x.highlightFillColor=L.highlightFillColor||"#FF7400";x.highlightStrokeColor=L.highlightStrokeColor||"black";x.gradient=L.gradient||"none";V=L.center||[0,0];R=V[0];F=V[1];d=n.create("point",[R,F],{name:"",fixed:true,withlabel:false,visible:false});m=Math.PI/2-Math.PI/N;if(L.startAngle||L.startAngle===0){m=L.startAngle}e=m;U=[];l=[];var W=function(){var p,j,ag,t,ah=[].concat(this.labelOffsets);p=this.point1.X();j=this.point2.X();ag=this.point1.Y();t=this.point2.Y();if(j<p){ah[0]=-ah[0]}if(t<ag){ah[1]=-ah[1]}this.setLabelRelativeCoords(ah);return new JXG.Coords(JXG.COORDS_BY_USER,[this.point2.X(),this.point2.Y()],this.board)};var J=function(ai,p){var j;var ah;var ag;j=n.create("transform",[-(g[p]-E[p]),0],{type:"translate"});ah=n.create("transform",[P/((Y[p]+B[p])-(g[p]-E[p])),1],{type:"scale"});j.melt(ah);ag=n.create("transform",[ai],{type:"rotate"});j.melt(ag);return j};for(Z=0;Z<N;Z++){e+=2*Math.PI/N;r=P*Math.cos(e)+R;T=P*Math.sin(e)+F;U[Z]=n.create("point",[r,T],{name:"",fixed:true,withlabel:false,visible:false});l[Z]=n.create("line",[d,U[Z]],{name:aa[Z],strokeColor:x.strokeColor,strokeWidth:x.strokeWidth,strokeOpacity:1,straightFirst:false,straightLast:false,withLabel:true,highlightStrokeColor:x.highlightStrokeColor});l[Z].getLabelAnchor=W;O=J(e,Z);for(X=0;X<Q.length;X++){var ad=Q[X][Z];u[X][Z]=n.create("point",[ad,0],{name:"",fixed:true,withlabel:false,visible:false});u[X][Z].addTransform(u[X][Z],O)}}af=new Array(C);for(Z=0;Z<C;Z++){x.labelColor=s[Z%s.length];x.strokeColor=s[Z%s.length];x.fillColor=s[Z%s.length];af[Z]=n.create("polygon",u[Z],{withLines:true,withLabel:false,fillColor:x.fillColor,fillOpacity:x.fillOpacity});for(X=0;X<N;X++){af[Z].borders[X].setProperty("strokeColor:"+s[Z%s.length]);af[Z].borders[X].setProperty("strokeWidth:"+x.polyStrokeWidth)}}y=L.legendPosition||"none";switch(y){case"right":var H=L.legendLeftOffset||2;var ab=L.legendTopOffset||1;this.legend=n.create("legend",[R+P+H,F+P-ab],{labelArray:v,colorArray:s});break;case"none":break;default:alert("Unknown legend position")}k=[];if(L.showCircles!=false){q=[];for(Z=0;Z<6;Z++){q[Z]=20*Z}q[0]="0";I=L.circleLabelArray||q;S=I.length;if(S<2){alert("Too less circles");return}ae=[];A=m+Math.PI/N;O=J(A,0);x.fillColor="none";x.highlightFillColor="none";x.strokeColor=L.strokeColor||"black";x.strokeWidth=L.circleStrokeWidth||0.5;h=(Y[0]-g[0])/(S-1);for(Z=0;Z<S;Z++){ae[Z]=n.create("point",[g[0]+Z*h,0],{name:I[Z],size:0,withLabel:true,visible:true});ae[Z].addTransform(ae[Z],O);k[Z]=n.create("circle",[d,ae[Z]],x)}}this.rendNode=af[0].rendNode;return{circles:k,lines:l,points:u,midpoint:d,polygons:af}};JXG.Chart.prototype.updateRenderer=function(){};JXG.Chart.prototype.update=function(){if(this.needsUpdate){this.updateDataArray()}};JXG.Chart.prototype.updateDataArray=function(){};JXG.createChart=function(h,v,k){if((v.length==1)&&(typeof v[0]=="string")){var u=document.getElementById(v[0]),B,g,r,q,f,d,t=[],m,l,A,z,C,n,e,p,y,s;if(JXG.exists(u)){k=JXG.checkAttributes(k,{withHeader:true});u=(new JXG.DataSource()).loadFromTable(v[0],k.withHeader,k.withHeader);B=u.data;f=u.columnHeader;g=u.rowHeader;z=k.width;C=k.name;n=k.strokeColor;e=k.fillColor;p=k.highlightStrokeColor;y=k.highlightFillColor;h.suspendUpdate();s=B.length;A=[];if(k.rows&&JXG.isArray(k.rows)){for(r=0;r<s;r++){for(q=0;q<k.rows.length;q++){if((k.rows[q]==r)||(k.withHeaders&&k.rows[q]==g[r])){A.push(B[r]);break}}}}else{A=B}s=A.length;for(r=0;r<s;r++){l=[];if(k.chartStyle&&k.chartStyle.indexOf("bar")!=-1){if(z){m=z}else{m=0.8}l.push(1-m/2+(r+0.5)*m/(1*s));for(q=1;q<A[r].length;q++){l.push(l[q-1]+1)}k.width=m/(1*s)}if(C&&C.length==s){k.name=C[r]}else{if(k.withHeaders){k.name=f[r]}}if(n&&n.length==s){k.strokeColor=n[r]}else{k.strokeColor=JXG.hsv2rgb(((r+1)/(1*s))*360,0.9,0.6)}if(e&&e.length==s){k.fillColor=e[r]}else{k.fillColor=JXG.hsv2rgb(((r+1)/(1*s))*360,0.9,1)}if(p&&p.length==s){k.highlightStrokeColor=p[r]}else{k.highlightStrokeColor=JXG.hsv2rgb(((r+1)/(1*s))*360,0.9,1)}if(y&&y.length==s){k.highlightFillColor=y[r]}else{k.highlightFillColor=JXG.hsv2rgb(((r+1)/(1*s))*360,0.9,0.6)}if(k.chartStyle&&k.chartStyle.indexOf("bar")!=-1){t.push(new JXG.Chart(h,[l,A[r]],k))}else{t.push(new JXG.Chart(h,[A[r]],k))}}h.unsuspendUpdate()}return t}else{return new JXG.Chart(h,v,k)}};JXG.JSXGraph.registerElement("chart",JXG.createChart);JXG.Legend=function(f,g,d){this.constructor();this.board=f;this.coords=new JXG.Coords(JXG.COORDS_BY_USER,g,this.board);this.myAtts={};this.label_array=d.labelArray||["1","2","3","4","5","6","7","8"];this.color_array=d.colorArray||["#B02B2C","#3F4C6B","#C79810","#D15600","#FFFF88","#C3D9FF","#4096EE","#008C00"];var e;this.lines=[];this.myAtts.strokeWidth=d.strokeWidth||5;this.myAtts.straightFirst=false;this.myAtts.straightLast=false;this.myAtts.withLabel=true;this.style=d.legendStyle||"vertical";switch(this.style){case"vertical":this.drawVerticalLegend(d);break;default:alert("Unknown legend style"+this.style);break}};JXG.Legend.prototype=new JXG.GeometryElement;JXG.Legend.prototype.drawVerticalLegend=function(f){var e=f.lineLength||1,d=(f.rowHeight||20)/this.board.stretchY,g;for(g=0;g<this.label_array.length;g++){this.myAtts.strokeColor=this.color_array[g];this.myAtts.highlightStrokeColor=this.color_array[g];this.myAtts.name=this.label_array[g];this.myAtts.labelOffsets=[10,0];this.lines[g]=board.create("line",[[this.coords.usrCoords[1],this.coords.usrCoords[2]-g*d],[this.coords.usrCoords[1]+e,this.coords.usrCoords[2]-g*d]],this.myAtts);this.lines[g].getLabelAnchor=function(){this.setLabelRelativeCoords(this.labelOffsets);return new JXG.Coords(JXG.COORDS_BY_USER,[this.point2.X(),this.point2.Y()],this.board)}}};JXG.createLegend=function(f,e,d){var g=[0,0];if(JXG.exists(e)){if(e.length==2){g=e}}return new JXG.Legend(f,g,d)};JXG.JSXGraph.registerElement("legend",JXG.createLegend);JXG.Transformation=function(e,d,f){this.elementClass=JXG.OBJECT_CLASS_OTHER;this.matrix=[[1,0,0],[0,1,0],[0,0,1]];this.board=e;this.isNumericMatrix=false;this.setMatrix(e,d,f)};JXG.Transformation.prototype={};JXG.Transformation.prototype.update=function(){};JXG.Transformation.prototype.setMatrix=function(f,e,g){var d;this.isNumericMatrix=true;for(d=0;d<g.length;d++){if(typeof g[d]!="number"){this.isNumericMatrix=false;break}}if(e=="translate"){this.evalParam=JXG.createEvalFunction(f,g,2);this.update=function(){this.matrix[1][0]=this.evalParam(0);this.matrix[2][0]=this.evalParam(1)}}else{if(e=="scale"){this.evalParam=JXG.createEvalFunction(f,g,2);this.update=function(){this.matrix[1][1]=this.evalParam(0);this.matrix[2][2]=this.evalParam(1)}}else{if(e=="reflect"){if(g.length<4){g[0]=JXG.getReference(f,g[0])}if(g.length==2){g[1]=JXG.getReference(f,g[1])}if(g.length==4){this.evalParam=JXG.createEvalFunction(f,g,4)}this.update=function(){var h,m,j,l,k;if(g.length==1){h=g[0].point2.X()-g[0].point1.X();m=g[0].point2.Y()-g[0].point1.Y();j=g[0].point1.X();l=g[0].point1.Y()}else{if(g.length==2){h=g[1].X()-g[0].X();m=g[1].Y()-g[0].Y();j=g[0].X();l=g[0].Y()}else{if(g.length==4){h=this.evalParam(2)-this.evalParam(0);m=this.evalParam(3)-this.evalParam(1);j=this.evalParam(0);l=this.evalParam(1)}}}k=h*h+m*m;this.matrix[1][1]=(h*h-m*m)/k;this.matrix[1][2]=2*h*m/k;this.matrix[2][1]=2*h*m/k;this.matrix[2][2]=(-h*h+m*m)/k;this.matrix[1][0]=j*(1-this.matrix[1][1])-l*this.matrix[1][2];this.matrix[2][0]=l*(1-this.matrix[2][2])-j*this.matrix[2][1]}}else{if(e=="rotate"){if(g.length==3){this.evalParam=JXG.createEvalFunction(f,g,3)}else{if(g.length<=2){this.evalParam=JXG.createEvalFunction(f,g,1);if(g.length==2){g[1]=JXG.getReference(f,g[1])}}}this.update=function(){var k=this.evalParam(0),h,m,l=Math.cos(k),j=Math.sin(k);this.matrix[1][1]=l;this.matrix[1][2]=-j;this.matrix[2][1]=j;this.matrix[2][2]=l;if(g.length>1){if(g.length==3){h=this.evalParam(1);m=this.evalParam(2)}else{h=g[1].X();m=g[1].Y()}this.matrix[1][0]=h*(1-l)+m*j;this.matrix[2][0]=m*(1-l)-h*j}}}else{if(e=="shear"){this.evalParam=JXG.createEvalFunction(f,g,1);this.update=function(){var h=this.evalParam(0);this.matrix[1][1]=Math.tan(h)}}else{if(e=="generic"){this.evalParam=JXG.createEvalFunction(f,g,9);this.update=function(){this.matrix[0][0]=this.evalParam(0);this.matrix[0][1]=this.evalParam(1);this.matrix[0][2]=this.evalParam(2);this.matrix[1][0]=this.evalParam(3);this.matrix[1][1]=this.evalParam(4);this.matrix[1][2]=this.evalParam(5);this.matrix[2][0]=this.evalParam(6);this.matrix[2][1]=this.evalParam(7);this.matrix[2][2]=this.evalParam(8)}}}}}}}};JXG.Transformation.prototype.apply=function(d){this.update();if(arguments[1]!=null){return JXG.Math.matVecMult(this.matrix,d.initialCoords.usrCoords)}else{return JXG.Math.matVecMult(this.matrix,d.coords.usrCoords)}};JXG.Transformation.prototype.applyOnce=function(f){var g,d,e;if(!JXG.isArray(f)){this.update();g=JXG.Math.matVecMult(this.matrix,f.coords.usrCoords);f.coords.setCoordinates(JXG.COORDS_BY_USER,[g[1],g[2]])}else{d=f.length;for(e=0;e<d;e++){this.update();g=JXG.Math.matVecMult(this.matrix,f[e].coords.usrCoords);f[e].coords.setCoordinates(JXG.COORDS_BY_USER,[g[1],g[2]])}}};JXG.Transformation.prototype.bindTo=function(f){var e,d;if(JXG.isArray(f)){d=f.length;for(e=0;e<d;e++){f[e].transformations.push(this)}}else{f.transformations.push(this)}};JXG.Transformation.prototype.setProperty=function(d){};JXG.Transformation.prototype.melt=function(m){var l=[],h,d,g,e,n,f;d=m.matrix.length;g=this.matrix[0].length;for(h=0;h<d;h++){l[h]=[]}this.update();m.update();for(h=0;h<d;h++){for(f=0;f<g;f++){n=0;for(e=0;e<d;e++){n+=m.matrix[h][e]*this.matrix[e][f]}l[h][f]=n}}this.update=function(){var j=this.matrix.length,k=this.matrix[0].length;for(h=0;h<j;h++){for(f=0;f<k;f++){this.matrix[h][f]=l[h][f]}}};return true};JXG.createTransform=function(d,f,e){return new JXG.Transformation(d,e.type,f)};JXG.JSXGraph.registerElement("transform",JXG.createTransform);JXG.Turtle=function(h,g,e){var d,j,f;this.type=JXG.OBJECT_TYPE_TURTLE;this.turtleIsHidden=false;this.board=h;this.attributes=JXG.checkAttributes(e,{withLabel:false,layer:null});this.attributes.straightFirst=false;this.attributes.straightLast=false;d=0;j=0;f=90;if(g.length!=0){if(g.length==3){d=g[0];j=g[1];f=g[2]}else{if(g.length==2){if(JXG.isArray(g[0])){d=g[0][0];j=g[0][1];f=g[1]}else{d=g[0];j=g[1]}}else{d=g[0][0];j=g[0][1]}}}this.init(d,j,f);return this};JXG.Turtle.prototype=new JXG.GeometryElement;JXG.Turtle.prototype.init=function(d,g,f){this.arrowLen=20/Math.sqrt(this.board.unitX*this.board.unitX+this.board.unitY*this.board.unitY);this.pos=[d,g];this.isPenDown=true;this.dir=90;this.stack=[];this.objects=[];this.attributes.curveType="plot";this.curve=this.board.create("curve",[[this.pos[0]],[this.pos[1]]],this.attributes);this.objects.push(this.curve);this.turtle=this.board.create("point",this.pos,{fixed:true,name:" ",visible:false,withLabel:false});this.objects.push(this.turtle);this.turtle2=this.board.create("point",[this.pos[0],this.pos[1]+this.arrowLen],{fixed:true,name:" ",visible:false,withLabel:false});this.objects.push(this.turtle2);var e=this.attributes.strokeWidth||this.attributes.strokewidth||2;this.arrow=this.board.create("line",[this.turtle,this.turtle2],{strokeColor:"#ff0000",straightFirst:false,straightLast:false,strokeWidth:e,withLabel:false,lastArrow:true});this.objects.push(this.arrow);this.right(90-f);this.board.update()};JXG.Turtle.prototype.forward=function(d){if(d==0){return}var f=d*Math.cos(this.dir*Math.PI/180);var e=d*Math.sin(this.dir*Math.PI/180);if(!this.turtleIsHidden){var g=this.board.create("transform",[f,e],{type:"translate"});g.applyOnce(this.turtle);g.applyOnce(this.turtle2)}if(this.isPenDown){if(this.curve.dataX.length>=8192){this.curve=this.board.create("curve",[[this.pos[0]],[this.pos[1]]],this.attributes);this.objects.push(this.curve)}}this.pos[0]+=f;this.pos[1]+=e;if(this.isPenDown){this.curve.dataX.push(this.pos[0]);this.curve.dataY.push(this.pos[1])}this.board.update();return this};JXG.Turtle.prototype.back=function(d){return this.forward(-d)};JXG.Turtle.prototype.right=function(e){this.dir-=e;this.dir%=360;if(!this.turtleIsHidden){var d=this.board.create("transform",[-e*Math.PI/180,this.turtle],{type:"rotate"});d.applyOnce(this.turtle2)}this.board.update();return this};JXG.Turtle.prototype.left=function(d){return this.right(-d)};JXG.Turtle.prototype.penUp=function(){this.isPenDown=false;return this};JXG.Turtle.prototype.penDown=function(){this.isPenDown=true;this.curve=this.board.create("curve",[[this.pos[0]],[this.pos[1]]],this.attributes);this.objects.push(this.curve);return this};JXG.Turtle.prototype.clean=function(){for(var d=0;d<this.objects.length;d++){var e=this.objects[d];if(e.type==JXG.OBJECT_TYPE_CURVE){this.board.removeObject(e.id);this.objects.splice(d,1)}}this.curve=this.board.create("curve",[[this.pos[0]],[this.pos[1]]],this.attributes);this.objects.push(this.curve);this.board.update();return this};JXG.Turtle.prototype.clearScreen=function(){for(var d=0;d<this.objects.length;d++){var e=this.objects[d];this.board.removeObject(e.id)}this.init(0,0,90);return this};JXG.Turtle.prototype.setPos=function(d,f){if(JXG.isArray(d)){this.pos=d}else{this.pos=[d,f]}if(!this.turtleIsHidden){this.turtle.setPositionDirectly(JXG.COORDS_BY_USER,d,f);this.turtle2.setPositionDirectly(JXG.COORDS_BY_USER,d,f+this.arrowLen);var e=this.board.create("transform",[-(this.dir-90)*Math.PI/180,this.turtle],{type:"rotate"});e.applyOnce(this.turtle2)}this.curve=this.board.create("curve",[[this.pos[0]],[this.pos[1]]],this.attributes);this.objects.push(this.curve);this.board.update();return this};JXG.Turtle.prototype.setPenSize=function(d){this.attributes.strokeWidth=d;this.curve=this.board.create("curve",[[this.pos[0]],[this.pos[1]]],this.attributes);this.objects.push(this.curve);return this};JXG.Turtle.prototype.setPenColor=function(d){this.attributes.strokeColor=d;this.curve=this.board.create("curve",[[this.pos[0]],[this.pos[1]]],this.attributes);this.objects.push(this.curve);return this};JXG.Turtle.prototype.setHighlightPenColor=function(d){this.attributes.highlightStrokeColor=d;this.curve=this.board.create("curve",[[this.pos[0]],[this.pos[1]]],this.attributes);this.objects.push(this.curve);return this};JXG.Turtle.prototype.setProperty=function(){var h;var d;var f,g;var e;for(f=0;f<arguments.length;f++){d=arguments[f];if(typeof d=="string"){h=d.split(":")}else{if(!JXG.isArray(d)){for(var e in d){this.setProperty([e,d[e]])}return this}else{h=d}}this.attributes[h[0]]=h[1]}for(f=0;f<this.objects.length;f++){g=this.objects[f];if(g.type==JXG.OBJECT_TYPE_CURVE){g.setProperty(this.attributes)}}return this};JXG.Turtle.prototype.showTurtle=function(){this.turtleIsHidden=false;this.arrow.setProperty("visible:true");this.setPos(this.pos[0],this.pos[1]);this.board.update();return this};JXG.Turtle.prototype.hideTurtle=function(){this.turtleIsHidden=true;this.arrow.setProperty("visible:false");this.setPos(this.pos[0],this.pos[1]);this.board.update();return this};JXG.Turtle.prototype.home=function(){this.pos=[0,0];this.setPos(this.pos[0],this.pos[1]);return this};JXG.Turtle.prototype.pushTurtle=function(){this.stack.push([this.pos[0],this.pos[1],this.dir]);return this};JXG.Turtle.prototype.popTurtle=function(){var d=this.stack.pop();this.pos[0]=d[0];this.pos[1]=d[1];this.dir=d[2];this.setPos(this.pos[0],this.pos[1]);return this};JXG.Turtle.prototype.lookTo=function(h){if(JXG.isArray(h)){var e=this.pos[0];var d=this.pos[1];var j=h[0];var g=h[1];var f;f=Math.atan2(g-d,j-e);this.right(this.dir-(f*180/Math.PI))}else{if(JXG.isNumber(h)){this.right(this.dir-(h))}}return this};JXG.Turtle.prototype.moveTo=function(g){if(JXG.isArray(g)){var e=g[0]-this.pos[0];var d=g[1]-this.pos[1];if(!this.turtleIsHidden){var f=this.board.create("transform",[e,d],{type:"translate"});f.applyOnce(this.turtle);f.applyOnce(this.turtle2)}if(this.isPenDown){if(this.curve.dataX.length>=8192){this.curve=this.board.create("curve",[[this.pos[0]],[this.pos[1]]],this.attributes);this.objects.push(this.curve)}}this.pos[0]=g[0];this.pos[1]=g[1];if(this.isPenDown){this.curve.dataX.push(this.pos[0]);this.curve.dataY.push(this.pos[1])}this.board.update()}return this};JXG.Turtle.prototype.fd=function(d){return this.forward(d)};JXG.Turtle.prototype.bk=function(d){return this.back(d)};JXG.Turtle.prototype.lt=function(d){return this.left(d)};JXG.Turtle.prototype.rt=function(d){return this.right(d)};JXG.Turtle.prototype.pu=function(){return this.penUp()};JXG.Turtle.prototype.pd=function(){return this.penDown()};JXG.Turtle.prototype.ht=function(){return this.hideTurtle()};JXG.Turtle.prototype.st=function(){return this.showTurtle()};JXG.Turtle.prototype.cs=function(){return this.clearScreen()};JXG.Turtle.prototype.push=function(){return this.pushTurtle()};JXG.Turtle.prototype.pop=function(){return this.popTurtle()};JXG.Turtle.prototype.X=function(d){return this.pos[0]};JXG.Turtle.prototype.Y=function(d){return this.pos[1]};JXG.Turtle.prototype.hasPoint=function(d,g){var e,f;for(e=0;e<this.objects.length;e++){f=this.objects[e];if(f.type==JXG.OBJECT_TYPE_CURVE){if(f.hasPoint(d,g)){return true}}}return false};JXG.createTurtle=function(f,e,d){if(e==null){e=[]}return new JXG.Turtle(f,e,d)};JXG.JSXGraph.registerElement("turtle",JXG.createTurtle);JXG.rgbParser=function(){if(arguments.length==0){return[0,0,0]}if(arguments.length>=3){arguments[0]=[arguments[0],arguments[1],arguments[2]];arguments.length=1}var n=arguments[0];if(JXG.isArray(n)){var e=false,j;for(j=0;j<3;j++){e|=/\./.test(arguments[0][j].toString())}for(j=0;j<3;j++){e&=(arguments[0][j]>=0)&(arguments[0][j]<=1)}if(e){return[Math.ceil(arguments[0][0]*255),Math.ceil(arguments[0][1]*255),Math.ceil(arguments[0][2]*255)]}else{arguments[0].length=3;return arguments[0]}}else{if(typeof arguments[0]=="string"){n=arguments[0]}}var d,l,p;if(n.charAt(0)=="#"){n=n.substr(1,6)}n=n.replace(/ /g,"");n=n.toLowerCase();var h={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"00ffff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000000",blanchedalmond:"ffebcd",blue:"0000ff",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"00ffff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dodgerblue:"1e90ff",feldspar:"d19275",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"ff00ff",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgrey:"d3d3d3",lightgreen:"90ee90",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslateblue:"8470ff",lightslategray:"778899",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"00ff00",limegreen:"32cd32",linen:"faf0e6",magenta:"ff00ff",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370d8",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"d87093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",red:"ff0000",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",violetred:"d02090",wheat:"f5deb3",white:"ffffff",whitesmoke:"f5f5f5",yellow:"ffff00",yellowgreen:"9acd32"};for(var q in h){if(n==q){n=h[q]}}var m=[{re:/^rgb\((\d{1,3}),\s*(\d{1,3}),\s*(\d{1,3})\)$/,example:["rgb(123, 234, 45)","rgb(255,234,245)"],process:function(g){return[parseInt(g[1]),parseInt(g[2]),parseInt(g[3])]}},{re:/^(\w{2})(\w{2})(\w{2})$/,example:["#00ff00","336699"],process:function(g){return[parseInt(g[1],16),parseInt(g[2],16),parseInt(g[3],16)]}},{re:/^(\w{1})(\w{1})(\w{1})$/,example:["#fb0","f0f"],process:function(g){return[parseInt(g[1]+g[1],16),parseInt(g[2]+g[2],16),parseInt(g[3]+g[3],16)]}}];for(var j=0;j<m.length;j++){var t=m[j].re,f=m[j].process,s=t.exec(n),k;if(s){k=f(s);d=k[0];l=k[1];p=k[2]}}d=(d<0||isNaN(d))?0:((d>255)?255:d);l=(l<0||isNaN(l))?0:((l>255)?255:l);p=(p<0||isNaN(p))?0:((p>255)?255:p);return[d,l,p]};JXG.rgb2css=function(){var f,e,d;f=JXG.rgbParser.apply(JXG.rgbParser,arguments);e=f[1];d=f[2];f=f[0];return"rgb("+f+", "+e+", "+d+")"};JXG.rgb2hex=function(){var f,e,d;f=JXG.rgbParser.apply(JXG.rgbParser,arguments);e=f[1];d=f[2];f=f[0];f=f.toString(16);e=e.toString(16);d=d.toString(16);if(f.length==1){f="0"+f}if(e.length==1){e="0"+e}if(d.length==1){d="0"+d}return"#"+f+e+d};JXG.hsv2rgb=function(r,k,j){var l,s,g,n,m,h,e,d,u;r=((r%360)+360)%360;if(k==0){if(isNaN(r)||r<JXG.Math.eps){l=j;s=j;g=j}else{return"#ffffff"}}else{if(r>=360){h=0}else{h=r}h=h/60;m=Math.floor(h);n=h-m;e=j*(1-k);d=j*(1-(k*n));u=j*(1-(k*(1-n)));switch(m){case 0:l=j;s=u;g=e;break;case 1:l=d;s=j;g=e;break;case 2:l=e;s=j;g=u;break;case 3:l=e;s=d;g=j;break;case 4:l=u;s=e;g=j;break;case 5:l=j;s=e;g=d;break}}l=Math.round(l*255).toString(16);l=(l.length==2)?l:((l.length==1)?"0"+l:"00");s=Math.round(s*255).toString(16);s=(s.length==2)?s:((s.length==1)?"0"+s:"00");g=Math.round(g*255).toString(16);g=(g.length==2)?g:((g.length==1)?"0"+g:"00");return["#",l,s,g].join("")};JXG.rgb2hsv=function(){var d,n,t,p,e,j,f,u,m,x,w,q,k,l;d=JXG.rgbParser.apply(JXG.rgbParser,arguments);n=d[1];t=d[2];d=d[0];l=JXG.Math.Statistics;p=d/255;e=n/255;j=t/255;q=l.max([d,n,t]);k=l.min([d,n,t]);f=q/255;u=k/255;w=f;x=0;if(w>0){x=(w-u)/(w*1)}m=1/(f-u);if(x>0){if(q==d){m=(e-j)*m}else{if(q==n){m=2+(j-p)*m}else{m=4+(p-e)*m}}}m*=60;if(m<0){m+=360}if(q==k){m=0}return[m,x,w]};JXG.rgb2LMS=function(){var p,n,e,f,d,k,j,h=[[0.05059983,0.08585369,0.0095242],[0.01893033,0.08925308,0.01370054],[0.00292202,0.00975732,0.07145979]];p=JXG.rgbParser.apply(JXG.rgbParser,arguments);n=p[1];e=p[2];p=p[0];p=Math.pow(p,0.476190476);n=Math.pow(n,0.476190476);e=Math.pow(e,0.476190476);f=p*h[0][0]+n*h[0][1]+e*h[0][2];d=p*h[1][0]+n*h[1][1]+e*h[1][2];k=p*h[2][0]+n*h[2][1]+e*h[2][2];j=[f,d,k];j.l=f;j.m=d;j.s=k;return j};JXG.LMS2rgb=function(f,e,q){var d,h,k,j,n=[[30.830854,-29.832659,1.610474],[-6.481468,17.715578,-2.532642],[-0.37569,-1.199062,14.273846]];d=f*n[0][0]+e*n[0][1]+q*n[0][2];h=f*n[1][0]+e*n[1][1]+q*n[1][2];k=f*n[2][0]+e*n[2][1]+q*n[2][2];var p=function(l){var m=127,g=64;while(g>0){if(Math.pow(m,0.476190476)>l){m-=g}else{if(Math.pow(m+1,0.476190476)>l){return m}m+=g}g/=2}if(m==254&&13.994955247<l){return 255}return m};d=p(d);h=p(h);k=p(k);j=[d,h,k];j.r=d;j.g=h;j.b=k;return j};JXG.Board.prototype.angle=function(d,f,e){return JXG.Math.Geometry.angle(d,f,e)};JXG.Board.prototype.rad=function(d,f,e){return JXG.Math.Geometry.rad(d,f,e)};JXG.Board.prototype.distance=function(e,d){return JXG.Math.Geometry.distance(e,d)};JXG.Board.prototype.pow=function(e,d){return JXG.Math.pow(e,d)};JXG.Board.prototype.round=function(d,e){return(d).toFixed(e)};JXG.Board.prototype.cosh=function(d){return JXG.Math.cosh(d)};JXG.Board.prototype.sinh=function(d){return JXG.Math.sinh(d)};JXG.Board.prototype.sgn=function(d){return(d==0?0:d/(Math.abs(d)))};JXG.Board.prototype.D=function(d,e){return JXG.Math.Numerics.D(d,e)};JXG.Board.prototype.I=function(d,e){return JXG.Math.Numerics.I(d,e)};JXG.Board.prototype.root=function(e,d,g){return JXG.Math.Numerics.root(e,d,g)};JXG.Board.prototype.lagrangePolynomial=function(d){return JXG.Math.Numerics.lagrangePolynomial(d)};JXG.Board.prototype.neville=function(d){return JXG.Math.Numerics.Neville(d)};JXG.Board.prototype.riemannsum=function(g,j,e,h,d){return JXG.Math.Numerics.riemannsum(g,j,e,h,d)};JXG.Board.prototype.abs=Math.abs;JXG.Board.prototype.acos=Math.acos;JXG.Board.prototype.asin=Math.asin;JXG.Board.prototype.atan=Math.atan;JXG.Board.prototype.ceil=Math.ceil;JXG.Board.prototype.cos=Math.cos;JXG.Board.prototype.exp=Math.exp;JXG.Board.prototype.floor=Math.floor;JXG.Board.prototype.log=Math.log;JXG.Board.prototype.max=Math.max;JXG.Board.prototype.min=Math.min;JXG.Board.prototype.random=Math.random;JXG.Board.prototype.sin=Math.sin;JXG.Board.prototype.sqrt=Math.sqrt;JXG.Board.prototype.tan=Math.tan;JXG.Board.prototype.trunc=Math.ceil;JXG.Board.prototype.factorial=function(d){return JXG.Math.factorial(d)};JXG.Board.prototype.binomial=function(e,d){return JXG.Math.binomial(e,d)};JXG.Point.prototype.setPositionX=function(f,d){var e=(f==JXG.COORDS_BY_USER)?this.coords.usrCoords[2]:this.coords.scrCoords[2];this.setPosition(f,d,e)};JXG.Point.prototype.setPositionY=function(f,e){var d=(f==JXG.COORDS_BY_USER)?this.coords.usrCoords[1]:this.coords.scrCoords[1];this.setPosition(f,d,e)};JXG.Board.prototype.getElement=function(d){return JXG.getReference(this,d)};JXG.Board.prototype.intersectionOptions=["point",[[JXG.OBJECT_CLASS_LINE,JXG.OBJECT_CLASS_LINE],[JXG.OBJECT_CLASS_LINE,JXG.OBJECT_CLASS_CIRCLE],[JXG.OBJECT_CLASS_CIRCLE,JXG.OBJECT_CLASS_CIRCLE]]];JXG.Board.prototype.intersection=function(g,e,f,d){g=JXG.getReference(this,g);e=JXG.getReference(this,e);if(g.elementClass==JXG.OBJECT_CLASS_CURVE&&e.elementClass==JXG.OBJECT_CLASS_CURVE){return function(){return JXG.Math.Geometry.meetCurveCurve(g,e,f,d,g.board)}}else{if((g.elementClass==JXG.OBJECT_CLASS_CURVE&&e.elementClass==JXG.OBJECT_CLASS_LINE)||(e.elementClass==JXG.OBJECT_CLASS_CURVE&&g.elementClass==JXG.OBJECT_CLASS_LINE)){return function(){return JXG.Math.Geometry.meetCurveLine(g,e,f,g.board)}}else{return function(){return JXG.Math.Geometry.meet(g.stdform,e.stdform,f,g.board)}}}};JXG.Board.prototype.intersectionFunc=function(g,e,f,d){return this.intersection(g,e,f,d)};JXG.Board.prototype.otherIntersection=function(e,d,f){e=JXG.getReference(this,e);d=JXG.getReference(this,d);return function(){var g=JXG.Math.Geometry.meet(e.stdform,d.stdform,0,e.board);if(Math.abs(f.X()-g.usrCoords[1])>JXG.Math.eps||Math.abs(f.Y()-g.usrCoords[2])>JXG.Math.eps||Math.abs(f.Z()-g.usrCoords[0])>JXG.Math.eps){return g}else{return JXG.Math.Geometry.meet(e.stdform,d.stdform,1,e.board)}}};JXG.Board.prototype.pointFunc=function(){return[null]};JXG.Board.prototype.pointOptions=["point",[[JXG.OBJECT_CLASS_POINT]]];JXG.Board.prototype.lineFunc=function(){return arguments};JXG.Board.prototype.lineOptions=["line",[[JXG.OBJECT_CLASS_POINT,JXG.OBJECT_CLASS_POINT]]];JXG.Board.prototype.linesegmentFunc=function(){return arguments};JXG.Board.prototype.linesegmentOptions=["line",[[JXG.OBJECT_CLASS_POINT,JXG.OBJECT_CLASS_POINT]]];JXG.Board.prototype.linesegmentAtts={straightFirst:false,straightLast:false};JXG.Board.prototype.arrowFunc=function(){return arguments};JXG.Board.prototype.arrowOptions=["arrow",[[JXG.OBJECT_CLASS_POINT,JXG.OBJECT_CLASS_POINT]]];JXG.Board.prototype.circleFunc=function(){return arguments};JXG.Board.prototype.circleOptions=["circle",[[JXG.OBJECT_CLASS_POINT,JXG.OBJECT_CLASS_POINT],[JXG.OBJECT_CLASS_POINT,JXG.OBJECT_CLASS_LINE],[JXG.OBJECT_CLASS_POINT,JXG.OBJECT_CLASS_CIRCLE]]];JXG.Board.prototype.arrowparallelOptions=["arrowparallel",[[JXG.OBJECT_CLASS_POINT,JXG.OBJECT_CLASS_LINE]]];JXG.Board.prototype.arrowparallelFunc=function(){return arguments};JXG.Board.prototype.bisectorOptions=["bisector",[[JXG.OBJECT_CLASS_POINT,JXG.OBJECT_CLASS_POINT,JXG.OBJECT_CLASS_POINT]]];JXG.Board.prototype.bisectorFunc=function(){return arguments};JXG.Board.prototype.circumcircleOptions=["circumcircle",[[JXG.OBJECT_CLASS_POINT,JXG.OBJECT_CLASS_POINT,JXG.OBJECT_CLASS_POINT]]];JXG.Board.prototype.circumcircleFunc=function(){return arguments};JXG.Board.prototype.circumcirclemidpointOptions=["circumcirclemidpoint",[[JXG.OBJECT_CLASS_POINT,JXG.OBJECT_CLASS_POINT,JXG.OBJECT_CLASS_POINT]]];JXG.Board.prototype.circumcirclemidpointFunc=function(){return arguments};JXG.Board.prototype.integralOptions=["integral",[[]]];JXG.Board.prototype.integralFunc=function(){return arguments};JXG.Board.prototype.midpointOptions=["midpoint",[[JXG.OBJECT_CLASS_POINT,JXG.OBJECT_CLASS_POINT],[JXG.OBJECT_CLASS_LINE]]];JXG.Board.prototype.midpointFunc=function(){return arguments};JXG.Board.prototype.mirrorpointOptions=["mirrorpoint",[[JXG.OBJECT_CLASS_POINT,JXG.OBJECT_CLASS_POINT]]];JXG.Board.prototype.mirrorpointFunc=function(){return arguments};JXG.Board.prototype.normalOptions=["normal",[[JXG.OBJECT_CLASS_POINT,JXG.OBJECT_CLASS_LINE]]];JXG.Board.prototype.normalFunc=function(){return arguments};JXG.Board.prototype.parallelOptions=["parallel",[[JXG.OBJECT_CLASS_POINT,JXG.OBJECT_CLASS_LINE]]];JXG.Board.prototype.parallelFunc=function(){return arguments};JXG.Board.prototype.parallelpointOptions=["parallelpoint",[[JXG.OBJECT_CLASS_POINT,JXG.OBJECT_CLASS_POINT,JXG.OBJECT_CLASS_POINT]]];JXG.Board.prototype.parallelpointFunc=function(){return arguments};JXG.Board.prototype.perpendicularOptions=["perpendicular",[[JXG.OBJECT_CLASS_POINT,JXG.OBJECT_CLASS_LINE]]];JXG.Board.prototype.perpendicularFunc=function(){return arguments};JXG.Board.prototype.perpendicularpointOptions=["perpendicularpoint",[[JXG.OBJECT_CLASS_POINT,JXG.OBJECT_CLASS_LINE]]];JXG.Board.prototype.perpendicularpointFunc=function(){return arguments};JXG.Board.prototype.reflectionOptions=["reflection",[[JXG.OBJECT_CLASS_POINT,JXG.OBJECT_CLASS_LINE]]];JXG.Board.prototype.reflectionFunc=function(){return arguments};JXG.Board.prototype.pstricks={};JXG.Board.prototype.pstricks.givePsTricksToDiv=function(d,e){JXG.PsTricks.givePsTricksToDiv(d,e)};JXG.Ticks=function(d,j,h,k,e,l,f,g){this.constructor();this.type=JXG.OBJECT_TYPE_TICKS;this.elementClass=JXG.OBJECT_CLASS_OTHER;this.line=d;this.board=this.line.board;this.ticksFunction=null;this.fixedTicks=null;this.equidistant=false;if(JXG.isFunction(j)){this.ticksFunction=j;throw new Error("Function arguments are no longer supported.")}else{if(JXG.isArray(j)){this.fixedTicks=j}else{if(Math.abs(j)<JXG.Math.eps){j=this.board.options.line.ticks.defaultDistance}this.ticksFunction=function(m){return j};this.equidistant=true}}this.minorTicks=((h==null)?this.board.options.line.ticks.minorTicks:h);if(this.minorTicks<0){this.minorTicks=-this.minorTicks}this.majorHeight=((k==null)||(k==0)?this.board.options.line.ticks.majorHeight:k);if(this.majorHeight<0){this.majorHeight=-this.majorHeight}this.minorHeight=((e==null)||(e==0)?this.board.options.line.ticks.minorHeight:e);if(this.minorHeight<0){this.minorHeight=-this.minorHeight}this.minTicksDistance=this.board.options.line.ticks.minTicksDistance;this.maxTicksDistance=this.board.options.line.ticks.maxTicksDistance;this.insertTicks=this.board.options.line.ticks.insertTicks;this.drawZero=this.board.options.line.ticks.drawZero;this.drawLabels=this.board.options.line.ticks.drawLabels;this.labels=[];this.init(this.board,l,f);this.visProp.visible=true;this.visProp.fillColor=this.line.visProp.fillColor;this.visProp.highlightFillColor=this.line.visProp.highlightFillColor;this.visProp.strokeColor=this.line.visProp.strokeColor;this.visProp.highlightStrokeColor=this.line.visProp.highlightStrokeColor;this.visProp.strokeWidth=this.line.visProp.strokeWidth;this.id=this.line.addTicks(this);this.board.setId(this,"Ti")};JXG.Ticks.prototype=new JXG.GeometryElement;JXG.Ticks.prototype.hasPoint=function(d,e){return false};JXG.Ticks.prototype.calculateTicksCoordinates=function(){var h=this.line.point1,e=this.line.point2,y=h.coords.distance(JXG.COORDS_BY_USER,e.coords),M=(e.coords.usrCoords[1]-h.coords.usrCoords[1])/y,K=(e.coords.usrCoords[2]-h.coords.usrCoords[2])/y,q=h.coords.distance(JXG.COORDS_BY_SCREEN,new JXG.Coords(JXG.COORDS_BY_USER,[h.coords.usrCoords[1]+M,h.coords.usrCoords[2]+K],this.board)),G=(this.equidistant?this.ticksFunction(1):1),B=5,r,n,C=1,J,k,D,d,F,x,v=function(U,O,R,Q,T){var S,P;S=U.toString();if(S.length>5){S=U.toPrecision(3).toString()}P=new JXG.Text(R,S,null,[O.usrCoords[1],O.usrCoords[2]],T+F+"Label","",null,true,R.options.text.defaultDisplay);P.distanceX=0;P.distanceY=-10;P.setCoords(O.usrCoords[1]*1+P.distanceX/(R.stretchX),O.usrCoords[2]*1+P.distanceY/(R.stretchY));P.visProp.visible=Q;return P},l=function(O){return Math.floor(O)-(Math.floor(O)%G)},z=JXG.Math.eps,u=-this.line.getSlope(),w=this.majorHeight/2,j=this.minorHeight/2,L=0,g=0,A=0,E=0;if(Math.abs(u)<z){L=0;g=w;A=0;E=j}else{if((Math.abs(u)>1/z)||(isNaN(u))){L=w;g=0;A=j;E=0}else{L=-w/Math.sqrt(1/(u*u)+1);g=L/u;A=-j/Math.sqrt(1/(u*u)+1);E=A/u}}this.removeTickLabels();this.ticks=new Array();this.labels=new Array();r=new JXG.Coords(JXG.COORDS_BY_USER,[h.coords.usrCoords[1],h.coords.usrCoords[2]],this.board);n=new JXG.Coords(JXG.COORDS_BY_USER,[e.coords.usrCoords[1],e.coords.usrCoords[2]],this.board);this.board.renderer.calcStraight(this.line,r,n);if(!this.equidistant){var t=h.coords.usrCoords[1]-r.usrCoords[1];var p=h.coords.usrCoords[2]-r.usrCoords[2];var N=Math.sqrt(t*t+p*p);var m=h.coords.usrCoords[1]-n.usrCoords[1];var s=h.coords.usrCoords[2]-n.usrCoords[2];var f=Math.sqrt(m*m+s*s);var I=0;var H=0;for(var F=0;F<this.fixedTicks.length;F++){if((-N<=this.fixedTicks[F])&&(this.fixedTicks[F]<=f)){if(this.fixedTicks[F]<0){I=Math.abs(t)*this.fixedTicks[F]/N;H=Math.abs(p)*this.fixedTicks[F]/N}else{I=Math.abs(m)*this.fixedTicks[F]/f;H=Math.abs(s)*this.fixedTicks[F]/f}D=new JXG.Coords(JXG.COORDS_BY_USER,[h.coords.usrCoords[1]+I,h.coords.usrCoords[2]+H],this.board);this.ticks.push(D);this.ticks[this.ticks.length-1].major=true;this.labels.push(v(this.fixedTicks[F],D,this.board,this.drawLabels,this.id))}}this.dxMaj=L;this.dyMaj=g;this.dxMin=A;this.dyMin=E;return}while(q>4*this.minTicksDistance){G/=10;M/=10;K/=10;q=h.coords.distance(JXG.COORDS_BY_SCREEN,new JXG.Coords(JXG.COORDS_BY_USER,[h.coords.usrCoords[1]+M,h.coords.usrCoords[2]+K],this.board))}while(q<this.minTicksDistance){G*=B;M*=B;K*=B;B=(B==5?2:5);q=h.coords.distance(JXG.COORDS_BY_SCREEN,new JXG.Coords(JXG.COORDS_BY_USER,[h.coords.usrCoords[1]+M,h.coords.usrCoords[2]+K],this.board))}if(this.board.renderer.isSameDirection(h.coords,r,n)){J=l(h.coords.distance(JXG.COORDS_BY_USER,r));k=h.coords.distance(JXG.COORDS_BY_USER,n);if(this.board.renderer.isSameDirection(h.coords,e.coords,r)){if(this.line.visProp.straightFirst){J-=2*G}}else{k=-1*k;J=-1*J;if(this.line.visProp.straightFirst){J-=2*G}}}else{if(!this.line.visProp.straightFirst){J=0}else{J=-l(h.coords.distance(JXG.COORDS_BY_USER,r))-2*G}if(!this.line.visProp.straightLast){k=y}else{k=h.coords.distance(JXG.COORDS_BY_USER,n)}}d=new JXG.Coords(JXG.COORDS_BY_USER,[h.coords.usrCoords[1]+J*M/G,h.coords.usrCoords[2]+J*K/G],this.board);D=new JXG.Coords(JXG.COORDS_BY_USER,[h.coords.usrCoords[1]+J*M/G,h.coords.usrCoords[2]+J*K/G],this.board);M/=this.minorTicks+1;K/=this.minorTicks+1;F=0;x=J;while(d.distance(JXG.COORDS_BY_USER,D)<Math.abs(k-J)+JXG.Math.eps){if(F%(this.minorTicks+1)==0){D.major=true;this.labels.push(v(x,D,this.board,this.drawLabels,this.id));x+=G}else{D.major=false;this.labels.push(null)}F++;this.ticks.push(D);D=new JXG.Coords(JXG.COORDS_BY_USER,[D.usrCoords[1]+M,D.usrCoords[2]+K],this.board);if(!this.drawZero&&D.distance(JXG.COORDS_BY_USER,h.coords)<=JXG.Math.eps){F++;x+=G;D=new JXG.Coords(JXG.COORDS_BY_USER,[D.usrCoords[1]+M,D.usrCoords[2]+K],this.board)}}this.dxMaj=L;this.dyMaj=g;this.dxMin=A;this.dyMin=E};JXG.Ticks.prototype.removeTickLabels=function(){var d;if(this.ticks!=null){if((this.board.needsFullUpdate||this.needsRegularUpdate)&&!(this.board.options.renderer=="canvas"&&this.board.options.text.defaultDisplay=="internal")){for(d=0;d<this.ticks.length;d++){if(this.labels[d]!=null&&this.labels[d].visProp.visible){this.board.renderer.remove(this.labels[d].rendNode)}}}}};JXG.Ticks.prototype.update=function(){if(this.needsUpdate){this.calculateTicksCoordinates()}return this};JXG.Ticks.prototype.updateRenderer=function(){if(this.needsUpdate){if(this.ticks){this.board.renderer.updateTicks(this,this.dxMaj,this.dyMaj,this.dxMin,this.dyMin)}this.needsUpdate=false}return this};JXG.createTicks=function(g,e,d){var f;d=JXG.checkAttributes(d,{layer:null});if((e[0].elementClass==JXG.OBJECT_CLASS_LINE)&&(JXG.isFunction(e[1])||JXG.isArray(e[1])||JXG.isNumber(e[1]))){f=new JXG.Ticks(e[0],e[1],d.minorTicks,d.majHeight,d.minHeight,d.id,d.name,d.layer)}else{throw new Error("JSXGraph: Can't create Ticks with parent types '"+(typeof e[0])+"' and '"+(typeof e[1])+"' and '"+(typeof e[2])+"'.")}return f};JXG.JSXGraph.registerElement("ticks",JXG.createTicks);JXG.Util={};JXG.Util.Unzip=function(V){var r=[],I="",G=false,D,J=0,S=[],v,l=new Array(32768),aa=0,N=false,X,K,Z=[0,128,64,192,32,160,96,224,16,144,80,208,48,176,112,240,8,136,72,200,40,168,104,232,24,152,88,216,56,184,120,248,4,132,68,196,36,164,100,228,20,148,84,212,52,180,116,244,12,140,76,204,44,172,108,236,28,156,92,220,60,188,124,252,2,130,66,194,34,162,98,226,18,146,82,210,50,178,114,242,10,138,74,202,42,170,106,234,26,154,90,218,58,186,122,250,6,134,70,198,38,166,102,230,22,150,86,214,54,182,118,246,14,142,78,206,46,174,110,238,30,158,94,222,62,190,126,254,1,129,65,193,33,161,97,225,17,145,81,209,49,177,113,241,9,137,73,201,41,169,105,233,25,153,89,217,57,185,121,249,5,133,69,197,37,165,101,229,21,149,85,213,53,181,117,245,13,141,77,205,45,173,109,237,29,157,93,221,61,189,125,253,3,131,67,195,35,163,99,227,19,147,83,211,51,179,115,243,11,139,75,203,43,171,107,235,27,155,91,219,59,187,123,251,7,135,71,199,39,167,103,231,23,151,87,215,55,183,119,247,15,143,79,207,47,175,111,239,31,159,95,223,63,191,127,255],ad=[3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,0,0],U=[0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,99,99],O=[1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577],C=[0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13],s=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],z=V,e=0,k=0,ae=1,d=0,ac=256,j=[],n;function g(){d+=8;if(e<z.length){return z[e++]}else{return -1}}function t(){ae=1}function Y(){var ag;d++;ag=(ae&1);ae>>=1;if(ae==0){ae=g();ag=(ae&1);ae=(ae>>1)|128}return ag}function W(ag){var ai=0,ah=ag;while(ah--){ai=(ai<<1)|Y()}if(ag){ai=Z[ai]>>(8-ag)}return ai}function f(){aa=0}function A(ag){K++;l[aa++]=ag;r.push(String.fromCharCode(ag));if(aa==32768){aa=0}}function q(){this.b0=0;this.b1=0;this.jump=null;this.jumppos=-1}var h=288;var y=new Array(h);var Q=new Array(32);var L=0;var ab=null;var u=null;var P=new Array(64);var M=new Array(64);var B=0;var F=new Array(17);F[0]=0;var R;var x;function m(){while(1){if(F[B]>=x){return -1}if(R[F[B]]==B){return F[B]++}F[B]++}}function H(){var ah=ab[L];var ag;if(G){document.write("<br>len:"+B+" treepos:"+L)}if(B==17){return -1}L++;B++;ag=m();if(G){document.write("<br>IsPat "+ag)}if(ag>=0){ah.b0=ag;if(G){document.write("<br>b0 "+ah.b0)}}else{ah.b0=32768;if(G){document.write("<br>b0 "+ah.b0)}if(H()){return -1}}ag=m();if(ag>=0){ah.b1=ag;if(G){document.write("<br>b1 "+ah.b1)}ah.jump=null}else{ah.b1=32768;if(G){document.write("<br>b1 "+ah.b1)}ah.jump=ab[L];ah.jumppos=L;if(H()){return -1}}B--;return 0}function p(ak,ai,al,ah){var aj;if(G){document.write("currentTree "+ak+" numval "+ai+" lengths "+al+" show "+ah)}ab=ak;L=0;R=al;x=ai;for(aj=0;aj<17;aj++){F[aj]=0}B=0;if(H()){if(G){alert("invalid huffman tree\n")}return -1}if(G){document.write("<br>Tree: "+ab.length);for(var ag=0;ag<32;ag++){document.write("Places["+ag+"].b0="+ab[ag].b0+"<br>");document.write("Places["+ag+"].b1="+ab[ag].b1+"<br>")}}return 0}function E(aj){var ah,ai,al=0,ak=aj[al],ag;while(1){ag=Y();if(G){document.write("b="+ag)}if(ag){if(!(ak.b1&32768)){if(G){document.write("ret1")}return ak.b1}ak=ak.jump;ah=aj.length;for(ai=0;ai<ah;ai++){if(aj[ai]===ak){al=ai;break}}}else{if(!(ak.b0&32768)){if(G){document.write("ret2")}return ak.b0}al++;ak=aj[al]}}if(G){document.write("ret3")}return -1}function af(){var ak,ax,ah,av,aw;do{ak=Y();ah=W(2);switch(ah){case 0:if(G){alert("Stored\n")}break;case 1:if(G){alert("Fixed Huffman codes\n")}break;case 2:if(G){alert("Dynamic Huffman codes\n")}break;case 3:if(G){alert("Reserved block type!!\n")}break;default:if(G){alert("Unexpected value %d!\n",ah)}break}if(ah==0){var at,ag;t();at=g();at|=(g()<<8);ag=g();ag|=(g()<<8);if(((at^~ag)&65535)){document.write("BlockLen checksum mismatch\n")}while(at--){ax=g();A(ax)}}else{if(ah==1){var au;while(1){au=(Z[W(7)]>>1);if(au>23){au=(au<<1)|Y();if(au>199){au-=128;au=(au<<1)|Y()}else{au-=48;if(au>143){au=au+136}}}else{au+=256}if(au<256){A(au)}else{if(au==256){break}else{var aw,ap;au-=256+1;aw=W(U[au])+ad[au];au=Z[W(5)]>>3;if(C[au]>8){ap=W(8);ap|=(W(C[au]-8)<<8)}else{ap=W(C[au])}ap+=O[au];for(au=0;au<aw;au++){var ax=l[(aa-ap)&32767];A(ax)}}}}}else{if(ah==2){var au,aq,ai,an,ao;var am=new Array(288+32);ai=257+W(5);an=1+W(5);ao=4+W(4);for(au=0;au<19;au++){am[au]=0}for(au=0;au<ao;au++){am[s[au]]=W(3)}aw=Q.length;for(av=0;av<aw;av++){Q[av]=new q()}if(p(Q,19,am,0)){f();return 1}if(G){document.write("<br>distanceTree");for(var ay=0;ay<Q.length;ay++){document.write("<br>"+Q[ay].b0+" "+Q[ay].b1+" "+Q[ay].jump+" "+Q[ay].jumppos)}}aq=ai+an;av=0;var aj=-1;if(G){document.write("<br>n="+aq+" bits: "+d+"<br>")}while(av<aq){aj++;au=E(Q);if(G){document.write("<br>"+aj+" i:"+av+" decode: "+au+" bits "+d+"<br>")}if(au<16){am[av++]=au}else{if(au==16){var ar;au=3+W(2);if(av+au>aq){f();return 1}ar=av?am[av-1]:0;while(au--){am[av++]=ar}}else{if(au==17){au=3+W(3)}else{au=11+W(7)}if(av+au>aq){f();return 1}while(au--){am[av++]=0}}}}aw=y.length;for(av=0;av<aw;av++){y[av]=new q()}if(p(y,ai,am,0)){f();return 1}aw=y.length;for(av=0;av<aw;av++){Q[av]=new q()}var al=new Array();for(av=ai;av<am.length;av++){al[av-ai]=am[av]}if(p(Q,an,al,0)){f();return 1}if(G){document.write("<br>literalTree")}while(1){au=E(y);if(au>=256){var aw,ap;au-=256;if(au==0){break}au--;aw=W(U[au])+ad[au];au=E(Q);if(C[au]>8){ap=W(8);ap|=(W(C[au]-8)<<8)}else{ap=W(C[au])}ap+=O[au];while(aw--){var ax=l[(aa-ap)&32767];A(ax)}}else{A(au)}}}}}}while(!ak);f();t();return 0}JXG.Util.Unzip.prototype.unzipFile=function(ag){var ah;this.unzip();for(ah=0;ah<S.length;ah++){if(S[ah][1]==ag){return S[ah][0]}}};JXG.Util.Unzip.prototype.unzip=function(){if(G){alert(z)}w();return S};function w(){if(G){alert("NEXTFILE")}r=[];var ak=[];N=false;ak[0]=g();ak[1]=g();if(G){alert("type: "+ak[0]+" "+ak[1])}if(ak[0]==parseInt("78",16)&&ak[1]==parseInt("da",16)){if(G){alert("GEONExT-GZIP")}af();if(G){alert(r.join(""))}S[J]=new Array(2);S[J][0]=r.join("");S[J][1]="geonext.gxt";J++}if(ak[0]==parseInt("1f",16)&&ak[1]==parseInt("8b",16)){if(G){alert("GZIP")}T();if(G){alert(r.join(""))}S[J]=new Array(2);S[J][0]=r.join("");S[J][1]="file";J++}if(ak[0]==parseInt("50",16)&&ak[1]==parseInt("4b",16)){N=true;ak[2]=g();ak[3]=g();if(ak[2]==parseInt("3",16)&&ak[3]==parseInt("4",16)){ak[0]=g();ak[1]=g();if(G){alert("ZIP-Version: "+ak[1]+" "+ak[0]/10+"."+ak[0]%10)}D=g();D|=(g()<<8);if(G){alert("gpflags: "+D)}var ag=g();ag|=(g()<<8);if(G){alert("method: "+ag)}g();g();g();g();var al=g();al|=(g()<<8);al|=(g()<<16);al|=(g()<<24);var aj=g();aj|=(g()<<8);aj|=(g()<<16);aj|=(g()<<24);var ao=g();ao|=(g()<<8);ao|=(g()<<16);ao|=(g()<<24);if(G){alert("local CRC: "+al+"\nlocal Size: "+ao+"\nlocal CompSize: "+aj)}var ah=g();ah|=(g()<<8);var an=g();an|=(g()<<8);if(G){alert("filelen "+ah)}ai=0;j=[];while(ah--){var am=g();if(am=="/"|am==":"){ai=0}else{if(ai<ac-1){j[ai++]=String.fromCharCode(am)}}}if(G){alert("nameBuf: "+j)}if(!n){n=j}var ai=0;while(ai<an){am=g();ai++}X=4294967295;K=0;if(ao=0&&fileOut.charAt(n.length-1)=="/"){if(G){alert("skipdir")}}if(ag==8){af();if(G){alert(r.join(""))}S[J]=new Array(2);S[J][0]=r.join("");S[J][1]=j.join("");J++}T()}}}function T(){var al,ai=[],aj,ah,ak,ag,am;if((D&8)){ai[0]=g();ai[1]=g();ai[2]=g();ai[3]=g();if(ai[0]==parseInt("50",16)&&ai[1]==parseInt("4b",16)&&ai[2]==parseInt("07",16)&&ai[3]==parseInt("08",16)){al=g();al|=(g()<<8);al|=(g()<<16);al|=(g()<<24)}else{al=ai[0]|(ai[1]<<8)|(ai[2]<<16)|(ai[3]<<24)}aj=g();aj|=(g()<<8);aj|=(g()<<16);aj|=(g()<<24);ah=g();ah|=(g()<<8);ah|=(g()<<16);ah|=(g()<<24);if(G){alert("CRC:")}}if(N){w()}ai[0]=g();if(ai[0]!=8){if(G){alert("Unknown compression method!")}return 0}D=g();if(G){if((D&~(parseInt("1f",16)))){alert("Unknown flags set!")}}g();g();g();g();g();ak=g();if((D&4)){ai[0]=g();ai[2]=g();B=ai[0]+256*ai[1];if(G){alert("Extra field size: "+B)}for(ag=0;ag<B;ag++){g()}}if((D&8)){ag=0;j=[];while(am=g()){if(am=="7"||am==":"){ag=0}if(ag<ac-1){j[ag++]=am}}if(G){alert("original file name: "+j)}}if((D&16)){while(am=g()){}}if((D&2)){g();g()}af();al=g();al|=(g()<<8);al|=(g()<<16);al|=(g()<<24);ah=g();ah|=(g()<<8);ah|=(g()<<16);ah|=(g()<<24);if(N){w()}}};JXG.Util.Base64={_keyStr:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",encode:function(f){var d=[],n,l,j,m,k,h,g,e=0;f=JXG.Util.Base64._utf8_encode(f);while(e<f.length){n=f.charCodeAt(e++);l=f.charCodeAt(e++);j=f.charCodeAt(e++);m=n>>2;k=((n&3)<<4)|(l>>4);h=((l&15)<<2)|(j>>6);g=j&63;if(isNaN(l)){h=g=64}else{if(isNaN(j)){g=64}}d.push([this._keyStr.charAt(m),this._keyStr.charAt(k),this._keyStr.charAt(h),this._keyStr.charAt(g)].join(""))}return d.join("")},decode:function(g,f){var d=[],p,m,k,n,l,j,h,e=0;g=g.replace(/[^A-Za-z0-9\+\/\=]/g,"");while(e<g.length){n=this._keyStr.indexOf(g.charAt(e++));l=this._keyStr.indexOf(g.charAt(e++));j=this._keyStr.indexOf(g.charAt(e++));h=this._keyStr.indexOf(g.charAt(e++));p=(n<<2)|(l>>4);m=((l&15)<<4)|(j>>2);k=((j&3)<<6)|h;d.push(String.fromCharCode(p));if(j!=64){d.push(String.fromCharCode(m))}if(h!=64){d.push(String.fromCharCode(k))}}d=d.join("");if(f){d=JXG.Util.Base64._utf8_decode(d)}return d},_utf8_encode:function(e){e=e.replace(/\r\n/g,"\n");var d="";for(var g=0;g<e.length;g++){var f=e.charCodeAt(g);if(f<128){d+=String.fromCharCode(f)}else{if((f>127)&&(f<2048)){d+=String.fromCharCode((f>>6)|192);d+=String.fromCharCode((f&63)|128)}else{d+=String.fromCharCode((f>>12)|224);d+=String.fromCharCode(((f>>6)&63)|128);d+=String.fromCharCode((f&63)|128)}}}return d},_utf8_decode:function(d){var f=[],h=0,j=0,g=0,e=0;while(h<d.length){j=d.charCodeAt(h);if(j<128){f.push(String.fromCharCode(j));h++}else{if((j>191)&&(j<224)){g=d.charCodeAt(h+1);f.push(String.fromCharCode(((j&31)<<6)|(g&63)));h+=2}else{g=d.charCodeAt(h+1);e=d.charCodeAt(h+2);f.push(String.fromCharCode(((j&15)<<12)|((g&63)<<6)|(e&63)));h+=3}}}return f.join("")},_destrip:function(j,g){var e=[],h,f,d=[];if(g==null){g=76}j.replace(/ /g,"");h=j.length/g;for(f=0;f<h;f++){e[f]=j.substr(f*g,g)}if(h!=j.length/g){e[e.length]=j.substr(h*g,j.length-(h*g))}for(f=0;f<e.length;f++){d.push(e[f])}return d.join("\n")},decodeAsArray:function(e){var g=this.decode(e),d=[],f;for(f=0;f<g.length;f++){d[f]=g.charCodeAt(f)}return d},decodeGEONExT:function(d){return decodeAsArray(destrip(d),false)}};JXG.Util.asciiCharCodeAt=function(e,d){var f=e.charCodeAt(d);if(f>255){switch(f){case 8364:f=128;break;case 8218:f=130;break;case 402:f=131;break;case 8222:f=132;break;case 8230:f=133;break;case 8224:f=134;break;case 8225:f=135;break;case 710:f=136;break;case 8240:f=137;break;case 352:f=138;break;case 8249:f=139;break;case 338:f=140;break;case 381:f=142;break;case 8216:f=145;break;case 8217:f=146;break;case 8220:f=147;break;case 8221:f=148;break;case 8226:f=149;break;case 8211:f=150;break;case 8212:f=151;break;case 732:f=152;break;case 8482:f=153;break;case 353:f=154;break;case 8250:f=155;break;case 339:f=156;break;case 382:f=158;break;case 376:f=159;break;default:break}}return f};JXG.Util.utf8Decode=function(d){var f=[];var h=0;var k=0,j=0,g=0,e;if(!JXG.exists(d)){return""}while(h<d.length){k=d.charCodeAt(h);if(k<128){f.push(String.fromCharCode(k));h++}else{if((k>191)&&(k<224)){g=d.charCodeAt(h+1);f.push(String.fromCharCode(((k&31)<<6)|(g&63)));h+=2}else{g=d.charCodeAt(h+1);e=d.charCodeAt(h+2);f.push(String.fromCharCode(((k&15)<<12)|((g&63)<<6)|(e&63)));h+=3}}}return f.join("")};JXG.Util.genUUID=function(){var h="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz".split(""),f=new Array(36),e=0,g;for(var d=0;d<36;d++){if(d==8||d==13||d==18||d==23){f[d]="-"}else{if(d==14){f[d]="4"}else{if(e<=2){e=33554432+(Math.random()*16777216)|0}g=e&15;e=e>>4;f[d]=h[(d==19)?(g&3)|8:g]}}}return f.join("")};JXG.PsTricks=new function(){this.psTricksString=""};JXG.PsTricks.convertBoardToPsTricks=function(e){var g=new JXG.Coords(JXG.COORDS_BY_SCREEN,[e.canvasWidth,e.canvasHeight],e);var f=new JXG.Coords(JXG.COORDS_BY_SCREEN,[0,0],e);this.psTricksString="\\begin{pspicture*}("+f.usrCoords[1]+","+g.usrCoords[2]+")("+g.usrCoords[1]+","+f.usrCoords[2]+")\n";for(var d in e.objects){var h=e.objects[d];if(h.type==JXG.OBJECT_TYPE_ARC){if(h.visProp.visible){this.addSector(h)}}}for(var d in e.objects){var h=e.objects[d];if(h.type==JXG.OBJECT_TYPE_POLYGON){if(h.visProp.visible){this.addPolygon(h)}}}for(var d in e.objects){var h=e.objects[d];if(h.type==JXG.OBJECT_TYPE_ANGLE){if(h.visProp.visible){this.addAngle(h)}}}for(var d in e.objects){var h=e.objects[d];if(h.type==JXG.OBJECT_TYPE_CIRCLE){if(h.visProp.visible){this.addCircle(h)}}}for(var d in e.objects){var h=e.objects[d];if(h.type==JXG.OBJECT_TYPE_ARC){if(h.visProp.visible){this.addArc(h)}}}for(var d in e.objects){var h=e.objects[d];if(h.type==JXG.OBJECT_TYPE_LINE){if(h.visProp.visible){this.addLine(h)}}}for(var d in e.objects){var h=e.objects[d];if(h.type==JXG.OBJECT_TYPE_POINT){if(h.visProp.visible){this.addPoint(h)}}}this.psTricksString+="\\end{pspicture*}"};JXG.PsTricks.givePsTricksToDiv=function(d,e){this.convertBoardToPsTricks(e);document.getElementById(d).innerHTML=this.psTricksString};JXG.PsTricks.addPoint=function(d){this.psTricksString+="\\psdot";this.psTricksString+="[linecolor="+this.parseColor(d.visProp.strokeColor)+",";this.psTricksString+="dotstyle=";if(d.visProp.face=="cross"){this.psTricksString+="x, dotsize=";if(d.visProp.size==2){this.psTricksString+="2pt 2"}else{if(d.visProp.size==3){this.psTricksString+="5pt 2"}else{if(d.visProp.size>=4){this.psTricksString+="5pt 3"}}}}else{if(d.visProp.face=="circle"){this.psTricksString+="*, dotsize=";if(d.visProp.size==1){this.psTricksString+="2pt 2"}else{if(d.visProp.size==2){this.psTricksString+="4pt 2"}else{if(d.visProp.size==3){this.psTricksString+="6pt 2"}else{if(d.visProp.size>=4){this.psTricksString+="6pt 3"}}}}}else{if(d.visProp.face=="square"){this.psTricksString+="square*, dotsize=";if(d.visProp.size==2){this.psTricksString+="2pt 2"}else{if(d.visProp.size==3){this.psTricksString+="5pt 2"}else{if(d.visProp.size>=4){this.psTricksString+="5pt 3"}}}}else{if(d.visProp.face=="plus"){this.psTricksString+="+, dotsize=";if(d.visProp.size==2){this.psTricksString+="2pt 2"}else{if(d.visProp.size==3){this.psTricksString+="5pt 2"}else{if(d.visProp.size>=4){this.psTricksString+="5pt 3"}}}}}}}this.psTricksString+="]";this.psTricksString+="("+d.coords.usrCoords[1]+","+d.coords.usrCoords[2]+")\n";this.psTricksString+="\\rput("+(d.coords.usrCoords[1]+15/d.board.stretchY)+","+(d.coords.usrCoords[2]+15/d.board.stretchY)+"){\\small $"+d.name+"$}\n"};JXG.PsTricks.addLine=function(f){var e=new JXG.Coords(JXG.COORDS_BY_USER,f.point1.coords.usrCoords,f.board);var d=new JXG.Coords(JXG.COORDS_BY_USER,f.point2.coords.usrCoords,f.board);if(f.visProp.straightFirst||f.visProp.straightLast){f.board.renderer.calcStraight(f,e,d)}this.psTricksString+="\\psline";this.psTricksString+="[linecolor="+this.parseColor(f.visProp.strokeColor)+", linewidth="+f.visProp.strokeWidth+"px";this.psTricksString+="]";if(f.visProp.firstArrow){if(f.visProp.lastArrow){this.psTricksString+="{<->}"}else{this.psTricksString+="{<-}"}}else{if(f.visProp.lastArrow){this.psTricksString+="{->}"}}this.psTricksString+="("+e.usrCoords[1]+","+e.usrCoords[2]+")("+d.usrCoords[1]+","+d.usrCoords[2]+")\n"};JXG.PsTricks.addCircle=function(e){var d=e.Radius();this.psTricksString+="\\pscircle";this.psTricksString+="[linecolor="+this.parseColor(e.visProp.strokeColor)+", linewidth="+e.visProp.strokeWidth+"px";if(e.visProp.fillColor!="none"&&e.visProp.fillOpacity!=0){this.psTricksString+=", fillstyle=solid, fillcolor="+this.parseColor(e.visProp.fillColor)+", opacity="+e.visProp.fillOpacity.toFixed(5)}this.psTricksString+="]";this.psTricksString+="("+e.midpoint.coords.usrCoords[1]+","+e.midpoint.coords.usrCoords[2]+"){"+d+"}\n"};JXG.PsTricks.addPolygon=function(e){this.psTricksString+="\\pspolygon";this.psTricksString+="[linestyle=none, fillstyle=solid, fillcolor="+this.parseColor(e.visProp.fillColor)+", opacity="+e.visProp.fillOpacity.toFixed(5)+"]";for(var d=0;d<e.vertices.length;d++){this.psTricksString+="("+e.vertices[d].coords.usrCoords[1]+","+e.vertices[d].coords.usrCoords[2]+")"}this.psTricksString+="\n"};JXG.PsTricks.addArc=function(e){var d=e.Radius();var g={};g.coords=new JXG.Coords(JXG.COORDS_BY_USER,[e.board.canvasWidth/(e.board.stretchY),e.midpoint.coords.usrCoords[2]],e.board);var f=JXG.Math.Geometry.trueAngle(g,e.midpoint,e.point2).toFixed(4);var h=JXG.Math.Geometry.trueAngle(g,e.midpoint,e.point3).toFixed(4);this.psTricksString+="\\psarc";this.psTricksString+="[linecolor="+this.parseColor(e.visProp.strokeColor)+", linewidth="+e.visProp.strokeWidth+"px";this.psTricksString+="]";if(e.visProp.lastArrow){if(e.visProp.firstArrow){this.psTricksString+="{<->}"}else{this.psTricksString+="{<-}"}}else{if(e.visProp.firstArrow){this.psTricksString+="{->}"}}this.psTricksString+="("+e.midpoint.coords.usrCoords[1]+","+e.midpoint.coords.usrCoords[2]+"){"+d+"}{"+f+"}{"+h+"}\n"};JXG.PsTricks.addSector=function(e){var d=e.Radius();var g={};g.coords=new JXG.Coords(JXG.COORDS_BY_USER,[e.board.canvasWidth/(e.board.stretchY),e.midpoint.coords.usrCoords[2]],e.board);var f=JXG.Math.Geometry.trueAngle(g,e.midpoint,e.point2).toFixed(4);var h=JXG.Math.Geometry.trueAngle(g,e.midpoint,e.point3).toFixed(4);if(e.visProp.fillColor!="none"&&e.visProp.fillOpacity!=0){this.psTricksString+="\\pswedge";this.psTricksString+="[linestyle=none, fillstyle=solid, fillcolor="+this.parseColor(e.visProp.fillColor)+", opacity="+e.visProp.fillOpacity.toFixed(5)+"]";this.psTricksString+="("+e.midpoint.coords.usrCoords[1]+","+e.midpoint.coords.usrCoords[2]+"){"+d+"}{"+f+"}{"+h+"}\n"}};JXG.PsTricks.addAngle=function(e){var d=e.radius;var g={};g.coords=new JXG.Coords(JXG.COORDS_BY_USER,[e.board.canvasWidth/(e.board.stretchY),e.point2.coords.usrCoords[2]],e.board);var f=JXG.Math.Geometry.trueAngle(g,e.point2,e.point1).toFixed(4);var h=JXG.Math.Geometry.trueAngle(g,e.point2,e.point3).toFixed(4);if(e.visProp.fillColor!="none"&&e.visProp.fillOpacity!=0){this.psTricksString+="\\pswedge";this.psTricksString+="[linestyle=none, fillstyle=solid, fillcolor="+this.parseColor(e.visProp.fillColor)+", opacity="+e.visProp.fillOpacity.toFixed(5)+"]";this.psTricksString+="("+e.point2.coords.usrCoords[1]+","+e.point2.coords.usrCoords[2]+"){"+d+"}{"+f+"}{"+h+"}\n"}this.psTricksString+="\\psarc";this.psTricksString+="[linecolor="+this.parseColor(e.visProp.strokeColor)+", linewidth="+e.visProp.strokeWidth+"px";this.psTricksString+="]";this.psTricksString+="("+e.point2.coords.usrCoords[1]+","+e.point2.coords.usrCoords[2]+"){"+d+"}{"+f+"}{"+h+"}\n"};JXG.PsTricks.parseColor=function(e){var d=JXG.rgbParser(e);return"{[rgb]{"+d[0]/255+","+d[1]/255+","+d[2]/255+"}}"};JXG.Server=function(){};JXG.Server.modules=function(){};JXG.Server.runningCalls={};JXG.Server.handleError=function(d){alert("error occured, server says: "+d.message)};JXG.Server.callServer=function(h,q,j,n){var p,e,m,g,d,l,f;n=n||false;g="";for(f in j){g+="&"+escape(f)+"="+escape(j[f])}l=JXG.toJSON(j);do{d=h+Math.floor(Math.random()*4096)}while(typeof this.runningCalls[d]!="undefined");this.runningCalls[d]={action:h};if(typeof j.module!="undefined"){this.runningCalls[d].module=j.module}p=JXG.serverBase+"JXGServer.py";e="action="+escape(h)+"&id="+d+"&dataJSON="+escape(JXG.Util.Base64.encode(l));this.cbp=function(w){var y,s,t,v,x,k,u,r;y=(new JXG.Util.Unzip(JXG.Util.Base64.decodeAsArray(w))).unzip();if(JXG.isArray(y)&&y.length>0){y=y[0][0]}if(typeof y!="string"){return}s=window.JSON&&window.JSON.parse?window.JSON.parse(y):(new Function("return "+y))();if(s.type=="error"){this.handleError(s)}else{if(s.type=="response"){k=s.id;for(u=0;u<s.fields.length;u++){t=s.fields[u];v=t.namespace+(typeof((new Function("return "+t.namespace))())=="object"?".":".prototype.")+t.name+" = "+t.value;(new Function(v))()}for(u=0;u<s.handler.length;u++){t=s.handler[u];x=[];for(r=0;r<t.parameters.length;r++){x[r]='"'+t.parameters[r]+'": '+t.parameters[r]}v="if(typeof JXG.Server.modules."+this.runningCalls[k].module+' == "undefined")JXG.Server.modules.'+this.runningCalls[k].module+" = {};";v+="JXG.Server.modules."+this.runningCalls[k].module+"."+t.name+"_cb = "+t.callback+";";v+="JXG.Server.modules."+this.runningCalls[k].module+"."+t.name+" = function ("+t.parameters.join(",")+', __JXGSERVER_CB__, __JXGSERVER_SYNC) {if(typeof __JXGSERVER_CB__ == "undefined") __JXGSERVER_CB__ = JXG.Server.modules.'+this.runningCalls[k].module+"."+t.name+"_cb;var __JXGSERVER_PAR__ = {"+x.join(",")+', "module": "'+this.runningCalls[k].module+'", "handler": "'+t.name+'" };JXG.Server.callServer("exec", __JXGSERVER_CB__, __JXGSERVER_PAR__, __JXGSERVER_SYNC);};';(new Function(v))()}delete this.runningCalls[k];q(s.data)}}};this.cb=JXG.bind(this.cbp,this);if(window.XMLHttpRequest){m=new XMLHttpRequest();m.overrideMimeType("text/plain; charset=iso-8859-1")}else{m=new ActiveXObject("Microsoft.XMLHTTP")}if(m){m.open("POST",p,!n);m.setRequestHeader("Content-type","application/x-www-form-urlencoded");if(!n){m.onreadystatechange=(function(k){return function(){switch(m.readyState){case 4:if(m.status!=200){}else{k(m.responseText)}break;default:return false;break}}})(this.cb)}m.send(e);if(n){this.cb(m.responseText)}}else{return false}};JXG.Server.loadModule_cb=function(e){var d;for(d=0;d<e.length;d++){alert(e[d].name+": "+e[d].value)}};JXG.Server.loadModule=function(d){return JXG.Server.callServer("load",JXG.Server.loadModule_cb,{module:d},true)};JXG.Server.load=JXG.Server.loadModule;JXG.DataSource=function(){this.data=[];this.columnHeaders=[];this.rowHeaders=[];return this};JXG.DataSource.prototype.loadFromArray=function(h,k,g){var f,e,d;if(typeof k=="undefined"){k=false}if(typeof g=="undefined"){g=false}if(JXG.isArray(k)){this.columnHeader=k;k=false}if(JXG.isArray(g)){this.rowHeader=g;g=false}this.data=[];if(k){this.columnHeader=[]}if(g){this.rowHeader=[]}if(typeof h!="undefined"){this.data=new Array(h.length);for(f=0;f<h.length;f++){this.data[f]=new Array(h[f].length);for(e=0;e<h[f].length;e++){d=h[f][e];if(""+parseFloat(d)==d){this.data[f][e]=parseFloat(d)}else{if(d!="-"){this.data[f][e]=d}else{this.data[f][e]=NaN}}}}if(k){this.columnHeader=this.data[0].slice(1);this.data=this.data.slice(1)}if(g){this.rowHeader=new Array();for(f=0;f<this.data.length;f++){this.rowHeader.push(this.data[f][0]);this.data[f]=this.data[f].slice(1)}}}return this};JXG.DataSource.prototype.loadFromTable=function(m,f,k){var n,h,g,e,l,d;if(typeof f=="undefined"){f=false}if(typeof k=="undefined"){k=false}if(JXG.isArray(f)){this.columnHeader=f;f=false}if(JXG.isArray(k)){this.rowHeader=k;k=false}this.data=[];if(f){this.columnHeader=[]}if(k){this.rowHeader=[]}m=document.getElementById(m);if(typeof m!="undefined"){n=m.getElementsByTagName("tr");this.data=new Array(n.length);for(h=0;h<n.length;h++){e=n[h].getElementsByTagName("td");this.data[h]=new Array(e.length);for(g=0;g<e.length;g++){l=e[g].innerHTML;if(""+parseFloat(l)==l){this.data[h][g]=parseFloat(l)}else{if(l!="-"){this.data[h][g]=l}else{this.data[h][g]=NaN}}}}if(f){this.columnHeader=this.data[0].slice(1);this.data=this.data.slice(1)}if(k){this.rowHeader=new Array();for(h=0;h<this.data.length;h++){this.rowHeader.push(this.data[h][0]);this.data[h]=this.data[h].slice(1)}}}return this};JXG.DataSource.prototype.addColumn=function(d,f,e){};JXG.DataSource.prototype.addRow=function(d,f,e){};JXG.DataSource.prototype.getColumn=function(e){var d=new Array(this.data.length),f;if(typeof e=="string"){for(f=0;f<this.columnHeader.length;f++){if(e==this.columnHeader[f]){e=f;break}}}for(f=0;f<this.data.length;f++){if(this.data[f].length>e){d[f]=this.data[f][e]}}return d};JXG.DataSource.prototype.getRow=function(f){var d,e;if(typeof f=="string"){for(e=0;e<this.rowHeader.length;e++){if(f==this.rowHeader[e]){f=e;break}}}d=new Array(this.data[f].length);for(e=0;e<this.data[f].length;e++){d[e]=this.data[f][e]}return d};JXG.Board.prototype.construct=function(d,y,H,C,m){var s,D,B,t={},u,g,w,h,e,G,p,A,z,F,E,v,n,f,x,q,r;if(!JXG.exists(y)){y="normal"}else{E=[]}t.lines=[];t.circles=[];t.points=[];t.intersections=[];t.angles=[];t.macros=[];t.functions=[];t.texts=[];t.polygons=[];if(d.search(/\{/)!=-1){G=d.match(/\{/);G=G.length;z=0;for(B=0;B<G;B++){A=d.slice(z).search(/\{/);n=d.slice(A);n=n.slice(0,n.search(/\}/)+1);n=n.replace(/;/g,"?");d=d.slice(0,A)+n+d.slice(A+n.length);z=A+1}}s=d.split(";");for(D=0;D<s.length;D++){s[D]=s[D].replace(/^\s+/,"").replace(/\s+$/,"");if(s[D].search(/\{/)!=-1){s[D]=s[D].replace(/\?/g,";")}if(s[D].search(/Macro/)!=-1){this.addMacro(s[D])}else{if(s[D].length>0){f=false;if(s[D].search(/=/)!=-1){u=s[D].split("=");q=u[1];q=q.replace(/^\s+/,"").replace(/\s+$/,"");if(u[0].search(/\./)!=-1){f=true;u=u[0].split(".");x=u[u.length-1];x=x.replace(/^\s+/,"").replace(/\s+$/,"");u.pop();u=u.join(".");if(y=="macro"){for(B=0;B<H.length;B++){if(u==H[B]){u=C[B]}}}JXG.getReference(this,u).setProperty(x+":"+q)}}if(!f){if(s[D].search(/=/)!=-1){u=s[D].split("=");s[D]=u[1].replace(/^\s+/,"");u=u[0].replace(/\s+$/,"")}else{u=""}r={};v=true;while(v){if(s[D].search(/(.*)draft$/)!=-1){r.draft=true;s[D]=RegExp.$1;s[D]=s[D].replace(/\s+$/,"")}if(s[D].search(/(.*)invisible$/)!=-1){r.visible=false;s[D]=RegExp.$1;s[D]=s[D].replace(/\s+$/,"")}if(s[D].search(/(.*)nolabel$/)!=-1){r.withLabel=false;s[D]=RegExp.$1;s[D]=s[D].replace(/\s+$/,"")}if(s[D].search(/nolabel|invisible|draft/)==-1){v=false}}p=true;if(this.definedMacros){for(B=0;B<this.definedMacros.macros.length;B++){F=new RegExp("^"+this.definedMacros.macros[B][0]+"\\s*\\(");if(s[D].search(F)!=-1){p=false;s[D].match(/\((.*)\)/);G=RegExp.$1;G=G.split(",");for(A=0;A<G.length;A++){G[A].match(/\s*(\S*)\s*/);G[A]=RegExp.$1}t[u]=this.construct(this.definedMacros.macros[B][2],"macro",this.definedMacros.macros[B][1],G,u);t.macros.push(t[u]);break}}}if(p){if(s[D].search(/^[\[\]].*[\[\]]$/)!=-1){s[D].match(/([\[\]])(.*)([\[\]])/);r.straightFirst=(RegExp.$1!="[");r.straightLast=(RegExp.$3=="[");g=(RegExp.$2).replace(/^\s+/,"").replace(/\s+$/,"");if(g.search(/ /)!=-1){g.match(/(\S*) +(\S*)/);g=[];g[0]=RegExp.$1;g[1]=RegExp.$2}if(u!=""){if(!JXG.exists(r.withLabel)){r.withLabel=true}r.name=u;if(y=="macro"){E.push(u)}}if(y=="macro"){if(m!=""){for(B=0;B<E.length;B++){if(g[0]==E[B]){g[0]=m+"."+g[0]}if(g[1]==E[B]){g[1]=m+"."+g[1]}}}for(B=0;B<H.length;B++){if(g[0]==H[B]){g=[C[B],g[1]]}if(g[1]==H[B]){g=[g[0],C[B]]}}if(m!=""){r.id=m+"."+u}}if(typeof g=="string"){g=[JXG.getReference(this,g.charAt(0)),JXG.getReference(this,g.charAt(1))]}else{g=[JXG.getReference(this,g[0]),JXG.getReference(this,g[1])]}t.lines.push(this.create("line",g,r));if(u!=""){t[u]=t.lines[t.lines.length-1]}}else{if(s[D].search(/k\s*\(.*/)!=-1){s[D].match(/k\s*\(\s*(\S.*\S|\S)\s*,\s*(\S.*\S|\S)\s*\)/);g=[];g[0]=RegExp.$1;g[1]=RegExp.$2;for(B=0;B<=1;B++){if(g[B].search(/[\[\]]/)!=-1){g[B].match(/^[\[\]]\s*(\S.*\S)\s*[\[\]]$/);g[B]=RegExp.$1;if(g[B].search(/ /)!=-1){g[B].match(/(\S*) +(\S*)/);g[B]=[];g[B][0]=RegExp.$1;g[B][1]=RegExp.$2}if(y=="macro"){if(m!=""){for(A=0;A<E.length;A++){if(g[B][0]==E[A]){g[B][0]=m+"."+g[B][0]}if(g[B][1]==E[A]){g[B][1]=m+"."+g[B][1]}}}for(A=0;A<H.length;A++){if(g[B][0]==H[A]){g[B]=[C[A],g[B][1]]}if(g[B][1]==H[A]){g[B]=[g[B][0],C[A]]}}}if(typeof g[B]=="string"){g[B]=(function(k,j){return function(){return JXG.getReference(j,k.charAt(0)).Dist(JXG.getReference(j,k.charAt(1)))}})(g[B],this)}else{g[B]=(function(k,j){return function(){return JXG.getReference(j,k[0]).Dist(JXG.getReference(j,k[1]))}})(g[B],this)}}else{if(g[B].search(/[0-9\.\s]+/)!=-1){g[B]=1*g[B]}else{if(y=="macro"){if(m!=""){for(A=0;A<E.length;A++){if(g[B]==E[A]){g[B]=m+"."+E[A]}}}for(A=0;A<H.length;A++){if(g[B]==H[A]){g[B]=C[A]}}}g[B]=JXG.getReference(this,g[B])}}}if(u!=""){if(!JXG.exists(r.withLabel)){r.withLabel=true}r.name=u;if(y=="macro"){if(m!=""){r.id=m+"."+u}E.push(u)}}t.circles.push(this.create("circle",g,r));if(u!=""){t[u]=t.circles[t.circles.length-1]}}else{if(s[D].search(/^[A-Z]+.*\(\s*[0-9\.\-]+\s*[,\|]\s*[0-9\.\-]+\s*\)/)!=-1&&s[D].search(/Macro\((.*)\)/)==-1){s[D].match(/^([A-Z]+\S*)\s*\(\s*(.*)\s*[,\|]\s*(.*)\s*\)$/);u=RegExp.$1;r.name=u;if(y=="macro"){if(m!=""){r.id=m+"."+u}E.push(u)}t.points.push(this.create("point",[1*RegExp.$2,1*RegExp.$3],r));t[u]=t.points[t.points.length-1]}else{if(s[D].search(/^[A-Z]+.*\(.+(([,\|]\s*[0-9\.\-]+\s*){2})?/)!=-1&&s[D].search(/Macro\((.*)\)/)==-1){s[D].match(/([A-Z]+.*)\((.*)\)/);u=RegExp.$1;g=RegExp.$2;u=u.replace(/^\s+/,"").replace(/\s+$/,"");g=g.replace(/^\s+/,"").replace(/\s+$/,"");if(g.search(/[,\|]/)!=-1){g.match(/(\S*)\s*[,\|]\s*([0-9\.]+)\s*[,\|]\s*([0-9\.]+)\s*/);g=[];g[0]=RegExp.$1;g[1]=1*RegExp.$2;g[2]=1*RegExp.$3}else{w=g;g=[];g[0]=w;g[1]=0;g[2]=0}r.name=u;if(y=="macro"){if(m!=""){for(A=0;A<E.length;A++){if(g[0]==E[A]){g[0]=m+"."+E[A]}}}for(A=0;A<H.length;A++){if(g[0]==H[A]){g[0]=C[A]}}if(m!=""){r.id=m+"."+u}E.push(u)}t.points.push(this.create("glider",[g[1],g[2],JXG.getReference(this,g[0])],r));t[u]=t.points[t.points.length-1]}else{if(s[D].search(/&/)!=-1){s[D].match(/(.*)&(.*)/);g=[];g[0]=RegExp.$1;g[1]=RegExp.$2;g[0]=g[0].replace(/\s+$/,"");g[1]=g[1].replace(/^\s+/,"");if(y=="macro"){for(B=0;B<=1;B++){if(m!=""){for(A=0;A<E.length;A++){if(g[B]==E[A]){g[B]=m+"."+E[A]}}}for(A=0;A<H.length;A++){if(g[B]==H[A]){g[B]=C[A]}}}}g[0]=JXG.getReference(this,g[0]);g[1]=JXG.getReference(this,g[1]);if((g[0].elementClass==JXG.OBJECT_CLASS_LINE||g[0].elementClass==JXG.OBJECT_CLASS_CURVE)&&(g[1].elementClass==JXG.OBJECT_CLASS_LINE||g[1].elementClass==JXG.OBJECT_CLASS_CURVE)){if(u!=""){r.name=u;if(y=="macro"){if(m!=""){r.id=m+"."+u}E.push(u)}}w=this.create("intersection",[g[0],g[1],0],r);t.intersections.push(w);if(u!=""){t[r.name]=w}}else{if(u!=""){r.name=u+"_1";if(y=="macro"){if(m!=""){r.id=m+"."+u+"_1"}E.push(u+"_1")}}w=this.create("intersection",[g[0],g[1],0],r);t.intersections.push(w);if(u!=""){t[r.name]=w}if(u!=""){r.name=u+"_2";if(y=="macro"){if(m!=""){r.id=m+"."+u+"_2"}E.push(u+"_2")}}w=this.create("intersection",[g[0],g[1],1],r);t.intersections.push(w);if(u!=""){t[r.name]=w}}}else{if(s[D].search(/\|[\|_]\s*\(/)!=-1){s[D].match(/\|([\|_])\s*\(\s*(\S*)\s*,\s*(\S*)\s*\)/);h=RegExp.$1;if(h=="|"){h="parallel"}else{h="normal"}g=[];g[0]=RegExp.$2;g[1]=RegExp.$3;if(y=="macro"){for(B=0;B<=1;B++){if(m!=""){for(A=0;A<E.length;A++){if(g[B]==E[A]){g[B]=m+"."+E[A]}}}for(A=0;A<H.length;A++){if(g[B]==H[A]){g[B]=C[A]}}}}if(u!=""){r.name=u;if(!JXG.exists(r.withLabel)){r.withLabel=true}if(y=="macro"){if(m!=""){r.id=m+"."+u}E.push(u)}}t.lines.push(this.create(h,[JXG.getReference(this,g[0]),JXG.getReference(this,g[1])],r));if(u!=""){t[u]=t.lines[t.lines.length-1]}}else{if(s[D].search(/^</)!=-1){s[D].match(/<\s*\(\s*(\S*)\s*,\s*(\S*)\s*,\s*(\S*)\s*\)/);g=[];g[0]=RegExp.$1;g[1]=RegExp.$2;g[2]=RegExp.$3;if(y=="macro"){for(B=0;B<=2;B++){if(m!=""){for(A=0;A<E.length;A++){if(g[B]==E[A]){g[B]=m+"."+E[A]}}}for(A=0;A<H.length;A++){if(g[B]==H[A]){g[B]=C[A]}}}}if(u==""){t.lines.push(this.create("angle",[JXG.getReference(this,g[0]),JXG.getReference(this,g[1]),JXG.getReference(this,g[2])],r))}else{e=["alpha","beta","gamma","delta","epsilon","zeta","eta","theta","iota","kappa","lambda","mu","nu","xi","omicron","pi","rho","sigmaf","sigma","tau","upsilon","phi","chi","psi","omega"];h="";for(B=0;B<e.length;B++){if(u==e[B]){r.text="&"+u+";";r.name="&"+u+";";h="greek";break}else{if(B==e.length-1){r.text=u;r.name=u}}}if(!JXG.exists(r.withLabel)){r.withLabel=true}if(y=="macro"){if(m!=""){r.id=m+"."+u}E.push(u)}t.angles.push(this.create("angle",[JXG.getReference(this,g[0]),JXG.getReference(this,g[1]),JXG.getReference(this,g[2])],r));t[u]=t.angles[t.angles.length-1]}}else{if(s[D].search(/([0-9]+)\/([0-9]+)\(\s*(\S*)\s*,\s*(\S*)\s*\)/)!=-1){g=[];g[0]=1*(RegExp.$1)/(1*(RegExp.$2));g[1]=RegExp.$3;g[2]=RegExp.$4;if(y=="macro"){for(B=1;B<=2;B++){if(m!=""){for(A=0;A<E.length;A++){if(g[B]==E[A]){g[B]=m+"."+E[A]}}}for(A=0;A<H.length;A++){if(g[B]==H[A]){g[B]=C[A]}}}}g[1]=JXG.getReference(this,RegExp.$3);g[2]=JXG.getReference(this,RegExp.$4);w=[];w[0]=(function(k,j){return function(){return(1-k[0])*k[1].coords.usrCoords[1]+k[0]*k[2].coords.usrCoords[1]}})(g,this);w[1]=(function(k,j){return function(){return(1-k[0])*k[1].coords.usrCoords[2]+k[0]*k[2].coords.usrCoords[2]}})(g,this);if(u!=""){r.name=u;if(y=="macro"){if(m!=""){r.id=m+"."+u}E.push(u)}}t.points.push(this.create("point",[w[0],w[1]],r));if(u!=""){t[u]=t.points[t.points.length-1]}}else{if(s[D].search(/(\S*)\s*:\s*(.*)/)!=-1){u=RegExp.$1;G=JXG.GeonextParser.geonext2JS(RegExp.$2,this);g=[new Function("x","var y = "+G+"; return y;")];r.name=u;t.functions.push(this.create("functiongraph",g,r));t[u]=t.functions[t.functions.length-1]}else{if(s[D].search(/#(.*)\(\s*([0-9])\s*[,|]\s*([0-9])\s*\)/)!=-1){g=[];g[0]=RegExp.$1;g[1]=1*RegExp.$2;g[2]=1*RegExp.$3;g[0]=g[0].replace(/^\s+/,"").replace(/\s+$/,"");t.texts.push(this.create("text",[g[1],g[2],g[0]],r))}else{if(s[D].search(/(\S*)\s*\[(.*)\]/)!=-1){r.name=RegExp.$1;if(!JXG.exists(r.withLabel)){r.withLabel=true}g=RegExp.$2;g=g.split(",");for(B=0;B<g.length;B++){g[B]=g[B].replace(/^\s+/,"").replace(/\s+$/,"");if(y=="macro"){if(m!=""){for(A=0;A<E.length;A++){if(g[B]==E[A]){g[B]=m+"."+E[A]}}}for(A=0;A<H.length;A++){if(g[B]==H[A]){g[B]=C[A]}}}g[B]=JXG.getReference(this,g[B])}t.polygons.push(this.create("polygon",g,r));t[r.name]=t.polygons[t.polygons.length-1]}}}}}}}}}}}}}}}}this.update();return t};JXG.Board.prototype.addMacro=function(f){var h,d,e="",g;f.match(/(.*)\{(.*)\}/);h=RegExp.$1;d=RegExp.$2;if(h.search(/=/)!=-1){h.match(/\s*(\S*)\s*=.*/);e=RegExp.$1;h=(h.split("="))[1]}h.match(/Macro\((.*)\)/);h=RegExp.$1;h=h.split(",");for(g=0;g<h.length;g++){h[g].match(/\s*(\S*)\s*/);h[g]=RegExp.$1}if(this.definedMacros==null){this.definedMacros={};this.definedMacros.macros=[]}this.definedMacros.macros.push([e,h,d]);if(e!=""){this.definedMacros.defName=this.definedMacros.macros[this.definedMacros.macros.length-1]}};JXG.SVGRenderer=function(d){var e;this.constructor();this.type="svg";this.svgRoot=null;this.suspendHandle=null;this.svgNamespace="http://www.w3.org/2000/svg";this.xlinkNamespace="http://www.w3.org/1999/xlink";this.container=d;this.container.style.MozUserSelect="none";this.container.style.overflow="hidden";if(this.container.style.position==""){this.container.style.position="relative"}this.svgRoot=this.container.ownerDocument.createElementNS(this.svgNamespace,"svg");this.svgRoot.style.overflow="hidden";this.svgRoot.style.width=this.container.style.width;this.svgRoot.style.height=this.container.style.height;this.container.appendChild(this.svgRoot);this.defs=this.container.ownerDocument.createElementNS(this.svgNamespace,"defs");this.svgRoot.appendChild(this.defs);this.filter=this.container.ownerDocument.createElementNS(this.svgNamespace,"filter");this.filter.setAttributeNS(null,"id",this.container.id+"_f1");this.filter.setAttributeNS(null,"width","300%");this.filter.setAttributeNS(null,"height","300%");this.feOffset=this.container.ownerDocument.createElementNS(this.svgNamespace,"feOffset");this.feOffset.setAttributeNS(null,"result","offOut");this.feOffset.setAttributeNS(null,"in","SourceAlpha");this.feOffset.setAttributeNS(null,"dx","5");this.feOffset.setAttributeNS(null,"dy","5");this.filter.appendChild(this.feOffset);this.feGaussianBlur=this.container.ownerDocument.createElementNS(this.svgNamespace,"feGaussianBlur");this.feGaussianBlur.setAttributeNS(null,"result","blurOut");this.feGaussianBlur.setAttributeNS(null,"in","offOut");this.feGaussianBlur.setAttributeNS(null,"stdDeviation","3");this.filter.appendChild(this.feGaussianBlur);this.feBlend=this.container.ownerDocument.createElementNS(this.svgNamespace,"feBlend");this.feBlend.setAttributeNS(null,"in","SourceGraphic");this.feBlend.setAttributeNS(null,"in2","blurOut");this.feBlend.setAttributeNS(null,"mode","normal");this.filter.appendChild(this.feBlend);this.defs.appendChild(this.filter);this.layer=[];for(e=0;e<JXG.Options.layer.numlayers;e++){this.layer[e]=this.container.ownerDocument.createElementNS(this.svgNamespace,"g");this.svgRoot.appendChild(this.layer[e])}this.dashArray=["2, 2","5, 5","10, 10","20, 20","20, 10, 10, 10","20, 5, 10, 5"]};JXG.SVGRenderer.prototype=JXG.AbstractRenderer();JXG.SVGRenderer.prototype.setShadow=function(d){if(d.visPropOld.shadow==d.visProp.shadow){return}if(d.rendNode!=null){if(d.visProp.shadow){d.rendNode.setAttributeNS(null,"filter","url(#"+this.container.id+"_f1)")}else{d.rendNode.removeAttributeNS(null,"filter")}}d.visPropOld.shadow=d.visProp.shadow};JXG.SVGRenderer.prototype.setGradient=function(f){var p=f.rendNode,g,j,h,n,m,e,d,l,k;if(typeof f.visProp.fillOpacity=="function"){j=f.visProp.fillOpacity()}else{j=f.visProp.fillOpacity}j=(j>0)?j:0;if(typeof f.visProp.fillColor=="function"){g=f.visProp.fillColor()}else{g=f.visProp.fillColor}if(f.visProp.gradient=="linear"){h=this.createPrim("linearGradient",f.id+"_gradient");e="0%";d="100%";l="0%";k="0%";h.setAttributeNS(null,"x1",e);h.setAttributeNS(null,"x2",d);h.setAttributeNS(null,"y1",l);h.setAttributeNS(null,"y2",k);n=this.createPrim("stop",f.id+"_gradient1");n.setAttributeNS(null,"offset","0%");n.setAttributeNS(null,"style","stop-color:"+g+";stop-opacity:"+j);m=this.createPrim("stop",f.id+"_gradient2");m.setAttributeNS(null,"offset","100%");m.setAttributeNS(null,"style","stop-color:"+f.visProp.gradientSecondColor+";stop-opacity:"+f.visProp.gradientSecondOpacity);h.appendChild(n);h.appendChild(m);this.defs.appendChild(h);p.setAttributeNS(null,"style","fill:url(#"+this.container.id+"_"+f.id+"_gradient)");f.gradNode1=n;f.gradNode2=m}else{if(f.visProp.gradient=="radial"){h=this.createPrim("radialGradient",f.id+"_gradient");h.setAttributeNS(null,"cx","50%");h.setAttributeNS(null,"cy","50%");h.setAttributeNS(null,"r","50%");h.setAttributeNS(null,"fx",f.visProp.gradientPositionX*100+"%");h.setAttributeNS(null,"fy",f.visProp.gradientPositionY*100+"%");n=this.createPrim("stop",f.id+"_gradient1");n.setAttributeNS(null,"offset","0%");n.setAttributeNS(null,"style","stop-color:"+f.visProp.gradientSecondColor+";stop-opacity:"+f.visProp.gradientSecondOpacity);m=this.createPrim("stop",f.id+"_gradient2");m.setAttributeNS(null,"offset","100%");m.setAttributeNS(null,"style","stop-color:"+g+";stop-opacity:"+j);h.appendChild(n);h.appendChild(m);this.defs.appendChild(h);p.setAttributeNS(null,"style","fill:url(#"+this.container.id+"_"+f.id+"_gradient)");f.gradNode1=n;f.gradNode2=m}else{p.removeAttributeNS(null,"style")}}};JXG.SVGRenderer.prototype.updateGradient=function(g){var e=g.gradNode1,d=g.gradNode2,f,h;if(e==null||d==0){return}if(typeof g.visProp.fillOpacity=="function"){h=g.visProp.fillOpacity()}else{h=g.visProp.fillOpacity}h=(h>0)?h:0;if(typeof g.visProp.fillColor=="function"){f=g.visProp.fillColor()}else{f=g.visProp.fillColor}if(g.visProp.gradient=="linear"){e.setAttributeNS(null,"style","stop-color:"+f+";stop-opacity:"+h);d.setAttributeNS(null,"style","stop-color:"+g.visProp.gradientSecondColor+";stop-opacity:"+g.visProp.gradientSecondOpacity)}else{if(g.visProp.gradient=="radial"){e.setAttributeNS(null,"style","stop-color:"+g.visProp.gradientSecondColor+";stop-opacity:"+g.visProp.gradientSecondOpacity);d.setAttributeNS(null,"style","stop-color:"+f+";stop-opacity:"+h)}}};JXG.SVGRenderer.prototype.displayCopyright=function(f,g){var e=this.createPrim("text","licenseText"),d;e.setAttributeNS(null,"x","20");e.setAttributeNS(null,"y",2+g);e.setAttributeNS(null,"style","font-family:Arial,Helvetica,sans-serif; font-size:"+g+"px; fill:#356AA0; opacity:0.3;");d=document.createTextNode(f);e.appendChild(d);this.appendChildPrim(e,0)};JXG.SVGRenderer.prototype.drawInternalText=function(d){var e=this.createPrim("text",d.id);e.setAttributeNS(null,"class","JXGtext");e.setAttributeNS(null,"style","'alignment-baseline:middle;");d.rendNodeText=document.createTextNode("");e.appendChild(d.rendNodeText);this.appendChildPrim(e,9);return e};JXG.SVGRenderer.prototype.updateInternalText=function(d){d.rendNode.setAttributeNS(null,"x",(d.coords.scrCoords[1])+"px");d.rendNode.setAttributeNS(null,"y",(d.coords.scrCoords[2])+"px");d.updateText();if(d.htmlStr!=d.plaintextStr){d.rendNodeText.data=d.plaintextStr;d.htmlStr=d.plaintextStr}this.transformImage(d,d.transformations)};JXG.SVGRenderer.prototype.drawTicks=function(d){var e=this.createPrim("path",d.id);this.appendChildPrim(e,d.layer);this.appendNodesToElement(d,"path")};JXG.SVGRenderer.prototype.updateTicks=function(g,h,d,k,e){var j="",l,n,f,m=g.ticks.length;for(l=0;l<m;l++){n=g.ticks[l].scrCoords;if(g.ticks[l].major){if((g.board.needsFullUpdate||g.needsRegularUpdate)&&g.labels[l].visProp.visible){this.drawText(g.labels[l])}j+="M "+(n[1]+h)+" "+(n[2]-d)+" L "+(n[1]-h)+" "+(n[2]+d)+" "}else{j+="M "+(n[1]+k)+" "+(n[2]-e)+" L "+(n[1]-k)+" "+(n[2]+e)+" "}}f=this.getElementById(g.id);if(f==null){f=this.createPrim("path",g.id);this.appendChildPrim(f,g.layer);this.appendNodesToElement(g,"path")}f.setAttributeNS(null,"stroke",g.visProp.strokeColor);f.setAttributeNS(null,"stroke-opacity",g.visProp.strokeOpacity);f.setAttributeNS(null,"stroke-width",g.visProp.strokeWidth);this.updatePathPrim(f,j,g.board)};JXG.SVGRenderer.prototype.drawImage=function(d){var e=this.createPrim("image",d.id);e.setAttributeNS(null,"preserveAspectRatio","none");this.appendChildPrim(e,d.layer);d.rendNode=e;this.updateImage(d)};JXG.SVGRenderer.prototype.updateImageURL=function(e){var d;if(JXG.isFunction(e.url)){d=e.url()}else{d=e.url}e.rendNode.setAttributeNS(this.xlinkNamespace,"xlink:href",d)};JXG.SVGRenderer.prototype.transformImage=function(h,f){var j=h.rendNode,e,k="",g,d=f.length;if(d>0){e=this.joinTransforms(h,f);g=e[1][1]+","+e[2][1]+","+e[1][2]+","+e[2][2]+","+e[1][0]+","+e[2][0];k+=" matrix("+g+") ";j.setAttributeNS(null,"transform",k)}};JXG.SVGRenderer.prototype.setArrowAtts=function(d,f,e){if(!d){return}d.setAttributeNS(null,"stroke",f);d.setAttributeNS(null,"stroke-opacity",e);d.setAttributeNS(null,"fill",f);d.setAttributeNS(null,"fill-opacity",e)};JXG.SVGRenderer.prototype.setObjectStrokeColor=function(f,d,e){var j=this.evaluate(d),h=this.evaluate(e),g;h=(h>0)?h:0;if(f.visPropOld.strokeColor==j&&f.visPropOld.strokeOpacity==h){return}g=f.rendNode;if(f.type==JXG.OBJECT_TYPE_TEXT){if(f.display=="html"){g.style.color=j}else{g.setAttributeNS(null,"style","fill:"+j)}}else{g.setAttributeNS(null,"stroke",j);g.setAttributeNS(null,"stroke-opacity",h)}if(f.type==JXG.OBJECT_TYPE_ARROW){this.setArrowAtts(f.rendNodeTriangle,j,h)}else{if(f.elementClass==JXG.OBJECT_CLASS_CURVE||f.elementClass==JXG.OBJECT_CLASS_LINE){if(f.visProp.firstArrow){this.setArrowAtts(f.rendNodeTriangleStart,j,h)}if(f.visProp.lastArrow){this.setArrowAtts(f.rendNodeTriangleEnd,j,h)}}}f.visPropOld.strokeColor=j;f.visPropOld.strokeOpacity=h};JXG.SVGRenderer.prototype.setObjectFillColor=function(f,d,e){var g,j=this.evaluate(d),h=this.evaluate(e);h=(h>0)?h:0;if(f.visPropOld.fillColor==j&&f.visPropOld.fillOpacity==h){return}g=f.rendNode;g.setAttributeNS(null,"fill",j);if(f.type==JXG.OBJECT_TYPE_IMAGE){g.setAttributeNS(null,"opacity",h)}else{g.setAttributeNS(null,"fill-opacity",h)}if(f.visProp.gradient!=null){this.updateGradient(f)}f.visPropOld.fillColor=j;f.visPropOld.fillOpacity=h};JXG.SVGRenderer.prototype.setObjectStrokeWidth=function(g,f){var d=this.evaluate(f),h;try{if(g.visPropOld.strokeWidth==d){return}}catch(j){}h=g.rendNode;this.setPropertyPrim(h,"stroked","true");if(d!=null){this.setPropertyPrim(h,"stroke-width",d)}g.visPropOld.strokeWidth=d};JXG.SVGRenderer.prototype.hide=function(d){var e;if(!JXG.exists(d)){return}e=d.rendNode;if(JXG.exists(e)){e.setAttributeNS(null,"display","none");e.style.visibility="hidden"}};JXG.SVGRenderer.prototype.show=function(d){var e;if(!JXG.exists(d)){return}e=d.rendNode;if(JXG.exists(e)){e.setAttributeNS(null,"display","inline");e.style.visibility="inherit"}};JXG.SVGRenderer.prototype.remove=function(d){if(d!=null&&d.parentNode!=null){d.parentNode.removeChild(d)}};JXG.SVGRenderer.prototype.suspendRedraw=function(){this.suspendHandle=this.svgRoot.suspendRedraw(10000)};JXG.SVGRenderer.prototype.unsuspendRedraw=function(){this.svgRoot.unsuspendRedraw(this.suspendHandle);this.svgRoot.forceRedraw()};JXG.SVGRenderer.prototype.setDashStyle=function(e,d){var g=e.visProp.dash,f=e.rendNode;if(e.visProp.dash>0){f.setAttributeNS(null,"stroke-dasharray",this.dashArray[g-1])}else{if(f.hasAttributeNS(null,"stroke-dasharray")){f.removeAttributeNS(null,"stroke-dasharray")}}};JXG.SVGRenderer.prototype.setGridDash=function(e){var d=this.getElementById(e);this.setPropertyPrim(d,"stroke-dasharray","5, 5")};JXG.SVGRenderer.prototype.createPrim=function(d,f){var e=this.container.ownerDocument.createElementNS(this.svgNamespace,d);e.setAttributeNS(null,"id",this.container.id+"_"+f);e.style.position="absolute";if(d=="path"){e.setAttributeNS(null,"stroke-linecap","butt");e.setAttributeNS(null,"stroke-linejoin","round")}return e};JXG.SVGRenderer.prototype.createArrowHead=function(f,h){var g=f.id+"Triangle",e,d;if(h!=null){g+=h}e=this.createPrim("marker",g);e.setAttributeNS(null,"viewBox","0 0 10 6");e.setAttributeNS(null,"refY","3");e.setAttributeNS(null,"markerUnits","strokeWidth");e.setAttributeNS(null,"markerHeight","12");e.setAttributeNS(null,"markerWidth","10");e.setAttributeNS(null,"orient","auto");e.setAttributeNS(null,"stroke",f.visProp.strokeColor);e.setAttributeNS(null,"stroke-opacity",f.visProp.strokeOpacity);e.setAttributeNS(null,"fill",f.visProp.strokeColor);e.setAttributeNS(null,"fill-opacity",f.visProp.strokeOpacity);d=this.container.ownerDocument.createElementNS(this.svgNamespace,"path");if(h=="End"){e.setAttributeNS(null,"refX","0");d.setAttributeNS(null,"d","M 0 3 L 10 6 L 10 0 z")}else{e.setAttributeNS(null,"refX","10");d.setAttributeNS(null,"d","M 0 0 L 10 3 L 0 6 z")}e.appendChild(d);return e};JXG.SVGRenderer.prototype.makeArrows=function(e){var d;if(e.visPropOld.firstArrow==e.visProp.firstArrow&&e.visPropOld.lastArrow==e.visProp.lastArrow){return}if(e.visProp.firstArrow){d=e.rendNodeTriangleStart;if(d==null){d=this.createArrowHead(e,"End");this.defs.appendChild(d);e.rendNodeTriangleStart=d;e.rendNode.setAttributeNS(null,"marker-start","url(#"+this.container.id+"_"+e.id+"TriangleEnd)")}}else{d=e.rendNodeTriangleStart;if(d!=null){this.remove(d)}}if(e.visProp.lastArrow){d=e.rendNodeTriangleEnd;if(d==null){d=this.createArrowHead(e,"Start");this.defs.appendChild(d);e.rendNodeTriangleEnd=d;e.rendNode.setAttributeNS(null,"marker-end","url(#"+this.container.id+"_"+e.id+"TriangleStart)")}}else{d=e.rendNodeTriangleEnd;if(d!=null){this.remove(d)}}e.visPropOld.firstArrow=e.visProp.firstArrow;e.visPropOld.lastArrow=e.visProp.lastArrow};JXG.SVGRenderer.prototype.updateLinePrim=function(h,e,d,g,f){h.setAttributeNS(null,"x1",e);h.setAttributeNS(null,"y1",d);h.setAttributeNS(null,"x2",g);h.setAttributeNS(null,"y2",f)};JXG.SVGRenderer.prototype.updateCirclePrim=function(f,d,g,e){f.setAttributeNS(null,"cx",(d));f.setAttributeNS(null,"cy",(g));f.setAttributeNS(null,"r",(e))};JXG.SVGRenderer.prototype.updateEllipsePrim=function(e,d,h,g,f){e.setAttributeNS(null,"cx",(d));e.setAttributeNS(null,"cy",(h));e.setAttributeNS(null,"rx",(g));e.setAttributeNS(null,"ry",(f))};JXG.SVGRenderer.prototype.updateRectPrim=function(g,d,j,e,f){g.setAttributeNS(null,"x",(d));g.setAttributeNS(null,"y",(j));g.setAttributeNS(null,"width",(e));g.setAttributeNS(null,"height",(f))};JXG.SVGRenderer.prototype.updatePathPrim=function(e,f,d){e.setAttributeNS(null,"d",f)};JXG.SVGRenderer.prototype.updatePathStringPrim=function(d){var f=" M ",g=" L ",e=f,n=5000,j="",h,l,m=(d.curveType!="plot"),k;if(d.numberPoints<=0){return""}if(m&&d.board.options.curve.RDPsmoothing){d.points=this.RamenDouglasPeuker(d.points,0.5)}k=Math.min(d.points.length,d.numberPoints);for(h=0;h<k;h++){l=d.points[h].scrCoords;if(isNaN(l[1])||isNaN(l[2])){e=f}else{if(l[1]>n){l[1]=n}else{if(l[1]<-n){l[1]=-n}}if(l[2]>n){l[2]=n}else{if(l[2]<-n){l[2]=-n}}j+=[e,l[1]," ",l[2]].join("");e=g}}return j};JXG.SVGRenderer.prototype.updatePathStringPoint=function(h,e,g){var f="",k=h.coords.scrCoords,j=e*Math.sqrt(3)*0.5,d=e*0.5;if(g=="x"){f="M "+(k[1]-e)+" "+(k[2]-e)+" L "+(k[1]+e)+" "+(k[2]+e)+" M "+(k[1]+e)+" "+(k[2]-e)+" L "+(k[1]-e)+" "+(k[2]+e)}else{if(g=="+"){f="M "+(k[1]-e)+" "+(k[2])+" L "+(k[1]+e)+" "+(k[2])+" M "+(k[1])+" "+(k[2]-e)+" L "+(k[1])+" "+(k[2]+e)}else{if(g=="<>"){f="M "+(k[1]-e)+" "+(k[2])+" L "+(k[1])+" "+(k[2]+e)+" L "+(k[1]+e)+" "+(k[2])+" L "+(k[1])+" "+(k[2]-e)+" Z "}else{if(g=="^"){f="M "+(k[1])+" "+(k[2]-e)+" L "+(k[1]-j)+" "+(k[2]+d)+" L "+(k[1]+j)+" "+(k[2]+d)+" Z "}else{if(g=="v"){f="M "+(k[1])+" "+(k[2]+e)+" L "+(k[1]-j)+" "+(k[2]-d)+" L "+(k[1]+j)+" "+(k[2]-d)+" Z "}else{if(g==">"){f="M "+(k[1]+e)+" "+(k[2])+" L "+(k[1]-d)+" "+(k[2]-j)+" L "+(k[1]-d)+" "+(k[2]+j)+" Z "}else{if(g=="<"){f="M "+(k[1]-e)+" "+(k[2])+" L "+(k[1]+d)+" "+(k[2]-j)+" L "+(k[1]+d)+" "+(k[2]+j)+" Z "}}}}}}}return f};JXG.SVGRenderer.prototype.updatePolygonPrim=function(h,g){var j="",e,f,d=g.vertices.length;h.setAttributeNS(null,"stroke","none");for(f=0;f<d-1;f++){e=g.vertices[f].coords.scrCoords;j=j+e[1]+","+e[2];if(f<d-2){j+=" "}}h.setAttributeNS(null,"points",j)};JXG.SVGRenderer.prototype.appendChildPrim=function(d,e){if(typeof e=="undefined"){e=0}else{if(e>=JXG.Options.layer.numlayers){e=JXG.Options.layer.numlayers-1}}this.layer[e].appendChild(d)};JXG.SVGRenderer.prototype.setPropertyPrim=function(e,d,f){if(d=="stroked"){return}e.setAttributeNS(null,d,f)};JXG.SVGRenderer.prototype.drawVerticalGrid=function(g,e,j,f){var h=this.createPrim("path","gridx"),d="";while(g.scrCoords[1]<e.scrCoords[1]+j-1){d+=" M "+g.scrCoords[1]+" "+0+" L "+g.scrCoords[1]+" "+f.canvasHeight+" ";g.setCoordinates(JXG.COORDS_BY_SCREEN,[g.scrCoords[1]+j,g.scrCoords[2]])}this.updatePathPrim(h,d,f);return h};JXG.SVGRenderer.prototype.drawHorizontalGrid=function(g,e,j,f){var h=this.createPrim("path","gridy"),d="";while(g.scrCoords[2]<=e.scrCoords[2]+j-1){d+=" M "+0+" "+g.scrCoords[2]+" L "+f.canvasWidth+" "+g.scrCoords[2]+" ";g.setCoordinates(JXG.COORDS_BY_SCREEN,[g.scrCoords[1],g.scrCoords[2]+j])}this.updatePathPrim(h,d,f);return h};JXG.SVGRenderer.prototype.appendNodesToElement=function(d,e){d.rendNode=this.getElementById(d.id)};JXG.SVGRenderer.prototype.setBuffering=function(e,d){e.rendNode.setAttribute("buffered-rendering",d)};JXG.VMLRenderer=function(d){this.constructor();this.type="vml";this.container=d;this.container.style.overflow="hidden";this.container.onselectstart=function(){return false};this.resolution=10;if(JXG.vmlStylesheet==null){d.ownerDocument.namespaces.add("jxgvml","urn:schemas-microsoft-com:vml");JXG.vmlStylesheet=this.container.ownerDocument.createStyleSheet();JXG.vmlStylesheet.addRule(".jxgvml","behavior:url(#default#VML)")}try{!d.ownerDocument.namespaces.jxgvml&&d.ownerDocument.namespaces.add("jxgvml","urn:schemas-microsoft-com:vml");this.createNode=function(e){return d.ownerDocument.createElement("<jxgvml:"+e+' class="jxgvml">')}}catch(f){this.createNode=function(e){return d.ownerDocument.createElement("<"+e+' xmlns="urn:schemas-microsoft.com:vml" class="jxgvml">')}}this.dashArray=["Solid","1 1","ShortDash","Dash","LongDash","ShortDashDot","LongDashDot"]};JXG.VMLRenderer.prototype=JXG.AbstractRenderer();JXG.VMLRenderer.prototype.setAttr=function(g,d,j,f){try{if(document.documentMode==8){g[d]=j}else{g.setAttribute(d,j,f)}}catch(h){}};JXG.VMLRenderer.prototype.setShadow=function(d){var e=d.rendNodeShadow;if(!e){return}if(d.visPropOld.shadow==d.visProp.shadow){return}if(d.visProp.shadow){this.setAttr(e,"On","True");this.setAttr(e,"Offset","3pt,3pt");this.setAttr(e,"Opacity","60%");this.setAttr(e,"Color","#aaaaaa")}else{this.setAttr(e,"On","False")}d.visPropOld.shadow=d.visProp.shadow};JXG.VMLRenderer.prototype.setGradient=function(e){var d=e.rendNodeFill;if(e.visProp.gradient=="linear"){this.setAttr(d,"type","gradient");this.setAttr(d,"color2",e.visProp.gradientSecondColor);this.setAttr(d,"opacity2",e.visProp.gradientSecondOpacity);this.setAttr(d,"angle",e.visProp.gradientAngle)}else{if(e.visProp.gradient=="radial"){this.setAttr(d,"type","gradientradial");this.setAttr(d,"color2",e.visProp.gradientSecondColor);this.setAttr(d,"opacity2",e.visProp.gradientSecondOpacity);this.setAttr(d,"focusposition",e.visProp.gradientPositionX*100+"%,"+e.visProp.gradientPositionY*100+"%");this.setAttr(d,"focussize","0,0")}else{this.setAttr(d,"type","solid")}}};JXG.VMLRenderer.prototype.updateGradient=function(d){};JXG.VMLRenderer.prototype.addShadowToGroup=function(d,f){var e,g;if(d=="lines"){for(e in f.objects){g=f.objects[e];if(g.elementClass==JXG.OBJECT_CLASS_LINE){this.addShadowToElement(g)}}}else{if(d=="points"){for(e in f.objects){g=f.objects[e];if(g.elementClass==JXG.OBJECT_CLASS_POINT){this.addShadowToElement(g)}}}else{if(d=="circles"){for(e in f.objects){g=f.objects[e];if(g.elementClass==JXG.OBJECT_CLASS_CIRCLE){this.addShadowToElement(g)}}}}}f.fullUpdate()};JXG.VMLRenderer.prototype.displayCopyright=function(f,g){var e,d;e=this.createNode("textbox");e.style.position="absolute";this.setAttr(e,"id",this.container.id+"_licenseText");e.style.left=20;e.style.top=(2);e.style.fontSize=(g);e.style.color="#356AA0";e.style.fontFamily="Arial,Helvetica,sans-serif";this.setAttr(e,"opacity","30%");e.style.filter="alpha(opacity = 30)";d=document.createTextNode(f);e.appendChild(d);this.appendChildPrim(e,0)};JXG.VMLRenderer.prototype.drawInternalText=function(d){var e;e=this.createNode("textbox");e.style.position="absolute";if(document.documentMode==8){e.setAttribute("class","JXGtext")}else{e.setAttribute("className",9)}d.rendNodeText=document.createTextNode("");e.appendChild(d.rendNodeText);this.appendChildPrim(e,9);return e};JXG.VMLRenderer.prototype.updateInternalText=function(d){d.rendNode.style.left=(d.coords.scrCoords[1])+"px";d.rendNode.style.top=(d.coords.scrCoords[2]-this.vOffsetText)+"px";d.updateText();if(d.htmlStr!=d.plaintextStr){d.rendNodeText.data=d.plaintextStr;d.htmlStr=d.plaintextStr}this.transformImage(d,d.transformations)};JXG.VMLRenderer.prototype.drawTicks=function(e){var d=this.createPrim("path",e.id);this.appendChildPrim(d,e.layer);this.appendNodesToElement(e,"path")};JXG.VMLRenderer.prototype.updateTicks=function(h,j,e,k,g){var f=[],l,m,n,p,d=this.resolution;m=h.ticks.length;for(l=0;l<m;l++){n=h.ticks[l].scrCoords;if(h.ticks[l].major){if((h.board.needsFullUpdate||h.needsRegularUpdate)&&h.labels[l].visProp.visible){this.drawText(h.labels[l])}f.push(" m "+Math.round(d*(n[1]+j))+", "+Math.round(d*(n[2]-e))+" l "+Math.round(d*(n[1]-j))+", "+Math.round(d*(n[2]+e))+" ")}else{f.push(" m "+Math.round(d*(n[1]+k))+", "+Math.round(d*(n[2]-g))+" l "+Math.round(d*(n[1]-k))+", "+Math.round(d*(n[2]+g))+" ")}}p=this.getElementById(h.id);if(p==null){p=this.createPrim("path",h.id);this.appendChildPrim(p,h.layer);this.appendNodesToElement(h,"path")}this.setAttr(p,"stroked","true");this.setAttr(p,"strokecolor",h.visProp.strokeColor,1);this.setAttr(p,"strokeweight",h.visProp.strokeWidth);this.updatePathPrim(p,f,h.board)};JXG.VMLRenderer.prototype.drawImage=function(d){var e;e=this.container.ownerDocument.createElement("img");e.style.position="absolute";this.setAttr(e,"id",this.container.id+"_"+d.id);this.container.appendChild(e);this.appendChildPrim(e,d.layer);e.style.filter=e.style["-ms-filter"]="progid:DXImageTransform.Microsoft.Matrix(M11='1.0', sizingMethod='auto expand')";d.rendNode=e;this.updateImage(d)};JXG.VMLRenderer.prototype.updateImageURL=function(e){var d;if(JXG.isFunction(e.url)){d=e.url()}else{d=e.url}this.setAttr(e.rendNode,"src",d)};JXG.VMLRenderer.prototype.transformImage=function(g,y){var k=g.rendNode,l,f=[],z,u=y.length,e,d,n,j,q,r,x,v;if(g.type==JXG.OBJECT_TYPE_TEXT){g.updateSize()}if(u>0){v=g.rendNode.style.filter.toString();if(!v.match(/DXImageTransform/)){k.style.filter=k.style["-ms-filter"]="progid:DXImageTransform.Microsoft.Matrix(M11='1.0', sizingMethod='auto expand') "+v}l=this.joinTransforms(g,y);f[0]=JXG.Math.matVecMult(l,g.coords.scrCoords);f[0][1]/=f[0][0];f[0][2]/=f[0][0];f[1]=JXG.Math.matVecMult(l,[1,g.coords.scrCoords[1]+g.size[0],g.coords.scrCoords[2]]);f[1][1]/=f[1][0];f[1][2]/=f[1][0];f[2]=JXG.Math.matVecMult(l,[1,g.coords.scrCoords[1]+g.size[0],g.coords.scrCoords[2]-g.size[1]]);f[2][1]/=f[2][0];f[2][2]/=f[2][0];f[3]=JXG.Math.matVecMult(l,[1,g.coords.scrCoords[1],g.coords.scrCoords[2]-g.size[1]]);f[3][1]/=f[3][0];f[3][2]/=f[3][0];e=f[0][1];n=f[0][1];d=f[0][2];j=f[0][2];for(q=1;q<4;q++){e=Math.max(e,f[q][1]);n=Math.min(n,f[q][1]);d=Math.max(d,f[q][2]);j=Math.min(j,f[q][2])}k.style.left=n+"px";k.style.top=j+"px";k.filters.item(0).M11=l[1][1];k.filters.item(0).M12=l[1][2];k.filters.item(0).M21=l[2][1];k.filters.item(0).M22=l[2][2]}};JXG.VMLRenderer.prototype.hide=function(d){var e;if(!JXG.exists(d)){return}e=d.rendNode;if(JXG.exists(e)){e.style.visibility="hidden"}};JXG.VMLRenderer.prototype.show=function(d){var e;if(!JXG.exists(d)){return}e=d.rendNode;if(JXG.exists(e)){e.style.visibility="inherit"}};JXG.VMLRenderer.prototype.setDashStyle=function(e,d){var f;if(d.dash>=0){f=e.rendNodeStroke;this.setAttr(f,"dashstyle",this.dashArray[d.dash])}};JXG.VMLRenderer.prototype.setObjectStrokeColor=function(g,d,e){var k=this.evaluate(d),j=this.evaluate(e),h,f;j=(j>0)?j:0;if(g.visPropOld.strokeColor==k&&g.visPropOld.strokeOpacity==j){return}if(g.type==JXG.OBJECT_TYPE_TEXT){g.rendNode.style.color=k}else{h=g.rendNode;this.setAttr(h,"stroked","true");this.setAttr(h,"strokecolor",k);if(g.id=="gridx"){f=this.getElementById("gridx_stroke")}else{if(g.id=="gridy"){f=this.getElementById("gridy_stroke")}else{f=g.rendNodeStroke}}if(JXG.exists(j)){this.setAttr(f,"opacity",(j*100)+"%")}}g.visPropOld.strokeColor=k;g.visPropOld.strokeOpacity=j};JXG.VMLRenderer.prototype.setObjectFillColor=function(g,d,e){var j=this.evaluate(d),h=this.evaluate(e),f;h=(h>0)?h:0;if(g.visPropOld.fillColor==j&&g.visPropOld.fillOpacity==h){return}if(j=="none"){this.setAttr(g.rendNode,"filled","false")}else{this.setAttr(g.rendNode,"filled","true");this.setAttr(g.rendNode,"fillcolor",j);if(JXG.exists(h)&&g.rendNodeFill){this.setAttr(g.rendNodeFill,"opacity",(h*100)+"%")}}if(g.type==JXG.OBJECT_TYPE_IMAGE){f=g.rendNode.style.filter.toString();if(f.match(/alpha/)){g.rendNode.style.filter=f.replace(/alpha\(opacity *= *[0-9\.]+\)/,"alpha(opacity = "+(h*100)+")")}else{g.rendNode.style.filter+=" alpha(opacity = "+(h*100)+")"}}g.visPropOld.fillColor=j;g.visPropOld.fillOpacity=h};JXG.VMLRenderer.prototype.remove=function(d){if(d!=null){d.removeNode(true)}};JXG.VMLRenderer.prototype.suspendRedraw=function(){this.container.style.display="none"};JXG.VMLRenderer.prototype.unsuspendRedraw=function(){this.container.style.display=""};JXG.VMLRenderer.prototype.setAttributes=function(h,g,l,f){var k,e,j,d=g.length;for(e=0;e<d;e++){j=g[e];if(f[j]!=null){k=this.evaluate(f[j]);k=(k>0)?k:0;this.setAttr(h,l[e],k)}}};JXG.VMLRenderer.prototype.setGridDash=function(e,d){var d=this.getElementById(e+"_stroke");this.setAttr(d,"dashstyle","Dash")};JXG.VMLRenderer.prototype.setObjectStrokeWidth=function(f,e){var d=this.evaluate(e),g;if(f.visPropOld.strokeWidth==d){return}g=f.rendNode;this.setPropertyPrim(g,"stroked","true");if(d!=null){this.setPropertyPrim(g,"stroke-width",d)}f.visPropOld.strokeWidth=d};JXG.VMLRenderer.prototype.createPrim=function(e,k){var f,d=this.createNode("fill"),j=this.createNode("stroke"),h=this.createNode("shadow"),g;this.setAttr(d,"id",this.container.id+"_"+k+"_fill");this.setAttr(j,"id",this.container.id+"_"+k+"_stroke");this.setAttr(h,"id",this.container.id+"_"+k+"_shadow");if(e=="circle"||e=="ellipse"){f=this.createNode("oval");f.appendChild(d);f.appendChild(j);f.appendChild(h)}else{if(e=="polygon"||e=="path"||e=="shape"||e=="line"){f=this.createNode("shape");f.appendChild(d);f.appendChild(j);f.appendChild(h);g=this.createNode("path");this.setAttr(g,"id",this.container.id+"_"+k+"_path");f.appendChild(g)}else{f=this.createNode(e);f.appendChild(d);f.appendChild(j);f.appendChild(h)}}f.style.position="absolute";this.setAttr(f,"id",this.container.id+"_"+k);return f};JXG.VMLRenderer.prototype.appendNodesToElement=function(d,e){if(e=="shape"||e=="path"||e=="polygon"){d.rendNodePath=this.getElementById(d.id+"_path")}d.rendNodeFill=this.getElementById(d.id+"_fill");d.rendNodeStroke=this.getElementById(d.id+"_stroke");d.rendNodeShadow=this.getElementById(d.id+"_shadow");d.rendNode=this.getElementById(d.id)};JXG.VMLRenderer.prototype.makeArrows=function(e){var d;if(e.visPropOld.firstArrow==e.visProp.firstArrow&&e.visPropOld.lastArrow==e.visProp.lastArrow){return}if(e.visProp.firstArrow){d=e.rendNodeStroke;this.setAttr(d,"startarrow","block");this.setAttr(d,"startarrowlength","long")}else{d=e.rendNodeStroke;if(d!=null){this.setAttr(d,"startarrow","none")}}if(e.visProp.lastArrow){d=e.rendNodeStroke;this.setAttr(d,"id",this.container.id+"_"+e.id+"stroke");this.setAttr(d,"endarrow","block");this.setAttr(d,"endarrowlength","long")}else{d=e.rendNodeStroke;if(d!=null){this.setAttr(d,"endarrow","none")}}e.visPropOld.firstArrow=e.visProp.firstArrow;e.visPropOld.lastArrow=e.visProp.lastArrow};JXG.VMLRenderer.prototype.updateLinePrim=function(l,e,d,g,f,j){var h,k=this.resolution;h=["m ",k*e,", ",k*d," l ",k*g,", ",k*f];this.updatePathPrim(l,h,j)};JXG.VMLRenderer.prototype.updateCirclePrim=function(f,d,g,e){f.style.left=(d-e)+"px";f.style.top=(g-e)+"px";f.style.width=(e*2)+"px";f.style.height=(e*2)+"px"};JXG.VMLRenderer.prototype.updateRectPrim=function(g,d,j,e,f){g.style.left=(d)+"px";g.style.top=(j)+"px";if(e>=0){g.style.width=(e)+"px"}if(f>=0){g.style.height=(f)+"px"}};JXG.VMLRenderer.prototype.updateEllipsePrim=function(e,d,h,g,f){e.style.left=(d-g)+"px";e.style.top=(h-f)+"px";e.style.width=(g*2)+"px";e.style.height=(f*2)+"px"};JXG.VMLRenderer.prototype.updatePathPrim=function(f,g,e){var d=e.canvasWidth,h=e.canvasHeight;f.style.width=d;f.style.height=h;this.setAttr(f,"coordsize",[(this.resolution*d),(this.resolution*h)].join(","));this.setAttr(f,"path",g.join(""))};JXG.VMLRenderer.prototype.updatePathStringPrim=function(e){var l=[],k,n,d=this.resolution,j=Math.round,g=" m ",h=" l ",f=g,p=(e.curveType!="plot"),m=Math.min(e.numberPoints,8192);if(e.numberPoints<=0){return""}if(p&&e.board.options.curve.RDPsmoothing){e.points=this.RamenDouglasPeuker(e.points,1)}m=Math.min(m,e.points.length);for(k=0;k<m;k++){n=e.points[k].scrCoords;if(isNaN(n[1])||isNaN(n[2])){f=g}else{if(n[1]>20000){n[1]=20000}else{if(n[1]<-20000){n[1]=-20000}}if(n[2]>20000){n[2]=20000}else{if(n[2]<-20000){n[2]=-20000}}l.push([f,j(d*n[1]),", ",j(d*n[2])].join(""));f=h}}l.push(" e");return l};JXG.VMLRenderer.prototype.updatePathStringPoint=function(h,e,g){var f=[],l=h.coords.scrCoords,k=e*Math.sqrt(3)*0.5,d=e*0.5,j=this.resolution;if(g=="x"){f.push(["m ",(j*(l[1]-e)),", ",(j*(l[2]-e))," l ",(j*(l[1]+e)),", ",(j*(l[2]+e))," m ",(j*(l[1]+e)),", ",(j*(l[2]-e))," l ",(j*(l[1]-e)),", ",(j*(l[2]+e))].join(""))}else{if(g=="+"){f.push(["m ",(j*(l[1]-e)),", ",(j*(l[2]))," l ",(j*(l[1]+e)),", ",(j*(l[2]))," m ",(j*(l[1])),", ",(j*(l[2]-e))," l ",(j*(l[1])),", ",(j*(l[2]+e))].join(""))}else{if(g=="<>"){f.push(["m ",(j*(l[1]-e)),", ",(j*(l[2]))," l ",(j*(l[1])),", ",(j*(l[2]+e))," l ",(j*(l[1]+e)),", ",(j*(l[2]))," l ",(j*(l[1])),", ",(j*(l[2]-e))," x e "].join(""))}else{if(g=="^"){f.push(["m ",(j*(l[1])),", ",(j*(l[2]-e))," l ",Math.round(j*(l[1]-k)),", ",(j*(l[2]+d))," l ",Math.round(j*(l[1]+k)),", ",(j*(l[2]+d))," x e "].join(""))}else{if(g=="v"){f.push(["m ",(j*(l[1])),", ",(j*(l[2]+e))," l ",Math.round(j*(l[1]-k)),", ",(j*(l[2]-d))," l ",Math.round(j*(l[1]+k)),", ",(j*(l[2]-d))," x e "].join(""))}else{if(g==">"){f.push(["m ",(j*(l[1]+e)),", ",(j*(l[2]))," l ",(j*(l[1]-d)),", ",Math.round(j*(l[2]-k))," l ",(j*(l[1]-d)),", ",Math.round(j*(l[2]+k))," l ",(j*(l[1]+e)),", ",(j*(l[2]))].join(""))}else{if(g=="<"){f.push(["m ",(j*(l[1]-e)),", ",(j*(l[2]))," l ",(j*(l[1]+d)),", ",Math.round(j*(l[2]-k))," l ",(j*(l[1]+d)),", ",Math.round(j*(l[2]+k))," x e "].join(""))}}}}}}}return f};JXG.VMLRenderer.prototype.updatePolygonPrim=function(h,f){var j=f.vertices[0].coords.scrCoords[1],e=f.vertices[0].coords.scrCoords[1],g=f.vertices[0].coords.scrCoords[2],d=f.vertices[0].coords.scrCoords[2],k,m=f.vertices.length,n,q,p,l=[];this.setAttr(h,"stroked","false");for(k=1;k<m-1;k++){n=f.vertices[k].coords.scrCoords;if(n[1]<j){j=n[1]}else{if(n[1]>e){e=n[1]}}if(n[2]<g){g=n[2]}else{if(n[2]>d){d=n[2]}}}q=Math.round(e-j);p=Math.round(d-g);if(!isNaN(q)&&!isNaN(p)){h.style.width=q;h.style.height=p;this.setAttr(h,"coordsize",q+","+p)}n=f.vertices[0].coords.scrCoords;l.push(["m ",n[1],",",n[2]," l "].join(""));for(k=1;k<m-1;k++){n=f.vertices[k].coords.scrCoords;l.push(n[1]+","+n[2]);if(k<m-2){l.push(", ")}}l.push(" x e");this.setAttr(h,"path",l.join(""))};JXG.VMLRenderer.prototype.appendChildPrim=function(d,e){if(!JXG.exists(e)){e=0}d.style.zIndex=e;this.container.appendChild(d)};JXG.VMLRenderer.prototype.setPropertyPrim=function(h,g,j){var f="",d,e;switch(g){case"stroke":f="strokecolor";break;case"stroke-width":f="strokeweight";break;case"stroke-dasharray":f="dashstyle";break}if(f!=""){e=this.evaluate(j);this.setAttr(h,f,e)}};JXG.VMLRenderer.prototype.drawVerticalGrid=function(g,e,j,f){var h=this.createPrim("path","gridx"),d=[];while(g.scrCoords[1]<e.scrCoords[1]+j-1){d.push(" m "+(this.resolution*g.scrCoords[1])+", "+0+" l "+(this.resolution*g.scrCoords[1])+", "+(this.resolution*f.canvasHeight)+" ");g.setCoordinates(JXG.COORDS_BY_SCREEN,[g.scrCoords[1]+j,g.scrCoords[2]])}this.updatePathPrim(h,d,f);return h};JXG.VMLRenderer.prototype.drawHorizontalGrid=function(g,e,j,f){var h=this.createPrim("path","gridy"),d=[];while(g.scrCoords[2]<=e.scrCoords[2]+j-1){d.push(" m "+0+", "+(this.resolution*g.scrCoords[2])+" l "+(this.resolution*f.canvasWidth)+", "+(this.resolution*g.scrCoords[2])+" ");g.setCoordinates(JXG.COORDS_BY_SCREEN,[g.scrCoords[1],g.scrCoords[2]+j])}this.updatePathPrim(h,d,f);return h};JXG.CanvasRenderer=function(d){var e;this.constructor();this.type="canvas";this.canvasRoot=null;this.suspendHandle=null;this.canvasId=JXG.Util.genUUID();this.canvasNamespace=null;this.container=d;this.container.style.MozUserSelect="none";this.container.style.overflow="hidden";if(this.container.style.position==""){this.container.style.position="relative"}this.container.innerHTML='<canvas id="'+this.canvasId+'" width="'+this.container.style.width+'" height="'+this.container.style.height+'"></canvas>';this.canvasRoot=document.getElementById(this.canvasId);this.context=this.canvasRoot.getContext("2d");this.dashArray=[[2,2],[5,5],[10,10],[20,20],[20,10,10,10],[20,5,10,5]]};JXG.CanvasRenderer.prototype=JXG.AbstractRenderer();JXG.CanvasRenderer.prototype.updateStencilBuffer=function(e){var d;if(typeof e.board.highlightedObjects[e.id]!="undefined"&&e.board.highlightedObjects[e.id]!=null){if(e.visProp.strokeColor!="none"){this.context.strokeStyle=e.visProp.highlightStrokeColor}if(e.visProp.fillColor!="none"){this.context.fillStyle=e.visProp.highlightFillColor}this.context.lineWidth=parseFloat(e.visProp.strokeWidth);this.context.globalAlpha=e.visProp.highlightFillOpacity;d=true}else{if(e.visProp.strokeColor!="none"){this.context.strokeStyle=e.visProp.strokeColor}if(e.visProp.fillColor!="none"){this.context.fillStyle=e.visProp.fillColor}this.context.lineWidth=parseFloat(e.visProp.strokeWidth);this.context.globalAlpha=e.visProp.fillOpacity;d=false}return d};JXG.CanvasRenderer.prototype.setColor=function(e,d){var g=true,f=false;if(!JXG.exists(e.board)||!JXG.exists(e.board.highlightedObjects)){f=true}if(d=="fill"){if(!f&&typeof e.board.highlightedObjects[e.id]!="undefined"&&e.board.highlightedObjects[e.id]!=null){if(e.visProp.highlightFillColor!="none"){this.context.globalAlpha=e.visProp.highlightFillOpacity;this.context.fillStyle=e.visProp.highlightFillColor}else{g=false}}else{if(e.visProp.fillColor!="none"){this.context.globalAlpha=e.visProp.fillOpacity;this.context.fillStyle=e.visProp.fillColor}else{g=false}}}else{if(!f&&typeof e.board.highlightedObjects[e.id]!="undefined"&&e.board.highlightedObjects[e.id]!=null){if(e.visProp.highlightStrokeColor!="none"){this.context.globalAlpha=e.visProp.highlightStrokeOpacity;this.context.strokeStyle=e.visProp.highlightStrokeColor}else{g=false}}else{if(e.visProp.strokeColor!="none"){this.context.globalAlpha=e.visProp.strokeOpacity;this.context.strokeStyle=e.visProp.strokeColor}else{g=false}}this.context.lineWidth=parseFloat(e.visProp.strokeWidth)}return g};JXG.CanvasRenderer.prototype.fill=function(d){this.context.save();if(this.setColor(d,"fill")){this.context.fill()}this.context.restore()};JXG.CanvasRenderer.prototype.stroke=function(d){this.context.save();if(d.visProp.dash>0){}else{this.context.lineDashArray=[]}if(this.setColor(d,"stroke")){this.context.stroke()}this.context.restore()};JXG.CanvasRenderer.prototype.setShadow=function(d){if(d.visPropOld.shadow==d.visProp.shadow){return}d.visPropOld.shadow=d.visProp.shadow};JXG.CanvasRenderer.prototype.setGradient=function(f){var p=f.rendNode,g,j,h,n,m,e,d,l,k;if(typeof f.visProp.fillOpacity=="function"){j=f.visProp.fillOpacity()}else{j=f.visProp.fillOpacity}j=(j>0)?j:0;if(typeof f.visProp.fillColor=="function"){g=f.visProp.fillColor()}else{g=f.visProp.fillColor}};JXG.CanvasRenderer.prototype.updateGradient=function(d){};JXG.CanvasRenderer.prototype.displayCopyright=function(e,d){this.context.save();this.context.font=d+"px Arial";this.context.fillStyle="#aaa";this.context.lineWidth=0.5;this.context.fillText(e,10,2+d);this.context.restore()};JXG.CanvasRenderer.prototype.drawInternalText=function(f){var d,e=this.context;e.save();if(this.setColor(f,"stroke")){if(typeof f.board.highlightedObjects[f.id]!="undefined"&&f.board.highlightedObjects[f.id]!=null){e.fillStyle=f.visProp.highlightStrokeColor}else{e.fillStyle=f.visProp.strokeColor}if(f.visProp.fontSize){if(typeof f.visProp.fontSize=="function"){d=f.visProp.fontSize();e.font=(d>0?d:0)+"px Arial"}else{e.font=(f.visProp.fontSize)+"px Arial"}}this.transformImage(f,f.transformations,e);e.fillText(f.plaintextStr,f.coords.scrCoords[1],f.coords.scrCoords[2])}e.restore();return null};JXG.CanvasRenderer.prototype.updateInternalText=function(d){this.drawInternalText(d)};JXG.CanvasRenderer.prototype.updateTextStyle=function(d){};JXG.CanvasRenderer.prototype.drawTicks=function(d){};JXG.CanvasRenderer.prototype.updateTicks=function(g,j,f,k,h){var e,l,d=g.ticks.length;this.context.beginPath();for(e=0;e<d;e++){l=g.ticks[e].scrCoords;if(g.ticks[e].major){if((g.board.needsFullUpdate||g.needsRegularUpdate||g.labels[e].display=="internal")&&g.labels[e].visProp.visible){this.drawText(g.labels[e])}this.context.moveTo(l[1]+j,l[2]-f);this.context.lineTo(l[1]-j,l[2]+f)}else{this.context.moveTo(l[1]+k,l[2]-h);this.context.lineTo(l[1]-k,l[2]+h)}}this.stroke(g)};JXG.CanvasRenderer.prototype.drawImage=function(d){d.rendNode=new Image();d._src="";this.updateImage(d)};JXG.CanvasRenderer.prototype.updateImageURL=function(e){var d;if(JXG.isFunction(e.url)){d=e.url()}else{d=e.url}if(e._src!=d){e.imgIsLoaded=false;e.rendNode.src=d;e._src=d;return true}else{return false}};JXG.CanvasRenderer.prototype.updateImage=function(e){var d=this.context,f=this.evaluate(e.visProp.fillOpacity),g=JXG.bind(function(){e.imgIsLoaded=true;if(e.size[0]<=0||e.size[1]<=0){return}d.save();d.globalAlpha=f;this.transformImage(e,e.transformations,d);d.drawImage(e.rendNode,e.coords.scrCoords[1],e.coords.scrCoords[2]-e.size[1],e.size[0],e.size[1]);d.restore()},this);if(this.updateImageURL(e)){e.rendNode.onload=g}else{if(e.imgIsLoaded){g()}}};JXG.CanvasRenderer.prototype.transformImage=function(h,g,f){var e,d=g.length;if(d>0){e=this.joinTransforms(h,g);if(Math.abs(JXG.Math.Numerics.det(e))>=JXG.Math.eps){f.transform(e[1][1],e[2][1],e[1][2],e[2][2],e[1][0],e[2][0])}}};JXG.CanvasRenderer.prototype.setArrowAtts=function(d,f,e){};JXG.CanvasRenderer.prototype.setObjectStrokeColor=function(f,d,e){};JXG.CanvasRenderer.prototype.setObjectFillColor=function(f,d,e){};JXG.CanvasRenderer.prototype.setObjectStrokeWidth=function(e,d){};JXG.CanvasRenderer.prototype.hide=function(d){if(JXG.exists(d.rendNode)){d.rendNode.style.visibility="hidden"}};JXG.CanvasRenderer.prototype.show=function(d){if(JXG.exists(d.rendNode)){d.rendNode.style.visibility="inherit"}};JXG.CanvasRenderer.prototype.remove=function(d){if(d!=null&&d.parentNode!=null){d.parentNode.removeChild(d)}};JXG.CanvasRenderer.prototype.suspendRedraw=function(){this.context.save();this.context.clearRect(0,0,this.canvasRoot.width,this.canvasRoot.height);this.displayCopyright(JXG.JSXGraph.licenseText,12)};JXG.CanvasRenderer.prototype.unsuspendRedraw=function(){this.context.restore()};JXG.CanvasRenderer.prototype.setDashStyle=function(e,d){};JXG.CanvasRenderer.prototype.setGridDash=function(d){};JXG.CanvasRenderer.prototype.createPrim=function(d,e){};JXG.CanvasRenderer.prototype.createArrowHead=function(d,e){};JXG.CanvasRenderer.prototype._drawFilledPolygon=function(e){var f,d=e.length;if(d<=0){return}this.context.beginPath();this.context.moveTo(e[0][0],e[0][1]);for(f=0;f<d;f++){if(f>0){this.context.lineTo(e[f][0],e[f][1])}}this.context.lineTo(e[0][0],e[0][1]);this.context.fill()};JXG.CanvasRenderer.prototype._translateShape=function(f,e,j){var g,h=[],d=f.length;if(d<=0){return f}for(g=0;g<d;g++){h.push([f[g][0]+e,f[g][1]+j])}return h};JXG.CanvasRenderer.prototype._rotateShape=function(e,f){var g,h=[],d=e.length;if(d<=0){return e}for(g=0;g<d;g++){h.push(this._rotatePoint(f,e[g][0],e[g][1]))}return h};JXG.CanvasRenderer.prototype._rotatePoint=function(e,d,f){return[(d*Math.cos(e))-(f*Math.sin(e)),(d*Math.sin(e))+(f*Math.cos(e))]};JXG.CanvasRenderer.prototype.makeArrows=function(g,l,j){var h;var e=[[2,0],[-10,-4],[-10,4]],n=[[-2,0],[10,-4],[10,4]],f,m,d,k,h;if(g.visProp.strokeColor!="none"&&(g.visProp.lastArrow||g.visProp.firstArrow)){if(g.elementClass==JXG.OBJECT_CLASS_LINE){f=l.scrCoords[1];m=l.scrCoords[2];d=j.scrCoords[1];k=j.scrCoords[2]}else{return}this.context.save();if(this.setColor(g,"stroke")){if(typeof g.board.highlightedObjects[g.id]!="undefined"&&g.board.highlightedObjects[g.id]!=null){this.context.fillStyle=g.visProp.highlightStrokeColor}else{this.context.fillStyle=g.visProp.strokeColor}var h=Math.atan2(k-m,d-f);if(g.visProp.lastArrow){this._drawFilledPolygon(this._translateShape(this._rotateShape(e,h),d,k))}if(g.visProp.firstArrow){this._drawFilledPolygon(this._translateShape(this._rotateShape(n,h),f,m))}}this.context.restore()}};JXG.CanvasRenderer.prototype.updateLinePrim=function(h,e,d,g,f){};JXG.CanvasRenderer.prototype.updateCirclePrim=function(f,d,g,e){};JXG.CanvasRenderer.prototype.updateEllipsePrim=function(e,d,h,g,f){};JXG.CanvasRenderer.prototype.updateRectPrim=function(g,d,j,e,f){};JXG.CanvasRenderer.prototype.updatePathPrim=function(e,f,d){};JXG.CanvasRenderer.prototype.updatePathStringPrim=function(d){var f="M",g="L",e=f,n=5000,j="",h,l,m=(d.curveType!="plot"),k;if(d.numberPoints<=0){return""}if(m&&d.board.options.curve.RDPsmoothing){d.points=this.RamenDouglasPeuker(d.points,0.5)}k=Math.min(d.points.length,d.numberPoints);this.context.beginPath();for(h=0;h<k;h++){l=d.points[h].scrCoords;if(isNaN(l[1])||isNaN(l[2])){e=f}else{if(l[1]>n){l[1]=n}else{if(l[1]<-n){l[1]=-n}}if(l[2]>n){l[2]=n}else{if(l[2]<-n){l[2]=-n}}if(e=="M"){this.context.moveTo(l[1],l[2])}else{this.context.lineTo(l[1],l[2])}e=g}}this.fill(d);this.stroke(d);return null};JXG.CanvasRenderer.prototype.appendChildPrim=function(d,e){};JXG.CanvasRenderer.prototype.setPropertyPrim=function(e,d,f){if(d=="stroked"){}};JXG.CanvasRenderer.prototype.drawVerticalGrid=function(g,e,j,f){var h=this.createPrim("path","gridx"),d="";while(g.scrCoords[1]<e.scrCoords[1]+j-1){d+=" M "+g.scrCoords[1]+" "+0+" L "+g.scrCoords[1]+" "+f.canvasHeight+" ";g.setCoordinates(JXG.COORDS_BY_SCREEN,[g.scrCoords[1]+j,g.scrCoords[2]])}this.updatePathPrim(h,d,f);return h};JXG.CanvasRenderer.prototype.drawHorizontalGrid=function(g,e,j,f){var h=this.createPrim("path","gridy"),d="";while(g.scrCoords[2]<=e.scrCoords[2]+j-1){d+=" M "+0+" "+g.scrCoords[2]+" L "+f.canvasWidth+" "+g.scrCoords[2]+" ";g.setCoordinates(JXG.COORDS_BY_SCREEN,[g.scrCoords[1],g.scrCoords[2]+j])}this.updatePathPrim(h,d,f);return h};JXG.CanvasRenderer.prototype.appendNodesToElement=function(d,e){};JXG.CanvasRenderer.prototype.drawPoint=function(h){var j=h.visProp.face,g=h.visProp.size,l=h.coords.scrCoords,k=g*Math.sqrt(3)*0.5,d=g*0.5,e=parseFloat(h.visProp.strokeWidth)/2;if(g<=0){return}switch(j){case"cross":case"x":this.context.beginPath();this.context.moveTo(l[1]-g,l[2]-g);this.context.lineTo(l[1]+g,l[2]+g);this.context.moveTo(l[1]+g,l[2]-g);this.context.lineTo(l[1]-g,l[2]+g);this.context.closePath();this.stroke(h);break;case"circle":case"o":this.context.beginPath();this.context.arc(l[1],l[2],g+1+e,0,2*Math.PI,false);this.context.closePath();this.fill(h);this.stroke(h);break;case"square":case"[]":if(g<=0){break}this.context.save();if(this.setColor(h,"stroke")){if(typeof h.board.highlightedObjects[h.id]!="undefined"&&h.board.highlightedObjects[h.id]!=null){this.context.fillStyle=h.visProp.highlightStrokeColor}else{this.context.fillStyle=h.visProp.strokeColor}this.context.fillRect(l[1]-g-e,l[2]-g-e,g*2+3*e,g*2+3*e)}this.context.restore();this.context.save();this.setColor(h,"fill");this.context.fillRect(l[1]-g+e,l[2]-g+e,g*2-e,g*2-e);this.context.restore();break;case"plus":case"+":this.context.beginPath();this.context.moveTo(l[1]-g,l[2]);this.context.lineTo(l[1]+g,l[2]);this.context.moveTo(l[1],l[2]-g);this.context.lineTo(l[1],l[2]+g);this.context.closePath();this.stroke(h);break;case"diamond":case"<>":this.context.beginPath();this.context.moveTo(l[1]-g,l[2]);this.context.lineTo(l[1],l[2]+g);this.context.lineTo(l[1]+g,l[2]);this.context.lineTo(l[1],l[2]-g);this.context.closePath();this.fill(h);this.stroke(h);break;case"triangleup":case"a":case"^":this.context.beginPath();this.context.moveTo(l[1],l[2]-g);this.context.lineTo(l[1]-k,l[2]+d);this.context.lineTo(l[1]+k,l[2]+d);this.context.closePath();this.fill(h);this.stroke(h);break;case"triangledown":case"v":this.context.beginPath();this.context.moveTo(l[1],l[2]+g);this.context.lineTo(l[1]-k,l[2]-d);this.context.lineTo(l[1]+k,l[2]-d);this.context.closePath();this.fill(h);this.stroke(h);break;case"triangleleft":case"<":this.context.beginPath();this.context.moveTo(l[1]-g,l[2]);this.context.lineTo(l[1]+d,l[2]-k);this.context.lineTo(l[1]+d,l[2]+k);this.context.closePath();this.fill(h);this.stroke(h);break;case"triangleright":case">":this.context.beginPath();this.context.moveTo(l[1]+g,l[2]);this.context.lineTo(l[1]-d,l[2]-k);this.context.lineTo(l[1]-d,l[2]+k);this.context.closePath();this.fill(h);this.stroke(h);break}};JXG.CanvasRenderer.prototype.updatePoint=function(d){this.drawPoint(d)};JXG.CanvasRenderer.prototype.changePointStyle=function(d){this.drawPoint(d)};JXG.CanvasRenderer.prototype.drawText=function(d){var e;if(d.display=="html"){e=this.container.ownerDocument.createElement("div");e.style.position="absolute";e.style.color=d.visProp.strokeColor;e.className="JXGtext";e.style.zIndex="10";this.container.appendChild(e);e.setAttribute("id",this.container.id+"_"+d.id);e.style.fontSize=d.board.options.text.fontSize+"px"}else{e=this.drawInternalText(d)}d.rendNode=e;d.htmlStr="";this.updateText(d)};JXG.CanvasRenderer.prototype.updateText=function(d){if(d.visProp.visible===false){return}if(isNaN(d.coords.scrCoords[1]+d.coords.scrCoords[2])){return}this.updateTextStyle(d);if(d.display=="html"){d.rendNode.style.left=(d.coords.scrCoords[1])+"px";d.rendNode.style.top=(d.coords.scrCoords[2]-this.vOffsetText)+"px";d.updateText();if(d.htmlStr!=d.plaintextStr){d.rendNode.innerHTML=d.plaintextStr;if(d.board.options.text.useASCIIMathML){AMprocessNode(d.rendNode,false)}d.htmlStr=d.plaintextStr}}else{this.updateInternalText(d)}};JXG.CanvasRenderer.prototype.drawLine=function(e){var n=new JXG.Coords(JXG.COORDS_BY_USER,e.point1.coords.usrCoords,e.board),k=new JXG.Coords(JXG.COORDS_BY_USER,e.point2.coords.usrCoords,e.board),d,r,j,h,q,g,p,l,f;this.calcStraight(e,n,k);this.context.beginPath();this.context.moveTo(n.scrCoords[1],n.scrCoords[2]);this.context.lineTo(k.scrCoords[1],k.scrCoords[2]);this.stroke(e);this.makeArrows(e,n,k)};JXG.CanvasRenderer.prototype.updateLine=function(d){this.drawLine(d)};JXG.CanvasRenderer.prototype.drawCurve=function(d){this.updatePathStringPrim(d)};JXG.CanvasRenderer.prototype.updateCurve=function(d){this.drawCurve(d)};JXG.CanvasRenderer.prototype.drawEllipse=function(h,u,s,g,f,p,n){var q=p*g,r=n*f,m=u-q/2,l=s-r/2,t=(q/2)*0.5522848,e=(r/2)*0.5522848,d=m+q,v=l+r,k=m+q/2,j=l+r/2;if(p>0&&n>0&&!isNaN(u+s)){this.context.beginPath();this.context.moveTo(m,j);this.context.bezierCurveTo(m,j-e,k-t,l,k,l);this.context.bezierCurveTo(k+t,l,d,j-e,d,j);this.context.bezierCurveTo(d,j+e,k+t,v,k,v);this.context.bezierCurveTo(k-t,v,m,j+e,m,j);this.context.closePath();this.fill(h);this.stroke(h)}};JXG.CanvasRenderer.prototype.drawCircle=function(d){this.drawEllipse(d,d.midpoint.coords.scrCoords[1],d.midpoint.coords.scrCoords[2],d.board.stretchX,d.board.stretchY,2*d.Radius(),2*d.Radius())};JXG.CanvasRenderer.prototype.updateCircle=function(d){this.drawCircle(d)};JXG.CanvasRenderer.prototype.drawPolygon=function(d){};JXG.CanvasRenderer.prototype.updatePolygonPrim=function(h,g){var j="",e,f,d=g.vertices.length;if(d<=0){return}this.context.beginPath();e=g.vertices[0].coords.scrCoords;this.context.moveTo(e[1],e[2]);for(f=1;f<d;f++){e=g.vertices[f].coords.scrCoords;this.context.lineTo(e[1],e[2])}this.context.closePath();this.fill(g)};JXG.CanvasRenderer.prototype.highlight=function(d){d.board.prepareUpdate();d.board.renderer.suspendRedraw();d.board.updateRenderer();d.board.renderer.unsuspendRedraw();return this};JXG.CanvasRenderer.prototype.noHighlight=function(d){d.board.prepareUpdate();d.board.renderer.suspendRedraw();d.board.updateRenderer();d.board.renderer.unsuspendRedraw();return this}; //}}}
/*** |''Name''|NewTaggedCommand| |''Description''|Creates a new tiddler, and tags it with it's parents title!| |''Authors''|PMario| |''Version''|0.1.1| |''Date''|2011-07-20| |''Status''|@@beta@@| |''Source''|http://hoster.peermore.com/recipes/TeamWork/tiddlers.wiki#NewTaggedCommand| |''License''|BSD| |''CoreVersion''|2.5| |''Keywords''|toolbar command add new tagged tiddler| !!!Description <<< To use this new toolbar command you have to add {{{newTagged}}} to ToolbarCommands tiddler eg: {{{ |~ViewToolbar| +editTiddler newTagged ... }}} <<< !!!Change the button text <<< If you want to change the buttons text from "newTagged" to eg "+", you need to create at tiddler [[zzConfig]] and tag it "systemConfig" and insert the following line. //{{{ config.commands.newTagged.text = "+"; //}}} <<< !!!Code ***/ //{{{ config.commands.newTagged = { text: "newTagged", tooltip: "Create a new tiddler, and tag it!", isEnabled: function(tiddler) { return !readOnly; } }; config.commands.newTagged.handler = function(event,src,title) { var newTitle = config.macros.newTiddler.title; story.displayTiddler(null, newTitle); config.commands.editTiddler.handler.call(this,event,src,newTitle); story.setTiddlerTag(newTitle, title, +1); return false; }; //}}}
/% !info |Name|BreadcrumbsCommand| |Source|http://www.TiddlyTools.com/#BreadcrumbsCommand| |Version|2.0.0| |Author|Eric Shulman| |License|http://www.TiddlyTools.com/#LegalStatements| |~CoreVersion|2.1| |Type|transclusion| |Requires|BreadcrumbsPlugin| |Description|"crumbs" command displays current breadcrumbs list in a popup| Usage <<< {{{ <<tiddler BreadcrumbsCommand>> <<tiddler BreadcrumbsCommand with: label tip>> }}} <<< Example <<< {{{<<tiddler BreadcrumbsCommand with: "crumbs">>}}} <<tiddler BreadcrumbsCommand##show with: "crumbs">> <<< !end !show <html><nowiki><a href="javascript:;" class="TiddlyLink" title="$2" onclick="var p=Popup.create(this); if (!p) return; var d=createTiddlyElement(p,'div'); d.style.whiteSpace='normal'; d.style.width='auto'; d.style.padding='2px'; wikify('\<\<breadcrumbs [[\<html\>\<hr\>\</html\>]] [[<br>]]\>\>',d); Popup.show(); event.cancelBubble=true;if(event.stopPropagation)event.stopPropagation(); return false; ">$1</a></html> !end %/<<tiddler {{ var src='BreadcrumbsCommand'; src+(tiddler&&tiddler.title==src?'##info':'##show')}} with: {{'$1'!='$'+'1'?'$1':'crumbs'}} {{'$2'!='$'+'2'?'$2':'tiddlers viewed during this session'}}>>
Durante esta fase *se hacen visibles los cromosomas (que no son más que filamentos de ADN superenrrollados). *desaparece el núcleo. *se forman filamentos de proteína que van desde un polo a otro de la célula | [img(400px+,)[http://galeon.hispavista.com/ciclocelular/img/Diapositiva5.JPG]] | | En la profase los cromosomas se ven dispersos por el citoplasma |
/*** |Name:|HideWhenPlugin| |Description:|Allows conditional inclusion/exclusion in templates| |Version:|3.1 ($Rev: 3919 $)| |Date:|$Date: 2008-03-13 02:03:12 +1000 (Thu, 13 Mar 2008) $| |Source:|http://mptw.tiddlyspot.com/#HideWhenPlugin| |Author:|Simon Baird <simon.baird@gmail.com>| |License:|http://mptw.tiddlyspot.com/#TheBSDLicense| For use in ViewTemplate and EditTemplate. Example usage: {{{<div macro="showWhenTagged Task">[[TaskToolbar]]</div>}}} {{{<div macro="showWhen tiddler.modifier == 'BartSimpson'"><img src="bart.gif"/></div>}}} ***/ //{{{ window.hideWhenLastTest = false; window.removeElementWhen = function(test,place) { window.hideWhenLastTest = test; if (test) { jQuery(place).empty() place.parentNode.removeChild(place); } }; merge(config.macros,{ hideWhen: { handler: function(place,macroName,params,wikifier,paramString,tiddler) { removeElementWhen( eval(paramString), place); }}, showWhen: { handler: function(place,macroName,params,wikifier,paramString,tiddler) { removeElementWhen( !eval(paramString), place); }}, hideWhenTagged: { handler: function (place,macroName,params,wikifier,paramString,tiddler) { removeElementWhen( tiddler.tags.containsAll(params), place); }}, showWhenTagged: { handler: function (place,macroName,params,wikifier,paramString,tiddler) { removeElementWhen( !tiddler.tags.containsAll(params), place); }}, hideWhenTaggedAny: { handler: function (place,macroName,params,wikifier,paramString,tiddler) { removeElementWhen( tiddler.tags.containsAny(params), place); }}, showWhenTaggedAny: { handler: function (place,macroName,params,wikifier,paramString,tiddler) { removeElementWhen( !tiddler.tags.containsAny(params), place); }}, hideWhenTaggedAll: { handler: function (place,macroName,params,wikifier,paramString,tiddler) { removeElementWhen( tiddler.tags.containsAll(params), place); }}, showWhenTaggedAll: { handler: function (place,macroName,params,wikifier,paramString,tiddler) { removeElementWhen( !tiddler.tags.containsAll(params), place); }}, hideWhenExists: { handler: function(place,macroName,params,wikifier,paramString,tiddler) { removeElementWhen( store.tiddlerExists(params[0]) || store.isShadowTiddler(params[0]), place); }}, showWhenExists: { handler: function(place,macroName,params,wikifier,paramString,tiddler) { removeElementWhen( !(store.tiddlerExists(params[0]) || store.isShadowTiddler(params[0])), place); }}, hideWhenTitleIs: { handler: function(place,macroName,params,wikifier,paramString,tiddler) { removeElementWhen( tiddler.title == params[0], place); }}, showWhenTitleIs: { handler: function(place,macroName,params,wikifier,paramString,tiddler) { removeElementWhen( tiddler.title != params[0], place); }}, 'else': { handler: function(place,macroName,params,wikifier,paramString,tiddler) { removeElementWhen( !window.hideWhenLastTest, place); }} }); //}}}
Una vez que ya hemos definido si la roca es ígnea, metamórfica o exógena, la clasificación //detallada// de la roca se suele hacer basándonos en su contenido mineral. Dos rocas se pueden diferenciar por los minerales que presenten o por las cantidades en los que aparecen cada uno de ellos. Para clasificar las rocas se usan a menudo [[diagramas triangulares|http://ocw.upm.es/explotacion-de-minas/termodinamica-quimica-ii/contenido/ProblemasPropuestos/diagrama_triangular_10.gif/image]] que debemos aprender a utilizar e interpretar. Luego, con la ayuda de páginas [[como ésta|http://www.insugeo.org.ar/libros/misc_18/02.htm]] podremos dar nombre a las rocas.
/*** |''Name''|TiddlyFileImporter| |''Version''|0.3.8| |''Author''|Ben Gillies| |''Type''|plugin| |''Description''|Upload a TiddlyWiki file to TiddlyWeb, and import the tiddlers.| !Usage Upload a TiddlyWiki file to TiddlyWeb, and import the tiddlers. !Requires tiddlyweb tiddlywebplugins.reflector !Code ***/ //{{{ (function($){ if(!version.extensions.TiddlyFileImporter) { //# ensure that the plugin is only installed once version.extensions.TiddlyFileImporter = { installed: true }; } config.macros.fileImport = { reflectorURI: '/reflector?csrf_token=%0', incorrectTypeError: 'Incorrect File Type. You must upload a TiddlyWiki', uploadLabel: 'Upload', uploadLabelPrompt: 'Import tiddlers from this TiddlyWiki', step1FileText: 'File:', step1PostText: 'In the next screen you will select the tiddlers to import.', step1Title: 'Step 1: Pick a TiddlyWiki to import', step1TypeChooser: 'Import From:', step3Html: ['<input type="hidden" name="markList" />', '<input type="hidden" checked="true" name="chkSync" />', '<input type="hidden" name="chkSave" />', '<input type="hidden" name="txtSaveTiddler" />'].join(), handler: function(place, macroName, params, wikifier, paramString) { var wizard = new Wizard(); wizard.createWizard(place, 'Import a TiddlyWiki'); this.restart(wizard); }, restart: function(wizard) { var me = config.macros.fileImport; wizard.addStep(me.step1Title, ['<input type="hidden" ', 'name="markList" />'].join("")); var markList = wizard.getElement('markList'); var uploadWrapper = document.createElement('div'); markList.parentNode.insertBefore(uploadWrapper, markList); uploadWrapper.setAttribute('refresh', 'macro'); uploadWrapper.getAttribute('macroName', 'fileImport'); var iframeName = 'reflectorImporter' + Math.random().toString(); me.createForm(uploadWrapper, wizard, iframeName); $(uploadWrapper).append('<p>' + me.step1PostText + '</p>'); wizard.setValue('serverType', 'tiddlyweb'); wizard.setValue('adaptor', new config.adaptors.file()); wizard.setValue('host', config.defaultCustomFields['server.host']); wizard.setValue('context', {}); var iframe = $(['<iframe name="' + iframeName + '" ', 'style="display: none" />'].join("")).appendTo(uploadWrapper); var onSubmit = function(ev) { var uploadType = $('select[name=uploadtype]', wizard.formElem).val(); if (uploadType == "file") { // set an onload ready to hijack the form me.setOnLoad(uploadWrapper, wizard, iframe[0]); wizard.importType = 'file'; wizard.formElem.submit(); } else { var csrf_token = config.extensions.tiddlyspace.getCSRFToken(); $.ajax({ url: "%0/reflector?csrf_token=%1".format( config.defaultCustomFields["server.host"], csrf_token), type: "POST", dataType: "text", data: { uri: $("input", ".importFrom", wizard.formElem).val() }, success: function(data, txtStatus, xhr) { wizard.POSTResponse = data; me.importTiddlers(uploadWrapper, wizard); }, error: function(xhr, txtStatus, error) { displayMessage(["There was an error fetching the ", 'url: ', txtStatus].join("")); me.restart(wizard); } }); return false; } }; wizard.setButtons([{ caption: me.uploadLabel, tooltip: me.uploadLabelPrompt, onClick: onSubmit }]); $(wizard.formElem).submit(function(ev) { onSubmit(ev); ev.preventDefault(); }); }, createForm: function(place, wizard, iframeName) { var form = wizard.formElem; var me = config.macros.fileImport; form.action = me.reflectorURI.format( config.extensions.tiddlyspace.getCSRFToken()); form.enctype = 'multipart/form-data'; form.encoding = 'multipart/form-data'; form.method = 'POST'; form.target = iframeName; onSelectChange = function(e) { var changeTo = $(this).val(); if (changeTo == "file") { $(".importFrom").html('%0 <input type="file" name="file" />'. format(me.step1FileText)); } else { $(".importFrom").html('URL: <input type="text" name="uri" />' + ' Do you want <a target="_blank" href="http://faq.tiddlyspace.com/How%20do%20I%20include%2Fexclude%20spaces%3F">inclusion</a> instead?'); } }; $(place).append('<span>%0</span>'.format(me.step1TypeChooser)). append($(['<select name="uploadtype"><option value="file" selected="selected">file', '<option value="uri">url</select>'].join("")).change(onSelectChange)). append('<div class="importFrom">%0<input type="file" name="file" /></div>'. format(me.step1FileText)); }, setOnLoad: function(place, wizard, iframe) { var me = config.macros.fileImport; var loadHandler = function() { me.importTiddlers.apply(this, [place, wizard, iframe]); }; iframe.onload = loadHandler; completeReadyStateChanges = 0; iframe.onreadystatechange = function() { if (++(completeReadyStateChanges) == 5) { loadHandler(); } }; }, importTiddlers: function(place, wizard, iframe) { var tmpStore = new TiddlyWiki(); var POSTedWiki = ""; if (wizard.importType == "file") { try { POSTedWiki= iframe.contentWindow .document.documentElement.innerHTML; } catch(e) { displayMessage(config.macros.fileImport.incorrectTypeError); config.macros.fileImport.restart(wizard); return; } // now we are done, so remove the iframe $(iframe).remove(); } else { POSTedWiki = wizard.POSTResponse; } tmpStore.importTiddlyWiki(POSTedWiki); var newTiddlers = tmpStore.getTiddlers(); var workspace = config.defaultCustomFields['server.workspace']; var context = { status: true, statusText: 'OK', httpStatus: 200, adaptor: wizard.getValue('adaptor'), tiddlers: newTiddlers }; context.adaptor.store = tmpStore; wizard.setValue('context', context); wizard.setValue('workspace', workspace); wizard.setValue('inFileImport', true); config.macros.importTiddlers.onGetTiddlerList(context, wizard); } }; var _onGetTiddler = config.macros.importTiddlers.onGetTiddler; config.macros.importTiddlers.onGetTiddler = function(context, wizard) { if (wizard.getValue('inFileImport')) { var me = config.macros.importTiddlers; if(!context.status) displayMessage("Error in importTiddlers.onGetTiddler: " + context.statusText); var tiddler = context.tiddler; var fields = tiddler.fields; merge(fields, config.defaultCustomFields); fields["server.workspace"] = wizard.getValue('workspace'); delete fields['server.permissions']; delete fields['server.bag']; fields['server.page.revision'] = 'false'; delete fields['server.recipe']; fields.changecount = 1; store.suspendNotifications(); store.saveTiddler(tiddler.title, tiddler.title, tiddler.text, tiddler.modifier, tiddler.modified, tiddler.tags, tiddler.fields, false, tiddler.created); store.resumeNotifications(); var remainingImports = wizard.getValue("remainingImports")-1; wizard.setValue("remainingImports",remainingImports); if(remainingImports === 0) { if(context.isSynchronous) { store.notifyAll(); refreshDisplay(); } wizard.setButtons([ {caption: me.doneLabel, tooltip: me.donePrompt, onClick: me.onClose} ],me.statusDoneImport); autoSaveChanges(); } } else { _onGetTiddler.apply(this, arguments); } }; var _onCancel = config.macros.importTiddlers.onCancel; config.macros.importTiddlers.onCancel = function(e) { var wizard = new Wizard(this); if (!wizard.getValue('inFileImport')) { return _onCancel.apply(this, arguments); } var place = wizard.clear(); config.macros.fileImport.restart(wizard); return false; }; var _step3Html = config.macros.importTiddlers.step3Html; var _onGetTiddlerList = config.macros.importTiddlers.onGetTiddlerList; config.macros.importTiddlers.onGetTiddlerList = function(context, wizard) { var fileImport = config.macros.fileImport; var importTiddlers = config.macros.importTiddlers; if (wizard.getValue('inFileImport')) { importTiddlers.step3Html = fileImport.step3Html; } else { importTiddlers.step3Html = _step3Html; } _onGetTiddlerList.apply(this, arguments); }; })(jQuery); //}}}
/*{{{*/ body { font-size: 1em; font-family: helvetica, arial, sans-serif; background-color: #fff; color: [[ColorPalette::Foreground]]; } body ul { margin: 0; } #popup { background-color: [[ColorPalette::TertiaryPale]]; } #popup.confirmationPopup, .followList { font-size: 0.8em; padding: 1em; border: solid 1px [[ColorPalette::SecondaryMid]]; background-color: [[ColorPalette::SecondaryPale]]; } .followList .listTitle { text-decoration: underline; } #popup .followTiddlersList a { display: inline; padding: 0; } #popup li a { color: [[ColorPalette::PrimaryMid]]; font-weight: bold; } #popup li a:hover { color: [[ColorPalette::PrimaryPale]]; background: [[ColorPalette::PrimaryMid]]; } #popup li.listTitle { border-bottom: 1px solid #000; font-weight: bold; margin-bottom: 10px; } #popup.followList { margin-left: 50px; margin-top: -30px; } .followTiddlersList .label { display: block; left: 10px; top: 0px; line-height: 16px; position: relative; } #popup .followTiddlersList .siteIcon{ height: auto; } #popup .followTiddlersList li{ clear: both; display: block; height: 48px; margin-bottom: 8px; position: relative; } #popup .followTiddlersList a{ display: inline; } #displayArea { margin: 0; top: 0px; left: 0px; width: 100%; position: relative; } .revisionCloak { position: absolute; position: fixed !important; height: 100%; width: 100%; top: 0; left: 0; border: 0; margin: 0; padding: 0; opacity: 0.5; filter: alpha(opacity=50); background-color: #000; } /* *** Header *** */ .header { position: relative; background-color: [[ColorPalette::PrimaryMid]]; _width: 100%; /* ie 6 demands */ } .headerForeground { background-color: [[ColorPalette::PrimaryMid]]; float: left; margin: 24px 16px 0px 72px; padding: 0; position: relative; top: 0; _width: 70%; /*ie6: needed for the background to actually be transparent*/ _background-color: transparent; /*ie6: needed to show the search box*/ } .clearFloat { clear: both; } #contentWrapper { position: relative; padding-top: 1px; top: -1px; } #tiddlerDisplay { _position: relative; /* ie 6*/ } .siteTitle { clear: both; display: block; font-size: 32px; font-weight: bold; line-height: 32px; } .siteSubtitle { display: block; font-size: 14px; height: 16px; margin-bottom: 8px; } #sidebarSearch { padding: 0; position: absolute; right: 80px; top: 8px; width: 176px; } #sidebarSearch .txtOptionInput { width: 100%; margin-top: 5px; _color: #bbb; /* ie6 danger */ } #sidebarSearch .txtOptionInput:focus { color: #000; } #sidebarSearch .searchButton { display: none; } /* *** Menu Bar *** */ #mainMenu { position: static; text-align: left; margin-left: 72px; float: left; width: auto; padding: 0; font-size: 1em; line-height: normal; } #mainMenu a { color: #fff; padding: 8px; font-size: 0.9em; margin-right: 16px; } #mainMenu a:hover { background-color: [[ColorPalette::PrimaryMid]]; color: [[ColorPalette::Background]] } #sidebarOptions { margin-right: 72px; float: right; font-size: 1.1em; line-height: 1.6em; min-height: 1em; padding-top: 0; } #sidebarOptions a { margin-right: 8px; } .confirmationPopup .button, #sidebarOptions .button { cursor: pointer; line-height: 1.4em; text-align: center; margin-right: 8px; margin-left:-2px; } .confirmationPopup .button { font-size: 0.9em; padding: 2px; } #sidebarOptions .button { font-size: 0.7em; float: left; width: 80px; padding: 0px; color: #fff; } .confirmationPopup a.button, #sidebarOptions a { border: none; margin: 0 0.2em; padding: 0.6em 0.25em; display: inline; color: #666; } .confirmationPopup a.button:hover, #sidebarOptions a:hover { color: #000; } .confirmationPopup a.button:active, #sidebarOptions a:active { border: solid 1px [[ColorPalette::PrimaryMid]]; background-color: #fff; background: -webkit-gradient( linear, left bottom, left top, color-stop(0.1,rgb(200,200,200)), color-stop(1, rgb(100,100,100))); background: -moz-linear-gradient(center bottom , rgb(200,200,200) 10%,rgb(100,100,100) 100%) repeat scroll 0 0 transparent; } /* *** Sidebar *** */ #sidebar .wizard table { margin: 0px; } .tabContents .listTitle:first-child { margin-top: 0px; } #menuBar { background: [[ColorPalette::PrimaryLight]]; left: 0; right: 0; position: relative; margin: 0; padding: 0.5em 0 0.5em 0; min-height: 1em; overflow: hidden; _width: 100%; /* for ie 6 */ } #sidebarOptions a.button:hover { color: [[ColorPalette::PrimaryPale]]; background: [[ColorPalette::PrimaryMid]]; } #tiddlerDisplay, #searchResults { margin: 16px 448px 0 72px; } #sidebarTabs { position: absolute; right: 72px; width: 352px; top: 0; } #sidebarTabs .tabsetWrapper .tabset { width: 87px; border-top: 1px solid [[ColorPalette::PrimaryPale]]; border-left: 1px solid [[ColorPalette::PrimaryPale]]; border-bottom: 1px solid [[ColorPalette::PrimaryPale]]; height: auto; float: left; word-wrap: break-word; top: 0; padding: 0; } #sidebarTabs .tabsetWrapper .tabContents { background-color: [[ColorPalette::PrimaryPale]]; border: 3px solid [[ColorPalette::PrimaryMid]]; width: 242px; _width: 238px; left: -3px; _left: -5px; position: relative; min-height: 34em; padding: 8px; font-size: 0.8em; } /* ---- Side style --- */ #sidebarTabs .tabsetWrapper .tabset .tab { font-size: 0.9em; padding: 0.7em 8px 0.5em; color: #fff; background: [[ColorPalette::PrimaryLight]]; border: none; line-height: 16px; position: relative; display: block; margin: 0; } #sidebarTabs .tabsetWrapper .tabset .tabSelected { color: [[ColorPalette::PrimaryMid]]; background: [[ColorPalette::PrimaryPale]]; border-top: 3px solid [[ColorPalette::PrimaryMid]]; border-bottom: 3px solid [[ColorPalette::PrimaryMid]]; border-left: 3px solid [[ColorPalette::PrimaryMid]]; z-index: 10; margin-top: -1px; font-weight: bold; } #sidebarTabs .tabContents li { border: none; margin-left: 0; word-wrap: break-word; } .tabContents .timeline { background: [[ColorPalette::PrimaryPale]]; margin-bottom: 8px; } #sidebarTabs .timeline li.listTitle { color: #132E43; margin-left: 8px 0; padding: 0.3em 0.11em; font-size: 1em; border-bottom: none; } #sidebarTabs .tabContents li a { display: block; text-align: left; margin: 0 0 1px 0; padding: 0.3em 1em; background: [[ColorPalette::PrimaryPale]]; } #sidebarTabs .tabsetWrapper .tabset a:hover, #sidebarTabs .tabContents li a:hover { color: [[ColorPalette::PrimaryPale]]; background: [[ColorPalette::PrimaryMid]]; } /* Activity Stream */ #sidebarTabs .tabContents .activityStream .feedItem a { display: inline-block; padding: 0; background: none; } /* ---- Tagging box --- */ .tagInfo { border: 1px solid #cccccc; padding: 10px 15px; -moz-box-shadow: 0 2px 2px rgba(0, 0, 0, 0.2); box-shadow: 0 2px 2px rgba(0,0,0,0.2); color: [[ColorPalette::TertiaryMid]]; background: -moz-linear-gradient(100% 100% 90deg, #f4f4f4, #e5e5e5); background: -webkit-gradient(linear, left top, right top, from(#e5e5e5), to(#f4f4f4)); margin-top: 1em; font-size: 13px; margin: 0 0 0 56px; } .tagInfo ul { list-style: none; padding-left: 2.2em; } .tagInfo ul li { display: inline; } .tagInfo ul li.listTitle, .tagInfo .tagging ul li.listTitle { color: [[ColorPalette::PrimaryMid]]; font-size: 13px; } .tagInfo ul li a { border: none; } .tagInfo .tagging ul li { float: none; display: inline-block; } .tagInfo .tagging { padding: 0; } .viewRevision .toolbar { right: 48px; top: 8px; } .viewRevision .modifierIcon img, .viewRevision .modifierIcon svg { margin-right: 8px; } .viewRevision .toolbar svg { width: 32px; height: 32px; } /* --- IE hacks from lattice --- */ /* ie hacks */ * html #menuBar { margin-bottom: 8px; } .toolbar .svgIconText { *display: inline; } div.tiddler .toolbar a { cursor: pointer; float: left\9; display: inline\9; } * html .toolbar { right: 8px; } * html .followButton a { margin-top: 0px; margin-right: 8px; } * html #tiddlerDisplay { margin-top: 0px; } /* for printing purposes */ @media print { #mainMenu, #sidebar, #messageArea, .toolbar, .followPlaceHolder, #backstageButton, #backstageArea, #sidebarTabs, #sidebarSearch .txtOptionInput, #sidebarOptions { display: none !important; } #displayArea { margin: 1em 1em 0em; } noscript { display:none; /* Fixes a feature in Firefox 1.5.0.2 where print preview displays the noscript content */ } #tiddlerDisplay { margin: 16px 16px; } } @media all and (max-width: 960px){ #tiddlerDisplay, #searchResults { margin: 16px 366px 0 16px; } #mainMenu { margin-left: 16px; } .headerForeground { margin-left: 16px; } #sidebarSearch { right: 16px; } #sidebarOptions { margin-right: 16px; } #sidebarTabs { right: 16px; width: 326px; } #sidebarTabs .tabsetWrapper .tabset { font-size: 0.9em; width: 77px; } #sidebarTabs .tabsetWrapper .tabContents { width: 226px; _width: 222px; } #sidebarTabs .tabContents li a { font-size: 0.9em; } } /*}}}*/ [[StyleSheetTiddler]]
En este, se puede redimensionar. Sale una cruz que permite hacerlo interactivamente. {{{[img(300px+,)[http://upload.wikimedia.org/wikipedia/commons/thumb/0/0d/Andromeda_galaxy_2.jpg/800px-Andromeda_galaxy_2.jpg]]}}} el resultado es este: [img(300px+,)[http://upload.wikimedia.org/wikipedia/commons/thumb/0/0d/Andromeda_galaxy_2.jpg/800px-Andromeda_galaxy_2.jpg]] <html><hr></html> Este es con etiquetas html {{{<html><img src="http://upload.wikimedia.org/wikipedia/commons/thumb/0/0d/Andromeda_galaxy_2.jpg/800px-Andromeda_galaxy_2.jpg" style="width: 500px; "/></html>}}} el resultado: <html><img src="http://upload.wikimedia.org/wikipedia/commons/thumb/0/0d/Andromeda_galaxy_2.jpg/800px-Andromeda_galaxy_2.jpg" style="width: 500px; "/></html>
iVBORw0KGgoAAAANSUhEUgAAABIAAAASCAYAAABWzo5XAAAABHNCSVQICAgIfAhkiAAAABl0RVh0U29mdHdhcmUAd3d3Lmlua3NjYXBlLm9yZ5vuPBoAAAPCSURBVDiNbZRbTNMHFIe/XoCWFUqbQktaGCBYFEKAUhlKgV0CpImTRKISiDPEFzH6YLwETLRKDOoeTNT4SBTIwIQYRsAIZKjIGBIUo6CowBiMm8AoZVwK/Ns9kOEYnLeTnHzn8jvniOBHN1uYWAwJCToyM0PRaOTU1vbx+PEwgrBlOKL/gzQaOdXVe9FovBkacqBQeFJR8RarNYy4uAAcDieHDtXR0zO9MfF/ndOnE3j9+gfs9mViYu5itT6gsLCFhYUVsrJq2LGjlM7OCaqrv8dm2701qKgokezs7WRkVDM1tcD9+3sxGlW8ejVJcLAvBoOC1VUXT54MMzAwy7594dy5891GkF6v4PjxOKqq3vHmzRRHjzYyPOwgNTWIgoJY5HIpZWVWzp7dxfT0Iu3tI6SkVJKWFsTOnerPM3r+PJeBATtSqZi8vIc4nQIREX5YLAZKS7sBuHx5Dzbbr7hcYDSqMJt1iMUizp3bRVTU3bWK5HIpOTn1tLePUV5uJTMzhI8f7YSH+62X/uzZn6SmBgEgk0kpKIhjaUlgcXEVlcoLSXx8ns1iMXDvXg8vXowTEqJkbGye/PxoLBYDSqUnJpOWwEAFR45Es22bEolExNzcMrdvd2E26wCQHjgQidsNycl6WltH8PKS0NAwSEPDIEVFiVRUvANAEFz4+npy6dJvAFy4kIRIBCsrAmlpwYjn5px0do5jMPhw9aoFtVq23s7c3DIul5upqUVmZpwb5FarZdy69S39/XaUSk/Ejx79jsmkpaqql5KSDvR6H4qL95Ce/iX+/t44HGsAqVSEXC4lPz+aK1eSCQ725cSJXzAa1TQ2DiLt6vpETIw/Wq03oaFKysp6qK8fIDY2ALNZR1HRVwiCC39/bzw8xDQ1/UFpaTc2227cbjCZdJw82YzU5YIPH/7i5s1vkEhE5OY+RBDc9PXN0NY2QnFxOwCnTpmoqupldHSeyEg1k5ML3LjxNX5+XiwtCWvyZ2X9jNmsw+FY4fr1FBITAzl8OIqysrcAeHiI0em+YHR0HplMwrVrFvR6H6zWUHJy6tZaB5icXKSyspeMjBCSkn5i//4IDh6MxM/PC6dTIDY2gImJBS5eTEKlkvHy5Sfi47XU1vbR0TH+GQRw/nwrY2N/8/59PnV1/Rw71kR39xQKhSclJRYKC1tYXhYoL7eSnh7C06fDnDnTsq7ipjcSFqakpiYLl8tNf78dgJ6eaYxGFfHxWlZXXWRn1256I5tA69cshvT0ELKztzM7u0xz8xBtbSOb9ulf+wficXBkn91yAwAAAABJRU5ErkJggg==
Este proyecto incluye una salida al campo para estudiar muchos aspectos geológicos sobre el terreno. El destino será la localidad zaragozana de Calcena. Antes de ir allí prepararemos el material necesario para que la visita sea aprovechada al máximo. Para ello necesitaremos el siguiente material: ---- *Página del [[mapa geológico MAGNA de Illueca|http://www.igme.es/internet/cartografia/cartografia/magna50.asp?hoja=381]] *Página del [[MAGNA de TABUENCA|http://www.igme.es/internet/cartografia/cartografia/magna50.asp?hoja=352]] *[[Memoria del mapa geológico de Illueca|http://www.igme.es/internet/cartografia/cartografia/datos/magna50/memorias/MMagna0381.pdf]] *Acceso a los [[servicios WMS y KML (googleearth) del MAGNA|http://mapas.igme.es/Servicios/default.aspx]] *Documento sobre las [[cuevas de la zona|https://drive.google.com/file/d/0Bw7EgsxrDzDyWkpfUDl0NC1pMnc/edit?usp=sharing]] ---- El dossier del proyecto incluirá: (en continua construcción, es para que vayáis adelantando trabajo) *el mapa geológico del entorno de Calcena en tamaño ~DIN-A4 y en formato PDF (Uno por persona, incluirá el nombre el alumnoa, yo lo imprimiré). *columna estratigráfica con las unidades presentes en el entorno de Calcena, también en tamaño ~DIN-A4 y en formato PDF (Uno por persona, incluirá el nombre el alumnoa, yo lo imprimiré). *descripción de las unidades estratigráficas. Formato googledrive siguiendo las normas de publicación. (Uno por grupo). *redacción con la historia geológica de la zona. Incluirá imágenes con reconstrucciones paleogeográficas. Formato googledrive siguiendo las normas de publicación. (Uno por grupo). *carpeta digital (se presentará en un USB) con el proyecto de QGIS: incluirá todos los ficheros necesarios para que yo pueda abrirlo y corregirlo. (Uno por persona). Debe contener: ##Mapa geográfico. ##Mapa geológico. ##Capa de Cuevas. Localización y nombre. ##Capa de Excursiones. Incluirá tres. Se incluirá como información: Nombre. Unidades litoestratigráficas recorridas. *clinómetro casero (uno por persona). *corte geológico (uno por persona). *informe de googleearth (póster en pdf), que incluirá (uno por grupo): ##captura de pantalla con: ###capa geología en transparencia ###leyenda estratigráfica ###excursiones geológicas ##perfiles topográficos de esas excursiones *Geología general del Sistema Ibérico en Aragón: tectónica e historia geológica. Formato googledrive siguiendo las normas de publicación(uno por grupo). *Estudio sobre las minas de Valdeplata. Formato googledrive siguiendo las normas de publicación(uno por grupo). **Qué minerales se explotaban **Origen de esos minerales **Historia de las minas **... *Cartel sobre la Geocalcenada (uno por grupo).
/*** |''Name''|TiddlySpaceConfig| |''Version''|0.7.7| |''Description''|TiddlySpace configuration| |''Status''|stable| |''Source''|http://github.com/TiddlySpace/tiddlyspace/raw/master/src/plugins/TiddlySpaceConfig.js| |''CoreVersion''|2.6.1| |''Requires''|TiddlyWebConfig ServerSideSavingPlugin TiddlyFileImporter| !Code ***/ //{{{ (function($) { var tweb = config.extensions.tiddlyweb; var recipe = config.defaultCustomFields["server.workspace"].split("recipes/")[1]; var currentSpace; // assigned later var disabledTabs = []; var coreBags = ["system", "tiddlyspace"]; var systemSpaces = ["plugins", "info", "images", "theme"]; systemSpaces = $.map(systemSpaces, function(item, i) { return "system-%0_public".format(item); }); // hijack search macro to add custom attributes for mobile devices var _search = config.macros.search.handler; config.macros.search.handler = function(place, macroName, params) { _search.apply(this, arguments); $(".searchField:input", place). attr({ autocapitalize: "off", autocorrect: "off" }); }; // arg is either a container name or a tiddler object // if fuzzy is truthy, space may be inferred from workspace (for new tiddlers) // returns space object or false var determineSpace = function(arg, fuzzy) { if(typeof arg == "string") { // container name var space = split(arg, "_", "r"); return ["public", "private"].contains(space.type) ? space : false; } else if(arg) { // tiddler var container = determineContainer(arg, fuzzy); return container ? determineSpace(container.name, fuzzy) : false; } else { return false; } }; // if fuzzy is truthy, container may be inferred from workspace for new tiddlers // returns container object or false var determineContainer = function(tiddler, fuzzy) { // TODO: expose? var bag = tiddler.fields["server.bag"]; var recipe = tiddler.fields["server.recipe"]; // XXX: unused/irrelevant/redundant!? if(bag) { return { type: "bag", name: bag }; } else if(recipe) { return { type: "recipe", name: recipe }; } else if(fuzzy) { // new tiddler var workspace = tiddler.fields["server.workspace"]; if(workspace) { var container = split(workspace, "/", "l"); return ["bags", "recipes"].contains(container.type) ? container : false; } else { return false; } } else { return false; } }; // hijack removeTiddlerCallback to restore tiddler from recipe cascade -- TODO: move into TiddlyWebWiki? var sssp = config.extensions.ServerSideSavingPlugin; var _removeTiddlerCallback = sssp.removeTiddlerCallback; sssp.removeTiddlerCallback = function(context, userParams) { var title = context.tiddler.title; var recipe = context.tiddler.fields["server.recipe"]; _removeTiddlerCallback.apply(this, arguments); if(recipe) { context.workspace = "recipes/" + recipe; var callback = function(context, userParams) { if(context.status) { var dirty = store.isDirty(); store.saveTiddler(context.tiddler).clearChangeCount(); store.setDirty(dirty); } else { store.notify(title, true); } }; context.adaptor.getTiddler(title, context, null, callback); } }; // splits a string once using delimiter // mode "l" splits at the first, "r" at the last occurrence // returns an object with members type and name var split = function(str, sep, mode) { mode = mode == "r" ? "pop" : "shift"; // TODO: use +/-1 instead of "l"/"r"? var arr = str.split(sep); var type = arr.length > 1 ? arr[mode]() : null; return { type: type, name: arr.join(sep) }; }; var plugin = config.extensions.tiddlyspace = { currentSpace: determineSpace(recipe), coreBags: coreBags.concat(systemSpaces), determineSpace: determineSpace, isValidSpaceName: function(name) { return name.match(/^[a-z][0-9a-z\-]*[0-9a-z]$/) ? true : false; }, getCurrentBag: function(type) { return "%0_%1".format(currentSpace, type); }, getCurrentWorkspace: function(type) { return "bags/" + this.getCurrentBag(type); }, // returns the URL for a space's avatar (SiteIcon) based on a server_host // object and an optional space name // optional nocors argument prevents cross-domain URLs from being generated getAvatar: function(host, space, nocors) { if(space && typeof space != "string") { // backwards compatibility -- XXX: deprecated space = space.name; } var subdomain = nocors ? currentSpace : space; host = host ? this.getHost(host, subdomain) : ""; var bag = space ? "%0_public".format(space) : "tiddlyspace"; return "%0/bags/%1/tiddlers/SiteIcon".format(host, bag); }, // returns the URL based on a server_host object (scheme, host, port) and an // optional subdomain getHost: function(host, subdomain) { if(host === undefined) { // offline tweb.status.server_host = {}; // prevents exceptions further down the stack -- XXX: hacky workaround, breaks encapsulation return null; } subdomain = subdomain ? subdomain + "." : ""; var url = "%0://%1%2".format(host.scheme, subdomain, host.host); var port = host.port; if(port && !["80", "443"].contains(port)) { url += ":" + port; } return url; }, disableTab: function(tabTiddler) { if(typeof(tabTiddler) == "string") { disabledTabs.push(tabTiddler); } else { for(var i = 0; i < tabTiddler.length; i++) { plugin.disableTab(tabTiddler[i]); } } }, checkSyncStatus: function(tiddler) { if(tiddler) { var title = typeof(tiddler) === "string" ? tiddler : tiddler.title; var el = story.getTiddler(title) || false; if(el) { refreshElements(el); } } }, isDisabledTab: function(tabTitle) { var match = new RegExp("(?:\\[\\[([^\\]]+)\\]\\])", "mg").exec(tabTitle); var tabIdentifier = match ? match[1] : tabTitle; return disabledTabs.contains(tabIdentifier); }, getCSRFToken: window.getCSRFToken || null // this may not have been processed yet }; currentSpace = plugin.currentSpace.name; tweb.serverPrefix = tweb.host.split("/")[3] || ""; // XXX: assumes root handler tweb.getStatus(function(status) { var url = plugin.getHost(status.server_host); tweb.status.server_host.url = url; config.messages.tsVersion = status.version; }); if(window.location.protocol == "file:") { // enable AutoSave by default config.options.chkAutoSave = config.options.chkAutoSave === undefined ? true : config.options.chkAutoSave; } else { // set global read-only mode based on membership heuristics var indicator = store.getTiddler("SiteTitle") || tiddler; readOnly = !(recipe.split("_").pop() == "private" || tweb.hasPermission("write", indicator)); // replace TiddlyWiki's ImportTiddlers due to cross-domain restrictions if(config.macros.fileImport) { $.extend(config.macros.importTiddlers, config.macros.fileImport); } } // hijack saveChanges to ensure SystemSettings is private by default var _saveChanges = saveChanges; saveChanges = function(onlyIfDirty, tiddlers) { if(tiddlers && tiddlers.length == 1 && tiddlers[0] && tiddlers[0].title == "SystemSettings") { var fields = tiddlers[0].fields; delete fields["server.recipe"]; fields["server.bag"] = plugin.getCurrentBag("private"); fields["server.workspace"] = plugin.getCurrentWorkspace("private"); } return _saveChanges.apply(this, arguments); }; // ensure backstage is always initialized // required to circumvent TiddlyWiki's read-only based handling config.macros.backstageInit = { init: function() { showBackstage = true; } }; // disable evaluated macro parameters for security reasons config.evaluateMacroParameters = "none"; var _parseParams = String.prototype.parseParams; String.prototype.parseParams = function(defaultName, defaultValue, allowEval, noNames, cascadeDefaults) { if(config.evaluateMacroParameters == "none") { arguments[2] = false; } return _parseParams.apply(this, arguments); }; var _tabsMacro = config.macros.tabs.handler; config.macros.tabs.handler = function(place, macroName, params) { var newParams = [params[0]]; // keep cookie name for(var i = 1; i < params.length; i += 3) { var tabTitle = params[i + 2]; if(!plugin.isDisabledTab(tabTitle)){ newParams = newParams.concat(params[i], params[i + 1], tabTitle); } } _tabsMacro.apply(this, [place, macroName, newParams]); }; // disable ControlView for XHRs by default $.ajaxSetup({ beforeSend: function(xhr) { xhr.setRequestHeader("X-ControlView", "false"); } }); // TiddlyWeb adaptor currently still uses httpReq, which needs extra magic -- XXX: obsolete this! var _httpReq = httpReq; httpReq = function(type, url, callback, params, headers, data, contentType, username, password, allowCache) { headers = headers || {}; headers["X-ControlView"] = "false"; _httpReq.apply(this, arguments); }; // register style sheet for backstage separately (important) store.addNotification("StyleSheetBackstage", refreshStyles); // option for default privacy setting config.optionsDesc.chkPrivateMode = "Set your default privacy mode to private"; config.optionsSource.chkPrivateMode = "setting"; config.options.chkPrivateMode = config.options.chkPrivateMode || false; saveSystemSetting("chkPrivateMode", true); config.defaultCustomFields["server.workspace"] = plugin. getCurrentWorkspace(config.options.chkPrivateMode ? "private" : "public"); config.paramifiers.follow = { onstart: function(v) { if(!readOnly) { var bag = "%0_public".format(currentSpace); story.displayTiddler(null, v, DEFAULT_EDIT_TEMPLATE, null, null, "server.bag:%0 server.workspace:bags/%0".format(bag)); story.setTiddlerTag(v, "follow", 1); story.focusTiddler(v, "text"); } } }; var fImport = config.macros.fileImport; if(fImport) { fImport.uploadTo = "Upload to: "; var _createForm = config.macros.fileImport.createForm; config.macros.fileImport.createForm = function(place, wizard, iframeName) { var container = $("<div />").text(fImport.uploadTo).appendTo(place); var select = $('<select name="mode" />').appendTo(container)[0]; $('<option value="private" selected>private</a>').appendTo(select); $('<option value="public">public</a>').appendTo(select); wizard.setValue("importmode", select); _createForm.apply(this, [place, wizard, iframeName]); }; var _onGet = config.macros.importTiddlers.onGetTiddler; config.macros.importTiddlers.onGetTiddler = function(context, wizard) { var type = $(wizard.getValue("importmode")).val(); var ws = plugin.getCurrentWorkspace(type); wizard.setValue("workspace", ws); _onGet.apply(this, [context, wizard]); }; } config.extensions.ServerSideSavingPlugin.reportSuccess = function(msg, tiddler) { plugin.checkSyncStatus(tiddler); msg = config.extensions.ServerSideSavingPlugin.locale[msg]; var link = "/" + encodeURIComponent(tiddler.title); displayMessage(msg.format([tiddler.title]), link); }; })(jQuery); //}}}
*Aquí hay muchos [[problemas de genética|http://www.bioygeo.info/GeneticaBG4.htm]]. Tienen las soluciones así que podéis ir haciendo los que queráis a medida que estudiemos los diferentes temas... *[[Aquí hay otros|http://www.tirsoferrol.org/ciencias/pdf/a17_problemasdegenetica.pdf]], durante el Viaje de Estudios hemos hecho el 9,10,11 y 12.
@@Please do not modify this tiddler; it was created automatically upon space creation.@@
emastic a CSS framework: http://code.google.com/p/emastic/
/*** |''Author''|Jon Robson| |''Version''|0.5.17| |''Requires''|OpenLayers.js| ***/ //{{{ (function($) { OpenLayers.ImgPath = "/"; var macro = config.macros.OpenLayerMap = { locale: { defaultText: "You created a marker at the position (%1, %2). You can associate this position with a note in your space by editing this text. If you didn't mean to do this, hit cancel and we will forget it ever happened." }, markerSize: { "default": { width: 16, height: 16 } }, markers: ["/marker.png"], init: function() { var loaded = 0; var _handler = macro.handler; macro.handler = function(place, macroName, params, wikifier, paramString, tiddler) { var that = this; window.setTimeout(function() { macro.handler(place, macroName, params, wikifier, paramString, tiddler); }, 1000); }; var checkLoadStatus = function() { loaded += 1; if(loaded === macro.markers.length) { macro.handler = _handler; } }; for(var i = 0; i < macro.markers.length; i++) { var img = new Image(); (function(){ var src = macro.markers[i]; img.onload = function() { macro.markerSize[src] = { width: this.width, height: this.height }; checkLoadStatus(); } img.onerror = function() { checkLoadStatus(); }; img.src = src; })(); } }, _usedTiles: {}, _maps: [], handler: function(place, macroName, params, wikifier, paramString, tiddler) { var options = macro.getOptions(place, params, paramString, tiddler); var id = "openLayerMap_%0".format([Math.random()]); var tidEl = story.findContainingTiddler(place); var container = $("<div />").addClass("openLayerMap").attr("macroName", macroName). attr("refresh", "macro").data("filter", options.filter || ""). dblclick(function(ev) { ev.preventDefault(); ev.stopPropagation(); return false; }).css({width: options.width, height: options.height, position: "relative"}).appendTo(place)[0]; var mapContainer = $("<div />").attr("id", id).appendTo(container)[0]; var map = new OpenLayers.Map(id); var tileLayer = new OpenLayers.Layer.OSM(); map.addLayer(tileLayer); macro._registerCreateTiddlerFromMap(container, map, true); macro._maps.push(map); map.setCenter(new OpenLayers.LonLat(0, 0), 1, true, true); macro.refresh(container, true); if(window.location.protocol == "file:") { macro.setupOfflineCaching(map, tileLayer); } }, setupOfflineCaching: function(map, layer) { var filePath = getLocalPath(window.location); filePath = filePath.substr(0, filePath.lastIndexOf("/")); var getTileName = function(x, y, zoom) { return "%0/%1_%2_%3.png".format([filePath, zoom, x, y]); }; var getTileInfo = function(src) { var parts = src.split("/"); var y = parts[parts.length - 1].split(".")[0]; var x = parts[parts.length - 2]; var z = parts[parts.length - 3]; return {x: x, y: y, z: z}; }; var cacheTile = function(tileUrl) { var tiles = macro._usedTiles; var xyz = getTileInfo(tileUrl); var z = xyz.z, y = xyz.y, x = xyz.x; if(!tiles[z]) { tiles[z] = {}; } if(!tiles[z][x]) { tiles[z][x] = []; } if(tiles[z][x].indexOf(y) == -1) { tiles[z][x].push(y); macro._usedTiles = tiles; var savePath = getTileName(x, y, z); var callback = function(responseText, xhr) { // do save of response try { saveFile(savePath, responseText); } catch(e) {} }; ajaxReq({type: "GET", url: savePath, error: function() { // only cache if no local file ajaxReq({type: "GET", url: tileUrl, success: callback}); }}); } } layer.events.register("loadstart", layer, function() {}); layer.events.register("loadend", layer, function() { // hackish $(".olTileImage", this.div).each(function(i, el) { cacheTile($(el).attr("src")); }); }); OpenLayers.Util.onImageLoadError = function() { layer.url = "http://tile.openstreetmap.org/${z}/${x}/${y}.png"; /** * For images that don't exist in the cache, you can display * a default image - one that looks like water for example. * To show nothing at all, leave the following lines commented out. */ var xyz = getTileInfo(this); this.src = getTileName(xyz.x, xyz.y, xyz.z); this.style.display = ""; }; }, getOptions: function(place, params, paramString, tiddler) { var args = paramString.parseParams("name", null, true, false, true)[0]; var width = args.width ? parseInt(args.width[0]) : $(place).width(); var height = args.height ? parseInt(args.height[0]) : $(place).height(); return { width: width, height: height, filter: args.filter ? args.filter[0] : false }; }, _registerCreateTiddlerFromMap: function(container, map) { var createModeOn = false; var btn = $("<div />").addClass("mapEditButton").attr("mode", "1"). css({position: "absolute", top: 0, right: 0}). click(function(ev) { createModeOn = createModeOn ? false : true; if(createModeOn) { $(".mapEditButton").removeClass("editMode"); $(container).addClass("editMode"); } else { $(container).removeClass("editMode"); } }).appendTo(container); $("<div />").addClass("icon").text("Add marker").appendTo(btn); OpenLayers.Control.Click = OpenLayers.Class(OpenLayers.Control, { defaultHandlerOptions: { 'single': true, 'double': false, 'pixelTolerance': 0, 'stopSingle': false, 'stopDouble': false }, initialize: function(options) { this.handlerOptions = OpenLayers.Util.extend( {}, this.defaultHandlerOptions); OpenLayers.Control.prototype.initialize.apply( this, arguments); this.handler = new OpenLayers.Handler.Click( this, { 'click': this.trigger }, this.handlerOptions ); }, trigger: function(ev) { if(!createModeOn) { return; } var pixel = ev.xy; var lonlat = map.getLonLatFromPixel(pixel).clone().transform( map.getProjectionObject(), new OpenLayers.Projection("EPSG:4326")); var lat = lonlat.lat; var lng = lonlat.lon; var template = DEFAULT_EDIT_TEMPLATE; var title = "latitude %0 longitude %1".format([lat, lng]); story.displayTiddler(ev.target, title, template, false, null, null); customFields = String.encodeHashMap(config.defaultCustomFields); var tiddlerElem = story.getTiddler(title); if(customFields) { story.addCustomFields(tiddlerElem, customFields); } var tidEl = story.getTiddler(title); var latEl = $("[edit=geo.lat]", tidEl); var lngEl = $("[edit=geo.long]", tidEl); if(latEl.length === 0) { latEl = $("<input />").attr("type", "hidden").attr("edit", "geo.lat").appendTo(tidEl); } if(lngEl.length === 0) { lngEl = $("<input />").attr("type", "hidden").attr("edit", "geo.long").appendTo(tidEl); } latEl.val(lat); lngEl.val(lng); if(!store.getTiddler(title)) { $("[edit=text]", tidEl).val(macro.locale.defaultText.format([title, lat, lng])); } } }); var click = new OpenLayers.Control.Click(); map.addControl(click); click.activate(); }, focusMap: function(map, bb) { if(!bb.minLat) { bb = {