Skip to content

Instantly share code, notes, and snippets.

Created July 17, 2013 06:54
Show Gist options
  • Save anonymous/6018218 to your computer and use it in GitHub Desktop.
Save anonymous/6018218 to your computer and use it in GitHub Desktop.
This is for Jeremy Thompson from Success Community!
<html>
<head>
<script type="text/javascript">
function hideReportCaption(){
var htmlElements = document.getElementsByTagName('h2');
for(var index=0; index<htmlElements.length; index++){
if(htmlElements[index].innerHTML=='Report'){
htmlElements[index].style.display='none';
}
}
}
function checkUserAndLoad(){
if(window.UserContext.userId!='005900000018c43'){
document.getElementById('report').style.display='none';
hideReportCaption();
}
else{
document.getElementById('report').style.display='';
}
}
</script>
</head>
<body>
<iframe id="report" src="/00O90000003w0yW?isdtp=mn" style="border:none; width:1024px; height:480px" onLoad="checkUserAndLoad()">
</iframe>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment