Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

not sure if this will work

  • Loading branch information...
commit 4dd24e3f05dc86329947e0616465d5891ab3906a 1 parent f8a6c87
@vegashacker authored
View
11 js/.svn/all-wcprops
@@ -1,11 +0,0 @@
-K 25
-svn:wc:ra_dav:version-url
-V 31
-/loco/!svn/ver/264/leftparen/js
-END
-leftparen.js
-K 25
-svn:wc:ra_dav:version-url
-V 44
-/loco/!svn/ver/701/leftparen/js/leftparen.js
-END
View
40 js/.svn/entries
@@ -1,40 +0,0 @@
-8
-
-dir
-527
-http://svn.devjavu.com/loco/leftparen/js
-http://svn.devjavu.com/loco
-
-
-
-2008-05-07T06:03:19.995922Z
-264
-rob.hunter@gmail.com
-
-
-svn:special svn:externals svn:needs-lock
-
-
-
-
-
-
-
-
-
-
-
-5b44ccc8-2d44-0410-8de7-b48d9843abba
-
-leftparen.js
-file
-701
-
-
-
-2008-07-31T21:26:05.000000Z
-e139a5c9c8e4a75d53d9f1ecf800b34f
-2008-08-05T17:08:54.171671Z
-701
-rob.hunter@gmail.com
-
View
1  js/.svn/format
@@ -1 +0,0 @@
-8
View
60 js/.svn/text-base/leftparen.js.svn-base
@@ -1,60 +0,0 @@
-/*
- call_closure
-
- - url: the url of the web app
- - closure_key: comes from Scheme (e.g., using body-as-closure-key)
- - post_params: a dict from post keys to values.
- - callback (optional): a thunk
- */
-function call_closure(url, closure_key, post_params, callback) {
- if (callback == null) {
- callback = function() { };
- }
- post_params['function'] = closure_key;
- $.post(url, post_params, callback, "json");
-}
-
-/*
- load_into_dom_id
-
- loads the result of calling the given closure into a dom elt on your web page.
-
- - url: the url of the web app (cannot have query params unless post_params is empty)
- - closure_key: comes from Scheme (e.g., using body-as-url)
- - dom_id: some elt in your page
- - post_params: a dict from post keys to values.
-
- MMM could add an optional fn to pass as 3rd arg to load, which is just a done callback
- */
-function load_into_dom_id(url, closure_key, dom_id, post_params) {
- var elt_str = '#' + dom_id;
- post_params['function'] = closure_key;
- $(elt_str).load(url, post_params);
-}
-
-// turns the given link_elt to a show/hide toggler of the given elt.
-function show_hide_link(elt_id, link_elt_id, hide_label, show_by_default) {
- $(document).ready(function() {
- var to_toggle = $('#' + elt_id);
- var link_elt = $('#' + link_elt_id);
- var show_label = link_elt.html();
- if (show_by_default) {
- link_elt.html(hide_label);
- to_toggle.show();
- }
- else {
- link_elt.html(show_label);
- to_toggle.hide();
- }
- link_elt.click (function() {
- if (link_elt.html() == hide_label) {
- link_elt.html(show_label);
- }
- else {
- link_elt.html(hide_label);
- }
- to_toggle.toggle();
- return false;
- });
- });
-}
Please sign in to comment.
Something went wrong with that request. Please try again.