diff --git a/public_html/app.js b/public_html/app.js index b1e087b..d7ab596 100644 --- a/public_html/app.js +++ b/public_html/app.js @@ -1,12 +1,23 @@ //for debugging console.log('Im in your console. Inspect Element > Console.'); +$(document).ready(function () { + //for debugging + console.log('DOM loaded!. Inspect Element > Console.'); //wait for HTML to finish downloading document.addEventListener("DOMContentLoaded", function(){ + // 1) use an Effect + // https://learn.jquery.com/effects/intro-to-effects/ + // Hide or Show + // https://www.w3schools.com/jquery/jquery_hide_show.asp + // Grab the intro element and add some simple text dynamically // https://developer.mozilla.org/en-US/docs/Web/API/Document/getElementById var introElem = document.getElementById('intro'); + // 2) Dynamically set CSS using JQuery + // https://learn.jquery.com/using-jquery-core/css-styling-dimensions/ + // Put some text in there introElem.textContent = "Hi. I'm in here. "; @@ -15,6 +26,8 @@ document.addEventListener("DOMContentLoaded", function(){ //debug out to the console console.log(introElem); +// Code Academy intro to JQuery + // https://www.codecademy.com/learn/learn-jquery // // Run the function below that will detect mousemovements in the Navigation area @@ -36,3 +49,4 @@ function logMouseOut() { var m = document.getElementById('mousy'); m.innerHTML = 'MOUSE OUT detected'; } +}); \ No newline at end of file diff --git a/public_html/index.html b/public_html/index.html index 0ffdce0..86e3102 100644 --- a/public_html/index.html +++ b/public_html/index.html @@ -1,93 +1,97 @@
- - - + +