Created
April 10, 2010 01:08
-
-
Save markmarkoh/361744 to your computer and use it in GitHub Desktop.
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
//Custom javascript must be self-executing. | |
// Valid Example: | |
document.body.getElementById("feature_box").innerHTML = "Treatment Text"; | |
document.body.getElementById("feature_sub_box").innerHTML = "Split Test"; | |
//Valid Example: | |
function change(str) { | |
document.body.getElementById("feature_box").innerHTML = str; | |
} | |
change("Treatment Text"); | |
//Invalid Example: | |
//Lacks call to change() | |
function change(str) { | |
document.body.getElementById("feature_box").innerHTML = str; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment