Permalink
Browse files

initial release

  • Loading branch information...
1 parent aa8aef6 commit 03d9ce8731f3f3461f6c100676f7ec2fb9308e04 @cowboy cowboy committed Oct 2, 2009
View
@@ -1,7 +1,7 @@
# jQuery BBQ: Back Button & Query Library #
[http://benalman.com/projects/jquery-bbq-plugin/](http://benalman.com/projects/jquery-bbq-plugin/)
-Version: 0.1pre, Last updated: 10/1/2009
+Version: 1.0, Last updated: 10/2/2009
jQuery BBQ enables simple, yet powerful bookmarkable #hash history via a cross-browser window.onhashchange event. In addition, jQuery BBQ provides a full jQuery.deparam() method, along with both fragment and query string parse and merge utility methods.
@@ -44,4 +44,4 @@ Internet Explorer 6-8, Firefox 2-3.6, Safari 3-4, Chrome, Opera 9.6-10.
## Release History ##
-0.1pre - (10/1/2009) Pre-initial release
+1.0 - (10/2/2009) Initial release

Large diffs are not rendered by default.

Oops, something went wrong.
View
@@ -13,7 +13,7 @@
<div id=Index><div class=IPageTitle>File Index</div><div class=INavigationBar>$#! &middot; 0-9 &middot; A &middot; B &middot; C &middot; D &middot; E &middot; F &middot; G &middot; H &middot; I &middot; <a href="#J">J</a> &middot; K &middot; L &middot; M &middot; N &middot; O &middot; P &middot; Q &middot; R &middot; S &middot; T &middot; U &middot; V &middot; W &middot; X &middot; Y &middot; Z</div><table border=0 cellspacing=0 cellpadding=0><tr><td class=IHeading id=IFirstHeading><a name="J"></a>J</td><td></td></tr><tr><td class=ISymbolPrefix id=IOnlySymbolPrefix>&nbsp;</td><td class=IEntry><a href="../files/jquery-ba-bbq-js.html#jQuery_BBQ:Back_ButtonQuery_Library" id=link1 onMouseOver="ShowTip(event, 'tt1', 'link1')" onMouseOut="HideTip('tt1')" class=ISymbol>jQuery BBQ:<wbr>Back Button&amp;Query Library</a></td></tr></table>
<!--START_ND_TOOLTIPS-->
-<div class=CToolTip id="tt1"><div class=CFile><b>Version: 0.1pre, Last updated: 10/1/2009</b></div></div><!--END_ND_TOOLTIPS-->
+<div class=CToolTip id="tt1"><div class=CFile><b>Version: 1.0, Last updated: 10/2/2009</b></div></div><!--END_ND_TOOLTIPS-->
</div><!--Index-->
View
@@ -33,7 +33,7 @@
<!--START_ND_TOOLTIPS-->
-<div class=CToolTip id="tt9"><div class=CFile><b>Version: 0.1pre, Last updated: 10/1/2009</b></div></div><!--END_ND_TOOLTIPS-->
+<div class=CToolTip id="tt9"><div class=CFile><b>Version: 1.0, Last updated: 10/2/2009</b></div></div><!--END_ND_TOOLTIPS-->
<!--START_ND_TOOLTIPS-->
View
@@ -1,4 +1,4 @@
1.4
JavaScript
-/srv/projects/jquery-bbq/jquery.ba-bbq.min.js 1254430693 0 /srv/projects/jquery-bbq/jquery.ba-bbq.min.js
-/srv/projects/jquery-bbq/jquery.ba-bbq.js 1254429406 1 jQuery BBQ: Back Button & Query Library
+/srv/projects/jquery-bbq/jquery.ba-bbq.min.js 1254494664 0 /srv/projects/jquery-bbq/jquery.ba-bbq.min.js
+/srv/projects/jquery-bbq/jquery.ba-bbq.js 1254494615 1 jQuery BBQ: Back Button & Query Library
View
Binary file not shown.
@@ -2,7 +2,7 @@
include "../index.php";
-$shell['title2'] = "Back Button Test";
+$shell['title3'] = "Back Button Test";
$shell['h2'] = 'Wanna see a strange issue in Chrome?';
@@ -2,7 +2,7 @@
include "../index.php";
-$shell['title2'] = "jQuery.deparam";
+$shell['title3'] = "jQuery.deparam";
$shell['h2'] = 'The opposite of jQuery.param, pretty much.';
@@ -2,7 +2,7 @@
include "../index.php";
-$shell['title2'] = "window.onhashchange » Advanced";
+$shell['title3'] = "window.onhashchange » Advanced";
$shell['h2'] = 'Cached AJAX + fragment + history + bookmarking = Tasty!';
@@ -2,7 +2,7 @@
include "../index.php";
-$shell['title2'] = "window.onhashchange » Basic";
+$shell['title3'] = "window.onhashchange » Basic";
$shell['h2'] = 'Cached AJAX + fragment + history + bookmarking = Tasty!';
@@ -2,7 +2,7 @@
include "../index.php";
-$shell['title2'] = "window.onhashchange » jQuery UI Tabs";
+$shell['title3'] = "window.onhashchange » jQuery UI Tabs";
$shell['h2'] = 'Multiple jQuery UI Tabs + fragment + history + bookmarking = Tasty!';
View
@@ -376,6 +376,14 @@ a:hover {
color: #C4884F;
}
+#page {
+ width: 700px;
+}
+
+#header h1 {
+ white-space: nowrap;
+}
+
#footer {
clear: both;
padding-top: 2em;
View
@@ -3,6 +3,9 @@
$shell = array();
$base = '../';
+$shell['title2'] = 'Examples';
+$shell['link2'] = '../';
+
include 'config.php';
function draw_shell() {
@@ -12,25 +15,20 @@ function draw_shell() {
<html lang="en">
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8">
- <title>Ben Alman &raquo; <?= $shell['title1'] ?><? if ( $shell['title2'] ) { print ' &raquo; ' . $shell['title2']; } ?></title>
+ <title>Ben Alman &raquo; <?= $shell['title1'] ?><? if ( $shell['title2'] ) { print ' &raquo; ' . $shell['title2']; } ?><? if ( $shell['title3'] ) { print ' &raquo; ' . $shell['title3']; } ?></title>
<script type="text/javascript" src="<?= $base ?>../shared/ba-debug.js"></script>
-<?
-
+ <?
if ( $shell['jquery'] ) {
- ?> <script type="text/javascript" src="<?= $base ?>../shared/<?= $shell['jquery'] ?>"></script>
-<?
+ ?><script type="text/javascript" src="<?= $base ?>../shared/<?= $shell['jquery'] ?>"></script><?
}
- ?> <script type="text/javascript" src="<?= $base ?>../shared/SyntaxHighlighter/scripts/shCore.js"></script>
-<?
+ ?><script type="text/javascript" src="<?= $base ?>../shared/SyntaxHighlighter/scripts/shCore.js"></script><?
if ( $shell['shBrush'] ) {
foreach ( $shell['shBrush'] as $brush ) {
- ?> <script type="text/javascript" src="<?= $base ?>../shared/SyntaxHighlighter/scripts/shBrush<?= $brush ?>.js"></script>
-<?
+ ?><script type="text/javascript" src="<?= $base ?>../shared/SyntaxHighlighter/scripts/shBrush<?= $brush ?>.js"></script><?
}
}
-
?>
<link rel="stylesheet" type="text/css" href="<?= $base ?>../shared/SyntaxHighlighter/styles/shCore.css">
<link rel="stylesheet" type="text/css" href="<?= $base ?>../shared/SyntaxHighlighter/styles/shThemeDefault.css">
@@ -46,29 +44,26 @@ function draw_shell() {
<h1>
<a href="http://benalman.com/" class="title"><b>Ben</b> Alman</a>
<?
-
- if ( $shell['link1'] ) {
- print ' &raquo; <a href="' . $shell['link1'] . '">' . $shell['title1'] . '</a>';
- } else {
- print ' &raquo; ' . $shell['title1'];
+ $i = 1;
+ while ( $shell["title$i"] ) {
+ print ' &raquo; ';
+ if ( $shell["link$i"] ) {
+ print '<a href="' . $shell["link$i"] . '">' . $shell["title$i"] . '</a>';
+ } else {
+ print $shell["title$i"];
+ }
+ $i++;
}
-
- if ( $shell['title2'] ) {
- print ' &raquo; ' . $shell['title2'];
- }
-
?>
</h1>
<?
- if ( $shell['h2'] ) {
- print '<h2>' . $shell['h2'] . '</h2>';
- }
- if ( $shell['h3'] ) {
- print '<h3>' . $shell['h3'] . '</h3>';
+ $i = 2;
+ while ( $shell["h$i"] ) {
+ print "<h$i>" . $shell["h$i"] . "</h$i>";
+ $i++;
}
-
- print $shell['html_header'];
?>
+ <?= $shell['html_header'] ?>
</div>
<div id="content">
<?= $shell['html_body'] ?>
@@ -98,7 +93,7 @@ function draw_shell() {
}
if ( count( get_included_files() ) == 2 ) {
- $shell['title2'] = "Examples";
+ $shell['link2'] = '';
$shell['h2'] = 'Select an example:';
$shell['h3'] = '';
View
@@ -1,5 +1,5 @@
/*!
- * jQuery BBQ: Back Button & Query Library - v0.1pre - 10/1/2009
+ * jQuery BBQ: Back Button & Query Library - v1.0 - 10/2/2009
* http://benalman.com/projects/jquery-bbq-plugin/
*
* Copyright (c) 2009 "Cowboy" Ben Alman
@@ -9,7 +9,7 @@
// Script: jQuery BBQ: Back Button & Query Library
//
-// *Version: 0.1pre, Last updated: 10/1/2009*
+// *Version: 1.0, Last updated: 10/2/2009*
//
// Project Home - http://benalman.com/projects/jquery-bbq-plugin/
// GitHub - http://github.com/cowboy/jquery-bbq/
@@ -39,12 +39,12 @@
// reside (so you can test it yourself).
//
// jQuery Versions - 1.3.2, 1.4pre
-// Browsers Tested - Internet Explorer 6-8, Firefox 2-3.6, Safari 3-4, Chrome, Opera 9.6-10.
+// Browsers Tested - Internet Explorer 6-8, Firefox 2-3.7, Safari 3-4, Chrome, Opera 9.6-10.
// Unit Tests - http://benalman.com/code/projects/jquery-bbq/unit/
//
// About: Release History
//
-// 0.1pre - (10/1/2009) Pre-initial release
+// 1.0 - (10/2/2009) Initial release
(function($,window){
'$:nomunge'; // Used by YUI compressor.
View

Some generated files are not rendered by default. Learn more.

Oops, something went wrong.

0 comments on commit 03d9ce8

Please sign in to comment.