-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
149 lines (147 loc) · 7.89 KB
/
index.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
<html style="height:100%;">
<head>
<link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-eOJMYsd53ii+scO/bJGFsiCZc+5NDVN2yr8+0RDqr0Ql0h+rP48ckxlpbzKgwra6" crossorigin="anonymous">
<meta name="viewport" content="width=device-width, initial-scale=1 minimum-scale=1 maximum-scale=1">
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/[email protected]/font/bootstrap-icons.css">
<meta charset="UTF-8">
<script src="myscript.js"></script>
<link rel="stylesheet" href="mystyle.css">
<script src="jquery.js"></script>
</head>
<body class="d-flex flex-column h-100">
<main class="flex-grow-1">
<nav id="navbar" class="navbar navbar-light" style="background-color: rgba(30, 67, 86)" >
<div class="container-fluid">
<a class="navbar-brand" style="color: white;" href="index.html">Cantiere Buzi Donaldo</a>
<div id="profile" class="btn-group dropstart">
</div>
</div>
</nav>
<div id="container" class="container mt-4" style="max-width: 100%; background-color: #f3f8fa;">
<div class="row justify-content-center">
<div id="dont-fade" class="my-5 mx-2 shadow-lg" onmouseover="OnOver(this)" onmouseout="OnExit(this)">
<div class="row">
<div class="col-12 col-md-6 my-3 ms-0 me-0">
<img id="zoom" src="img/2.jpg" class="img-responsive h-auto" style="width:100%; margin: 0 auto; " alt="...">
</div>
<div class="col-12 col-md-5 ms-2 mt-3 me-3">
<div class="card-body">
<h3 class="card-title"><strong>Ore Lavorate</strong></h3>
<p class="fs-5">Qua è possibile visualizzare il totale delle ore lavorate da ogni operaio in un determinato mese.</p>
<a href="workerhours.html" class="btn btn-primary">Vai</a>
</div>
</div>
</div>
</div>
</div>
</div>
<div id="container" class="container" style="max-width: 100%; background-color: rgba(255, 255, 255);">
<div class="row justify-content-center">
<div id="containermob" class="fade my-5 mx-2 shadow-lg" onmouseover="OnOver(this)" onmouseout="OnExit(this)" >
<div class="row">
<div class="col-12 col-md-5 ms-3 me-5 mt-3">
<div class="card-body">
<h3 class="card-title"><strong>Lavori effettuati da un operaio</strong></h3>
<p class="fs-5">Qua è possibile visualizzare, dato un codice fiscale di un operaio le tipologie di lavoro effettuati e per quante ore in un dato giorno.</p>
<a href="worktype.html" class="btn btn-primary" >Vai</a>
</div>
</div>
<div class=" col-12 col-md-6 my-3 ms-0 me-0">
<img id="zoom" src="img/3.jpg" class="img-responsive h-auto" style="width:100%; margin: 0 auto; " alt="...">
</div>
</div>
</div>
</div>
</div>
<div id="container" class="container" style="max-width: 100%; background-color: #f3f8fa">
<div class="row justify-content-center">
<div id="containermob" class="fade my-5 mx-2 shadow" onmouseover="OnOver(this)" onmouseout="OnExit(this)">
<div class="row">
<div class=" col-12 col-md-6 my-3 ms-0 me-0">
<img id="zoom" src="img/5.jpg" class="img-responsive h-auto" style="width:100%; margin: 0 auto; " alt="...">
</div>
<div class="col-12 col-md-5 mt-3">
<div class="card-body">
<h3 class="card-title"><strong>DPI utilizzati</strong></h3>
<p class="fs-5">Qua è possibile visualizzare l'elenco degli che hanno utilizzato un certo DPI.</p>
<a href="dpiusage.html" class="btn btn-primary" >Vai</a>
</div>
</div>
</div>
</div>
</div>
</div>
<div id="container" class="container" style="max-width: 100%; background-color: rgb(255, 255, 255);">
<div class="row justify-content-center">
<div id="containermob" class="fade my-5 mx-2 shadow-lg" onmouseover="OnOver(this)" onmouseout="OnExit(this)" >
<div class="row">
<div class="col-12 col-md-5 ms-3 me-5 mt-3">
<div class="card-body">
<h3 class="card-title"><strong>Operati adoperati in un cantiere</strong></h3>
<p class="fs-5">Qua è possibile visualizzare il numero di operai che hanno lavorato ad un certo cantiere.</p>
<a href="workercount.html" class="btn btn-primary" >Vai</a>
</div>
</div>
<div class=" col-12 col-md-6 my-3 ms-0 me-0">
<img id="zoom" src="img/1.jpg" class="img-responsive h-auto" style="width:100%; margin: 0 auto; " alt="...">
</div>
</div>
</div>
</div>
</div>
</main>
<script>
$(window).on("load",function() {
$(window).scroll(function() {
var windowBottom = $(this).scrollTop() + $(this).innerHeight();
$(".fade").each(function() {
/* Check the location of each desired element */
var objectBottom = $(this).offset().top + $(this).outerHeight();
let isMobile = window.matchMedia("only screen and (max-width: 720px)").matches;
var device= 200;
if (isMobile) {
device=450;
}
/* If the element is completely within bounds of the window, fade it in */
if (objectBottom-device < windowBottom) { //object comes into view (scrolling down)
if ($(this).css("opacity")==0) {$(this).fadeTo(0.1,1);}
} else { //object goes out of view (scrolling up)
if ($(this).css("opacity")==1) {$(this).fadeTo(0.1,0);}
}
});
}).scroll(); //invoke scroll-handler on page-load
});
</script>
</body>
<footer class="border-top p-0">
<!-- Copyright -->
<div class="sticky-bottom text-center p-3" style="background-color: rgb(226, 226, 226);">
© 2021 Copyright:
<a class="text-dark" href="https://mdbootstrap.com/">esamebuzi.com</a>
</div>
<!-- Copyright -->
</footer>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.bundle.min.js" integrity="sha384-JEW9xMcG8R+pH31jmWH6WWP0WintQrMb4s7ZOdauHnUtxwoG2vI5DkLtS3qm9Ekf" crossorigin="anonymous"></script>
<script>
var prevScrollpos = window.pageYOffset;
window.onscroll = function() {
var isIOS = (/iPad|iPhone|iPod/.test(navigator.platform) ||
(navigator.platform === 'MacIntel' && navigator.maxTouchPoints > 1)) &&
!window.MSStream;
var currentScrollPos = window.pageYOffset;
console.log(prevScrollpos, currentScrollPos);
var top="-60px";
if(isIOS){
top="0px";
}
console.log(top);
if (prevScrollpos >= currentScrollPos) {
document.getElementById("navbar").style.top = "0";
} else {
document.getElementById("navbar").style.top = top;
}
prevScrollpos = currentScrollPos;
}
</script>
<script> window.onload = function(){CheckLogin(); GetProfileInfo(); }; </script>
</html>