Browse Source

Adding files to repo

master
0xBedz 4 years ago
parent
commit
6147624c3b

+ 1
- 0
.version View File

@@ -0,0 +1 @@
1
+2

+ 389
- 0
assets/css/main.css View File

@@ -0,0 +1,389 @@
1
+@font-face {
2
+    font-family: 'oswald';
3
+	src: url('../fonts/Oswald-Regular.ttf');
4
+	/*			../fonts/SILOpenFontLicense.txt			*/
5
+}
6
+
7
+:root {
8
+	--nav-height: 65px;
9
+	--cool-looking-gradient: linear-gradient(to right, #3ad559 0%, #606dc2 100%);
10
+}
11
+
12
+html, body {
13
+	font-size: 13.5pt;
14
+	font-family: 'Oswald', sans-serif;
15
+    margin: 0;
16
+    height: 100%;
17
+    background-color: #e6e6e6;
18
+}
19
+
20
+nav {
21
+	display: flex;
22
+	flex-direction: row;
23
+	justify-content: center;
24
+	position: fixed;
25
+	height: var(--nav-height);
26
+	background-color: white;
27
+	width: 100%;
28
+	border-bottom: 5px solid transparent;
29
+	border-image: var(--cool-looking-gradient);
30
+	border-image-slice: 1;
31
+	font-size: 22px;
32
+	user-select: none;
33
+	z-index: 1;
34
+}
35
+
36
+nav .logo {
37
+	background-image: url("../imgs/logo.png");
38
+	background-repeat: no-repeat;
39
+	background-size: auto 100%;
40
+	height: 100%;
41
+	width: 300px;
42
+	margin-right: auto;
43
+}
44
+
45
+nav .blank {
46
+	width: 300px;
47
+	margin-left: auto;
48
+}
49
+
50
+nav .links {
51
+	display: flex;
52
+	flex-direction: row;
53
+	justify-content: center;
54
+}
55
+
56
+
57
+nav .links a {
58
+	display: flex;
59
+	justify-content: center;
60
+	align-items: center;
61
+	height: 100%;
62
+	margin: auto 10px auto 10px;
63
+	text-align: center;
64
+	color: #6d6b6b;
65
+	text-decoration: none;
66
+	transition: color 10ms;
67
+	font-weight: 900;
68
+}
69
+
70
+nav a:hover {
71
+	color: black;
72
+	text-shadow: rgba(0, 0, 0, 0.1) 1px 0 5px;
73
+}
74
+
75
+footer {
76
+	height: 10px;
77
+	background-color: rgb(59, 59, 59);
78
+	width: 100%;
79
+	background-image: var(--cool-looking-gradient);
80
+}
81
+
82
+#content {
83
+	display: flex;
84
+	padding-top: var(--nav-height);
85
+	flex-direction: column;
86
+	width: 100%;
87
+}
88
+
89
+#content #banner {
90
+	display: flex;
91
+	min-height: 450px;
92
+	margin-bottom: 30px;
93
+	justify-content: center;
94
+	align-items: center;
95
+	background-image: url('../imgs/banner.JPG');
96
+	background-repeat: no-repeat;
97
+	background-position: 0 -150px;
98
+	background-size: auto auto;
99
+	background-attachment: fixed;
100
+}
101
+
102
+#content #banner #bannerTxt {
103
+	margin-right: auto;
104
+	margin-left: 80px;
105
+	width: 500px;
106
+	font-size: 30px;
107
+	line-height: 1.3;
108
+	font-weight: 600;
109
+	color: white;
110
+}
111
+
112
+#content #banner #quickInfo {
113
+	display: flex;
114
+	align-items: center;
115
+	flex-direction: column;
116
+	margin-right: 40px;
117
+	margin-left: auto;
118
+	width: 320px;
119
+	height: 340px;
120
+	font-size: 20px;
121
+	line-height: 1.15;
122
+	font-weight: 600;
123
+	color: white;
124
+	background-color: #000000a1;
125
+	border: 1px solid;
126
+	border-image-slice: 1;
127
+	border-image-source: linear-gradient(to left, #004abe, #1e6f07);
128
+}
129
+
130
+#content #banner #quickInfo span {
131
+	align-self: flex-start;
132
+	margin-left: 20px;
133
+}
134
+
135
+#content #banner #quickInfo span:first-child {
136
+	margin-top: 10px;
137
+}
138
+
139
+#content #banner #quickInfo p {
140
+	padding: 0;
141
+	margin: 10px;
142
+}
143
+
144
+#content .container {
145
+	display: flex;
146
+	flex-direction: column;
147
+	align-items: center;
148
+	text-align: center;
149
+	margin-bottom: 20px;
150
+	width: 100%;
151
+}
152
+
153
+#content .container .row {
154
+	display: flex;
155
+	flex-wrap: wrap;
156
+	justify-content: center;
157
+	width: 100%;
158
+}
159
+
160
+#content .container .service {
161
+	order: 1;
162
+	display: flex;
163
+	flex-direction: column;
164
+	justify-content: center;
165
+	margin: 20px;
166
+	width: 400px;
167
+	height: 255px;
168
+	border: solid 1px rgb(94, 94, 94);
169
+	transition: transform 40ms;
170
+	user-select: none;
171
+	cursor: pointer;
172
+}
173
+
174
+#content .container .service:hover{
175
+	transform: scale(1.1);
176
+}
177
+
178
+#content .container .service.active:hover{
179
+	transform: scale(1);
180
+}
181
+
182
+#content .container .service.active {
183
+	order: 0;
184
+	width: 100%;
185
+	min-height: 500px;
186
+	height: auto;
187
+	flex-direction: row;
188
+	justify-content: start;
189
+}
190
+
191
+#content .container .service.active h1 {
192
+	display: none;
193
+}
194
+
195
+#content .container .service.active .image {
196
+	width: 100%;
197
+	height: 100%;
198
+	background-size: cover;
199
+}
200
+
201
+#content .container .service.active .image .discription {
202
+	display: flex;
203
+}
204
+
205
+#content .container .service h1 {
206
+	margin-top: auto;
207
+	font-size: 15pt;
208
+	width: 100%;
209
+}
210
+
211
+#content .container .service .image {
212
+	margin-bottom: auto;
213
+	height: 200px;
214
+	width: 100%;
215
+	background-size: 100% auto;
216
+	background-repeat: no-repeat;
217
+	background-position: 0 0;
218
+}
219
+
220
+#content .container .service .image .discription {
221
+	display: none;
222
+	align-items: center;
223
+	justify-content: center;
224
+	flex-direction: column;
225
+	width: 100%;
226
+	height: 100%;
227
+	color: white;
228
+	background-color: rgba(0, 0, 0, 0.9);
229
+}
230
+
231
+#content .container .service .image .discription ul{
232
+	text-align: left;
233
+}
234
+
235
+#content .container .service .image .discription .contactLink{
236
+	color: rgb(130, 253, 137);
237
+	text-decoration: none;
238
+	font-weight: 900;
239
+	font-size: 20px;
240
+}
241
+
242
+#content .container .service .image.pc {
243
+	background-image: url('../imgs/pc.jpg');
244
+}
245
+
246
+#content .container .service .image.pd {
247
+	background-image: url('../imgs/pd.jpg');
248
+}
249
+
250
+#content .container .service .image.hvac {
251
+	background-image: url('../imgs/hvac.jpg');
252
+}
253
+
254
+#content .container .service .image.pcs {
255
+	background-image: url('../imgs/pcs.jpg');
256
+}
257
+
258
+#content .container .contactBox {
259
+	display: flex;
260
+	flex-direction: row;
261
+	justify-content: space-around;
262
+	align-items: center;
263
+	width: 100%;
264
+	padding-top: 20px;
265
+	background-image: linear-gradient(to bottom, #ccc, transparent);
266
+	font-size: 20px;
267
+	font-weight: 600;
268
+}
269
+
270
+#content .container .contactBox .infoContainer {
271
+	padding-top: 5px;
272
+	padding-bottom: 5px;
273
+	border-bottom: solid 1px white;
274
+}
275
+
276
+.coolLookingBox {
277
+	background-color: #f5f5f5;
278
+	background-image: linear-gradient(to bottom,#ffffff,#e6e6e6);
279
+	background-repeat: repeat-x;
280
+	border: 1px solid #cccccc;
281
+	border-color: #e6e6e6 #e6e6e6 #bfbfbf;
282
+	border-color: rgba(0, 0, 0, 0.1) 
283
+				  rgba(0, 0, 0, 0.1) 
284
+				  rgba(0, 0, 0, 0.25);
285
+	border-bottom-color: #b3b3b3;
286
+	border-radius: 4px;
287
+	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 
288
+					  0 1px 2px rgba(0, 0, 0, 0.05);
289
+	color: #333;
290
+	display: block;
291
+	font-size: 125%;
292
+	font-style: normal;
293
+	line-height: 20px;
294
+	margin: 20px 0 0;
295
+	padding: 10px 20px;
296
+	text-align: center;
297
+	text-decoration: none;
298
+	text-shadow: 0 1px 1px rgba(255, 255, 255, 0.75);
299
+  }
300
+
301
+
302
+.coolLookingBox.mobile:before {
303
+	content: 'Mobile: ';
304
+	font-weight: bold;
305
+}
306
+
307
+.coolLookingBox.landline:before {
308
+	content: 'Landline: ';
309
+	font-weight: bold;
310
+}
311
+
312
+.coolLookingBox.email:before {
313
+	content: 'E-Mail: ';
314
+	font-weight: bold;
315
+}
316
+
317
+#map {
318
+	height: 450px;
319
+	width: 100%;
320
+	margin: auto;
321
+}
322
+
323
+.divider{	/*		Thanks Milan! https://codepen.io/Oddgson		*/
324
+	
325
+	position: relative;
326
+	margin-top: 10px;
327
+	height: 1px;
328
+}
329
+
330
+.div-transparent:before{
331
+	content: "";
332
+	position: absolute;
333
+	top: 0;
334
+	left: 5%;
335
+	right: 5%;
336
+	width: 90%;
337
+	height: 2px;
338
+	background-image: linear-gradient(to right, transparent, #008cff65, transparent);
339
+}
340
+
341
+@media screen and (max-width: 1200px) {
342
+	nav .blank {
343
+	  display: none;
344
+	}
345
+}
346
+
347
+@media screen and (max-width: 1000px) {
348
+	#content #banner #quickInfo{
349
+		display: none;
350
+	}
351
+}
352
+
353
+@media screen and (max-width: 730px) {
354
+	nav {
355
+		height: auto;
356
+		flex-direction: column;
357
+		position: relative;
358
+	
359
+	}
360
+	nav .logo {
361
+		margin: auto;
362
+		background-position: center;
363
+		height: 65px;
364
+	
365
+	}
366
+	nav .blank {
367
+	  display: none;
368
+	}
369
+
370
+	#content {
371
+		padding-top: 0;
372
+	}
373
+	#content #banner {
374
+		justify-content: center;
375
+
376
+	}
377
+	#content #banner #bannerTxt {
378
+		margin: 10px;
379
+	}
380
+	#content .container .contactBox {
381
+		flex-direction: column;
382
+	}
383
+}
384
+
385
+@media screen and (max-width: 320px) {
386
+	nav .links {
387
+		flex-direction: column;
388
+	}
389
+}

BIN
assets/fonts/Oswald-Regular.ttf View File


+ 44
- 0
assets/fonts/SILOpenFontLicense.txt View File

@@ -0,0 +1,44 @@
1
+Copyright (c) 2012, Vernon Adams (vern@newtypography.co.uk),
2
+with Reserved Font Name Oswald
3
+
4
+This Font Software is licensed under the SIL Open Font License, Version 1.1.
5
+This license is copied below, and is also available with a FAQ at: http://scripts.sil.org/OFL
6
+
7
+-----------------------------------------------------------
8
+SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007
9
+-----------------------------------------------------------
10
+
11
+PREAMBLE
12
+The goals of the Open Font License (OFL) are to stimulate worldwide development of collaborative font projects, to support the font creation efforts of academic and linguistic communities, and to provide a free and open framework in which fonts may be shared and improved in partnership with others.
13
+
14
+The OFL allows the licensed fonts to be used, studied, modified and redistributed freely as long as they are not sold by themselves. The fonts, including any derivative works, can be bundled, embedded, redistributed and/or sold with any software provided that any reserved names are not used by derivative works. The fonts and derivatives, however, cannot be released under any other type of license. The requirement for fonts to remain under this license does not apply to any document created using the fonts or their derivatives.
15
+
16
+DEFINITIONS
17
+"Font Software" refers to the set of files released by the Copyright Holder(s) under this license and clearly marked as such. This may include source files, build scripts and documentation.
18
+
19
+"Reserved Font Name" refers to any names specified as such after the copyright statement(s).
20
+
21
+"Original Version" refers to the collection of Font Software components as distributed by the Copyright Holder(s).
22
+
23
+"Modified Version" refers to any derivative made by adding to, deleting, or substituting -- in part or in whole -- any of the components of the Original Version, by changing formats or by porting the Font Software to a new environment.
24
+
25
+"Author" refers to any designer, engineer, programmer, technical writer or other person who contributed to the Font Software.
26
+
27
+PERMISSION & CONDITIONS
28
+Permission is hereby granted, free of charge, to any person obtaining a copy of the Font Software, to use, study, copy, merge, embed, modify, redistribute, and sell modified and unmodified copies of the Font Software, subject to the following conditions:
29
+
30
+1) Neither the Font Software nor any of its individual components, in Original or Modified Versions, may be sold by itself.
31
+
32
+2) Original or Modified Versions of the Font Software may be bundled, redistributed and/or sold with any software, provided that each copy contains the above copyright notice and this license. These can be included either as stand-alone text files, human-readable headers or in the appropriate machine-readable metadata fields within text or binary files as long as those fields can be easily viewed by the user.
33
+
34
+3) No Modified Version of the Font Software may use the Reserved Font Name(s) unless explicit written permission is granted by the corresponding Copyright Holder. This restriction only applies to the primary font name as presented to the users.
35
+
36
+4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font Software shall not be used to promote, endorse or advertise any Modified Version, except to acknowledge the contribution(s) of the Copyright Holder(s) and the Author(s) or with their explicit written permission.
37
+
38
+5) The Font Software, modified or unmodified, in part or in whole, must be distributed entirely under this license, and must not be distributed under any other license. The requirement for fonts to remain under this license does not apply to any document created using the Font Software.
39
+
40
+TERMINATION
41
+This license becomes null and void if any of the above conditions are not met.
42
+
43
+DISCLAIMER
44
+THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM OTHER DEALINGS IN THE FONT SOFTWARE.

BIN
assets/imgs/Logo.png View File


BIN
assets/imgs/banner.JPG View File


BIN
assets/imgs/hvac.jpg View File


BIN
assets/imgs/pc.jpg View File


BIN
assets/imgs/pcs.jpg View File


BIN
assets/imgs/pd.jpg View File


+ 440
- 0
assets/js/PreReq.js View File

@@ -0,0 +1,440 @@
1
+//Writen/Compiled by Bedirhan Teymur, with the help of StackOverflow ofc
2
+(function(glob){
3
+	var globVar = 'e'; // Change global variable here if needed!
4
+	var e = (function (){
5
+		'use strict';
6
+		var hc = function(a, b){
7
+			try{
8
+				if(e.type(a.className) !== 'string') return !1;
9
+				var c = a.className.split(' ');
10
+				for(var i = 0; i < c.length; i++) if(c[i] === b) return !0
11
+			} catch(k){}
12
+			return !1
13
+		},
14
+			rc = function(a) {
15
+				var b = '',
16
+					c = this,
17
+					d = c.className.split(' ');
18
+				if(!hc(c, a)) return;
19
+				for(var i = 0; i < d.length; i++) {
20
+					if(d[i] !== a) {
21
+						b += d[i] + ' ';
22
+					}
23
+				}
24
+				c.className = b.trim();
25
+			},
26
+
27
+			mk = {
28
+				html: function(a){
29
+					var b = this,
30
+						d = b.length;
31
+					if(b.empty) return this;
32
+					if(e.type(a) !== 'string') return b[0].innerHTML;
33
+					for(var i = 0; i < d; i++) {
34
+						b[i].innerHTML = a
35
+					}
36
+					return this
37
+				},
38
+				
39
+				swapClass: function(a, c, j){
40
+					var b = j ? [this[j]] : this,
41
+						d = b.length;
42
+					if(d === 0) return this;
43
+					for(var i = 0; i < d; i++){
44
+						if(hc(b[i], a)){
45
+							rc.call(b[i], a);
46
+							b[i].className = b[i].className + ' ' + c;
47
+						} else if(hc(b[i], c)){
48
+							rc.call(b[i], c);
49
+							b[i].className = b[i].className + ' ' + a;
50
+						}
51
+					}
52
+					return this;
53
+				},
54
+
55
+				removeClass: function(a){
56
+					var b = this,
57
+						d = b.length;
58
+					for(var i = 0; i < d; i++) {
59
+						rc.call(b[i], a);
60
+					}
61
+					return this
62
+				},
63
+
64
+				hasClass: function(a){
65
+					var b = this,
66
+						d = b.length,
67
+						c = !1;
68
+					for(var i = 0; i < d; i++) {
69
+						if(hc(b[i], a)) c = !0;
70
+					}
71
+					return c;
72
+				},
73
+				
74
+				addClass: function(a){
75
+					var b = this,
76
+						d = b.length;
77
+					for(var i = 0; i < d; i++) {
78
+						if(!hc(b[i], a)) b[i].className = b[i].className + ' ' + a;
79
+					}
80
+					return this
81
+				},
82
+
83
+				listen: function(a, c, k){
84
+					var b = this,
85
+						d = b.length,
86
+						f = new Function();
87
+					if(d === 0) return this;
88
+					if(e.type(a) === 'array'){
89
+						for(var i = 0; i < a.length; i++) {
90
+							this.listen(a[i], c||f, k||!1);
91
+						}
92
+						return this;
93
+					}
94
+					for(var i = 0; i < d; i++) {
95
+						if(e.type(c) === 'object'){
96
+							e.foreach(c, function(j, l){
97
+								b[i].addEventListener(j, (e.type(l) === 'function') ? l : f, k||!1);
98
+							});
99
+						} else b[i].addEventListener(a, c||f, k||!1);
100
+					}
101
+					return this;
102
+				},
103
+				
104
+				each: function(c){
105
+					var b = this,
106
+						g = e.clone(b);
107
+					if(g.length < 1) return this;
108
+					for(var j = 0; j < g.length; j++) c.call(g[j]);
109
+					return this;
110
+				},
111
+
112
+				css: function(c, ki){
113
+					var b = this;
114
+					if(b.length === 0) return this;
115
+					if(!c) {
116
+						var k = getComputedStyle(ki ? b[ki]:b[0]), fn = {};
117
+						e.foreach(k, function(l, j){
118
+							fn[j] = k.getPropertyValue(j);
119
+						});
120
+						return fn;
121
+					}
122
+					if(e.type(c) === 'object'){
123
+						for(var j = 0; j < b.length; j++) {
124
+							for(var i in c) if(c.hasOwnProperty(i)){
125
+								b[j].style[i] = c[i];
126
+							}
127
+						}
128
+					}
129
+					return this;
130
+				},
131
+
132
+				onDrag: function(m, f){
133
+					var b = this,
134
+						t,
135
+						k = function(g){
136
+							(m).call(t, g);
137
+						},
138
+						y = function(i){
139
+							i.addEventListener('mousedown', function(a){
140
+								t = this;
141
+								a.preventDefault();
142
+								document.addEventListener('mousemove', k, !1)
143
+							});
144
+							
145
+							document.addEventListener('mouseup', function(a){
146
+								var u = t;
147
+								if(t == null) return;
148
+								t = null;
149
+								document.removeEventListener('mousemove', k, !1);
150
+								if(e.type(f) == 'function') f.call(u, a);
151
+								if(f === !0) k.call(u, a);
152
+							});
153
+						}
154
+					for(var j = 0; j < b.length; j++) y(b[j]);
155
+					return this
156
+				}
157
+			},
158
+
159
+			km = function(a, g){
160
+				var c = [];
161
+				if(e.type(a) === 'function'){
162
+					return document.addEventListener('DOMContentLoaded' , a);
163
+				}
164
+				if(typeof a === 'string'){
165
+					if(!e.isEmpty(a)){
166
+						var b = a.split(':'),
167
+							d = ((!!g && !!g['querySelectorAll']) ? g : document).querySelectorAll(b[0]),
168
+							f = (b.length > 1) ? (b[1] == 'first' ? [d[0]] : b[1] == 'last' ? [d[d.length-1]] : d) : d;
169
+						for(var i = 0; i < f.length; i++){
170
+							c[c.length] = f[i];
171
+						}
172
+					}
173
+				} else if(a instanceof Array) {
174
+					for(var i = 0; i < a.length; i++){
175
+						var d = document.querySelectorAll(a[i]);
176
+						for(var j = 0; j < d.length; j++){
177
+							c[c.length] = d[j];
178
+						}
179
+					}
180
+				} else if (a instanceof NodeList || a instanceof HTMLCollection){
181
+					for(var i = 0; i < a.length; i++) {
182
+						c[c.length] =  a[i];
183
+					}
184
+				} else c[c.length] = a;
185
+				
186
+				return e.extend(c, mk, {empty: c.length < 1, f: c[0]});
187
+			}
188
+		//End
189
+		return km;
190
+	})(),
191
+		p = function(){
192
+			var a = ['webkit','moz','ms','o'];
193
+			if ('hidden' in document) return 'hidden';
194
+			for (var i = 0; i < a.length; i++){
195
+				if ((a[i] + 'Hidden') in document) 
196
+					return a[i] + 'Hidden';
197
+			}
198
+			return !1;
199
+		}, qq = {
200
+			arrayCompare: function(a, b){
201
+				if (!b || !a) return !1;
202
+
203
+				if (a.length != b.length) return !1;
204
+
205
+				for(var i = 0, l = a.length; i < l; i++){
206
+					if(b[i] instanceof Array && a[i] instanceof Array){
207
+						if(!a[i].equals(b[i])) return !1;
208
+					}
209
+					else if(a[i] != b[i]){
210
+						return !1;
211
+					}
212
+				}
213
+				return !0;
214
+			},
215
+ 
216
+			randomize: function(u, h){
217
+				var a = this.clone(u),
218
+					b = a.length, c, d,
219
+					f = (this.type(h) === 'number'),
220
+					g = 'a';
221
+				while(0 < b){
222
+					d = Math.floor(Math.random() * b);
223
+					c = a[--b];
224
+					a[b] = a[d];
225
+					a[d] = c
226
+					g = (f && g == 'a') ? ((h === d) ? b : ((h === b) ? d : g)) : g;
227
+				}
228
+				return (f) ? {pos: (g == 'a') ? null : g, array: a} : a;
229
+			},
230
+			isMobile: function(){
231
+				var a = window.navigator.userAgent.toLowerCase(),
232
+					b = ['iphone', 'ipad', 'android', 'blackberry', 'nokia', 'opera mini', 'windows mobile', 'windows phone', 'iemobile', 'mobile safari', 'bb10; touch'];
233
+				for (var i in b) if (a.indexOf(b[i]) > 0) return !0;
234
+				return !1;
235
+			},
236
+
237
+			isFirefox: function(){
238
+				var a = window.navigator.userAgent.toLowerCase();
239
+				if (a.indexOf('firefox') > 0) return !0;
240
+				return !1;
241
+			},
242
+			isVis: function(){
243
+				if(p()){
244
+					return !document[p()] || !1;
245
+				}
246
+				return !1
247
+			},
248
+			
249
+			winScroll: function(){
250
+				return (window.pageYOffset !== undefined) ? window.pageYOffset : (document.documentElement || document.body.parentNode || document.body).scrollTop;
251
+			},
252
+
253
+			screenSize: function(){
254
+				var w = window,
255
+					d = document,
256
+					e = d.documentElement,
257
+					g = d.getElementsByTagName('body')[0],
258
+					x = w.innerWidth || e.clientWidth || g.clientWidth,
259
+					y = w.innerHeight || e.clientHeight || g.clientHeight;
260
+				return {
261
+					x : x,
262
+					y : y
263
+				}
264
+			},
265
+
266
+			foreach: function(a, b){
267
+				for(var i in a) {
268
+					if(a.hasOwnProperty(i)) {
269
+						if(b(i, a[i]) === !1) break;
270
+					}
271
+				}
272
+			},
273
+			
274
+			replace: function(a, b, g){
275
+				var h;
276
+				if(this.type(a) !== 'string') throw 'First argument must be a string!';
277
+				switch(this.type(b)){
278
+					case 'string':
279
+						if(e.type(g) !== 'string') throw 'Last argument invalid!';
280
+						h = this.parseJson('{'+b+':"'+g+'"}');
281
+						break;
282
+					case 'object':
283
+						h = b;
284
+				}
285
+				var d = new RegExp(Object.keys(h).join("|"), "gi");
286
+				return a.replace(d, function(f){
287
+					return h[f];
288
+				});
289
+			},
290
+
291
+			isEmpty: function(a){
292
+				if(typeof a === 'string') {
293
+					if (a.trim() !== '')
294
+						return !1
295
+				} else {
296
+					for (var b in a)
297
+						return !1
298
+				}
299
+				return !0
300
+			},
301
+
302
+			clone: function(a){
303
+				var b, s = this.clone;
304
+				if(null === a || "object" != typeof a)
305
+					return a;
306
+
307
+				if(a instanceof Node || a instanceof Element) {
308
+					return a
309
+				}
310
+
311
+				if(a instanceof Date) {
312
+					b = new Date();
313
+					b.setTime(a.getTime());
314
+					return b
315
+				}
316
+
317
+				if(a instanceof Array) {
318
+					b = [];
319
+					for(var i = 0; i < a.length; i++) {
320
+						b[i] = s(a[i]);
321
+					}
322
+					return b
323
+				}
324
+
325
+				if(a instanceof Object) {
326
+					b = {};
327
+					for(var c in a) {
328
+						if(a.hasOwnProperty(c))
329
+							b[c] = s(a[c]);
330
+					}
331
+					return b
332
+				}
333
+				throw new TypeError('Unsupported type')
334
+			},
335
+
336
+			extend: function(){
337
+				var p,
338
+					l = arguments.length,
339
+					f =  arguments[0] || {},
340
+					h = this.type(f),
341
+					e = (f instanceof Node) ? f : (h === 'object' || h === 'string'|| h === 'boolean') ? {} : (h === 'array') ? [] : f,
342
+					i = (h === 'string' || f instanceof Node || h === 'boolean') ? 1 : 0;
343
+				for(;i < l; i++) {
344
+					for(p in arguments[i]){
345
+						if(Object.prototype.hasOwnProperty.call(arguments[i], p)){
346
+							e[p] = arguments[i][p];
347
+						}
348
+					}
349
+				}
350
+				return e;
351
+			},
352
+			
353
+			type: function(a){
354
+				var b = typeof a,
355
+					c = ['object', 'array', 'function', 'number', '[object Window]', '[object Array]', '[object Function]', 'undefined'],
356
+					d = Object.prototype.toString.call(a);
357
+				if (c[0] == b)
358
+					if(a){
359
+						if(a instanceof Array)
360
+							return c[1];
361
+						if(a instanceof Object)
362
+							return b;
363
+						if(c[4] == d)
364
+							return c[0];
365
+						if(c[5] == d || c[3] == typeof a.length && c[7] != typeof a.splice && c[7] != typeof a.propertyIsEnumerable && !a.propertyIsEnumerable('splice'))
366
+							return c[1];
367
+						if(c[6] == d || c[7] != typeof a.call && c[7] != typeof a.propertyIsEnumerable && !a.propertyIsEnumerable('call'))
368
+							return c[2];
369
+					} else return 'null';
370
+					else if(c[2] == b && c[7] == typeof a.call) return c[0];
371
+					return b
372
+			},
373
+			
374
+			post: function(a, b, c){ //a = URL, b = params(object), c = object with functions to call(done/fail/loading), it can also be a function(success only).
375
+				var xhr = new XMLHttpRequest(),
376
+					p = '',
377
+					j = new Function(),
378
+					l = {
379
+						done: j,
380
+						fail: j,
381
+						loading: j,
382
+						type: '',
383
+						data: null,
384
+						json: !1
385
+					},
386
+					h = this.type(c),
387
+					f = (h === 'object') ? this.extend(l, c) : (h === 'function') ? this.extend(l, {done: c}) : l,
388
+					v = this;
389
+				xhr.open('POST', a);
390
+				xhr.responseType = f.type;
391
+				xhr.setRequestHeader('Content-type', 'application/x-www-form-urlencoded');
392
+				xhr.onreadystatechange = function(){
393
+					if(this.readyState == 3){
394
+						f.loading(xhr.response);
395
+					};
396
+					if(this.readyState == 4){
397
+						switch(this.status == 200){
398
+							case !0:
399
+								if(f.json){
400
+									try{
401
+										var p = v.parseJson(xhr.response);
402
+									} catch(h){
403
+										return f.fail(h);
404
+									}
405
+									f.done(p);
406
+								} else f.done(xhr.response);
407
+								break;
408
+							case !1:
409
+								f.fail(xhr.response);
410
+								break
411
+						}
412
+					}
413
+				}
414
+				if(b && v.type(b) == 'object'){
415
+					v.foreach(b, function(k, m){
416
+						p += encodeURIComponent(k) + '=' + encodeURIComponent(m) + '&';
417
+					});
418
+					p = p.substr(0, p.length-1)
419
+				}
420
+				xhr.send(p);
421
+			},
422
+			
423
+			promisePost: function(a, b, c){//Experimental
424
+				var k = this;
425
+				return new Promise(function(j, r){
426
+					k.post(a, b, {
427
+						done: function(g){
428
+							j(g);
429
+						},
430
+						fail: function(g){
431
+							r(g);
432
+						},
433
+						json: c
434
+					});
435
+				});
436
+			}
437
+		}
438
+	
439
+	glob[globVar] = qq.extend(e, qq);
440
+})(this);

+ 43
- 0
assets/js/main.js View File

@@ -0,0 +1,43 @@
1
+
2
+function init_map(){
3
+	let map = L.map('map', {scrollWheelZoom: false}).setView([-36.8762668, 174.7325985], 16);
4
+
5
+	L.tileLayer('https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png', {
6
+		attribution: '&copy; <a href="https://www.openstreetmap.org/copyright">OpenStreetMap</a> contributors'
7
+	}).addTo(map);
8
+	
9
+	
10
+	L.marker([-36.8762668, 174.7325985]).addTo(map).bindPopup('31B Taylors Road, Morningside, Auckland 1025').openPopup();
11
+}
12
+
13
+e(function(){
14
+	init_map();
15
+	e('.service').listen('click', function(evt){
16
+		let targetElement = evt.target;
17
+		let failSafe = 0;
18
+
19
+		if(e(targetElement).hasClass('contactLink')) return;
20
+
21
+		while(!e(targetElement).hasClass('service') && (failSafe < 5)){
22
+			targetElement = targetElement.parentNode;
23
+			failSafe++;
24
+		}
25
+		if(failSafe == 5) return;
26
+		targetElement = e(targetElement);
27
+
28
+		let isActive = targetElement.hasClass('active');
29
+
30
+		let serviceElements = e('.service');
31
+		for(let i = 0; i < 4; i++){
32
+			let current = e(serviceElements[i]);
33
+			if(current.hasClass('active')) current.removeClass('active');
34
+		}
35
+		
36
+		if(isActive)
37
+			targetElement.removeClass('active');	
38
+		else {
39
+			targetElement.addClass('active');
40
+			window.location.hash = "#wwd";
41
+		}
42
+	});
43
+});

+ 215
- 0
index.html View File

@@ -0,0 +1,215 @@
1
+<!DOCTYPE html>
2
+<html lang='en'>
3
+
4
+<head>
5
+	<title>LM Control | Switchboards & Control Panels</title>
6
+	<meta charset="UTF-8">
7
+	<meta name="viewport" content="width=device-width, initial-scale=1">
8
+	<meta property="og:description" content="LM Control | Switchboards & Control Panels"/>
9
+	<link href="assets/css/main.css" rel="stylesheet">
10
+
11
+	<link rel="stylesheet" href="https://unpkg.com/leaflet@1.6.0/dist/leaflet.css"
12
+   integrity="sha512-xwE/Az9zrjBIphAcBb3F6JVqxf46+CDLwfLMHloNu6KEQCAWi6HcDUbeOfBIptF7tcCzusKFjFw2yuvEpDL9wQ=="
13
+   crossorigin=""/>
14
+
15
+</head>
16
+
17
+<body>
18
+	<script type="text/javascript">
19
+		if(navigator.appName.indexOf("Internet Explorer")!=-1 || navigator.userAgent.match(/Trident.*rv[ :]*11\./)){
20
+		   window.location = "http://ancient.lmc.co.nz";
21
+		}
22
+	</script>
23
+
24
+	<nav>
25
+		<div class="logo"></div>
26
+		<div class="links">
27
+			<a href="#">Home</a> 
28
+			<a href="#wwd">Services</a> 
29
+			<a href="#au">About us</a> 
30
+			<a href="#cu">Contact us</a> 
31
+		</div>
32
+		<div class="blank"></div>
33
+	</nav>
34
+
35
+	<section id="content">
36
+		<div id="banner">
37
+			<span id="bannerTxt">LM Control will design and build the best solution for your control panel and switchboard needs, and provide you with excellent service every step of the way.</span>
38
+			<div id="quickInfo">
39
+				<span>Street address:</span>
40
+				<p>
41
+   					31 Taylors Road<br>
42
+   					Morningside<br>
43
+					Auckland 1025
44
+				</p>
45
+				<p>
46
+					<a href="tel:098496374" class="coolLookingBox landline">09 849 6374</a>
47
+					<a href="tel:021849634" class="coolLookingBox mobile">021 849 634</a>
48
+					<a href="mailto:info@lmc.co.nz" class="coolLookingBox email">info@lmc.co.nz</a>
49
+				</p>
50
+			</div>
51
+		</div>
52
+		
53
+		<div class="container" id="wwd">
54
+			<h1>What we do</h1>
55
+			(Click to expand)
56
+			<div class="row">
57
+				<div class="service">
58
+					<div class="image pc">
59
+						<div class="discription">
60
+							<h2>Process Control</h2>
61
+							<span>Extensive experience in PLC, motor control and automation design and manufacturing means we know the importance of designing and building PLC panels that have efficient layouts.  This allows for future changes and additions.</span>
62
+							<h2>Process control services</h2>
63
+							<span>We build PLC, motor control and automation control panels for:</span>
64
+							<ul>
65
+								<li>Pumping equipment</li>
66
+								<li>Process machinery</li>
67
+								<li>Pneumatic equipment</li>
68
+								<li>Large integrated systems</li>
69
+								<li>Manufacturing and packaging control systems</li>
70
+								<li>Motor starting</li>
71
+								<li>Food industry machinery</li>
72
+								<li>Motor control centres</li>
73
+							</ul>
74
+
75
+							<span><a class="contactLink" href="mailto:info@lmc.co.nz">Contact us</a> to find out how we can meet your process control needs!</span>
76
+						</div>
77
+					</div>
78
+					<h1>Process Control</h1>
79
+				</div>
80
+
81
+				<div class="service">
82
+					<div class="image pd">
83
+						<div class="discription">
84
+							<h2>Power Distribution Systems & Switchboards</h2>
85
+							<span>You are assured of quality power distribution systems / switchboards that are well made, fully tested and work correctly.</span>
86
+							<span>This level of care and attention applies to all of our power distribution switchboard work, which specialises in low voltage switchboards that are used in the following:</span>
87
+							<ul>
88
+								<li>Power distribution systems</li>
89
+								<li>Lighting control</li>
90
+								<li>Electricity retailer metering</li>
91
+								<li>Power factor correction</li>
92
+								<li>Heating and air conditioning control systems.</li>
93
+							</ul>
94
+							<span><a class="contactLink" href="mailto:info@lmc.co.nz">Contact us</a> to find out how we can meet your switchboards & distribution system needs!</span>
95
+						</div>
96
+					</div>
97
+					<h1>Power distribution</h1>
98
+				</div>
99
+
100
+				<div class="service">
101
+					<div class="image hvac">
102
+						<div class="discription">
103
+							<h2>HVAC control panels</h2>
104
+							<span>We are experts in designing and manufacturing HVAC control panels for dedicated building services control systems that are used in the following applications:</span>
105
+							<ul>
106
+								<li>Large commercial and industrial buildings</li>
107
+								<li>Factories</li>
108
+								<li>Warehouses</li>
109
+								<li>High-rise apartments</li>
110
+								<li>Offices</li>
111
+								<li>Retail outlets</li>
112
+							</ul>
113
+
114
+							<h2>HVAC control panels for building services control systems</h2>
115
+							<span>LM Control designs and manufactures HVAC control panels for building services control systems, such as:</span>
116
+							<ul>
117
+								<li>Heating</li>
118
+								<li>Ventilation</li>
119
+								<li>Air conditioning</li>
120
+								<li>Lighting</li>
121
+								<li>Security</li>
122
+							</ul>
123
+							<span><a class="contactLink" href="mailto:info@lmc.co.nz">Contact us</a> to find out how we can meet your HVAC needs!</span>
124
+						</div>
125
+					</div>
126
+					<h1>HVAC</h1>
127
+				</div>
128
+
129
+				<div class="service">
130
+					<div class="image pcs">
131
+						<div class="discription">
132
+							<h2>Pump control systems</h2>
133
+							<span>We are experienced designers and manufacturers of pump control systems ranging from single small pumps, to large pump stations.</span>
134
+							<span>We also supply custom fabricated cabinets and outdoor control pillars.</span>
135
+							<h2>Pump control system applications</h2>
136
+							<span>Our pump controls are used in the following applications:</span>
137
+							<ul>
138
+								<li>Pump stations</li>
139
+								<li>Fire pumps</li>
140
+								<li>Sump pumps</li>
141
+								<li>Header tank pumps</li>
142
+								<li>Level control pumps</li>
143
+								<li>Stormwater and sewerage pumps.</li>
144
+							</ul>
145
+							<span><a class="contactLink" href="mailto:info@lmc.co.nz">Contact us</a> to find out how we can meet your pump control system needs!</span>
146
+						</div>
147
+					</div>
148
+					<h1>Pump control systems</h1>
149
+				</div>
150
+			</div>
151
+		</div>
152
+
153
+		<div class="divider div-transparent"></div>
154
+
155
+		<div class="container" id="au">
156
+			<h1>About us</h1>
157
+			<p>If you are looking for a highly experienced power distribution system and switchboard designer and manufacturer, then you have come to the right place.</p>
158
+			<p>LM Control’s founder Don McLean established the company in 1993, building panels ranging from small distribution to large main switchboards, power factor correction units, power retailer metering and control panels.</p>
159
+			<p>Over the years&nbsp;the team’s&nbsp;focus has widened to also include motor control, HVAC control and PLC / automation panels (e.g. fire pump panels, panels for pneumatic systems and machine automation).</p>
160
+			<p>We have been commissioned to do work in a wide range of sectors, with jobs including:</p>
161
+			<ul style="text-align: start;">
162
+				<li>Control systems for airports all around the world</li>
163
+				<li>HVAC controls: for many buildings at Auckland University, Eden Park’s South Stand upgrade, UNITEC building upgrades</li>
164
+				<li>Building a large number of PLC and field panels for DB Berweries’ Otahuhu brewery</li>
165
+				<li>Refurbishing motor starter units for Bluescope Steels’ Glenbrook steelmill</li>
166
+				<li>Building 50VDC distribution components for Telecom exchanges</li>
167
+				<li>Motor starter control panels for fire pump sprinkler systems.</li>
168
+			</ul>
169
+			<p>We are a power distribution system / switchboard / control panel manufacturer in Auckland who works with clients in Auckland, New Zealand and internationally.</p>
170
+			<p>The LM Controls team is committed to providing customers with a personal service. Click <a href="mailto:info@lmc.co.nz">here</a> to contact us for a no-obligations quote.</p>
171
+		</div>
172
+
173
+		<div class="divider div-transparent"></div>
174
+
175
+		<div class="container" id="cu">
176
+			<h1>Where are we?</h1>
177
+			<div id="map"></div>
178
+			<div class="contactBox">
179
+				<div class="infoContainer">
180
+					<p>
181
+						<a href="tel:098496374" class="coolLookingBox landline">09 849 6374</a>
182
+						<a href="tel:021849634" class="coolLookingBox mobile">021 849 634</a>
183
+						<a href="mailto:info@lmc.co.nz" class="coolLookingBox email">info@lmc.co.nz</a>
184
+					</p>
185
+				</div>
186
+				<div class="infoContainer">
187
+					<span>Postal address:</span>
188
+					<p>
189
+						PO Box 10 011<br>
190
+						Dominion Road<br>
191
+						Auckland 1446
192
+					</p>
193
+				</div>
194
+
195
+			</div>
196
+		</div>
197
+		
198
+		<div class="container" id="gal">
199
+			<h1></h1>
200
+		</div>
201
+
202
+	</section>
203
+	
204
+	<footer></footer>
205
+
206
+	<script src="https://unpkg.com/leaflet@1.6.0/dist/leaflet.js"
207
+			integrity="sha512-gZwIG9x3wUXg2hdXF6+rVkLF/0Vi9U8D2Ntg4Ga5I5BZpVkVxlJWbSQtXPSiUTtC0TjtGOmxa1AJPuV0CPthew=="
208
+			crossorigin="">
209
+	</script>
210
+
211
+   <script src="assets/js/PreReq.js"></script>
212
+   <script src="assets/js/main.js"></script>
213
+   
214
+</body>
215
+</html>

Loading…
Cancel
Save