1
|
/* $Id$ */
|
2
|
/*
|
3
|
ticker.js
|
4
|
Copyright (C) 2012 Marcello Coutinho
|
5
|
Copyright (C) 2012 Carlos Cesario - carloscesario@gmail.com
|
6
|
All rights reserved.
|
7
|
|
8
|
originally part of m0n0wall (http://m0n0.ch/wall)
|
9
|
Copyright (C) 2003-2004 Manuel Kasper <mk@neon1.net>.
|
10
|
All rights reserved.
|
11
|
|
12
|
Redistribution and use in source and binary forms, with or without
|
13
|
modification, are permitted provided that the following conditions are met:
|
14
|
|
15
|
1. Redistributions of source code must retain the above copyright notice,
|
16
|
this list of conditions and the following disclaimer.
|
17
|
|
18
|
2. Redistributions in binary form must reproduce the above copyright
|
19
|
notice, this list of conditions and the following disclaimer in the
|
20
|
documentation and/or other materials provided with the distribution.
|
21
|
|
22
|
THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES,
|
23
|
INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY
|
24
|
AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
|
25
|
AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY,
|
26
|
OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
|
27
|
SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
|
28
|
INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
|
29
|
CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
|
30
|
ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
31
|
POSSIBILITY OF SUCH DAMAGE.
|
32
|
|
33
|
pfSense_MODULE: utils
|
34
|
|
35
|
*/
|
36
|
function notice_action(action,msgid) {
|
37
|
jQuery.ajax({
|
38
|
type: 'post',
|
39
|
cache: false,
|
40
|
url: 'index.php',
|
41
|
data: {closenotice: msgid},
|
42
|
success: function(response) {
|
43
|
jQuery('#menu_messages').html(response);
|
44
|
}
|
45
|
});
|
46
|
}
|
47
|
|
48
|
function pulsateText(elem) {
|
49
|
jQuery(elem).effect("pulsate", { times:12 }, 500);
|
50
|
jQuery(elem).effect("pulsate", { times:6 }, 1500);
|
51
|
jQuery(elem).effect("pulsate", { times:3 }, 2500);
|
52
|
}
|
53
|
|
54
|
jQuery(document).ready(function() {
|
55
|
pulsateText('#marquee-text');
|
56
|
jQuery('#marquee-text a').hover(function () {
|
57
|
jQuery(this).css('cursor','pointer');
|
58
|
});
|
59
|
});
|
60
|
|
61
|
function alias_popup(alias_id,theme,loading) {
|
62
|
domTT_update('ttalias_'+alias_id,"<a><img src='/themes/"+theme+"/images/misc/loader.gif'>"+loading+"</a>");
|
63
|
jQuery.ajax({
|
64
|
type: 'post',
|
65
|
cache: false,
|
66
|
url: "/index.php",
|
67
|
data: {aliasid:alias_id, act:'alias_info_popup'},
|
68
|
success: function(response) {
|
69
|
//alert('<div>'+response.match(/<h1>.*<\/table>/i)+'<div>');
|
70
|
domTT_update('ttalias_'+alias_id,'<div>'+response.match(/<h1>.*<\/table>/i)+'<div>');
|
71
|
}
|
72
|
});
|
73
|
}
|