-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
54 lines (49 loc) · 1.87 KB
/
index.html
File metadata and controls
54 lines (49 loc) · 1.87 KB
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
<!doctype html>
<html>
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, height=device-height, initial-scale=1.0, viewport-fit=cover">
<meta name="apple-mobile-web-app-capable" content="yes" />
<title>VDTV - 線上影音平台</title>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.4.1/jquery.min.js"></script>
<link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/materialize/1.0.0/css/materialize.min.css">
<script src="https://cdnjs.cloudflare.com/ajax/libs/materialize/1.0.0/js/materialize.min.js"></script>
</head>
<body class="">
<nav class="nav-extended">
<div class="nav-wrapper">
<a href="#" class="brand-logo center"> VDTV</a>
<a href="#" data-target="SideNavigation" class="sidenav-trigger"><i class="material-icons">menu</i></a>
<ul class="right hide-on-med-and-down">
<li><a href="/">Home</a></li>
</ul>
</div>
<div class="nav-content">
<div class="progress center" style="display:none;" id="AjaxLoading">
<div class="indeterminate"></div>
</div>
</div>
</nav>
<div id="view">
<a href='/TV/NEWS/TVBS.html'>新聞</a>
</div>
<script>
var registerAjax = function(){
document.getElementsByTagName('a').forEach(el=>{
el.addEventListener('click',function(e) {
e.preventDefault()
history.pushState('',{},el.href)
$('#view').load(el.href + ' #view',function(){
alert('ok')
registerAjax()
})
})
})
}
$(document).on('ready',function(){
registerAjax()
})
</script>
</body>
</html>