Skip to content

Commit 8c07f08

Browse files
committed
Move <script> element into <header> block - avoid IE warnings
1 parent bba8ac3 commit 8c07f08

File tree

2 files changed

+8
-11
lines changed

2 files changed

+8
-11
lines changed

files/draw.htm

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -6,15 +6,13 @@
66
<meta http-equiv="X-UA-Compatible" content="IE=edge">
77
<title>Draw of single element</title>
88
<script type="text/javascript" src="jsrootsys/scripts/JSRootCore.js?gui"></script>
9-
</head>
10-
11-
<script type='text/javascript'>
129

13-
function GetCachedHierarchy() { return "$$$h.json$$$"; }
10+
<script type='text/javascript'>
11+
function GetCachedHierarchy() { return "$$$h.json$$$"; }
12+
function GetCachedObject() { return "$$$root.json$$$"; }
13+
</script>
1414

15-
function GetCachedObject() { return "$$$root.json$$$"; }
16-
17-
</script>
15+
</head>
1816

1917
<body>
2018
<div id="drawGUI">

files/online.htm

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,11 @@
77
<title>Online server</title>
88
<link rel="shortcut icon" href="jsrootsys/img/RootIcon.ico"/>
99
<script type="text/javascript" src="jsrootsys/scripts/JSRootCore.js?gui"></script>
10+
<script type="text/javascript">
11+
function GetCachedHierarchy() { return "$$$h.json$$$"; }
12+
</script>
1013
</head>
1114

12-
<script type="text/javascript">
13-
function GetCachedHierarchy() { return "$$$h.json$$$"; }
14-
</script>
15-
1615
<body>
1716
<div id="onlineGUI">
1817
loading scripts...

0 commit comments

Comments
 (0)