File size: 4,733 Bytes
35e5b82
 
 
 
3e40086
35e5b82
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
3e40086
934d8c3
35e5b82
 
 
 
 
 
 
 
 
 
 
 
 
675149c
35e5b82
 
 
 
 
 
 
 
 
 
 
 
513a8f8
 
 
0b2054b
513a8f8
 
35e5b82
 
 
 
1df1529
35e5b82
 
278f515
35e5b82
 
 
 
 
 
 
 
 
 
 
 
 
 
934d8c3
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
35e5b82
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en-gb" lang="en" xmlns:og="http://opengraphprotocol.org/schema/" xmlns:fb="http://www.facebook.com/2008/fbml" itemscope itemtype="http://schema.org/Map">

<head>
<title>Daily Papers Atlas</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<meta charset="utf-8">
<meta name="viewport" content="width=device-width,height=device-height,initial-scale=1,user-scalable=no" />
<meta http-equiv="X-UA-Compatible" content="IE=Edge" />
<meta name="description" content="A network visualization of research papers and authors">

<!-- Load jQuery first -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.6.0/jquery.min.js" type="text/javascript"></script>

<!-- Load Sigma.js (exact SigmaJS version used in Model-Atlas) -->
<script src="js/sigma/sigma.min.js" type="text/javascript"></script>
<script src="js/sigma/sigma.parseJson.js" type="text/javascript"></script>
<script src="js/sigma/plugins/sigma.plugins.filter.min.js" type="text/javascript"></script>

<!-- Load fancybox for popups -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/fancybox/3.5.7/jquery.fancybox.min.js" type="text/javascript"></script>

<!-- Load pako for decompression -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/pako/2.0.4/pako.min.js" type="text/javascript"></script>

<!-- CSS files -->
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/fancybox/3.5.7/jquery.fancybox.min.css"/>
<link rel="stylesheet" href="css/style.css" type="text/css" media="screen" />
<link rel="stylesheet" media="screen and (max-height: 770px)" href="css/tablet.css" />

<!-- Our main JavaScript file - load this after the libraries -->
<script src="js/main.js" type="text/javascript"></script>

</head>

<body>
  <div class="sigma-parent">
    <div class="sigma-expand" id="sigma-canvas"></div>
  </div>
  <div id="mainpanel">
    <div class="col">
      <div id="title">Daily Papers Atlas</div>
      <div id="titletext">A demo network of the top research papers in Machine Learning featured in <a href='https://huggingface.co/papers' target='_blank'>Hugging Face Daily Papers</a>.<br>Report and Project: <a href='https://github.com/hesamsheikh/daily-papers-analysis' target='_blank'>GitHub</a></div>
    </div>
    
    <div class="col">
      <div id="key-features">
        <h2>Key Features</h2>
        <ul>
          <li><strong>Search:</strong> Find papers or authors by name.</li>
          <li><strong>Interactive Nodes:</strong> Click nodes to view details.</li>
        </ul>
      </div>
      
      <div id="legend">
        <h2>Legend:</h2>
        <div id="colorLegend" style="display: block;"></div>
      </div>
    </div>
    
    <div class="col">
      <div id="search">
        <h2>Search:</h2>
        <div class="search-wrapper">
          <input type="text" id="search-input" placeholder="Search by name">
        </div>
        <div class="results"></div>
      </div>
    </div>
    
    <div class="col footer">
      <div class="credits">
        Graph visualization by <a href="https://gephi.org/" target="_blank">Gephi</a> and rendered for web by <a href="https://sigmajs.org/" target="_blank">SigmaJS</a>.
      </div>
    </div>
  </div>
  
  <div id="attributepane">
    <div class="text">
      <div class="returntext">Return to the full network</div>
      <div class="nodeattributes">
        <div class="name">Select a node to see details</div>
        <div class="nodetype" style="margin-bottom: 12px;"></div>
        <div class="data"></div>
        <div class="p">Connections:</div>
        <div class="link">
          <ul></ul>
        </div>
      </div>
    </div>
  </div>
  
  <div id="zoom">
    <div class="z" rel="in"></div>
    <div class="z" rel="out"></div>
    <div class="z" rel="center"></div>
  </div>

  <!-- Script to protect the intro text from being modified by any scripts -->
  <script type="text/javascript">
    // Get the original content that we want to preserve
    const originalIntroHTML = document.getElementById('titletext').innerHTML;
    
    // Create a MutationObserver to detect any changes to the element
    const observer = new MutationObserver(function(mutations) {
      mutations.forEach(function() {
        // If the content has changed, restore it
        if (document.getElementById('titletext').innerHTML !== originalIntroHTML) {
          document.getElementById('titletext').innerHTML = originalIntroHTML;
        }
      });
    });
    
    // Start observing the title text element
    observer.observe(document.getElementById('titletext'), { 
      childList: true,
      characterData: true,
      subtree: true
    });
  </script>
</body>
</html>