From 1ec7a366d19947e79e2a44c00fadafda5e39a71f Mon Sep 17 00:00:00 2001 From: sigonasr2 Date: Wed, 22 May 2019 12:02:33 +0900 Subject: [PATCH] Added random HTML picker script to influence the design of devOsan logo and mini logo at random. --- additionalScripts.js | 22 ++++++++++++++++++++++ index.html | 5 +++-- 2 files changed, 25 insertions(+), 2 deletions(-) create mode 100644 additionalScripts.js diff --git a/additionalScripts.js b/additionalScripts.js new file mode 100644 index 0000000..3a69739 --- /dev/null +++ b/additionalScripts.js @@ -0,0 +1,22 @@ +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 123ab17..da70a56 100644 --- a/index.html +++ b/index.html @@ -34,7 +34,7 @@
-
+

{dev +