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
/* | |
js-mindmap | |
Copyright (c) 2008/09/10 Kenneth Kufluk http://kenneth.kufluk.com/ | |
MIT (X11) license | |
Permission is hereby granted, free of charge, to any person obtaining a copy | |
of this software and associated documentation files (the "Software"), to deal | |
in the Software without restriction, including without limitation the rights |
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 cats = ["cat1.jpg", "cat2.jpg", "cat3.jpg", "cat4.png"]; | |
var words = ["hello","world","lorem","ipsum"]; | |
for (var increment = 0; increment < 100; increment++) { | |
$("body").append('<div class="button"></div>'); | |
} | |
var randomCat = cats[Math.floor(Math.random()*4)]; |
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 cats = ["http://40.media.tumblr.com/dfb694a9441369587fa6fbace7f1300a/tumblr_nlhadzYa621qgn992o1_500.jpg","http://41.media.tumblr.com/e7d92bf9ff7e7bd6a398c21e1bd0eb2a/tumblr_nlhabwKYO11qgn992o1_500.jpg","http://41.media.tumblr.com/9a1f93e7a5574adbfdd8151c8848eced/tumblr_njvspjar0q1qgn992o1_500.jpg","http://40.media.tumblr.com/3e358654d9b38fea7dcffd686a3a9c90/tumblr_nhx1zlburL1qgn992o1_500.jpg","http://40.media.tumblr.com/61309db165a9712fa6338cb72d02c25c/tumblr_ngdoqcpnqm1qgn992o1_500.jpg"]; | |
var poems = ["Roses are red", "Violets are Blue", "Look out on the doorstep", "Oh my god, it's flaming poo"]; | |
var selectedpoem = false; | |
$(".go-button").click(function() { | |
var nextpoem = poems[Math.floor(Math.random()*poems.length)]; | |
while (selectedpoem == nextpoem) { |
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 cats = ["http://40.media.tumblr.com/dfb694a9441369587fa6fbace7f1300a/tumblr_nlhadzYa621qgn992o1_500.jpg","http://41.media.tumblr.com/e7d92bf9ff7e7bd6a398c21e1bd0eb2a/tumblr_nlhabwKYO11qgn992o1_500.jpg","http://41.media.tumblr.com/9a1f93e7a5574adbfdd8151c8848eced/tumblr_njvspjar0q1qgn992o1_500.jpg","http://40.media.tumblr.com/3e358654d9b38fea7dcffd686a3a9c90/tumblr_nhx1zlburL1qgn992o1_500.jpg","http://40.media.tumblr.com/61309db165a9712fa6338cb72d02c25c/tumblr_ngdoqcpnqm1qgn992o1_500.jpg"]; | |
var poems = ["Roses are red", "Violets are Blue", "Look out on the doorstep", "Oh my god, it's flaming poo"]; | |
var selectedpoem = false; | |
$(".go-button").click(function() { | |
var nextpoem = poems[Math.floor(Math.random()*poems.length)]; | |
while (selectedpoem == nextpoem) { |
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 dogs = ["http://i.imgur.com/UW8X8XR.jpg","http://i.imgur.com/IXQzsGR.jpg","http://i.imgur.com/MfzdrQY.jpg","http://i.imgur.com/EyzGE8U.jpg","http://i.imgur.com/4yh1FSM.jpg","http://i.imgur.com/JVExNi3.jpg","http://i.imgur.com/xMJj7xb.jpg"]; | |
var texts = ["Ne suavitate deterruisset pro, quo solum interpretaris ei.", "Qui ad omnes efficiendi, vis accusata referrentur cu.", "No ius tale rationibus, ut lorem probatus pri, nec in ferri mundi honestatis.", "Eam mollis viderer elaboraret id, no has sapientem tincidunt.", "Impedit blandit qui ut, cu duis putent sit.", "Mei diam nihil discere id."]; | |
$(".button").click(function() { | |
for (var increment = 0; increment < 100; increment++) { | |
$("body").append("<div class='dot'></div>"); | |
} |
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
console.log("hello world"); | |
for (var multiplier = 1; multiplier < 11; multiplier++) { | |
console.log(multiplier*6); | |
var star = "*"; | |
for (var i = 0; i < 20; i++) { | |
star = star + "*"; | |
console.log(star); | |
} | |
} |
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
<!doctype html> | |
<html> | |
<head> | |
<title>Core Interaction</title> | |
<link rel="stylesheet" href="assets/css/global.css"> | |
</head> | |
<body> | |
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
autoSizeText = function() { | |
var el, elements, _i, _len, _results; | |
elements = $('.inner'); | |
if (elements.length < 0) { | |
return; | |
} | |
_results = []; | |
for (_i = 0, _len = elements.length; _i < _len; _i++) { | |
el = elements[_i]; | |
_results.push((function(el) { |
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
autoSizeText = function() { | |
var el, elements, _i, _len, _results; | |
elements = $('.inner'); | |
if (elements.length < 0) { | |
return; | |
} | |
_results = []; | |
for (_i = 0, _len = elements.length; _i < _len; _i++) { | |
el = elements[_i]; | |
_results.push((function(el) { |
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
autoSizeText = function() { | |
var el, elements, _i, _len, _results; | |
elements = $('.inner'); | |
if (elements.length < 0) { | |
return; | |
} | |
_results = []; | |
for (_i = 0, _len = elements.length; _i < _len; _i++) { | |
el = elements[_i]; | |
_results.push((function(el) { |