-
Notifications
You must be signed in to change notification settings - Fork 90
/
news.html
95 lines (89 loc) · 4.53 KB
/
news.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<title>ONNX | News</title>
<link rel="icon" href="./images/onnx-favicon.png" type="image/gif" sizes="16x16">
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Open+Sans:300,400,700">
<link href="https://fonts.googleapis.com/css?family=Lato:100,100i,300,300i,400,400i,700,700i,900,900i&display=swap" rel="stylesheet">
<link href="https://fonts.googleapis.com/css?family=Dosis" rel="stylesheet">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">
<link rel="stylesheet" href="css/custom.css">
<link rel="stylesheet" href="css/responsive.css">
</head>
<!-- Google tag (gtag.js) -->
<script async src="https://www.googletagmanager.com/gtag/js?id=G-BTR0V9ZHCR"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', 'G-BTR0V9ZHCR');
</script>
<body class="innerpage-main-wrapper">
<a class="skip-main" href="#skipMain">Skip to main content</a>
<!-- Partial header.html Start-->
<div w3-include-html="partials/navigation.html"></div>
<!-- Partial header.html End-->
<div class="main-wrapper">
<div class="top-banner-bg news-page-wrapper"></div>
<div id="skipMain" role="main" tabindex="-1">
<section class="blue-page-title-bar py-3 pb-3">
<div class="outer-container mx-auto">
<div class="container-fluid">
<div class="row">
<div class="col-12">
<h1 id="latestNews" class="text-uppercase">News</h1>
</div>
</div>
</div>
</div>
</section>
<div class="outer-container mx-auto">
<section>
<div class="container-fluid news-content-wrapper">
<div id="newsWrapper" class="row" role="region" aria-labelledby="latestNews" aria-live="polite" aria-atomic="true">
</div>
</div>
</section>
</div>
</div>
<!-- Partial footer.html Start-->
<div w3-include-html="partials/footer.html"></div>
<!-- Partial footer.html End-->
<a id="back-to-top" href="#" class="btn btn-lg back-to-top" role="button" aria-label="Back to top"><span class="fa fa-angle-up"></span></a>
</div>
<script src="https://www.w3schools.com/lib/w3.js"></script>
<script>
w3.includeHTML();
</script>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.4.1/jquery.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.3.1/js/bootstrap.min.js"></script>
<script src="./js/custom.js"></script>
<script>
$(document).ready(function() {
$.get("js/news.json", function(data, status) {
var newsData = '';
$.each(data["newsContent"], function(index, value) {
if (index != 0) {
newsData += '<hr class="border-top my-0 mx-15 w-100"/>'
}
newsData += '<div class="col-12 py-md-5 py-4" id="' + value.newsId + '">';
newsData += '<p class="mb-2 text-uppercase">' + value.newsDate + '</p>';
if (value.newsTitle.length != 0) {
newsData += '<h2 class="news-subheading blue-text bold-text">' + value.newsTitle + '</h2>';
} else {
newsData += '<h2 class="news-subheading blue-text bold-text">' + value.newsShortTitle + '</h2>';
}
newsData += '<p class="text-break">' + value.newsDescription + '</p>';
newsData += '<a target="_blank" aria-label="' + value.newsLinkText + ' - ' + value.newsShortTitle + '" class="link subheading-6" href="' + value.newsLinkURL + '"><span class="link-content">' + value.newsLinkText + '</span><span class="link-arrow fa fa-angle-right"></span></a>';
newsData += '</div>';
});
$('#newsWrapper').append(newsData).fadeIn(200);
});
});
</script>
</body>
</html>