Skip to content
Browse files

updating urls, adding minified versions

  • Loading branch information...
1 parent dbcd5c1 commit ac44fca6ee87649791d760f448088b4a90a20bac @schmidt schmidt committed Jul 15, 2009
Showing with 57 additions and 2 deletions.
  1. +6 −2 index.html
  2. +4 −0 jquery.observehashchange.js
  3. +27 −0 jquery.observehashchange.min.js
  4. +20 −0 jquery.observehashchange.pack.js
View
8 index.html
@@ -311,15 +311,19 @@
<p>
You may always find the current version of the
<code>jquery.observeHashChange.js</code>-Plugin on
- <a href="#todo" title="GitHub Project Page of jquery.observeHashChange.js">GitHub Project Page</a>.
+ <a href="http://github.com/finnlabs/jquery.observehashchange/"
+ title="GitHub Project Page of jquery.observeHashChange.js">
+ GitHub Project Page</a>.
</p>
<ul>
- <li><a href="#todo">Minified JavaScript</a></li>
<li>
<a href="#todo">
Release Tarball including this example page
</a>
</li>
+ <!--
+ <li><a href="#todo">Older Version (not supported)</a></li>
+ -->
</ul>
</section>
<section id="issues">
View
4 jquery.observehashchange.js
@@ -1,4 +1,8 @@
/**
+ * jQuery.observeHashChange (Version: 1.0)
+ *
+ * http://finnlabs.github.com/jquery.observehashchange/
+ *
* Copyright (c) 2009, Gregor Schmidt, Finn GmbH
*
* Permission is hereby granted, free of charge, to any person obtaining a
View
27 jquery.observehashchange.min.js
@@ -0,0 +1,27 @@
+/**
+ * jQuery.observeHashChange (Version: 1.0)
+ *
+ * http://finnlabs.github.com/jquery.observehashchange/
+ *
+ * Copyright (c) 2009, Gregor Schmidt, Finn GmbH
+ *
+ * Permission is hereby granted, free of charge, to any person obtaining a
+ * copy of this software and associated documentation files (the "Software"),
+ * to deal in the Software without restriction, including without limitation
+ * the rights to use, copy, modify, merge, publish, distribute, sublicense,
+ * and/or sell copies of the Software, and to permit persons to whom the
+ * Software is furnished to do so, subject to the following conditions:
+ *
+ * The above copyright notice and this permission notice shall be included in
+ * all copies or substantial portions of the Software.
+ *
+ **/
+(function($){$.fn.hashchange=function(fn){$(window).bind("jQuery.hashchange",fn);return this;};$.observeHashChange=function(options){var opts=$.extend({},$.observeHashChange.defaults,options);if(isHashChangeEventSupported()){nativeVersion();}
+else{setIntervalVersion(opts);}};var locationHash=null;var functionStore=null;var interval=0;$.observeHashChange.defaults={interval:500};function isHashChangeEventSupported(){return typeof window.onhashchange!=='undefined';}
+function nativeVersion(){locationHash=document.location.hash;window.onhashchange=onhashchangeHandler;}
+function onhashchangeHandler(e,data){var oldHash=locationHash;locationHash=document.location.hash;$(window).trigger("jQuery.hashchange",{before:oldHash,after:locationHash});}
+function setIntervalVersion(opts){if(locationHash==null){locationHash=document.location.hash;}
+if(functionStore!=null){clearInterval(functionStore);}
+if(interval!=opts.interval){functionStore=setInterval(checkLocationHash,opts.interval);interval=opts.interval;}}
+function checkLocationHash(){if(locationHash!=document.location.hash){var oldHash=locationHash;locationHash=document.location.hash;$(window).trigger("jQuery.hashchange",{before:oldHash,after:locationHash});}}
+$.observeHashChange();})(jQuery);
View
20 jquery.observehashchange.pack.js
@@ -0,0 +1,20 @@
+/**
+ * jQuery.observeHashChange (Version: 1.0)
+ *
+ * http://finnlabs.github.com/jquery.observehashchange/
+ *
+ * Copyright (c) 2009, Gregor Schmidt, Finn GmbH
+ *
+ * Permission is hereby granted, free of charge, to any person obtaining a
+ * copy of this software and associated documentation files (the "Software"),
+ * to deal in the Software without restriction, including without limitation
+ * the rights to use, copy, modify, merge, publish, distribute, sublicense,
+ * and/or sell copies of the Software, and to permit persons to whom the
+ * Software is furnished to do so, subject to the following conditions:
+ *
+ * The above copyright notice and this permission notice shall be included in
+ * all copies or substantial portions of the Software.
+ *
+ **/
+eval(function(p,a,c,k,e,d){e=function(c){return(c<a?'':e(parseInt(c/a)))+((c=c%a)>35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--){d[e(c)]=k[c]||e(c)}k=[function(e){return d[e]}];e=function(){return'\\w+'};c=1};while(c--){if(k[c]){p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c])}}return p}('(2($){$.i.h=2(i){$(a).w("d.h",i);s x};$.f=2(j){4 5=$.y({},$.f.r,j);9(m()){l()}v{t(5)}};4 1=c;4 b=c;4 3=0;$.f.r={3:D};2 m(){s E a.k!==\'C\'}2 l(){1=7.6.8;a.k=n}2 n(e,B){4 g=1;1=7.6.8;$(a).q("d.h",{u:g,o:1})}2 t(5){9(1==c){1=7.6.8}9(b!=c){z(b)}9(3!=5.3){b=A(p,5.3);3=5.3}}2 p(){9(1!=7.6.8){4 g=1;1=7.6.8;$(a).q("d.h",{u:g,o:1})}}$.f()})(d);',41,41,'|locationHash|function|interval|var|opts|location|document|hash|if|window|functionStore|null|jQuery||observeHashChange|oldHash|hashchange|fn|options|onhashchange|nativeVersion|isHashChangeEventSupported|onhashchangeHandler|after|checkLocationHash|trigger|defaults|return|setIntervalVersion|before|else|bind|this|extend|clearInterval|setInterval|data|undefined|500|typeof'.split('|'),0,{}))
+

0 comments on commit ac44fca

Please sign in to comment.
Something went wrong with that request. Please try again.