This is an answer to How to bind jQuery History state dynamically in .click()?
🧙♀️
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- ***** BEGIN LICENSE BLOCK ***** | |
- Version: MPL 1.1/GPL 2.0/LGPL 2.1 | |
- | |
- The contents of this file are subject to the Mozilla Public License Version | |
- 1.1 (the "License"); you may not use this file except in compliance with | |
- the License. You may obtain a copy of the License at | |
- http://www.mozilla.org/MPL/ | |
- | |
- Software distributed under the License is distributed on an "AS IS" basis, | |
- WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
A combination of both data attribute and CSS classnames: | |
<a | |
class="lightbox-image lightbox-image-link" | |
href="http://www.flickr.com/photos/jonbrown17/2271756525/" | |
title="View Moody Waters on Flickr" | |
data-lightbox-image="{title:'Moody Waters',description:'Crawley Boatshed, Perth WA.',author:{text:'jonathanbrown',title:'View jonathanbrowns Profile',url:'http://www.flickr.com/people/jonbrown17/'},large:'http://farm3.static.flickr.com/2411/2271756525_15aba52120_o.jpg',links:[{text:'Other Perth Boatshed Photos',url:'http://www.flickr.com/photos/35776898@N00/galleries/72157624368071194/'}]}" | |
> | |
<img class="lightbox-image-thumbnail" src="http://farm3.static.flickr.com/2411/2271756525_ff374888c3_s.jpg" height="75" width="75" /> | |
</a> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
GNU AFFERO GENERAL PUBLIC LICENSE | |
Version 3, 19 November 2007 | |
Copyright (C) 2007 Free Software Foundation, Inc. <http://fsf.org/> | |
Everyone is permitted to copy and distribute verbatim copies | |
of this license document, but changing it is not allowed. | |
Preamble | |
The GNU Affero General Public License is a free, copyleft license for |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
GNU AFFERO GENERAL PUBLIC LICENSE | |
Version 3, 19 November 2007 | |
Copyright (C) 2007 Free Software Foundation, Inc. <http://fsf.org/> | |
Everyone is permitted to copy and distribute verbatim copies | |
of this license document, but changing it is not allowed. | |
Preamble | |
The GNU Affero General Public License is a free, copyleft license for |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
javascript:var%20e=document.createElement('script');e.setAttribute('language','javascript');e.setAttribute('src','http://gist.github.com/raw/511491/b4f033402d200486aceab558c819a91f615856b3/danwiersema-ajaxy.js');document.body.appendChild(e);void(0); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This gist documents the ways you can include scripts and styles into your page using ajaxy. | |
But the most recommended way is to include all your scripts and styles in your initial pages header. You get a big initial load, but all future loads are quick and fast. | |
The other ways are documented below with the apricots-body and apricots-head examples. The apricots-body would then be the second recommended, and the apricots-head example is not recommended. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Index: HeadLink.php | |
=================================================================== | |
--- HeadLink.php (revision 22367) | |
+++ HeadLink.php (working copy) | |
@@ -40,7 +40,7 @@ | |
* | |
* @var array | |
*/ | |
- protected $_itemKeys = array('charset', 'href', 'hreflang', 'media', 'rel', 'rev', 'type', 'title', 'extras'); | |
+ protected $_itemKeys = array('id', 'charset', 'href', 'hreflang', 'media', 'rel', 'rev', 'type', 'title', 'extras'); |
OlderNewer