-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathWindows 7.html
More file actions
125 lines (106 loc) · 3.66 KB
/
Copy pathWindows 7.html
File metadata and controls
125 lines (106 loc) · 3.66 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
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
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<meta name="viewport" content="width=device-width, height=device-height, initial-scale=1.0, user-scalable=no,user-scalable=0"/>
<title>Windows 7</title>
<link rel="icon" href="images/App001.ico" type="image/x-icon">
<meta name="description" content="nodes.js is a nodes/particles animation useable for backgrounds">
<meta name="keywords" content="nodes, animation, particlees, web, html5, canvas, background">
<link rel="stylesheet" href="https://unpkg.com/7.css/dist/7.css">
<style type="text/css">
* {
padding: 0px;
margin: 0px;
}
body {
font-family: 'Frutiger';
font-size: 14px;
line-height: 20px;
color: white;
background-image: url("Windows 7 Wallpapers/windows_7_2.jpg");
background-size: cover;
background-position: center;
background-attachment: fixed;
}
footer {
background: url("images/Aero Taskbar.png")repeat-x scroll 0 0;
position: fixed;
left: 0;
bottom: -1;
width: 100%;
color: white;
text-align: center;
}
}
</style>
</head>
<body>
<div class="background">
<div class="window glass active" id="mydiv" style="max-width: 60%; height: auto; position: absolute; z-index: 100; --w7-w-bg:#8cedc1;">
<div class="title-bar" id="mydivheader">
<div class="title-bar-text">Welcome to Windows 7</div>
<div class="title-bar-controls">
<button aria-label="Minimize"></button>
<button aria-label="Maximize"></button>
<button aria-label="Close"></button>
</div>
</div>
<div class="window-body has-space" style="font-size: 32px; color: #000;">
<div class="has-scrollbar" style="width: 100%; height: 500px; overflow: auto; color: #000">
<img src="images/Net020.ico" alt="MSN">
<h3>Uhhhhhh-</h3>
<p> So... why are you even here? GO BACK!</p>
<br><br/>
<p> Also don't try to move me!</p>
</div>
<div role="progressbar" class="error">
<div style="width: 60%"></div>
</div>
</div>
</div>
<div class="footer">
<img src="Images/Windows 7 icon remake.png" alt="Windows 7 icon">
</div>
<script>
//Make the DIV element draggagle:
dragElement(document.getElementById("mydiv"));
function dragElement(elmnt) {
var pos1 = 0, pos2 = 0, pos3 = 0, pos4 = 0;
if (document.getElementById(elmnt.id + "header")) {
/* if present, the header is where you move the DIV from:*/
document.getElementById(elmnt.id + "header").onmousedown = dragMouseDown;
} else {
/* otherwise, move the DIV from anywhere inside the DIV:*/
elmnt.onmousedown = dragMouseDown;
}
function dragMouseDown(e) {
e = e || window.event;
e.preventDefault();
// get the mouse cursor position at startup:
pos3 = e.clientX;
pos4 = e.clientY;
document.onmouseup = closeDragElement;
// call a function whenever the cursor moves:
document.onmousemove = elementDrag;
}
function elementDrag(e) {
e = e || window.event;
e.preventDefault();
// calculate the new cursor position:
pos1 = pos3 - e.clientX;
pos2 = pos4 - e.clientY;
pos3 = e.clientX;
pos4 = e.clientY;
// set the element's new position:
elmnt.style.top = (elmnt.offsetTop - pos2) + "px";
elmnt.style.left = (elmnt.offsetLeft - pos1) + "px";
}
function closeDragElement() {
/* stop moving when mouse button is released:*/
document.onmouseup = null;
document.onmousemove = null;
}
}
</script>
</body>