Skip to content
Snippets Groups Projects
Commit 2d09304a authored by Lucio Zambon's avatar Lucio Zambon
Browse files

Update panther.php

parent 8540049b
No related branches found
No related tags found
No related merge requests found
......@@ -26,11 +26,6 @@
}
}
</script>
<script>;
const client = '<?php echo gethostbyaddr($_SERVER['REMOTE_ADDR']);?>'.split('.')[0];
const fermi = ['do','re','mi','fa','sol','la','si'].indexOf(client)>-1? '?machine=fermi': '';
if (navigator.userAgent.indexOf('Firefox/63')>-1) document.location = './ff63/'+fermi;
</script>
<style>
body {
......@@ -59,6 +54,18 @@
<link rel="stylesheet" href="<?php echo ($local? '../lib/jquery/jquery-ui.min.css': 'https://code.jquery.com/ui/1.13.3/themes/base/jquery-ui.css');?>">
<script src="<?php echo ($local? '../lib/jquery/jquery.min.js': 'https://cdn.jsdelivr.net/npm/jquery@3.7.1/dist/jquery.min.js');?>" type="text/javascript"></script>
<script src="<?php echo ($local? '../lib/jquery/jquery-ui.min.js': 'https://cdn.jsdelivr.net/npm/jquery-ui@1.13.3/dist/jquery-ui.min.js');?>" type="text/javascript"></script>
<script>;
const client = '<?php echo gethostbyaddr($_SERVER['REMOTE_ADDR']);?>'.split('.')[0];
const fermi = ['do','re','mi','fa','sol','la','si'].indexOf(client)>-1 && document.location.search.indexOf('machine=elettra')==-1? '?machine=fermi': '';
if (navigator.userAgent.indexOf('Firefox/63')>-1) {
document.location = './ff63/'+fermi;
}
if (document.location.pathname.indexOf('ff63')>-1) {
$('#tooltip').show();
$('#tooltip').css('left', '5px');
$('#tooltip').css('top', '5px');
}
</script>
</head>
<body style="overflow: hidden;">
......@@ -83,4 +90,4 @@
Data source <a href='https://drive.elettra.eu/group/268/'>https://drive.elettra.eu/group/268/</a>
</div>
</body>
</html>
</html>
\ No newline at end of file
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment