Commits

Manuel Barkhau committed 9f0d31c Draft

update help, remove clickdesk

Comments (0)

Files changed (1)

static/index.html

     <div id="help">
     <ul>
         <li>
-            <h3>Why can I edit other peoples scripts?</h3>
-            <p><b>You can't</b>. Changes to other peoples scripts are <b>only local</b>.<br/>
-            <br/>
-            Local changes are lost once you leave/refresh the site.
+            <h3>How do I write pcs scripts?</h3>
+            <p>pcsedit uses CoffeeScript and processing.js. You should
+			at least be familiar with CoffeeScript, which shouldn't be
+			to hard to pick up if you know JavaScript.
+
+			You can look up all available functions provided by
+			processing.js in the reference. The pcs environment does
+			have some quirks though. Processing.js variables, such as
+			<code>width, height and mouseX</code> are only set once
+			during the loading of the script. This is not so tragic for
+			width and height, but if you want to access the current
+			mouse position, you need to access it via the
+			<code>pcs</code> object. <code>pcs.mouseX</code> will always
+			give you the current x coordinate of the mouse. 
+		
+			You can also write modules which can be imported via the
+			<code>require("/path/to/script")</code> function. It will
+			return whatever is assigned to the <code>exports</code>
+			variable in the imported script.
             </p>
         </li>
         <li>
-            <h3>Can I save my changes?</h3>
-            <p><b>Yes</b>, but only after you have logged in and
-            made your own <b>copy</b>. <br/>
+            <h3>Why can't I use tab/2 space indentation?</h3>
+			<p>Because I'm mean. Really though, I want to keep the
+			editor simple and have chosen what I think are sensible
+			defaults.
+            </p>
+        </li>
+        <li>
+            <h3>How come I can edit other peoples scripts?</h3>
+            <p><b>You can't</b>. The changes to other peoples scripts
+			are <b>browser local</b>.<br/>
             <br/>
-            Also, please remember to give credit where credit is due.
+            Local changes are lost once you leave/refresh the site, so
+			you need to <b>copy</b> the script if you want to save your
+			changes.
             </p>
         </li>
         <li>
             </p>
         </li>
         <li>
-            <h3>Can I import other scripts?</h3>
-            <p><b>Yes</b>, see for example: 
-            <a href="/#edit/mbarkhau/mandelbrot.coffee">
-            /mbarkhau/mandelbrot.coffee
-            </a>
-            </p>
-        </li>
-        <li>
             <h3>Isn't this an <a href="http://en.wikipedia.org/wiki/Cross-site_scripting">XSS</a> nightmare?</h3>
             <p><b>Yes!</b> In the worst case, all of your scripts could be wiped out. <br/>
             <br/>
         </li>
     </ul>
     </div>
-    <!-- ClickDesk - <a href='http://www.clickdesk.com'> Live Chat Service </a> for websites -->
-    <script type='text/javascript'>
-    var _glc =_glc || [];
-    _glc.push('ag9jb250YWN0dXN3aWRnZXRyEAsSB3dpZGdldHMY_eitAgw');
-    var glcpath = (('https:' == document.location.protocol) ? 'https://contactuswidget.appspot.com/livily/browser/' : 'http://gae.clickdesk.com/livily/browser/');
-    var glcp = (('https:' == document.location.protocol) ? 'https://' : 'http://');
-    var glcspt = document.createElement('script'); glcspt.type = 'text/javascript'; glcspt.async = true;glcspt.src = glcpath + 'livechat.js';
-    var s = document.getElementsByTagName('script')[0];s.parentNode.insertBefore(glcspt, s);
-    </script><noscript><p><a href='http://gae.clickdesk.com/clickdeskchat.jsp?widget_id=ag9jb250YWN0dXN3aWRnZXRyEAsSB3dpZGdldHMY_eitAgw' >Need Help?</a></p></noscript>
 </body>
 </html>