-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpage_template.html~
executable file
·120 lines (99 loc) · 3.24 KB
/
page_template.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
<!DOCTYPE html>
<html>
<head>
<title>Emanuele Bellini</title>
<link rel="icon" href="img/eb5.png">
<link type="text/css" rel="stylesheet" href="stylesheet3.css"/>
<link href='https://fonts.googleapis.com/css?family=Roboto' rel='stylesheet' type='text/css'>
<link href='https://fonts.googleapis.com/css?family=Open+Sans:300,400,600,700' rel='stylesheet' type='text/css'>
<!--
<link rel="stylesheet" href="//cdnjs.cloudflare.com/ajax/libs/highlight.js/9.1.0/styles/default.min.css">
<script src="//cdnjs.cloudflare.com/ajax/libs/highlight.js/9.1.0/highlight.min.js"></script>
<script>hljs.initHighlightingOnLoad();</script>
-->
<link rel="stylesheet" href="highlight/styles/default.css">
<script src="highlight/highlight.pack_ema.js"></script>
<script>hljs.initHighlightingOnLoad();</script>
<script>
function setActive() {
// HIGHLIGH NAV BAR ITEM
var aObj = document.getElementById('navbar').getElementsByTagName('a');
//aObj = document.getElementsByTagName('nav').getElementsByTagName('a');
for(i=0;i<aObj.length;i++) {
if(document.location.href.indexOf(aObj[i].href)>=0) {
aObj[i].className='active';
}
}
// SET BACKGROUND
var page_name = location.pathname.split('/') ;
page_name = page_name[page_name.length-1] ;
//document.write(page_name) ;
switch (chapter) {
case 'home':
document.body.style.backgroundImage = 'url("./img/alpi3-optimized.jpg")' ;
break;
case 'about':
document.body.style.backgroundImage = 'url("./img/jump-optimized.jpg")' ;
break;
case 'research':
document.body.style.backgroundImage = 'url("./img/research-optimized.jpg")' ;
break;
case 'teaching':
document.body.style.backgroundImage = 'url("./img/teaching-optimized.jpg")' ;
break;
case 'programming':
document.body.style.backgroundImage = 'url("./img/programming6-optimized.jpg")' ;
break;
case 'contact':
document.body.style.backgroundImage = 'url("./img/contact3-optimized.jpg")' ;
break;
default:
document.body.style.backgroundColor = '#707070' ;
}
}
window.onload = setActive;
</script>
</head>
<body>
<?php include 'navbar1.html';?>
<div id="wrapper">
<header>
<p id="bigtitle"><a href="home.php">
<span style="color: #f7cd0a">e</span>manuele
<span style="color: #0f3062">b</span>ellini</a>
</p>
<p id="littletitle">* cryptographer * </p>
<!--
<div class="header-img-container">
<img id="header-img" src="img/alpi.png">
</div>
-->
</header>
<!--
<aside>
aside
</aside>
-->
<div id="main">
<h3>Title</h3>
<hr>
<br>
<p>
Work in progress...
</p>
</div>
<!--
<div id="body-img-container">
<img src="img/jump.jpg">
</div>
-->
<footer>
<span>
Maintained by Emanuele Bellini
</span>
</footer>
</div>
</body>
</html>
<!--
-->