-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.php
52 lines (41 loc) · 1.53 KB
/
index.php
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
<?php
/*
* version 1.2.
* 02.10.2017
*/
// include classes
include "main.class.php";
$sampleUrl = Main::$rootUrl.'external-website-simulation';
?>
<!DOCTYPE html>
<html lang="de">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<meta http-equiv="x-ua-compatible" content="ie=edge">
<title>JSON-LD Event</title>
<!-- custom styles -->
<link href="css/style.css" rel="stylesheet">
</head>
<body>
<main class="main">
<i class="author">Author: <a href="mailto:[email protected]">Roger Rutishauser</a>, HTW Chur (IW14 tz)</i>
<h1>JSON-LD Grabber for EVENTS</h1>
<h2>Get JSON-LD</h2>
<p>
Enter URL <small>(with http(s)://)</small>: <input data-sample-url="<?php echo $sampleUrl ?>" class="website-url" type="text" value="">
<br>You could use http://www.library.ethz.ch/en/About-us/Events<br>
Or, if you leave the input field empty, the sample page <b><a href="<?php echo $sampleUrl; ?>"><?php echo $sampleUrl; ?></a></b> will be used.<br>
</p>
<p>
<span class="btn js-btnGetJsonLd">Grab JSON-LD</span>
</p>
<pre class="json-ld-result">[empty]</pre>
<h2>Find and parse Event(s)</h2>
<section class="events">[empty]</section>
</main>
<!-- SCRIPTS -->
<script type="text/javascript" src="js/jquery-3.1.1.min.js"></script>
<script type="text/javascript" src="js/main.js"></script>
</body>
</html>