-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy pathapp.html
54 lines (48 loc) · 1.53 KB
/
app.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<script type="text/javascript" src="https://rawgit.com/WebRTCGame/AutoCAD-Javascript-API/master/Autodesk.AutoCAD.js"></script>
<title>Sample App</title>
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Open+Sans:light">
<link rel="stylesheet" href="acadStyle.css">
<script>
function myFunction() {
console.log(Autodesk);
};
</script>
</head>
<body>
<table class="tableMain">
<tr class="tableMainRow, tableTop">
<th class="tableMaintd">
<div class="clsHeader" id="headerText">Pipe Sizes</div>
</th>
</tr>
<tr class="tableMainRow">
<td class="tableMaintd">
<iframe id="fragContainer" src="" frameBorder="0"></iframe>
</td>
</tr>
<tr class="tableMainRow, tableBottom">
<td class="tableMaintd">
<div class="clsFooter">
<a href="https://www.paypal.me/georgeendrulat">
<button type="button" class="acadBtn">Donate</button>
</a>
<button onclick="myFunction()">Click me</button>
</div>
</td>
</tr>
</table>
<script>
function getURLParameter(name) {
return decodeURIComponent((new RegExp('[?|&]' + name + '=' + '([^&;]+?)(&|#|;|$)').exec(location.search) || [null, ''])[1].replace(/\+/g, '%20')) || null;
}
let title = getURLParameter("Title");
document.getElementById("headerText").innerHTML = title;
let frag = getURLParameter("Frag");
document.getElementById('fragContainer').src = frag + ".html";
</script>
</body>
</html>