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

Update panther.php

parent 96ac0f5b
No related branches found
No related tags found
No related merge requests found
<?php
$local = isset($_REQUEST['cdn'])? false: true; // true = use only locally installed modules, false = use cdn
$machine = empty($_REQUEST['machine'])? 'elettra': strtolower($_REQUEST['machine']);
$mode = isset($_REQUEST['fast'])? 'fast': (isset($_REQUEST['premium'])? 'premium': '');
$mode = !empty($_REQUEST['fast'])? 'all': $mode;
......@@ -18,8 +19,8 @@
<script type="importmap">
{
"imports": {
"three": "./threejs/three.module.js",
"three/addons/": "./threejs/",
"three": "<?php echo ($local? './threejs': 'https://cdn.jsdelivr.net/npm/three@0.161.0/build');?>/three.module.js",
"three/addons/": "<?php echo ($local? './threejs/': 'https://cdn.jsdelivr.net/npm/three@0.161.0/examples/jsm/');?>",
"components/": "./components/src/",
"bundle": "./components/bundle_<?php echo $machine.$mode;?>.js"
}
......@@ -55,10 +56,9 @@
border-radius: 5px;
}
</style>
<link rel="stylesheet" href="../lib/jquery/jquery-ui.min.css">
<script src="../lib/jquery/jquery.min.js" type="text/javascript"></script>
<script src="../lib/jquery/jquery-ui.min.js" type="text/javascript"></script>
<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>
</head>
<body style="overflow: hidden;">
......
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