Skip to main content
  • Home
  • Development
  • Documentation
  • Donate
  • Operational login
  • Browse the archive

swh logo
SoftwareHeritage
Software
Heritage
Archive
Features
  • Search

  • Downloads

  • Save code now

  • Add forge now

  • Help

swh:1:snp:0c004a03453a29b80f921a24433f7e780b9ceb53
  • Code
  • Branches (34)
  • Releases (0)
    • Branches
    • Releases
    • HEAD
    • refs/heads/RELEASE_3_10
    • refs/heads/RELEASE_3_11
    • refs/heads/RELEASE_3_12
    • refs/heads/RELEASE_3_7
    • refs/heads/RELEASE_3_8
    • refs/heads/RELEASE_3_9
    • refs/heads/appeveyor
    • refs/heads/archs4
    • refs/heads/assaron-patch-1
    • refs/heads/develop
    • refs/heads/export-dataset-history
    • refs/heads/master
    • refs/heads/r-3.4
    • refs/heads/slack-test
    • refs/heads/travis-fix
    • refs/tags/v1.1.2
    • refs/tags/v1.1.3
    • refs/tags/v1.1.5
    • refs/tags/v1.1.6
    • refs/tags/v1.11.0
    • refs/tags/v1.2.0
    • refs/tags/v1.2.1
    • refs/tags/v1.3.0
    • refs/tags/v1.3.1
    • refs/tags/v1.3.2
    • refs/tags/v1.3.3
    • refs/tags/v1.3.4
    • refs/tags/v1.3.5
    • refs/tags/v1.7.2
    • refs/tags/v1.7.3
    • refs/tags/v1.7.4
    • refs/tags/v1.8.0
    • refs/tags/v1.9.0
    • refs/tags/v1.9.2
    No releases to show
  • a1ed657
  • /
  • inst
  • /
  • www
  • /
  • phantasus.js
  • /
  • index.html
Raw File Download
Permalinks

To reference or cite the objects present in the Software Heritage archive, permalinks based on SoftWare Hash IDentifiers (SWHIDs) must be used.
Select below a type of object currently browsed in order to display its associated SWHID and permalink.

  • content
  • directory
  • revision
  • snapshot
content badge Iframe embedding
swh:1:cnt:287f30900a9c7c8557f56537504a8e754f69ceea
directory badge Iframe embedding
swh:1:dir:da186c1b8cf25a2fc26e9f628fc2162e8919be9c
revision badge
swh:1:rev:7860af3a5537decc933cb79381a493ad62537499
snapshot badge
swh:1:snp:0c004a03453a29b80f921a24433f7e780b9ceb53
Citations

This interface enables to generate software citations, provided that the root directory of browsed objects contains a citation.cff or codemeta.json file.
Select below a type of object currently browsed in order to generate citations for them.

  • content
  • directory
  • revision
  • snapshot
Generate software citation in BibTex format (requires biblatex-software package)
Generating citation ...
Generate software citation in BibTex format (requires biblatex-software package)
Generating citation ...
Generate software citation in BibTex format (requires biblatex-software package)
Generating citation ...
Generate software citation in BibTex format (requires biblatex-software package)
Generating citation ...
Tip revision: 7860af3a5537decc933cb79381a493ad62537499 authored by Alexey Sergushichev on 02 June 2018, 09:13:22 UTC
JS: fixed double createES for TCGA data
Tip revision: 7860af3
index.html
<!DOCTYPE html>
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html;charset=utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport"
          content="user-scalable=no, width=device-width, initial-scale=1, maximum-scale=1">
    <meta name="google-site-verification"
          content="7UY7VcXR28Tpmw6m6fc6wtJJQvar71GKqGojp3HPb4Q"/>
    <title>phantasus</title>
    <link rel="stylesheet" href="css/phantasus-latest.min.css">
    <script type="text/javascript" src="js/phantasus-external-other.min.js"></script>
    <script type="text/javascript" src="js/phantasus-external-pdfkit-xlsx.min.js"></script>
    <script type="text/javascript" src="js/phantasus-external-plotly-echarts.min.js"></script>
    <script type="text/javascript"
                     src="https://apis.google.com/js/api.js"></script>
    <script src="js/phantasus.js"></script>
    <link rel="shortcut icon" href="favicon.ico" type="image/x-icon">
    <script type="text/javascript"
            src="https://www.dropbox.com/static/api/2/dropins.js" id="dropboxjs"
            data-app-key="6xq3zgeoago5fhw"></script>

</head>
<body>
<noscript>
    <p>Please enable JavaScript</p>
</noscript>
<div id="vis"></div>

<script type="text/javascript">
  phantasus.Util.setLibrary('phantasus');
  phantasus.Util.loadTrackingCode();
  window.onerror = function () {
    var errorObj = _.last(arguments);
    var errorMsg = _.size(errorObj.message) ? errorObj.message : 'Oops, something went wrong. Please try again.';
    phantasus.FormBuilder.showInModal({
      title: 'Error',
      html: errorMsg
    });
  };

  var searchString = window.location.search;
  if (searchString.length === 0) {
    searchString = window.location.hash;
  }
  var landingPage = new phantasus.LandingPage();
  landingPage.$el.prependTo($(document.body));
  if (searchString.length === 0) {
    landingPage.show();
  } else {
    searchString = searchString.substring(1);
    var keyValuePairs = searchString.split('&');
    var params = {};
    for (var i = 0; i < keyValuePairs.length; i++) {
      var pair = keyValuePairs[i].split('=');
      params[pair[0]] = decodeURIComponent(pair[1]);
    }
    // console.log(params);
    if (params.json) {
      var options = JSON.parse(decodeURIComponent(params.json));
      landingPage.open(options);
    } else if (params.url) { // url to config
      var $loading = phantasus.Util.createLoadingEl();
      $loading.appendTo($('#vis'));
      phantasus.Util.getText(params.url).done(function (text) {
        var options = JSON.parse(text);
        landingPage.open(options);
      }).fail(function (err) {
        console.log('Unable to get config file');
        landingPage.show();
      }).always(function () {
        $loading.remove();
      });
    } else if (params.geo) {
      var options = {
        dataset : {
          file : params.geo.toUpperCase(),
          options : {
            interactive : true,
            isGEO : true
          }
        }
      };
      landingPage.open(options);
    } else if (params.preloaded) {
      var req = ocpu.call('preloadedDirExists', {}, function (session) {
        session.getObject(function(success) {
          console.log(success);
          if (JSON.parse(success)[0]) {
            var options = {
              dataset : {
                file : params.preloaded,
                options : {
                  interactive : true,
                  preloaded : true
                }
              }
            };
            landingPage.open(options);
          } else {
            throw new Error("There are no preloaded datasets on this server");
          }
        });
      });
      req.fail(function () {
        throw new Error(req.responseText);
      })

    } else {
      landingPage.show();
    }
  }
</script>

<script>
  if ((window.location.protocol === 'https:' || window.location.protocol === 'http:') &&
    'serviceWorker' in navigator) {
    navigator.serviceWorker
    .register('sw.js');
  }

</script>
</body>

</html>

Software Heritage — Copyright (C) 2015–2025, The Software Heritage developers. License: GNU AGPLv3+.
The source code of Software Heritage itself is available on our development forge.
The source code files archived by Software Heritage are available under their own copyright and licenses.
Terms of use: Archive access, API— Contact— JavaScript license information— Web API

back to top