1
+ <!DOCTYPE html>
2
+
3
+ <!--
4
+ This is an HTML document. It contains information about how elements in the website
5
+ are arranged. In other words, it describes the layout of a website.
6
+
7
+ I can't wait to see the resumes you put together!
8
+
9
+ Cameron Pittman, Udacity Course Developer
10
+ -->
11
+
12
+ <!--
13
+ The <head> of a website generally links to important resources the page will
14
+ need to load. You'll see a lot of <link>s to CSS files for styles and
15
+ <scripts> for JavaScript files to build interactions.
16
+ -->
17
+ < head >
18
+ < link href ="css/style.css " rel ="stylesheet " type ="text/css "> </ link >
19
+
20
+ <!--
21
+ jQuery is a common JavaScript library for reading and making changes to the
22
+ Document Object Model (DOM). The DOM is a tree that contains information
23
+ about what is actually visible on a website.
24
+
25
+ While HTML is a static document, the browser converts HTML to the
26
+ DOM and the DOM can change. In fact, JavaScript's power comes from
27
+ its ability to manipulate the DOM, which is essentially a JavaScript
28
+ object. When JavaScript makes something interesting happen on a
29
+ website, it's likely the action happened because JavaScript changed
30
+ the DOM. jQuery is fast and easy to use, but it doesn't do anything
31
+ you can't accomplish with vanilla (regular) JavaScript.
32
+ -->
33
+ < script src ="js/jQuery.js "> </ script >
34
+
35
+ <!-- More on helper.js in the class -->
36
+ < script src ="js/helper.js "> </ script >
37
+
38
+ <!--
39
+ Uncomment the <script> tag below when you're ready to add an interactive
40
+ Google Map to your resume!
41
+ -->
42
+ <!-- <script type="text/javascript" src="http://maps.googleapis.com/maps/api/js?libraries=places"></script> -->
43
+
44
+ < meta name ="viewport " content ="width=device-width ">
45
+ </ head >
46
+ < body unresolved >
47
+ < div id ="main ">
48
+ Hello world! <!-- You'll be deleting this line in the course -->
49
+
50
+ <!--
51
+ Everything from here to the <script> tag below is the skeleton of your
52
+ website. Your code will add information to each of the sections of the
53
+ resume below. You can pretty easily figure out what each section will
54
+ display by looking at the id or at what's written between the <h2> tags.
55
+ -->
56
+ < div id ="header " class ="center-content ">
57
+ < ul id ="topContacts " class ='flex-box '> </ ul >
58
+ </ div >
59
+ < div style ='clear: both; '> </ div >
60
+ < div id ="workExperience " class ='gray '>
61
+ < h2 > Work Experience</ h2 >
62
+ </ div >
63
+ < div id ="projects ">
64
+ < h2 > Projects</ h2 >
65
+ </ div >
66
+ < div id ="education " class ='gray '>
67
+ < h2 > Education</ h2 >
68
+ </ div >
69
+ < div id ="skillsChart ">
70
+ < h2 > Skills Chart</ h2 >
71
+ </ div >
72
+ < div id ="mapDiv ">
73
+ < h2 > Where I've Lived and Worked</ h2 >
74
+ </ div >
75
+ < div id ="letsConnect " class ='dark-gray '>
76
+ < h2 class ='orange center-text '> Let's Connect</ h2 >
77
+ < ul id ="footerContacts " class ="flex-box ">
78
+ </ ul >
79
+ </ div >
80
+ </ div >
81
+
82
+ <!--
83
+ The next line tells the browser where to download the JavaScript file you'll be
84
+ writing. In resumeBuilder.js, you'll be writing code that builds the resume
85
+ dynamically when this website, index.html, is opened.
86
+ -->
87
+ < script src ="js/resumeBuilder.js "> </ script >
88
+
89
+
90
+ <!--
91
+ These scripts are written in JavaScript. You'll be breaking them down as part of
92
+ a quiz. Essentially, the next few lines are checking to see if you have not
93
+ changed each section of the resume. If you have not made any changes to a section
94
+ of the resume, then that part of the resume does not show up. More on this in the
95
+ course.
96
+ -->
97
+
98
+ < script type ="text/javascript ">
99
+ // Notice how all of a sudden there's JavaScript inside this HTML
100
+ // document? You can write JavaScript between <script> tags. At the end of your
101
+ // JavaScript, don't forget the closing script tag with the slash (/).
102
+
103
+
104
+ // Also, this is a JavaScript style comment. You can comment in JavaScript with:
105
+
106
+ // two slashes for all following characters on a single line, or
107
+
108
+ /*
109
+ an opening and closing set of slash asterisks for block comments.
110
+ */
111
+
112
+
113
+ if ( document . getElementsByClassName ( "flex-item" ) . length === 0 ) {
114
+ document . getElementById ( "topContacts" ) . style . display = "none" ;
115
+ }
116
+ if ( document . getElementsByTagName ( "h1" ) . length === 0 ) {
117
+ document . getElementById ( "header" ) . style . display = "none" ;
118
+ }
119
+ if ( document . getElementsByClassName ( "work-entry" ) . length === 0 ) {
120
+ document . getElementById ( "workExperience" ) . style . display = "none" ;
121
+ }
122
+ if ( document . getElementsByClassName ( "project-entry" ) . length === 0 ) {
123
+ document . getElementById ( "projects" ) . style . display = "none" ;
124
+ }
125
+ if ( document . getElementsByClassName ( "education-entry" ) . length === 0 ) {
126
+ document . getElementById ( "education" ) . style . display = "none" ;
127
+ }
128
+ if ( document . getElementsByClassName ( "skills-entry" ) . length === 0 ) {
129
+ document . getElementById ( "skillsChart" ) . style . display = "none" ;
130
+ }
131
+ if ( document . getElementsByClassName ( "flex-item" ) . length === 0 ) {
132
+ document . getElementById ( "letsConnect" ) . style . display = "none" ;
133
+ }
134
+ if ( document . getElementById ( "map" ) == undefined ) {
135
+ document . getElementById ( "mapDiv" ) . style . display = "none" ;
136
+ }
137
+ </ script >
138
+ </ body >
0 commit comments