nagios-dashboard-sonian 0.0.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/.gitignore +8 -0
- data/Gemfile +3 -0
- data/MIT-LICENSE.txt +20 -0
- data/README.org +34 -0
- data/Rakefile +2 -0
- data/bin/nagios-dashboard +9 -0
- data/lib/nagios-dashboard/app.rb +159 -0
- data/lib/nagios-dashboard/static/css/style.css +103 -0
- data/lib/nagios-dashboard/static/fancybox/blank.gif +0 -0
- data/lib/nagios-dashboard/static/fancybox/fancy_close.png +0 -0
- data/lib/nagios-dashboard/static/fancybox/fancy_loading.png +0 -0
- data/lib/nagios-dashboard/static/fancybox/fancy_nav_left.png +0 -0
- data/lib/nagios-dashboard/static/fancybox/fancy_nav_right.png +0 -0
- data/lib/nagios-dashboard/static/fancybox/fancy_shadow_e.png +0 -0
- data/lib/nagios-dashboard/static/fancybox/fancy_shadow_n.png +0 -0
- data/lib/nagios-dashboard/static/fancybox/fancy_shadow_ne.png +0 -0
- data/lib/nagios-dashboard/static/fancybox/fancy_shadow_nw.png +0 -0
- data/lib/nagios-dashboard/static/fancybox/fancy_shadow_s.png +0 -0
- data/lib/nagios-dashboard/static/fancybox/fancy_shadow_se.png +0 -0
- data/lib/nagios-dashboard/static/fancybox/fancy_shadow_sw.png +0 -0
- data/lib/nagios-dashboard/static/fancybox/fancy_shadow_w.png +0 -0
- data/lib/nagios-dashboard/static/fancybox/fancy_title_left.png +0 -0
- data/lib/nagios-dashboard/static/fancybox/fancy_title_main.png +0 -0
- data/lib/nagios-dashboard/static/fancybox/fancy_title_over.png +0 -0
- data/lib/nagios-dashboard/static/fancybox/fancy_title_right.png +0 -0
- data/lib/nagios-dashboard/static/fancybox/fancybox-x.png +0 -0
- data/lib/nagios-dashboard/static/fancybox/fancybox-y.png +0 -0
- data/lib/nagios-dashboard/static/fancybox/fancybox.png +0 -0
- data/lib/nagios-dashboard/static/fancybox/jquery.easing-1.3.pack.js +72 -0
- data/lib/nagios-dashboard/static/fancybox/jquery.fancybox-1.3.4.css +359 -0
- data/lib/nagios-dashboard/static/fancybox/jquery.fancybox-1.3.4.js +1156 -0
- data/lib/nagios-dashboard/static/fancybox/jquery.fancybox-1.3.4.pack.js +46 -0
- data/lib/nagios-dashboard/static/fancybox/jquery.mousewheel-3.0.4.pack.js +14 -0
- data/lib/nagios-dashboard/static/favicon.ico +0 -0
- data/lib/nagios-dashboard/static/img/bg.png +0 -0
- data/lib/nagios-dashboard/static/js/FABridge.js +604 -0
- data/lib/nagios-dashboard/static/js/WebSocketMain.swf +0 -0
- data/lib/nagios-dashboard/static/js/nagios-dashboard.js +66 -0
- data/lib/nagios-dashboard/static/js/swfobject.js +4 -0
- data/lib/nagios-dashboard/static/js/web_socket.js +312 -0
- data/lib/nagios-dashboard/version.rb +5 -0
- data/lib/nagios-dashboard/views/dashboard.haml +24 -0
- data/nagios-dashboard.gemspec +37 -0
- metadata +230 -0
data/.gitignore
ADDED
data/Gemfile
ADDED
data/MIT-LICENSE.txt
ADDED
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
Copyright (c) 2011 Sean Porter & Justin Kolberg
|
|
2
|
+
|
|
3
|
+
Permission is hereby granted, free of charge, to any person obtaining
|
|
4
|
+
a copy of this software and associated documentation files (the
|
|
5
|
+
"Software"), to deal in the Software without restriction, including
|
|
6
|
+
without limitation the rights to use, copy, modify, merge, publish,
|
|
7
|
+
distribute, sublicense, and/or sell copies of the Software, and to
|
|
8
|
+
permit persons to whom the Software is furnished to do so, subject to
|
|
9
|
+
the following conditions:
|
|
10
|
+
|
|
11
|
+
The above copyright notice and this permission notice shall be
|
|
12
|
+
included in all copies or substantial portions of the Software.
|
|
13
|
+
|
|
14
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
|
15
|
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
|
16
|
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
|
17
|
+
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
|
18
|
+
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
|
19
|
+
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
|
20
|
+
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
data/README.org
ADDED
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
#+TITLE: A Nagios dashboard with OpsCode Chef integration.
|
|
2
|
+
#+Options: num:nil
|
|
3
|
+
#+STARTUP: odd
|
|
4
|
+
#+Style: <style> h1,h2,h3 {font-family: arial, helvetica, sans-serif} </style>
|
|
5
|
+
|
|
6
|
+
* How It Works
|
|
7
|
+
Nagios-Dashboard parses the nagios status.dat file & sends the current status to clients via an HTML5 WebSocket.
|
|
8
|
+
|
|
9
|
+
The dashboard monitors the status.dat file for changes, any modifications trigger client updates (push).
|
|
10
|
+
|
|
11
|
+
Nagios-Dashboard queries a Chef server or Opscode platform organization for additional host information.
|
|
12
|
+
|
|
13
|
+
* Requirements
|
|
14
|
+
- Nagios http://www.nagios.org/
|
|
15
|
+
- Ruby (MRI) & RubyGems http://www.ruby-lang.org/en/
|
|
16
|
+
- An OpsCode Chef server or platform oranization http://opscode.com/chef/ http://opscode.com/platform/
|
|
17
|
+
- Credentials to query Chef, user name & private key http://wiki.opscode.com/display/chef/Authentication
|
|
18
|
+
|
|
19
|
+
* Install
|
|
20
|
+
: gem install nagios-dashboard-sonian
|
|
21
|
+
|
|
22
|
+
* Run
|
|
23
|
+
: -> % nagios-dashboard -h
|
|
24
|
+
: Usage: nagios-dashboard (options)
|
|
25
|
+
: -d, --datfile FILE Location of Nagios status.dat FILE
|
|
26
|
+
: -k, --key KEY Chef user KEY
|
|
27
|
+
: -l, --logfile FILE Log to a different FILE
|
|
28
|
+
: -p, --port PORT Listen on a different PORT
|
|
29
|
+
: -u, --user USER Chef USER name
|
|
30
|
+
: -v, --verbose Output debug messages to screen
|
|
31
|
+
: -h, --help Show this message
|
|
32
|
+
|
|
33
|
+
Example:
|
|
34
|
+
: nagios-dashboard -u user -k ~/.chef/platform/user.pem -d /var/cache/nagios3/status.dat -p 8080 -v
|
data/Rakefile
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
#!/usr/bin/env ruby
|
|
2
|
+
begin
|
|
3
|
+
require 'nagios-dashboard/app.rb'
|
|
4
|
+
rescue LoadError => e
|
|
5
|
+
require 'rubygems'
|
|
6
|
+
path = File.expand_path '../../lib', __FILE__
|
|
7
|
+
$:.unshift(path) if File.directory?(path) && !$:.include?(path)
|
|
8
|
+
require 'nagios-dashboard/app.rb'
|
|
9
|
+
end
|
|
@@ -0,0 +1,159 @@
|
|
|
1
|
+
%w{
|
|
2
|
+
mixlib/cli
|
|
3
|
+
mixlib/log
|
|
4
|
+
json
|
|
5
|
+
thin
|
|
6
|
+
eventmachine
|
|
7
|
+
em-websocket
|
|
8
|
+
directory_watcher
|
|
9
|
+
nagios_analyzer
|
|
10
|
+
sinatra/async
|
|
11
|
+
haml
|
|
12
|
+
spice
|
|
13
|
+
}.each do |gem|
|
|
14
|
+
require gem
|
|
15
|
+
end
|
|
16
|
+
|
|
17
|
+
class Options
|
|
18
|
+
include Mixlib::CLI
|
|
19
|
+
option :verbose,
|
|
20
|
+
:short => '-v',
|
|
21
|
+
:long => '--verbose',
|
|
22
|
+
:boolean => true,
|
|
23
|
+
:default => false,
|
|
24
|
+
:description => 'Output debug messages to screen'
|
|
25
|
+
|
|
26
|
+
option :datfile,
|
|
27
|
+
:short => '-d FILE',
|
|
28
|
+
:long => '--datfile FILE',
|
|
29
|
+
:default => '/var/cache/nagios3/status.dat',
|
|
30
|
+
:description => 'Location of Nagios status.dat FILE'
|
|
31
|
+
|
|
32
|
+
option :port,
|
|
33
|
+
:short => '-p PORT',
|
|
34
|
+
:long => '--port PORT',
|
|
35
|
+
:default => 80,
|
|
36
|
+
:description => 'Listen on a different PORT'
|
|
37
|
+
|
|
38
|
+
option :logfile,
|
|
39
|
+
:short => '-l FILE',
|
|
40
|
+
:long => '--logfile FILE',
|
|
41
|
+
:default => '/tmp/nagios-dashboard.log',
|
|
42
|
+
:description => 'Log to a different FILE'
|
|
43
|
+
|
|
44
|
+
option :user,
|
|
45
|
+
:short => '-u USER',
|
|
46
|
+
:long => '--user USER',
|
|
47
|
+
:description => 'Chef USER name'
|
|
48
|
+
|
|
49
|
+
option :key,
|
|
50
|
+
:short => '-k KEY',
|
|
51
|
+
:long => '--key KEY',
|
|
52
|
+
:default => '/etc/chef/client.pem',
|
|
53
|
+
:description => 'Chef user KEY'
|
|
54
|
+
|
|
55
|
+
option :help,
|
|
56
|
+
:short => "-h",
|
|
57
|
+
:long => "--help",
|
|
58
|
+
:description => "Show this message",
|
|
59
|
+
:on => :tail,
|
|
60
|
+
:boolean => true,
|
|
61
|
+
:show_options => true,
|
|
62
|
+
:exit => 0
|
|
63
|
+
end
|
|
64
|
+
|
|
65
|
+
class Log
|
|
66
|
+
extend Mixlib::Log
|
|
67
|
+
end
|
|
68
|
+
|
|
69
|
+
OPTIONS = Options.new
|
|
70
|
+
OPTIONS.parse_options
|
|
71
|
+
|
|
72
|
+
Log.init(OPTIONS.config[:logfile])
|
|
73
|
+
Log.debug('starting dashboard ...')
|
|
74
|
+
|
|
75
|
+
EventMachine.epoll if EventMachine.epoll?
|
|
76
|
+
EventMachine.kqueue if EventMachine.kqueue?
|
|
77
|
+
EventMachine.run do
|
|
78
|
+
class Dashboard < Sinatra::Base
|
|
79
|
+
register Sinatra::Async
|
|
80
|
+
set :root, File.dirname(__FILE__)
|
|
81
|
+
set :static, true
|
|
82
|
+
set :public, Proc.new { File.join(root, "static") }
|
|
83
|
+
|
|
84
|
+
Spice.setup do |s|
|
|
85
|
+
s.host = 'api.opscode.com'
|
|
86
|
+
s.port = 443
|
|
87
|
+
s.scheme = "https"
|
|
88
|
+
s.client_name = OPTIONS.config[:user]
|
|
89
|
+
s.key_file = OPTIONS.config[:key]
|
|
90
|
+
end
|
|
91
|
+
Spice.connect!
|
|
92
|
+
|
|
93
|
+
aget '/' do
|
|
94
|
+
EventMachine.defer(proc { haml :dashboard }, proc { |result| body result })
|
|
95
|
+
end
|
|
96
|
+
|
|
97
|
+
aget '/node/:hostname' do |hostname|
|
|
98
|
+
content_type 'application/json'
|
|
99
|
+
get_chef_attributes = proc do
|
|
100
|
+
split = hostname.split(/_/)
|
|
101
|
+
env = split.first
|
|
102
|
+
hostname = split.last
|
|
103
|
+
JSON.parse(Spice.connection.get("/organizations/sonian-#{env}/search/node", :params => {:q => "hostname:#{hostname}"}))['rows'][0]
|
|
104
|
+
end
|
|
105
|
+
EventMachine.defer(get_chef_attributes, proc { |result| body result.to_json })
|
|
106
|
+
end
|
|
107
|
+
end
|
|
108
|
+
|
|
109
|
+
def log_message(message)
|
|
110
|
+
if OPTIONS.config[:verbose]
|
|
111
|
+
puts message
|
|
112
|
+
end
|
|
113
|
+
EventMachine.defer(proc { Log.debug(message) })
|
|
114
|
+
end
|
|
115
|
+
|
|
116
|
+
websocket_connections = Array.new
|
|
117
|
+
EventMachine::WebSocket.start(:host => "0.0.0.0", :port => 8000) do |websocket|
|
|
118
|
+
websocket.onopen do
|
|
119
|
+
websocket_connections.push websocket
|
|
120
|
+
log_message('client connected to websocket')
|
|
121
|
+
end
|
|
122
|
+
websocket.onclose do
|
|
123
|
+
websocket_connections.delete websocket
|
|
124
|
+
log_message('client disconnected from websocket')
|
|
125
|
+
end
|
|
126
|
+
end
|
|
127
|
+
|
|
128
|
+
nagios_status = proc do
|
|
129
|
+
begin
|
|
130
|
+
nagios = NagiosAnalyzer::Status.new(OPTIONS.config[:datfile])
|
|
131
|
+
nagios.items.to_json
|
|
132
|
+
rescue => error
|
|
133
|
+
log_message(error)
|
|
134
|
+
end
|
|
135
|
+
end
|
|
136
|
+
|
|
137
|
+
update_clients = proc do |nagios|
|
|
138
|
+
unless nagios.nil?
|
|
139
|
+
websocket_connections.each do |websocket|
|
|
140
|
+
websocket.send nagios
|
|
141
|
+
end
|
|
142
|
+
log_message('updated clients')
|
|
143
|
+
end
|
|
144
|
+
end
|
|
145
|
+
|
|
146
|
+
watcher = DirectoryWatcher.new File.dirname(File.expand_path(OPTIONS.config[:datfile])), :glob => '*.dat', :scanner => :em
|
|
147
|
+
watcher.add_observer do |*args|
|
|
148
|
+
args.each do |event|
|
|
149
|
+
unless websocket_connections.count == 0
|
|
150
|
+
EventMachine.defer(nagios_status, update_clients)
|
|
151
|
+
end
|
|
152
|
+
end
|
|
153
|
+
end
|
|
154
|
+
watcher.start
|
|
155
|
+
|
|
156
|
+
Dashboard.run!({:port => OPTIONS.config[:port]})
|
|
157
|
+
end
|
|
158
|
+
|
|
159
|
+
Log.debug('stopping dashboard ...')
|
|
@@ -0,0 +1,103 @@
|
|
|
1
|
+
body
|
|
2
|
+
{
|
|
3
|
+
background: url('/img/bg.png') no-repeat center center fixed;
|
|
4
|
+
background-color: #4a4a4a;
|
|
5
|
+
font-family: Helvetica;
|
|
6
|
+
margin: 0;
|
|
7
|
+
padding: 20px;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
div#MainContainer
|
|
11
|
+
{
|
|
12
|
+
background-color: rgba(30, 30, 30, 0.7);
|
|
13
|
+
-webkit-border-radius: 6px;
|
|
14
|
+
-moz-border-radius: 6px;
|
|
15
|
+
border-radius: 6px;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
div#MainContainer h1
|
|
19
|
+
{
|
|
20
|
+
color: #fff;
|
|
21
|
+
padding-left: 14px;
|
|
22
|
+
padding-top: 14px;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
div#MainContainer table
|
|
26
|
+
{
|
|
27
|
+
border-collapse: collapse;
|
|
28
|
+
width: 100%;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
div#MainContainer table thead tr
|
|
32
|
+
{
|
|
33
|
+
background-color: #000;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
div#MainContainer table thead tr th
|
|
37
|
+
{
|
|
38
|
+
padding: 7px 14px 7px 14px;
|
|
39
|
+
text-align: left;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
div#MainContainer table thead tr th:first-child
|
|
43
|
+
{
|
|
44
|
+
-webkit-border-top-left-radius: 6px;
|
|
45
|
+
-moz-border-radius-topleft: 6px;
|
|
46
|
+
border-top-left-radius: 6px;
|
|
47
|
+
width: 200px;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
div#MainContainer table thead tr th:last-child
|
|
51
|
+
{
|
|
52
|
+
-webkit-border-top-right-radius: 6px;
|
|
53
|
+
-moz-border-radius-topright: 6px;
|
|
54
|
+
border-top-right-radius: 6px;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
div#MainContainer table thead tr th
|
|
58
|
+
{
|
|
59
|
+
color: #fff;
|
|
60
|
+
font-weight: bold;
|
|
61
|
+
font-family: Helvetica;
|
|
62
|
+
font-size: 16px;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
div#MainContainer table tbody tr:last-child td:first-child
|
|
66
|
+
{
|
|
67
|
+
-webkit-border-bottom-left-radius: 6px;
|
|
68
|
+
-moz-border-radius-bottomleft: 6px;
|
|
69
|
+
border-bottom-left-radius: 6px;
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
div#MainContainer table tbody tr:last-child td:last-child
|
|
73
|
+
{
|
|
74
|
+
-webkit-border-bottom-right-radius: 6px;
|
|
75
|
+
-moz-border-radius-bottomright: 6px;
|
|
76
|
+
border-bottom-right-radius: 6px;
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
div#MainContainer table tbody tr
|
|
80
|
+
{
|
|
81
|
+
cursor: pointer;
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
div#MainContainer table tbody tr.Critical
|
|
85
|
+
{
|
|
86
|
+
background-color: rgba(144, 0, 0, 0.6);
|
|
87
|
+
/*background-color: #900;*/
|
|
88
|
+
color: #fff;
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
div#MainContainer table tbody tr.Warning
|
|
92
|
+
{
|
|
93
|
+
background-color: rgba(255, 165, 0, 0.6);
|
|
94
|
+
/*background-color: #ffa500;*/
|
|
95
|
+
color: #fff;
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
div#MainContainer table tbody tr td
|
|
99
|
+
{
|
|
100
|
+
padding: 14px 14px 14px 14px;
|
|
101
|
+
font-family: Helvetica;
|
|
102
|
+
font-size: 14px;
|
|
103
|
+
}
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* jQuery Easing v1.3 - http://gsgd.co.uk/sandbox/jquery/easing/
|
|
3
|
+
*
|
|
4
|
+
* Uses the built in easing capabilities added In jQuery 1.1
|
|
5
|
+
* to offer multiple easing options
|
|
6
|
+
*
|
|
7
|
+
* TERMS OF USE - jQuery Easing
|
|
8
|
+
*
|
|
9
|
+
* Open source under the BSD License.
|
|
10
|
+
*
|
|
11
|
+
* Copyright © 2008 George McGinley Smith
|
|
12
|
+
* All rights reserved.
|
|
13
|
+
*
|
|
14
|
+
* Redistribution and use in source and binary forms, with or without modification,
|
|
15
|
+
* are permitted provided that the following conditions are met:
|
|
16
|
+
*
|
|
17
|
+
* Redistributions of source code must retain the above copyright notice, this list of
|
|
18
|
+
* conditions and the following disclaimer.
|
|
19
|
+
* Redistributions in binary form must reproduce the above copyright notice, this list
|
|
20
|
+
* of conditions and the following disclaimer in the documentation and/or other materials
|
|
21
|
+
* provided with the distribution.
|
|
22
|
+
*
|
|
23
|
+
* Neither the name of the author nor the names of contributors may be used to endorse
|
|
24
|
+
* or promote products derived from this software without specific prior written permission.
|
|
25
|
+
*
|
|
26
|
+
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY
|
|
27
|
+
* EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
|
|
28
|
+
* MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
|
|
29
|
+
* COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
|
|
30
|
+
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
|
|
31
|
+
* GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
|
|
32
|
+
* AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
|
|
33
|
+
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED
|
|
34
|
+
* OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
35
|
+
*
|
|
36
|
+
*/
|
|
37
|
+
|
|
38
|
+
// t: current time, b: begInnIng value, c: change In value, d: duration
|
|
39
|
+
eval(function(p,a,c,k,e,r){e=function(c){return(c<a?'':e(parseInt(c/a)))+((c=c%a)>35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--)r[e(c)]=k[c]||e(c);k=[function(e){return r[e]}];e=function(){return'\\w+'};c=1};while(c--)if(k[c])p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c]);return p}('h.i[\'1a\']=h.i[\'z\'];h.O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2,0,c,d)*.5+b;6 h.i.v(x,t*2-d,0,c,d)*.5+c*.5+b}});',62,74,'||||||return||Math|function|||||if|var|PI|jQuery|easing|pow|75|70158|else|sin|sqrt||5625|asin|||undefined|easeOutBounce|abs||def|swing|easeInBounce|525|cos|easeOutQuad|easeOutBack|easeInBack|easeInSine|easeOutElastic|easeInOutQuint|easeOutQuint|easeInQuint|easeInOutQuart|easeOutQuart|easeInQuart|extend|easeInElastic|easeInOutCirc|easeInOutCubic|easeOutCirc|easeInOutElastic|easeOutCubic|easeInCirc|easeInOutExpo|easeInCubic|easeOutExpo|easeInExpo||9375|easeInOutSine|easeInOutQuad|25|easeOutSine|easeInOutBack|easeInQuad|625|984375|jswing|easeInOutBounce'.split('|'),0,{}))
|
|
40
|
+
|
|
41
|
+
/*
|
|
42
|
+
*
|
|
43
|
+
* TERMS OF USE - EASING EQUATIONS
|
|
44
|
+
*
|
|
45
|
+
* Open source under the BSD License.
|
|
46
|
+
*
|
|
47
|
+
* Copyright © 2001 Robert Penner
|
|
48
|
+
* All rights reserved.
|
|
49
|
+
*
|
|
50
|
+
* Redistribution and use in source and binary forms, with or without modification,
|
|
51
|
+
* are permitted provided that the following conditions are met:
|
|
52
|
+
*
|
|
53
|
+
* Redistributions of source code must retain the above copyright notice, this list of
|
|
54
|
+
* conditions and the following disclaimer.
|
|
55
|
+
* Redistributions in binary form must reproduce the above copyright notice, this list
|
|
56
|
+
* of conditions and the following disclaimer in the documentation and/or other materials
|
|
57
|
+
* provided with the distribution.
|
|
58
|
+
*
|
|
59
|
+
* Neither the name of the author nor the names of contributors may be used to endorse
|
|
60
|
+
* or promote products derived from this software without specific prior written permission.
|
|
61
|
+
*
|
|
62
|
+
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY
|
|
63
|
+
* EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
|
|
64
|
+
* MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
|
|
65
|
+
* COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
|
|
66
|
+
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
|
|
67
|
+
* GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
|
|
68
|
+
* AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
|
|
69
|
+
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED
|
|
70
|
+
* OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
71
|
+
*
|
|
72
|
+
*/
|