From 994e8b801ec2d290ea96d5802516e9c7bf6dde45 Mon Sep 17 00:00:00 2001 From: Joshua Sigona Date: Tue, 21 May 2019 17:10:33 +0900 Subject: [PATCH] Added random HTML picker to script influencing the design of devOsan logo and mini logo. --- additionalScripts.js | 25 ++++++++++++++++++++++++- index.html | 2 +- styles.css | 4 ++-- 3 files changed, 27 insertions(+), 4 deletions(-) diff --git a/additionalScripts.js b/additionalScripts.js index 30a3f14..3af9c60 100644 --- a/additionalScripts.js +++ b/additionalScripts.js @@ -1,4 +1,27 @@ $(function(){ var navMain = $(".navbar-collapse"); navMain.on("click","a:not([data-toggle])",null,function(){navMain.collapse('hide');}); -}); \ No newline at end of file +}); + +var vals = [ + `

+ {dev}Osan +

+

Software Development Club

`, //Original + `

+ {dev}Osan +

+

Software Development Club

`, //By Sig +]; + +var vals2 = [ + `{dev}Osan`, //Original + `{dev}Osan`, //By Sig +]; + +window.onload=generateLogo(Math.floor(Math.random()*vals.length)); + +function generateLogo(numb) { + document.getElementById("devOsanLogo-dynamic").innerHTML=vals[numb]; + document.getElementById("devOsanMiniLogo-dynamic").innerHTML=vals2[numb]; +} \ No newline at end of file diff --git a/index.html b/index.html index 06fde4b..fddf78c 100644 --- a/index.html +++ b/index.html @@ -103,7 +103,7 @@
-
+

{dev}Osan

diff --git a/styles.css b/styles.css index ff8e711..70ef195 100644 --- a/styles.css +++ b/styles.css @@ -63,14 +63,14 @@ h1 { font-size: 5em; } -h1.devOsan{ +/*h1.devOsan{ text-shadow: 2px 2px 6px #AAFFAA; } a.devOsan{ text-shadow: 0px 0px 2px #AAFFAA; color:black; -} +}*/ h4.devOsan{ text-shadow: 1px 1px 3px white;