X Tutup
Skip to content

Commit 39506b3

Browse files
adding lab files
1 parent 9e40da6 commit 39506b3

File tree

5 files changed

+147
-0
lines changed

5 files changed

+147
-0
lines changed

css/style.css

Lines changed: 118 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,118 @@
1+
/* ZipcodeWilmington 2015 */
2+
3+
/* ===================================== FONTS ========================================= */
4+
@import url(https://fonts.googleapis.com/css?family=Droid+Sans:400,700);
5+
6+
7+
/* ===================================== GLOBAL STYLE ========================================= */
8+
* {
9+
margin: 0;
10+
padding: 0;
11+
}
12+
13+
body { font: 14px/1.4 arial, sans-serif; background-color: #F5F5F5;);}
14+
15+
article, aside, figure, footer, header, nav, section { display: block; }
16+
a:link, a:visited {
17+
text-decoration: none;
18+
19+
color: inherit;
20+
}
21+
22+
a:hover, a:active {
23+
text-decoration: none;
24+
25+
color: inherit;
26+
}
27+
28+
.group:before,
29+
.group:after {
30+
content:"";
31+
display:table;
32+
}
33+
.group:after {
34+
clear:both;
35+
}
36+
.group {
37+
zoom:1; /* For IE 6/7 (trigger hasLayout) */
38+
}
39+
40+
#main:focus {
41+
outline: none;
42+
}
43+
44+
45+
/* ===================================== HEADER STYLE ========================================= */
46+
47+
.main-header {
48+
width: 100%;
49+
height: 150px;
50+
51+
background-color: #144e64;}
52+
53+
.main-header .title {
54+
float: left;
55+
text-transform: uppercase;
56+
57+
font-family: 'Droid Sans', sans-serif;
58+
font-weight: 400;
59+
font-size: 1em;
60+
61+
width: 55%;
62+
63+
padding-left: 5%;
64+
65+
color: #fff;
66+
67+
position: relative;
68+
top: 50%;
69+
transform: translateY(-50%);
70+
}
71+
72+
.main-header .zip-link {
73+
float: right;
74+
75+
width: 16%;
76+
height: 100%;
77+
78+
background-color: white;
79+
}
80+
81+
.main-header .lesson-link {
82+
float: right;
83+
84+
width: 16%;
85+
height: 100%;
86+
87+
background-color: #3c790a;
88+
}
89+
90+
.main-header div {
91+
/* fix blurriness of children due to them
92+
being placed on half pixels */
93+
-webkit-transform-style: preserve-3d;
94+
-moz-transform-style: preserve-3d;
95+
transform-style: preserve-3d;
96+
}
97+
98+
.main-header div img {
99+
display: block;
100+
101+
margin: auto;
102+
103+
width: 55%;
104+
105+
position: relative;
106+
top: 50%;
107+
transform: translateY(-50%);
108+
}
109+
110+
/* page styles */
111+
article {margin: 5%;}
112+
article p { margin-bottom: 20px;}
113+
section {margin: 5%;}
114+
h1 {font-weight: bold;}
115+
#result {border: 1px #aaa solid; padding:10px; height:30px; background:#eee;}
116+
117+
118+

images/logos/js_logo.png

5.69 KB
Loading

images/logos/spring_logo.png

10.7 KB
Loading

images/logos/zip_logo.jpg

57 KB
Loading

index.html

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
<!DOCTYPE html>
2+
<html lang="en">
3+
<head>
4+
<meta charset="UTF-8">
5+
<link href="./css/style.css" type="text/css" rel="stylesheet">
6+
<title>Morse Code Translator | Zipcode Wilmington</title>
7+
</head>
8+
<body>
9+
<header class="main-header group">
10+
<div class="title"><h1>Zipcode Wilmington<br>Javascript Lab - Spring 2016</h1></div>
11+
<div class="lesson-link"><img src="./images/logos/js_logo.png" alt="Javascript"/></div>
12+
<div class="zip-link"><img src="./images/logos/zip_logo.jpg" alt="Zipcode Wilmington"/></div>
13+
</header>
14+
15+
<article>
16+
<h1>Instructions</h1>
17+
<p>Write a program that converts English text to Morse code. Use <code>prompt()</code> to recieve user input and <code>conole.log()</code> to display output. Code using '.' for a dot, '-' or '_' for a dash, separating letters by spaces and words by '/' or '|'.</p>
18+
<p>The program should be able to convert strings consisting of A-Z, 0-9, and basic punctuation.</p>
19+
<p>Use <code>document.getElementById('result').innerHTML = <i>your_output</i>;</code> to write program output to page.</p>
20+
</article>
21+
22+
<section>
23+
<h1>Translation</h1>
24+
<div id="result"></div>
25+
</section>
26+
27+
<script type="text/javascript" src="js/morse.js"></script>
28+
</body>
29+
</html>

0 commit comments

Comments
 (0)
X Tutup