-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
52 lines (44 loc) · 1.46 KB
/
index.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
<!DOCTYPE html>
<html>
<head>
<title>Sentry test for ignoring error from library</title>
<script
src="https://browser.sentry-cdn.com/6.2.5/bundle.min.js"
integrity="sha384-+0tgGyP4idWu9/NA6Jbmnj3SApxIg65/GR1zo3qSieRNyzmmDQ/5a1Yu6mfmUw+v"
crossorigin="anonymous"
></script>
<script>
Sentry.init({
dsn: 'https://7786a02068e24071b5b78a75036911c9@o608132.ingest.sentry.io/5745452',
release: "1.1",
denyUrls: [
/anand-gith\.github\.io\/Sentry\/demo\.js/i,
]
});
</script>
<script src="https://anand-gith.github.io/Sentry/demo.js" crossorigin="anonymous"></script>
<script>
var obj = {};
obj.invalidFunction(); // this error should always be reported to Sentry
</script>
<script>
function docalc(){
a=document.getElementById('num').value
b=document.getElementById('dnum').value
document.getElementById('res').value=dividend(a,b)
}
</script>
</head>
<body>
<form>
<label for="num">Value of Numerator:</label><br>
<input type="number" id="num" name="num"><br>
<label for="dnum">Value of Denominator:</label><br>
<input type="number" id="dnum" name="dnum"><br><br>
<label for="res">Result:</label><br>
<input type="number" id="res" name="res"><br><br>
<input id="calc" type="button" value="Calculate Division" onclick="docalc();"/>
<input id="err" type="button" value="Error in library" onclick="error();"/>
</form>
</body>
</html>