├── LICENSE-GPL ├── LICENSE-MIT ├── README.markdown ├── docs ├── files │ ├── jquery-ba-bbq-js.html │ └── jquery-ba-bbq-js.html.bak ├── index.html ├── index │ ├── Events.html │ ├── Files.html │ ├── Functions.html │ ├── General.html │ └── Properties.html ├── javascript │ ├── main.js │ └── searchdata.js ├── nd │ ├── Data │ │ ├── ClassHierarchy.nd │ │ ├── ConfigFileInfo.nd │ │ ├── FileInfo.nd │ │ ├── ImageFileInfo.nd │ │ ├── ImageReferenceTable.nd │ │ ├── IndexInfo.nd │ │ ├── PreviousMenuState.nd │ │ ├── PreviousSettings.nd │ │ └── SymbolTable.nd │ ├── Languages.txt │ ├── Menu.txt │ └── Topics.txt ├── search │ ├── EventsH.html │ ├── FilesJ.html │ ├── FunctionsA.html │ ├── FunctionsD.html │ ├── FunctionsE.html │ ├── FunctionsF.html │ ├── FunctionsG.html │ ├── FunctionsH.html │ ├── FunctionsN.html │ ├── FunctionsP.html │ ├── FunctionsQ.html │ ├── FunctionsR.html │ ├── FunctionsS.html │ ├── GeneralA.html │ ├── GeneralD.html │ ├── GeneralE.html │ ├── GeneralF.html │ ├── GeneralG.html │ ├── GeneralH.html │ ├── GeneralJ.html │ ├── GeneralK.html │ ├── GeneralL.html │ ├── GeneralN.html │ ├── GeneralP.html │ ├── GeneralQ.html │ ├── GeneralR.html │ ├── GeneralS.html │ ├── NoResults.html │ ├── PropertiesD.html │ └── PropertiesS.html └── styles │ ├── 1.css │ ├── 2.css │ └── main.css ├── examples ├── config.php ├── deparam │ └── index.php ├── donate.gif ├── fragment-advanced │ ├── bbq.jpg │ ├── burger.html │ ├── burger.jpg │ ├── chicken.html │ ├── chicken.jpg │ ├── index.php │ ├── kebabs.html │ ├── kebabs.jpg │ ├── kielbasa.html │ ├── kielbasa.jpg │ ├── ribs.html │ ├── ribs.jpg │ ├── steak.html │ └── steak.jpg ├── fragment-ajax-crawlable │ ├── XMLpage.php │ ├── bbq.jpg │ ├── burger.jpg │ ├── chicken.jpg │ ├── index.php │ ├── kebabs.jpg │ ├── kielbasa.jpg │ ├── page.php │ ├── pages.xml │ ├── ribs.jpg │ └── steak.jpg ├── fragment-basic │ ├── bbq.jpg │ ├── burger.html │ ├── burger.jpg │ ├── chicken.html │ ├── chicken.jpg │ ├── index.php │ ├── kebabs.html │ ├── kebabs.jpg │ ├── kielbasa.html │ ├── kielbasa.jpg │ ├── ribs.html │ ├── ribs.jpg │ ├── steak.html │ └── steak.jpg ├── fragment-jquery-ui-tabs │ ├── bbq.jpg │ ├── burger.jpg │ ├── chicken.jpg │ ├── index.php │ ├── kebabs.jpg │ ├── kielbasa.jpg │ ├── ribs.jpg │ └── steak.jpg ├── index.css └── index.php ├── jquery.ba-bbq.js ├── jquery.ba-bbq.min.js ├── shared ├── SyntaxHighlighter │ ├── LGPLv3.txt │ ├── scripts │ │ ├── clipboard.swf │ │ ├── shBrushAS3.js │ │ ├── shBrushBash.js │ │ ├── shBrushCSharp.js │ │ ├── shBrushCpp.js │ │ ├── shBrushCss.js │ │ ├── shBrushDelphi.js │ │ ├── shBrushDiff.js │ │ ├── shBrushGroovy.js │ │ ├── shBrushJScript.js │ │ ├── shBrushJava.js │ │ ├── shBrushJavaFX.js │ │ ├── shBrushPerl.js │ │ ├── shBrushPhp.js │ │ ├── shBrushPlain.js │ │ ├── shBrushPowerShell.js │ │ ├── shBrushPython.js │ │ ├── shBrushRuby.js │ │ ├── shBrushScala.js │ │ ├── shBrushSql.js │ │ ├── shBrushVb.js │ │ ├── shBrushXml.js │ │ ├── shCore.js │ │ └── shLegacy.js │ ├── src │ │ ├── shCore.js │ │ └── shLegacy.js │ ├── styles │ │ ├── help.png │ │ ├── magnifier.png │ │ ├── page_white_code.png │ │ ├── page_white_copy.png │ │ ├── printer.png │ │ ├── shCore.css │ │ ├── shThemeDefault.css │ │ ├── shThemeDjango.css │ │ ├── shThemeEmacs.css │ │ ├── shThemeFadeToGrey.css │ │ ├── shThemeMidnight.css │ │ ├── shThemeRDark.css │ │ └── wrapping.png │ └── test.html ├── ba-debug.js ├── jquery-1.3.2.js ├── jquery-1.4.1.js ├── jquery-1.4.2.js ├── jquery-ui-1.7.2 │ ├── css │ │ └── benalman │ │ │ ├── images │ │ │ ├── cowboy_hat.png │ │ │ ├── ui-bg_diagonals-medium_18_b81900_40x40.png │ │ │ ├── ui-bg_diagonals-medium_20_FF7F00_40x40.png │ │ │ ├── ui-bg_diagonals-small_35_FF7F00_40x40.png │ │ │ ├── ui-bg_flat_10_000000_40x100.png │ │ │ ├── ui-bg_highlight-soft_100_FDEBDC_1x100.png │ │ │ ├── ui-bg_highlight-soft_100_FFD6AF_1x100.png │ │ │ ├── ui-bg_highlight-soft_100_dddddd_1x100.png │ │ │ ├── ui-bg_highlight-soft_75_C4884F_1x100.png │ │ │ ├── ui-bg_inset-soft_100_dddddd_1x100.png │ │ │ ├── ui-icons_222222_256x240.png │ │ │ ├── ui-icons_228ef1_256x240.png │ │ │ ├── ui-icons_333333_256x240.png │ │ │ ├── ui-icons_913D00_256x240.png │ │ │ ├── ui-icons_FF7F00_256x240.png │ │ │ ├── ui-icons_ffd27a_256x240.png │ │ │ └── ui-icons_ffffff_256x240.png │ │ │ └── jquery-ui-1.7.2.css │ └── js │ │ └── jquery-ui-1.7.2.js ├── json2.js ├── json_echo.php └── qunit.js └── unit ├── ie7-compat.html ├── index.html ├── jquery-1.3.2.html ├── jquery-1.4.1.html ├── qunit.css └── unit.js /LICENSE-MIT: -------------------------------------------------------------------------------- 1 | Copyright (c) 2010 "Cowboy" Ben Alman 2 | 3 | Permission is hereby granted, free of charge, to any person 4 | obtaining a copy of this software and associated documentation 5 | files (the "Software"), to deal in the Software without 6 | restriction, including without limitation the rights to use, 7 | copy, modify, merge, publish, distribute, sublicense, and/or sell 8 | copies of the Software, and to permit persons to whom the 9 | Software is furnished to do so, subject to the following 10 | conditions: 11 | 12 | The above copyright notice and this permission notice shall be 13 | included in all copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, 16 | EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES 17 | OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND 18 | NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT 19 | HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, 20 | WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING 21 | FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR 22 | OTHER DEALINGS IN THE SOFTWARE. 23 | -------------------------------------------------------------------------------- /docs/index.html: -------------------------------------------------------------------------------- 1 |
-------------------------------------------------------------------------------- /docs/index/Events.html: -------------------------------------------------------------------------------- 1 | 2 | 3 |H | |
hashchange event | |
hashchange event(BBQ) |
J | |
jQuery BBQ: | |
jQuery hashchange event |
D | |
delay, jQuery. | |
domain, jQuery. | |
S | |
src, jQuery. |
It might look like more food than you can eat, but trust me, you'll finish 12 | this burger. What, you say you're a vegetarian? Ok then, try the 13 | Chicken!
14 | 15 | 16 | -------------------------------------------------------------------------------- /examples/fragment-advanced/burger.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cowboy/jquery-bbq/8e0064ba68a34bcd805e15499cb45de3f4cc398d/examples/fragment-advanced/burger.jpg -------------------------------------------------------------------------------- /examples/fragment-advanced/chicken.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 |This spicy meal might have you begging for "cerveza" but you'll be coming back for 12 | seconds! Still hungry? Why not wash that chicken down with a heaping plate of 13 | Kebabs?
14 | 15 | 16 | -------------------------------------------------------------------------------- /examples/fragment-advanced/chicken.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cowboy/jquery-bbq/8e0064ba68a34bcd805e15499cb45de3f4cc398d/examples/fragment-advanced/chicken.jpg -------------------------------------------------------------------------------- /examples/fragment-advanced/kebabs.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 |Who doesn't like kebabs? Nobody! That's why this meat and veggie combo is sure 12 | to blow your mind! Still, if you aren't in the mood for wooden sticks, why not let a 13 | delicious Burger whet your appetite?
14 | 15 | 16 | -------------------------------------------------------------------------------- /examples/fragment-advanced/kebabs.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cowboy/jquery-bbq/8e0064ba68a34bcd805e15499cb45de3f4cc398d/examples/fragment-advanced/kebabs.jpg -------------------------------------------------------------------------------- /examples/fragment-advanced/kielbasa.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 |One bite of this kielbasa will have you asking for the recipe, and that's a fact. 12 | But save some room, because while you're here, you've got to check out our fantastic 13 | fall-off-the-bone Ribs!
14 | 15 | 16 | -------------------------------------------------------------------------------- /examples/fragment-advanced/kielbasa.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cowboy/jquery-bbq/8e0064ba68a34bcd805e15499cb45de3f4cc398d/examples/fragment-advanced/kielbasa.jpg -------------------------------------------------------------------------------- /examples/fragment-advanced/ribs.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 |What's better than a half-rack of ribs? A full rack! And if you like ribs, 12 | which you do, you're sure to love our perfectly seared flame-broiled 13 | Steak!
14 | 15 | 16 | -------------------------------------------------------------------------------- /examples/fragment-advanced/ribs.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cowboy/jquery-bbq/8e0064ba68a34bcd805e15499cb45de3f4cc398d/examples/fragment-advanced/ribs.jpg -------------------------------------------------------------------------------- /examples/fragment-advanced/steak.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 |Seasoned and cooked perfectly, this amazing steak aims to please! And if you 12 | have room left over, don't forget to help yourself to a plate of our sweet 13 | Kielbasa!
14 | 15 | 16 | -------------------------------------------------------------------------------- /examples/fragment-advanced/steak.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cowboy/jquery-bbq/8e0064ba68a34bcd805e15499cb45de3f4cc398d/examples/fragment-advanced/steak.jpg -------------------------------------------------------------------------------- /examples/fragment-ajax-crawlable/XMLpage.php: -------------------------------------------------------------------------------- 1 | attr['id'] // The page node "id" attribute. 22 | // $page->attr['title'] // The page node "title" attribute. 23 | // $page->content // The contents of the page node. 24 | // 25 | // $page->options['id'] // The requested "id". 26 | // 27 | // Notes: 28 | // 29 | // * Either use valid XHTML content, or wrap the content inside the page node 30 | // with tags. 31 | // * Page attribute values are completely arbitrary and will be auto-populated 32 | // into the `attr` array. The only required attribute is "id". 33 | 34 | class XMLpage { 35 | 36 | // Default options. 37 | private $options = array( 38 | 'id' => '', 39 | 'xml' => 'pages.xml', 40 | 'fallback_ids' => array( '404', '' ), 41 | ); 42 | 43 | function XMLpage( $options = array() ) { 44 | // Override any default options with passed options. 45 | foreach ( $options as $key => $value ) { 46 | $this->options[ $key ] = $value; 47 | } 48 | 49 | // Initialize XML and XPath objects. 50 | $this->dom = new DOMDocument(); 51 | $this->dom->load( $this->options['xml'] ); 52 | $this->xpath = new DOMXPath( $this->dom ); 53 | 54 | // While the requested id will always be tried first, in case that page 55 | // doesn't exist, the first page specified in `fallback_ids` will be used 56 | // instead. 57 | $ids = $this->options['fallback_ids']; 58 | array_unshift( $ids, $this->options['id'] ); 59 | 60 | foreach ( $ids as $id ) { 61 | // If `id` page is defined in the XML, load and initialize it. 62 | if ( $this->load_page( $id ) ) { 63 | $this->init_page( $id ); 64 | break; 65 | } 66 | } 67 | } 68 | 69 | // Load a page node from the XML document and return true if successful. 70 | private function load_page( $id = '' ) { 71 | // Get the page node matching this ID. 72 | $this->page = $this->xpath->query( "/pages/page[@id='$id']" )->item(0); 73 | 74 | // Return the success value. 75 | return isset( $this->page ); 76 | } 77 | 78 | // Initialize page vars from the XML. 79 | private function init_page( $id ) { 80 | // The HTML content of the page node. 81 | $dom = new DOMDocument(); 82 | $dom->loadXML( $this->dom->saveXML( $this->page ) ); 83 | $this->content = $dom->saveHTML(); 84 | 85 | // An array of attribute values. 86 | $this->attr = array(); 87 | foreach ( $this->page->attributes as $name => $node ) { 88 | $this->attr[ $name ] = $node->nodeValue; 89 | } 90 | } 91 | 92 | }; 93 | 94 | ?> -------------------------------------------------------------------------------- /examples/fragment-ajax-crawlable/bbq.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cowboy/jquery-bbq/8e0064ba68a34bcd805e15499cb45de3f4cc398d/examples/fragment-ajax-crawlable/bbq.jpg -------------------------------------------------------------------------------- /examples/fragment-ajax-crawlable/burger.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cowboy/jquery-bbq/8e0064ba68a34bcd805e15499cb45de3f4cc398d/examples/fragment-ajax-crawlable/burger.jpg -------------------------------------------------------------------------------- /examples/fragment-ajax-crawlable/chicken.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cowboy/jquery-bbq/8e0064ba68a34bcd805e15499cb45de3f4cc398d/examples/fragment-ajax-crawlable/chicken.jpg -------------------------------------------------------------------------------- /examples/fragment-ajax-crawlable/kebabs.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cowboy/jquery-bbq/8e0064ba68a34bcd805e15499cb45de3f4cc398d/examples/fragment-ajax-crawlable/kebabs.jpg -------------------------------------------------------------------------------- /examples/fragment-ajax-crawlable/kielbasa.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cowboy/jquery-bbq/8e0064ba68a34bcd805e15499cb45de3f4cc398d/examples/fragment-ajax-crawlable/kielbasa.jpg -------------------------------------------------------------------------------- /examples/fragment-ajax-crawlable/page.php: -------------------------------------------------------------------------------- 1 | $_GET['id'] )); 12 | 13 | // Return the requested page data in JSON format. 14 | print json_encode(array( 15 | 'attr' => $page->attr, 16 | 'content' => $page->content, 17 | )); 18 | 19 | ?> -------------------------------------------------------------------------------- /examples/fragment-ajax-crawlable/pages.xml: -------------------------------------------------------------------------------- 1 | 2 |Click a nav item above or below to load some delicious AJAX content! Also, 7 | once the content loads, feel free to further explore our savory delights by 8 | clicking any inline links you might see.
9 |This is a 404 error page.
14 |It might look like more food than you can eat, but trust me, you'll finish 19 | this burger. What, you say you're a vegetarian? Ok then, try the 20 | Chicken!
21 |This spicy meal might have you begging for "cerveza" but you'll be coming back for 26 | seconds! Still hungry? Why not wash that chicken down with a heaping plate of 27 | Kebabs?
28 |Who doesn't like kebabs? Nobody! That's why this meat and veggie combo is sure 33 | to blow your mind! Still, if you aren't in the mood for wooden sticks, why not let a 34 | delicious Burger whet your appetite?
35 |One bite of this kielbasa will have you asking for the recipe, and that's a fact. 40 | But save some room, because while you're here, you've got to check out our fantastic 41 | fall-off-the-bone Ribs!
42 |What's better than a half-rack of ribs? A full rack! And if you like ribs, 47 | which you do, you're sure to love our perfectly seared flame-broiled 48 | Steak!
49 |Seasoned and cooked perfectly, this amazing steak aims to please! And if you 54 | have room left over, don't forget to help yourself to a plate of our sweet 55 | Kielbasa!
56 |It might look like more food than you can eat, but trust me, you'll finish 12 | this burger. What, you say you're a vegetarian? Ok then, try the 13 | Chicken!
14 | 15 | 16 | -------------------------------------------------------------------------------- /examples/fragment-basic/burger.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cowboy/jquery-bbq/8e0064ba68a34bcd805e15499cb45de3f4cc398d/examples/fragment-basic/burger.jpg -------------------------------------------------------------------------------- /examples/fragment-basic/chicken.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 |This spicy meal might have you begging for "cerveza" but you'll be coming back for 12 | seconds! Still hungry? Why not wash that chicken down with a heaping plate of 13 | Kebabs?
14 | 15 | 16 | -------------------------------------------------------------------------------- /examples/fragment-basic/chicken.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cowboy/jquery-bbq/8e0064ba68a34bcd805e15499cb45de3f4cc398d/examples/fragment-basic/chicken.jpg -------------------------------------------------------------------------------- /examples/fragment-basic/kebabs.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 |Who doesn't like kebabs? Nobody! That's why this meat and veggie combo is sure 12 | to blow your mind! Still, if you aren't in the mood for wooden sticks, why not let a 13 | delicious Burger whet your appetite?
14 | 15 | 16 | -------------------------------------------------------------------------------- /examples/fragment-basic/kebabs.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cowboy/jquery-bbq/8e0064ba68a34bcd805e15499cb45de3f4cc398d/examples/fragment-basic/kebabs.jpg -------------------------------------------------------------------------------- /examples/fragment-basic/kielbasa.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 |One bite of this kielbasa will have you asking for the recipe, and that's a fact. 12 | But save some room, because while you're here, you've got to check out our fantastic 13 | fall-off-the-bone Ribs!
14 | 15 | 16 | -------------------------------------------------------------------------------- /examples/fragment-basic/kielbasa.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cowboy/jquery-bbq/8e0064ba68a34bcd805e15499cb45de3f4cc398d/examples/fragment-basic/kielbasa.jpg -------------------------------------------------------------------------------- /examples/fragment-basic/ribs.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 |What's better than a half-rack of ribs? A full rack! And if you like ribs, 12 | which you do, you're sure to love our perfectly seared flame-broiled 13 | Steak!
14 | 15 | 16 | -------------------------------------------------------------------------------- /examples/fragment-basic/ribs.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cowboy/jquery-bbq/8e0064ba68a34bcd805e15499cb45de3f4cc398d/examples/fragment-basic/ribs.jpg -------------------------------------------------------------------------------- /examples/fragment-basic/steak.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 |Seasoned and cooked perfectly, this amazing steak aims to please! And if you 12 | have room left over, don't forget to help yourself to a plate of our sweet 13 | Kielbasa!
14 | 15 | 16 | -------------------------------------------------------------------------------- /examples/fragment-basic/steak.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cowboy/jquery-bbq/8e0064ba68a34bcd805e15499cb45de3f4cc398d/examples/fragment-basic/steak.jpg -------------------------------------------------------------------------------- /examples/fragment-jquery-ui-tabs/bbq.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cowboy/jquery-bbq/8e0064ba68a34bcd805e15499cb45de3f4cc398d/examples/fragment-jquery-ui-tabs/bbq.jpg -------------------------------------------------------------------------------- /examples/fragment-jquery-ui-tabs/burger.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cowboy/jquery-bbq/8e0064ba68a34bcd805e15499cb45de3f4cc398d/examples/fragment-jquery-ui-tabs/burger.jpg -------------------------------------------------------------------------------- /examples/fragment-jquery-ui-tabs/chicken.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cowboy/jquery-bbq/8e0064ba68a34bcd805e15499cb45de3f4cc398d/examples/fragment-jquery-ui-tabs/chicken.jpg -------------------------------------------------------------------------------- /examples/fragment-jquery-ui-tabs/kebabs.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cowboy/jquery-bbq/8e0064ba68a34bcd805e15499cb45de3f4cc398d/examples/fragment-jquery-ui-tabs/kebabs.jpg -------------------------------------------------------------------------------- /examples/fragment-jquery-ui-tabs/kielbasa.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cowboy/jquery-bbq/8e0064ba68a34bcd805e15499cb45de3f4cc398d/examples/fragment-jquery-ui-tabs/kielbasa.jpg -------------------------------------------------------------------------------- /examples/fragment-jquery-ui-tabs/ribs.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cowboy/jquery-bbq/8e0064ba68a34bcd805e15499cb45de3f4cc398d/examples/fragment-jquery-ui-tabs/ribs.jpg -------------------------------------------------------------------------------- /examples/fragment-jquery-ui-tabs/steak.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cowboy/jquery-bbq/8e0064ba68a34bcd805e15499cb45de3f4cc398d/examples/fragment-jquery-ui-tabs/steak.jpg -------------------------------------------------------------------------------- /jquery.ba-bbq.min.js: -------------------------------------------------------------------------------- 1 | /* 2 | * jQuery BBQ: Back Button & Query Library - v1.3pre - 8/26/2010 3 | * http://benalman.com/projects/jquery-bbq-plugin/ 4 | * 5 | * Copyright (c) 2010 "Cowboy" Ben Alman 6 | * Dual licensed under the MIT and GPL licenses. 7 | * http://benalman.com/about/license/ 8 | */ 9 | (function($,r){var h,n=Array.prototype.slice,t=decodeURIComponent,a=$.param,j,c,m,y,b=$.bbq=$.bbq||{},s,x,k,e=$.event.special,d="hashchange",B="querystring",F="fragment",z="elemUrlAttr",l="href",w="src",p=/^.*\?|#.*$/g,u,H,g,i,C,E={};function G(I){return typeof I==="string"}function D(J){var I=n.call(arguments,1);return function(){return J.apply(this,I.concat(n.call(arguments)))}}function o(I){return I.replace(H,"$2")}function q(I){return I.replace(/(?:^[^?#]*\?([^#]*).*$)?.*/,"$1")}function f(K,P,I,L,J){var R,O,N,Q,M;if(L!==h){N=I.match(K?H:/^([^#?]*)\??([^#]*)(#?.*)/);M=N[3]||"";if(J===2&&G(L)){O=L.replace(K?u:p,"")}else{Q=m(N[2]);L=G(L)?m[K?F:B](L):L;O=J===2?L:J===1?$.extend({},L,Q):$.extend({},Q,L);O=j(O);if(K){O=O.replace(g,t)}}R=N[1]+(K?C:O||!N[1]?"?":"")+O+M}else{R=P(I!==h?I:location.href)}return R}a[B]=D(f,0,q);a[F]=c=D(f,1,o);a.sorted=j=function(J,K){var I=[],L={};$.each(a(J,K).split("&"),function(P,M){var O=M.replace(/(?:%5B|=).*$/,""),N=L[O];if(!N){N=L[O]=[];I.push(O)}N.push(M)});return $.map(I.sort(),function(M){return L[M]}).join("&")};c.noEscape=function(J){J=J||"";var I=$.map(J.split(""),encodeURIComponent);g=new RegExp(I.join("|"),"g")};c.noEscape(",/");c.ajaxCrawlable=function(I){if(I!==h){if(I){u=/^.*(?:#!|#)/;H=/^([^#]*)(?:#!|#)?(.*)$/;C="#!"}else{u=/^.*#/;H=/^([^#]*)#?(.*)$/;C="#"}i=!!I}return i};c.ajaxCrawlable(0);$.deparam=m=function(L,I){var K={},J={"true":!0,"false":!1,"null":null};$.each(L.replace(/\+/g," ").split("&"),function(O,T){var N=T.split("="),S=t(N[0]),M,R=K,P=0,U=S.split("]["),Q=U.length-1;if(/\[/.test(U[0])&&/\]$/.test(U[Q])){U[Q]=U[Q].replace(/\]$/,"");U=U.shift().split("[").concat(U);Q=U.length-1}else{Q=0}if(N.length===2){M=t(N[1]);if(I){M=M&&!isNaN(M)?+M:M==="undefined"?h:J[M]!==h?J[M]:M}if(Q){for(;P<=Q;P++){S=U[P]===""?R.length:U[P];R=R[S]=P7);function a(j){j=j||location.href;return"#"+j.replace(/^[^#]*#?(.*)$/,"$1")}$.fn[c]=function(j){return j?this.bind(c,j):this.trigger(c)};$.fn[c].delay=50;g[c]=$.extend(g[c],{setup:function(){if(d){return false}$(f.start)},teardown:function(){if(d){return false}$(f.stop)}});f=(function(){var j={},p,m=a(),k=function(q){return q},l=k,o=k;j.start=function(){p||n()};j.stop=function(){p&&clearTimeout(p);p=b};function n(){var r=a(),q=o(m);if(r!==m){l(m=r,q);$(e).trigger(c)}else{if(q!==m){location.href=location.href.replace(/#.*/,"")+q}}p=setTimeout(n,$.fn[c].delay)}$.browser.msie&&!d&&(function(){var q,r;j.start=function(){if(!q){r=$.fn[c].src;r=r&&r+a();q=$('').hide().one("load",function(){r||l(a());n()}).attr("src",r||"javascript:0").insertAfter("body")[0].contentWindow;h.onpropertychange=function(){try{if(event.propertyName==="title"){q.document.title=h.title}}catch(s){}}}};j.stop=k;o=function(){return a(q.location.href)};l=function(v,s){var u=q.document,t=$.fn[c].domain;if(v!==s){u.title=h.title;u.open();t&&u.write(' 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 30 | 31 | 32 | 33 |SyntaxHihglighter Test
34 |This is a test file to insure that everything is working well.
35 | 36 |37 | function test() : String 38 | { 39 | return 10; 40 | } 41 |42 | 43 | -------------------------------------------------------------------------------- /shared/jquery-ui-1.7.2/css/benalman/images/cowboy_hat.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cowboy/jquery-bbq/8e0064ba68a34bcd805e15499cb45de3f4cc398d/shared/jquery-ui-1.7.2/css/benalman/images/cowboy_hat.png -------------------------------------------------------------------------------- /shared/jquery-ui-1.7.2/css/benalman/images/ui-bg_diagonals-medium_18_b81900_40x40.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cowboy/jquery-bbq/8e0064ba68a34bcd805e15499cb45de3f4cc398d/shared/jquery-ui-1.7.2/css/benalman/images/ui-bg_diagonals-medium_18_b81900_40x40.png -------------------------------------------------------------------------------- /shared/jquery-ui-1.7.2/css/benalman/images/ui-bg_diagonals-medium_20_FF7F00_40x40.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cowboy/jquery-bbq/8e0064ba68a34bcd805e15499cb45de3f4cc398d/shared/jquery-ui-1.7.2/css/benalman/images/ui-bg_diagonals-medium_20_FF7F00_40x40.png -------------------------------------------------------------------------------- /shared/jquery-ui-1.7.2/css/benalman/images/ui-bg_diagonals-small_35_FF7F00_40x40.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cowboy/jquery-bbq/8e0064ba68a34bcd805e15499cb45de3f4cc398d/shared/jquery-ui-1.7.2/css/benalman/images/ui-bg_diagonals-small_35_FF7F00_40x40.png -------------------------------------------------------------------------------- /shared/jquery-ui-1.7.2/css/benalman/images/ui-bg_flat_10_000000_40x100.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cowboy/jquery-bbq/8e0064ba68a34bcd805e15499cb45de3f4cc398d/shared/jquery-ui-1.7.2/css/benalman/images/ui-bg_flat_10_000000_40x100.png -------------------------------------------------------------------------------- /shared/jquery-ui-1.7.2/css/benalman/images/ui-bg_highlight-soft_100_FDEBDC_1x100.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cowboy/jquery-bbq/8e0064ba68a34bcd805e15499cb45de3f4cc398d/shared/jquery-ui-1.7.2/css/benalman/images/ui-bg_highlight-soft_100_FDEBDC_1x100.png -------------------------------------------------------------------------------- /shared/jquery-ui-1.7.2/css/benalman/images/ui-bg_highlight-soft_100_FFD6AF_1x100.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cowboy/jquery-bbq/8e0064ba68a34bcd805e15499cb45de3f4cc398d/shared/jquery-ui-1.7.2/css/benalman/images/ui-bg_highlight-soft_100_FFD6AF_1x100.png -------------------------------------------------------------------------------- /shared/jquery-ui-1.7.2/css/benalman/images/ui-bg_highlight-soft_100_dddddd_1x100.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cowboy/jquery-bbq/8e0064ba68a34bcd805e15499cb45de3f4cc398d/shared/jquery-ui-1.7.2/css/benalman/images/ui-bg_highlight-soft_100_dddddd_1x100.png -------------------------------------------------------------------------------- /shared/jquery-ui-1.7.2/css/benalman/images/ui-bg_highlight-soft_75_C4884F_1x100.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cowboy/jquery-bbq/8e0064ba68a34bcd805e15499cb45de3f4cc398d/shared/jquery-ui-1.7.2/css/benalman/images/ui-bg_highlight-soft_75_C4884F_1x100.png -------------------------------------------------------------------------------- /shared/jquery-ui-1.7.2/css/benalman/images/ui-bg_inset-soft_100_dddddd_1x100.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cowboy/jquery-bbq/8e0064ba68a34bcd805e15499cb45de3f4cc398d/shared/jquery-ui-1.7.2/css/benalman/images/ui-bg_inset-soft_100_dddddd_1x100.png -------------------------------------------------------------------------------- /shared/jquery-ui-1.7.2/css/benalman/images/ui-icons_222222_256x240.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cowboy/jquery-bbq/8e0064ba68a34bcd805e15499cb45de3f4cc398d/shared/jquery-ui-1.7.2/css/benalman/images/ui-icons_222222_256x240.png -------------------------------------------------------------------------------- /shared/jquery-ui-1.7.2/css/benalman/images/ui-icons_228ef1_256x240.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cowboy/jquery-bbq/8e0064ba68a34bcd805e15499cb45de3f4cc398d/shared/jquery-ui-1.7.2/css/benalman/images/ui-icons_228ef1_256x240.png -------------------------------------------------------------------------------- /shared/jquery-ui-1.7.2/css/benalman/images/ui-icons_333333_256x240.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cowboy/jquery-bbq/8e0064ba68a34bcd805e15499cb45de3f4cc398d/shared/jquery-ui-1.7.2/css/benalman/images/ui-icons_333333_256x240.png -------------------------------------------------------------------------------- /shared/jquery-ui-1.7.2/css/benalman/images/ui-icons_913D00_256x240.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cowboy/jquery-bbq/8e0064ba68a34bcd805e15499cb45de3f4cc398d/shared/jquery-ui-1.7.2/css/benalman/images/ui-icons_913D00_256x240.png -------------------------------------------------------------------------------- /shared/jquery-ui-1.7.2/css/benalman/images/ui-icons_FF7F00_256x240.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cowboy/jquery-bbq/8e0064ba68a34bcd805e15499cb45de3f4cc398d/shared/jquery-ui-1.7.2/css/benalman/images/ui-icons_FF7F00_256x240.png -------------------------------------------------------------------------------- /shared/jquery-ui-1.7.2/css/benalman/images/ui-icons_ffd27a_256x240.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cowboy/jquery-bbq/8e0064ba68a34bcd805e15499cb45de3f4cc398d/shared/jquery-ui-1.7.2/css/benalman/images/ui-icons_ffd27a_256x240.png -------------------------------------------------------------------------------- /shared/jquery-ui-1.7.2/css/benalman/images/ui-icons_ffffff_256x240.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cowboy/jquery-bbq/8e0064ba68a34bcd805e15499cb45de3f4cc398d/shared/jquery-ui-1.7.2/css/benalman/images/ui-icons_ffffff_256x240.png -------------------------------------------------------------------------------- /shared/json_echo.php: -------------------------------------------------------------------------------- 1 | 2 | 3 | // 4 | // Simple PHP JSON/P Echo - "Cowboy" Ben Alman - http://benalman.com/ 5 | // v1.0 - 2/20/2009 6 | // 7 | 8 | // Show script source if no params are passed 9 | if (count($_GET) == 0) { 10 | highlight_file($_SERVER['SCRIPT_FILENAME']); 11 | die; 12 | } 13 | 14 | // Get request params 15 | $obj = array(); 16 | foreach ($_GET as $key => $value) { 17 | $obj[$key] = $value; 18 | } 19 | foreach ($_POST as $key => $value) { 20 | $obj[$key] = $value; 21 | } 22 | 23 | $json_string = isset($obj['JSON']) ? $obj['JSON'] : null; 24 | $jsonp_callback = isset($obj['callback']) ? $obj['callback'] : null; 25 | 26 | // remove misc unneeded params 27 | unset($obj['_']); 28 | unset($obj['callback']); 29 | unset($obj['JSON']); 30 | 31 | $json = $json_string ? $json_string : json_encode($obj); 32 | $jsonp = $jsonp_callback ? $jsonp_callback . "($json)" : $json; 33 | 34 | 35 | sleep(1); // simulate slow connection :D 36 | 37 | 38 | $is_xhr = isset($_SERVER['HTTP_X_REQUESTED_WITH']) && 39 | strtolower($_SERVER['HTTP_X_REQUESTED_WITH']) == 'xmlhttprequest'; 40 | 41 | $is_referer = isset($_SERVER["HTTP_REFERER"]); 42 | 43 | if ($is_xhr) { 44 | 45 | header( 'Content-type: application/json' ); 46 | print $jsonp; 47 | 48 | } else if ($is_referer) { 49 | 50 | $params = array(); 51 | foreach ($obj as $key => $value) { 52 | $params[] = urlencode($key) . '=' . urlencode($value); 53 | } 54 | 55 | $url = preg_replace('/\?.*$/', '', $_SERVER["HTTP_REFERER"]); 56 | $url .= '?' . implode('&', $params); 57 | 58 | header( "Location: $url"); 59 | 60 | } else { 61 | 62 | header( 'Content-type: text/plain' ); 63 | 64 | print $jsonp; 65 | 66 | } 67 | 68 | ?> 69 | -------------------------------------------------------------------------------- /unit/ie7-compat.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 |jQuery BBQ: Back Button & Query Library - Unit Tests 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 |16 |20 |jQuery BBQ: Back Button & Query Library - Unit Tests
17 | Project Home 18 | 19 |21 | 22 | 23 |
24 | These unit tests include jQuery .... To view the unit tests using 25 | jQuery 1.4.1, click here. 26 |
28 |
This page uses <meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7"> (IE8). 27 |29 | 30 | 31 | 32 | -------------------------------------------------------------------------------- /unit/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 |
jQuery BBQ: Back Button & Query Library - Unit Tests 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 |15 |19 |jQuery BBQ: Back Button & Query Library - Unit Tests
16 | Project Home 17 | 18 |20 | 21 | 22 |
23 | These unit tests include jQuery .... To view the unit tests using 24 | jQuery 1.4.1, click here, and to view the unit tests using 25 | jQuery 1.3.2, click here. 26 |
28 |
To view a unit test page using <meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7"> click here (IE8). 27 |29 | 30 | 31 | 32 | -------------------------------------------------------------------------------- /unit/jquery-1.3.2.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 |
jQuery BBQ: Back Button & Query Library - Unit Tests 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 |15 |19 |jQuery BBQ: Back Button & Query Library - Unit Tests
16 | Project Home 17 | 18 |20 | 21 | 22 |
23 | These unit tests include jQuery .... To view the unit tests using 24 | jQuery 1.4.2, click here, and to view the unit tests using 25 | jQuery 1.4.1, click here. 26 |
28 |
To view a unit test page using <meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7"> click here (IE8). 27 |29 | 30 | 31 | 32 | -------------------------------------------------------------------------------- /unit/jquery-1.4.1.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 |
jQuery BBQ: Back Button & Query Library - Unit Tests 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 |15 |19 |jQuery BBQ: Back Button & Query Library - Unit Tests
16 | Project Home 17 | 18 |20 | 21 | 22 |
23 | These unit tests include jQuery .... To view the unit tests using 24 | jQuery 1.3.2, click here, and to view the unit tests using 25 | jQuery 1.4.2, click here 26 |
28 |
To view a unit test page using <meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7"> click here (IE8). 27 |29 | 30 | 31 | 32 | -------------------------------------------------------------------------------- /unit/qunit.css: -------------------------------------------------------------------------------- 1 | 2 | body { 3 | font-family:"Helvetica Neue Light", "HelveticaNeue-Light", "Helvetica Neue", Calibri, Helvetica, Arial; 4 | } 5 | 6 | h3, 7 | p, 8 | #qunit-userAgent, 9 | #qunit-banner, 10 | ol { 11 | margin: 0; 12 | padding: 0; 13 | } 14 | 15 | li { 16 | list-style-position: inside; 17 | } 18 | 19 | #qunit-tests { 20 | font-size: smaller; 21 | /* IE6/7 seem to have trouble displaying an OL with no LI children */ 22 | #border-bottom: 1px solid #fff; 23 | #margin-bottom: -1px; 24 | } 25 | 26 | #qunit-tests li { 27 | padding: 0.4em 2.5em; 28 | border-bottom: 1px solid #fff; 29 | font-size: small; 30 | } 31 | 32 | #qunit-tests li ol { 33 | margin-top: 0.5em; 34 | padding: 0.5em; 35 | background-color: #fff; 36 | -moz-box-shadow: inset 0px 1px 8px #ccc; 37 | -webkit-box-shadow: inset 0px 1px 8px #ccc; 38 | box-shadow: inset 0px 1px 8px #ccc; 39 | } 40 | 41 | #qunit-tests li ol, 42 | #qunit-header, 43 | #qunit-testresult { 44 | -moz-border-radius: 10px; 45 | -webkit-border-radius: 10px; 46 | border-radius: 10px; 47 | } 48 | 49 | #qunit-tests li li { 50 | border-bottom: none; 51 | margin: 0.5em; 52 | background-color: #fff; 53 | list-style-position: inside; 54 | padding: 0.4em 0.5em; 55 | } 56 | 57 | #qunit-tests li li.pass { 58 | border-left: 26px solid #0a0; 59 | background-color: #fff; 60 | color: #0a0; 61 | } 62 | 63 | #qunit-tests li li.fail { 64 | border-left: 26px solid #f00; 65 | background-color: #fff; 66 | color: #f00; 67 | } 68 | 69 | #qunit-tests li.pass, 70 | h3, 71 | p { 72 | color: #913D00; 73 | background-color: #FDEBDC; 74 | } 75 | 76 | h3, 77 | p { 78 | font-size: small; 79 | padding: 0.4em 0.5em 0.4em 2.5em; 80 | border-bottom: 1px solid #fff; 81 | } 82 | 83 | h3 a, 84 | p a { 85 | color: #FF7F00; 86 | } 87 | 88 | h3 a:hover, 89 | p a:hover { 90 | color: #000; 91 | } 92 | 93 | #qunit-tests li.fail { 94 | background-color: #f99; 95 | color: #000; 96 | } 97 | 98 | #qunit-tests li strong { 99 | cursor: pointer; 100 | } 101 | 102 | #qunit-header { 103 | color: #fff; 104 | background-color: #FF7F00; 105 | margin: 0; 106 | padding: 0.5em 2em; 107 | -moz-border-radius-bottomright: 0; 108 | -moz-border-radius-bottomleft: 0; 109 | -webkit-border-bottom-right-radius: 0; 110 | -webkit-border-bottom-left-radius: 0; 111 | border-bottom-right-radius: 0; 112 | border-bottom-left-radius: 0; 113 | } 114 | 115 | #qunit-header h1 { 116 | float: left; 117 | margin: 0; 118 | padding: 0; 119 | line-height: 2em; 120 | font-size: x-large; 121 | } 122 | 123 | #qunit-header small { 124 | float: right; 125 | font-weight: 700; 126 | line-height: 3.5em; 127 | } 128 | 129 | #qunit-header a { 130 | color: #fff; 131 | } 132 | 133 | #qunit-header a:hover { 134 | color: #000; 135 | } 136 | 137 | /* Added span inside #qunit-banner to work around IE6 #id.class bug */ 138 | #qunit-banner span { 139 | display: block; 140 | height: 5px; 141 | _overflow: hidden; 142 | } 143 | 144 | #qunit-banner.qunit-pass span { 145 | background-color: #0a0; 146 | } 147 | 148 | #qunit-banner.qunit-fail span, 149 | #qunit-testrunner-toolbar { 150 | background-color: #f99; 151 | } 152 | 153 | #qunit-testrunner-toolbar { 154 | padding: 0; 155 | /*width: 80%;*/ 156 | padding: 0em 0 0.5em 2em; 157 | font-size: small; 158 | } 159 | 160 | #qunit-userAgent { 161 | background-color: #913D00; 162 | color: #fff; 163 | font-size: small; 164 | padding: 0.5em 0 0.5em 2.5em; 165 | } 166 | 167 | #qunit-testresult { 168 | margin: 0; 169 | font-size: small; 170 | color: #913D00; 171 | background-color: #FDEBDC; 172 | padding: 0.5em 0.5em 0.5em 2.5em; 173 | -moz-border-radius-topright: 0; 174 | -moz-border-radius-topleft: 0; 175 | -webkit-border-top-right-radius: 0; 176 | -webkit-border-top-left-radius: 0; 177 | border-top-right-radius: 0; 178 | border-top-left-radius: 0; 179 | } 180 | 181 | strong b.fail { 182 | color: #f00; 183 | } 184 | 185 | strong b.pass { 186 | color: #0a0; 187 | } 188 | --------------------------------------------------------------------------------