title.html 1.68 KB
Newer Older
Nyashes's avatar
Nyashes committed
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
<html>
<head>
    <title>page secondaire</title>
    <script type="text/javascript" src="https://code.jquery.com/jquery-3.1.1.min.js" ></script>
    <script type="text/javascript">
        jQuery("document").ready(function () {
            var myData = JSON.parse(decodeURI(document.location.href.split("#")[1]));
            jQuery("#title").text(myData.title);
            jQuery("#spData").append("<p>Auteur(s) : " + myData.authors + "</p>");
            jQuery("#spData").append("<p>License de droits d'usage : " + myData.rights + "</p>");
            jQuery("#spData").append("");
            jQuery("#rwData").append("<p>non classs : " + myData.keywords.join(", ") + "</p>");

            jQuery("#introduction").text(myData.introduction);

        });

        function loadFullText() {
            jQuery("#preview").empty();
            jQuery("#preview").text("TODO");
        }
    </script>
    <style type="text/css">
        div {
            border: solid 1px black;
        }
    </style>
</head>
<body>
    <div id="toFill">
        <h1 id="title"></h1>
        <div>
            <div style="width: 62%; display:inline-block">
                <p id="spData">

                </p>
                <div style="text-align:center;"><a href="#todo">Lien de tlchargement</a></div>
            </div>
            <div id="rwData" style="width: 35%; margin-top:0px; float:right;%">
                <h2>Tags</h2>
            </div>
        </div>
        <div id="preview" style="clear:both">
            <div id="introduction" ></div>
            <div style="text-align:center;">
                <a href="#" onclick="loadFullText()">Lire plus ...</a>
            </div>
        </div>
    </div>
</body>
</html>