Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Finished!
  • Loading branch information
anb13035 committed Apr 3, 2018
1 parent bada691 commit 14d8899
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 1 deletion.
4 changes: 3 additions & 1 deletion css/main.css
Expand Up @@ -290,4 +290,6 @@ textarea {
}
}


img {
float: left;
}
2 changes: 2 additions & 0 deletions index.html
Expand Up @@ -19,6 +19,8 @@
<p class="browserupgrade">You are using an <strong>outdated</strong> browser. Please <a href="https://browsehappy.com/">upgrade your browser</a> to improve your experience and security.</p>
<![endif]-->

<h1 class="hidden" id="webProf">Web Design Professional!!! Yayyy!!</h1>

<div id="imageHolder">

</div>
Expand Down
12 changes: 12 additions & 0 deletions js/main.js
@@ -1,5 +1,6 @@
var myClasses = ["Scripting", "Compositing", "Narrative", "Exhibition", "Work"];
var imageHolder = document.querySelector ("#imageHolder");
var webProfHeader = document.querySelector ("#webProf");

function createImageOnPage(course) {
var singleImageHolder = document.createElement("div");
Expand All @@ -20,7 +21,18 @@ function createImageOnPage(course) {
imageHolder.appendChild(singleImageHolder);
}

function checkForProfessional() {
//search myClass array for "Scripting"

if ( (myClasses.indexOf("Scripting") != -1) && (myClasses.indexOf("Work") != -1) ) {
webProfHeader.classList.remove("hidden");
}
}

function loopThroughClasses () {

checkForProfessional();

for (var i=0; i<myClasses.length; i++) {

createImageOnPage(myClasses[i]);
Expand Down

0 comments on commit 14d8899

Please sign in to comment.