Created
February 3, 2016 14:41
-
-
Save neo22s/4cc4309c5f590110c321 to your computer and use it in GitHub Desktop.
itexcuses generator - https://chema.ga/it-excuses-generator/
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var a = new Array(10); | |
var b = new Array(10); | |
var c = new Array(10); | |
a[0] = "As soon as we fix the flood of resources "; | |
a[1] = "As soon as we have the tests "; | |
a[2] = "After we refactor the code "; | |
a[3] = "When we have the last bug fixed "; | |
a[4] = "When the installation problem it's solved "; | |
a[5] = "When we figure out why the process is down "; | |
a[6] = "As soon as we improve the performance "; | |
a[7] = "When we finish restoring "; | |
a[8] = "As soon as we install the latest patch "; | |
a[9] = "When we finish the implemetation "; | |
b[0] = " of the XML interface "; | |
b[1] = " from the system queue "; | |
b[2] = " of the buffer "; | |
b[3] = " from the management requirement "; | |
b[4] = " of the abstract classes "; | |
b[5] = " of the garbage collector "; | |
b[6] = " of the new version "; | |
b[7] = " from the cache "; | |
b[8] = " from the latest custom version "; | |
b[9] = " of the product converter "; | |
c[0] = " of the LDAP directory"; | |
c[1] = " from the JAVA Virtual Machine"; | |
c[2] = " of the proxy"; | |
c[3] = " from the cluster administrator"; | |
c[4] = " from the object broker"; | |
c[5] = " from the view layout"; | |
c[6] = " of the certified dispatcher"; | |
c[7] = " from the data base"; | |
c[8] = " of the secure server"; | |
c[9] = " from the transaction accelerator"; | |
function generateExcuse(){ | |
var ex1 = random_num = (Math.round((Math.random()*9))); | |
var ex2 = random_num = (Math.round((Math.random()*9))); | |
var ex3 = random_num = (Math.round((Math.random()*9))); | |
return a[ex1] + b[ex2] + c[ex3]; | |
} | |
function displayExcuse(){ | |
document.getElementById("display_excuse").innerHTML = generateExcuse(); | |
if(document.getElementById("display_excuse").style.display != "block") | |
document.getElementById("display_excuse").style.display = "block"; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment