File tree Expand file tree Collapse file tree 1 file changed +0
-22
lines changed
Expand file tree Collapse file tree 1 file changed +0
-22
lines changed Original file line number Diff line number Diff line change 99 createAnchors
1010} = require ( './document-ui.mjs' ) ;
1111
12- // Store global data in this object
13- var MetaCPAN = { } ;
14-
15- $ . extend ( {
16- getUrlVars : function ( ) {
17- var vars = { } ,
18- hash ;
19- var indexOfQ = window . location . href . indexOf ( '?' ) ;
20- if ( indexOfQ == - 1 ) return vars ;
21- var hashes = window . location . href . slice ( indexOfQ + 1 ) . split ( '&' ) ;
22- $ . each ( hashes , function ( idx , hash ) {
23- var kv = hash . split ( '=' ) ;
24- vars [ kv [ 0 ] ] = decodeURIComponent ( kv [ 1 ] ) ;
25- } ) ;
26- return vars ;
27- } ,
28- getUrlVar : function ( name ) {
29- return $ . getUrlVars ( ) [ name ] ;
30- }
31- } ) ;
32-
33-
3412function setFavTitle ( button ) {
3513 button . setAttribute ( 'title' , button . classList . contains ( 'active' ) ? 'Remove from favorites' : 'Add to favorites' ) ;
3614}
You can’t perform that action at this time.
0 commit comments