From 9a94b3ba68d0103315617526d2fd33eeee714712 Mon Sep 17 00:00:00 2001 From: Sophia Date: Thu, 16 Jan 2020 10:53:20 -0800 Subject: [PATCH 1/2] added Javascript --- static/css/introHCI.css | 11 +++++++++- static/index.html | 45 ++++++++++++++++++++++++----------------- 2 files changed, 37 insertions(+), 19 deletions(-) diff --git a/static/css/introHCI.css b/static/css/introHCI.css index 04dbf74..898b0ea 100644 --- a/static/css/introHCI.css +++ b/static/css/introHCI.css @@ -31,4 +31,13 @@ body { right: 0; position: absolute; z-index: -1; -} \ No newline at end of file +} +p{ + font-variant:small-caps; +} +.project p{ + font-variant: small-caps; +} +#project1{ + font-variant: small-caps; +} diff --git a/static/index.html b/static/index.html index ddb0aed..32614b9 100644 --- a/static/index.html +++ b/static/index.html @@ -5,6 +5,10 @@ HCI Project Portfolio + + + + @@ -18,12 +22,13 @@ -
+
-
+

Michael Bernstein

human-computer interaction · social computing · crowdsourcing

+
@@ -32,53 +37,57 @@

Projects

+ + + + From 0d058b358f931431c43fd05696dd7fd5e91c9f3d Mon Sep 17 00:00:00 2001 From: Sophia Date: Thu, 23 Jan 2020 09:12:12 -0800 Subject: [PATCH 2/2] adding Javascript! --- static/index.html | 3 +-- static/js/introHCI.js | 12 ++++++++++++ 2 files changed, 13 insertions(+), 2 deletions(-) diff --git a/static/index.html b/static/index.html index 32614b9..28e9a2b 100644 --- a/static/index.html +++ b/static/index.html @@ -8,8 +8,6 @@ - - @@ -89,5 +87,6 @@

Projects

+ diff --git a/static/js/introHCI.js b/static/js/introHCI.js index ae53a40..969e0a6 100644 --- a/static/js/introHCI.js +++ b/static/js/introHCI.js @@ -6,4 +6,16 @@ function initializePage() { $('#testjs').click(function(e) { $('.jumbotron h1').text("Javascript is connected"); }); + $("a.thumbnail").click(projectClick); + function projectClick(e) { + + // prevent the page from reloading + + e.preventDefault(); + // In an event handler, $(this) refers to + + // the object that triggered the event + + $(this).css("background-color", "#7fff00"); +} }