summaryrefslogtreecommitdiff
path: root/maintenance/jsduck/eg-iframe.html
blob: f53b40445eb6d97a8b65d628e6fc6b640e4d1ce1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <title>MediaWiki Examples</title>
    <script>
        function loadInlineExample(code, options, callback) {
            try {
                document.body.innerHTML = '';
                eval(code);
                callback && callback(true);
            } catch (e) {
                document.body.innerHTML = document.createTextNode(e);
                callback && callback(false, e);
            }
        }
    </script>
</head>
<body></body>
</html>