-
Notifications
You must be signed in to change notification settings - Fork 0
/
issuecover.html
159 lines (126 loc) · 7.4 KB
/
issuecover.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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
<!doctype html>
<html lang="en">
<head>
<title>hUmagazine</title>
<!-- Required meta tags -->
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="icon" href="favicon.ico" type="image/x-icon">
<!-- Bootstrap CSS -->
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.1.3/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-1BmE4kWBq78iYhFldvKuhfTAU6auU8tT94WrHftjDbrCEXSU1oBoqyl2QvZ6jIW3" crossorigin="anonymous">
<!-- CSS loaders -->
<link rel="stylesheet" href="css/main.css">
<link rel="stylesheet" href="css/style1.css" media="none" id="cssstyle1">
<link rel="stylesheet" href="css/style2.css" media="none" id="cssstyle2">
<link rel="stylesheet" href="css/style3.css" media="none" id="cssstyle3">
<link rel="stylesheet" href="css/style4.css" media="none" id="cssstyle4">
<!-- Load jQuery -->
<script language="javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script>
<!-- Load our JS Library -->
<script language="javascript" src="js/llll.js"></script>
</head>
<body>
<!-- <div class="container-fluid">MAIN CONTAINER -->
<!-- TOP BAR -->
<div id="topBar" class="sticky-top"></div> <!-- A jQuery function loads content inside this div -->
<!-- HOMEPAGE ROW -->
<main id="coverstyle1" class="container-fluid justify-content-md-center my-4"> <!-- container-small is a CUSTOM class defined in main.css -->
<!-- align-items-start-->
<div class="row g-5">
<div id="coverLeft" class="col col-md-3">
</div>
<div class="col col-md-6">
<div id="cover1">
<div id="issueMeta">
<p><span class="metaTitle">Number: </span><span id="issueN"></span></p>
<p><span class="metaTitle">Topic: </span><span id="issueTopic"></span></p>
<p><span class="metaTitle">Editor: </span><span id="issueEditor"></span></p>
<p><span class="metaTitle">Date: </span><span id="issueDate"></span></p>
</div>
</div>
<br/>
<div id="issueArticles">
<div>In this number:</div>
<br/>
<div id="artMetaDiv">
<ol class="list-group-numbered text-left olCustom" align="left">
<li id="art1" class="list-group-item border-0 coverCustom">
<span class="artTitle"></span><span id="artN1"></span>,
<span class="artMeta"></span><span id="artN1Aut"></span>,
<span class="artMeta"> from </span><span id="artN1Mag"></span>,
<span class="artMeta"></span><span id="artN1Date"></span><br/>
<span class="artMeta"></span><span id="artN1KW1" class="card-subtitle text-muted"></span> <span class="artMeta"></span><span id="artN1KW2" class="card-subtitle text-muted"></span> <span class="artMeta"></span><span id="artN1KW3" class="card-subtitle text-muted"></span>
</li>
<li id="art2" class="list-group-item border-0 coverCustom">
<span class="artTitle"></span><span id="artN2"></span>,
<span class="artMeta"></span><span id="artN2Aut"></span>,
<span class="artMeta"> from </span><span id="artN2Mag"></span>,
<span class="artMeta"></span><span id="artN2Date"></span><br/>
<span class="artMeta"></span><span id="artN2KW1" class="card-subtitle text-muted"></span> <span class="artMeta"></span><span id="artN2KW2" class="card-subtitle text-muted"></span> <span class="artMeta"></span><span id="artN2KW3" class="card-subtitle text-muted"></span>
</li>
<li id="art3" class="list-group-item border-0 coverCustom">
<span class="artTitle"></span><span id="artN3"></span>,
<span class="artMeta"></span><span id="artN3Aut"></span>,
<span class="artMeta"> from </span><span id="artN3Mag"></span>,
<span class="artMeta"></span><span id="artN3Date"></span><br/>
<span class="artMeta"></span><span id="artN3KW1" class="card-subtitle text-muted"></span> <span class="artMeta"></span><span id="artN3KW2" class="card-subtitle text-muted"></span> <span class="artMeta"></span><span id="artN3KW3" class="card-subtitle text-muted"></span>
</li>
</ol>
</div>
<div id="openIssue"></div>
</div>
<br/><br/>
</div>
<div class="col col-md-3"></div>
</div>
</main> <!-- End container -->
<!-- FOOTER -->
<div id="footerBar"></div>
<!-- </div> -->
<!-- Bootstrap Bundle with Popper -->
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.1.3/dist/js/bootstrap.bundle.min.js" integrity="sha384-ka7Sk0Gln4gmtz2MlQnikT1wXgYsOg+OMhuP+IlRH9sENBO0LRn5q+8nbTov4+1p" crossorigin="anonymous"></script>
<script type="text/javascript">
//var issuesDet = JSON.parse(fs.readFileSync("issuesDb.json"));
const urlParams = new URLSearchParams(window.location.search);
const issueNumber = urlParams.get('number');
// console.log(issueNumber);
// Adds one link to the menu for each issue contained in the issuesDb.json file
$.getJSON('./issuesDb.json', function(objson){
//console.log(objson.topic);
for (const jsonissue of objson.issues) {
if (jsonissue.number==issueNumber) {
$("#issueN").append(jsonissue.number);
$("#issueTopic").append(jsonissue.topic);
$("#issueEditor").append(jsonissue.editor);
$("#issueDate").append(jsonissue.date);
$("#artN1").append(jsonissue.art1);
$("#artN1Mag").append(jsonissue.art1Mag);
$("#artN1Aut").append(jsonissue.art1Aut);
$("#artN1Date").append(jsonissue.art1Date);
$("#artN1KW1").append(jsonissue.art1KW1);
$("#artN1KW2").append(jsonissue.art1KW2);
$("#artN1KW3").append(jsonissue.art1KW3);
$("#artN2").append(jsonissue.art2);
$("#artN2Mag").append(jsonissue.art2Mag);
$("#artN2Aut").append(jsonissue.art2Aut);
$("#artN2Date").append(jsonissue.art2Date);
$("#artN2KW1").append(jsonissue.art2KW1);
$("#artN2KW2").append(jsonissue.art2KW2);
$("#artN2KW3").append(jsonissue.art2KW3);
$("#artN3").append(jsonissue.art3);
$("#artN3Mag").append(jsonissue.art3Mag);
$("#artN3Aut").append(jsonissue.art3Aut);
$("#artN3Date").append(jsonissue.art3Date);
$("#artN3KW1").append(jsonissue.art3KW1);
$("#artN3KW2").append(jsonissue.art3KW2);
$("#artN3KW3").append(jsonissue.art3KW3);
$("#openIssue").append('<button id="btnIssue" class="btn btn-link m-3" width="20" height="20"><a href="issue.html?number=' + issueNumber + '">Start reading...</a></button>');
}
}
}).fail(function(){
console.log("Get from issueDb: an error has occurred.");
});
</script>
</body>
<!-- Script Loaders-->
</html>