File tree Expand file tree Collapse file tree 5 files changed +5
-9
lines changed Expand file tree Collapse file tree 5 files changed +5
-9
lines changed Original file line number Diff line number Diff line change 22<html>
33
44    <head>
5-         <script src="/static/jquery.min.js"></script>
65        <link rel="stylesheet" type="text/css" href="https://cdn.datatables.net/v/dt/dt-1.11.4/sp-1.4.0/datatables.min.css"/>
76        $ hackageCssTheme ()$ 
87
Original file line number Diff line number Diff line change 1414  <meta name="viewport" content="width=device-width, initial-scale=1"/>
1515  <link rel="search" href="/packages/opensearch.xml" type="application/opensearchdescription+xml" title="Hackage"/>
1616  <link rel="canonical" href="/package/$ package.name $ "/>
17-   <script src="/static/jquery.min.js"></script>
1817  <script src="https://cdn.jsdelivr.net/npm/mathjax@3/es5/tex-chtml-full.js" type="text/javascript"></script>
1918</head>
2019
Original file line number Diff line number Diff line change 3535    </body>
3636    <script type='text/javascript'>
3737
38-         \$ .getJSON ('/packages/graph.json',  onLoad)
38+         fetch ('/packages/graph.json').then( onLoad); 
3939
4040        function onLoad(json) {
4141            var graphGenerator = Viva.Graph.generator();
134134                renderer.run();
135135
136136                \$ ('.input-group input').on('keyup', function() {
137-                     var val = \$ .trim( this.value) ;
137+                     var val = this.value.trim ;
138138                    var resultSet = \$ .grep(json, function(e) {
139139                        return (e.name.indexOf(val) != -1);
140140                    });
143143                        "count": resultSet.length
144144                    };
145145                    if (val.length > 0) {
146-                         \$ .each(resultSet,  function(i) {
146+                         resultSet.forEach(  function(i) {
147147                            var nodeInfo = graph.getNode(resultSet[i].name);
148148                            // console.dir(nodeInfo)
149149                            count = nodeCount(nodeInfo);
Original file line number Diff line number Diff line change 1919    <meta name="robots" contents="noindex">
2020  $ endif $ 
2121  <link rel="canonical" href="$ sbaseurl $ /package/$ package.name $ " />
22-   <script src="/static/jquery.min.js"></script>
2322  <script src="https://cdn.jsdelivr.net/npm/mathjax@3/es5/tex-chtml-full.js" type="text/javascript"></script>
2423  <base href="$ baseurl $ /package/$ package.name $ -$ package.version $ /" />
2524</head>
Original file line number Diff line number Diff line change 44    <head>
55        $ hackageCssTheme ()$ 
66        <title>Edit package tags | Hackage</title>
7-         <script src="/static/jquery.min.js"></script>
87        <style>
98            .accept {
109                color: green;
109108
110109                    if ("$ addns $ ".trim() != "") {
111110                        var ads = "$ addns $ ".replace(/\s/g, '').split(',')
112-                         \$ .each(ads,  function(i) {
111+                         ads.forEach(  function(i) {
113112                            var li = \$ ('<li/>')
114113                                .text(ads[i])
115114                                .appendTo(aList);
122121                    if ("$ delns $ ".trim() != "") {
123122                        var dels = "$ delns $ ".replace(/\s/g, '').split(',')
124123
125-                         \$ .each(dels,  function(i) {
124+                         dels.forEach(  function(i) {
126125                            var li = \$ ('<li/>')
127126                                .text(dels[i])
128127                                .appendTo(dList);
 
 
   
 
     
   
   
          
    
    
     
    
      
     
     
    You can’t perform that action at this time.
  
 
    
  
    
      
        
     
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments