aboutsummaryrefslogtreecommitdiff
path: root/views/default/js/html5.php
diff options
context:
space:
mode:
Diffstat (limited to 'views/default/js/html5.php')
-rw-r--r--views/default/js/html5.php12
1 files changed, 12 insertions, 0 deletions
diff --git a/views/default/js/html5.php b/views/default/js/html5.php
new file mode 100644
index 000000000..ba2a517d9
--- /dev/null
+++ b/views/default/js/html5.php
@@ -0,0 +1,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>');
+}