| Line 1... |
Line 1... |
| 1 |
<script nonce="<?php echo base64_encode($_SESSION["nonce"]); ?>">
|
1 |
<script nonce="<?php echo base64_encode($_SESSION["nonce"]); ?>">
|
| 2 |
function downloadAtOnload() {
|
2 |
function downloadAtOnload() {
|
| 3 |
var i;
|
3 |
var i, element;
|
| 4 |
var linkArr = [
|
4 |
var linkArr = [
|
| 5 |
{ fn:"<?php echo timeStampUrl("css/jquery.flexdatalist.min.css") ?>", hash:"sha384-<?php echo base64_encode(hash_file("sha384", "css/jquery.flexdatalist.min.css", true)); ?>" }
|
5 |
{ fn:"<?php echo timeStampUrl("css/jquery.flexdatalist.min.css") ?>", hash:"sha384-<?php echo base64_encode(hash_file("sha384", "css/jquery.flexdatalist.min.css", true)); ?>" }
|
| 6 |
];
|
6 |
];
|
| 7 |
var scriptArr = [
|
7 |
var scriptArr = [
|
| 8 |
{ fn:"https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.16.0/umd/popper.min.js", hash:"sha384-Q6E9RHvbIyZFJoft+2mJbHaEWldlvI9IOYy5n3zV9zzTtmI3UksdQRVvoxMfooAo" },
|
8 |
{ fn:"https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.16.0/umd/popper.min.js", hash:"sha384-Q6E9RHvbIyZFJoft+2mJbHaEWldlvI9IOYy5n3zV9zzTtmI3UksdQRVvoxMfooAo" },
|
| Line 24... |
Line 24... |
| 24 |
});
|
24 |
});
|
| 25 |
}
|
25 |
}
|
| 26 |
*/
|
26 |
*/
|
| 27 |
|
27 |
|
| 28 |
for (i=0; i < linkArr.length; i++) {
|
28 |
for (i=0; i < linkArr.length; i++) {
|
| 29 |
var element = document.createElement("link");
|
29 |
element = document.createElement("link");
|
| 30 |
element.rel = "stylesheet";
|
30 |
element.rel = "stylesheet";
|
| 31 |
element.type = "text/css";
|
31 |
element.type = "text/css";
|
| 32 |
element.href = linkArr[i]["fn"];
|
32 |
element.href = linkArr[i]["fn"];
|
| 33 |
element.setAttribute("integrity", linkArr[i]["hash"]);
|
33 |
element.setAttribute("integrity", linkArr[i]["hash"]);
|
| 34 |
document.head.appendChild(element);
|
34 |
document.head.appendChild(element);
|
| 35 |
}
|
35 |
}
|
| 36 |
|
36 |
|
| 37 |
for (i=0; i < scriptArr.length; i++) {
|
37 |
for (i=0; i < scriptArr.length; i++) {
|
| 38 |
var element = document.createElement("script");
|
38 |
element = document.createElement("script");
|
| 39 |
element.src = scriptArr[i]["fn"];
|
39 |
element.src = scriptArr[i]["fn"];
|
| 40 |
element.async = true;
|
40 |
element.async = true;
|
| 41 |
element.type = "text/javascript";
|
41 |
element.type = "text/javascript";
|
| 42 |
element.setAttribute("crossorigin", "anonymous");
|
42 |
element.setAttribute("crossorigin", "anonymous");
|
| 43 |
element.setAttribute("integrity", scriptArr[i]["hash"]);
|
43 |
element.setAttribute("integrity", scriptArr[i]["hash"]);
|
| Line 46... |
Line 46... |
| 46 |
|
46 |
|
| 47 |
function loadDepend() {
|
47 |
function loadDepend() {
|
| 48 |
if (typeof Popper == 'undefined') {
|
48 |
if (typeof Popper == 'undefined') {
|
| 49 |
window.setTimeout(function() { loadDepend(); }, 100);
|
49 |
window.setTimeout(function() { loadDepend(); }, 100);
|
| 50 |
} else {
|
50 |
} else {
|
| 51 |
var element = document.createElement("script");
|
51 |
element = document.createElement("script");
|
| 52 |
element.src = "https://maxcdn.bootstrapcdn.com/bootstrap/4.4.1/js/bootstrap.min.js";
|
52 |
element.src = "https://maxcdn.bootstrapcdn.com/bootstrap/4.4.1/js/bootstrap.min.js";
|
| 53 |
element.async = true;
|
53 |
element.async = true;
|
| 54 |
element.type = "text/javascript";
|
54 |
element.type = "text/javascript";
|
| 55 |
element.setAttribute("crossorigin", "anonymous");
|
55 |
element.setAttribute("crossorigin", "anonymous");
|
| 56 |
element.setAttribute("integrity", "sha384-wfSDF2E50Y2D1uUdj0O3uMBJnjuUD4Ih7YwaYd1iqfktj0Uod8GCExl3Og8ifwB6");
|
56 |
element.setAttribute("integrity", "sha384-wfSDF2E50Y2D1uUdj0O3uMBJnjuUD4Ih7YwaYd1iqfktj0Uod8GCExl3Og8ifwB6");
|