Page MenuHomec4science

index.html
No OneTemporary

File Metadata

Created
Thu, Mar 28, 10:51

index.html

<!doctype html>
<html>
<head>
<meta charset="utf-8">
<meta name="keywords" content="">
<meta description=" Mass spectra are often contaminated by various chemicals. this tools allow to check possible contaminents based on a list defined in google spreadsheet and loaded dynamically.
You may customize the list of products to find in a specific spectrum
">
<title>Mass spectra contaminant finder</title>
<script src="https://www.lactame.com/lib/jquery/2.1.1/jquery.min.js"></script>
<script src="https://www.lactame.com/lib/uri.js/1.14.1/URI.min.js"></script>
<script>
window.addEventListener('load', function () {
$('.navmenu').show();
});
</script>
</head>
<body>
<script>
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','https://www.google-analytics.com/analytics.js','ga');
ga('create', 'UA-78922811-1', 'auto');
ga('send', 'pageview');
</script>
<header>
<nav>
</nav>
</header>
<!--#if expr="%{HTTP_USER_AGENT} =~ /bot/" -->
<h2>Mass spectra are often contaminated by various chemicals. this tools allow to check possible contaminents based on a list defined in google spreadsheet and loaded dynamically.</h2>
<p>You may customize the list of products to find in a specific spectrum</p>
<!--#endif -->
<!--#if expr="%{HTTP_USER_AGENT} !~ /bot/" -->
<div class="general">
</div>
<script>
'use strict';
function checkVersion(versions, version) {
versions = versions.map(function(v) {
return v.toLowerCase();
});
version = version.toLowerCase();
if (version && version[0] >= '0' && version[0] <= '9' && !version.startsWith('v')) version = 'v' + version;
var idx = versions.indexOf(version);
if (idx > -1) {
version = versions[idx];
}
else {
// Fallback version is HEAD-min
version = 'HEAD-min';
}
if(version === 'head-min') version = 'HEAD-min';
return version;
}
window.onload = function () {
var prom;
// Weird but will avoid javascript error if this param is not what we expect
prom = $.getJSON('https://www.lactame.com/visualizer/versions.json');
prom.then(function (versions) {
var version;
var uri = new URI(window.location.href);
var search = uri.search(true);
var url = 'https://couch.cheminfo.org/cheminfo-public/b60d4cd22af351b3996cb3321f169a0e/view.json?rev=291-79ebd4f323afcddaaf2ce81291af0480';
var tplVersion = 'v2.111.1';
var fallbackVersion = 'v2.111.1';
if (search.viewURL) {
url = search.viewURL;
}
// Get version in the following priority order
// In url, in template, fallback
if (search.v) {
version = checkVersion(versions, search.v);
}
if (!version) {
version = checkVersion(versions, tplVersion);
}
if (!version) {
version = checkVersion(versions, fallbackVersion);
}
if (!search.loadversion)
addVisualizer(version, search);
else {
$.ajax({
url: url,
dataType: 'json',
type: 'GET',
success: function (data) {
addVisualizer(checkVersion(versions, data.version), search);
},
error: function (err) {
console.log('error', err);
}
})
}
});
function addVisualizer(version, search) {
var cdn = 'https://www.lactame.com';
var direct = 'http://direct.lactame.com';
var visualizer = document.createElement('script');
var baseUrl;
baseUrl = (search.direct ? direct : cdn) + '/visualizer/' + version;
visualizer.setAttribute('data-main', baseUrl+ '/init');
visualizer.setAttribute('src', baseUrl + '/components/requirejs/require.js');
document.head.appendChild(visualizer);
}
}
</script>
<div id="errorMessage"></div>
<tr>
<td class="left"></td>
<td colspan="3">
<div id="ci-visualizer" data-ci-view="https://couch.cheminfo.org/cheminfo-public/b60d4cd22af351b3996cb3321f169a0e/view.json?rev=291-79ebd4f323afcddaaf2ce81291af0480"
data-ci-config="../../../static/readConfig.json"/>
</td>
<td class="right"></td>
</tr>
<!--#endif -->
</body>
</html>

Event Timeline