Created
October 11, 2016 05:18
-
-
Save ChuckJonas/e49117927ba9550f4dcafc792eed0a00 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
function setColor(){ | |
document.getElementById("greeting").className = "red"; | |
} |
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
<apex:page showHeader="false" sidebar="false" applyBodyTag="false"> | |
<header> | |
<apex:outputPanel layout="none" rendered="{!$Label.Toggle_Local_Dev == '1'}"> | |
<apex:stylesheet value="https://localhost:8080/statictesting.resource/styles.css"/> | |
</apex:outputPanel> | |
<apex:outputPanel layout="none" rendered="{!$Label.Toggle_Local_Dev != '1'}"> | |
<apex:stylesheet value="{!URLFOR($Resource.StaticTesting, 'styles.css')}"/> | |
</apex:outputPanel> | |
</header> | |
<body> | |
<div id='greeting'> | |
<h1 onclick="setColor();">Hello World</h1> | |
</div> | |
<apex:outputPanel layout="none" rendered="{!$Label.Toggle_Local_Dev == '1'}"> | |
<apex:includeScript value="https://localhost:8080/statictesting.resource/actions.js"/> | |
</apex:outputPanel> | |
<apex:outputPanel layout="none" rendered="{!$Label.Toggle_Local_Dev != '1'}"> | |
<apex:includeScript value="{!URLFOR($Resource.StaticTesting, 'actions.js')}"/> | |
</apex:outputPanel> | |
</body> | |
</apex:page> |
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
.red{ | |
color:red; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment