This file contains 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
ruleset a60x412 { | |
meta { | |
name "test-non-passed-parameter" | |
description << | |
test-non-passed-parameter | |
>> | |
author "Mike Grace" | |
logging on | |
} |
This file contains 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
$.ajax({ | |
dataType: "jsonp", | |
url: "http://api.stringbin.com/1/write?pin=t6BmN0Iw567L1MY&key=MikeGrace&value=creator", | |
success: function(data) { | |
$('body').append("<h1>Error Saving? "+data.error+"</h1>"); | |
} | |
}); |
This file contains 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
$.ajax({ | |
dataType: "jsonp", | |
url: "http://api.stringbin.com/1/read?pin=t6BmN0Iw567L1MY&key=MikeGrace", | |
success: function(data) { | |
$('body').append("<h1>String: "+data.string+"</h1>"); | |
} | |
}); |
This file contains 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
ruleset a60x301 { | |
meta { | |
name "js raise event pass data" | |
description << | |
js raise event pass data | |
>> | |
author "Mike Grace" | |
logging on | |
} |
This file contains 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
ruleset a60x307 { | |
meta { | |
name "see-through-overlay" | |
description << | |
see-through-overlay | |
>> | |
author "Mike Grace" | |
logging on | |
} |
This file contains 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
ruleset a60x295 { | |
meta { | |
name "use-external-resources" | |
description << | |
Pull in external CSS and JavaScript resources to be used by the app | |
>> | |
author "Mike Grace" | |
logging on | |
use javascript resource "http://dl.dropbox.com/u/1446072/tester.js" |
This file contains 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
ruleset a60x294 { | |
meta { | |
name "explicit-event-data-test" | |
description << | |
explicit-event-data-test | |
>> | |
author "Mike Grace" | |
logging on | |
} |
This file contains 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
function defaultParams(name, class, id) { | |
if (class == null) class = "CS 101 [default]"; | |
if (id == null) id = "Not yet set"; | |
return "Name: " + name + ", Class: " + class + ", ID: " + id; | |
} |
This file contains 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
ruleset a60x275 { | |
meta { | |
name "Set entity var on click event" | |
description << | |
- Testing to see how to set entity variables on KRL click events | |
- App can be run on different pages at different times and the click count will be saved | |
>> | |
author "Mike Grace" | |
logging on | |
} |
This file contains 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
test = [1,2,3,4,5]; | |
$K(test).each(function() { | |
console.log(this + 1); | |
}) |