summaryrefslogtreecommitdiff
path: root/js
diff options
context:
space:
mode:
Diffstat (limited to 'js')
-rw-r--r--js/script.js18
-rwxr-xr-xjs/testimonials_script.js4
2 files changed, 20 insertions, 2 deletions
diff --git a/js/script.js b/js/script.js
new file mode 100644
index 0000000..fcb6a04
--- /dev/null
+++ b/js/script.js
@@ -0,0 +1,18 @@
+$("#txtSearchPage").keyup(function() {
+ var search = $(this).val();
+ $(".time-entry").show();
+ if (search)
+ $(".time-entry").not(":containsNoCase(" + search + ")").hide();
+});
+
+$.expr[":"].containsNoCase = function (el, i, m) {
+ var search = m[3];
+ if (!search) return false;
+ return new RegExp(search,"i").test($(el).text());
+};
+
+
+// jQuery Plug-in example
+$("#txtSearchPagePlugin")
+ .searchFilter({targetSelector: ".time-entry"})
+
diff --git a/js/testimonials_script.js b/js/testimonials_script.js
index ee425c5..0ab8a57 100755
--- a/js/testimonials_script.js
+++ b/js/testimonials_script.js
@@ -5,7 +5,7 @@ $(document).ready(function(){
(function showNextTestimonial(){
- $('#testimonials_front li:visible').delay(8000).fadeOut('slow',function(){
+ $('#testimonials_front li:visible').delay(12000).fadeOut('slow',function(){
$(this).appendTo('#testimonials_front ul');
if($(this).next().length > 0)
{
@@ -22,4 +22,4 @@ $(document).ready(function(){
});
})();
-}); \ No newline at end of file
+});