Repo for non destructive e-scooter intervention materials
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

96 lines
35 KiB

4 years ago
jQuery(function($) {
var top_100_english_words = ["Amount", "Argument", "Art", "Be", "Beautiful", "Belief", "Cause", "Certain", "Chance", "Change", "Clear", "Common", "Comparison", "Condition", "Connection", "Copy", "Decision", "Degree", "Desire", "Development", "Different", "Do", "Education", "End", "Event", "Examples", "Existence", "Experience", "Fact", "Fear", "Feeling", "Fiction", "Force", "Form", "Free", "General", "Get", "Give", "Good", "Government", "Happy", "Have", "History", "Idea", "Important", "Interest", "Knowledge", "Law", "Let", "Level", "Living", "Love", "Make", "Material", "Measure", "Mind", "Motion", "Name", "Nation", "Natural", "Necessary", "Normal", "Number", "Observation", "Opposite", "Order", "Organization", "Part", "Place", "Pleasure", "Possible", "Power", "Probable", "Property", "Purpose", "Quality", "Question", "Reason", "Relation", "Representative", "Respect", "Responsible", "Right", "Same", "Say", "Science", "See", "Seem", "Sense", "Sign", "Simple", "Society", "Sort", "Special", "Substance", "Thing", "Thought", "True", "Use", "Way", "Wise", "Word", "Work"];
var vocab_top_1000 = ["consider","minute","accord","evident","practice","intend","concern","commit","issue","approach","establish","utter","conduct","engage","obtain","scarce","policy","straight","stock","apparent","property","fancy","concept","court","appoint","passage","vain","instance","coast","project","commission","constant","circumstances","constitute","level","affect","institute","render","appeal","generate","theory","range","campaign","league","labor","confer","grant","dwell","entertain","contract","earnest","yield","wander","insist","knight","convince","inspire","convention","skill","harry","financial","reflect","novel","furnish","compel","venture","territory","temper","bent","intimate","undertake","majority","assert","crew","chamber","humble","scheme","keen","liberal","despair","tide","attitude","justify","flag","merit","manifest","notion","scale","formal","resource","persist","contempt","tour","plead","weigh","mode","distinction","inclined","attribute","exert","oppress","contend","stake","toil","perish","disposition","rail","cardinal","boast","advocate","bestow","allege","notwithstanding","lofty","multitude","steep","heed","modest","partial","apt","esteem","credible","provoke","tread","ascertain","fare","cede","perpetual","decree","contrive","derived","elaborate","substantial","frontier","facile","cite","warrant","sob","rider","dense","afflict","flourish","ordain","pious","vex","gravity","suspended","conspicuous","retort","jet","bolt","assent","purse","plus","sanction","proceeding","exalt","siege","malice","extravagant","wax","throng","venerate","assail","sublime","exploit","exertion","kindle","endow","imposed","humiliate","suffrage","ensue","brook","gale","muse","satire","intrigue","indication","dispatch","cower","wont","tract","canon","impel","latitude","vacate","undertaking","slay","predecessor","delicacy","forsake","beseech","philosophical","grove","frustrate","illustrious","device","pomp","entreat","impart","propriety","consecrate","proceeds","fathom","objective","clad","partisan","faction","contrived","venerable","restrained","besiege","manifestation","rebuke","insurgent","rhetoric","scrupulous","ratify","stump","discreet","imposing","wistful","mortify","ripple","premise","subside","adverse","caprice","muster","comprehensive","accede","fervent","cohere","tribunal","austere","recovering","stratum","conscientious","arbitrary","exasperate","conjure","ominous","edifice","elude","pervade","foster","admonish","repeal","retiring","incidental","acquiesce","slew","usurp","sentinel","precision","depose","wanton","odium","precept","deference","fray","candid","enduring","impertinent","bland","insinuate","nominal","suppliant","languid","rave","monetary","headlong","infallible","coax","explicate","gaunt","morbid","ranging","pacify","pastoral","dogged","ebb","aide","appease","stipulate","recourse","constrained","bate","aversion","conceit","loath","rampart","extort","tarry","perpetrate","decorum","luxuriant","cant","enjoin","avarice","edict","disconcert","symmetry","capitulate","arbitrate","cleave","append","visage","horde","parable","chastise","foil","veritable","grapple","gentry","pall","maxim","projection","prowess","dingy","semblance","tout","fortitude","asunder","rout","staid","beguile","purport","deprave","bequeath","enigma","assiduous","vassal","quail","outskirts","bulwark","swerve","gird","betrothed","prospective","advert","peremptory","rudiment","deduce","halting","ignominy","ideology","pallid","chagrin","obtrude","audacious","construe","ford","repast","stint","fresco","dutiful","hew","parity","affable","interminable","pillage","foreboding","rend","livelihood","deign","capricious","stupendous","chaff","innate","reverie","wrangle","crevice","ostensible","craven","vestige","plumb","reticent","propensity","chide","espouse","raiment","intrepid","seemly","allay","fitful","erode","unaffected","canto","docile","patronize","teem","estrange","spat","warble","mien","sate","constituency","patrician","parry","practitioner","ravel","infest","actuate","surly","convalesce","demoralize","devolve","alacrity","waive","unwonted"
var top_1000_nouns = ["time", "way", "year", "work", "government", "day", "man", "world", "life", "part", "house", "course", "case", "system", "place", "end", "group", "company", "party", "information", "school", "fact", "money", "point", "example", "state", "business", "night", "area", "water", "thing", "family", "head", "hand", "order", "john", "side", "home", "development", "week", "power", "country", "council", "use", "service", "room", "market", "problem", "court", "lot", "a", "war", "police", "interest", "car", "law", "road", "form", "face", "education", "policy", "research", "sort", "office", "body", "person", "health", "mother", "question", "period", "name", "book", "level", "child", "control", "society", "minister", "view", "door", "line", "community", "south", "city", "god", "father", "centre", "effect", "staff", "position", "kind", "job", "woman", "action", "management", "act", "process", "north", "age", "evidence", "idea", "west", "support", "moment", "sense", "report", "mind", "church", "morning", "death", "change", "industry", "land", "care", "century", "range", "table", "back", "trade", "history", "study", "street", "committee", "rate", "word", "food", "language", "experience", "result", "team", "other", "sir", "section", "programme", "air", "authority", "role", "reason", "price", "town", "class", "nature", "subject", "department", "union", "bank", "member", "value", "need", "east", "practice", "type", "paper", "date", "decision", "figure", "right", "wife", "president", "university", "friend", "club", "quality", "voice", "lord", "stage", "king", "us", "situation", "light", "tax", "production", "march", "secretary", "art", "board", "may", "hospital", "month", "music", "cost", "field", "award", "issue", "bed", "project", "chapter", "girl", "game", "amount", "basis", "knowledge", "approach", "series", "love", "top", "news", "front", "future", "manager", "account", "computer", "security", "rest", "labour", "structure", "hair", "bill", "heart", "force", "attention", "movement", "success", "letter", "agreement", "capital", "analysis", "population", "environment", "performance", "model", "material", "theory", "growth", "fire", "chance", "boy", "relationship", "son", "sea", "record", "size", "property", "space", "term", "director", "plan", "behaviour", "treatment", "energy", "st", "peter", "income", "cup", "scheme", "design", "response", "association", "choice", "pressure", "hall", "couple", "technology", "defence", "list", "chairman", "loss", "activity", "contract", "county", "wall", "paul", "difference", "army", "hotel", "sun", "product", "summer", "set", "village", "colour", "floor", "season", "unit", "park", "hour", "investment", "test", "garden", "husband", "employment", "style", "science", "look", "deal", "charge", "help", "economy", "new", "page", "risk", "advice", "event", "picture", "commission", "fish", "college", "oil", "doctor", "opportunity", "film", "conference", "operation", "application", "press", "extent", "addition", "station", "window", "shop", "access", "region", "doubt", "majority", "degree", "television", "blood", "statement", "sound", "election", "parliament", "site", "mark", "importance", "title", "species", "increase", "return", "concern", "public", "competition", "software", "glass", "lady", "answer", "earth", "daughter", "purpose", "responsibility", "leader", "river", "eye", "ability", "appeal", "opposition", "campaign", "respect", "task", "instance", "sale", "whole", "officer", "method", "division", "source", "piece", "pattern", "lack", "disease", "equipment", "surface", "oxford", "demand", "post", "mouth", "radio", "provision", "attempt", "sector", "firm", "status", "peace", "variety", "teacher", "show", "speaker", "baby", "arm", "base", "miss", "safety", "trouble", "culture", "direction", "context", "character", "box", "discussion", "past", "weight", "organisation", "start", "brother", "league", "condition", "machine", "argument", "sex", "budget", "english", "transport", "share", "mum", "cash", "principle", "exchange", "aid", "library", "version", "rule", "tea", "balance", "afternoon
var top_1000_adjectives = ["strange", "terrible", "chainlike", "convivial", "fan-leafed", "affordable", "popular", "fabulous", "irritating", "shiny", "comforted", "wonderful", "skillful", "average", "exceptionable", "arrogant", "lazy", "biting", "wasteful", "respectful", "gorgeous", "vicious", "ferocious", "good-for-nothing", "loving", "cheery", "orange", "illogical", "stoic", "vast", "cloven-hoofed", "course", "childlike", "splendid", "hushed", "soulful", "persnickety", "soft", "all-devouring", "black", "well-behaved", "comfortless", "great", "furry", "crease-resistant", "reclusive", "artificial", "persistent", "slight", "closed in", "crushing", "scary", "certifiable", "lithe", "hard", "content", "faint", "pretend", "poor", "famous", "impressionable", "fervent", "small", "creative", "vivid", "hope", "helpful", "bloody", "heated up", "joyous", "painstaking", "fragile", "quickest", "self-assured", "sensitive", "slippery", "unassuming", "emotional", "passive", "center", "swift", "volcanic", "reliable", "squeamish", "elated", "resonant", "scrawny", "deviant", "striped", "diplomatic", "sneaky", "misty", "believing", "easy", "breeze", "fanlike", "hilarious", "fainthearted", "good", "slimy", "borderline", "odd", "snobby", "even-tempered", "snazzy", "disguised", "moronic", "meticulous", "central american", "rotten", "blindfolded", "orderly", "credulous", "unpopular", "many", "misbehaving", "gleaming", "maternal", "divine", "all-night", "cheering", "narrow", "fresh", "awesome", "glued", "industrious", "moonlit", "calm", "chivalrous", "composed", "twisted", "lame", "sincere", "distinct", "muddy", "cheerful", "likeable", "efficient", "thoughtless", "jolly", "short", "optimistic", "frank", "haunted", "drugged", "unthinking", "horrible", "impressive", "late", "excellent", "difficult", "hesitant", "quick", "barbaric", "ordinary", "chintzy", "glutinous", "bungling", "restless", "stupid", "motivated", "silly", "demoralized", "healing", "mighty", "head-on", "curly", "artistic", "ugliest", "immodest", "dangerous", "hysterical", "shrill", "broad-minded", "annoyed", "coal-fired", "morose", "brokenhearted", "resourceful", "boiling", "shallow", "honorable", "distant", "condescending", "deadpan", "angry", "brainy", "evil", "free", "green", "bitter", "fluffy", "vigilant", "husky", "disturbed", "inspiring", "prudent", "outrageous", "dowdy", "gregarious", "spine-chilling", "steady", "hawaiian", "sympathetic", "distrustful", "incisive", "blessed", "unsure", "sophisticated", "instinctive", "bean-shaped", "half-dozen", "ratty", "grouchy", "coincidental", "well-respected", "itchy", "keen", "dark", "hypercritical", "lively", "exclusive", "chilly", "dry", "icy", "high", "clenched", "annoying", "independent", "pokey", "super", "dramatic", "heavy", "logical", "above average", "shaggy", "irresistible", "high-priced", "testy", "genuine", "eager", "sullen", "fair-minded", "stable", "attracted", "patient", "tricky", "involved", "ghostly", "wary", "healthy", "experienced", "pensive", "squealing", "cool", "flashy", "kooky", "dated", "different", "uninterested", "cheesy", "moody", "greasy", "smelly", "bare-ass", "homely", "stormy", "disappointed", "disagreeable", "bad", "engrossed", "witty", "caustic", "timid", "flowing", "clever", "proud", "knowledgeable", "doubtful", "productive", "early", "eye-deceiving", "appreciative", "hearty", "grubby", "grade-appropriate", "polite", "dainty", "endurable", "empowering", "stern", "grave", "cautious", "inquisitive", "shrewd", "bored", "disruptive", "weak", "idiotic", "low", "unreliable", "unguarded", "deaf-and-dumb", "assertive", "boisterous", "hardheaded", "unbalanced", "cooperative", "agreeable", "steep", "shocking", "persevering", "quick-tempered", "elderly", "rough", "hungry", "repulsive", "kind", "striking", "ostentatious", "dark-gray", "expectant", "grotesque", "monster", "reserved", "extreme", "modest", "leery", "placid", "ashamed", "sentimental", "ridiculous", "incompetent", "chicken", "happy-go-lucky", "weary", "mushy", "dusty", "quick-witted", "enterprising", "insensitive", "spontaneous", "steadfast", "mammoth"
function shuffle(array) {
var tmp, current, top = array.length;
if(top) while(--top) {
current = Math.floor(Math.random() * (top + 1));
tmp = array[current];
array[current] = array[top];
array[top] = tmp;
}
return array;
}
// setInterval(function() {
// $("#left").text(top_1000_nouns[Math.floor(Math.random() * top_1000_nouns.length)]);
// }, 3000);
var words = shuffle(top_1000_nouns);
// words.unshift("Hello");
var text = document.querySelector("#left");
var colors = ["blue", "green", "yellow", "red"];
// Generator (iterate from 0-3)
function* generator() {
var index = 0;
while (true) {
yield index++;
if (index > top_1000_nouns.length) {
index = 0;
}
}
}
// Printing effect
function printChar(word) {
let i = 0;
text.innerHTML = "";
let id = setInterval(() => {
if (i >= word.length) {
clearInterval(id);
setTimeout(() => {
// $("<span class='fixed'>"+ $("#left").text() + " Capitalism</span>").css({
// top: Math.floor(Math.random() * $(window).height()),
// left: Math.floor(Math.random() * $(window).width())
// }).appendTo($("body"));
deleteChar();
if($("body").hasClass("bw")) {
$("body").removeClass("bw");
} else {
$("body").addClass("bw");
}
}, 2500);
} else {
text.innerHTML += word[i];
i++;
}
}, Math.floor(Math.random() * 200)+100);
}
// Deleting effect
function deleteChar() {
let word = text.innerHTML;
let i = word.length - 1;
let id = setInterval(() => {
if (i >= 0) {
text.innerHTML = text.innerHTML.substring(0, text.innerHTML.length - 1);
i--;
} else {
printChar(words[gen.next().value]);
clearInterval(id);
}
}, Math.floor(Math.random() * 100)+100);
}
// Initializing generator
let gen = generator();
printChar(words[gen.next().value]);
});