diff options
| author | Andi Albrecht <albrecht.andi@gmail.com> | 2011-08-09 16:04:40 +0200 |
|---|---|---|
| committer | Andi Albrecht <albrecht.andi@gmail.com> | 2011-08-09 16:04:40 +0200 |
| commit | 5d015084e5bf640f41c8d93c89d2ff70c0967c2b (patch) | |
| tree | cfa3b58e11e49a6266a2a05ab9e477c5d62c5024 /extras/appengine/static | |
| parent | a8b46d3b96ead22263de782b36090f2f1bc7c15d (diff) | |
| parent | 530da46905753a1e950bcc7e736d72a7309033c6 (diff) | |
| download | sqlparse-5d015084e5bf640f41c8d93c89d2ff70c0967c2b.tar.gz | |
merge
Diffstat (limited to 'extras/appengine/static')
| -rw-r--r-- | extras/appengine/static/blank.gif | bin | 64 -> 0 bytes | |||
| -rw-r--r-- | extras/appengine/static/canvas.html | 114 | ||||
| -rw-r--r-- | extras/appengine/static/favicon.ico | bin | 0 -> 4162 bytes | |||
| -rw-r--r-- | extras/appengine/static/img_loading.gif | bin | 1348 -> 0 bytes | |||
| -rw-r--r-- | extras/appengine/static/jquery.textarearesizer.compressed.js | 1 | ||||
| -rw-r--r-- | extras/appengine/static/resize-grip.png | bin | 167 -> 0 bytes | |||
| -rw-r--r-- | extras/appengine/static/rpc_relay.html | 1 | ||||
| -rw-r--r-- | extras/appengine/static/script.js | 7 | ||||
| -rw-r--r-- | extras/appengine/static/sqlformat_client_example.py | 1 |
9 files changed, 2 insertions, 122 deletions
diff --git a/extras/appengine/static/blank.gif b/extras/appengine/static/blank.gif Binary files differdeleted file mode 100644 index 3be2119..0000000 --- a/extras/appengine/static/blank.gif +++ /dev/null diff --git a/extras/appengine/static/canvas.html b/extras/appengine/static/canvas.html deleted file mode 100644 index ab642d0..0000000 --- a/extras/appengine/static/canvas.html +++ /dev/null @@ -1,114 +0,0 @@ -<html> - -<head> -<style type="text/css"> - /* - These styles are customizable. - Provide .canvas-gadget (the div that holds the canvas mode gadget) - at least 500px width so that the gadget has sufficient screen real estate -*/ -body { - margin: 0; - font-family:arial, sans-serif; - text-align:center; -} -.container { - width:652px; - margin:0 auto; - text-align:left; -} -.fc-sign-in-header { - text-align:left; - font-size: 13px; - padding:3px 10px; - border-bottom:1px solid #000000; -} -.signin { - text-align:left; - float:right; - font-size: 13px; - height: 32px; -} -.go-back { - text-align:left; - margin:5px auto 15px auto; -} -.go-back a, .go-back a:visited { - font-weight:bold; -} -.canvas-gadget { - text-align:left; - width:650px; /* ALLOW AT LEAST 500px WIDTH*/ - margin:10px auto 10px auto; - border:1px solid #cccccc; -} -.site-header { - margin-top: 10px; -} -.section-title { - font-size: 2em; -} -.clear { - clear:both; - font-size:1px; - height:1px; - line-height:0; - margin:0; - padding:0; -} -</style> -<script type="text/javascript" src="http://www.google.com/friendconnect/script/friendconnect.js"></script> -</head> -<body> -<div class="container"> - <div class="fc-sign-in-header"> - <!--REQUIRED SO VISITORS CAN SIGN IN--> - <div class="signin" id="gadget-signin"></div> - <script type="text/javascript"> - var skin = {}; - skin['BORDER_COLOR'] = '#cccccc'; - skin['ENDCAP_BG_COLOR'] = '#e0ecff'; - skin['ENDCAP_TEXT_COLOR'] = '#333333'; - skin['ENDCAP_LINK_COLOR'] = '#0000cc'; - skin['ALTERNATE_BG_COLOR'] = '#ffffff'; - skin['CONTENT_BG_COLOR'] = '#ffffff'; - skin['CONTENT_LINK_COLOR'] = '#0000cc'; - skin['CONTENT_TEXT_COLOR'] = '#333333'; - skin['CONTENT_SECONDARY_LINK_COLOR'] = '#7777cc'; - skin['CONTENT_SECONDARY_TEXT_COLOR'] = '#666666'; - skin['CONTENT_HEADLINE_COLOR'] = '#333333'; - skin['ALIGNMENT'] = 'right'; - google.friendconnect.container.renderCanvasSignInGadget({'id': 'gadget-signin'}, skin); - </script> - <!--END REQUIRED--> - <div class="clear"></div> - </div> - - <div class="site-header"><span class="section-title">Site Name</span></div> - <div class="go-back"> - <!--REQUIRED SO VISITORS CAN RETURN TO REFERRING PAGE--> - <a href="javascript:google.friendconnect.container.goBackToSite();"> - ‹‹ Return home</a> - <!--END REQUIRED--> - </div> - <!-- REQUIRED - THIS IS WHERE THE GADGET IS PRESENTED. ALLOW AT LEAST 500px WIDTH --> - <div id="gadget-canvas" class="canvas-gadget"></div> - <script type="text/javascript"> - var skin = {}; - skin['BORDER_COLOR'] = '#cccccc'; - skin['ENDCAP_BG_COLOR'] = '#e0ecff'; - skin['ENDCAP_TEXT_COLOR'] = '#333333'; - skin['ENDCAP_LINK_COLOR'] = '#0000cc'; - skin['ALTERNATE_BG_COLOR'] = '#ffffff'; - skin['CONTENT_BG_COLOR'] = '#ffffff'; - skin['CONTENT_LINK_COLOR'] = '#0000cc'; - skin['CONTENT_TEXT_COLOR'] = '#333333'; - skin['CONTENT_SECONDARY_LINK_COLOR'] = '#7777cc'; - skin['CONTENT_SECONDARY_TEXT_COLOR'] = '#666666'; - skin['CONTENT_HEADLINE_COLOR'] = '#333333'; - google.friendconnect.container.renderUrlCanvasGadget({'id': 'gadget-canvas'}, skin); - </script> - <!--END REQUIRED--> -</div> -</body> -</html>
\ No newline at end of file diff --git a/extras/appengine/static/favicon.ico b/extras/appengine/static/favicon.ico Binary files differnew file mode 100644 index 0000000..1372520 --- /dev/null +++ b/extras/appengine/static/favicon.ico diff --git a/extras/appengine/static/img_loading.gif b/extras/appengine/static/img_loading.gif Binary files differdeleted file mode 100644 index 6465823..0000000 --- a/extras/appengine/static/img_loading.gif +++ /dev/null diff --git a/extras/appengine/static/jquery.textarearesizer.compressed.js b/extras/appengine/static/jquery.textarearesizer.compressed.js deleted file mode 100644 index 5464ae6..0000000 --- a/extras/appengine/static/jquery.textarearesizer.compressed.js +++ /dev/null @@ -1 +0,0 @@ -(function($){var textarea,staticOffset;var iLastMousePos=0;var iMin=32;var grip;$.fn.TextAreaResizer=function(){return this.each(function(){textarea=$(this).addClass('processed'),staticOffset=null;$(this).wrap('<div class="resizable-textarea"><span></span></div>').parent().append($('<div class="grippie"></div>').bind("mousedown",{el:this},startDrag));var grippie=$('div.grippie',$(this).parent())[0];grippie.style.marginRight=(grippie.offsetWidth-$(this)[0].offsetWidth)+'px'})};function startDrag(e){textarea=$(e.data.el);textarea.blur();iLastMousePos=mousePosition(e).y;staticOffset=textarea.height()-iLastMousePos;textarea.css('opacity',0.25);$(document).mousemove(performDrag).mouseup(endDrag);return false}function performDrag(e){var iThisMousePos=mousePosition(e).y;var iMousePos=staticOffset+iThisMousePos;if(iLastMousePos>=(iThisMousePos)){iMousePos-=5}iLastMousePos=iThisMousePos;iMousePos=Math.max(iMin,iMousePos);textarea.height(iMousePos+'px');if(iMousePos<iMin){endDrag(e)}return false}function endDrag(e){$(document).unbind('mousemove',performDrag).unbind('mouseup',endDrag);textarea.css('opacity',1);textarea.focus();textarea=null;staticOffset=null;iLastMousePos=0}function mousePosition(e){return{x:e.clientX+document.documentElement.scrollLeft,y:e.clientY+document.documentElement.scrollTop}}})(jQuery);
\ No newline at end of file diff --git a/extras/appengine/static/resize-grip.png b/extras/appengine/static/resize-grip.png Binary files differdeleted file mode 100644 index cae2a4e..0000000 --- a/extras/appengine/static/resize-grip.png +++ /dev/null diff --git a/extras/appengine/static/rpc_relay.html b/extras/appengine/static/rpc_relay.html deleted file mode 100644 index c602043..0000000 --- a/extras/appengine/static/rpc_relay.html +++ /dev/null @@ -1 +0,0 @@ -<html><head><script type="text/javascript" src="http://www.google.com/friendconnect/script/rpc_relay.js"></script></head></html>
\ No newline at end of file diff --git a/extras/appengine/static/script.js b/extras/appengine/static/script.js index 71bbabb..8bdf271 100644 --- a/extras/appengine/static/script.js +++ b/extras/appengine/static/script.js @@ -11,7 +11,6 @@ function update_output() { data.keyword_case = $('#id_keyword_case').val(); data.identifier_case = $('#id_identifier_case').val(); data.n_indents = $('#id_n_indents').val(); - data.right_margin = $('#id_right_margin').val(); data.output_format = $('#id_output_format').val(); form = document.getElementById('form_options'); $(form.elements).attr('disabled', 'disabled'); @@ -72,7 +71,7 @@ function load_example() { fname = $('#sel_example').val(); data = {fname: fname}; $.post('/load_example', data, - function(data) { + function(data) { $('#id_data').val(data.answer); }, 'json'); } @@ -96,8 +95,4 @@ function init() { $(document).bind('keydown', {combi: 't', disableInInput: true}, textarea_grab_focus); initialized = true; - /* jQuery textarea resizer plugin usage */ - $(document).ready(function() { - $('textarea.resizable:not(.processed)').TextAreaResizer(); - }); }
\ No newline at end of file diff --git a/extras/appengine/static/sqlformat_client_example.py b/extras/appengine/static/sqlformat_client_example.py index eec17b9..8b2a9e9 100644 --- a/extras/appengine/static/sqlformat_client_example.py +++ b/extras/appengine/static/sqlformat_client_example.py @@ -13,6 +13,7 @@ payload = ( ('n_indents', 2), ) + response = urllib2.urlopen(REMOTE_API, urllib.urlencode(payload)) print response.read() |
