aboutsummaryrefslogtreecommitdiff
path: root/views/default/js/html5.php
blob: ba2a517d9572b8b4d113b44748c7ed22d10c3f8a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
<?php
global $CONFIG;

include $CONFIG->pluginspath.'html5/js/Modernizr-1.5.min.js';

$placeholder_script = $vars['url'].'mod/html5/js/jquery.placeholder-1.0.1.js';
?>

if (!Modernizr.input.placeholder) {
	$(function() { $('[placeholder]').placeholder({className:'html5-placeholder'}); });
	document.write('<script src="<?php echo $placeholder_script; ?>"></script>');
}