Subversion Repositories SmartDukaan

Rev

Rev 11494 | Rev 11734 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 11494 Rev 11733
Line 97... Line 97...
97
<body>
97
<body>
98
	<div id="container">
98
	<div id="container">
99
		<div  id="error-msg">
99
		<div  id="error-msg">
100
			<a id="error-anchor" href="<?php echo base_url();?>">Back To Home</a><br>
100
			<a id="error-anchor" href="<?php echo base_url();?>">Back To Home</a><br>
101
			<?php if(isset($saholicUrl) && !empty($saholicUrl)){?>
101
			<?php if(isset($saholicUrl) && !empty($saholicUrl)){?>
102
        <a href="<?php echo $saholicUrl;?>/?fullbrowser=true&utm_source=mobile_404_page">Try finding the page on our desktop site</a>
102
        <a onClick="_gaq.push(['_trackEvent', 'ErrorPage', 'Desktop Link Clicked', '<?php echo $saholicUrl;?>']);" href="<?php echo $saholicUrl;?>/?fullbrowser=true&utm_source=mobile_404_page">Try finding the page on our desktop site</a>
103
      <?php } ?>
103
      <?php } ?>
104
		</div>
104
		</div>
105
			
105
			
106
	</div>
106
	</div>
107
	<script>
107
	<script>
108
 
108
 
109
	var pheight = Math.max(document.documentElement.clientHeight, window.innerHeight || 0);
109
	var pheight = Math.max(document.documentElement.clientHeight, window.innerHeight || 0);
110
   	document.getElementById('error-msg').style.minHeight = pheight+'px';  
110
   	document.getElementById('error-msg').style.minHeight = pheight+'px';  
111
   	document.getElementById('error-anchor').style.marginTop = ((pheight/2)-5)+'px';
111
   	document.getElementById('error-anchor').style.marginTop = ((pheight/2)-5)+'px';
112
 
112
 
-
 
113
        _gaq.push(['_trackEvent', 'ErrorPage', '404 Page Loaded', '<?php echo $saholicUrl;?>']);
113
</script>
114
</script>
114
</body>
115
</body>
115
</html>
116
</html>