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 9
9
createAnchors
10
10
} = require ( './document-ui.mjs' ) ;
11
11
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
-
34
12
function setFavTitle ( button ) {
35
13
button . setAttribute ( 'title' , button . classList . contains ( 'active' ) ? 'Remove from favorites' : 'Add to favorites' ) ;
36
14
}
You can’t perform that action at this time.
0 commit comments