rtMedia for WordPress, BuddyPress and bbPress - Version 4.5.10

Version Description

rtMedia 4.5.10, with improved styling for albums and improved UX on BuddyPress Activity Wall.

=

Download this release

Release Info

Developer thrijith
Plugin Icon 128x128 rtMedia for WordPress, BuddyPress and bbPress
Version 4.5.10
Comparing to
See all releases

Code changes from version 4.5.9 to 4.5.10

Files changed (67) hide show
  1. app/helper/BPMediaLog.php +0 -85
  2. app/helper/RTMediaSupport.php +1 -1
  3. app/helper/rtPluginInfo.php +0 -122
  4. app/helper/rtPluginUpdate.php +0 -128
  5. app/main/controllers/activity/RTMediaBuddyPressActivity.php +16 -0
  6. app/main/controllers/media/RTMediaCoverArt.php +0 -73
  7. app/main/controllers/template/rtmedia-actions.php +1 -1
  8. app/main/controllers/template/template.php +0 -165
  9. app/services/RTMediaEncoding.php +0 -782
  10. index.php +2 -2
  11. languages/buddypress-media.po +13 -13
  12. languages/rtmedia-ar_AR.mo +0 -0
  13. languages/rtmedia-bg_BG.mo +0 -0
  14. languages/rtmedia-da_DA.mo +0 -0
  15. languages/rtmedia-da_DK.mo +0 -0
  16. languages/rtmedia-de_DE.mo +0 -0
  17. languages/rtmedia-es_ES.mo +0 -0
  18. languages/rtmedia-fa_FA.mo +0 -0
  19. languages/rtmedia-fa_IR.mo +0 -0
  20. languages/rtmedia-fi_FI.mo +0 -0
  21. languages/rtmedia-fr_FR.mo +0 -0
  22. languages/rtmedia-hu_HU.mo +0 -0
  23. languages/rtmedia-it_IT.mo +0 -0
  24. languages/rtmedia-ja_JA.mo +0 -0
  25. languages/rtmedia-ko_KO.mo +0 -0
  26. languages/rtmedia-ko_KR.mo +0 -0
  27. languages/rtmedia-nb_NO.mo +0 -0
  28. languages/rtmedia-nl_NL.mo +0 -0
  29. languages/rtmedia-pl_PL.mo +0 -0
  30. languages/rtmedia-pt_BR.mo +0 -0
  31. languages/rtmedia-ro_RO.mo +0 -0
  32. languages/rtmedia-ru_RU.mo +0 -0
  33. languages/rtmedia-sk_SK.mo +0 -0
  34. languages/rtmedia-sr_RS.mo +0 -0
  35. languages/rtmedia-sr_SR.mo +0 -0
  36. languages/rtmedia-sv_SE.mo +0 -0
  37. languages/rtmedia-sv_SV.mo +0 -0
  38. languages/rtmedia-ta_IN.mo +0 -0
  39. languages/rtmedia-ta_TA.mo +0 -0
  40. languages/rtmedia-zh_CN.mo +0 -0
  41. languages/rtmedia.mo +0 -0
  42. languages/rtmedia.po +0 -3207
  43. lib/foundation/custom.modernizr.js +0 -4
  44. lib/foundation/foundation.css +0 -4271
  45. lib/foundation/foundation.js +0 -447
  46. lib/foundation/foundation.min.js +0 -15
  47. lib/foundation/foundation.reveal.js +0 -330
  48. lib/foundation/foundation.section.js +0 -422
  49. lib/foundation/normalize.css +0 -402
  50. lib/magnific/magnific.css +0 -363
  51. lib/magnific/magnific.js +0 -2042
  52. lib/media-element/background.png +0 -0
  53. lib/media-element/bigplay.png +0 -0
  54. lib/media-element/bigplay.svg +0 -1
  55. lib/media-element/controls-ted.png +0 -0
  56. lib/media-element/controls-wmp-bg.png +0 -0
  57. lib/media-element/controls-wmp.png +0 -0
  58. lib/media-element/controls.png +0 -0
  59. lib/media-element/controls.svg +0 -1
  60. lib/media-element/flashmediaelement.swf +0 -0
  61. lib/media-element/jquery.js +0 -9300
  62. lib/media-element/loading.gif +0 -0
  63. lib/media-element/mediaelementplayer.js +0 -2804
  64. lib/media-element/mediaelementplayer.min.js +0 -90
  65. lib/media-element/mejs-skins.css +0 -283
  66. lib/media-element/silverlightmediaelement.xap +0 -0
  67. readme.txt +20 -8
app/helper/BPMediaLog.php DELETED
@@ -1,85 +0,0 @@
1
- <?php
2
-
3
- /**
4
- * Logs a given message with an optional context string and timestamp
5
- *
6
- * @author Saurabh Shukla <saurabh.shukla@rtcamp.com>
7
- */
8
- if ( ! class_exists( 'BPMediaLog' ) ){
9
-
10
- class BPMediaLog {
11
- /**
12
- * Formats and logs the error message
13
- *
14
- * @param any $msg The message to log
15
- * @param string $context The context string, optional
16
- * @return boolean True if successful
17
- */
18
-
19
- /**
20
- *
21
- * @param type $msg
22
- * @param string $context
23
- * @param string $log_file
24
- * @return type
25
- */
26
- public function __construct( $msg, $context = '', $log_file = '' ) {
27
- $log_msg = $this->log_msg( $msg, $context = '' );
28
- if ( $log_file == '' ){
29
- $log_file = RTMEDIA_PATH . 'log/rtmedia.log';
30
- }
31
- return $this->log( $log_msg, $log_file );
32
- }
33
-
34
- /**
35
- * Formats the message
36
- *
37
- * @param any $msg The message to format
38
- * @param string $context The context string, optional
39
- * @return string The formatted log entry
40
- */
41
-
42
- /**
43
- *
44
- * @param type $msg
45
- * @param type $context
46
- * @return type
47
- */
48
- function log_msg( $msg, $context = '' ) {
49
- $logmsg = gmdate( "Y-m-d H:i:s " ) . " | ";
50
- if ( $context ){
51
- $logmsg .= $context . " | ";
52
- }
53
- if ( ! is_string( $msg ) ){
54
- $msg = var_export( $msg, false );
55
- }
56
- $logmsg .= $msg;
57
- return $logmsg;
58
- }
59
-
60
- /**
61
- * Logs the entry to the log file
62
- *
63
- * @param string $logmsg The formatted log entry
64
- * @param string $file The log file's path
65
- * @return boolean Success
66
- */
67
-
68
- /**
69
- *
70
- * @param type $logmsg
71
- * @param type $file
72
- * @return boolean
73
- */
74
- public function log( $logmsg, $file ) {
75
- $fp = fopen( RTMEDIA_PATH . 'plugin.log', "a+" );
76
- if ( $fp ){
77
- fwrite( $fp, "\n" . $logmsg );
78
- fclose( $fp );
79
- }
80
- return true;
81
- }
82
-
83
- }
84
-
85
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
app/helper/RTMediaSupport.php CHANGED
@@ -251,7 +251,7 @@ if ( ! class_exists( 'RTMediaSupport' ) ) {
251
  if ( is_dir( $template_path . DIRECTORY_SEPARATOR . $value ) ) {
252
  $sub_files = $this->rtmedia_scan_template_files( $template_path . DIRECTORY_SEPARATOR . $value );
253
  foreach ( $sub_files as $sub_file ) {
254
- $rt_to_dir_paths = RTMediaTemplate::locate_template( substr( $sub_file, 0, ( count( $sub_file ) - 5 ) ) );
255
  $rt_to_dir_path = str_replace( '//', '/', $rt_to_dir_paths );
256
  $result[] = str_replace( ABSPATH . 'wp-content/', '', $rt_to_dir_path );
257
  }
251
  if ( is_dir( $template_path . DIRECTORY_SEPARATOR . $value ) ) {
252
  $sub_files = $this->rtmedia_scan_template_files( $template_path . DIRECTORY_SEPARATOR . $value );
253
  foreach ( $sub_files as $sub_file ) {
254
+ $rt_to_dir_paths = RTMediaTemplate::locate_template( str_replace( '.php', '', $sub_file ) );
255
  $rt_to_dir_path = str_replace( '//', '/', $rt_to_dir_paths );
256
  $result[] = str_replace( ABSPATH . 'wp-content/', '', $rt_to_dir_path );
257
  }
app/helper/rtPluginInfo.php DELETED
@@ -1,122 +0,0 @@
1
- <?php
2
-
3
- /**
4
- * A container class for holding and transforming various plugin metadata.
5
- *
6
- * @author faishal
7
- */
8
- class rtPluginInfo {
9
-
10
- //Most fields map directly to the contents of the plugin's info.json file.
11
- //See the relevant docs for a description of their meaning.
12
- public $name;
13
- public $slug;
14
- public $version;
15
- public $homepage;
16
- public $sections;
17
- public $download_url;
18
- public $author;
19
- public $author_homepage;
20
- public $requires;
21
- public $tested;
22
- public $upgrade_notice;
23
- public $rating;
24
- public $num_ratings;
25
- public $downloaded;
26
- public $last_updated;
27
- public $id = 0; //The native WP.org API returns numeric plugin IDs, but they're not used for anything.
28
-
29
- /**
30
- * Create a new instance of PluginInfo from JSON-encoded plugin info
31
- * returned by an external update API.
32
- *
33
- * @param string $json Valid JSON string representing plugin info.
34
- * @param bool $triggerErrors
35
- * @return PluginInfo|null New instance of PluginInfo, or NULL on error.
36
- */
37
-
38
- /**
39
- *
40
- * @param type $json
41
- * @param type $triggerErrors
42
- * @return null|\self
43
- */
44
- public static function fromJson($json, $triggerErrors = false) {
45
- /** @var StdClass $apiResponse */
46
- $apiResponse = json_decode($json);
47
- if (empty($apiResponse) || !is_object($apiResponse)) {
48
- if ($triggerErrors) {
49
- trigger_error(
50
- sprintf( __( "Failed to parse plugin metadata. Try validating your .json file with %s", 'rtmedia' ), 'http://jsonlint.com/' ), E_USER_NOTICE
51
- );
52
- }
53
- return null;
54
- }
55
-
56
- //Very, very basic validation.
57
- $valid = isset($apiResponse->name) && !empty($apiResponse->name) && isset($apiResponse->version) && !empty($apiResponse->version);
58
- if (!$valid) {
59
- if ($triggerErrors) {
60
- trigger_error(
61
- __( "The plugin metadata file does not contain the required 'name' and/or 'version' keys.", 'rtmedia'), E_USER_NOTICE
62
- );
63
- }
64
- return null;
65
- }
66
-
67
- $info = new self();
68
- foreach (get_object_vars($apiResponse) as $key => $value) {
69
- $info->$key = $value;
70
- }
71
-
72
- return $info;
73
- }
74
-
75
- /**
76
- * Transform plugin info into the format used by the native WordPress.org API
77
- *
78
- * @return object
79
- */
80
-
81
- /**
82
- *
83
- * @return \StdClass
84
- */
85
- public function toWpFormat() {
86
- $info = new StdClass;
87
-
88
- //The custom update API is built so that many fields have the same name and format
89
- //as those returned by the native WordPress.org API. These can be assigned directly.
90
- $sameFormat = array(
91
- 'name', 'slug', 'version', 'requires', 'tested', 'rating', 'upgrade_notice',
92
- 'num_ratings', 'downloaded', 'homepage', 'last_updated',
93
- );
94
- foreach ($sameFormat as $field) {
95
- if (isset($this->$field)) {
96
- $info->$field = $this->$field;
97
- } else {
98
- $info->$field = null;
99
- }
100
- }
101
-
102
- //Other fields need to be renamed and/or transformed.
103
- $info->download_link = $this->download_url;
104
-
105
- if (!empty($this->author_homepage)) {
106
- $info->author = sprintf('<a href="%s">%s</a>', $this->author_homepage, $this->author);
107
- } else {
108
- $info->author = $this->author;
109
- }
110
-
111
- if (is_object($this->sections)) {
112
- $info->sections = get_object_vars($this->sections);
113
- } elseif (is_array($this->sections)) {
114
- $info->sections = $this->sections;
115
- } else {
116
- $info->sections = array('description' => '');
117
- }
118
-
119
- return $info;
120
- }
121
-
122
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
app/helper/rtPluginUpdate.php DELETED
@@ -1,128 +0,0 @@
1
- <?php
2
-
3
- /**
4
- * Description of rtPluginUpdate
5
- * A simple container class for holding information about an available update.
6
- * @author faishal
7
- */
8
- class rtPluginUpdate {
9
-
10
- public $id = 0;
11
- public $slug;
12
- public $version;
13
- public $homepage;
14
- public $download_url;
15
- public $upgrade_notice;
16
- private static $fields = array('id', 'slug', 'version', 'homepage', 'download_url', 'upgrade_notice');
17
-
18
- /**
19
- * Create a new instance of PluginUpdate from its JSON-encoded representation.
20
- *
21
- * @param string $json
22
- * @param bool $triggerErrors
23
- * @return PluginUpdate|null
24
- */
25
-
26
- /**
27
- *
28
- * @param type $json
29
- * @param type $triggerErrors
30
- * @return null
31
- */
32
- public static function fromJson($json, $triggerErrors = false) {
33
- //Since update-related information is simply a subset of the full plugin info,
34
- //we can parse the update JSON as if it was a plugin info string, then copy over
35
- //the parts that we care about.
36
- $pluginInfo = rtPluginInfo::fromJson($json, $triggerErrors);
37
- if ($pluginInfo != null) {
38
- return self::fromPluginInfo($pluginInfo);
39
- } else {
40
- return null;
41
- }
42
- }
43
-
44
- /**
45
- * Create a new instance of PluginUpdate based on an instance of PluginInfo.
46
- * Basically, this just copies a subset of fields from one object to another.
47
- *
48
- * @param PluginInfo $info
49
- * @return PluginUpdate
50
- */
51
-
52
- /**
53
- *
54
- * @param type $info
55
- * @return type
56
- */
57
- public static function fromPluginInfo($info) {
58
- return self::fromObject($info);
59
- }
60
-
61
- /**
62
- * Create a new instance of PluginUpdate by copying the necessary fields from
63
- * another object.
64
- *
65
- * @param StdClass|PluginInfo|PluginUpdate $object The source object.
66
- * @return PluginUpdate The new copy.
67
- */
68
-
69
- /**
70
- *
71
- * @param type $object
72
- * @return \self
73
- */
74
- public static function fromObject($object) {
75
- $update = new self();
76
- foreach (self::$fields as $field) {
77
- $update->$field = $object->$field;
78
- }
79
- return $update;
80
- }
81
-
82
- /**
83
- * Create an instance of StdClass that can later be converted back to
84
- * a PluginUpdate. Useful for serialization and caching, as it avoids
85
- * the "incomplete object" problem if the cached value is loaded before
86
- * this class.
87
- *
88
- * @return StdClass
89
- */
90
-
91
- /**
92
- *
93
- * @return \StdClass
94
- */
95
- public function toStdClass() {
96
- $object = new StdClass();
97
- foreach (self::$fields as $field) {
98
- $object->$field = $this->$field;
99
- }
100
- return $object;
101
- }
102
-
103
- /**
104
- * Transform the update into the format used by WordPress native plugin API.
105
- *
106
- * @return object
107
- */
108
-
109
- /**
110
- *
111
- * @return \StdClass
112
- */
113
- public function toWpFormat() {
114
- $update = new StdClass;
115
-
116
- $update->id = $this->id;
117
- $update->slug = $this->slug;
118
- $update->new_version = $this->version;
119
- $update->url = $this->homepage;
120
- $update->package = $this->download_url;
121
- if (!empty($this->upgrade_notice)) {
122
- $update->upgrade_notice = $this->upgrade_notice;
123
- }
124
-
125
- return $update;
126
- }
127
-
128
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
app/main/controllers/activity/RTMediaBuddyPressActivity.php CHANGED
@@ -28,6 +28,7 @@ class RTMediaBuddyPressActivity {
28
  add_filter( 'bp_activity_allowed_tags', array( &$this, 'override_allowed_tags' ) );
29
  add_filter( 'bp_get_activity_parent_content', array( &$this, 'bp_get_activity_parent_content' ) );
30
  add_filter( 'bp_activity_content_before_save', array( $this, 'bp_activity_content_before_save' ) );
 
31
  add_action( 'bp_activity_deleted_activities', array( &$this, 'bp_activity_deleted_activities' ) );
32
 
33
  // Filter bp_activity_prefetch_object_data for translatable activity actions
@@ -271,6 +272,21 @@ class RTMediaBuddyPressActivity {
271
  return $content;
272
  }
273
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
274
  function delete_comment_sync( $activity_id, $comment_id ) {
275
  global $wpdb;
276
  $comment_id = $wpdb->get_var( $wpdb->prepare( "select comment_id from {$wpdb->commentmeta} where meta_key = 'activity_id' and meta_value = %s", $comment_id ) );
28
  add_filter( 'bp_activity_allowed_tags', array( &$this, 'override_allowed_tags' ) );
29
  add_filter( 'bp_get_activity_parent_content', array( &$this, 'bp_get_activity_parent_content' ) );
30
  add_filter( 'bp_activity_content_before_save', array( $this, 'bp_activity_content_before_save' ) );
31
+ add_filter( 'bp_activity_type_before_save', array( $this, 'bp_activity_type_before_save' ) );
32
  add_action( 'bp_activity_deleted_activities', array( &$this, 'bp_activity_deleted_activities' ) );
33
 
34
  // Filter bp_activity_prefetch_object_data for translatable activity actions
272
  return $content;
273
  }
274
 
275
+ /**
276
+ * This function will check for the media file attached to the actitvity and accordingly will set type.
277
+ *
278
+ * @param string $type Type of the Activity.
279
+ *
280
+ * @return string Filtered value of the activity type.
281
+ */
282
+ public function bp_activity_type_before_save( $type ) {
283
+ $rtmedia_attached_files = filter_input( INPUT_POST, 'rtMedia_attached_files', FILTER_DEFAULT, FILTER_REQUIRE_ARRAY );
284
+ if ( ( ! empty( $rtmedia_attached_files ) ) && is_array( $rtmedia_attached_files ) && 'activity_update' === $type ) {
285
+ $type = 'rtmedia_update';
286
+ }
287
+ return $type;
288
+ }
289
+
290
  function delete_comment_sync( $activity_id, $comment_id ) {
291
  global $wpdb;
292
  $comment_id = $wpdb->get_var( $wpdb->prepare( "select comment_id from {$wpdb->commentmeta} where meta_key = 'activity_id' and meta_value = %s", $comment_id ) );
app/main/controllers/media/RTMediaCoverArt.php DELETED
@@ -1,73 +0,0 @@
1
- <?php
2
-
3
- /*
4
- * To change this template, choose Tools | Templates
5
- * and open the template in the editor.
6
- */
7
-
8
- /**
9
- * Description of RTMediaCoverArt
10
- *
11
- * @author saurabh
12
- */
13
- class RTMediaCoverArt extends RTMediaUserInteraction{
14
-
15
- /**
16
- *
17
- */
18
- function __construct() {
19
- $defaults = array(
20
- 'action' => 'cover',
21
- 'label' => 'Set as Album Cover',
22
- 'plural' => '',
23
- 'undo_label' => 'Unset as Album Cover',
24
- 'privacy' => 1000, //60,
25
- 'countable' => false,
26
- 'single' => false,
27
- 'repeatable' => false,
28
- 'undoable' => true
29
- );
30
- parent::__construct($defaults);
31
-
32
- }
33
-
34
- function process(){
35
- global $rtmedia_query;
36
- $media_id = $rtmedia_query->action_query->id;
37
-
38
- $this->model = new RTMediaModel();
39
-
40
- $media = $this->model->get(array('id'=>$media_id));
41
-
42
- $media = $media[0];
43
-
44
- $album = $media->album_id;
45
-
46
- $this->model->update(array('cover_art',$media_id),array('id'=>$album));
47
- return 1;
48
- }
49
-
50
- function before_render() {
51
- $globa_id = RTMediaAlbum::get_default();
52
-
53
- if(isset($this->media->album_id ) && $this->media->album_id > 0){
54
- $album = ($this->model->get(array('media_id'=>$globa_id)));
55
- if($album && isset($album[0])){
56
- if($album[0]->id == $this->media->album_id){
57
- $this->privacy =1000;
58
- return;
59
- }
60
- }
61
- $album = ($this->model->get(array('id'=>$this->media->album_id)));
62
- if($album && isset($album[0])){
63
- if($album[0]->media_author != $this->interactor ){
64
- $this->privacy =1000;
65
- return;
66
- }
67
- }
68
- }
69
- }
70
-
71
- }
72
-
73
- ?>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
app/main/controllers/template/rtmedia-actions.php CHANGED
@@ -538,7 +538,7 @@ function rtmedia_admin_pages_content( $page ) {
538
  <li><?php esc_html_e( 'WordPress/BuddyPress Plugin Development', 'buddypress-media' ); ?></li>
539
  </ol>
540
  <div class="clearfix">
541
- <a href="https://rtmedia.io/contact" class="rtm-button rtm-success" target="_blank"><?php esc_html_e( 'Contact Us', 'buddypress-media' ); ?></a>
542
  </div>
543
  </div>
544
  <?php
538
  <li><?php esc_html_e( 'WordPress/BuddyPress Plugin Development', 'buddypress-media' ); ?></li>
539
  </ol>
540
  <div class="clearfix">
541
+ <a href="https://rtmedia.io/enterprise-plan" class="rtm-button rtm-success" target="_blank"><?php esc_html_e( 'Contact Us', 'buddypress-media' ); ?></a>
542
  </div>
543
  </div>
544
  <?php
app/main/controllers/template/template.php DELETED
@@ -1,165 +0,0 @@
1
- <?php
2
- global $rtmedia_query;
3
-
4
- if ( is_rtmedia_album_gallery() ) {
5
- $template = 'album-gallery';
6
- } elseif ( is_rtmedia_album() || is_rtmedia_gallery() ) {
7
- $template = 'media-gallery';
8
- if (
9
- is_rtmedia_album() &&
10
- isset( $rtmedia_query->media_query ) &&
11
- $rtmedia_query->action_query->action == 'edit'
12
- ) {
13
- if ( isset( $rtmedia_query->media_query[ 'media_author' ] ) && (get_current_user_id() == $rtmedia_query->media_query[ 'media_author' ]) ) {
14
- $template = 'album-single-edit';
15
- }
16
- }
17
- } else if ( is_rtmedia_single() ) {
18
- $template = 'media-single';
19
- if ( $rtmedia_query->action_query->action == 'edit' )
20
- $template = 'media-single-edit';
21
- }
22
-
23
- $ajax = false;
24
-
25
-
26
- if (
27
- ! empty( $_SERVER[ 'HTTP_X_REQUESTED_WITH' ] ) &&
28
- strtolower( $_SERVER[ 'HTTP_X_REQUESTED_WITH' ] ) == 'xmlhttprequest'
29
- )
30
- $ajax = true;
31
-
32
-
33
- if ( ! $ajax ) {
34
- ?>
35
-
36
- <?php
37
-
38
- if ( class_exists( 'BuddyPress' ) && ! bp_is_blog_page() ) {
39
- $template_type = 'buddypress';
40
- } else {
41
- $template_type = '';
42
- }
43
-
44
- get_header( $template_type );
45
- ?>
46
- <div id="primary" class="site-content">
47
- <?php
48
-
49
- if ( $template_type == 'buddypress' ) {
50
- ?>
51
- <div id ="content">
52
- <div id="buddypress" class="padder">
53
-
54
- <?php if ( bp_displayed_user_id() ) { ?>
55
- <div id="item-header">
56
-
57
- <?php bp_get_template_part( 'members/single/member-header' ) ?>
58
-
59
- </div>
60
-
61
- <div id="item-nav">
62
- <div class="item-list-tabs no-ajax" id="object-nav" role="navigation">
63
- <ul>
64
-
65
- <?php bp_get_displayed_user_nav(); ?>
66
-
67
- <?php do_action( 'bp_member_options_nav' ); ?>
68
-
69
- </ul>
70
- </div>
71
- </div>
72
-
73
- <div id="item-body">
74
-
75
- <?php do_action( 'bp_before_member_body' ); ?>
76
- <?php do_action( 'bp_before_member_media' ); ?>
77
- <div class="item-list-tabs no-ajax" id="subnav">
78
- <ul>
79
-
80
- <?php rtmedia_sub_nav(); ?>
81
-
82
- <?php do_action( 'rtmedia_sub_nav' ); ?>
83
-
84
- </ul>
85
- </div><!-- .item-list-tabs -->
86
-
87
- <?php
88
- } else if ( bp_is_group() ) {
89
- ?>
90
-
91
- <?php
92
- if ( bp_has_groups() ) : while ( bp_groups() ) : bp_the_group();
93
- ?>
94
- <div id="item-header">
95
-
96
- <?php bp_get_template_part( 'groups/single/group-header' ); ?>
97
-
98
- </div>
99
- <div id="item-nav">
100
- <div class="item-list-tabs no-ajax" id="object-nav" role="navigation">
101
- <ul>
102
-
103
- <?php bp_get_options_nav(); ?>
104
-
105
- <?php do_action( 'bp_group_options_nav' ); ?>
106
-
107
- </ul>
108
- </div>
109
- </div><!-- #item-nav -->
110
-
111
-
112
- <div id="item-body">
113
-
114
- <?php do_action( 'bp_before_group_body' ); ?>
115
- <?php do_action( 'bp_before_group_media' ); ?>
116
- <div class="item-list-tabs no-ajax" id="subnav">
117
- <ul>
118
-
119
- <?php rtmedia_sub_nav(); ?>
120
-
121
- <?php do_action( 'rtmedia_sub_nav' ); ?>
122
-
123
- </ul>
124
- </div><!-- .item-list-tabs -->
125
- <?php
126
- endwhile;
127
- endif;
128
- }
129
- }
130
- }
131
- include(RTMediaTemplate::locate_template( $template ));
132
- if ( ! $ajax ) {
133
- if ( $template_type == 'buddypress' && (bp_displayed_user_id() || bp_is_group()) ) {
134
-
135
- if ( bp_is_group() ) {
136
- do_action( 'bp_after_group_media' );
137
- do_action( 'bp_after_group_body' );
138
-
139
- }
140
- if ( bp_displayed_user_id() ) {
141
- do_action( 'bp_after_member_media' );
142
- do_action( 'bp_after_member_body' );
143
-
144
- }
145
- ?>
146
-
147
-
148
-
149
-
150
- </div>
151
- </div>
152
- </div>
153
-
154
- <?php
155
- if ( ! $ajax ) {
156
- ?>
157
- </div>
158
- <?php
159
- }
160
- }
161
- get_sidebar( $template_type );
162
-
163
- get_footer( $template_type );
164
- }
165
- ?>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
app/services/RTMediaEncoding.php DELETED
@@ -1,782 +0,0 @@
1
- <?php
2
-
3
- /**
4
- * Description of BPMediaEncoding
5
- *
6
- * @author Joshua Abenazer <joshua.abenazer@rtcamp.com>
7
- */
8
- class RTMediaEncoding {
9
-
10
- protected $api_url = 'http://api.rtcamp.com/';
11
- protected $sandbox_testing = 0;
12
- protected $merchant_id = 'paypal@rtcamp.com';
13
- public $uploaded = array();
14
- public $api_key = false;
15
- public $stored_api_key = false;
16
- public $video_extensions = ',mov,m4v,m2v,avi,mpg,flv,wmv,mkv,webm,ogv,mxf,asf,vob,mts,qt,mpeg,x-msvideo';
17
- public $music_extensions = ',wma,ogg,wav,m4a';
18
-
19
- public function __construct( $no_init = false ) {
20
- $this->api_key = get_site_option( 'rtmedia-encoding-api-key' );
21
- $this->stored_api_key = get_site_option( 'rtmedia-encoding-api-key-stored' );
22
- if ( $no_init ) {
23
- return;
24
- }
25
- if ( is_admin() && $this->api_key ) {
26
- add_action( 'rtmedia_before_default_admin_widgets', array( $this, 'usage_widget' ) );
27
- }
28
-
29
- add_action( 'admin_init', array( $this, 'save_api_key' ), 1 );
30
- if ( $this->api_key ) {
31
- // store api key as different db key if user disable encoding service
32
- if ( ! $this->stored_api_key ) {
33
- $this->stored_api_key = $this->api_key;
34
- update_site_option( 'rtmedia-encoding-api-key-stored', $this->stored_api_key );
35
- }
36
- add_filter( 'rtmedia_allowed_types', array( $this, 'allowed_types_admin_settings' ), 10, 1 );
37
- $usage_info = get_site_option( 'rtmedia-encoding-usage' );
38
-
39
- if ( $usage_info ) {
40
- if ( isset( $usage_info[ $this->api_key ]->status ) && $usage_info[ $this->api_key ]->status ) {
41
- if ( isset( $usage_info[ $this->api_key ]->remaining ) && $usage_info[ $this->api_key ]->remaining > 0 ) {
42
- if ( $usage_info[ $this->api_key ]->remaining < 524288000 && ! get_site_option( 'rtmedia-encoding-usage-limit-mail' ) ) {
43
- $this->nearing_usage_limit( $usage_info );
44
- } elseif ( $usage_info[ $this->api_key ]->remaining > 524288000 && get_site_option( 'rtmedia-encoding-usage-limit-mail' ) ) {
45
- update_site_option( 'rtmedia-encoding-usage-limit-mail', 0 );
46
- }
47
- if ( ! class_exists( 'RTMediaFFMPEG' ) && ! class_exists( 'RTMediaKaltura' ) ) {
48
- add_filter( 'rtmedia_after_add_media', array( $this, 'encoding' ), 10, 3 );
49
- }
50
- $blacklist = array( 'localhost', '127.0.0.1' );
51
- if ( ! in_array( wp_unslash( $_SERVER['HTTP_HOST'] ), $blacklist, true ) ) { // @codingStandardsIgnoreLine
52
- add_filter( 'rtmedia_plupload_files_filter', array( $this, 'allowed_types' ), 10, 1 );
53
- add_filter( 'rtmedia_allowed_types', array(
54
- $this,
55
- 'allowed_types_admin_settings',
56
- ), 10, 1 );
57
- add_filter( 'rtmedia_valid_type_check', array( $this, 'bypass_video_audio' ), 10, 2 );
58
- }
59
- }
60
- }
61
- }
62
- }
63
-
64
- add_action( 'init', array( $this, 'handle_callback' ), 20 );
65
- add_action( 'wp_ajax_rtmedia_free_encoding_subscribe', array( $this, 'free_encoding_subscribe' ) );
66
- add_action( 'wp_ajax_rtmedia_unsubscribe_encoding_service', array( $this, 'unsubscribe_encoding' ) );
67
- add_action( 'wp_ajax_rtmedia_hide_encoding_notice', array( $this, 'hide_encoding_notice' ), 1 );
68
- add_action( 'wp_ajax_rtmedia_enter_api_key', array( $this, 'enter_api_key' ), 1 );
69
- add_action( 'wp_ajax_rtmedia_disable_encoding', array( $this, 'disable_encoding' ), 1 );
70
- add_action( 'wp_ajax_rtmedia_enable_encoding', array( $this, 'enable_encoding' ), 1 );
71
- //add_action('wp_ajax_rtmedia_regenerate_thumbnails', array($this, 'rtmedia_regenerate_thumbnails'), 1);
72
- }
73
-
74
- /**
75
- *
76
- * @param type $media_ids
77
- * @param type $file_object
78
- * @param type $uploaded
79
- * @param string $autoformat thumbnails for genrating thumbs only
80
- */
81
- function encoding( $media_ids, $file_object, $uploaded, $autoformat = true ) {
82
- foreach ( $file_object as $key => $single ) {
83
- $type_arry = explode( '.', $single['url'] );
84
- $type = strtolower( $type_arry[ count( $type_arry ) - 1 ] );
85
- $not_allowed_type = array( 'mp3' );
86
- if ( preg_match( '/video|audio/i', $single['type'], $type_array ) && ! in_array( $single['type'], array( 'audio/mp3' ) ) && ! in_array( $type, $not_allowed_type ) ) {
87
- $options = rtmedia_get_site_option( 'rtmedia-options' );
88
- $options_vedio_thumb = $options['general_videothumbs'];
89
- if ( '' === $options_vedio_thumb ) {
90
- $options_vedio_thumb = 3;
91
- }
92
-
93
- /** fORMAT * */
94
- if ( 'video/mp4' === $single['type'] || 'mp4' === $type ) {
95
- $autoformat = 'thumbnails';
96
- }
97
-
98
- $query_args = array(
99
- 'url' => urlencode( $single['url'] ),
100
- 'callbackurl' => urlencode( trailingslashit( home_url() ) . 'index.php' ),
101
- 'force' => 0,
102
- 'size' => filesize( $single['file'] ),
103
- 'formats' => ( true === $autoformat ) ? ( ( 'video' === $type_array[0] ) ? 'mp4' : 'mp3' ) : $autoformat,
104
- 'thumbs' => $options_vedio_thumb,
105
- 'rt_id' => $media_ids[ $key ],
106
- );
107
- $encoding_url = $this->api_url . 'job/new/';
108
- $upload_url = add_query_arg( $query_args, $encoding_url . $this->api_key );
109
- $upload_page = wp_remote_get( $upload_url, array( 'timeout' => 200 ) );
110
-
111
- if ( ! is_wp_error( $upload_page ) && ( ! isset( $upload_page['headers']['status'] ) || ( isset( $upload_page['headers']['status'] ) && ( 200 === intval( $upload_page['headers']['status'] ) ) ) ) ) {
112
- $upload_info = json_decode( $upload_page['body'] );
113
- if ( isset( $upload_info->status ) && $upload_info->status && isset( $upload_info->job_id ) && $upload_info->job_id ) {
114
- $job_id = $upload_info->job_id;
115
- update_rtmedia_meta( $media_ids[ $key ], 'rtmedia-encoding-job-id', $job_id );
116
- $model = new RTMediaModel();
117
- $model->update( array( 'cover_art' => '0' ), array( 'id' => $media_ids[ $key ] ) );
118
- }
119
- }
120
- $this->update_usage( $this->api_key );
121
- }
122
- }
123
- }
124
-
125
- public function bypass_video_audio( $flag, $file ) {
126
- if ( isset( $file['type'] ) ) {
127
- $fileinfo = explode( '/', $file['type'] );
128
- if ( in_array( $fileinfo[0], array( 'audio', 'video' ), true ) ) {
129
- $flag = true;
130
- }
131
- }
132
-
133
- return $flag;
134
- }
135
-
136
- public function is_valid_key( $key ) {
137
- $validate_url = trailingslashit( $this->api_url ) . 'api/validate/' . $key;
138
- $validation_page = wp_remote_get( $validate_url, array( 'timeout' => 20 ) );
139
- if ( ! is_wp_error( $validation_page ) ) {
140
- $validation_info = json_decode( $validation_page['body'] );
141
- $status = $validation_info->status;
142
- } else {
143
- $status = false;
144
- }
145
-
146
- return $status;
147
- }
148
-
149
- public function update_usage( $key ) {
150
- $usage_url = trailingslashit( $this->api_url ) . 'api/usage/' . $key;
151
- $usage_page = wp_remote_get( $usage_url, array( 'timeout' => 20 ) );
152
- if ( ! is_wp_error( $usage_page ) ) {
153
- $usage_info = json_decode( $usage_page['body'] );
154
- } else {
155
- $usage_info = null;
156
- }
157
- update_site_option( 'rtmedia-encoding-usage', array( $key => $usage_info ) );
158
-
159
- return $usage_info;
160
- }
161
-
162
- public function nearing_usage_limit( $usage_details ) {
163
- $subject = esc_html__( 'rtMedia Encoding: Nearing quota limit.', 'buddypress-media' );
164
- $message = '<p>' . esc_html__( 'You are nearing the quota limit for your rtMedia encoding service.', 'buddypress-media' ) . '</p><p>'
165
- . esc_html__( 'Following are the details:', 'buddypress-media' ) . '</p><p><strong>Used:</strong> %s</p><p><strong>'
166
- . esc_html__( 'Remaining', 'buddypress-media' ) . '</strong>: %s</p><p><strong>' . esc_html__( 'Total:', 'buddypress-media' ) . '</strong> %s</p>';
167
- $users = get_users( array( 'role' => 'administrator' ) );
168
- if ( $users ) {
169
- $admin_email_ids = array();
170
- foreach ( $users as $user ) {
171
- $admin_email_ids[] = $user->user_email;
172
- }
173
-
174
- add_filter( 'wp_mail_content_type', array($this,'rtmedia_mail_content_type'));
175
- wp_mail( $admin_email_ids, $subject, sprintf( $message, size_format( $usage_details[ $this->api_key ]->used, 2 ), size_format( $usage_details[ $this->api_key ]->remaining, 2 ), size_format( $usage_details[ $this->api_key ]->total, 2 ) ) );
176
- }
177
- update_site_option( 'rtmedia-encoding-usage-limit-mail', 1 );
178
- }
179
-
180
- public function usage_quota_over() {
181
- $usage_details = get_site_option( 'rtmedia-encoding-usage' );
182
- if ( ! $usage_details[ $this->api_key ]->remaining ) {
183
- $subject = esc_html__( 'rtMedia Encoding: Usage quota over.', 'buddypress-media' );
184
- $message = '<p>' . esc_html__( 'Your usage quota is over. Upgrade your plan' , 'buddypress-media' ) . '</p><p>' .
185
- esc_html__( 'Following are the details:', 'buddypress-media' ) . '</p><p><strong>' . esc_html__( 'Used:' , 'buddypress-media' ) .
186
- '</strong> %s</p><p><strong>' . esc_html__( 'Remaining' , 'buddypress-media' ) . '</strong>: %s</p><p><strong>' . esc_html__( 'Total:', 'buddypress-media' ) . '</strong> %s</p>';
187
- $users = get_users( array( 'role' => 'administrator' ) );
188
- if ( $users ) {
189
- foreach ( $users as $user ) {
190
- $admin_email_ids[] = $user->user_email;
191
- }
192
-
193
- add_filter( 'wp_mail_content_type', array($this,'rtmedia_mail_content_type'));
194
- wp_mail( $admin_email_ids, $subject, sprintf( $message, size_format( $usage_details[ $this->api_key ]->used, 2 ), 0, size_format( $usage_details[ $this->api_key ]->total, 2 ) ) );
195
- }
196
- update_site_option( 'rtmedia-encoding-usage-limit-mail', 1 );
197
- }
198
- }
199
-
200
- public function rtmedia_mail_content_type() {
201
- return 'text/html';
202
- }
203
-
204
- public function save_api_key() {
205
- if ( isset( $_GET['api_key_updated'] ) && sanitize_text_field( wp_unslash( $_GET['api_key_updated'] ) ) ) {
206
- if ( is_multisite() ) {
207
- add_action( 'network_admin_notices', array( $this, 'successfully_subscribed_notice' ) );
208
- }
209
-
210
- add_action( 'admin_notices', array( $this, 'successfully_subscribed_notice' ) );
211
- }
212
-
213
- $apikey = ( isset( $_GET['apikey'] ) ) ? sanitize_text_field( wp_unslash( $_GET['apikey'] ) ) : '';
214
- if ( isset( $_GET['apikey'] ) && is_admin() && isset( $_GET['page'] ) && ( 'rtmedia-addons' === sanitize_text_field( wp_unslash( $_GET['page'] ) ) ) && $this->is_valid_key( $apikey ) ) {
215
- if ( $this->api_key && ! ( isset( $_GET['update'] ) && sanitize_text_field( wp_unslash( $_GET['update'] ) ) ) ) {
216
- $unsubscribe_url = trailingslashit( $this->api_url ) . 'api/cancel/' . $this->api_key;
217
- wp_remote_post( $unsubscribe_url, array(
218
- 'timeout' => 120,
219
- 'body' => array( 'note' => 'Direct URL Input (API Key: ' . $apikey . ')' ),
220
- ) );
221
- }
222
-
223
- update_site_option( 'rtmedia-encoding-api-key', $apikey );
224
- update_site_option( 'rtmedia-encoding-api-key-stored', $apikey );
225
-
226
- $usage_info = $this->update_usage( $apikey );
227
- $return_page = add_query_arg( array(
228
- 'page' => 'rtmedia-addons',
229
- 'api_key_updated' => $usage_info->plan->name,
230
- ), admin_url( 'admin.php' ) );
231
- wp_safe_redirect( esc_url_raw( $return_page ) );
232
-
233
- die();
234
- }
235
- }
236
-
237
- public function allowed_types( $types ) {
238
- if ( isset( $types[0] ) && isset( $types[0]['extensions'] ) ) {
239
- if ( is_rtmedia_upload_video_enabled() && strpos( $this->video_extensions, $types[0]['extensions'] ) ) {
240
- $types[0]['extensions'] .= $this->video_extensions; //Allow all types of video file to be uploded
241
- }
242
- if ( is_rtmedia_upload_music_enabled() && strpos( $this->music_extensions, $types[0]['extensions'] ) ) {
243
- $types[0]['extensions'] .= $this->music_extensions; //Allow all types of music file to be uploded
244
- }
245
- }
246
-
247
- return $types;
248
- }
249
-
250
- public function allowed_types_admin_settings( $types ) {
251
- $allowed_video_string = implode( ',', $types['video']['extn'] );
252
- $allowed_audio_string = implode( ',', $types['music']['extn'] );
253
- $allowed_video = explode( ',', $allowed_video_string . $this->video_extensions );
254
- $allowed_audio = explode( ',', $allowed_audio_string . $this->music_extensions );
255
- $types['video']['extn'] = array_unique( $allowed_video );
256
- $types['music']['extn'] = array_unique( $allowed_audio );
257
-
258
- return $types;
259
- }
260
-
261
- public function successfully_subscribed_notice() {
262
- ?>
263
- <div class="updated">
264
- <p> <?php esc_html_e( 'You have successfully subscribed for the ', 'buddypress-media' ) ?>
265
- <strong><?php printf( '%s', esc_html( sanitize_text_field( wp_unslash( $_GET['api_key_updated'] ) ) ) ); // @codingStandardsIgnoreLine ?></strong>
266
- <?php esc_html_e( ' plan', 'buddypress-media' ) ?>
267
- </p>
268
- </div><?php
269
- }
270
-
271
- public function encoding_subscription_form( $name = 'No Name', $price = '0', $force = false ) {
272
- if ( $this->api_key ) {
273
- $this->update_usage( $this->api_key );
274
- }
275
- $action = $this->sandbox_testing ? 'https://sandbox.paypal.com/cgi-bin/webscr' : 'https://www.paypal.com/cgi-bin/webscr';
276
- $return_page = esc_url( add_query_arg( array( 'page' => 'rtmedia-addons' ), ( is_multisite() ? network_admin_url( 'admin.php' ) : admin_url( 'admin.php' ) ) ) );
277
-
278
- $usage_details = get_site_option( 'rtmedia-encoding-usage' );
279
- if ( isset( $usage_details[ $this->api_key ]->plan->name ) && ( strtolower( $usage_details[ $this->api_key ]->plan->name ) === strtolower( $name ) ) && $usage_details[ $this->api_key ]->sub_status && ! $force ) {
280
- $form = '<button data-plan="' . esc_attr( $name ) . '" data-price="' . esc_attr( $price ) . '" type="submit" class="button bpm-unsubscribe">' . esc_html__( 'Unsubscribe', 'buddypress-media' ) . '</button>';
281
- $form .= '<div id="bpm-unsubscribe-dialog" title="Unsubscribe">
282
- <p>' . esc_html__( 'Just to improve our service we would like to know the reason for you to leave us.', 'buddypress-media' ) . '</p>
283
- <p><textarea rows="3" cols="36" id="bpm-unsubscribe-note"></textarea></p>
284
- </div>';
285
- } else {
286
- $form = '<form method="post" action="' . $action . '" class="paypal-button" target="_top">
287
- <input type="hidden" name="button" value="subscribe">
288
- <input type="hidden" name="item_name" value="' . esc_attr( ucfirst( $name ) ) . '">
289
-
290
- <input type="hidden" name="currency_code" value="USD">
291
-
292
-
293
- <input type="hidden" name="a3" value="' . esc_attr( $price ) . '">
294
- <input type="hidden" name="p3" value="1">
295
- <input type="hidden" name="t3" value="M">
296
-
297
- <input type="hidden" name="cmd" value="_xclick-subscriptions">
298
-
299
- <!-- Merchant ID -->
300
- <input type="hidden" name="business" value="' . esc_attr( $this->merchant_id ) . '">
301
-
302
-
303
- <input type="hidden" name="custom" value="' . esc_url( $return_page ) . '">
304
-
305
- <!-- Flag to no shipping -->
306
- <input type="hidden" name="no_shipping" value="1">
307
-
308
- <input type="hidden" name="notify_url" value="' . esc_url( trailingslashit( $this->api_url ) ) . 'subscribe/paypal">
309
-
310
- <!-- Flag to post payment return url -->
311
- <input type="hidden" name="return" value="' . esc_url( trailingslashit( $this->api_url ) ) . 'payment/process">
312
-
313
-
314
- <!-- Flag to post payment data to given return url -->
315
- <input type="hidden" name="rm" value="2">
316
-
317
- <input type="hidden" name="src" value="1">
318
- <input type="hidden" name="sra" value="1">
319
-
320
- <input type="image" src="http://www.paypal.com/en_US/i/btn/btn_subscribe_SM.gif" name="submit" alt="Make payments with PayPal - it\'s fast, free and secure!">
321
- </form>';
322
- }
323
-
324
- return $form;
325
- }
326
-
327
- public function usage_widget() {
328
- $usage_details = get_site_option( 'rtmedia-encoding-usage' );
329
- $content = '';
330
- if ( $usage_details && isset( $usage_details[ $this->api_key ]->status ) && $usage_details[ $this->api_key ]->status ) {
331
- if ( isset( $usage_details[ $this->api_key ]->plan->name ) ) {
332
- $content .= '<p><strong>' . esc_html__( 'Current Plan', 'buddypress-media' ) . ':</strong> ' . esc_html( $usage_details[ $this->api_key ]->plan->name ) . ( $usage_details[ $this->api_key ]->sub_status ? '' : ' (' . esc_html__( 'Unsubscribed', 'buddypress-media' ) . ')' ) . '</p>';
333
- }
334
- if ( isset( $usage_details[ $this->api_key ]->used ) ) {
335
- $content .= '<p><span class="encoding-used"></span><strong>' . esc_html__( 'Used', 'buddypress-media' ) . ':</strong> ' . ( ( $used_size = size_format( $usage_details[ $this->api_key ]->used, 2 ) ) ? esc_html( $used_size ) : '0MB' ) . '</p>';
336
- }
337
- if ( isset( $usage_details[ $this->api_key ]->remaining ) ) {
338
- $content .= '<p><span class="encoding-remaining"></span><strong>' . esc_html__( 'Remaining', 'buddypress-media' ) . ':</strong> ' . ( ( $remaining_size = size_format( $usage_details[ $this->api_key ]->remaining, 2 ) ) ? esc_html( $remaining_size ) : '0MB' ) . '</p>';
339
- }
340
- if ( isset( $usage_details[ $this->api_key ]->total ) ) {
341
- $content .= '<p><strong>' . esc_html__( 'Total', 'buddypress-media' ) . ':</strong> ' . esc_html( size_format( $usage_details[ $this->api_key ]->total, 2 ) ) . '</p>';
342
- }
343
- $usage = new rtProgress();
344
- $content .= $usage->progress_ui( $usage->progress( $usage_details[ $this->api_key ]->used, $usage_details[ $this->api_key ]->total ), false );
345
- if ( $usage_details[ $this->api_key ]->remaining <= 0 ) {
346
- $content .= '<div class="error below-h2"><p>' . esc_html__( 'Your usage limit has been reached. Upgrade your plan.', 'buddypress-media' ) . '</p></div>';
347
- }
348
- } else {
349
- $content .= '<div class="error below-h2"><p>' . esc_html__( 'Your API key is not valid or is expired.', 'buddypress-media' ) . '</p></div>';
350
- }
351
- new RTMediaAdminWidget( 'rtmedia-encoding-usage', esc_html__( 'Encoding Usage', 'buddypress-media' ), $content );
352
- }
353
-
354
- public function encoding_service_intro() {
355
- ?>
356
-
357
- <h3 class="rtm-option-title"><?php esc_html_e( 'Audio/Video encoding service', 'buddypress-media' ); ?></h3>
358
-
359
- <p><?php esc_html_e( 'rtMedia team has started offering an audio/video encoding service.', 'buddypress-media' ); ?></p>
360
-
361
- <p>
362
- <label for="new-api-key"><?php esc_html_e( 'Enter API KEY', 'buddypress-media' ); ?></label>
363
- <input id="new-api-key" type="text" name="new-api-key" value="<?php echo esc_attr( $this->stored_api_key ); ?>"
364
- size="60"/>
365
- <input type="submit" id="api-key-submit" name="api-key-submit"
366
- value="<?php echo esc_attr__( 'Save Key', 'buddypress-media' ); ?>" class="button-primary"/>
367
- </p>
368
-
369
- <p>
370
- <?php
371
- $enable_btn_style = 'style="display:none;"';
372
- $disable_btn_style = 'style="display:none;"';
373
- if ( $this->api_key ) {
374
- $enable_btn_style = 'style="display:block;"';
375
- } else if ( $this->stored_api_key ) {
376
- $disable_btn_style = 'style="display:block;"';
377
- }
378
- ?>
379
- <input type="submit" id="disable-encoding" name="disable-encoding" value="Disable Encoding"
380
- class="button-secondary" <?php echo $enable_btn_style; // @codingStandardsIgnoreLine?> />
381
- <input type="submit" id="enable-encoding" name="enable-encoding" value="Enable Encoding"
382
- class="button-secondary" <?php echo $disable_btn_style; // @codingStandardsIgnoreLine ?> />
383
- </p>
384
-
385
- <!-- Results table headers -->
386
- <table class="bp-media-encoding-table fixed widefat rtm-encoding-table">
387
- <thead>
388
- <tr>
389
- <th><?php esc_html_e( 'Feature\Plan', 'buddypress-media' ); ?></th>
390
- <th><?php esc_html_e( 'Free', 'buddypress-media' ); ?></th>
391
- <th><?php esc_html_e( 'Silver', 'buddypress-media' ); ?></th>
392
- <th><?php esc_html_e( 'Gold', 'buddypress-media' ); ?></th>
393
- <th><?php esc_html_e( 'Platinum', 'buddypress-media' ); ?></th>
394
- </tr>
395
- </thead>
396
-
397
- <tbody>
398
- <tr>
399
- <th><?php esc_html_e( 'File Size Limit', 'buddypress-media' ); ?></th>
400
- <td>200MB (
401
- <del>20MB</del>
402
- )
403
- </td>
404
- <td colspan="3" class="column-posts">16GB (
405
- <del>2GB</del>
406
- )
407
- </td>
408
- </tr>
409
- <tr>
410
- <th><?php esc_html_e( 'Bandwidth (monthly)', 'buddypress-media' ); ?></th>
411
- <td>10GB (
412
- <del>1GB</del>
413
- )
414
- </td>
415
- <td>100GB</td>
416
- <td>1TB</td>
417
- <td>10TB</td>
418
- </tr>
419
- <tr>
420
- <th><?php esc_html_e( 'Overage Bandwidth', 'buddypress-media' ); ?></th>
421
- <td><?php esc_html_e( 'Not Available', 'buddypress-media' ); ?></td>
422
- <td>$0.10 per GB</td>
423
- <td>$0.08 per GB</td>
424
- <td>$0.05 per GB</td>
425
- </tr>
426
- <tr>
427
- <th><?php esc_html_e( 'Amazon S3 Support', 'buddypress-media' ); ?></th>
428
- <td><?php esc_html_e( 'Not Available', 'buddypress-media' ); ?></td>
429
- <td colspan="3" class="column-posts"><?php esc_html_e( 'Coming Soon', 'buddypress-media' ); ?></td>
430
- </tr>
431
- <tr>
432
- <th><?php esc_html_e( 'HD Profile', 'buddypress-media' ); ?></th>
433
- <td><?php esc_html_e( 'Not Available', 'buddypress-media' ); ?></td>
434
- <td colspan="3" class="column-posts"><?php esc_html_e( 'Coming Soon', 'buddypress-media' ); ?></td>
435
- </tr>
436
- <tr>
437
- <th><?php esc_html_e( 'Webcam Recording', 'buddypress-media' ); ?></th>
438
- <td colspan="4" class="column-posts"><?php esc_html_e( 'Coming Soon', 'buddypress-media' ); ?></td>
439
- </tr>
440
- <tr>
441
- <th><?php esc_html_e( 'Pricing', 'buddypress-media' ); ?></th>
442
- <td><?php esc_html_e( 'Free', 'buddypress-media' ); ?></td>
443
- <td><?php esc_html_e( '$9/month', 'buddypress-media' ); ?></td>
444
- <td><?php esc_html_e( '$99/month', 'buddypress-media' ); ?></td>
445
- <td><?php esc_html_e( '$999/month', 'buddypress-media' ); ?></td>
446
- </tr>
447
- <tr>
448
- <th>&nbsp;</th>
449
- <td><?php
450
- $usage_details = get_site_option( 'rtmedia-encoding-usage' );
451
- if ( isset( $usage_details[ $this->api_key ]->plan->name ) && ( strtolower( $usage_details[ $this->api_key ]->plan->name ) === 'free' ) ) {
452
- echo '<button disabled="disabled" type="submit" class="encoding-try-now button button-primary">' . esc_html__( 'Current Plan', 'buddypress-media' ) . '</button>';
453
- } else {
454
- ?>
455
- <form id="encoding-try-now-form" method="get">
456
- <button type="submit"
457
- class="encoding-try-now button button-primary"><?php esc_html_e( 'Try Now', 'buddypress-media' ); ?></button>
458
- </form><?php }
459
- ?>
460
- </td>
461
- <td><?php echo $this->encoding_subscription_form( 'silver', 9.0 ); // @codingStandardsIgnoreLine ?></td>
462
- <td><?php echo $this->encoding_subscription_form( 'gold', 99.0 ); // @codingStandardsIgnoreLine ?></td>
463
- <td><?php echo $this->encoding_subscription_form( 'platinum', 999.0 ); // @codingStandardsIgnoreLine ?></td>
464
- </tr>
465
- </tbody>
466
- </table><br/><?php
467
- }
468
-
469
- public function add_media_thumbnails( $post_id ) {
470
- $post_info = get_post( $post_id );
471
- $post_date_string = new DateTime( $post_info->post_date );
472
- $post_date = $post_date_string->format( 'Y-m-d G:i:s' );
473
- $post_date_thumb_string = new DateTime( $post_info->post_date );
474
- $post_date_thumb = $post_date_thumb_string->format( 'Y/m/' );
475
- $post_thumbs = get_post_meta( $post_id, 'rtmedia_encode_response', true );
476
- $post_thumbs_array = maybe_unserialize( $post_thumbs );
477
- $largest_thumb_size = 0;
478
- $model = new RTMediaModel();
479
- $media = $model->get( array( 'media_id' => $post_id ) );
480
- $media_id = $media[0]->id;
481
- $largest_thumb = false;
482
- $upload_thumbnail_array = array();
483
- foreach ( $post_thumbs_array['thumbs'] as $thumbs => $thumbnail ) {
484
- $thumbresource = wp_remote_get( $thumbnail );
485
- $thumbinfo = pathinfo( $thumbnail );
486
- $temp_name = $thumbinfo['basename'];
487
- $temp_name = urldecode( $temp_name );
488
- $temp_name_array = explode( '/', $temp_name );
489
- $temp_name = $temp_name_array[ count( $temp_name_array ) - 1 ];
490
- $thumbinfo['basename'] = $temp_name;
491
- $thumb_upload_info = wp_upload_bits( $thumbinfo['basename'], null, $thumbresource['body'] );
492
- $upload_thumbnail_array[] = $thumb_upload_info['url'];
493
-
494
- $current_thumb_size = @filesize( $thumb_upload_info['url'] );
495
- if ( $current_thumb_size >= $largest_thumb_size ) {
496
- $largest_thumb_size = $current_thumb_size;
497
- $largest_thumb = $thumb_upload_info['url'];
498
- $model->update( array( 'cover_art' => $thumb_upload_info['url'] ), array( 'media_id' => $post_id ) );
499
- }
500
- }
501
- update_activity_after_thumb_set( $media_id );
502
- update_post_meta( $post_id, 'rtmedia_media_thumbnails', $upload_thumbnail_array );
503
-
504
- return $largest_thumb;
505
- }
506
-
507
- /**
508
- * Function to handle the callback request by the FFMPEG encoding server
509
- *
510
- * @since 1.0
511
- */
512
- public function handle_callback() {
513
- require_once( ABSPATH . 'wp-admin/includes/image.php' );
514
- //todo: nonce required
515
- // @codingStandardsIgnoreStart
516
- if ( isset( $_REQUEST['job_id'] ) && isset( $_REQUEST['download_url'] ) ) {
517
- $has_thumbs = isset( $_POST['thumbs'] ) ? true : false;
518
- $flag = false;
519
- global $wpdb;
520
- $model = new RTDBModel( 'rtm_media_meta', false, 10, true );
521
- $meta_details = $model->get( array(
522
- 'meta_value' => sanitize_text_field( wp_unslash( $_REQUEST['job_id'] ) ),
523
- 'meta_key' => 'rtmedia-encoding-job-id',
524
- ) );
525
- if ( ! isset( $meta_details[0] ) ) {
526
- $id = intval( $_REQUEST['rt_id'] );
527
- } else {
528
- $id = $meta_details[0]->media_id;
529
- }
530
- if ( isset( $id ) && is_numeric( $id ) ) {
531
- $model = new RTMediaModel();
532
- $media = $model->get_media( array( 'id' => $id ), 0, 1 );
533
- $this->media_author = $media[0]->media_author;
534
- $attachment_id = $media[0]->media_id;
535
- update_post_meta( $attachment_id, 'rtmedia_encode_response', $_POST );
536
-
537
- if ( $has_thumbs ) {
538
- $cover_art = $this->add_media_thumbnails( $attachment_id );
539
- }
540
-
541
- if ( isset( $_POST['format'] ) && 'thumbnails' === sanitize_text_field( wp_unslash( $_POST['format'] ) ) ) {
542
- die();
543
- }
544
-
545
- $this->uploaded['context'] = $media[0]->context;
546
- $this->uploaded['context_id'] = $media[0]->context_id;
547
- $this->uploaded['media_author'] = $media[0]->media_author;
548
- $attachemnt_post = get_post( $attachment_id );
549
- $download_url = urldecode( urldecode( $_REQUEST['download_url'] ) );
550
- $new_wp_attached_file_pathinfo = pathinfo( $download_url );
551
- $post_mime_type = 'mp4' === $new_wp_attached_file_pathinfo['extension'] ? 'video/mp4' : 'audio/mp3';
552
- try {
553
- $file_bits = file_get_contents( $download_url );
554
- } catch ( Exception $e ) {
555
- $flag = $e->getMessage();
556
- }
557
- if ( $file_bits ) {
558
-
559
- $old_attachment_file = get_attached_file( $attachment_id );
560
- if( function_exists( 'wp_delete_file' ) ){ // wp_delete_file is introduced in WordPress 4.2
561
- wp_delete_file( $old_attachment_file );
562
- } else {
563
- unlink( $old_attachment_file );
564
- }
565
-
566
- add_filter( 'upload_dir', array( $this, 'upload_dir' ) );
567
- $upload_info = wp_upload_bits( $new_wp_attached_file_pathinfo['basename'], null, $file_bits );
568
- $wpdb->update( $wpdb->posts, array(
569
- 'guid' => $upload_info['url'],
570
- 'post_mime_type' => $post_mime_type,
571
- ), array( 'ID' => $attachment_id ) );
572
- $old_wp_attached_file = get_post_meta( $attachment_id, '_wp_attached_file', true );
573
- $old_wp_attached_file_pathinfo = pathinfo( $old_wp_attached_file );
574
- update_post_meta( $attachment_id, '_wp_attached_file', str_replace( $old_wp_attached_file_pathinfo['basename'], $new_wp_attached_file_pathinfo['basename'], $old_wp_attached_file ) );
575
-
576
- $activity_id = $media[0]->activity_id;
577
- if ( $activity_id ) {
578
- $content = $wpdb->get_var( $wpdb->prepare( "SELECT content FROM {$wpdb->base_prefix}bp_activity WHERE id = %d", $activity_id ) );
579
- $activity_content = str_replace( $attachemnt_post->guid, $upload_info['url'], $content );
580
- $wpdb->update( $wpdb->base_prefix . 'bp_activity', array( 'content' => $activity_content ), array( 'id' => $activity_id ) );
581
- }
582
- } else {
583
- $flag = esc_html__( 'Could not read file.', 'buddypress-media' );
584
- error_log( $flag );
585
- }
586
- } else {
587
- $flag = esc_html__( 'Something went wrong. The required attachment id does not exists. It must have been deleted.', 'buddypress-media' );
588
- error_log( $flag );
589
- }
590
- // @codingStandardsIgnoreEnd
591
- $this->update_usage( $this->api_key );
592
-
593
- if ( isset( $_SERVER['REMOTE_ADDR'] ) && ( '4.30.110.155' === $_SERVER['REMOTE_ADDR'] ) ) {
594
- $mail = true;
595
- } else {
596
- $mail = false;
597
- }
598
-
599
- if ( $flag && $mail ) {
600
- $download_link = esc_url( add_query_arg( array(
601
- 'job_id' => sanitize_text_field( wp_unslash( $_GET['job_id'] ) ),
602
- 'download_url' => esc_url( $_GET['download_url'] ), // @codingStandardsIgnoreLine
603
- ), home_url() ) );
604
- $subject = esc_html__( 'rtMedia Encoding: Download Failed', 'buddypress-media' );
605
- $message = '<p><a href="' . esc_url( get_edit_post_link( $attachment_id ) ) . '">' . esc_html__( 'Media', 'buddypress-media' ) . '</a> ' .
606
- esc_html__( ' was successfully encoded but there was an error while downloading:', 'buddypress-media' ) . '</p><p><code>' .
607
- esc_html( $flag ) . '</code></p><p>' . esc_html__( 'You can ', 'buddypress-media' ) . '<a href="' . esc_url( $download_link ) . '">'
608
- . esc_html__( 'retry the download', 'buddypress-media' ) .'</a>.</p>';
609
- $users = get_users( array( 'role' => 'administrator' ) );
610
- if ( $users ) {
611
- foreach ( $users as $user ) {
612
- $admin_email_ids[] = $user->user_email;
613
- }
614
-
615
- add_filter( 'wp_mail_content_type', array($this,'rtmedia_mail_content_type'));
616
- wp_mail( $admin_email_ids, $subject, $message );
617
- }
618
- echo esc_html( $flag );
619
- } elseif ( $flag ) {
620
- echo esc_html( $flag );
621
- } else {
622
- esc_html_e( 'Done', 'buddypress-media' );
623
- }
624
- die();
625
- }
626
- }
627
-
628
- public function free_encoding_subscribe() {
629
- $email = get_site_option( 'admin_email' );
630
- $usage_details = get_site_option( 'rtmedia-encoding-usage' );
631
- if ( isset( $usage_details[ $this->api_key ]->plan->name ) && ( 'free' === strtolower( $usage_details[ $this->api_key ]->plan->name ) ) ) {
632
- echo wp_json_encode( array( 'error' => 'Your free subscription is already activated.' ) );
633
- } else {
634
- $free_subscription_url = esc_url_raw( add_query_arg( array( 'email' => urlencode( $email ) ), trailingslashit( $this->api_url ) . 'api/free/' ) );
635
- if ( $this->api_key ) {
636
- $free_subscription_url = esc_url_raw( add_query_arg( array(
637
- 'email' => urlencode( $email ),
638
- 'apikey' => $this->api_key,
639
- ), $free_subscription_url ) );
640
- }
641
- $free_subscribe_page = wp_remote_get( $free_subscription_url, array( 'timeout' => 120 ) );
642
- if ( ! is_wp_error( $free_subscribe_page ) && ( ! isset( $free_subscribe_page['headers']['status'] ) || ( isset( $free_subscribe_page['headers']['status'] ) && ( 200 === $free_subscribe_page['headers']['status'] ) ) ) ) {
643
- $subscription_info = json_decode( $free_subscribe_page['body'] );
644
- if ( isset( $subscription_info->status ) && $subscription_info->status ) {
645
- echo wp_json_encode( array( 'apikey' => $subscription_info->apikey ) );
646
- } else {
647
- echo wp_json_encode( array( 'error' => $subscription_info->message ) );
648
- }
649
- } else {
650
- echo wp_json_encode( array( 'error' => esc_html__( 'Something went wrong please try again.', 'buddypress-media' ) ) );
651
- }
652
- }
653
- die();
654
- }
655
-
656
- public function hide_encoding_notice() {
657
- update_site_option( 'rtmedia-encoding-service-notice', true );
658
- update_site_option( 'rtmedia-encoding-expansion-notice', true );
659
- echo true;
660
- die();
661
- }
662
-
663
- public function unsubscribe_encoding() {
664
- $unsubscribe_url = trailingslashit( $this->api_url ) . 'api/cancel/' . $this->api_key;
665
- $unsubscribe_page = wp_remote_post( $unsubscribe_url, array(
666
- 'timeout' => 120,
667
- 'body' => array( 'note' => sanitize_text_field( wp_unslash( $_GET['note'] ) ) ), // @codingStandardsIgnoreLine
668
- ) );
669
- if ( ! is_wp_error( $unsubscribe_page ) && ( ! isset( $unsubscribe_page['headers']['status'] ) || ( isset( $unsubscribe_page['headers']['status'] ) && ( 200 === $unsubscribe_page['headers']['status'] ) ) ) ) {
670
- $subscription_info = json_decode( $unsubscribe_page['body'] );
671
- if ( isset( $subscription_info->status ) && $subscription_info->status ) {
672
- echo wp_json_encode( array(
673
- 'updated' => esc_html__( 'Your subscription was cancelled successfully', 'buddypress-media' ),
674
- 'form' => $this->encoding_subscription_form( $_GET['plan'], $_GET['price'] ), // @codingStandardsIgnoreLine
675
- ) );
676
- }
677
- } else {
678
- echo wp_json_encode( array( 'error' => esc_html__( 'Something went wrong please try again.', 'buddypress-media' ) ) );
679
- }
680
- die();
681
- }
682
-
683
- public function enter_api_key() {
684
- if ( isset( $_GET['apikey'] ) && '' !== $_GET['apikey'] ) {
685
- echo wp_json_encode( array( 'apikey' => $_GET['apikey'] ) );
686
- } else {
687
- echo wp_json_encode( array( 'error' => esc_html__( 'Please enter the api key.', 'buddypress-media' ) ) );
688
- }
689
- die();
690
- }
691
-
692
- public function disable_encoding() {
693
- update_site_option( 'rtmedia-encoding-api-key', '' );
694
- esc_html_e( 'Encoding disabled successfully.', 'buddypress-media' );
695
- die();
696
- }
697
-
698
- function enable_encoding() {
699
- update_site_option( 'rtmedia-encoding-api-key', $this->stored_api_key );
700
- esc_html_e( 'Encoding enabled successfully.', 'buddypress-media' );
701
- die();
702
- }
703
-
704
- function upload_dir( $upload_dir ) {
705
- global $rtmedia_interaction, $rt_media_media;
706
- if ( isset( $this->uploaded['context'] ) && isset( $this->uploaded['context_id'] ) ) {
707
- if ( 'group' !== $this->uploaded['context'] ) {
708
- $rtmedia_upload_prefix = 'users/';
709
- $id = $this->uploaded['media_author'];
710
- } else {
711
- $rtmedia_upload_prefix = 'groups/';
712
- $id = $this->uploaded['context_id'];
713
- }
714
- } else {
715
- if ( 'group' !== $rtmedia_interaction->context->type ) {
716
- $rtmedia_upload_prefix = 'users/';
717
- $id = $this->uploaded['media_author'];
718
- } else {
719
- $rtmedia_upload_prefix = 'groups/';
720
- $id = $rtmedia_interaction->context->id;
721
- }
722
- }
723
-
724
- if ( ! $id ) {
725
- $id = $this->media_author;
726
- }
727
-
728
- $rtmedia_folder_name = apply_filters( 'rtmedia_upload_folder_name', 'rtMedia' );
729
-
730
- $upload_dir['path'] = trailingslashit( str_replace( $upload_dir['subdir'], '', $upload_dir['path'] ) )
731
- . $rtmedia_folder_name . '/' . $rtmedia_upload_prefix . $id . $upload_dir['subdir'];
732
- $upload_dir['url'] = trailingslashit( str_replace( $upload_dir['subdir'], '', $upload_dir['url'] ) )
733
- . $rtmedia_folder_name . '/' . $rtmedia_upload_prefix . $id
734
- . $upload_dir['subdir'];
735
-
736
- $upload_dir = apply_filters( 'rtmedia_filter_upload_dir', $upload_dir, $this->uploaded );
737
-
738
- return $upload_dir;
739
- }
740
-
741
- public function reencoding( $attachment, $autoformat = true ) {
742
- $rtmedia_model = new RTMediaModel();
743
- $media_array = $rtmedia_model->get( array( 'media_id' => $attachment ) );
744
- $media_id = $media_array[0]->id;
745
- $attached_file = get_post_meta( $attachment, '_wp_attached_file' );
746
- $upload_path = trim( get_option( 'upload_path' ) );
747
- if ( empty( $upload_path ) || 'wp-content/uploads' === $upload_path ) {
748
- $dir = WP_CONTENT_DIR . '/uploads';
749
- } elseif ( 0 !== strpos( $upload_path, ABSPATH ) ) {
750
- // $dir is absolute, $upload_path is (maybe) relative to ABSPATH
751
- $dir = path_join( ABSPATH, $upload_path );
752
- } else {
753
- $dir = $upload_path;
754
- }
755
- $file = trailingslashit( $dir ) . $attached_file[0];
756
- $url = wp_get_attachment_url( $attachment );
757
- $file_name_array = explode( '/', $url );
758
- $file_name = $file_name_array[ count( $file_name_array ) - 1 ];
759
- $file_object = array();
760
- $media_type = get_post_field( 'post_mime_type', $attachment );
761
- $media_type_array = explode( '/', $media_type );
762
- if ( 'video' === $media_type_array[0] ) {
763
- $file_object[] = array(
764
- 'file' => $file,
765
- 'url' => $url,
766
- 'name' => $file_name,
767
- 'type' => $media_type,
768
- );
769
- $this->encoding( array( $media_id ), $file_object, array(), $autoformat );
770
- }
771
- }
772
-
773
- function rtmedia_regenerate_thumbnails() {
774
- $this->reencoding( intval( $_REQUEST['rtreencoding'] ) );
775
- die();
776
- }
777
- }
778
-
779
- if ( isset( $_REQUEST['rtreencoding'] ) ) {
780
- $objRTMediaEncoding = new RTMediaEncoding( true );
781
- $objRTMediaEncoding->reencoding( intval( $_REQUEST['rtreencoding'] ) );
782
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
index.php CHANGED
@@ -3,7 +3,7 @@
3
  Plugin Name: rtMedia for WordPress, BuddyPress and bbPress
4
  Plugin URI: https://rtmedia.io/?utm_source=dashboard&utm_medium=plugin&utm_campaign=buddypress-media
5
  Description: This plugin adds missing media rich features like photos, videos and audio uploading to BuddyPress which are essential if you are building social network, seriously!
6
- Version: 4.5.9
7
  Author: rtCamp
8
  Text Domain: buddypress-media
9
  Author URI: http://rtcamp.com/?utm_source=dashboard&utm_medium=plugin&utm_campaign=buddypress-media
@@ -22,7 +22,7 @@ if ( ! defined( 'RTMEDIA_VERSION' ) ) {
22
  * The version of the plugin
23
  *
24
  */
25
- define( 'RTMEDIA_VERSION', '4.5.9' );
26
  }
27
 
28
  if ( ! defined( 'RTMEDIA_PATH' ) ) {
3
  Plugin Name: rtMedia for WordPress, BuddyPress and bbPress
4
  Plugin URI: https://rtmedia.io/?utm_source=dashboard&utm_medium=plugin&utm_campaign=buddypress-media
5
  Description: This plugin adds missing media rich features like photos, videos and audio uploading to BuddyPress which are essential if you are building social network, seriously!
6
+ Version: 4.5.10
7
  Author: rtCamp
8
  Text Domain: buddypress-media
9
  Author URI: http://rtcamp.com/?utm_source=dashboard&utm_medium=plugin&utm_campaign=buddypress-media
22
  * The version of the plugin
23
  *
24
  */
25
+ define( 'RTMEDIA_VERSION', '4.5.10' );
26
  }
27
 
28
  if ( ! defined( 'RTMEDIA_PATH' ) ) {
languages/buddypress-media.po CHANGED
@@ -2,9 +2,9 @@
2
  # This file is distributed under the same license as the rtMedia for WordPress, BuddyPress and bbPress package.
3
  msgid ""
4
  msgstr ""
5
- "Project-Id-Version: rtMedia for WordPress, BuddyPress and bbPress 4.5.9\n"
6
  "Report-Msgid-Bugs-To: https://rtmedia.io/support/\n"
7
- "POT-Creation-Date: 2019-10-29 08:18:31+00:00\n"
8
  "MIME-Version: 1.0\n"
9
  "Content-Type: text/plain; charset=utf-8\n"
10
  "Content-Transfer-Encoding: 8bit\n"
@@ -2519,48 +2519,48 @@ msgstr ""
2519
  msgid "I agree to"
2520
  msgstr ""
2521
 
2522
- #: app/main/controllers/activity/RTMediaBuddyPressActivity.php:463
2523
  msgid "Media Files"
2524
  msgstr ""
2525
 
2526
- #: app/main/controllers/activity/RTMediaBuddyPressActivity.php:501
2527
  #: app/main/controllers/media/RTMediaComment.php:175
2528
  #: app/main/controllers/shortcodes/RTMediaUploadShortcode.php:102
2529
  #: app/main/controllers/template/rtmedia-functions.php:2132
2530
  msgid "You are not allowed to upload/attach media."
2531
  msgstr ""
2532
 
2533
- #: app/main/controllers/activity/RTMediaBuddyPressActivity.php:636
2534
  msgid "%s added a %s"
2535
  msgstr ""
2536
 
2537
- #: app/main/controllers/activity/RTMediaBuddyPressActivity.php:643
2538
- #: app/main/controllers/activity/RTMediaBuddyPressActivity.php:645
2539
  #: app/main/controllers/upload/RTMediaUploadEndpoint.php:229
2540
  msgid "%s added %d %s"
2541
  msgstr ""
2542
 
2543
- #: app/main/controllers/activity/RTMediaBuddyPressActivity.php:698
2544
  msgid "%1$s liked a %2$s in the group %3$s"
2545
  msgstr ""
2546
 
2547
- #: app/main/controllers/activity/RTMediaBuddyPressActivity.php:701
2548
  msgid "%1$s liked their %2$s"
2549
  msgstr ""
2550
 
2551
- #: app/main/controllers/activity/RTMediaBuddyPressActivity.php:705
2552
  msgid "%1$s liked %2$s's %3$s"
2553
  msgstr ""
2554
 
2555
- #: app/main/controllers/activity/RTMediaBuddyPressActivity.php:795
2556
  msgid "%1$s commented on a %2$s in the group %3$s"
2557
  msgstr ""
2558
 
2559
- #: app/main/controllers/activity/RTMediaBuddyPressActivity.php:798
2560
  msgid "%1$s commented on their %2$s"
2561
  msgstr ""
2562
 
2563
- #: app/main/controllers/activity/RTMediaBuddyPressActivity.php:802
2564
  msgid "%1$s commented on %2$s's %3$s"
2565
  msgstr ""
2566
 
2
  # This file is distributed under the same license as the rtMedia for WordPress, BuddyPress and bbPress package.
3
  msgid ""
4
  msgstr ""
5
+ "Project-Id-Version: rtMedia for WordPress, BuddyPress and bbPress 4.5.10\n"
6
  "Report-Msgid-Bugs-To: https://rtmedia.io/support/\n"
7
+ "POT-Creation-Date: 2019-12-20 10:04:47+00:00\n"
8
  "MIME-Version: 1.0\n"
9
  "Content-Type: text/plain; charset=utf-8\n"
10
  "Content-Transfer-Encoding: 8bit\n"
2519
  msgid "I agree to"
2520
  msgstr ""
2521
 
2522
+ #: app/main/controllers/activity/RTMediaBuddyPressActivity.php:479
2523
  msgid "Media Files"
2524
  msgstr ""
2525
 
2526
+ #: app/main/controllers/activity/RTMediaBuddyPressActivity.php:517
2527
  #: app/main/controllers/media/RTMediaComment.php:175
2528
  #: app/main/controllers/shortcodes/RTMediaUploadShortcode.php:102
2529
  #: app/main/controllers/template/rtmedia-functions.php:2132
2530
  msgid "You are not allowed to upload/attach media."
2531
  msgstr ""
2532
 
2533
+ #: app/main/controllers/activity/RTMediaBuddyPressActivity.php:652
2534
  msgid "%s added a %s"
2535
  msgstr ""
2536
 
2537
+ #: app/main/controllers/activity/RTMediaBuddyPressActivity.php:659
2538
+ #: app/main/controllers/activity/RTMediaBuddyPressActivity.php:661
2539
  #: app/main/controllers/upload/RTMediaUploadEndpoint.php:229
2540
  msgid "%s added %d %s"
2541
  msgstr ""
2542
 
2543
+ #: app/main/controllers/activity/RTMediaBuddyPressActivity.php:714
2544
  msgid "%1$s liked a %2$s in the group %3$s"
2545
  msgstr ""
2546
 
2547
+ #: app/main/controllers/activity/RTMediaBuddyPressActivity.php:717
2548
  msgid "%1$s liked their %2$s"
2549
  msgstr ""
2550
 
2551
+ #: app/main/controllers/activity/RTMediaBuddyPressActivity.php:721
2552
  msgid "%1$s liked %2$s's %3$s"
2553
  msgstr ""
2554
 
2555
+ #: app/main/controllers/activity/RTMediaBuddyPressActivity.php:811
2556
  msgid "%1$s commented on a %2$s in the group %3$s"
2557
  msgstr ""
2558
 
2559
+ #: app/main/controllers/activity/RTMediaBuddyPressActivity.php:814
2560
  msgid "%1$s commented on their %2$s"
2561
  msgstr ""
2562
 
2563
+ #: app/main/controllers/activity/RTMediaBuddyPressActivity.php:818
2564
  msgid "%1$s commented on %2$s's %3$s"
2565
  msgstr ""
2566
 
languages/rtmedia-ar_AR.mo DELETED
Binary file
languages/rtmedia-bg_BG.mo DELETED
Binary file
languages/rtmedia-da_DA.mo DELETED
Binary file
languages/rtmedia-da_DK.mo DELETED
Binary file
languages/rtmedia-de_DE.mo DELETED
Binary file
languages/rtmedia-es_ES.mo DELETED
Binary file
languages/rtmedia-fa_FA.mo DELETED
Binary file
languages/rtmedia-fa_IR.mo DELETED
Binary file
languages/rtmedia-fi_FI.mo DELETED
Binary file
languages/rtmedia-fr_FR.mo DELETED
Binary file
languages/rtmedia-hu_HU.mo DELETED
Binary file
languages/rtmedia-it_IT.mo DELETED
Binary file
languages/rtmedia-ja_JA.mo DELETED
Binary file
languages/rtmedia-ko_KO.mo DELETED
Binary file
languages/rtmedia-ko_KR.mo DELETED
Binary file
languages/rtmedia-nb_NO.mo DELETED
Binary file
languages/rtmedia-nl_NL.mo DELETED
Binary file
languages/rtmedia-pl_PL.mo DELETED
Binary file
languages/rtmedia-pt_BR.mo DELETED
Binary file
languages/rtmedia-ro_RO.mo DELETED
Binary file
languages/rtmedia-ru_RU.mo DELETED
Binary file
languages/rtmedia-sk_SK.mo DELETED
Binary file
languages/rtmedia-sr_RS.mo DELETED
Binary file
languages/rtmedia-sr_SR.mo DELETED
Binary file
languages/rtmedia-sv_SE.mo DELETED
Binary file
languages/rtmedia-sv_SV.mo DELETED
Binary file
languages/rtmedia-ta_IN.mo DELETED
Binary file
languages/rtmedia-ta_TA.mo DELETED
Binary file
languages/rtmedia-zh_CN.mo DELETED
Binary file
languages/rtmedia.mo DELETED
Binary file
languages/rtmedia.po DELETED
@@ -1,3207 +0,0 @@
1
- # Copyright (C) 2015 rtCamp
2
- # This file is distributed under the same license as the rtMedia for WordPress, BuddyPress and bbPress package.
3
- msgid ""
4
- msgstr ""
5
- "Project-Id-Version: rtMedia for WordPress, BuddyPress and bbPress 3.8.14\n"
6
- "Report-Msgid-Bugs-To: http://community.rtcamp.com/c/rtmedia/\n"
7
- "POT-Creation-Date: 2015-08-31 16:38+0530\n"
8
- "PO-Revision-Date: 2015-08-31 16:38+0530\n"
9
- "Last-Translator: rtMedia <rtmedia@rtcamp.com>\n"
10
- "Language-Team: rtMedia <rtmedia@rtcamp.com>\n"
11
- "Language: en\n"
12
- "MIME-Version: 1.0\n"
13
- "Content-Type: text/plain; charset=utf-8\n"
14
- "Content-Transfer-Encoding: 8bit\n"
15
- "X-Generator: Poedit 1.5.4\n"
16
- "X-Poedit-KeywordsList: __;_e;_x:1,2c;_ex:1,2c;_n:1,2;_nx:1,2,4c;_n_noop:1,2;"
17
- "_nx_noop:1,2,3c;esc_attr__;esc_html__;esc_attr_e;esc_html_e;esc_attr_x:1,2c;"
18
- "esc_html_x:1,2c\n"
19
- "Plural-Forms: nplurals=2; plural=(n != 1);\n"
20
- "X-Poedit-SourceCharset: UTF-8\n"
21
- "X-Poedit-Basepath: ../\n"
22
- "X-Textdomain-Support: yes\n"
23
- "X-Poedit-SearchPath-0: .\n"
24
-
25
- #: templates/media/album-gallery.php:14
26
- msgid "Album List"
27
- msgstr ""
28
-
29
- #: templates/media/album-gallery.php:56 templates/media/media-gallery.php:65
30
- #: app/admin/RTMediaFormHandler.php:285
31
- msgid "Load More"
32
- msgstr ""
33
-
34
- #: templates/media/album-gallery.php:64
35
- #: templates/media/media-single-edit.php:61
36
- #: templates/media/media-single.php:146
37
- msgid "Sorry !! There's no media found for the request !!"
38
- msgstr ""
39
-
40
- #: templates/media/media-gallery.php:9 templates/media/media-gallery.php:25
41
- msgid "Media Gallery"
42
- msgstr ""
43
-
44
- #: templates/media/media-gallery.php:73
45
- msgid "Oops !! There's no media found for the request !!"
46
- msgstr ""
47
-
48
- #: templates/media/media-single-edit.php:8 app/main/RTMedia.php:923
49
- msgid "Edit Media"
50
- msgstr ""
51
-
52
- #: templates/media/media-single-edit.php:16
53
- #: templates/media/album-single-edit.php:16 app/helper/RTMediaSupport.php:447
54
- msgid "Details"
55
- msgstr ""
56
-
57
- #: templates/media/media-single-edit.php:26
58
- #: templates/media/album-single-edit.php:32
59
- msgid "Title : "
60
- msgstr ""
61
-
62
- #: templates/media/media-single-edit.php:32
63
- #: templates/media/album-single-edit.php:37
64
- msgid "Description: "
65
- msgstr ""
66
-
67
- #: templates/media/media-single-edit.php:46
68
- msgid "Save"
69
- msgstr ""
70
-
71
- #: templates/media/media-single-edit.php:47
72
- #: templates/media/album-single-edit.php:48
73
- msgid "Back"
74
- msgstr ""
75
-
76
- #: templates/media/media-single-edit.php:54
77
- msgid "Sorry !! You do not have rights to edit this media"
78
- msgstr ""
79
-
80
- #: templates/media/media-single.php:35
81
- msgid "under"
82
- msgstr ""
83
-
84
- #: templates/media/media-single.php:82 templates/media/media-single.php:122
85
- #: app/main/controllers/template/rt-template-functions.php:1435
86
- msgid "Comment"
87
- msgstr ""
88
-
89
- #: templates/media/album-single-edit.php:12
90
- msgid "Edit Album : "
91
- msgstr ""
92
-
93
- #: templates/media/album-single-edit.php:18
94
- msgid "Manage Media"
95
- msgstr ""
96
-
97
- #: templates/media/album-single-edit.php:47
98
- #: app/main/controllers/privacy/RTMediaPrivacy.php:277
99
- #: app/main/controllers/group/RTMediaGroupExtension.php:113
100
- msgid "Save Changes"
101
- msgstr ""
102
-
103
- #: templates/media/album-single-edit.php:62 app/main/RTMedia.php:911
104
- msgid "Select All Visible"
105
- msgstr ""
106
-
107
- #: templates/media/album-single-edit.php:63
108
- msgid "Move Selected media to another album."
109
- msgstr ""
110
-
111
- #: templates/media/album-single-edit.php:63
112
- msgid "Move"
113
- msgstr ""
114
-
115
- #: templates/media/album-single-edit.php:65
116
- msgid "Delete Selected media from the album."
117
- msgstr ""
118
-
119
- #: templates/media/album-single-edit.php:65 app/main/RTMedia.php:922
120
- #: app/main/controllers/media/RTMediaGalleryItemAction.php:64
121
- #: app/main/controllers/media/RTMediaGalleryItemAction.php:80
122
- #: app/main/controllers/template/rt-template-functions.php:1471
123
- #: app/main/controllers/template/rt-template-functions.php:1478
124
- msgid "Delete"
125
- msgstr ""
126
-
127
- #: templates/media/album-single-edit.php:70
128
- msgid "Move selected media to the album : "
129
- msgstr ""
130
-
131
- #: templates/media/album-single-edit.php:72
132
- msgid "Move Selected"
133
- msgstr ""
134
-
135
- #: templates/media/album-single-edit.php:94
136
- msgid "Prev"
137
- msgstr ""
138
-
139
- #: templates/media/album-single-edit.php:103
140
- msgid "Next"
141
- msgstr ""
142
-
143
- #: templates/media/album-single-edit.php:106
144
- msgid "The album is empty."
145
- msgstr ""
146
-
147
- #: templates/media/album-single-edit.php:116
148
- msgid "Sorry !! You can not edit this album."
149
- msgstr ""
150
-
151
- #: app/main/RTMedia.php:302
152
- msgid "Photo"
153
- msgstr ""
154
-
155
- #: app/main/RTMedia.php:303
156
- msgid "Photos"
157
- msgstr ""
158
-
159
- #: app/main/RTMedia.php:311
160
- msgid "Video"
161
- msgstr ""
162
-
163
- #: app/main/RTMedia.php:312
164
- msgid "Videos"
165
- msgstr ""
166
-
167
- #: app/main/RTMedia.php:320 app/main/RTMedia.php:321
168
- msgid "Music"
169
- msgstr ""
170
-
171
- #: app/main/RTMedia.php:408
172
- msgid "Private - Visible only to the user"
173
- msgstr ""
174
-
175
- #: app/main/RTMedia.php:409
176
- msgid "Friends - Visible to user's friends"
177
- msgstr ""
178
-
179
- #: app/main/RTMedia.php:410
180
- msgid "Logged in Users - Visible to registered users"
181
- msgstr ""
182
-
183
- #: app/main/RTMedia.php:411
184
- msgid "Public - Visible to the world"
185
- msgstr ""
186
-
187
- #: app/main/RTMedia.php:562 app/importers/BPMediaAlbumimporter.php:90
188
- msgid "Media"
189
- msgstr ""
190
-
191
- #: app/main/RTMedia.php:568 app/main/controllers/template/RTMediaNav.php:176
192
- #: app/main/controllers/template/rt-template-functions.php:83
193
- msgid "All"
194
- msgstr ""
195
-
196
- #: app/main/RTMedia.php:577
197
- #: app/main/controllers/upload/RTMediaUploadView.php:51
198
- #: app/main/controllers/upload/RTMediaUploadView.php:54
199
- #: app/main/controllers/media/RTMediaAlbum.php:49
200
- #: app/main/controllers/template/rt-template-functions.php:1391
201
- msgid "Album"
202
- msgstr ""
203
-
204
- #: app/main/RTMedia.php:580 app/main/controllers/media/RTMediaAlbum.php:48
205
- #: app/main/controllers/media/RTMediaAlbum.php:60
206
- #: app/main/controllers/template/RTMediaNav.php:197
207
- msgid "Albums"
208
- msgstr ""
209
-
210
- #: app/main/RTMedia.php:588
211
- #: app/main/controllers/media/RTMediaLoginPopup.php:38
212
- #: app/main/controllers/template/rt-template-functions.php:2160
213
- #: app/main/controllers/template/rt-template-functions.php:2164
214
- msgid "Upload"
215
- msgstr ""
216
-
217
- #: app/main/RTMedia.php:592
218
- msgid "Wall Post"
219
- msgstr ""
220
-
221
- #: app/main/RTMedia.php:803 app/main/RTMedia.php:812
222
- msgid "Wall Posts"
223
- msgstr ""
224
-
225
- #: app/main/RTMedia.php:855
226
- msgid ": Can't Create Database table. Please check create table permission."
227
- msgstr ""
228
-
229
- #: app/main/RTMedia.php:899
230
- msgid "Loading media"
231
- msgstr ""
232
-
233
- #: app/main/RTMedia.php:900
234
- msgid "Please enter some content to post."
235
- msgstr ""
236
-
237
- #: app/main/RTMedia.php:901
238
- msgid "Empty Comment is not allowed."
239
- msgstr ""
240
-
241
- #: app/main/RTMedia.php:902
242
- msgid "Are you sure you want to delete this media?"
243
- msgstr ""
244
-
245
- #: app/main/RTMedia.php:903
246
- msgid "Are you sure you want to delete this comment?"
247
- msgstr ""
248
-
249
- #: app/main/RTMedia.php:904
250
- msgid "Are you sure you want to delete this Album?"
251
- msgstr ""
252
-
253
- #: app/main/RTMedia.php:905
254
- msgid "Drop files here"
255
- msgstr ""
256
-
257
- #: app/main/RTMedia.php:906
258
- msgid "album created successfully."
259
- msgstr ""
260
-
261
- #: app/main/RTMedia.php:907
262
- msgid "Something went wrong. Please try again."
263
- msgstr ""
264
-
265
- #: app/main/RTMedia.php:908
266
- msgid "Enter an album name."
267
- msgstr ""
268
-
269
- #: app/main/RTMedia.php:909
270
- msgid "Max file Size Limit : "
271
- msgstr ""
272
-
273
- #: app/main/RTMedia.php:910
274
- msgid "Allowed File Formats"
275
- msgstr ""
276
-
277
- #: app/main/RTMedia.php:912
278
- msgid "Unselect All Visible"
279
- msgstr ""
280
-
281
- #: app/main/RTMedia.php:913
282
- msgid "Please select some media."
283
- msgstr ""
284
-
285
- #: app/main/RTMedia.php:914
286
- msgid "Are you sure you want to delete the selected media?"
287
- msgstr ""
288
-
289
- #: app/main/RTMedia.php:915
290
- msgid "Are you sure you want to move the selected media?"
291
- msgstr ""
292
-
293
- #: app/main/RTMedia.php:916
294
- msgid "Waiting"
295
- msgstr ""
296
-
297
- #: app/main/RTMedia.php:917
298
- msgid "Uploaded"
299
- msgstr ""
300
-
301
- #: app/main/RTMedia.php:918
302
- msgid "Uploading"
303
- msgstr ""
304
-
305
- #: app/main/RTMedia.php:919
306
- msgid "Failed"
307
- msgstr ""
308
-
309
- #: app/main/RTMedia.php:920
310
- msgid "Close"
311
- msgstr ""
312
-
313
- #: app/main/RTMedia.php:921
314
- #: app/main/controllers/media/RTMediaGalleryItemAction.php:61
315
- #: app/main/controllers/media/RTMediaGalleryItemAction.php:80
316
- #: app/main/controllers/template/rt-template-functions.php:733
317
- #: app/main/controllers/template/rt-template-functions.php:754
318
- msgid "Edit"
319
- msgstr ""
320
-
321
- #: app/main/RTMedia.php:924
322
- msgid "Remove from queue"
323
- msgstr ""
324
-
325
- #: app/main/RTMedia.php:925
326
- msgid "Add more files"
327
- msgstr ""
328
-
329
- #: app/main/RTMedia.php:926
330
- msgid "File not supported"
331
- msgstr ""
332
-
333
- #: app/main/RTMedia.php:927
334
- msgid "more"
335
- msgstr ""
336
-
337
- #: app/main/RTMedia.php:928
338
- msgid "less"
339
- msgstr ""
340
-
341
- #: app/main/RTMedia.php:929
342
- msgid "This media is uploaded. Are you sure you want to delete this media?"
343
- msgstr ""
344
-
345
- #: app/main/RTMedia.php:937
346
- msgid "Featured media set successfully."
347
- msgstr ""
348
-
349
- #: app/main/RTMedia.php:938
350
- msgid "Featured media removed successfully."
351
- msgstr ""
352
-
353
- #: app/main/RTMedia.php:975
354
- msgid "There are some uploads in progress. Do you want to cancel them?"
355
- msgstr ""
356
-
357
- #: app/main/controllers/api/RTMediaJsonApi.php:166
358
- msgid "username/password empty"
359
- msgstr ""
360
-
361
- #: app/main/controllers/api/RTMediaJsonApi.php:169
362
- msgid "incorrect username"
363
- msgstr ""
364
-
365
- #: app/main/controllers/api/RTMediaJsonApi.php:172
366
- msgid "incorrect password"
367
- msgstr ""
368
-
369
- #: app/main/controllers/api/RTMediaJsonApi.php:175
370
- msgid "login success"
371
- msgstr ""
372
-
373
- #: app/main/controllers/api/RTMediaJsonApi.php:221
374
- msgid "fields empty"
375
- msgstr ""
376
-
377
- #: app/main/controllers/api/RTMediaJsonApi.php:224
378
- msgid "invalid email"
379
- msgstr ""
380
-
381
- #: app/main/controllers/api/RTMediaJsonApi.php:227
382
- msgid "password do not match"
383
- msgstr ""
384
-
385
- #: app/main/controllers/api/RTMediaJsonApi.php:230
386
- msgid "username already registered"
387
- msgstr ""
388
-
389
- #: app/main/controllers/api/RTMediaJsonApi.php:233
390
- msgid "email already exists"
391
- msgstr ""
392
-
393
- #: app/main/controllers/api/RTMediaJsonApi.php:236
394
- msgid "new user created"
395
- msgstr ""
396
-
397
- #: app/main/controllers/api/RTMediaJsonApi.php:297
398
- msgid "email empty"
399
- msgstr ""
400
-
401
- #: app/main/controllers/api/RTMediaJsonApi.php:300
402
- msgid "username/email not registered"
403
- msgstr ""
404
-
405
- #: app/main/controllers/api/RTMediaJsonApi.php:303
406
- msgid "reset link sent"
407
- msgstr ""
408
-
409
- #: app/main/controllers/api/RTMediaJsonApi.php:335
410
- msgid ""
411
- "Someone has asked to reset the password for the following site and username."
412
- msgstr ""
413
-
414
- #: app/main/controllers/api/RTMediaJsonApi.php:337
415
- #, php-format
416
- msgid "Username: %s"
417
- msgstr ""
418
-
419
- #: app/main/controllers/api/RTMediaJsonApi.php:338
420
- msgid ""
421
- "To reset your password visit the following address, otherwise just ignore "
422
- "this email and nothing will happen."
423
- msgstr ""
424
-
425
- #: app/main/controllers/api/RTMediaJsonApi.php:341
426
- #, php-format
427
- msgid "[%s] Password Reset"
428
- msgstr ""
429
-
430
- #: app/main/controllers/api/RTMediaJsonApi.php:356
431
- msgid "bp activities"
432
- msgstr ""
433
-
434
- #: app/main/controllers/api/RTMediaJsonApi.php:359
435
- msgid "user activities"
436
- msgstr ""
437
-
438
- #: app/main/controllers/api/RTMediaJsonApi.php:389
439
- msgid "comment content missing"
440
- msgstr ""
441
-
442
- #: app/main/controllers/api/RTMediaJsonApi.php:392
443
- msgid "comment posted"
444
- msgstr ""
445
-
446
- #: app/main/controllers/api/RTMediaJsonApi.php:439
447
- msgid "unliked media"
448
- msgstr ""
449
-
450
- #: app/main/controllers/api/RTMediaJsonApi.php:442
451
- msgid "liked media"
452
- msgstr ""
453
-
454
- #: app/main/controllers/api/RTMediaJsonApi.php:526
455
- msgid "no comments"
456
- msgstr ""
457
-
458
- #: app/main/controllers/api/RTMediaJsonApi.php:529
459
- msgid "media comments"
460
- msgstr ""
461
-
462
- #: app/main/controllers/api/RTMediaJsonApi.php:532
463
- msgid "my comments"
464
- msgstr ""
465
-
466
- #: app/main/controllers/api/RTMediaJsonApi.php:582
467
- msgid "no likes"
468
- msgstr ""
469
-
470
- #: app/main/controllers/api/RTMediaJsonApi.php:585
471
- msgid "media likes"
472
- msgstr ""
473
-
474
- #: app/main/controllers/api/RTMediaJsonApi.php:627
475
- msgid "invalid comment/media id"
476
- msgstr ""
477
-
478
- #: app/main/controllers/api/RTMediaJsonApi.php:630
479
- msgid "no comment id"
480
- msgstr ""
481
-
482
- #: app/main/controllers/api/RTMediaJsonApi.php:633
483
- msgid "comment deleted"
484
- msgstr ""
485
-
486
- #: app/main/controllers/api/RTMediaJsonApi.php:676
487
- msgid "no profile found"
488
- msgstr ""
489
-
490
- #: app/main/controllers/api/RTMediaJsonApi.php:679
491
- msgid "profile fields"
492
- msgstr ""
493
-
494
- #: app/main/controllers/api/RTMediaJsonApi.php:773
495
- msgid "follow user id missing"
496
- msgstr ""
497
-
498
- #: app/main/controllers/api/RTMediaJsonApi.php:776
499
- msgid "started following"
500
- msgstr ""
501
-
502
- #: app/main/controllers/api/RTMediaJsonApi.php:779
503
- msgid "already following"
504
- msgstr ""
505
-
506
- #: app/main/controllers/api/RTMediaJsonApi.php:811
507
- msgid "unfollow id missing"
508
- msgstr ""
509
-
510
- #: app/main/controllers/api/RTMediaJsonApi.php:814
511
- msgid "stopped following"
512
- msgstr ""
513
-
514
- #: app/main/controllers/api/RTMediaJsonApi.php:817
515
- msgid "not following"
516
- msgstr ""
517
-
518
- #: app/main/controllers/api/RTMediaJsonApi.php:849
519
- msgid "name/location empty"
520
- msgstr ""
521
-
522
- #: app/main/controllers/api/RTMediaJsonApi.php:852
523
- msgid "profile updated"
524
- msgstr ""
525
-
526
- #: app/main/controllers/api/RTMediaJsonApi.php:878
527
- #: app/main/controllers/api/RTMediaJsonApi.php:905
528
- msgid "no file"
529
- msgstr ""
530
-
531
- #: app/main/controllers/api/RTMediaJsonApi.php:881
532
- #: app/main/controllers/api/RTMediaJsonApi.php:917
533
- msgid "upload failed, check size and file type"
534
- msgstr ""
535
-
536
- #: app/main/controllers/api/RTMediaJsonApi.php:884
537
- msgid "avatar updated"
538
- msgstr ""
539
-
540
- #: app/main/controllers/api/RTMediaJsonApi.php:908
541
- msgid "invalid file string"
542
- msgstr ""
543
-
544
- #: app/main/controllers/api/RTMediaJsonApi.php:911
545
- msgid "image type missing"
546
- msgstr ""
547
-
548
- #: app/main/controllers/api/RTMediaJsonApi.php:914
549
- msgid "no title"
550
- msgstr ""
551
-
552
- #: app/main/controllers/api/RTMediaJsonApi.php:920
553
- msgid "media updated"
554
- msgstr ""
555
-
556
- #: app/main/controllers/api/RTMediaJsonApi.php:1050
557
- msgid "media list"
558
- msgstr ""
559
-
560
- #: app/main/controllers/api/RTMediaJsonApi.php:1053
561
- msgid "no media found for requested media type"
562
- msgstr ""
563
-
564
- #: app/main/controllers/api/RTMediaJsonApi.php:1056
565
- msgid "media_type not allowed"
566
- msgstr ""
567
-
568
- #: app/main/controllers/api/RTMediaJsonApi.php:1146
569
- msgid "single media"
570
- msgstr ""
571
-
572
- #: app/main/controllers/upload/RTMediaUploadEndpoint.php:99
573
- #: app/main/controllers/activity/RTMediaBuddyPressActivity.php:346
574
- #: app/main/controllers/activity/RTMediaBuddyPressActivity.php:348
575
- #, php-format
576
- msgid "%s added %d %s"
577
- msgstr ""
578
-
579
- #: app/main/controllers/upload/RTMediaUploadView.php:70
580
- msgid "Privacy: "
581
- msgstr ""
582
-
583
- #: app/main/controllers/upload/RTMediaUploadView.php:77
584
- #: app/main/controllers/upload/RTMediaUploadView.php:111
585
- #: app/main/controllers/upload/RTMediaUploadView.php:127
586
- msgid "File Upload"
587
- msgstr ""
588
-
589
- #: app/main/controllers/upload/RTMediaUploadView.php:81
590
- msgid "Select your files"
591
- msgstr ""
592
-
593
- #: app/main/controllers/upload/RTMediaUploadView.php:82
594
- msgid "or"
595
- msgstr ""
596
-
597
- #: app/main/controllers/upload/RTMediaUploadView.php:82
598
- msgid "Drop your files here"
599
- msgstr ""
600
-
601
- #: app/main/controllers/upload/RTMediaUploadView.php:119
602
- msgid "Start upload"
603
- msgstr ""
604
-
605
- #: app/main/controllers/upload/RTMediaUploadView.php:134
606
- msgid "Attach Media"
607
- msgstr ""
608
-
609
- #: app/main/controllers/upload/RTMediaUploadView.php:149
610
- msgid "Insert from URL"
611
- msgstr ""
612
-
613
- #: app/main/controllers/upload/processors/RTMediaUploadFile.php:59
614
- msgid "Error Uploading File"
615
- msgstr ""
616
-
617
- #: app/main/controllers/upload/processors/RTMediaUploadFile.php:213
618
- msgid "MP4 file you have uploaded is corrupt."
619
- msgstr ""
620
-
621
- #: app/main/controllers/upload/processors/RTMediaUploadFile.php:220
622
- #: app/main/controllers/upload/processors/RTMediaUploadFile.php:225
623
- msgid ""
624
- "The MP4 file you have uploaded is using an unsupported video codec. "
625
- "Supported video codec is H.264."
626
- msgstr ""
627
-
628
- #: app/main/controllers/upload/processors/RTMediaUploadFile.php:230
629
- msgid "The MP4 file you have uploaded is not a video file."
630
- msgstr ""
631
-
632
- #: app/main/controllers/upload/processors/RTMediaUploadFile.php:243
633
- msgid "MP3 file you have uploaded is currupt."
634
- msgstr ""
635
-
636
- #: app/main/controllers/upload/processors/RTMediaUploadFile.php:250
637
- #: app/main/controllers/upload/processors/RTMediaUploadFile.php:255
638
- msgid ""
639
- "The MP3 file you have uploaded is using an unsupported audio format. "
640
- "Supported audio format is MP3."
641
- msgstr ""
642
-
643
- #: app/main/controllers/upload/processors/RTMediaUploadFile.php:260
644
- msgid "The MP3 file you have uploaded is not an audio file."
645
- msgstr ""
646
-
647
- #: app/main/controllers/upload/processors/RTMediaUploadFile.php:268
648
- msgid ""
649
- "Media File you have tried to upload is not supported. Supported media files "
650
- "are .jpg, .png, .gif, .mp3, .mov and .mp4."
651
- msgstr ""
652
-
653
- #: app/main/controllers/privacy/RTMediaPrivacy.php:268
654
- msgid "Default Privacy"
655
- msgstr ""
656
-
657
- #: app/main/controllers/privacy/RTMediaPrivacy.php:284
658
- #: app/admin/RTMediaAdmin.php:1539
659
- msgid "Privacy"
660
- msgstr ""
661
-
662
- #: app/main/controllers/shortcodes/RTMediaUploadShortcode.php:91
663
- msgid "The web browser on your device cannot be used to upload files."
664
- msgstr ""
665
-
666
- #: app/main/controllers/shortcodes/RTMediaUploadShortcode.php:103
667
- #: app/main/controllers/activity/RTMediaBuddyPressActivity.php:204
668
- #: app/main/controllers/template/rt-template-functions.php:1505
669
- msgid "You are not allowed to upload/attach media."
670
- msgstr ""
671
-
672
- #: app/main/controllers/shortcodes/RTMediaGalleryShortcode.php:182
673
- msgid "You do not have sufficient privileges to view this gallery"
674
- msgstr ""
675
-
676
- #: app/main/controllers/media/RTMediaFeatured.php:25
677
- #: app/main/controllers/media/RTMediaGroupFeatured.php:17
678
- msgid "Set as Featured"
679
- msgstr ""
680
-
681
- #: app/main/controllers/media/RTMediaFeatured.php:27
682
- #: app/main/controllers/media/RTMediaGroupFeatured.php:19
683
- msgid "Unset Featured"
684
- msgstr ""
685
-
686
- #: app/main/controllers/media/RTMediaFeatured.php:184
687
- #: app/main/controllers/media/RTMediaGroupFeatured.php:194
688
- msgid "Media type is not allowed"
689
- msgstr ""
690
-
691
- #: app/main/controllers/media/RTMediaGalleryItemAction.php:60
692
- #: app/main/controllers/media/RTMediaGalleryItemAction.php:80
693
- msgid "Edit this media"
694
- msgstr ""
695
-
696
- #: app/main/controllers/media/RTMediaGalleryItemAction.php:63
697
- #: app/main/controllers/media/RTMediaGalleryItemAction.php:80
698
- msgid "Delete this media"
699
- msgstr ""
700
-
701
- #: app/main/controllers/media/RTMediaLoginPopup.php:38
702
- #: app/main/controllers/template/rt-template-functions.php:2160
703
- #: app/main/controllers/template/rt-template-functions.php:2164
704
- msgid "Upload Media"
705
- msgstr ""
706
-
707
- #: app/main/controllers/media/RTMediaLoginPopup.php:47
708
- msgid "Please login"
709
- msgstr ""
710
-
711
- #: app/main/controllers/media/RTMediaLoginPopup.php:49
712
- msgid "You need to be logged in to upload Media or to create Album."
713
- msgstr ""
714
-
715
- #: app/main/controllers/media/RTMediaLoginPopup.php:52
716
- #: app/helper/RTMediaSupport.php:363
717
- msgid "Click"
718
- msgstr ""
719
-
720
- #: app/main/controllers/media/RTMediaLoginPopup.php:52
721
- msgid "Login"
722
- msgstr ""
723
-
724
- #: app/main/controllers/media/RTMediaLoginPopup.php:52
725
- msgid "HERE"
726
- msgstr ""
727
-
728
- #: app/main/controllers/media/RTMediaLoginPopup.php:52
729
- msgid " to login."
730
- msgstr ""
731
-
732
- #: app/main/controllers/media/RTMediaAlbum.php:35
733
- msgctxt "Status General Name"
734
- msgid "hidden"
735
- msgstr ""
736
-
737
- #: app/main/controllers/media/RTMediaAlbum.php:35
738
- #, php-format
739
- msgid "Hidden (%s)"
740
- msgid_plural "Hidden (%s)"
741
- msgstr[0] ""
742
- msgstr[1] ""
743
-
744
- #: app/main/controllers/media/RTMediaAlbum.php:50
745
- msgid "Create"
746
- msgstr ""
747
-
748
- #: app/main/controllers/media/RTMediaAlbum.php:51
749
- #: app/main/controllers/template/rt-template-functions.php:1786
750
- msgid "Create Album"
751
- msgstr ""
752
-
753
- #: app/main/controllers/media/RTMediaAlbum.php:52
754
- #: app/main/controllers/template/rt-template-functions.php:1866
755
- msgid "Edit Album"
756
- msgstr ""
757
-
758
- #: app/main/controllers/media/RTMediaAlbum.php:53
759
- msgid "New Album"
760
- msgstr ""
761
-
762
- #: app/main/controllers/media/RTMediaAlbum.php:54
763
- msgid "All Albums"
764
- msgstr ""
765
-
766
- #: app/main/controllers/media/RTMediaAlbum.php:55
767
- msgid "View Album"
768
- msgstr ""
769
-
770
- #: app/main/controllers/media/RTMediaAlbum.php:56
771
- msgid "Search Albums"
772
- msgstr ""
773
-
774
- #: app/main/controllers/media/RTMediaAlbum.php:57
775
- msgid "No album found"
776
- msgstr ""
777
-
778
- #: app/main/controllers/media/RTMediaAlbum.php:58
779
- msgid "No album found in Trash"
780
- msgstr ""
781
-
782
- #: app/main/controllers/media/RTMediaAlbum.php:59
783
- msgid "Parent"
784
- msgstr ""
785
-
786
- #: app/main/controllers/media/RTMediaAlbum.php:145
787
- msgid "Untitled Album"
788
- msgstr ""
789
-
790
- #: app/main/controllers/media/RTMediaMedia.php:483
791
- msgid "Error creating attachment for the media file, please try again"
792
- msgstr ""
793
-
794
- #: app/main/controllers/media/RTMediaMedia.php:585
795
- #, php-format
796
- msgid "%1$s added a %2$s"
797
- msgstr ""
798
-
799
- #: app/main/controllers/media/RTMediaMedia.php:585
800
- #, php-format
801
- msgid "%1$s added %4$d %3$s"
802
- msgstr ""
803
-
804
- #: app/main/controllers/media/RTMediaLike.php:18
805
- msgid "Like"
806
- msgstr ""
807
-
808
- #: app/main/controllers/media/RTMediaLike.php:19
809
- #: app/admin/RTMediaAdmin.php:589
810
- msgid "Likes"
811
- msgstr ""
812
-
813
- #: app/main/controllers/media/RTMediaLike.php:20
814
- msgid "Unlike"
815
- msgstr ""
816
-
817
- #: app/main/controllers/activity/RTMediaBuddyPressActivity.php:180
818
- msgid "Media Files"
819
- msgstr ""
820
-
821
- #: app/main/controllers/activity/RTMediaBuddyPressActivity.php:333
822
- #: app/main/controllers/activity/RTMediaBuddyPressActivity.php:348
823
- msgid "media"
824
- msgstr ""
825
-
826
- #: app/main/controllers/activity/RTMediaBuddyPressActivity.php:340
827
- #, php-format
828
- msgid "%s added a %s"
829
- msgstr ""
830
-
831
- #: app/main/controllers/template/RTMediaTemplate.php:97
832
- #: app/main/controllers/template/RTMediaTemplate.php:149
833
- msgid "Invalid attribute passed for rtmedia_gallery shortcode."
834
- msgstr ""
835
-
836
- #: app/main/controllers/template/RTMediaTemplate.php:327
837
- #: app/main/controllers/template/RTMediaTemplate.php:401
838
- #: app/main/controllers/template/RTMediaTemplate.php:490
839
- #: app/main/controllers/template/RTMediaTemplate.php:616
840
- msgid "Ooops !!! Invalid access. No nonce was found !!"
841
- msgstr ""
842
-
843
- #: app/main/controllers/template/RTMediaTemplate.php:334
844
- msgid "Media updated Sucessfully"
845
- msgstr ""
846
-
847
- #: app/main/controllers/template/RTMediaTemplate.php:340
848
- msgid "Error in updating Media"
849
- msgstr ""
850
-
851
- #: app/main/controllers/template/RTMediaAJAX.php:33
852
- msgid "You can not create album in this group."
853
- msgstr ""
854
-
855
- #: app/main/controllers/template/RTMediaAJAX.php:39
856
- msgid "You can not create album."
857
- msgstr ""
858
-
859
- #: app/main/controllers/template/RTMediaAJAX.php:44
860
- msgid "You can not create more albums, you exceed your album limit."
861
- msgstr ""
862
-
863
- #: app/main/controllers/template/RTMediaAJAX.php:89
864
- msgid "Data mismatch, Please insert data properly."
865
- msgstr ""
866
-
867
- #: app/main/controllers/template/RTMediaNav.php:32
868
- msgctxt "My Account Privacy sub nav"
869
- msgid "Privacy"
870
- msgstr ""
871
-
872
- #: app/main/controllers/template/rt-template-functions.php:709
873
- #: app/main/controllers/template/rt-template-functions.php:1697
874
- msgid "Options"
875
- msgstr ""
876
-
877
- #: app/main/controllers/template/rt-template-functions.php:798
878
- msgid "There are no comments on this media yet."
879
- msgstr ""
880
-
881
- #: app/main/controllers/template/rt-template-functions.php:834
882
- msgid "Delete Comment"
883
- msgstr ""
884
-
885
- #: app/main/controllers/template/rt-template-functions.php:1032
886
- msgid "Go to page no : "
887
- msgstr ""
888
-
889
- #: app/main/controllers/template/rt-template-functions.php:1037
890
- msgid "Go"
891
- msgstr ""
892
-
893
- #: app/main/controllers/template/rt-template-functions.php:1210
894
- msgid "Video Thumbnail"
895
- msgstr ""
896
-
897
- #: app/main/controllers/template/rt-template-functions.php:1259
898
- msgid "Video Thumbnail:"
899
- msgstr ""
900
-
901
- #: app/main/controllers/template/rt-template-functions.php:1342
902
- msgid "Image"
903
- msgstr ""
904
-
905
- #: app/main/controllers/template/rt-template-functions.php:1359
906
- msgid "Modify Image"
907
- msgstr ""
908
-
909
- #: app/main/controllers/template/rt-template-functions.php:1434
910
- msgid "Type Comment..."
911
- msgstr ""
912
-
913
- #: app/main/controllers/template/rt-template-functions.php:1471
914
- #: app/main/controllers/template/rt-template-functions.php:1478
915
- msgid "Delete Media"
916
- msgstr ""
917
-
918
- #: app/main/controllers/template/rt-template-functions.php:1639
919
- msgid "Profile Albums"
920
- msgstr ""
921
-
922
- #: app/main/controllers/template/rt-template-functions.php:1642
923
- #: app/main/controllers/template/rt-template-functions.php:1676
924
- msgid "Group Albums"
925
- msgstr ""
926
-
927
- #: app/main/controllers/template/rt-template-functions.php:1760
928
- msgid "Create New Album"
929
- msgstr ""
930
-
931
- #: app/main/controllers/template/rt-template-functions.php:1760
932
- msgid "Add Album"
933
- msgstr ""
934
-
935
- #: app/main/controllers/template/rt-template-functions.php:1776
936
- msgid "Create an Album"
937
- msgstr ""
938
-
939
- #: app/main/controllers/template/rt-template-functions.php:1778
940
- msgid "Album Title : "
941
- msgstr ""
942
-
943
- #: app/main/controllers/template/rt-template-functions.php:1817
944
- #: app/main/controllers/template/rt-template-functions.php:1824
945
- #: app/main/controllers/template/rt-template-functions.php:1876
946
- msgid "Merge Album"
947
- msgstr ""
948
-
949
- #: app/main/controllers/template/rt-template-functions.php:1820
950
- msgid "Select Album to merge with : "
951
- msgstr ""
952
-
953
- #: app/main/controllers/template/rt-template-functions.php:1867
954
- msgid "Delete Album"
955
- msgstr ""
956
-
957
- #: app/main/controllers/template/rt-template-functions.php:1904
958
- msgid "Merge"
959
- msgstr ""
960
-
961
- #: app/main/controllers/template/rt-template-functions.php:1957
962
- msgid "Privacy : "
963
- msgstr ""
964
-
965
- #: app/main/controllers/template/rt-template-functions.php:2148
966
- msgid "people like this"
967
- msgstr ""
968
-
969
- #: app/main/controllers/template/rt-template-functions.php:2247
970
- msgid "Empowering your community with "
971
- msgstr ""
972
-
973
- #: app/main/controllers/template/rt-template-functions.php:2249
974
- msgid "The only complete media solution for WordPress, BuddyPress and bbPress"
975
- msgstr ""
976
-
977
- #: app/main/controllers/template/rt-template-functions.php:2264
978
- msgid "Close (Esc)"
979
- msgstr ""
980
-
981
- #: app/main/controllers/template/rt-template-functions.php:2278
982
- msgid "Public"
983
- msgstr ""
984
-
985
- #: app/main/controllers/template/rt-template-functions.php:2282
986
- msgid "All members"
987
- msgstr ""
988
-
989
- #: app/main/controllers/template/rt-template-functions.php:2286
990
- msgid "Your friends"
991
- msgstr ""
992
-
993
- #: app/main/controllers/template/rt-template-functions.php:2290
994
- msgid "Only you"
995
- msgstr ""
996
-
997
- #: app/main/controllers/template/rt-template-functions.php:2294
998
- msgid "Blocked temporarily"
999
- msgstr ""
1000
-
1001
- #: app/main/controllers/template/rt-template-functions.php:2331
1002
- #, php-format
1003
- msgid "%s ago "
1004
- msgstr ""
1005
-
1006
- #: app/main/controllers/template/rt-template-functions.php:2344
1007
- #, php-format
1008
- msgid "1 second"
1009
- msgid_plural "%s seconds"
1010
- msgstr[0] ""
1011
- msgstr[1] ""
1012
-
1013
- #: app/main/controllers/template/rt-template-functions.php:2347
1014
- #, php-format
1015
- msgid "1 minute"
1016
- msgid_plural "%s minutes"
1017
- msgstr[0] ""
1018
- msgstr[1] ""
1019
-
1020
- #: app/main/controllers/template/rt-template-functions.php:2350
1021
- #, php-format
1022
- msgid "1 hour"
1023
- msgid_plural "%s hours"
1024
- msgstr[0] ""
1025
- msgstr[1] ""
1026
-
1027
- #: app/main/controllers/template/rt-template-functions.php:2705
1028
- msgid "You can consider rtMedia Team for following :"
1029
- msgstr ""
1030
-
1031
- #: app/main/controllers/template/rt-template-functions.php:2708
1032
- msgid "rtMedia Customization ( in Upgrade Safe manner )"
1033
- msgstr ""
1034
-
1035
- #: app/main/controllers/template/rt-template-functions.php:2709
1036
- msgid "WordPress/BuddyPress Theme Design and Development"
1037
- msgstr ""
1038
-
1039
- #: app/main/controllers/template/rt-template-functions.php:2710
1040
- msgid "WordPress/BuddyPress Plugin Development"
1041
- msgstr ""
1042
-
1043
- #: app/main/controllers/template/rt-template-functions.php:2714
1044
- msgid "Contact Us"
1045
- msgstr ""
1046
-
1047
- #: app/main/controllers/group/RTMediaGroupExtension.php:30
1048
- #: app/main/controllers/group/RTMediaGroupExtension.php:92
1049
- msgid "Album Creation Control"
1050
- msgstr ""
1051
-
1052
- #: app/main/controllers/group/RTMediaGroupExtension.php:31
1053
- #: app/main/controllers/group/RTMediaGroupExtension.php:93
1054
- msgid "Who can create Albums in this group?"
1055
- msgstr ""
1056
-
1057
- #: app/main/controllers/group/RTMediaGroupExtension.php:35
1058
- #: app/main/controllers/group/RTMediaGroupExtension.php:97
1059
- msgid "All Group Members"
1060
- msgstr ""
1061
-
1062
- #: app/main/controllers/group/RTMediaGroupExtension.php:39
1063
- #: app/main/controllers/group/RTMediaGroupExtension.php:101
1064
- msgid "Group Admins and Mods only"
1065
- msgstr ""
1066
-
1067
- #: app/main/controllers/group/RTMediaGroupExtension.php:43
1068
- #: app/main/controllers/group/RTMediaGroupExtension.php:105
1069
- msgid "Group Admin only"
1070
- msgstr ""
1071
-
1072
- #: app/main/controllers/group/RTMediaGroupExtension.php:142
1073
- msgid "There was an error saving, please try again"
1074
- msgstr ""
1075
-
1076
- #: app/main/controllers/group/RTMediaGroupExtension.php:144
1077
- msgid "Settings saved successfully"
1078
- msgstr ""
1079
-
1080
- #: app/main/controllers/group/RTMediaGroupExtension.php:164
1081
- msgid ""
1082
- "You could display a small snippet of information from your group extension "
1083
- "here. It will show on the group\n"
1084
- "\t home screen."
1085
- msgstr ""
1086
-
1087
- #: app/main/deprecated/RTMediaDeprecated.php:27
1088
- #, php-format
1089
- msgid "Deprecated %s. Please use %s."
1090
- msgstr ""
1091
-
1092
- #: app/admin/RTMediaFormHandler.php:65 app/admin/RTMediaFormHandler.php:107
1093
- #: app/admin/RTMediaFormHandler.php:202 app/admin/RTMediaFormHandler.php:237
1094
- msgid "Please provide a \"value\" in the argument."
1095
- msgstr ""
1096
-
1097
- #: app/admin/RTMediaFormHandler.php:150
1098
- msgid "Need to specify atleast two radios, else use a checkbox instead"
1099
- msgstr ""
1100
-
1101
- #: app/admin/RTMediaFormHandler.php:286
1102
- msgid "Pagination"
1103
- msgstr ""
1104
-
1105
- #: app/admin/RTMediaFormHandler.php:298
1106
- msgid "Allow user to comment on uploaded media"
1107
- msgstr ""
1108
-
1109
- #: app/admin/RTMediaFormHandler.php:303
1110
- msgid ""
1111
- "This will display the comment form and comment listing on single media pages "
1112
- "as well as inside lightbox (if lightbox is enabled)."
1113
- msgstr ""
1114
-
1115
- #: app/admin/RTMediaFormHandler.php:308
1116
- msgid "Use lightbox to display media"
1117
- msgstr ""
1118
-
1119
- #: app/admin/RTMediaFormHandler.php:313
1120
- msgid "View single media in facebook style lightbox."
1121
- msgstr ""
1122
-
1123
- #: app/admin/RTMediaFormHandler.php:318
1124
- msgid "Number of media per page"
1125
- msgstr ""
1126
-
1127
- #: app/admin/RTMediaFormHandler.php:324
1128
- msgid "Number of media items you want to show per page on front end."
1129
- msgstr ""
1130
-
1131
- #: app/admin/RTMediaFormHandler.php:330
1132
- msgid "Media display pagination option"
1133
- msgstr ""
1134
-
1135
- #: app/admin/RTMediaFormHandler.php:336
1136
- msgid "Choose whether you want the load more button or pagination buttons."
1137
- msgstr ""
1138
-
1139
- #: app/admin/RTMediaFormHandler.php:341
1140
- msgid "Enable"
1141
- msgstr ""
1142
-
1143
- #: app/admin/RTMediaFormHandler.php:341
1144
- msgid "Cascading grid layout"
1145
- msgstr ""
1146
-
1147
- #: app/admin/RTMediaFormHandler.php:346
1148
- msgid "If you enable masonry view, it is advisable to"
1149
- msgstr ""
1150
-
1151
- #: app/admin/RTMediaFormHandler.php:346
1152
- msgid "for masonry view."
1153
- msgstr ""
1154
-
1155
- #: app/admin/RTMediaFormHandler.php:350
1156
- msgid "You might need to"
1157
- msgstr ""
1158
-
1159
- #: app/admin/RTMediaFormHandler.php:350
1160
- msgid "change thumbnail size"
1161
- msgstr ""
1162
-
1163
- #: app/admin/RTMediaFormHandler.php:350
1164
- msgid "and uncheck the crop box for thumbnails."
1165
- msgstr ""
1166
-
1167
- #: app/admin/RTMediaFormHandler.php:350
1168
- msgid ""
1169
- "To set gallery for fixed width, set image height to 0 and width as per your "
1170
- "requirement and vice-versa."
1171
- msgstr ""
1172
-
1173
- #: app/admin/RTMediaFormHandler.php:353
1174
- msgid "Enable Direct Upload"
1175
- msgstr ""
1176
-
1177
- #: app/admin/RTMediaFormHandler.php:358
1178
- msgid "Uploading media directly as soon as it gets selected."
1179
- msgstr ""
1180
-
1181
- #: app/admin/RTMediaFormHandler.php:384
1182
- msgid "Single Media View"
1183
- msgstr ""
1184
-
1185
- #: app/admin/RTMediaFormHandler.php:385
1186
- msgid "List Media View"
1187
- msgstr ""
1188
-
1189
- #: app/admin/RTMediaFormHandler.php:386
1190
- msgid "Masonry View"
1191
- msgstr ""
1192
-
1193
- #: app/admin/RTMediaFormHandler.php:387
1194
- msgid "Direct Upload"
1195
- msgstr ""
1196
-
1197
- #: app/admin/RTMediaFormHandler.php:405
1198
- msgid "Allow usage data tracking"
1199
- msgstr ""
1200
-
1201
- #: app/admin/RTMediaFormHandler.php:410
1202
- msgid ""
1203
- "To make rtMedia better compatible with your sites, you can help the rtMedia "
1204
- "team learn what themes and plugins you are using. No private information "
1205
- "about your setup will be sent during tracking."
1206
- msgstr ""
1207
-
1208
- #: app/admin/RTMediaFormHandler.php:414
1209
- msgid "Admin bar menu integration"
1210
- msgstr ""
1211
-
1212
- #: app/admin/RTMediaFormHandler.php:419
1213
- msgid ""
1214
- "Add rtMedia menu to WordPress admin bar for easy access to settings and "
1215
- "moderation page (if enabled)."
1216
- msgstr ""
1217
-
1218
- #: app/admin/RTMediaFormHandler.php:424
1219
- msgid "Add a link to rtMedia in footer"
1220
- msgstr ""
1221
-
1222
- #: app/admin/RTMediaFormHandler.php:429
1223
- msgid "Help us promote rtMedia."
1224
- msgstr ""
1225
-
1226
- #: app/admin/RTMediaFormHandler.php:434
1227
- msgid "Also add my affiliate-id to rtMedia footer link"
1228
- msgstr ""
1229
-
1230
- #: app/admin/RTMediaFormHandler.php:439
1231
- msgid ""
1232
- "Add your affiliate-id along with footer link and get rewarded by our "
1233
- "affiliation program."
1234
- msgstr ""
1235
-
1236
- #: app/admin/RTMediaFormHandler.php:443
1237
- msgid "Signup for"
1238
- msgstr ""
1239
-
1240
- #: app/admin/RTMediaFormHandler.php:443
1241
- msgid "affiliate program"
1242
- msgstr ""
1243
-
1244
- #: app/admin/RTMediaFormHandler.php:443 app/admin/RTMediaFormHandler.php:454
1245
- #: app/helper/RTMediaSupport.php:363
1246
- msgid "here"
1247
- msgstr ""
1248
-
1249
- #: app/admin/RTMediaFormHandler.php:446
1250
- msgid "Enable JSON API"
1251
- msgstr ""
1252
-
1253
- #: app/admin/RTMediaFormHandler.php:451
1254
- msgid ""
1255
- "This will allow handling API requests for rtMedia sent through any mobile "
1256
- "app."
1257
- msgstr ""
1258
-
1259
- #: app/admin/RTMediaFormHandler.php:454
1260
- msgid "You can refer to the API document from"
1261
- msgstr ""
1262
-
1263
- #: app/admin/RTMediaFormHandler.php:477
1264
- msgid "Admin Settings"
1265
- msgstr ""
1266
-
1267
- #: app/admin/RTMediaFormHandler.php:478
1268
- msgid "API Settings"
1269
- msgstr ""
1270
-
1271
- #: app/admin/RTMediaFormHandler.php:479
1272
- msgid "Miscellaneous"
1273
- msgstr ""
1274
-
1275
- #: app/admin/RTMediaFormHandler.php:480
1276
- msgid "Footer Link"
1277
- msgstr ""
1278
-
1279
- #: app/admin/RTMediaFormHandler.php:560
1280
- msgid "Media Types Settings"
1281
- msgstr ""
1282
-
1283
- #: app/admin/RTMediaFormHandler.php:568 app/helper/RTMediaSettings.php:323
1284
- msgid "Media Type"
1285
- msgstr ""
1286
-
1287
- #: app/admin/RTMediaFormHandler.php:573
1288
- msgid "Allow Upload"
1289
- msgstr ""
1290
-
1291
- #: app/admin/RTMediaFormHandler.php:575
1292
- msgid "Allows you to upload a particular media type on your post."
1293
- msgstr ""
1294
-
1295
- #: app/admin/RTMediaFormHandler.php:583
1296
- msgid "Set Featured"
1297
- msgstr ""
1298
-
1299
- #: app/admin/RTMediaFormHandler.php:585
1300
- msgid "Place a specific media as a featured content on the post."
1301
- msgstr ""
1302
-
1303
- #: app/admin/RTMediaFormHandler.php:627
1304
- msgid "File Extensions"
1305
- msgstr ""
1306
-
1307
- #: app/admin/RTMediaFormHandler.php:715
1308
- msgid "Media Size Settings"
1309
- msgstr ""
1310
-
1311
- #: app/admin/RTMediaFormHandler.php:720
1312
- msgid "Category"
1313
- msgstr ""
1314
-
1315
- #: app/admin/RTMediaFormHandler.php:721
1316
- msgid "Entity"
1317
- msgstr ""
1318
-
1319
- #: app/admin/RTMediaFormHandler.php:722
1320
- msgid "Width"
1321
- msgstr ""
1322
-
1323
- #: app/admin/RTMediaFormHandler.php:723
1324
- msgid "Height"
1325
- msgstr ""
1326
-
1327
- #: app/admin/RTMediaFormHandler.php:724
1328
- msgid "Crop"
1329
- msgstr ""
1330
-
1331
- #: app/admin/RTMediaFormHandler.php:777
1332
- msgid "Number of thumbnails to generate on video upload"
1333
- msgstr ""
1334
-
1335
- #: app/admin/RTMediaFormHandler.php:783
1336
- msgid ""
1337
- " If you choose more than 1 thumbnail, your users will be able to change the "
1338
- "thumbnail by going to video 'edit' section. Maximum value is 10."
1339
- msgstr ""
1340
-
1341
- #: app/admin/RTMediaFormHandler.php:791
1342
- msgid "Encoding Settings"
1343
- msgstr ""
1344
-
1345
- #: app/admin/RTMediaFormHandler.php:798
1346
- msgid "JPEG/JPG image quality (1-100)"
1347
- msgstr ""
1348
-
1349
- #: app/admin/RTMediaFormHandler.php:804
1350
- msgid ""
1351
- "Enter JPEG/JPG Image Quality. Minimum value is 1. 100 is original quality."
1352
- msgstr ""
1353
-
1354
- #: app/admin/RTMediaFormHandler.php:812
1355
- msgid "Image Quality"
1356
- msgstr ""
1357
-
1358
- #: app/admin/RTMediaFormHandler.php:834
1359
- msgid "Custom CSS settings"
1360
- msgstr ""
1361
-
1362
- #: app/admin/RTMediaFormHandler.php:853
1363
- msgid "rtMedia default styles"
1364
- msgstr ""
1365
-
1366
- #: app/admin/RTMediaFormHandler.php:859
1367
- msgid ""
1368
- "Load default rtMedia styles. You need to write your own style for rtMedia if "
1369
- "you disable it."
1370
- msgstr ""
1371
-
1372
- #: app/admin/RTMediaFormHandler.php:864
1373
- msgid "Paste your CSS code"
1374
- msgstr ""
1375
-
1376
- #: app/admin/RTMediaFormHandler.php:870
1377
- msgid "Custom rtMedia CSS container"
1378
- msgstr ""
1379
-
1380
- #: app/admin/RTMediaFormHandler.php:893
1381
- msgid "Enable privacy"
1382
- msgstr ""
1383
-
1384
- #: app/admin/RTMediaFormHandler.php:899
1385
- msgid "Enable privacy in rtMedia"
1386
- msgstr ""
1387
-
1388
- #: app/admin/RTMediaFormHandler.php:904
1389
- msgid "Default privacy"
1390
- msgstr ""
1391
-
1392
- #: app/admin/RTMediaFormHandler.php:910
1393
- msgid "Set default privacy for media"
1394
- msgstr ""
1395
-
1396
- #: app/admin/RTMediaFormHandler.php:916
1397
- msgid "Allow users to set privacy for their content"
1398
- msgstr ""
1399
-
1400
- #: app/admin/RTMediaFormHandler.php:921
1401
- msgid ""
1402
- "If you choose this, users will be able to change privacy of their own "
1403
- "uploads."
1404
- msgstr ""
1405
-
1406
- #: app/admin/RTMediaFormHandler.php:925
1407
- msgid "For group uploads, BuddyPress groups privacy is used."
1408
- msgstr ""
1409
-
1410
- #: app/admin/RTMediaFormHandler.php:967
1411
- msgid "Enable media in profile"
1412
- msgstr ""
1413
-
1414
- #: app/admin/RTMediaFormHandler.php:972
1415
- msgid "Enable Media on BuddyPress Profile"
1416
- msgstr ""
1417
-
1418
- #: app/admin/RTMediaFormHandler.php:977
1419
- msgid "Enable media in group"
1420
- msgstr ""
1421
-
1422
- #: app/admin/RTMediaFormHandler.php:982
1423
- msgid "Enable Media on BuddyPress Groups"
1424
- msgstr ""
1425
-
1426
- #: app/admin/RTMediaFormHandler.php:987
1427
- msgid "Allow upload from activity stream"
1428
- msgstr ""
1429
-
1430
- #: app/admin/RTMediaFormHandler.php:992
1431
- msgid "Allow upload using status update box present on activity stream page"
1432
- msgstr ""
1433
-
1434
- #: app/admin/RTMediaFormHandler.php:998
1435
- msgid "Number of media items to show in activity stream"
1436
- msgstr ""
1437
-
1438
- #: app/admin/RTMediaFormHandler.php:1003
1439
- msgid ""
1440
- "With bulk uploads activity, the stream may get flooded. You can control the "
1441
- "maximum number of media items or files per activity. This limit will not "
1442
- "affect the actual number of uploads. This is only for display. <em>0</em> "
1443
- "means unlimited."
1444
- msgstr ""
1445
-
1446
- #: app/admin/RTMediaFormHandler.php:1010
1447
- msgid "Organize media into albums"
1448
- msgstr ""
1449
-
1450
- #: app/admin/RTMediaFormHandler.php:1016
1451
- msgid ""
1452
- "This will add 'album' tab to BuddyPress profile and group depending on the "
1453
- "^above^ settings."
1454
- msgstr ""
1455
-
1456
- #: app/admin/RTMediaAdmin.php:127
1457
- #, php-format
1458
- msgid "View &#8220;%s&#8221;"
1459
- msgstr ""
1460
-
1461
- #: app/admin/RTMediaAdmin.php:127
1462
- msgid "View"
1463
- msgstr ""
1464
-
1465
- #: app/admin/RTMediaAdmin.php:369
1466
- msgid " You must"
1467
- msgstr ""
1468
-
1469
- #: app/admin/RTMediaAdmin.php:369
1470
- msgid "update permalink structure"
1471
- msgstr ""
1472
-
1473
- #: app/admin/RTMediaAdmin.php:369
1474
- msgid "to something other than the default for it to work."
1475
- msgstr ""
1476
-
1477
- #: app/admin/RTMediaAdmin.php:395
1478
- msgid "rtMedia:"
1479
- msgstr ""
1480
-
1481
- #: app/admin/RTMediaAdmin.php:395
1482
- msgid ""
1483
- "Please update all premium add-ons that you have purchased from rtCamp from"
1484
- msgstr ""
1485
-
1486
- #: app/admin/RTMediaAdmin.php:395
1487
- msgid "your account"
1488
- msgstr ""
1489
-
1490
- #: app/admin/RTMediaAdmin.php:395
1491
- msgid "Dismiss"
1492
- msgstr ""
1493
-
1494
- #: app/admin/RTMediaAdmin.php:508
1495
- msgid "rtMedia Pro is released"
1496
- msgstr ""
1497
-
1498
- #: app/admin/RTMediaAdmin.php:529
1499
- msgid "Media Stats"
1500
- msgstr ""
1501
-
1502
- #: app/admin/RTMediaAdmin.php:556
1503
- msgid "Usage Stats"
1504
- msgstr ""
1505
-
1506
- #: app/admin/RTMediaAdmin.php:565
1507
- msgid "Total "
1508
- msgstr ""
1509
-
1510
- #: app/admin/RTMediaAdmin.php:573
1511
- msgid "With Media"
1512
- msgstr ""
1513
-
1514
- #: app/admin/RTMediaAdmin.php:581
1515
- msgid "Comments "
1516
- msgstr ""
1517
-
1518
- #: app/admin/RTMediaAdmin.php:600
1519
- msgid "rtMedia Links:"
1520
- msgstr ""
1521
-
1522
- #: app/admin/RTMediaAdmin.php:601
1523
- msgid "Homepage"
1524
- msgstr ""
1525
-
1526
- #: app/admin/RTMediaAdmin.php:602
1527
- msgid "Free Support"
1528
- msgstr ""
1529
-
1530
- #: app/admin/RTMediaAdmin.php:603
1531
- msgid "Premium Addons"
1532
- msgstr ""
1533
-
1534
- #: app/admin/RTMediaAdmin.php:619
1535
- msgid "Right Now in rtMedia"
1536
- msgstr ""
1537
-
1538
- #: app/admin/RTMediaAdmin.php:673 app/admin/RTMediaAdmin.php:882
1539
- msgid "Regenerate Thumbnail"
1540
- msgstr ""
1541
-
1542
- #: app/admin/RTMediaAdmin.php:714 app/admin/RTMediaAdmin.php:1368
1543
- #: app/admin/RTMediaAdmin.php:1369
1544
- msgid "rtMedia"
1545
- msgstr ""
1546
-
1547
- #: app/admin/RTMediaAdmin.php:721 app/admin/RTMediaAdmin.php:724
1548
- #: app/admin/RTMediaAdmin.php:870 app/admin/RTMediaAdmin.php:1398
1549
- msgid "Settings"
1550
- msgstr ""
1551
-
1552
- #: app/admin/RTMediaAdmin.php:732 app/admin/RTMediaAdmin.php:735
1553
- #: app/admin/RTMediaAdmin.php:871 app/admin/RTMediaAdmin.php:1402
1554
- msgid "Addons"
1555
- msgstr ""
1556
-
1557
- #: app/admin/RTMediaAdmin.php:743 app/admin/RTMediaAdmin.php:746
1558
- #: app/admin/RTMediaAdmin.php:872 app/admin/RTMediaAdmin.php:1414
1559
- #: app/helper/RTMediaSupport.php:51 app/helper/RTMediaSupport.php:52
1560
- #: app/helper/RTMediaSettings.php:207
1561
- msgid "Support"
1562
- msgstr ""
1563
-
1564
- #: app/admin/RTMediaAdmin.php:754 app/admin/RTMediaAdmin.php:757
1565
- #: app/admin/RTMediaAdmin.php:873 app/admin/RTMediaAdmin.php:1406
1566
- msgid "Themes"
1567
- msgstr ""
1568
-
1569
- #: app/admin/RTMediaAdmin.php:765 app/admin/RTMediaAdmin.php:768
1570
- #: app/admin/RTMediaAdmin.php:874 app/admin/RTMediaAdmin.php:1410
1571
- msgid "Hire Us"
1572
- msgstr ""
1573
-
1574
- #: app/admin/RTMediaAdmin.php:777 app/admin/RTMediaAdmin.php:780
1575
- #: app/admin/RTMediaAdmin.php:876 app/admin/RTMediaAdmin.php:1422
1576
- msgid "Licenses"
1577
- msgstr ""
1578
-
1579
- #: app/admin/RTMediaAdmin.php:831
1580
- msgid "ON"
1581
- msgstr ""
1582
-
1583
- #: app/admin/RTMediaAdmin.php:832
1584
- msgid "OFF"
1585
- msgstr ""
1586
-
1587
- #: app/admin/RTMediaAdmin.php:838
1588
- msgid "Please do not refresh this page."
1589
- msgstr ""
1590
-
1591
- #: app/admin/RTMediaAdmin.php:839
1592
- msgid ""
1593
- "Something went wrong. Please <a href onclick=\"location.reload();\">refresh</"
1594
- "a> page."
1595
- msgstr ""
1596
-
1597
- #: app/admin/RTMediaAdmin.php:840
1598
- msgid "This will subscribe you to the free plan."
1599
- msgstr ""
1600
-
1601
- #: app/admin/RTMediaAdmin.php:841
1602
- msgid "Are you sure you want to disable the encoding service?"
1603
- msgstr ""
1604
-
1605
- #: app/admin/RTMediaAdmin.php:842
1606
- msgid "Are you sure you want to enable the encoding service?"
1607
- msgstr ""
1608
-
1609
- #: app/admin/RTMediaAdmin.php:882
1610
- msgid "Regen. Thumbnail "
1611
- msgstr ""
1612
-
1613
- #: app/admin/RTMediaAdmin.php:900 app/admin/RTMediaAdmin.php:1879
1614
- msgid "Regenerate Video Thumbnails"
1615
- msgstr ""
1616
-
1617
- #: app/admin/RTMediaAdmin.php:918
1618
- msgid "Regenerate Pending Thumbnails"
1619
- msgstr ""
1620
-
1621
- #: app/admin/RTMediaAdmin.php:928
1622
- msgid "Total Videos"
1623
- msgstr ""
1624
-
1625
- #: app/admin/RTMediaAdmin.php:931
1626
- msgid "Sent of regenerate thumbails"
1627
- msgstr ""
1628
-
1629
- #: app/admin/RTMediaAdmin.php:933
1630
- msgid "Fail to regenerate thumbails"
1631
- msgstr ""
1632
-
1633
- #: app/admin/RTMediaAdmin.php:972
1634
- msgid "Regenerate Video Thumbnails Done"
1635
- msgstr ""
1636
-
1637
- #: app/admin/RTMediaAdmin.php:1016
1638
- #, php-format
1639
- msgid ""
1640
- "You have %s videos without thumbnails. Click <a href='%s'> here </a> to "
1641
- "generate thumbnails. <a href='#' onclick='rtmedia_hide_video_thumb_notice()' "
1642
- "style='float:right'>Hide</a>"
1643
- msgstr ""
1644
-
1645
- #: app/admin/RTMediaAdmin.php:1094
1646
- msgid "not a video ..."
1647
- msgstr ""
1648
-
1649
- #: app/admin/RTMediaAdmin.php:1259
1650
- msgid "Empowering The Web With WordPress"
1651
- msgstr ""
1652
-
1653
- #: app/admin/RTMediaAdmin.php:1279
1654
- msgid "Settings saved successfully!"
1655
- msgstr ""
1656
-
1657
- #: app/admin/RTMediaAdmin.php:1282 app/admin/RTMediaAdmin.php:1305
1658
- msgid "Save Settings"
1659
- msgstr ""
1660
-
1661
- #: app/admin/RTMediaAdmin.php:1504 app/admin/RTMediaAdmin.php:1505
1662
- msgid "Display"
1663
- msgstr ""
1664
-
1665
- #: app/admin/RTMediaAdmin.php:1513
1666
- msgid "rtMedia BuddyPress"
1667
- msgstr ""
1668
-
1669
- #: app/admin/RTMediaAdmin.php:1514
1670
- msgid "BuddyPress"
1671
- msgstr ""
1672
-
1673
- #: app/admin/RTMediaAdmin.php:1522
1674
- msgid "rtMedia Types"
1675
- msgstr ""
1676
-
1677
- #: app/admin/RTMediaAdmin.php:1523
1678
- msgid "Types"
1679
- msgstr ""
1680
-
1681
- #: app/admin/RTMediaAdmin.php:1530
1682
- msgid "rtMedia Sizes"
1683
- msgstr ""
1684
-
1685
- #: app/admin/RTMediaAdmin.php:1531
1686
- msgid "Media Sizes"
1687
- msgstr ""
1688
-
1689
- #: app/admin/RTMediaAdmin.php:1538
1690
- msgid "rtMedia Privacy"
1691
- msgstr ""
1692
-
1693
- #: app/admin/RTMediaAdmin.php:1545
1694
- msgid "rtMedia Custom CSS"
1695
- msgstr ""
1696
-
1697
- #: app/admin/RTMediaAdmin.php:1546
1698
- msgid "Custom CSS"
1699
- msgstr ""
1700
-
1701
- #: app/admin/RTMediaAdmin.php:1555 app/admin/RTMediaAdmin.php:1556
1702
- msgid "Other Settings"
1703
- msgstr ""
1704
-
1705
- #: app/admin/RTMediaAdmin.php:1651
1706
- #, php-format
1707
- msgid "I use @rtMediaWP http://rt.cx/rtmedia on %s"
1708
- msgstr ""
1709
-
1710
- #: app/admin/RTMediaAdmin.php:1653
1711
- msgid "Post to Twitter Now"
1712
- msgstr ""
1713
-
1714
- #: app/admin/RTMediaAdmin.php:1653
1715
- msgid "Post to Twitter"
1716
- msgstr ""
1717
-
1718
- #: app/admin/RTMediaAdmin.php:1654
1719
- msgid "Share on Facebook Now"
1720
- msgstr ""
1721
-
1722
- #: app/admin/RTMediaAdmin.php:1654
1723
- msgid "Share on Facebook"
1724
- msgstr ""
1725
-
1726
- #: app/admin/RTMediaAdmin.php:1655
1727
- msgid "Rate rtMedia on Wordpress.org"
1728
- msgstr ""
1729
-
1730
- #: app/admin/RTMediaAdmin.php:1655
1731
- msgid "Rate on Wordpress.org"
1732
- msgstr ""
1733
-
1734
- #: app/admin/RTMediaAdmin.php:1656
1735
- msgid "Subscribe to our Feeds"
1736
- msgstr ""
1737
-
1738
- #: app/admin/RTMediaAdmin.php:1659
1739
- msgid "Spread the Word"
1740
- msgstr ""
1741
-
1742
- #: app/admin/RTMediaAdmin.php:1665 app/admin/RTMediaAdmin.php:1672
1743
- msgid "Subscribe"
1744
- msgstr ""
1745
-
1746
- #: app/admin/RTMediaAdmin.php:1694
1747
- msgid "Thank you for your time."
1748
- msgstr ""
1749
-
1750
- #: app/admin/RTMediaAdmin.php:1706
1751
- msgid "Premium Add-ons"
1752
- msgstr ""
1753
-
1754
- #: app/admin/RTMediaAdmin.php:1722
1755
- #, php-format
1756
- msgid ""
1757
- "You have images enabled on rtMedia but your network allowed filetypes do not "
1758
- "permit uploading of %s. Click <a href=\"%s\">here</a> to change your "
1759
- "settings manually."
1760
- msgstr ""
1761
-
1762
- #: app/admin/RTMediaAdmin.php:1723 app/admin/RTMediaAdmin.php:1734
1763
- #: app/admin/RTMediaAdmin.php:1743
1764
- msgid "Recommended"
1765
- msgstr ""
1766
-
1767
- #: app/admin/RTMediaAdmin.php:1723 app/admin/RTMediaAdmin.php:1734
1768
- #: app/admin/RTMediaAdmin.php:1743
1769
- msgid "Update Network Settings Automatically"
1770
- msgstr ""
1771
-
1772
- #: app/admin/RTMediaAdmin.php:1733
1773
- #, php-format
1774
- msgid ""
1775
- "You have video enabled on BuddyPress Media but your network allowed "
1776
- "filetypes do not permit uploading of mp4. Click <a href=\"%s\">here</a> to "
1777
- "change your settings manually."
1778
- msgstr ""
1779
-
1780
- #: app/admin/RTMediaAdmin.php:1742
1781
- #, php-format
1782
- msgid ""
1783
- "You have audio enabled on BuddyPress Media but your network allowed "
1784
- "filetypes do not permit uploading of mp3. Click <a href=\"%s\">here</a> to "
1785
- "change your settings manually."
1786
- msgstr ""
1787
-
1788
- #: app/admin/RTMediaAdmin.php:1757
1789
- msgid "Network settings updated successfully."
1790
- msgstr ""
1791
-
1792
- #: app/admin/RTMediaAdmin.php:1863
1793
- msgid "Video is sent to generate thumbnails."
1794
- msgstr ""
1795
-
1796
- #: app/admin/RTMediaAdmin.php:1865
1797
- msgid "Video cannot be sent to generate thumbnails."
1798
- msgstr ""
1799
-
1800
- #: app/admin/RTMediaAdmin.php:1944
1801
- msgid ""
1802
- "Please update rtMedia template files if you have overridden the default "
1803
- "rtMedia templates in your theme. If not, you can ignore and hide this notice."
1804
- msgstr ""
1805
-
1806
- #: app/admin/RTMediaAdmin.php:1944
1807
- #: app/importers/RTMediaMediaSizeImporter.php:66
1808
- #: app/importers/RTMediaMigration.php:64
1809
- msgid "Hide"
1810
- msgstr ""
1811
-
1812
- #: app/helper/RTMediaSupport.php:58 app/helper/RTMediaSupport.php:59
1813
- #: app/helper/RTMediaSupport.php:305 app/helper/RTMediaSupport.php:560
1814
- msgid "Debug Info"
1815
- msgstr ""
1816
-
1817
- #: app/helper/RTMediaSupport.php:66 app/helper/RTMediaSupport.php:67
1818
- #: app/importers/RTMediaMigration.php:83
1819
- msgid "Migration"
1820
- msgstr ""
1821
-
1822
- #: app/helper/RTMediaSupport.php:128
1823
- msgid "Service"
1824
- msgstr ""
1825
-
1826
- #: app/helper/RTMediaSupport.php:135
1827
- msgid "Premium Support"
1828
- msgstr ""
1829
-
1830
- #: app/helper/RTMediaSupport.php:141
1831
- msgid "Bug Report"
1832
- msgstr ""
1833
-
1834
- #: app/helper/RTMediaSupport.php:147
1835
- msgid "New Feature"
1836
- msgstr ""
1837
-
1838
- #: app/helper/RTMediaSupport.php:149
1839
- msgid "Submit"
1840
- msgstr ""
1841
-
1842
- #: app/helper/RTMediaSupport.php:195
1843
- msgid "by"
1844
- msgstr ""
1845
-
1846
- #: app/helper/RTMediaSupport.php:195
1847
- msgid "version"
1848
- msgstr ""
1849
-
1850
- #: app/helper/RTMediaSupport.php:357
1851
- msgid "There is no media found to migrate."
1852
- msgstr ""
1853
-
1854
- #: app/helper/RTMediaSupport.php:363
1855
- msgid "here to migrate media from rtMedia 2.x to rtMedia 3.0+."
1856
- msgstr ""
1857
-
1858
- #: app/helper/RTMediaSupport.php:392
1859
- msgid "Submit a Bug Report"
1860
- msgstr ""
1861
-
1862
- #: app/helper/RTMediaSupport.php:395
1863
- msgid "Submit a New Feature Request"
1864
- msgstr ""
1865
-
1866
- #: app/helper/RTMediaSupport.php:398
1867
- msgid "Submit Support Request"
1868
- msgstr ""
1869
-
1870
- #: app/helper/RTMediaSupport.php:405
1871
- msgid ""
1872
- "If your site has some issues due to rtMedia and you want support, feel free "
1873
- "to create a support topic on <a target=\"_blank\" href=\"http://community."
1874
- "rtcamp.com/c/rtmedia/?"
1875
- "utm_source=dashboard&utm_medium=plugin&utm_campaign=buddypress-media"
1876
- "\">Community Forum</a>."
1877
- msgstr ""
1878
-
1879
- #: app/helper/RTMediaSupport.php:406
1880
- msgid ""
1881
- "If you have any suggestions, enhancements or bug reports, you can open a new "
1882
- "issue on <a target=\"_blank\" href=\"https://github.com/rtCamp/rtMedia/"
1883
- "issues/new\">GitHub</a>."
1884
- msgstr ""
1885
-
1886
- #: app/helper/RTMediaSupport.php:415
1887
- msgid "Name"
1888
- msgstr ""
1889
-
1890
- #: app/helper/RTMediaSupport.php:420
1891
- msgid "Use actual user name which used during purchased."
1892
- msgstr ""
1893
-
1894
- #: app/helper/RTMediaSupport.php:426
1895
- msgid "Email"
1896
- msgstr ""
1897
-
1898
- #: app/helper/RTMediaSupport.php:431
1899
- msgid "Use email id which used during purchased"
1900
- msgstr ""
1901
-
1902
- #: app/helper/RTMediaSupport.php:437
1903
- msgid "Website"
1904
- msgstr ""
1905
-
1906
- #: app/helper/RTMediaSupport.php:442
1907
- msgid "Subject"
1908
- msgstr ""
1909
-
1910
- #: app/helper/RTMediaSupport.php:490
1911
- msgid "rtMedia Premium Support Request from"
1912
- msgstr ""
1913
-
1914
- #: app/helper/RTMediaSupport.php:493
1915
- msgid "rtMedia New Feature Request from"
1916
- msgstr ""
1917
-
1918
- #: app/helper/RTMediaSupport.php:496
1919
- msgid "rtMedia Bug Report from"
1920
- msgstr ""
1921
-
1922
- #: app/helper/RTMediaSupport.php:499
1923
- msgid "rtMedia Contact from"
1924
- msgstr ""
1925
-
1926
- #: app/helper/RTMediaSupport.php:582
1927
- msgid "Thank you for your Feedback/Suggestion."
1928
- msgstr ""
1929
-
1930
- #: app/helper/RTMediaSupport.php:584
1931
- msgid "Thank you for posting your support request."
1932
- msgstr ""
1933
-
1934
- #: app/helper/RTMediaSupport.php:585
1935
- msgid "We will get back to you shortly."
1936
- msgstr ""
1937
-
1938
- #: app/helper/RTMediaSupport.php:590
1939
- msgid "Your server failed to send an email."
1940
- msgstr ""
1941
-
1942
- #: app/helper/RTMediaSupport.php:591
1943
- msgid "Kindly contact your server support to fix this."
1944
- msgstr ""
1945
-
1946
- #: app/helper/RTMediaSupport.php:592
1947
- #, php-format
1948
- msgid "You can alternatively create a support request <a href=\"%s\">here</a>"
1949
- msgstr ""
1950
-
1951
- #: app/helper/RTMediaAddon.php:79 app/helper/RTMediaAddon.php:80
1952
- msgid "Plugins"
1953
- msgstr ""
1954
-
1955
- #: app/helper/RTMediaAddon.php:87 app/helper/RTMediaAddon.php:88
1956
- msgid "Audio/Video Encoding"
1957
- msgstr ""
1958
-
1959
- #: app/helper/RTMediaAddon.php:111
1960
- msgid "SEO"
1961
- msgstr ""
1962
-
1963
- #: app/helper/RTMediaAddon.php:114
1964
- msgid ""
1965
- "Generate an XML sitemap for all the public media files uploaded via rtMedia "
1966
- "plugin. These sitemaps can be useful to index search engine to improve "
1967
- "website SEO."
1968
- msgstr ""
1969
-
1970
- #: app/helper/RTMediaAddon.php:121
1971
- msgid "Moderation"
1972
- msgstr ""
1973
-
1974
- #: app/helper/RTMediaAddon.php:124
1975
- msgid ""
1976
- "Report media if they find offensive. Set number of reports to automatically "
1977
- "take down media from site."
1978
- msgstr ""
1979
-
1980
- #: app/helper/RTMediaAddon.php:132
1981
- msgid "Custom Attributes"
1982
- msgstr ""
1983
-
1984
- #: app/helper/RTMediaAddon.php:135
1985
- msgid ""
1986
- "Categories media based on attributes. Site owner need to create attributes. "
1987
- "When user upload a media, can select in which attribute that media can add."
1988
- msgstr ""
1989
-
1990
- #: app/helper/RTMediaAddon.php:143
1991
- msgid "Docs and Other files"
1992
- msgstr ""
1993
-
1994
- #: app/helper/RTMediaAddon.php:146
1995
- msgid ""
1996
- "Allow users to upload documents and other file type using rtMedia upload "
1997
- "box. This addon support all the file extensions which WordPress allows."
1998
- msgstr ""
1999
-
2000
- #: app/helper/RTMediaAddon.php:154
2001
- msgid "Default Albums"
2002
- msgstr ""
2003
-
2004
- #: app/helper/RTMediaAddon.php:157
2005
- msgid ""
2006
- "This plugin allows the creation of multiple default albums for rtMedia "
2007
- "uploads. One of these albums can be set as the default global album."
2008
- msgstr ""
2009
-
2010
- #: app/helper/RTMediaAddon.php:165
2011
- msgid "Podcast (RSS and Atom feeds)"
2012
- msgstr ""
2013
-
2014
- #: app/helper/RTMediaAddon.php:168
2015
- msgid ""
2016
- "Read rtMedia uploads from iTunes as well as any RSS feed-reader/podcasting "
2017
- "software."
2018
- msgstr ""
2019
-
2020
- #: app/helper/RTMediaAddon.php:176
2021
- msgid "Playlists"
2022
- msgstr ""
2023
-
2024
- #: app/helper/RTMediaAddon.php:179
2025
- msgid ""
2026
- "Audio can be grouped into playlists. Once the user upload any audio file, "
2027
- "can create a playlist or use existing one to manage audio files."
2028
- msgstr ""
2029
-
2030
- #: app/helper/RTMediaAddon.php:187
2031
- msgid "Favorites"
2032
- msgstr ""
2033
-
2034
- #: app/helper/RTMediaAddon.php:190
2035
- msgid ""
2036
- "Users can create their list of favorite media in which they can add media "
2037
- "previously uploaded by any user."
2038
- msgstr ""
2039
-
2040
- #: app/helper/RTMediaAddon.php:198
2041
- msgid "Restrictions"
2042
- msgstr ""
2043
-
2044
- #: app/helper/RTMediaAddon.php:201
2045
- msgid ""
2046
- "Site admin can set an upload limit on the basis of time span, file size (MB) "
2047
- "and number of files user can upload."
2048
- msgstr ""
2049
-
2050
- #: app/helper/RTMediaAddon.php:209
2051
- msgid "bbPress Attachments"
2052
- msgstr ""
2053
-
2054
- #: app/helper/RTMediaAddon.php:212
2055
- msgid "Attach media files to bbPress forum topics and replies."
2056
- msgstr ""
2057
-
2058
- #: app/helper/RTMediaAddon.php:220
2059
- msgid "WordPress Sitewide Gallery"
2060
- msgstr ""
2061
-
2062
- #: app/helper/RTMediaAddon.php:223
2063
- msgid ""
2064
- "Site admin can create and upload media into WordPress album. Create album "
2065
- "without being dependent on BuddyPress."
2066
- msgstr ""
2067
-
2068
- #: app/helper/RTMediaAddon.php:231
2069
- msgid "WordPress Comment Attachments"
2070
- msgstr ""
2071
-
2072
- #: app/helper/RTMediaAddon.php:234
2073
- msgid ""
2074
- "Allow users to upload a media file in WordPress comment attachment box. It "
2075
- "will display a thumbnail of attached file."
2076
- msgstr ""
2077
-
2078
- #: app/helper/RTMediaAddon.php:242
2079
- msgid "Social Sharing"
2080
- msgstr ""
2081
-
2082
- #: app/helper/RTMediaAddon.php:245
2083
- msgid ""
2084
- "Share uploaded media on social network sites like Facebook, twitter, "
2085
- "linkedin, Google +. This addon integrate with rtSocial plugin."
2086
- msgstr ""
2087
-
2088
- #: app/helper/RTMediaAddon.php:253
2089
- msgid "Sidebar Widgets"
2090
- msgstr ""
2091
-
2092
- #: app/helper/RTMediaAddon.php:256
2093
- msgid ""
2094
- "This addon provide widgets to upload media and display gallery for rtMedia "
2095
- "plugin."
2096
- msgstr ""
2097
-
2098
- #: app/helper/RTMediaAddon.php:264
2099
- msgid "5 Star Ratings"
2100
- msgstr ""
2101
-
2102
- #: app/helper/RTMediaAddon.php:267
2103
- msgid ""
2104
- "Display 5 star rating for all the uploaded media. User can rate the media "
2105
- "files from 1 to 5 star."
2106
- msgstr ""
2107
-
2108
- #: app/helper/RTMediaAddon.php:275
2109
- msgid "Edit Mp3 Info (ID3 Tags)"
2110
- msgstr ""
2111
-
2112
- #: app/helper/RTMediaAddon.php:278
2113
- msgid "Allow user to edit MP3 FIle Audio tags (ID 3 tags)."
2114
- msgstr ""
2115
-
2116
- #: app/helper/RTMediaAddon.php:286
2117
- msgid "Media Sorting"
2118
- msgstr ""
2119
-
2120
- #: app/helper/RTMediaAddon.php:289
2121
- msgid ""
2122
- "Sort uploaded media based on file size, ascending/descending title, upload "
2123
- "date of media."
2124
- msgstr ""
2125
-
2126
- #: app/helper/RTMediaAddon.php:297
2127
- msgid "Bulk Edit"
2128
- msgstr ""
2129
-
2130
- #: app/helper/RTMediaAddon.php:300
2131
- msgid ""
2132
- "Bulk edit option will allow user to quickly select media files and do "
2133
- "required actions like move files from one album to another, change "
2134
- "attributes, change privacy, delete files."
2135
- msgstr ""
2136
-
2137
- #: app/helper/RTMediaAddon.php:308
2138
- msgid "BuddyPress Profile Picture"
2139
- msgstr ""
2140
-
2141
- #: app/helper/RTMediaAddon.php:311
2142
- msgid ""
2143
- "User can easily set his/her profile picture from media uploaded via rtMedia."
2144
- msgstr ""
2145
-
2146
- #: app/helper/RTMediaAddon.php:319
2147
- msgid "Album Cover Art"
2148
- msgstr ""
2149
-
2150
- #: app/helper/RTMediaAddon.php:322
2151
- msgid "User can easily set any of the image of the album as album cover photo"
2152
- msgstr ""
2153
-
2154
- #: app/helper/RTMediaAddon.php:330
2155
- msgid "Direct Download Link"
2156
- msgstr ""
2157
-
2158
- #: app/helper/RTMediaAddon.php:333
2159
- msgid ""
2160
- "User can download media from website. Site owner can restrict which media "
2161
- "type can be allowed to download."
2162
- msgstr ""
2163
-
2164
- #: app/helper/RTMediaAddon.php:341
2165
- msgid "Upload by URL"
2166
- msgstr ""
2167
-
2168
- #: app/helper/RTMediaAddon.php:344
2169
- msgid ""
2170
- "Users do not need to download media files from a URL and then upload it with "
2171
- "rtMedia. Just provide the absolute URL for the media and it will upload on "
2172
- "site."
2173
- msgstr ""
2174
-
2175
- #: app/helper/RTMediaAddon.php:352
2176
- msgid "Media Likes"
2177
- msgstr ""
2178
-
2179
- #: app/helper/RTMediaAddon.php:355
2180
- msgid ""
2181
- "This add-on let you know who liked the media. User can also see which media "
2182
- "they liked under their profile."
2183
- msgstr ""
2184
-
2185
- #: app/helper/RTMediaAddon.php:363
2186
- msgid "Activity URL Preview"
2187
- msgstr ""
2188
-
2189
- #: app/helper/RTMediaAddon.php:366
2190
- msgid ""
2191
- "This addon provides a preview of the URL that is shared in BuddyPress "
2192
- "activity. Just enter the URL you want to share on your site and see a "
2193
- "preview of it before it is shared."
2194
- msgstr ""
2195
-
2196
- #: app/helper/RTMediaAddon.php:374
2197
- msgid "View Counter"
2198
- msgstr ""
2199
-
2200
- #: app/helper/RTMediaAddon.php:377
2201
- msgid ""
2202
- "Enable view count for all the uploaded media. Whenever user open that media "
2203
- "file in lightbox or in single media view, that view count will be calculated "
2204
- "and display next to media file."
2205
- msgstr ""
2206
-
2207
- #: app/helper/RTMediaAddon.php:385
2208
- msgid "Shortcode Generator"
2209
- msgstr ""
2210
-
2211
- #: app/helper/RTMediaAddon.php:388
2212
- msgid ""
2213
- "This add-on will add shortcode generator button in WordPress post and page "
2214
- "editor for all the rtMedia shortcodes."
2215
- msgstr ""
2216
-
2217
- #: app/helper/RTMediaAddon.php:396
2218
- msgid "Album Privacy"
2219
- msgstr ""
2220
-
2221
- #: app/helper/RTMediaAddon.php:399
2222
- msgid ""
2223
- "Set album privacy when user create an album or change album privacy when "
2224
- "editing existing albums. The privacy levels are Public, Logged in user, "
2225
- "Friends and Private."
2226
- msgstr ""
2227
-
2228
- #: app/helper/RTMediaAddon.php:407
2229
- msgid "BuddyPress Group Media Control"
2230
- msgstr ""
2231
-
2232
- #: app/helper/RTMediaAddon.php:410
2233
- msgid ""
2234
- "This add-on allows group owner to manage media upload feature group wise."
2235
- msgstr ""
2236
-
2237
- #: app/helper/RTMediaAddon.php:418
2238
- msgid "Set Custom Thumbnail for Audio/Video"
2239
- msgstr ""
2240
-
2241
- #: app/helper/RTMediaAddon.php:421
2242
- msgid ""
2243
- "Allow media owner to change the thumbnail of uploaded audio/video files. The "
2244
- "File Upload box will be provided to change media thumbnail."
2245
- msgstr ""
2246
-
2247
- #: app/helper/RTMediaAddon.php:429
2248
- msgid "myCRED"
2249
- msgstr ""
2250
-
2251
- #: app/helper/RTMediaAddon.php:432
2252
- msgid ""
2253
- "This plugin integrates rtMedia and myCRED plugin, users can be can award "
2254
- "virtual points for various rtMedia activities, like media upload, likes, "
2255
- "deleted etc."
2256
- msgstr ""
2257
-
2258
- #: app/helper/RTMediaAddon.php:440
2259
- msgid "Upload terms"
2260
- msgstr ""
2261
-
2262
- #: app/helper/RTMediaAddon.php:443
2263
- msgid ""
2264
- "User must have to check the terms and conditions checkbox before uploading "
2265
- "the media."
2266
- msgstr ""
2267
-
2268
- #: app/helper/RTMediaAddon.php:451
2269
- msgid "CubePoints"
2270
- msgstr ""
2271
-
2272
- #: app/helper/RTMediaAddon.php:454
2273
- msgid ""
2274
- "If you are using CubePoints plugin on your website than rtMedia CubePoint "
2275
- "add-on can be integrate with that plugin to setup point management system "
2276
- "for rtMedia related activities."
2277
- msgstr ""
2278
-
2279
- #: app/helper/RTMediaAddon.php:462
2280
- msgid "Social Sync"
2281
- msgstr ""
2282
-
2283
- #: app/helper/RTMediaAddon.php:465
2284
- msgid ""
2285
- "rtMedia Social Sync allows you to import media from your Facebook account."
2286
- msgstr ""
2287
-
2288
- #: app/helper/RTMediaAddon.php:473
2289
- msgid "Photo Watermark"
2290
- msgstr ""
2291
-
2292
- #: app/helper/RTMediaAddon.php:476
2293
- msgid ""
2294
- "rtMedia Photo Watermark let you add watermark on your images uploaded using "
2295
- "rtMedia."
2296
- msgstr ""
2297
-
2298
- #: app/helper/RTMediaAddon.php:484
2299
- msgid "Photo Tagging"
2300
- msgstr ""
2301
-
2302
- #: app/helper/RTMediaAddon.php:487
2303
- msgid ""
2304
- "rtMedia Photo Tagging enable users to tag their friends on photos uploaded "
2305
- "using rtMedia."
2306
- msgstr ""
2307
-
2308
- #: app/helper/RTMediaAddon.php:495
2309
- msgid "Photo Filters"
2310
- msgstr ""
2311
-
2312
- #: app/helper/RTMediaAddon.php:498
2313
- msgid ""
2314
- "rtMedia Photo Filters adds Instagram like filters to images uploaded with "
2315
- "rtMedia."
2316
- msgstr ""
2317
-
2318
- #: app/helper/RTMediaAddon.php:506
2319
- msgid "Kaltura Add-on"
2320
- msgstr ""
2321
-
2322
- #: app/helper/RTMediaAddon.php:509
2323
- msgid ""
2324
- "Add support for more video formats using Kaltura video solution. It works "
2325
- "with Kaltura.com, self-hosted Kaltura-CE and Kaltura-on-premise."
2326
- msgstr ""
2327
-
2328
- #: app/helper/RTMediaAddon.php:517
2329
- msgid "FFMPEG Add-on"
2330
- msgstr ""
2331
-
2332
- #: app/helper/RTMediaAddon.php:520
2333
- msgid ""
2334
- "Add supports for more audio & video formats using open-source media-node. "
2335
- "Media node comes with automated setup script for Ubuntu/Debian."
2336
- msgstr ""
2337
-
2338
- #: app/helper/RTMediaAddon.php:528
2339
- msgid "Membership Add-on"
2340
- msgstr ""
2341
-
2342
- #: app/helper/RTMediaAddon.php:531
2343
- msgid ""
2344
- "rtMedia Membership add-on provides membership functionality in your site in "
2345
- "terms of media upload."
2346
- msgstr ""
2347
-
2348
- #: app/helper/RTMediaAddon.php:571
2349
- msgid "Coming Soon !!"
2350
- msgstr ""
2351
-
2352
- #: app/helper/RTMediaAddon.php:604
2353
- msgid "Purchased"
2354
- msgstr ""
2355
-
2356
- #: app/helper/RTMediaAddon.php:606 app/helper/RTMediaThemes.php:145
2357
- #: app/helper/RTMediaThemes.php:173 app/helper/RTMediaThemes.php:260
2358
- #: app/helper/RTMediaThemes.php:288 app/importers/BPMediaAlbumimporter.php:178
2359
- msgid "Buy Now"
2360
- msgstr ""
2361
-
2362
- #: app/helper/RTMediaAddon.php:635 app/helper/RTMediaThemes.php:144
2363
- #: app/helper/RTMediaThemes.php:172 app/helper/RTMediaThemes.php:259
2364
- #: app/helper/RTMediaThemes.php:287 app/importers/BPMediaAlbumimporter.php:179
2365
- msgid "Live Demo"
2366
- msgstr ""
2367
-
2368
- #: app/helper/rtFormInvalidArgumentsException.php:21
2369
- #, php-format
2370
- msgid ""
2371
- "Error on line %s in %s : <b>The method expects an array in arguments for %s "
2372
- "provided.</b>"
2373
- msgstr ""
2374
-
2375
- #: app/helper/RTMediaAdminWidget.php:32
2376
- msgid "Argument missing. id is required."
2377
- msgstr ""
2378
-
2379
- #: app/helper/RTMediaFeed.php:52
2380
- msgid "No items"
2381
- msgstr ""
2382
-
2383
- #: app/helper/RTMediaFeed.php:58
2384
- msgid "Posted "
2385
- msgstr ""
2386
-
2387
- #: app/helper/RTMediaUploadException.php:41
2388
- msgid ""
2389
- "The uploaded file exceeds the MAX_FILE_SIZE directive that was specified in "
2390
- "the HTML form"
2391
- msgstr ""
2392
-
2393
- #: app/helper/RTMediaUploadException.php:44
2394
- msgid "No file was uploaded"
2395
- msgstr ""
2396
-
2397
- #: app/helper/RTMediaUploadException.php:49
2398
- msgid "Uploade failed due to internal server error."
2399
- msgstr ""
2400
-
2401
- #: app/helper/RTMediaUploadException.php:52
2402
- msgid "File type not allowed."
2403
- msgstr ""
2404
-
2405
- #: app/helper/RTMediaUploadException.php:56
2406
- msgid "Invalid Context for upload."
2407
- msgstr ""
2408
-
2409
- #: app/helper/RTMediaUploadException.php:59
2410
- msgid "Unknown file upload error."
2411
- msgstr ""
2412
-
2413
- #: app/helper/RTMediaSettings.php:205
2414
- msgid "BuddyPress Media Addons for Photos"
2415
- msgstr ""
2416
-
2417
- #: app/helper/RTMediaSettings.php:209
2418
- msgid "rtMedia Themes"
2419
- msgstr ""
2420
-
2421
- #: app/helper/RTMediaSettings.php:282
2422
- #, php-format
2423
- msgid ""
2424
- "Currently your network allows uploading of the following file types. You can "
2425
- "change the settings <a href=\"%s\">here</a>.<br /><code>%s</code></span>"
2426
- msgstr ""
2427
-
2428
- #: app/helper/RTMediaSettings.php:300 app/helper/RTMediaSettings.php:302
2429
- msgid "Recounting of media files done successfully"
2430
- msgstr ""
2431
-
2432
- #: app/helper/RTMediaSettings.php:302
2433
- msgid "Recount Success"
2434
- msgstr ""
2435
-
2436
- #: app/helper/RTMediaSettings.php:306 app/helper/RTMediaSettings.php:308
2437
- msgid "Recounting Failed"
2438
- msgstr ""
2439
-
2440
- #: app/helper/RTMediaSettings.php:308
2441
- msgid "Recount Fail"
2442
- msgstr ""
2443
-
2444
- #: app/helper/RTMediaSettings.php:321 app/helper/RTMediaSettings.php:323
2445
- msgid "Atleast one Media Type Must be selected"
2446
- msgstr ""
2447
-
2448
- #: app/helper/RTMediaSettings.php:332 app/helper/RTMediaSettings.php:334
2449
- msgid "\"Number of media\" count value should be numeric and greater than 0."
2450
- msgstr ""
2451
-
2452
- #: app/helper/RTMediaSettings.php:334
2453
- msgid "Default Count"
2454
- msgstr ""
2455
-
2456
- #: app/helper/RTMediaSettings.php:339
2457
- msgid "Settings saved."
2458
- msgstr ""
2459
-
2460
- #: app/helper/RTMediaSettings.php:363
2461
- #, php-format
2462
- msgid ""
2463
- "If you make changes to width, height or crop settings, you must use \"<a "
2464
- "href=\"%s\">Regenerate Thumbnail Plugin</a>\" to regenerate old images.\""
2465
- msgstr ""
2466
-
2467
- #: app/helper/RTMediaSettings.php:384
2468
- msgid "BuddyPress Media 2.6 requires a database upgrade. "
2469
- msgstr ""
2470
-
2471
- #: app/helper/RTMediaSettings.php:384
2472
- msgid "Update Database"
2473
- msgstr ""
2474
-
2475
- #: app/helper/RTMediaSettings.php:401
2476
- msgid ""
2477
- "If your site has some issues due to BuddyPress Media and you want one on one "
2478
- "support then you can create a support topic on the <a target=\"_blank\" href="
2479
- "\"http://community.rtcamp.com/c/rtmedia?"
2480
- "utm_source=dashboard&utm_medium=plugin&utm_campaign=rtmedia\">rtCamp Support "
2481
- "Forum</a>."
2482
- msgstr ""
2483
-
2484
- #: app/helper/RTMediaSettings.php:402
2485
- msgid ""
2486
- "If you have any suggestions, enhancements or bug reports, then you can open "
2487
- "a new issue on <a target=\"_blank\" href=\"https://github.com/rtCamp/rtmedia/"
2488
- "issues/new\">GitHub</a>."
2489
- msgstr ""
2490
-
2491
- #: app/helper/RTMediaThemes.php:60 app/helper/RTMediaThemes.php:61
2492
- msgid "Themes By rtCamp"
2493
- msgstr ""
2494
-
2495
- #: app/helper/RTMediaThemes.php:67 app/helper/RTMediaThemes.php:68
2496
- msgid "3rd Party Themes"
2497
- msgstr ""
2498
-
2499
- #: app/helper/RTMediaThemes.php:105
2500
- msgid "rtDating"
2501
- msgstr ""
2502
-
2503
- #: app/helper/RTMediaThemes.php:108 app/helper/RTMediaThemes.php:118
2504
- msgid "rtCamp"
2505
- msgstr ""
2506
-
2507
- #: app/helper/RTMediaThemes.php:111
2508
- msgid ""
2509
- "rtDating is a unique, clean and modern theme only for WordPress. This theme "
2510
- "is mostly useful for dating sites and community websites. It can also be use "
2511
- "for any other WordPress based website."
2512
- msgstr ""
2513
-
2514
- #: app/helper/RTMediaThemes.php:115
2515
- msgid "InspireBook"
2516
- msgstr ""
2517
-
2518
- #: app/helper/RTMediaThemes.php:121
2519
- msgid ""
2520
- "InspireBook is a premium WordPress theme, designed especially for BuddyPress "
2521
- "and rtMedia powered social-networks."
2522
- msgstr ""
2523
-
2524
- #: app/helper/RTMediaThemes.php:139 app/helper/RTMediaThemes.php:254
2525
- msgid "Theme Details"
2526
- msgstr ""
2527
-
2528
- #: app/helper/RTMediaThemes.php:151 app/helper/RTMediaThemes.php:266
2529
- msgid "Show previous theme"
2530
- msgstr ""
2531
-
2532
- #: app/helper/RTMediaThemes.php:152 app/helper/RTMediaThemes.php:267
2533
- msgid "Show next theme"
2534
- msgstr ""
2535
-
2536
- #: app/helper/RTMediaThemes.php:153 app/helper/RTMediaThemes.php:268
2537
- msgid "Close overlay"
2538
- msgstr ""
2539
-
2540
- #: app/helper/RTMediaThemes.php:166 app/helper/RTMediaThemes.php:281
2541
- msgid "Read More"
2542
- msgstr ""
2543
-
2544
- #: app/helper/RTMediaThemes.php:167 app/helper/RTMediaThemes.php:282
2545
- msgid "Tags:"
2546
- msgstr ""
2547
-
2548
- #: app/helper/RTMediaThemes.php:199
2549
- msgid "(M) SOCIAL NETWORK BUDDYPRESS THEME"
2550
- msgstr ""
2551
-
2552
- #: app/helper/RTMediaThemes.php:202
2553
- msgid "gavick"
2554
- msgstr ""
2555
-
2556
- #: app/helper/RTMediaThemes.php:205
2557
- msgid ""
2558
- "(M)Social is a sophisticated, vibrant community theme that offers incredible "
2559
- "grid layouts, with full BuddyPress support so your users can interact with "
2560
- "each other, create their own pages, and share their thoughts and images with "
2561
- "the community. "
2562
- msgstr ""
2563
-
2564
- #: app/helper/RTMediaThemes.php:209
2565
- msgid "Klein"
2566
- msgstr ""
2567
-
2568
- #: app/helper/RTMediaThemes.php:212
2569
- msgid "dunhakdis"
2570
- msgstr ""
2571
-
2572
- #: app/helper/RTMediaThemes.php:215
2573
- msgid ""
2574
- "Klein is an innovative WordPress theme built to support BuddyPress, bbPress, "
2575
- "and WooCommerce out of the box. Perfect for websites that interacts with "
2576
- "many users."
2577
- msgstr ""
2578
-
2579
- #: app/helper/RTMediaThemes.php:219
2580
- msgid "SweetDate"
2581
- msgstr ""
2582
-
2583
- #: app/helper/RTMediaThemes.php:222 app/helper/RTMediaThemes.php:232
2584
- msgid "SeventhQueen"
2585
- msgstr ""
2586
-
2587
- #: app/helper/RTMediaThemes.php:225
2588
- msgid ""
2589
- "SweetDate is a unique, clean and modern Premium Wordpress theme. It is "
2590
- "perfect for a dating or community website but can be used as well for any "
2591
- "other domain. They added all the things you need to create a perfect "
2592
- "community system."
2593
- msgstr ""
2594
-
2595
- #: app/helper/RTMediaThemes.php:229
2596
- msgid "KLEO"
2597
- msgstr ""
2598
-
2599
- #: app/helper/RTMediaThemes.php:235
2600
- msgid ""
2601
- "You no longer need to be a professional developer or designer to create an "
2602
- "awesome website. Let your imagination run wild and create the site of your "
2603
- "dreams. KLEO has all the tools to get you started."
2604
- msgstr ""
2605
-
2606
- #: app/helper/RTMediaThemes.php:298
2607
- msgid ""
2608
- "These are the third party themes. For any issues or queries regarding these "
2609
- "themes please contact theme developers."
2610
- msgstr ""
2611
-
2612
- #: app/helper/RTMediaThemes.php:301
2613
- msgid "Are you a developer?"
2614
- msgstr ""
2615
-
2616
- #: app/helper/RTMediaThemes.php:304
2617
- msgid ""
2618
- "If you have developed a rtMedia compatible theme and would like it to list "
2619
- "here, please email us at"
2620
- msgstr ""
2621
-
2622
- #: app/helper/RTMediaThemes.php:305
2623
- msgid "product@rtcamp.com"
2624
- msgstr ""
2625
-
2626
- #: app/helper/RTMediaLicense.php:56
2627
- msgid "Activated"
2628
- msgstr ""
2629
-
2630
- #: app/helper/RTMediaLicense.php:59
2631
- msgid "Deactivated"
2632
- msgstr ""
2633
-
2634
- #: app/helper/RTMediaLicense.php:68
2635
- msgid "Status: "
2636
- msgstr ""
2637
-
2638
- #: app/helper/RTMediaLicense.php:77
2639
- msgid "License Key"
2640
- msgstr ""
2641
-
2642
- #: app/helper/RTMediaLicense.php:88
2643
- msgid "Activate / Deactivate License"
2644
- msgstr ""
2645
-
2646
- #: app/helper/RTMediaLicense.php:96
2647
- msgid "Deactivate License"
2648
- msgstr ""
2649
-
2650
- #: app/helper/RTMediaLicense.php:99
2651
- msgid "Activate License"
2652
- msgstr ""
2653
-
2654
- #: app/services/RTMediaEncoding.php:156
2655
- msgid "rtMedia Encoding: Nearing quota limit."
2656
- msgstr ""
2657
-
2658
- #: app/services/RTMediaEncoding.php:157
2659
- #, php-format
2660
- msgid ""
2661
- "<p>You are nearing the quota limit for your rtMedia encoding service.</"
2662
- "p><p>Following are the details:</p><p><strong>Used:</strong> %s</"
2663
- "p><p><strong>Remaining</strong>: %s</p><p><strong>Total:</strong> %s</p>"
2664
- msgstr ""
2665
-
2666
- #: app/services/RTMediaEncoding.php:171
2667
- msgid "rtMedia Encoding: Usage quota over."
2668
- msgstr ""
2669
-
2670
- #: app/services/RTMediaEncoding.php:172
2671
- #, php-format
2672
- msgid ""
2673
- "<p>Your usage quota is over. Upgrade your plan</p><p>Following are the "
2674
- "details:</p><p><strong>Used:</strong> %s</p><p><strong>Remaining</strong>: "
2675
- "%s</p><p><strong>Total:</strong> %s</p>"
2676
- msgstr ""
2677
-
2678
- #: app/services/RTMediaEncoding.php:233
2679
- #, php-format
2680
- msgid "You have successfully subscribed for the <strong>%s</strong> plan"
2681
- msgstr ""
2682
-
2683
- #: app/services/RTMediaEncoding.php:245
2684
- msgid "Unsubscribe"
2685
- msgstr ""
2686
-
2687
- #: app/services/RTMediaEncoding.php:247
2688
- msgid ""
2689
- "Just to improve our service we would like to know the reason for you to "
2690
- "leave us."
2691
- msgstr ""
2692
-
2693
- #: app/services/RTMediaEncoding.php:296 app/services/RTMediaEncoding.php:398
2694
- msgid "Current Plan"
2695
- msgstr ""
2696
-
2697
- #: app/services/RTMediaEncoding.php:296
2698
- msgid "Unsubscribed"
2699
- msgstr ""
2700
-
2701
- #: app/services/RTMediaEncoding.php:298
2702
- msgid "Used"
2703
- msgstr ""
2704
-
2705
- #: app/services/RTMediaEncoding.php:300
2706
- msgid "Remaining"
2707
- msgstr ""
2708
-
2709
- #: app/services/RTMediaEncoding.php:302
2710
- msgid "Total"
2711
- msgstr ""
2712
-
2713
- #: app/services/RTMediaEncoding.php:306
2714
- msgid "Your usage limit has been reached. Upgrade your plan."
2715
- msgstr ""
2716
-
2717
- #: app/services/RTMediaEncoding.php:308
2718
- msgid "Your API key is not valid or is expired."
2719
- msgstr ""
2720
-
2721
- #: app/services/RTMediaEncoding.php:310
2722
- msgid "Encoding Usage"
2723
- msgstr ""
2724
-
2725
- #: app/services/RTMediaEncoding.php:316
2726
- msgid "Audio/Video encoding service"
2727
- msgstr ""
2728
-
2729
- #: app/services/RTMediaEncoding.php:318
2730
- msgid "rtMedia team has started offering an audio/video encoding service."
2731
- msgstr ""
2732
-
2733
- #: app/services/RTMediaEncoding.php:321
2734
- msgid "Enter API KEY"
2735
- msgstr ""
2736
-
2737
- #: app/services/RTMediaEncoding.php:323
2738
- msgid "Save Key"
2739
- msgstr ""
2740
-
2741
- #: app/services/RTMediaEncoding.php:344
2742
- msgid "Feature\\Plan"
2743
- msgstr ""
2744
-
2745
- #: app/services/RTMediaEncoding.php:345 app/services/RTMediaEncoding.php:388
2746
- msgid "Free"
2747
- msgstr ""
2748
-
2749
- #: app/services/RTMediaEncoding.php:346
2750
- msgid "Silver"
2751
- msgstr ""
2752
-
2753
- #: app/services/RTMediaEncoding.php:347
2754
- msgid "Gold"
2755
- msgstr ""
2756
-
2757
- #: app/services/RTMediaEncoding.php:348
2758
- msgid "Platinum"
2759
- msgstr ""
2760
-
2761
- #: app/services/RTMediaEncoding.php:354
2762
- msgid "File Size Limit"
2763
- msgstr ""
2764
-
2765
- #: app/services/RTMediaEncoding.php:359
2766
- msgid "Bandwidth (monthly)"
2767
- msgstr ""
2768
-
2769
- #: app/services/RTMediaEncoding.php:366
2770
- msgid "Overage Bandwidth"
2771
- msgstr ""
2772
-
2773
- #: app/services/RTMediaEncoding.php:367 app/services/RTMediaEncoding.php:374
2774
- #: app/services/RTMediaEncoding.php:379
2775
- msgid "Not Available"
2776
- msgstr ""
2777
-
2778
- #: app/services/RTMediaEncoding.php:373
2779
- msgid "Amazon S3 Support"
2780
- msgstr ""
2781
-
2782
- #: app/services/RTMediaEncoding.php:375 app/services/RTMediaEncoding.php:380
2783
- #: app/services/RTMediaEncoding.php:384
2784
- msgid "Coming Soon"
2785
- msgstr ""
2786
-
2787
- #: app/services/RTMediaEncoding.php:378
2788
- msgid "HD Profile"
2789
- msgstr ""
2790
-
2791
- #: app/services/RTMediaEncoding.php:383
2792
- msgid "Webcam Recording"
2793
- msgstr ""
2794
-
2795
- #: app/services/RTMediaEncoding.php:387
2796
- msgid "Pricing"
2797
- msgstr ""
2798
-
2799
- #: app/services/RTMediaEncoding.php:389
2800
- msgid "$9/month"
2801
- msgstr ""
2802
-
2803
- #: app/services/RTMediaEncoding.php:390
2804
- msgid "$99/month"
2805
- msgstr ""
2806
-
2807
- #: app/services/RTMediaEncoding.php:391
2808
- msgid "$999/month"
2809
- msgstr ""
2810
-
2811
- #: app/services/RTMediaEncoding.php:402
2812
- msgid "Try Now"
2813
- msgstr ""
2814
-
2815
- #: app/services/RTMediaEncoding.php:556
2816
- msgid "Could not read file."
2817
- msgstr ""
2818
-
2819
- #: app/services/RTMediaEncoding.php:560
2820
- msgid ""
2821
- "Something went wrong. The required attachment id does not exists. It must "
2822
- "have been deleted."
2823
- msgstr ""
2824
-
2825
- #: app/services/RTMediaEncoding.php:575
2826
- msgid "rtMedia Encoding: Download Failed"
2827
- msgstr ""
2828
-
2829
- #: app/services/RTMediaEncoding.php:576
2830
- #, php-format
2831
- msgid ""
2832
- "<p><a href=\"%s\">Media</a> was successfully encoded but there was an error "
2833
- "while downloading:</p>\n"
2834
- " <p><code>%s</code></p>\n"
2835
- " <p>You can <a href=\"%s\">retry the download</a>.</p>"
2836
- msgstr ""
2837
-
2838
- #: app/services/RTMediaEncoding.php:590
2839
- msgid "Done"
2840
- msgstr ""
2841
-
2842
- #: app/services/RTMediaEncoding.php:615 app/services/RTMediaEncoding.php:637
2843
- msgid "Something went wrong please try again."
2844
- msgstr ""
2845
-
2846
- #: app/services/RTMediaEncoding.php:634
2847
- msgid "Your subscription was cancelled successfully"
2848
- msgstr ""
2849
-
2850
- #: app/services/RTMediaEncoding.php:646
2851
- msgid "Please enter the api key."
2852
- msgstr ""
2853
-
2854
- #: app/services/RTMediaEncoding.php:653
2855
- msgid "Encoding disabled successfully."
2856
- msgstr ""
2857
-
2858
- #: app/services/RTMediaEncoding.php:659
2859
- msgid "Encoding enabled successfully."
2860
- msgstr ""
2861
-
2862
- #: app/importers/BPMediaAlbumimporter.php:71
2863
- msgid "Warning!"
2864
- msgstr ""
2865
-
2866
- #: app/importers/BPMediaAlbumimporter.php:71
2867
- #, php-format
2868
- msgid ""
2869
- "This import process is irreversible. Although everything is tested, please "
2870
- "take a <a target=\"_blank\" href=\"http://codex.wordpress.org/"
2871
- "WordPress_Backups\">backup of your database and files</a>, before "
2872
- "proceeding. If you don't know your way around databases and files, consider "
2873
- "<a target=\"_blank\" href=\"%s\">hiring us</a>, or another professional."
2874
- msgstr ""
2875
-
2876
- #: app/importers/BPMediaAlbumimporter.php:72
2877
- msgid ""
2878
- "If you have set \"WP_DEBUG\" in you wp-config.php file, please make sure it "
2879
- "is set to \"false\", so that it doesn't conflict with the import process."
2880
- msgstr ""
2881
-
2882
- #: app/importers/BPMediaAlbumimporter.php:73
2883
- msgid "I have taken a backup of the database and files of this site."
2884
- msgstr ""
2885
-
2886
- #: app/importers/BPMediaAlbumimporter.php:75
2887
- msgid "Start Import"
2888
- msgstr ""
2889
-
2890
- #: app/importers/BPMediaAlbumimporter.php:80
2891
- msgid "Users"
2892
- msgstr ""
2893
-
2894
- #: app/importers/BPMediaAlbumimporter.php:110
2895
- msgid "Comments"
2896
- msgstr ""
2897
-
2898
- #: app/importers/BPMediaAlbumimporter.php:116
2899
- msgid "Comments: 0/0 (No comments to import)"
2900
- msgstr ""
2901
-
2902
- #: app/importers/BPMediaAlbumimporter.php:123
2903
- msgid "User's Favorites"
2904
- msgstr ""
2905
-
2906
- #: app/importers/BPMediaAlbumimporter.php:132
2907
- msgid ""
2908
- "BP-Album is active on your site and will cause problems with the import."
2909
- msgstr ""
2910
-
2911
- #: app/importers/BPMediaAlbumimporter.php:133
2912
- msgid "Click here to deactivate BP-Album and continue importing"
2913
- msgstr ""
2914
-
2915
- #: app/importers/BPMediaAlbumimporter.php:139
2916
- msgid ""
2917
- "Some of the media failed to import. The file might be corrupt or deleted."
2918
- msgstr ""
2919
-
2920
- #: app/importers/BPMediaAlbumimporter.php:140
2921
- #, php-format
2922
- msgid "The following %d BP Album Media id's could not be imported"
2923
- msgstr ""
2924
-
2925
- #: app/importers/BPMediaAlbumimporter.php:149
2926
- #, php-format
2927
- msgid "I just imported bp-album to @rtMediaWP http://rt.cx/rtmedia on %s"
2928
- msgstr ""
2929
-
2930
- #: app/importers/BPMediaAlbumimporter.php:150
2931
- msgid "Congratulations!"
2932
- msgstr ""
2933
-
2934
- #: app/importers/BPMediaAlbumimporter.php:150
2935
- msgid "All media from BP Album has been imported."
2936
- msgstr ""
2937
-
2938
- #: app/importers/BPMediaAlbumimporter.php:151
2939
- msgid "Tweet this"
2940
- msgstr ""
2941
-
2942
- #: app/importers/BPMediaAlbumimporter.php:155
2943
- msgid ""
2944
- "However, a lot of unnecessary files and a database table are still eating up "
2945
- "your resources. If everything seems fine, you can clean this data up."
2946
- msgstr ""
2947
-
2948
- #: app/importers/BPMediaAlbumimporter.php:158
2949
- msgid "Clean up Now"
2950
- msgstr ""
2951
-
2952
- #: app/importers/BPMediaAlbumimporter.php:161
2953
- msgid "Clean up Later"
2954
- msgstr ""
2955
-
2956
- #: app/importers/BPMediaAlbumimporter.php:166
2957
- msgid "Why don't you try adding some instagram like effects to your images?"
2958
- msgstr ""
2959
-
2960
- #: app/importers/BPMediaAlbumimporter.php:173
2961
- msgid ""
2962
- "BuddyPress Media Instagram adds Instagram like filters to images uploaded "
2963
- "with BuddyPress Media."
2964
- msgstr ""
2965
-
2966
- #: app/importers/BPMediaAlbumimporter.php:174
2967
- msgid "Important"
2968
- msgstr ""
2969
-
2970
- #: app/importers/BPMediaAlbumimporter.php:174
2971
- msgid ""
2972
- "You need to have ImageMagick installed on your server for this addon to work."
2973
- msgstr ""
2974
-
2975
- #: app/importers/BPMediaAlbumimporter.php:184
2976
- msgid ""
2977
- "Looks like you don't use BP Album. Is there any other BuddyPress Plugin you "
2978
- "want an importer for?"
2979
- msgstr ""
2980
-
2981
- #: app/importers/BPMediaAlbumimporter.php:185
2982
- #, php-format
2983
- msgid "<a href=\"%s\">Create an issue</a> on GitHub requesting the same."
2984
- msgstr ""
2985
-
2986
- #: app/importers/RTMediaMediaSizeImporter.php:25
2987
- msgid "Media Size Import"
2988
- msgstr ""
2989
-
2990
- #: app/importers/RTMediaActivityUpgrade.php:20
2991
- msgid "Media activity upgrade"
2992
- msgstr ""
2993
-
2994
- #: app/importers/RTMediaMigration.php:64
2995
- msgid "Please Migrate your Database"
2996
- msgstr ""
2997
-
2998
- #: app/importers/RTMediaMigration.php:64
2999
- msgid "Click Here"
3000
- msgstr ""
3001
-
3002
- #: app/importers/RTMediaMigration.php:375
3003
- msgid ""
3004
- "Please Backup your <strong>DATABASE</strong> and <strong>UPLOAD</strong> "
3005
- "folder before Migration."
3006
- msgstr ""
3007
-
3008
- #: app/importers/RTMediaMigration.php:383
3009
- msgid "rtMedia Migration"
3010
- msgstr ""
3011
-
3012
- #: app/importers/RTMediaMigration.php:385
3013
- msgid "It will migrate following things"
3014
- msgstr ""
3015
-
3016
- #: app/importers/RTMediaMigration.php:453
3017
- msgid "Error During Migration, Please Refresh Page then try again"
3018
- msgstr ""
3019
-
3020
- #: app/importers/RTMediaMigration.php:473
3021
- msgid "Start"
3022
- msgstr ""
3023
-
3024
- #: app/importers/RTMediaMigration.php:1024
3025
- msgid " day"
3026
- msgstr ""
3027
-
3028
- #: app/importers/RTMediaMigration.php:1028
3029
- msgid " hour"
3030
- msgstr ""
3031
-
3032
- #: app/importers/RTMediaMigration.php:1032
3033
- msgid " minute"
3034
- msgstr ""
3035
-
3036
- #: app/importers/RTMediaMigration.php:1036
3037
- msgid " second"
3038
- msgstr ""
3039
-
3040
- #: app/importers/RTMediaMigration.php:1042
3041
- msgid "No time remaining."
3042
- msgstr ""
3043
-
3044
- #: node_modules/grunt-checktextdomain/test/fixtures/missing-domain.php:3
3045
- #: node_modules/grunt-checktextdomain/test/fixtures/missing-domain.php:5
3046
- #: node_modules/grunt-checktextdomain/test/fixtures/missing-domain.php:9
3047
- #: node_modules/grunt-checktextdomain/test/fixtures/missing-domain.php:10
3048
- #: node_modules/grunt-checktextdomain/test/fixtures/missing-domain.php:14
3049
- #: node_modules/grunt-checktextdomain/test/fixtures/missing-domain.php:15
3050
- #: node_modules/grunt-checktextdomain/test/fixtures/incorrect-domain.php:3
3051
- #: node_modules/grunt-checktextdomain/test/fixtures/incorrect-domain.php:5
3052
- #: node_modules/grunt-checktextdomain/test/fixtures/incorrect-domain.php:9
3053
- #: node_modules/grunt-checktextdomain/test/fixtures/incorrect-domain.php:10
3054
- #: node_modules/grunt-checktextdomain/test/fixtures/incorrect-domain.php:14
3055
- #: node_modules/grunt-checktextdomain/test/fixtures/incorrect-domain.php:15
3056
- #: node_modules/grunt-checktextdomain/test/fixtures/incorrect-domain-autocorrect.php:3
3057
- #: node_modules/grunt-checktextdomain/test/fixtures/incorrect-domain-autocorrect.php:5
3058
- #: node_modules/grunt-checktextdomain/test/fixtures/incorrect-domain-autocorrect.php:9
3059
- #: node_modules/grunt-checktextdomain/test/fixtures/incorrect-domain-autocorrect.php:10
3060
- #: node_modules/grunt-checktextdomain/test/fixtures/incorrect-domain-autocorrect.php:14
3061
- #: node_modules/grunt-checktextdomain/test/fixtures/incorrect-domain-autocorrect.php:15
3062
- #: node_modules/grunt-checktextdomain/test/fixtures/variable-domain-autocorrect.php:4
3063
- #: node_modules/grunt-checktextdomain/test/fixtures/variable-domain-autocorrect.php:6
3064
- #: node_modules/grunt-checktextdomain/test/fixtures/variable-domain-autocorrect.php:10
3065
- #: node_modules/grunt-checktextdomain/test/fixtures/variable-domain-autocorrect.php:11
3066
- #: node_modules/grunt-checktextdomain/test/fixtures/variable-domain-autocorrect.php:15
3067
- #: node_modules/grunt-checktextdomain/test/fixtures/variable-domain-autocorrect.php:16
3068
- #: node_modules/grunt-checktextdomain/test/fixtures/correct-domain.php:3
3069
- #: node_modules/grunt-checktextdomain/test/fixtures/correct-domain.php:5
3070
- #: node_modules/grunt-checktextdomain/test/fixtures/correct-domain.php:9
3071
- #: node_modules/grunt-checktextdomain/test/fixtures/correct-domain.php:10
3072
- #: node_modules/grunt-checktextdomain/test/fixtures/correct-domain.php:14
3073
- #: node_modules/grunt-checktextdomain/test/fixtures/correct-domain.php:15
3074
- #: node_modules/grunt-checktextdomain/test/expected/incorrect-domain-autocorrect.php:3
3075
- #: node_modules/grunt-checktextdomain/test/expected/incorrect-domain-autocorrect.php:5
3076
- #: node_modules/grunt-checktextdomain/test/expected/incorrect-domain-autocorrect.php:9
3077
- #: node_modules/grunt-checktextdomain/test/expected/incorrect-domain-autocorrect.php:10
3078
- #: node_modules/grunt-checktextdomain/test/expected/incorrect-domain-autocorrect.php:14
3079
- #: node_modules/grunt-checktextdomain/test/expected/incorrect-domain-autocorrect.php:15
3080
- #: node_modules/grunt-checktextdomain/test/expected/variable-domain-autocorrect.php:4
3081
- #: node_modules/grunt-checktextdomain/test/expected/variable-domain-autocorrect.php:6
3082
- #: node_modules/grunt-checktextdomain/test/expected/variable-domain-autocorrect.php:10
3083
- #: node_modules/grunt-checktextdomain/test/expected/variable-domain-autocorrect.php:11
3084
- #: node_modules/grunt-checktextdomain/test/expected/variable-domain-autocorrect.php:15
3085
- #: node_modules/grunt-checktextdomain/test/expected/variable-domain-autocorrect.php:16
3086
- msgid "Hello World"
3087
- msgstr ""
3088
-
3089
- #: node_modules/grunt-checktextdomain/test/fixtures/missing-domain.php:4
3090
- #: node_modules/grunt-checktextdomain/test/fixtures/missing-domain.php:6
3091
- #: node_modules/grunt-checktextdomain/test/fixtures/missing-domain.php:11
3092
- #: node_modules/grunt-checktextdomain/test/fixtures/missing-domain.php:16
3093
- #: node_modules/grunt-checktextdomain/test/fixtures/incorrect-domain.php:4
3094
- #: node_modules/grunt-checktextdomain/test/fixtures/incorrect-domain.php:6
3095
- #: node_modules/grunt-checktextdomain/test/fixtures/incorrect-domain.php:11
3096
- #: node_modules/grunt-checktextdomain/test/fixtures/incorrect-domain.php:16
3097
- #: node_modules/grunt-checktextdomain/test/fixtures/incorrect-domain-autocorrect.php:4
3098
- #: node_modules/grunt-checktextdomain/test/fixtures/incorrect-domain-autocorrect.php:6
3099
- #: node_modules/grunt-checktextdomain/test/fixtures/incorrect-domain-autocorrect.php:11
3100
- #: node_modules/grunt-checktextdomain/test/fixtures/incorrect-domain-autocorrect.php:16
3101
- #: node_modules/grunt-checktextdomain/test/fixtures/variable-domain-autocorrect.php:5
3102
- #: node_modules/grunt-checktextdomain/test/fixtures/variable-domain-autocorrect.php:7
3103
- #: node_modules/grunt-checktextdomain/test/fixtures/variable-domain-autocorrect.php:12
3104
- #: node_modules/grunt-checktextdomain/test/fixtures/variable-domain-autocorrect.php:17
3105
- #: node_modules/grunt-checktextdomain/test/fixtures/correct-domain.php:4
3106
- #: node_modules/grunt-checktextdomain/test/fixtures/correct-domain.php:6
3107
- #: node_modules/grunt-checktextdomain/test/fixtures/correct-domain.php:11
3108
- #: node_modules/grunt-checktextdomain/test/fixtures/correct-domain.php:16
3109
- #: node_modules/grunt-checktextdomain/test/expected/incorrect-domain-autocorrect.php:4
3110
- #: node_modules/grunt-checktextdomain/test/expected/incorrect-domain-autocorrect.php:6
3111
- #: node_modules/grunt-checktextdomain/test/expected/incorrect-domain-autocorrect.php:11
3112
- #: node_modules/grunt-checktextdomain/test/expected/incorrect-domain-autocorrect.php:16
3113
- #: node_modules/grunt-checktextdomain/test/expected/variable-domain-autocorrect.php:5
3114
- #: node_modules/grunt-checktextdomain/test/expected/variable-domain-autocorrect.php:7
3115
- #: node_modules/grunt-checktextdomain/test/expected/variable-domain-autocorrect.php:12
3116
- #: node_modules/grunt-checktextdomain/test/expected/variable-domain-autocorrect.php:17
3117
- msgctxt "verb"
3118
- msgid "Post"
3119
- msgstr ""
3120
-
3121
- #: node_modules/grunt-checktextdomain/test/fixtures/missing-domain.php:20
3122
- #: node_modules/grunt-checktextdomain/test/fixtures/missing-domain.php:24
3123
- #: node_modules/grunt-checktextdomain/test/fixtures/incorrect-domain.php:20
3124
- #: node_modules/grunt-checktextdomain/test/fixtures/incorrect-domain.php:24
3125
- #: node_modules/grunt-checktextdomain/test/fixtures/incorrect-domain-autocorrect.php:20
3126
- #: node_modules/grunt-checktextdomain/test/fixtures/incorrect-domain-autocorrect.php:24
3127
- #: node_modules/grunt-checktextdomain/test/fixtures/plurals.php:3
3128
- #: node_modules/grunt-checktextdomain/test/fixtures/plurals.php:8
3129
- #: node_modules/grunt-checktextdomain/test/fixtures/plurals.php:15
3130
- #: node_modules/grunt-checktextdomain/test/fixtures/variable-domain-autocorrect.php:21
3131
- #: node_modules/grunt-checktextdomain/test/fixtures/variable-domain-autocorrect.php:25
3132
- #: node_modules/grunt-checktextdomain/test/fixtures/correct-domain.php:20
3133
- #: node_modules/grunt-checktextdomain/test/fixtures/correct-domain.php:24
3134
- #: node_modules/grunt-checktextdomain/test/expected/incorrect-domain-autocorrect.php:20
3135
- #: node_modules/grunt-checktextdomain/test/expected/incorrect-domain-autocorrect.php:24
3136
- #: node_modules/grunt-checktextdomain/test/expected/variable-domain-autocorrect.php:21
3137
- #: node_modules/grunt-checktextdomain/test/expected/variable-domain-autocorrect.php:25
3138
- #, php-format
3139
- msgid "%d apple"
3140
- msgid_plural "%d apples"
3141
- msgstr[0] ""
3142
- msgstr[1] ""
3143
-
3144
- #: node_modules/grunt-checktextdomain/test/fixtures/missing-domain.php:25
3145
- #: node_modules/grunt-checktextdomain/test/fixtures/incorrect-domain.php:21
3146
- #: node_modules/grunt-checktextdomain/test/fixtures/incorrect-domain.php:25
3147
- #: node_modules/grunt-checktextdomain/test/fixtures/incorrect-domain-autocorrect.php:21
3148
- #: node_modules/grunt-checktextdomain/test/fixtures/incorrect-domain-autocorrect.php:25
3149
- #: node_modules/grunt-checktextdomain/test/fixtures/plurals.php:4
3150
- #: node_modules/grunt-checktextdomain/test/fixtures/plurals.php:9
3151
- #: node_modules/grunt-checktextdomain/test/fixtures/plurals.php:16
3152
- #: node_modules/grunt-checktextdomain/test/fixtures/variable-domain-autocorrect.php:22
3153
- #: node_modules/grunt-checktextdomain/test/fixtures/variable-domain-autocorrect.php:26
3154
- #: node_modules/grunt-checktextdomain/test/fixtures/correct-domain.php:21
3155
- #: node_modules/grunt-checktextdomain/test/fixtures/correct-domain.php:25
3156
- #: node_modules/grunt-checktextdomain/test/expected/incorrect-domain-autocorrect.php:21
3157
- #: node_modules/grunt-checktextdomain/test/expected/incorrect-domain-autocorrect.php:25
3158
- #: node_modules/grunt-checktextdomain/test/expected/variable-domain-autocorrect.php:22
3159
- #: node_modules/grunt-checktextdomain/test/expected/variable-domain-autocorrect.php:26
3160
- #, php-format
3161
- msgctxt "noun, job positions"
3162
- msgid "%d post"
3163
- msgid_plural "%d posts"
3164
- msgstr[0] ""
3165
- msgstr[1] ""
3166
-
3167
- #: node_modules/grunt-wp-i18n/test/fixtures/translator-comments/translator-comments.php:7
3168
- msgid "A"
3169
- msgstr ""
3170
-
3171
- #: node_modules/grunt-wp-i18n/test/fixtures/translator-comments/translator-comments.php:15
3172
- msgid "B"
3173
- msgstr ""
3174
-
3175
- #: node_modules/grunt-wp-i18n/test/fixtures/plugin-include/plugin-include.php:6
3176
- #: node_modules/grunt-wp-i18n/test/fixtures/basic-theme/exclude/file.php:3
3177
- msgid "Exclude"
3178
- msgstr ""
3179
-
3180
- #: node_modules/grunt-wp-i18n/test/fixtures/plugin-include/include/file.php:2
3181
- msgid "Include"
3182
- msgstr ""
3183
-
3184
- #: node_modules/grunt-wp-i18n/test/fixtures/text-domains/update-domains.php:2
3185
- #: node_modules/grunt-wp-i18n/test/fixtures/text-domains/update-domains.php:3
3186
- #: node_modules/grunt-wp-i18n/test/fixtures/text-domains/update-all-domains.php:2
3187
- #: node_modules/grunt-wp-i18n/test/fixtures/text-domains/update-all-domains.php:3
3188
- #: node_modules/grunt-wp-i18n/test/fixtures/text-domains/update-all-domains.php:4
3189
- #: node_modules/grunt-wp-i18n/test/fixtures/text-domains/add-domain.php:2
3190
- msgid "String"
3191
- msgstr ""
3192
-
3193
- #: node_modules/grunt-wp-i18n/test/fixtures/text-domains/update-all-domains.php:6
3194
- #: node_modules/grunt-wp-i18n/test/fixtures/text-domains/update-all-domains.php:7
3195
- #: node_modules/grunt-wp-i18n/test/fixtures/text-domains/update-all-domains.php:8
3196
- msgctxt "a string"
3197
- msgid "String"
3198
- msgstr ""
3199
-
3200
- #: node_modules/grunt-wp-i18n/test/fixtures/text-domains/update-all-domains.php:9
3201
- #: node_modules/grunt-wp-i18n/test/fixtures/text-domains/update-all-domains.php:10
3202
- #: node_modules/grunt-wp-i18n/test/fixtures/text-domains/update-all-domains.php:11
3203
- #, php-format
3204
- msgid "1 Star"
3205
- msgid_plural "%s Stars"
3206
- msgstr[0] ""
3207
- msgstr[1] ""
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
lib/foundation/custom.modernizr.js DELETED
@@ -1,4 +0,0 @@
1
- /* Modernizr 2.6.2 (Custom Build) | MIT & BSD
2
- * Build: http://modernizr.com/download/#-inlinesvg-svg-svgclippaths-touch-shiv-mq-cssclasses-teststyles-prefixes-ie8compat-load
3
- */
4
- ;window.Modernizr=function(a,b,c){function y(a){j.cssText=a}function z(a,b){return y(m.join(a+";")+(b||""))}function A(a,b){return typeof a===b}function B(a,b){return!!~(""+a).indexOf(b)}function C(a,b,d){for(var e in a){var f=b[a[e]];if(f!==c)return d===!1?a[e]:A(f,"function")?f.bind(d||b):f}return!1}var d="2.6.2",e={},f=!0,g=b.documentElement,h="modernizr",i=b.createElement(h),j=i.style,k,l={}.toString,m=" -webkit- -moz- -o- -ms- ".split(" "),n={svg:"http://www.w3.org/2000/svg"},o={},p={},q={},r=[],s=r.slice,t,u=function(a,c,d,e){var f,i,j,k,l=b.createElement("div"),m=b.body,n=m||b.createElement("body");if(parseInt(d,10))while(d--)j=b.createElement("div"),j.id=e?e[d]:h+(d+1),l.appendChild(j);return f=["&#173;",'<style id="s',h,'">',a,"</style>"].join(""),l.id=h,(m?l:n).innerHTML+=f,n.appendChild(l),m||(n.style.background="",n.style.overflow="hidden",k=g.style.overflow,g.style.overflow="hidden",g.appendChild(n)),i=c(l,a),m?l.parentNode.removeChild(l):(n.parentNode.removeChild(n),g.style.overflow=k),!!i},v=function(b){var c=a.matchMedia||a.msMatchMedia;if(c)return c(b).matches;var d;return u("@media "+b+" { #"+h+" { position: absolute; } }",function(b){d=(a.getComputedStyle?getComputedStyle(b,null):b.currentStyle)["position"]=="absolute"}),d},w={}.hasOwnProperty,x;!A(w,"undefined")&&!A(w.call,"undefined")?x=function(a,b){return w.call(a,b)}:x=function(a,b){return b in a&&A(a.constructor.prototype[b],"undefined")},Function.prototype.bind||(Function.prototype.bind=function(b){var c=this;if(typeof c!="function")throw new TypeError;var d=s.call(arguments,1),e=function(){if(this instanceof e){var a=function(){};a.prototype=c.prototype;var f=new a,g=c.apply(f,d.concat(s.call(arguments)));return Object(g)===g?g:f}return c.apply(b,d.concat(s.call(arguments)))};return e}),o.touch=function(){var c;return"ontouchstart"in a||a.DocumentTouch&&b instanceof DocumentTouch?c=!0:u(["@media (",m.join("touch-enabled),("),h,")","{#modernizr{top:9px;position:absolute}}"].join(""),function(a){c=a.offsetTop===9}),c},o.svg=function(){return!!b.createElementNS&&!!b.createElementNS(n.svg,"svg").createSVGRect},o.inlinesvg=function(){var a=b.createElement("div");return a.innerHTML="<svg/>",(a.firstChild&&a.firstChild.namespaceURI)==n.svg},o.svgclippaths=function(){return!!b.createElementNS&&/SVGClipPath/.test(l.call(b.createElementNS(n.svg,"clipPath")))};for(var D in o)x(o,D)&&(t=D.toLowerCase(),e[t]=o[D](),r.push((e[t]?"":"no-")+t));return e.addTest=function(a,b){if(typeof a=="object")for(var d in a)x(a,d)&&e.addTest(d,a[d]);else{a=a.toLowerCase();if(e[a]!==c)return e;b=typeof b=="function"?b():b,typeof f!="undefined"&&f&&(g.className+=" "+(b?"":"no-")+a),e[a]=b}return e},y(""),i=k=null,function(a,b){function k(a,b){var c=a.createElement("p"),d=a.getElementsByTagName("head")[0]||a.documentElement;return c.innerHTML="x<style>"+b+"</style>",d.insertBefore(c.lastChild,d.firstChild)}function l(){var a=r.elements;return typeof a=="string"?a.split(" "):a}function m(a){var b=i[a[g]];return b||(b={},h++,a[g]=h,i[h]=b),b}function n(a,c,f){c||(c=b);if(j)return c.createElement(a);f||(f=m(c));var g;return f.cache[a]?g=f.cache[a].cloneNode():e.test(a)?g=(f.cache[a]=f.createElem(a)).cloneNode():g=f.createElem(a),g.canHaveChildren&&!d.test(a)?f.frag.appendChild(g):g}function o(a,c){a||(a=b);if(j)return a.createDocumentFragment();c=c||m(a);var d=c.frag.cloneNode(),e=0,f=l(),g=f.length;for(;e<g;e++)d.createElement(f[e]);return d}function p(a,b){b.cache||(b.cache={},b.createElem=a.createElement,b.createFrag=a.createDocumentFragment,b.frag=b.createFrag()),a.createElement=function(c){return r.shivMethods?n(c,a,b):b.createElem(c)},a.createDocumentFragment=Function("h,f","return function(){var n=f.cloneNode(),c=n.createElement;h.shivMethods&&("+l().join().replace(/\w+/g,function(a){return b.createElem(a),b.frag.createElement(a),'c("'+a+'")'})+");return n}")(r,b.frag)}function q(a){a||(a=b);var c=m(a);return r.shivCSS&&!f&&!c.hasCSS&&(c.hasCSS=!!k(a,"article,aside,figcaption,figure,footer,header,hgroup,nav,section{display:block}mark{background:#FF0;color:#000}")),j||p(a,c),a}var c=a.html5||{},d=/^<|^(?:button|map|select|textarea|object|iframe|option|optgroup)$/i,e=/^(?:a|b|code|div|fieldset|h1|h2|h3|h4|h5|h6|i|label|li|ol|p|q|span|strong|style|table|tbody|td|th|tr|ul)$/i,f,g="_html5shiv",h=0,i={},j;(function(){try{var a=b.createElement("a");a.innerHTML="<xyz></xyz>",f="hidden"in a,j=a.childNodes.length==1||function(){b.createElement("a");var a=b.createDocumentFragment();return typeof a.cloneNode=="undefined"||typeof a.createDocumentFragment=="undefined"||typeof a.createElement=="undefined"}()}catch(c){f=!0,j=!0}})();var r={elements:c.elements||"abbr article aside audio bdi canvas data datalist details figcaption figure footer header hgroup mark meter nav output progress section summary time video",shivCSS:c.shivCSS!==!1,supportsUnknownElements:j,shivMethods:c.shivMethods!==!1,type:"default",shivDocument:q,createElement:n,createDocumentFragment:o};a.html5=r,q(b)}(this,b),e._version=d,e._prefixes=m,e.mq=v,e.testStyles=u,g.className=g.className.replace(/(^|\s)no-js(\s|$)/,"$1$2")+(f?" js "+r.join(" "):""),e}(this,this.document),function(a,b,c){function d(a){return"[object Function]"==o.call(a)}function e(a){return"string"==typeof a}function f(){}function g(a){return!a||"loaded"==a||"complete"==a||"uninitialized"==a}function h(){var a=p.shift();q=1,a?a.t?m(function(){("c"==a.t?B.injectCss:B.injectJs)(a.s,0,a.a,a.x,a.e,1)},0):(a(),h()):q=0}function i(a,c,d,e,f,i,j){function k(b){if(!o&&g(l.readyState)&&(u.r=o=1,!q&&h(),l.onload=l.onreadystatechange=null,b)){"img"!=a&&m(function(){t.removeChild(l)},50);for(var d in y[c])y[c].hasOwnProperty(d)&&y[c][d].onload()}}var j=j||B.errorTimeout,l=b.createElement(a),o=0,r=0,u={t:d,s:c,e:f,a:i,x:j};1===y[c]&&(r=1,y[c]=[]),"object"==a?l.data=c:(l.src=c,l.type=a),l.width=l.height="0",l.onerror=l.onload=l.onreadystatechange=function(){k.call(this,r)},p.splice(e,0,u),"img"!=a&&(r||2===y[c]?(t.insertBefore(l,s?null:n),m(k,j)):y[c].push(l))}function j(a,b,c,d,f){return q=0,b=b||"j",e(a)?i("c"==b?v:u,a,b,this.i++,c,d,f):(p.splice(this.i++,0,a),1==p.length&&h()),this}function k(){var a=B;return a.loader={load:j,i:0},a}var l=b.documentElement,m=a.setTimeout,n=b.getElementsByTagName("script")[0],o={}.toString,p=[],q=0,r="MozAppearance"in l.style,s=r&&!!b.createRange().compareNode,t=s?l:n.parentNode,l=a.opera&&"[object Opera]"==o.call(a.opera),l=!!b.attachEvent&&!l,u=r?"object":l?"script":"img",v=l?"script":u,w=Array.isArray||function(a){return"[object Array]"==o.call(a)},x=[],y={},z={timeout:function(a,b){return b.length&&(a.timeout=b[0]),a}},A,B;B=function(a){function b(a){var a=a.split("!"),b=x.length,c=a.pop(),d=a.length,c={url:c,origUrl:c,prefixes:a},e,f,g;for(f=0;f<d;f++)g=a[f].split("="),(e=z[g.shift()])&&(c=e(c,g));for(f=0;f<b;f++)c=x[f](c);return c}function g(a,e,f,g,h){var i=b(a),j=i.autoCallback;i.url.split(".").pop().split("?").shift(),i.bypass||(e&&(e=d(e)?e:e[a]||e[g]||e[a.split("/").pop().split("?")[0]]),i.instead?i.instead(a,e,f,g,h):(y[i.url]?i.noexec=!0:y[i.url]=1,f.load(i.url,i.forceCSS||!i.forceJS&&"css"==i.url.split(".").pop().split("?").shift()?"c":c,i.noexec,i.attrs,i.timeout),(d(e)||d(j))&&f.load(function(){k(),e&&e(i.origUrl,h,g),j&&j(i.origUrl,h,g),y[i.url]=2})))}function h(a,b){function c(a,c){if(a){if(e(a))c||(j=function(){var a=[].slice.call(arguments);k.apply(this,a),l()}),g(a,j,b,0,h);else if(Object(a)===a)for(n in m=function(){var b=0,c;for(c in a)a.hasOwnProperty(c)&&b++;return b}(),a)a.hasOwnProperty(n)&&(!c&&!--m&&(d(j)?j=function(){var a=[].slice.call(arguments);k.apply(this,a),l()}:j[n]=function(a){return function(){var b=[].slice.call(arguments);a&&a.apply(this,b),l()}}(k[n])),g(a[n],j,b,n,h))}else!c&&l()}var h=!!a.test,i=a.load||a.both,j=a.callback||f,k=j,l=a.complete||f,m,n;c(h?a.yep:a.nope,!!i),i&&c(i)}var i,j,l=this.yepnope.loader;if(e(a))g(a,0,l,0);else if(w(a))for(i=0;i<a.length;i++)j=a[i],e(j)?g(j,0,l,0):w(j)?B(j):Object(j)===j&&h(j,l);else Object(a)===a&&h(a,l)},B.addPrefix=function(a,b){z[a]=b},B.addFilter=function(a){x.push(a)},B.errorTimeout=1e4,null==b.readyState&&b.addEventListener&&(b.readyState="loading",b.addEventListener("DOMContentLoaded",A=function(){b.removeEventListener("DOMContentLoaded",A,0),b.readyState="complete"},0)),a.yepnope=k(),a.yepnope.executeStack=h,a.yepnope.injectJs=function(a,c,d,e,i,j){var k=b.createElement("script"),l,o,e=e||B.errorTimeout;k.src=a;for(o in d)k.setAttribute(o,d[o]);c=j?h:c||f,k.onreadystatechange=k.onload=function(){!l&&g(k.readyState)&&(l=1,c(),k.onload=k.onreadystatechange=null)},m(function(){l||(l=1,c(1))},e),i?k.onload():n.parentNode.insertBefore(k,n)},a.yepnope.injectCss=function(a,c,d,e,g,i){var e=b.createElement("link"),j,c=i?h:c||f;e.href=a,e.rel="stylesheet",e.type="text/css";for(j in d)e.setAttribute(j,d[j]);g||(n.parentNode.insertBefore(e,n),m(c,0))}}(this,document),Modernizr.load=function(){yepnope.apply(window,[].slice.call(arguments,0))},Modernizr.addTest("ie8compat",function(){return!window.addEventListener&&document.documentMode&&document.documentMode===7});
 
 
 
 
lib/foundation/foundation.css DELETED
@@ -1,4271 +0,0 @@
1
- *,
2
- *:before,
3
- *:after {
4
- -moz-box-sizing: border-box;
5
- -webkit-box-sizing: border-box;
6
- box-sizing: border-box; }
7
-
8
- html,
9
- body {
10
- font-size: 100%; }
11
-
12
- body {
13
- background: white;
14
- color: #222222;
15
- padding: 0;
16
- margin: 0;
17
- font-family: "Helvetica Neue", "Helvetica", Helvetica, Arial, sans-serif;
18
- font-weight: normal;
19
- font-style: normal;
20
- line-height: 1;
21
- position: relative;
22
- cursor: default; }
23
-
24
- a:hover {
25
- cursor: pointer; }
26
-
27
- a:focus {
28
- outline: none; }
29
-
30
- img,
31
- object,
32
- embed {
33
- max-width: 100%;
34
- height: auto; }
35
-
36
- object,
37
- embed {
38
- height: 100%; }
39
-
40
- img {
41
- -ms-interpolation-mode: bicubic; }
42
-
43
- #map_canvas img,
44
- #map_canvas embed,
45
- #map_canvas object,
46
- .map_canvas img,
47
- .map_canvas embed,
48
- .map_canvas object {
49
- max-width: none !important; }
50
-
51
- .left {
52
- float: left !important; }
53
-
54
- .right {
55
- float: right !important; }
56
-
57
- .text-left {
58
- text-align: left !important; }
59
-
60
- .text-right {
61
- text-align: right !important; }
62
-
63
- .text-center {
64
- text-align: center !important; }
65
-
66
- .text-justify {
67
- text-align: justify !important; }
68
-
69
- .hide {
70
- display: none; }
71
-
72
- .antialiased {
73
- -webkit-font-smoothing: antialiased; }
74
-
75
- img {
76
- display: inline-block;
77
- vertical-align: middle; }
78
-
79
- textarea {
80
- height: auto;
81
- min-height: 50px; }
82
-
83
- select {
84
- width: 100%; }
85
-
86
- /* Grid HTML Classes */
87
- .row {
88
- width: 100%;
89
- margin-left: auto;
90
- margin-right: auto;
91
- margin-top: 0;
92
- margin-bottom: 0;
93
- max-width: 62.5em;
94
- *zoom: 1; }
95
- .row:before, .row:after {
96
- content: " ";
97
- display: table; }
98
- .row:after {
99
- clear: both; }
100
- .row.collapse .column,
101
- .row.collapse .columns {
102
- position: relative;
103
- padding-left: 0;
104
- padding-right: 0;
105
- float: left; }
106
- .row .row {
107
- width: auto;
108
- margin-left: -0.9375em;
109
- margin-right: -0.9375em;
110
- margin-top: 0;
111
- margin-bottom: 0;
112
- max-width: none;
113
- *zoom: 1; }
114
- .row .row:before, .row .row:after {
115
- content: " ";
116
- display: table; }
117
- .row .row:after {
118
- clear: both; }
119
- .row .row.collapse {
120
- width: auto;
121
- margin: 0;
122
- max-width: none;
123
- *zoom: 1; }
124
- .row .row.collapse:before, .row .row.collapse:after {
125
- content: " ";
126
- display: table; }
127
- .row .row.collapse:after {
128
- clear: both; }
129
-
130
- .column,
131
- .columns {
132
- position: relative;
133
- padding-left: 0.9375em;
134
- padding-right: 0.9375em;
135
- width: 100%;
136
- float: left; }
137
-
138
- @media only screen {
139
- .column,
140
- .columns {
141
- position: relative;
142
- padding-left: 0.9375em;
143
- padding-right: 0.9375em;
144
- float: left; }
145
-
146
- .small-1 {
147
- position: relative;
148
- width: 8.33333%; }
149
-
150
- .small-2 {
151
- position: relative;
152
- width: 16.66667%; }
153
-
154
- .small-3 {
155
- position: relative;
156
- width: 25%; }
157
-
158
- .small-4 {
159
- position: relative;
160
- width: 33.33333%; }
161
-
162
- .small-5 {
163
- position: relative;
164
- width: 41.66667%; }
165
-
166
- .small-6 {
167
- position: relative;
168
- width: 50%; }
169
-
170
- .small-7 {
171
- position: relative;
172
- width: 58.33333%; }
173
-
174
- .small-8 {
175
- position: relative;
176
- width: 66.66667%; }
177
-
178
- .small-9 {
179
- position: relative;
180
- width: 75%; }
181
-
182
- .small-10 {
183
- position: relative;
184
- width: 83.33333%; }
185
-
186
- .small-11 {
187
- position: relative;
188
- width: 91.66667%; }
189
-
190
- .small-12 {
191
- position: relative;
192
- width: 100%; }
193
-
194
- .small-offset-0 {
195
- position: relative;
196
- margin-left: 0%; }
197
-
198
- .small-offset-1 {
199
- position: relative;
200
- margin-left: 8.33333%; }
201
-
202
- .small-offset-2 {
203
- position: relative;
204
- margin-left: 16.66667%; }
205
-
206
- .small-offset-3 {
207
- position: relative;
208
- margin-left: 25%; }
209
-
210
- .small-offset-4 {
211
- position: relative;
212
- margin-left: 33.33333%; }
213
-
214
- .small-offset-5 {
215
- position: relative;
216
- margin-left: 41.66667%; }
217
-
218
- .small-offset-6 {
219
- position: relative;
220
- margin-left: 50%; }
221
-
222
- .small-offset-7 {
223
- position: relative;
224
- margin-left: 58.33333%; }
225
-
226
- .small-offset-8 {
227
- position: relative;
228
- margin-left: 66.66667%; }
229
-
230
- .small-offset-9 {
231
- position: relative;
232
- margin-left: 75%; }
233
-
234
- .small-offset-10 {
235
- position: relative;
236
- margin-left: 83.33333%; }
237
-
238
- [class*="column"] + [class*="column"]:last-child {
239
- float: right; }
240
-
241
- [class*="column"] + [class*="column"].end {
242
- float: left; }
243
-
244
- .column.small-centered,
245
- .columns.small-centered {
246
- position: relative;
247
- margin-left: auto;
248
- margin-right: auto;
249
- float: none !important; } }
250
- /* Styles for screens that are atleast 768px; */
251
- @media only screen and (min-width: 768px) {
252
- .large-1 {
253
- position: relative;
254
- width: 8.33333%; }
255
-
256
- .large-2 {
257
- position: relative;
258
- width: 16.66667%; }
259
-
260
- .large-3 {
261
- position: relative;
262
- width: 25%; }
263
-
264
- .large-4 {
265
- position: relative;
266
- width: 33.33333%; }
267
-
268
- .large-5 {
269
- position: relative;
270
- width: 41.66667%; }
271
-
272
- .large-6 {
273
- position: relative;
274
- width: 50%; }
275
-
276
- .large-7 {
277
- position: relative;
278
- width: 58.33333%; }
279
-
280
- .large-8 {
281
- position: relative;
282
- width: 66.66667%; }
283
-
284
- .large-9 {
285
- position: relative;
286
- width: 75%; }
287
-
288
- .large-10 {
289
- position: relative;
290
- width: 83.33333%; }
291
-
292
- .large-11 {
293
- position: relative;
294
- width: 91.66667%; }
295
-
296
- .large-12 {
297
- position: relative;
298
- width: 100%; }
299
-
300
- .row .large-offset-0 {
301
- position: relative;
302
- margin-left: 0%; }
303
-
304
- .row .large-offset-1 {
305
- position: relative;
306
- margin-left: 8.33333%; }
307
-
308
- .row .large-offset-2 {
309
- position: relative;
310
- margin-left: 16.66667%; }
311
-
312
- .row .large-offset-3 {
313
- position: relative;
314
- margin-left: 25%; }
315
-
316
- .row .large-offset-4 {
317
- position: relative;
318
- margin-left: 33.33333%; }
319
-
320
- .row .large-offset-5 {
321
- position: relative;
322
- margin-left: 41.66667%; }
323
-
324
- .row .large-offset-6 {
325
- position: relative;
326
- margin-left: 50%; }
327
-
328
- .row .large-offset-7 {
329
- position: relative;
330
- margin-left: 58.33333%; }
331
-
332
- .row .large-offset-8 {
333
- position: relative;
334
- margin-left: 66.66667%; }
335
-
336
- .row .large-offset-9 {
337
- position: relative;
338
- margin-left: 75%; }
339
-
340
- .row .large-offset-10 {
341
- position: relative;
342
- margin-left: 83.33333%; }
343
-
344
- .row .large-offset-11 {
345
- position: relative;
346
- margin-left: 91.66667%; }
347
-
348
- .push-1 {
349
- position: relative;
350
- left: 8.33333%;
351
- right: auto; }
352
-
353
- .pull-1 {
354
- position: relative;
355
- right: 8.33333%;
356
- left: auto; }
357
-
358
- .push-2 {
359
- position: relative;
360
- left: 16.66667%;
361
- right: auto; }
362
-
363
- .pull-2 {
364
- position: relative;
365
- right: 16.66667%;
366
- left: auto; }
367
-
368
- .push-3 {
369
- position: relative;
370
- left: 25%;
371
- right: auto; }
372
-
373
- .pull-3 {
374
- position: relative;
375
- right: 25%;
376
- left: auto; }
377
-
378
- .push-4 {
379
- position: relative;
380
- left: 33.33333%;
381
- right: auto; }
382
-
383
- .pull-4 {
384
- position: relative;
385
- right: 33.33333%;
386
- left: auto; }
387
-
388
- .push-5 {
389
- position: relative;
390
- left: 41.66667%;
391
- right: auto; }
392
-
393
- .pull-5 {
394
- position: relative;
395
- right: 41.66667%;
396
- left: auto; }
397
-
398
- .push-6 {
399
- position: relative;
400
- left: 50%;
401
- right: auto; }
402
-
403
- .pull-6 {
404
- position: relative;
405
- right: 50%;
406
- left: auto; }
407
-
408
- .push-7 {
409
- position: relative;
410
- left: 58.33333%;
411
- right: auto; }
412
-
413
- .pull-7 {
414
- position: relative;
415
- right: 58.33333%;
416
- left: auto; }
417
-
418
- .push-8 {
419
- position: relative;
420
- left: 66.66667%;
421
- right: auto; }
422
-
423
- .pull-8 {
424
- position: relative;
425
- right: 66.66667%;
426
- left: auto; }
427
-
428
- .push-9 {
429
- position: relative;
430
- left: 75%;
431
- right: auto; }
432
-
433
- .pull-9 {
434
- position: relative;
435
- right: 75%;
436
- left: auto; }
437
-
438
- .push-10 {
439
- position: relative;
440
- left: 83.33333%;
441
- right: auto; }
442
-
443
- .pull-10 {
444
- position: relative;
445
- right: 83.33333%;
446
- left: auto; }
447
-
448
- .push-11 {
449
- position: relative;
450
- left: 91.66667%;
451
- right: auto; }
452
-
453
- .pull-11 {
454
- position: relative;
455
- right: 91.66667%;
456
- left: auto; }
457
-
458
- .column.large-centered,
459
- .columns.large-centered {
460
- position: relative;
461
- margin-left: auto;
462
- margin-right: auto;
463
- float: none !important; }
464
-
465
- .column.large-uncentered,
466
- .columns.large-uncentered {
467
- margin-left: 0;
468
- margin-right: 0;
469
- float: left !important; }
470
-
471
- .column.large-uncentered.opposite,
472
- .columns.large-uncentered.opposite {
473
- float: right !important; } }
474
- /* Foundation Visibility HTML Classes */
475
- .show-for-small,
476
- .show-for-medium-down,
477
- .show-for-large-down {
478
- display: inherit !important; }
479
-
480
- .show-for-medium,
481
- .show-for-medium-up,
482
- .show-for-large,
483
- .show-for-large-up,
484
- .show-for-xlarge {
485
- display: none !important; }
486
-
487
- .hide-for-medium,
488
- .hide-for-medium-up,
489
- .hide-for-large,
490
- .hide-for-large-up,
491
- .hide-for-xlarge {
492
- display: inherit !important; }
493
-
494
- .hide-for-small,
495
- .hide-for-medium-down,
496
- .hide-for-large-down {
497
- display: none !important; }
498
-
499
- /* Specific visilbity for tables */
500
- table.show-for-small, table.show-for-medium-down, table.show-for-large-down, table.hide-for-medium, table.hide-for-medium-up, table.hide-for-large, table.hide-for-large-up, table.hide-for-xlarge {
501
- display: table; }
502
-
503
- thead.show-for-small, thead.show-for-medium-down, thead.show-for-large-down, thead.hide-for-medium, thead.hide-for-medium-up, thead.hide-for-large, thead.hide-for-large-up, thead.hide-for-xlarge {
504
- display: table-header-group !important; }
505
-
506
- tbody.show-for-small, tbody.show-for-medium-down, tbody.show-for-large-down, tbody.hide-for-medium, tbody.hide-for-medium-up, tbody.hide-for-large, tbody.hide-for-large-up, tbody.hide-for-xlarge {
507
- display: table-row-group !important; }
508
-
509
- tr.show-for-small, tr.show-for-medium-down, tr.show-for-large-down, tr.hide-for-medium, tr.hide-for-medium-up, tr.hide-for-large, tr.hide-for-large-up, tr.hide-for-xlarge {
510
- display: table-row !important; }
511
-
512
- td.show-for-small, td.show-for-medium-down, td.show-for-large-down, td.hide-for-medium, td.hide-for-medium-up, td.hide-for-large, td.hide-for-large-up, td.hide-for-xlarge,
513
- th.show-for-small,
514
- th.show-for-medium-down,
515
- th.show-for-large-down,
516
- th.hide-for-medium,
517
- th.hide-for-medium-up,
518
- th.hide-for-large,
519
- th.hide-for-large-up,
520
- th.hide-for-xlarge {
521
- display: table-cell !important; }
522
-
523
- /* Medium Displays: 768px - 1279px */
524
- @media only screen and (min-width: 768px) {
525
- .show-for-medium,
526
- .show-for-medium-up {
527
- display: inherit !important; }
528
-
529
- .show-for-small {
530
- display: none !important; }
531
-
532
- .hide-for-small {
533
- display: inherit !important; }
534
-
535
- .hide-for-medium,
536
- .hide-for-medium-up {
537
- display: none !important; }
538
-
539
- /* Specific visilbity for tables */
540
- table.show-for-medium, table.show-for-medium-up, table.hide-for-small {
541
- display: table; }
542
-
543
- thead.show-for-medium, thead.show-for-medium-up, thead.hide-for-small {
544
- display: table-header-group !important; }
545
-
546
- tbody.show-for-medium, tbody.show-for-medium-up, tbody.hide-for-small {
547
- display: table-row-group !important; }
548
-
549
- tr.show-for-medium, tr.show-for-medium-up, tr.hide-for-small {
550
- display: table-row !important; }
551
-
552
- td.show-for-medium, td.show-for-medium-up, td.hide-for-small,
553
- th.show-for-medium,
554
- th.show-for-medium-up,
555
- th.hide-for-small {
556
- display: table-cell !important; } }
557
- /* Large Displays: 1280px - 1440px */
558
- @media only screen and (min-width: 1280px) {
559
- .show-for-large,
560
- .show-for-large-up {
561
- display: inherit !important; }
562
-
563
- .show-for-medium,
564
- .show-for-medium-down {
565
- display: none !important; }
566
-
567
- .hide-for-medium,
568
- .hide-for-medium-down {
569
- display: inherit !important; }
570
-
571
- .hide-for-large,
572
- .hide-for-large-up {
573
- display: none !important; }
574
-
575
- /* Specific visilbity for tables */
576
- table.show-for-large, table.show-for-large-up, table.hide-for-medium, table.hide-for-medium-down {
577
- display: table; }
578
-
579
- thead.show-for-large, thead.show-for-large-up, thead.hide-for-medium, thead.hide-for-medium-down {
580
- display: table-header-group !important; }
581
-
582
- tbody.show-for-large, tbody.show-for-large-up, tbody.hide-for-medium, tbody.hide-for-medium-down {
583
- display: table-row-group !important; }
584
-
585
- tr.show-for-large, tr.show-for-large-up, tr.hide-for-medium, tr.hide-for-medium-down {
586
- display: table-row !important; }
587
-
588
- td.show-for-large, td.show-for-large-up, td.hide-for-medium, td.hide-for-medium-down,
589
- th.show-for-large,
590
- th.show-for-large-up,
591
- th.hide-for-medium,
592
- th.hide-for-medium-down {
593
- display: table-cell !important; } }
594
- /* X-Large Displays: 1400px and up */
595
- @media only screen and (min-width: 1440px) {
596
- .show-for-xlarge {
597
- display: inherit !important; }
598
-
599
- .show-for-large,
600
- .show-for-large-down {
601
- display: none !important; }
602
-
603
- .hide-for-large,
604
- .hide-for-large-down {
605
- display: inherit !important; }
606
-
607
- .hide-for-xlarge {
608
- display: none !important; }
609
-
610
- /* Specific visilbity for tables */
611
- table.show-for-xlarge, table.hide-for-large, table.hide-for-large-down {
612
- display: table; }
613
-
614
- thead.show-for-xlarge, thead.hide-for-large, thead.hide-for-large-down {
615
- display: table-header-group !important; }
616
-
617
- tbody.show-for-xlarge, tbody.hide-for-large, tbody.hide-for-large-down {
618
- display: table-row-group !important; }
619
-
620
- tr.show-for-xlarge, tr.hide-for-large, tr.hide-for-large-down {
621
- display: table-row !important; }
622
-
623
- td.show-for-xlarge, td.hide-for-large, td.hide-for-large-down,
624
- th.show-for-xlarge,
625
- th.hide-for-large,
626
- th.hide-for-large-down {
627
- display: table-cell !important; } }
628
- /* Orientation targeting */
629
- .show-for-landscape,
630
- .hide-for-portrait {
631
- display: inherit !important; }
632
-
633
- .hide-for-landscape,
634
- .show-for-portrait {
635
- display: none !important; }
636
-
637
- /* Specific visilbity for tables */
638
- table.hide-for-landscape, table.show-for-portrait {
639
- display: table; }
640
-
641
- thead.hide-for-landscape, thead.show-for-portrait {
642
- display: table-header-group !important; }
643
-
644
- tbody.hide-for-landscape, tbody.show-for-portrait {
645
- display: table-row-group !important; }
646
-
647
- tr.hide-for-landscape, tr.show-for-portrait {
648
- display: table-row !important; }
649
-
650
- td.hide-for-landscape, td.show-for-portrait,
651
- th.hide-for-landscape,
652
- th.show-for-portrait {
653
- display: table-cell !important; }
654
-
655
- @media only screen and (orientation: landscape) {
656
- .show-for-landscape,
657
- .hide-for-portrait {
658
- display: inherit !important; }
659
-
660
- .hide-for-landscape,
661
- .show-for-portrait {
662
- display: none !important; }
663
-
664
- /* Specific visilbity for tables */
665
- table.show-for-landscape, table.hide-for-portrait {
666
- display: table; }
667
-
668
- thead.show-for-landscape, thead.hide-for-portrait {
669
- display: table-header-group !important; }
670
-
671
- tbody.show-for-landscape, tbody.hide-for-portrait {
672
- display: table-row-group !important; }
673
-
674
- tr.show-for-landscape, tr.hide-for-portrait {
675
- display: table-row !important; }
676
-
677
- td.show-for-landscape, td.hide-for-portrait,
678
- th.show-for-landscape,
679
- th.hide-for-portrait {
680
- display: table-cell !important; } }
681
- @media only screen and (orientation: portrait) {
682
- .show-for-portrait,
683
- .hide-for-landscape {
684
- display: inherit !important; }
685
-
686
- .hide-for-portrait,
687
- .show-for-landscape {
688
- display: none !important; }
689
-
690
- /* Specific visilbity for tables */
691
- table.show-for-portrait, table.hide-for-landscape {
692
- display: table; }
693
-
694
- thead.show-for-portrait, thead.hide-for-landscape {
695
- display: table-header-group !important; }
696
-
697
- tbody.show-for-portrait, tbody.hide-for-landscape {
698
- display: table-row-group !important; }
699
-
700
- tr.show-for-portrait, tr.hide-for-landscape {
701
- display: table-row !important; }
702
-
703
- td.show-for-portrait, td.hide-for-landscape,
704
- th.show-for-portrait,
705
- th.hide-for-landscape {
706
- display: table-cell !important; } }
707
- /* Touch-enabled device targeting */
708
- .show-for-touch {
709
- display: none !important; }
710
-
711
- .hide-for-touch {
712
- display: inherit !important; }
713
-
714
- .touch .show-for-touch {
715
- display: inherit !important; }
716
-
717
- .touch .hide-for-touch {
718
- display: none !important; }
719
-
720
- /* Specific visilbity for tables */
721
- table.hide-for-touch {
722
- display: table; }
723
-
724
- .touch table.show-for-touch {
725
- display: table; }
726
-
727
- thead.hide-for-touch {
728
- display: table-header-group !important; }
729
-
730
- .touch thead.show-for-touch {
731
- display: table-header-group !important; }
732
-
733
- tbody.hide-for-touch {
734
- display: table-row-group !important; }
735
-
736
- .touch tbody.show-for-touch {
737
- display: table-row-group !important; }
738
-
739
- tr.hide-for-touch {
740
- display: table-row !important; }
741
-
742
- .touch tr.show-for-touch {
743
- display: table-row !important; }
744
-
745
- td.hide-for-touch {
746
- display: table-cell !important; }
747
-
748
- .touch td.show-for-touch {
749
- display: table-cell !important; }
750
-
751
- th.hide-for-touch {
752
- display: table-cell !important; }
753
-
754
- .touch th.show-for-touch {
755
- display: table-cell !important; }
756
-
757
- /* Foundation Block Grids for below small breakpoint */
758
- @media only screen {
759
- [class*="block-grid-"] {
760
- display: block;
761
- padding: 0;
762
- margin: 0 -0.625em;
763
- *zoom: 1; }
764
- [class*="block-grid-"]:before, [class*="block-grid-"]:after {
765
- content: " ";
766
- display: table; }
767
- [class*="block-grid-"]:after {
768
- clear: both; }
769
- [class*="block-grid-"] > li {
770
- display: inline;
771
- height: auto;
772
- float: left;
773
- padding: 0 0.625em 1.25em; }
774
-
775
- .small-block-grid-1 > li {
776
- width: 100%;
777
- padding: 0 0.625em 1.25em; }
778
- .small-block-grid-1 > li:nth-of-type(n) {
779
- clear: none; }
780
- .small-block-grid-1 > li:nth-of-type(1n+1) {
781
- clear: both; }
782
-
783
- .small-block-grid-2 > li {
784
- width: 50%;
785
- padding: 0 0.625em 1.25em; }
786
- .small-block-grid-2 > li:nth-of-type(n) {
787
- clear: none; }
788
- .small-block-grid-2 > li:nth-of-type(2n+1) {
789
- clear: both; }
790
-
791
- .small-block-grid-3 > li {
792
- width: 33.33333%;
793
- padding: 0 0.625em 1.25em; }
794
- .small-block-grid-3 > li:nth-of-type(n) {
795
- clear: none; }
796
- .small-block-grid-3 > li:nth-of-type(3n+1) {
797
- clear: both; }
798
-
799
- .small-block-grid-4 > li {
800
- width: 25%;
801
- padding: 0 0.625em 1.25em; }
802
- .small-block-grid-4 > li:nth-of-type(n) {
803
- clear: none; }
804
- .small-block-grid-4 > li:nth-of-type(4n+1) {
805
- clear: both; }
806
-
807
- .small-block-grid-5 > li {
808
- width: 20%;
809
- padding: 0 0.625em 1.25em; }
810
- .small-block-grid-5 > li:nth-of-type(n) {
811
- clear: none; }
812
- .small-block-grid-5 > li:nth-of-type(5n+1) {
813
- clear: both; }
814
-
815
- .small-block-grid-6 > li {
816
- width: 16.66667%;
817
- padding: 0 0.625em 1.25em; }
818
- .small-block-grid-6 > li:nth-of-type(n) {
819
- clear: none; }
820
- .small-block-grid-6 > li:nth-of-type(6n+1) {
821
- clear: both; }
822
-
823
- .small-block-grid-7 > li {
824
- width: 14.28571%;
825
- padding: 0 0.625em 1.25em; }
826
- .small-block-grid-7 > li:nth-of-type(n) {
827
- clear: none; }
828
- .small-block-grid-7 > li:nth-of-type(7n+1) {
829
- clear: both; }
830
-
831
- .small-block-grid-8 > li {
832
- width: 12.5%;
833
- padding: 0 0.625em 1.25em; }
834
- .small-block-grid-8 > li:nth-of-type(n) {
835
- clear: none; }
836
- .small-block-grid-8 > li:nth-of-type(8n+1) {
837
- clear: both; }
838
-
839
- .small-block-grid-9 > li {
840
- width: 11.11111%;
841
- padding: 0 0.625em 1.25em; }
842
- .small-block-grid-9 > li:nth-of-type(n) {
843
- clear: none; }
844
- .small-block-grid-9 > li:nth-of-type(9n+1) {
845
- clear: both; }
846
-
847
- .small-block-grid-10 > li {
848
- width: 10%;
849
- padding: 0 0.625em 1.25em; }
850
- .small-block-grid-10 > li:nth-of-type(n) {
851
- clear: none; }
852
- .small-block-grid-10 > li:nth-of-type(10n+1) {
853
- clear: both; }
854
-
855
- .small-block-grid-11 > li {
856
- width: 9.09091%;
857
- padding: 0 0.625em 1.25em; }
858
- .small-block-grid-11 > li:nth-of-type(n) {
859
- clear: none; }
860
- .small-block-grid-11 > li:nth-of-type(11n+1) {
861
- clear: both; }
862
-
863
- .small-block-grid-12 > li {
864
- width: 8.33333%;
865
- padding: 0 0.625em 1.25em; }
866
- .small-block-grid-12 > li:nth-of-type(n) {
867
- clear: none; }
868
- .small-block-grid-12 > li:nth-of-type(12n+1) {
869
- clear: both; } }
870
- /* Foundation Block Grids for above small breakpoint */
871
- @media only screen and (min-width: 768px) {
872
- /* Remove small grid clearing */
873
- .small-block-grid-1 > li:nth-of-type(1n+1) {
874
- clear: none; }
875
-
876
- .small-block-grid-2 > li:nth-of-type(2n+1) {
877
- clear: none; }
878
-
879
- .small-block-grid-3 > li:nth-of-type(3n+1) {
880
- clear: none; }
881
-
882
- .small-block-grid-4 > li:nth-of-type(4n+1) {
883
- clear: none; }
884
-
885
- .small-block-grid-5 > li:nth-of-type(5n+1) {
886
- clear: none; }
887
-
888
- .small-block-grid-6 > li:nth-of-type(6n+1) {
889
- clear: none; }
890
-
891
- .small-block-grid-7 > li:nth-of-type(7n+1) {
892
- clear: none; }
893
-
894
- .small-block-grid-8 > li:nth-of-type(8n+1) {
895
- clear: none; }
896
-
897
- .small-block-grid-9 > li:nth-of-type(9n+1) {
898
- clear: none; }
899
-
900
- .small-block-grid-10 > li:nth-of-type(10n+1) {
901
- clear: none; }
902
-
903
- .small-block-grid-11 > li:nth-of-type(11n+1) {
904
- clear: none; }
905
-
906
- .small-block-grid-12 > li:nth-of-type(12n+1) {
907
- clear: none; }
908
-
909
- .large-block-grid-1 > li {
910
- width: 100%;
911
- padding: 0 0.625em 1.25em; }
912
- .large-block-grid-1 > li:nth-of-type(n) {
913
- clear: none; }
914
- .large-block-grid-1 > li:nth-of-type(1n+1) {
915
- clear: both; }
916
-
917
- .large-block-grid-2 > li {
918
- width: 50%;
919
- padding: 0 0.625em 1.25em; }
920
- .large-block-grid-2 > li:nth-of-type(n) {
921
- clear: none; }
922
- .large-block-grid-2 > li:nth-of-type(2n+1) {
923
- clear: both; }
924
-
925
- .large-block-grid-3 > li {
926
- width: 33.33333%;
927
- padding: 0 0.625em 1.25em; }
928
- .large-block-grid-3 > li:nth-of-type(n) {
929
- clear: none; }
930
- .large-block-grid-3 > li:nth-of-type(3n+1) {
931
- clear: both; }
932
-
933
- .large-block-grid-4 > li {
934
- width: 25%;
935
- padding: 0 0.625em 1.25em; }
936
- .large-block-grid-4 > li:nth-of-type(n) {
937
- clear: none; }
938
- .large-block-grid-4 > li:nth-of-type(4n+1) {
939
- clear: both; }
940
-
941
- .large-block-grid-5 > li {
942
- width: 20%;
943
- padding: 0 0.625em 1.25em; }
944
- .large-block-grid-5 > li:nth-of-type(n) {
945
- clear: none; }
946
- .large-block-grid-5 > li:nth-of-type(5n+1) {
947
- clear: both; }
948
-
949
- .large-block-grid-6 > li {
950
- width: 16.66667%;
951
- padding: 0 0.625em 1.25em; }
952
- .large-block-grid-6 > li:nth-of-type(n) {
953
- clear: none; }
954
- .large-block-grid-6 > li:nth-of-type(6n+1) {
955
- clear: both; }
956
-
957
- .large-block-grid-7 > li {
958
- width: 14.28571%;
959
- padding: 0 0.625em 1.25em; }
960
- .large-block-grid-7 > li:nth-of-type(n) {
961
- clear: none; }
962
- .large-block-grid-7 > li:nth-of-type(7n+1) {
963
- clear: both; }
964
-
965
- .large-block-grid-8 > li {
966
- width: 12.5%;
967
- padding: 0 0.625em 1.25em; }
968
- .large-block-grid-8 > li:nth-of-type(n) {
969
- clear: none; }
970
- .large-block-grid-8 > li:nth-of-type(8n+1) {
971
- clear: both; }
972
-
973
- .large-block-grid-9 > li {
974
- width: 11.11111%;
975
- padding: 0 0.625em 1.25em; }
976
- .large-block-grid-9 > li:nth-of-type(n) {
977
- clear: none; }
978
- .large-block-grid-9 > li:nth-of-type(9n+1) {
979
- clear: both; }
980
-
981
- .large-block-grid-10 > li {
982
- width: 10%;
983
- padding: 0 0.625em 1.25em; }
984
- .large-block-grid-10 > li:nth-of-type(n) {
985
- clear: none; }
986
- .large-block-grid-10 > li:nth-of-type(10n+1) {
987
- clear: both; }
988
-
989
- .large-block-grid-11 > li {
990
- width: 9.09091%;
991
- padding: 0 0.625em 1.25em; }
992
- .large-block-grid-11 > li:nth-of-type(n) {
993
- clear: none; }
994
- .large-block-grid-11 > li:nth-of-type(11n+1) {
995
- clear: both; }
996
-
997
- .large-block-grid-12 > li {
998
- width: 8.33333%;
999
- padding: 0 0.625em 1.25em; }
1000
- .large-block-grid-12 > li:nth-of-type(n) {
1001
- clear: none; }
1002
- .large-block-grid-12 > li:nth-of-type(12n+1) {
1003
- clear: both; } }
1004
- p.lead {
1005
- font-size: 1.21875em;
1006
- line-height: 1.6; }
1007
-
1008
- .subheader {
1009
- line-height: 1.4;
1010
- color: #6f6f6f;
1011
- font-weight: 300;
1012
- margin-top: 0.2em;
1013
- margin-bottom: 0.5em; }
1014
-
1015
- /* Typography resets */
1016
- div,
1017
- dl,
1018
- dt,
1019
- dd,
1020
- ul,
1021
- ol,
1022
- li,
1023
- h1,
1024
- h2,
1025
- h3,
1026
- h4,
1027
- h5,
1028
- h6,
1029
- pre,
1030
- form,
1031
- p,
1032
- blockquote,
1033
- th,
1034
- td {
1035
- margin: 0;
1036
- padding: 0;
1037
- direction: ltr; }
1038
-
1039
- /* Default Link Styles */
1040
- a {
1041
- color: #2ba6cb;
1042
- text-decoration: none;
1043
- line-height: inherit; }
1044
- a:hover, a:focus {
1045
- color: #2795b6; }
1046
- a img {
1047
- border: none; }
1048
-
1049
- /* Default paragraph styles */
1050
- p {
1051
- font-family: inherit;
1052
- font-weight: normal;
1053
- font-size: 1em;
1054
- line-height: 1.6;
1055
- margin-bottom: 1.25em;
1056
- text-rendering: optimizeLegibility; }
1057
- p aside {
1058
- font-size: 0.875em;
1059
- line-height: 1.35;
1060
- font-style: italic; }
1061
-
1062
- /* Default header styles */
1063
- h1, h2, h3, h4, h5, h6 {
1064
- font-family: "Helvetica Neue", "Helvetica", Helvetica, Arial, sans-serif;
1065
- font-weight: bold;
1066
- font-style: normal;
1067
- color: #222222;
1068
- text-rendering: optimizeLegibility;
1069
- margin-top: 0.2em;
1070
- margin-bottom: 0.5em;
1071
- line-height: 1.2125em; }
1072
- h1 small, h2 small, h3 small, h4 small, h5 small, h6 small {
1073
- font-size: 60%;
1074
- color: #6f6f6f;
1075
- line-height: 0; }
1076
-
1077
- h1 {
1078
- font-size: 2.125em; }
1079
-
1080
- h2 {
1081
- font-size: 1.6875em; }
1082
-
1083
- h3 {
1084
- font-size: 1.375em; }
1085
-
1086
- h4 {
1087
- font-size: 1.125em; }
1088
-
1089
- h5 {
1090
- font-size: 1.125em; }
1091
-
1092
- h6 {
1093
- font-size: 1em; }
1094
-
1095
- hr {
1096
- border: solid #dddddd;
1097
- border-width: 1px 0 0;
1098
- clear: both;
1099
- margin: 1.25em 0 1.1875em;
1100
- height: 0; }
1101
-
1102
- /* Helpful Typography Defaults */
1103
- em,
1104
- i {
1105
- font-style: italic;
1106
- line-height: inherit; }
1107
-
1108
- strong,
1109
- b {
1110
- font-weight: bold;
1111
- line-height: inherit; }
1112
-
1113
- small {
1114
- font-size: 60%;
1115
- line-height: inherit; }
1116
-
1117
- code {
1118
- font-family: Consolas, "Liberation Mono", Courier, monospace;
1119
- font-weight: bold;
1120
- color: #7f0a0c; }
1121
-
1122
- /* Lists */
1123
- ul,
1124
- ol,
1125
- dl {
1126
- font-size: 1em;
1127
- line-height: 1.6;
1128
- margin-bottom: 1.25em;
1129
- list-style-position: outside;
1130
- font-family: inherit; }
1131
-
1132
- ul, ol {
1133
- margin-left: 0; }
1134
-
1135
- /* Unordered Lists */
1136
- ul li ul,
1137
- ul li ol {
1138
- margin-left: 1.25em;
1139
- margin-bottom: 0;
1140
- font-size: 1em;
1141
- /* Override nested font-size change */ }
1142
- ul.square li ul, ul.circle li ul, ul.disc li ul {
1143
- list-style: inherit; }
1144
- ul.square {
1145
- list-style-type: square; }
1146
- ul.circle {
1147
- list-style-type: circle; }
1148
- ul.disc {
1149
- list-style-type: disc; }
1150
- ul.no-bullet {
1151
- list-style: none; }
1152
-
1153
- /* Ordered Lists */
1154
- ol li ul,
1155
- ol li ol {
1156
- margin-left: 1.25em;
1157
- margin-bottom: 0; }
1158
-
1159
- /* Definition Lists */
1160
- dl dt {
1161
- margin-bottom: 0.3em;
1162
- font-weight: bold; }
1163
- dl dd {
1164
- margin-bottom: 0.75em; }
1165
-
1166
- /* Abbreviations */
1167
- abbr,
1168
- acronym {
1169
- text-transform: uppercase;
1170
- font-size: 90%;
1171
- color: #222222;
1172
- border-bottom: 1px dotted #dddddd;
1173
- cursor: help; }
1174
-
1175
- abbr {
1176
- text-transform: none; }
1177
-
1178
- /* Blockquotes */
1179
- blockquote {
1180
- margin: 0 0 1.25em;
1181
- padding: 0.5625em 1.25em 0 1.1875em;
1182
- border-left: 1px solid #dddddd; }
1183
- blockquote cite {
1184
- display: block;
1185
- font-size: 0.8125em;
1186
- color: #555555; }
1187
- blockquote cite:before {
1188
- content: "\2014 \0020"; }
1189
- blockquote cite a,
1190
- blockquote cite a:visited {
1191
- color: #555555; }
1192
-
1193
- blockquote,
1194
- blockquote p {
1195
- line-height: 1.6;
1196
- color: #6f6f6f; }
1197
-
1198
- /* Microformats */
1199
- .vcard {
1200
- display: inline-block;
1201
- margin: 0 0 1.25em 0;
1202
- border: 1px solid #dddddd;
1203
- padding: 0.625em 0.75em; }
1204
- .vcard li {
1205
- margin: 0;
1206
- display: block; }
1207
- .vcard .fn {
1208
- font-weight: bold;
1209
- font-size: 0.9375em; }
1210
-
1211
- .vevent .summary {
1212
- font-weight: bold; }
1213
- .vevent abbr {
1214
- cursor: default;
1215
- text-decoration: none;
1216
- font-weight: bold;
1217
- border: none;
1218
- padding: 0 0.0625em; }
1219
-
1220
- @media only screen and (min-width: 768px) {
1221
- h1, h2, h3, h4, h5, h6 {
1222
- line-height: 1.4; }
1223
-
1224
- h1 {
1225
- font-size: 2.75em; }
1226
-
1227
- h2 {
1228
- font-size: 2.3125em; }
1229
-
1230
- h3 {
1231
- font-size: 1.6875em; }
1232
-
1233
- h4 {
1234
- font-size: 1.4375em; } }
1235
- /*
1236
- * Print styles.
1237
- *
1238
- * Inlined to avoid required HTTP connection: www.phpied.com/delay-loading-your-print-css/
1239
- * Credit to Paul Irish and HTML5 Boilerplate (html5boilerplate.com)
1240
- */
1241
- .print-only {
1242
- display: none !important; }
1243
-
1244
- @media print {
1245
- * {
1246
- background: transparent !important;
1247
- color: black !important;
1248
- /* Black prints faster: h5bp.com/s */
1249
- box-shadow: none !important;
1250
- text-shadow: none !important; }
1251
-
1252
- a,
1253
- a:visited {
1254
- text-decoration: underline; }
1255
-
1256
- a[href]:after {
1257
- content: " (" attr(href) ")"; }
1258
-
1259
- abbr[title]:after {
1260
- content: " (" attr(title) ")"; }
1261
-
1262
- .ir a:after,
1263
- a[href^="javascript:"]:after,
1264
- a[href^="#"]:after {
1265
- content: ""; }
1266
-
1267
- pre,
1268
- blockquote {
1269
- border: 1px solid #999999;
1270
- page-break-inside: avoid; }
1271
-
1272
- thead {
1273
- display: table-header-group;
1274
- /* h5bp.com/t */ }
1275
-
1276
- tr,
1277
- img {
1278
- page-break-inside: avoid; }
1279
-
1280
- img {
1281
- max-width: 100% !important; }
1282
-
1283
- @page {
1284
- margin: 0.5cm; }
1285
-
1286
- p,
1287
- h2,
1288
- h3 {
1289
- orphans: 3;
1290
- widows: 3; }
1291
-
1292
- h2,
1293
- h3 {
1294
- page-break-after: avoid; }
1295
-
1296
- .hide-on-print {
1297
- display: none !important; }
1298
-
1299
- .print-only {
1300
- display: block !important; }
1301
-
1302
- .hide-for-print {
1303
- display: none !important; }
1304
-
1305
- .show-for-print {
1306
- display: inherit !important; } }
1307
- button, .button {
1308
- border-style: solid;
1309
- border-width: 1px;
1310
- cursor: pointer;
1311
- font-family: inherit;
1312
- font-weight: bold;
1313
- line-height: 1;
1314
- margin: 0 0 1.25em;
1315
- position: relative;
1316
- text-decoration: none;
1317
- text-align: center;
1318
- display: inline-block;
1319
- padding-top: 0.75em;
1320
- padding-right: 1.5em;
1321
- padding-bottom: 0.8125em;
1322
- padding-left: 1.5em;
1323
- font-size: 1em;
1324
- background-color: #2ba6cb;
1325
- border-color: #2284a1;
1326
- color: white; }
1327
- button:hover, button:focus, .button:hover, .button:focus {
1328
- background-color: #2284a1; }
1329
- button:hover, button:focus, .button:hover, .button:focus {
1330
- color: white; }
1331
- button.secondary, .button.secondary {
1332
- background-color: #e9e9e9;
1333
- border-color: #d0d0d0;
1334
- color: #333333; }
1335
- button.secondary:hover, button.secondary:focus, .button.secondary:hover, .button.secondary:focus {
1336
- background-color: #d0d0d0; }
1337
- button.secondary:hover, button.secondary:focus, .button.secondary:hover, .button.secondary:focus {
1338
- color: #333333; }
1339
- button.success, .button.success {
1340
- background-color: #5da423;
1341
- border-color: #457a1a;
1342
- color: white; }
1343
- button.success:hover, button.success:focus, .button.success:hover, .button.success:focus {
1344
- background-color: #457a1a; }
1345
- button.success:hover, button.success:focus, .button.success:hover, .button.success:focus {
1346
- color: white; }
1347
- button.alert, .button.alert {
1348
- background-color: #c60f13;
1349
- border-color: #970b0e;
1350
- color: white; }
1351
- button.alert:hover, button.alert:focus, .button.alert:hover, .button.alert:focus {
1352
- background-color: #970b0e; }
1353
- button.alert:hover, button.alert:focus, .button.alert:hover, .button.alert:focus {
1354
- color: white; }
1355
- button.large, .button.large {
1356
- padding-top: 1em;
1357
- padding-right: 2em;
1358
- padding-bottom: 1.0625em;
1359
- padding-left: 2em;
1360
- font-size: 1.25em; }
1361
- button.small, .button.small {
1362
- padding-top: 0.5625em;
1363
- padding-right: 1.125em;
1364
- padding-bottom: 0.625em;
1365
- padding-left: 1.125em;
1366
- font-size: 0.8125em; }
1367
- button.tiny, .button.tiny {
1368
- padding-top: 0.4375em;
1369
- padding-right: 0.875em;
1370
- padding-bottom: 0.5em;
1371
- padding-left: 0.875em;
1372
- font-size: 0.6875em; }
1373
- button.expand, .button.expand {
1374
- padding-right: 0px;
1375
- padding-left: 0px;
1376
- width: 100%; }
1377
- button.left-align, .button.left-align {
1378
- text-align: left;
1379
- text-indent: 0.75em; }
1380
- button.right-align, .button.right-align {
1381
- text-align: right;
1382
- padding-right: 0.75em; }
1383
- button.disabled, button[disabled], .button.disabled, .button[disabled] {
1384
- background-color: #2ba6cb;
1385
- border-color: #2284a1;
1386
- color: white;
1387
- cursor: default;
1388
- opacity: 0.6;
1389
- -webkit-box-shadow: none;
1390
- box-shadow: none; }
1391
- button.disabled:hover, button.disabled:focus, button[disabled]:hover, button[disabled]:focus, .button.disabled:hover, .button.disabled:focus, .button[disabled]:hover, .button[disabled]:focus {
1392
- background-color: #2284a1; }
1393
- button.disabled:hover, button.disabled:focus, button[disabled]:hover, button[disabled]:focus, .button.disabled:hover, .button.disabled:focus, .button[disabled]:hover, .button[disabled]:focus {
1394
- color: white; }
1395
- button.disabled:hover, button.disabled:focus, button[disabled]:hover, button[disabled]:focus, .button.disabled:hover, .button.disabled:focus, .button[disabled]:hover, .button[disabled]:focus {
1396
- background-color: #2ba6cb; }
1397
- button.disabled.secondary, button[disabled].secondary, .button.disabled.secondary, .button[disabled].secondary {
1398
- background-color: #e9e9e9;
1399
- border-color: #d0d0d0;
1400
- color: #333333;
1401
- cursor: default;
1402
- opacity: 0.6;
1403
- -webkit-box-shadow: none;
1404
- box-shadow: none; }
1405
- button.disabled.secondary:hover, button.disabled.secondary:focus, button[disabled].secondary:hover, button[disabled].secondary:focus, .button.disabled.secondary:hover, .button.disabled.secondary:focus, .button[disabled].secondary:hover, .button[disabled].secondary:focus {
1406
- background-color: #d0d0d0; }
1407
- button.disabled.secondary:hover, button.disabled.secondary:focus, button[disabled].secondary:hover, button[disabled].secondary:focus, .button.disabled.secondary:hover, .button.disabled.secondary:focus, .button[disabled].secondary:hover, .button[disabled].secondary:focus {
1408
- color: #333333; }
1409
- button.disabled.secondary:hover, button.disabled.secondary:focus, button[disabled].secondary:hover, button[disabled].secondary:focus, .button.disabled.secondary:hover, .button.disabled.secondary:focus, .button[disabled].secondary:hover, .button[disabled].secondary:focus {
1410
- background-color: #e9e9e9; }
1411
- button.disabled.success, button[disabled].success, .button.disabled.success, .button[disabled].success {
1412
- background-color: #5da423;
1413
- border-color: #457a1a;
1414
- color: white;
1415
- cursor: default;
1416
- opacity: 0.6;
1417
- -webkit-box-shadow: none;
1418
- box-shadow: none; }
1419
- button.disabled.success:hover, button.disabled.success:focus, button[disabled].success:hover, button[disabled].success:focus, .button.disabled.success:hover, .button.disabled.success:focus, .button[disabled].success:hover, .button[disabled].success:focus {
1420
- background-color: #457a1a; }
1421
- button.disabled.success:hover, button.disabled.success:focus, button[disabled].success:hover, button[disabled].success:focus, .button.disabled.success:hover, .button.disabled.success:focus, .button[disabled].success:hover, .button[disabled].success:focus {
1422
- color: white; }
1423
- button.disabled.success:hover, button.disabled.success:focus, button[disabled].success:hover, button[disabled].success:focus, .button.disabled.success:hover, .button.disabled.success:focus, .button[disabled].success:hover, .button[disabled].success:focus {
1424
- background-color: #5da423; }
1425
- button.disabled.alert, button[disabled].alert, .button.disabled.alert, .button[disabled].alert {
1426
- background-color: #c60f13;
1427
- border-color: #970b0e;
1428
- color: white;
1429
- cursor: default;
1430
- opacity: 0.6;
1431
- -webkit-box-shadow: none;
1432
- box-shadow: none; }
1433
- button.disabled.alert:hover, button.disabled.alert:focus, button[disabled].alert:hover, button[disabled].alert:focus, .button.disabled.alert:hover, .button.disabled.alert:focus, .button[disabled].alert:hover, .button[disabled].alert:focus {
1434
- background-color: #970b0e; }
1435
- button.disabled.alert:hover, button.disabled.alert:focus, button[disabled].alert:hover, button[disabled].alert:focus, .button.disabled.alert:hover, .button.disabled.alert:focus, .button[disabled].alert:hover, .button[disabled].alert:focus {
1436
- color: white; }
1437
- button.disabled.alert:hover, button.disabled.alert:focus, button[disabled].alert:hover, button[disabled].alert:focus, .button.disabled.alert:hover, .button.disabled.alert:focus, .button[disabled].alert:hover, .button[disabled].alert:focus {
1438
- background-color: #c60f13; }
1439
-
1440
- button, .button {
1441
- padding-top: 0.8125em;
1442
- padding-bottom: 0.75em;
1443
- -webkit-appearance: none; }
1444
- button.tiny, .button.tiny {
1445
- padding-top: 0.5em;
1446
- padding-bottom: 0.4375em;
1447
- -webkit-appearance: none; }
1448
- button.small, .button.small {
1449
- padding-top: 0.625em;
1450
- padding-bottom: 0.5625em;
1451
- -webkit-appearance: none; }
1452
- button.large, .button.large {
1453
- padding-top: 1.03125em;
1454
- padding-bottom: 1.03125em;
1455
- -webkit-appearance: none; }
1456
-
1457
- @media only screen {
1458
- button, .button {
1459
- -webkit-box-shadow: 0 1px 0 rgba(255, 255, 255, 0.5) inset;
1460
- box-shadow: 0 1px 0 rgba(255, 255, 255, 0.5) inset;
1461
- -webkit-transition: background-color 300ms ease-out;
1462
- -moz-transition: background-color 300ms ease-out;
1463
- transition: background-color 300ms ease-out; }
1464
- button:active, .button:active {
1465
- -webkit-box-shadow: 0 1px 0 rgba(0, 0, 0, 0.2) inset;
1466
- box-shadow: 0 1px 0 rgba(0, 0, 0, 0.2) inset; }
1467
- button.radius, .button.radius {
1468
- -webkit-border-radius: 3px;
1469
- border-radius: 3px; }
1470
- button.round, .button.round {
1471
- -webkit-border-radius: 1000px;
1472
- border-radius: 1000px; } }
1473
- @media only screen and (min-width: 768px) {
1474
- button, .button {
1475
- display: inline-block; } }
1476
- /* Standard Forms */
1477
- form {
1478
- margin: 0 0 1em; }
1479
-
1480
- /* Using forms within rows, we need to set some defaults */
1481
- form .row .row {
1482
- margin: 0 -0.5em; }
1483
- form .row .row .column,
1484
- form .row .row .columns {
1485
- padding: 0 0.5em; }
1486
- form .row .row.collapse {
1487
- margin: 0; }
1488
- form .row .row.collapse .column,
1489
- form .row .row.collapse .columns {
1490
- padding: 0; }
1491
- form .row input.column,
1492
- form .row input.columns,
1493
- form .row textarea.column,
1494
- form .row textarea.columns {
1495
- padding-left: 0.5em; }
1496
-
1497
- /* Label Styles */
1498
- label {
1499
- font-size: 0.875em;
1500
- color: #4d4d4d;
1501
- cursor: pointer;
1502
- display: block;
1503
- font-weight: 500;
1504
- margin-bottom: 0.1875em; }
1505
- label.right {
1506
- float: none;
1507
- text-align: right; }
1508
- label.inline {
1509
- margin: 0 0 1em 0;
1510
- padding: 0.625em 0; }
1511
-
1512
- /* Attach elements to the beginning or end of an input */
1513
- .prefix,
1514
- .postfix {
1515
- display: block;
1516
- position: relative;
1517
- z-index: 2;
1518
- text-align: center;
1519
- width: 100%;
1520
- padding-top: 0;
1521
- padding-bottom: 0;
1522
- border-style: solid;
1523
- border-width: 1px;
1524
- overflow: hidden;
1525
- font-size: 0.875em;
1526
- height: 2.3125em;
1527
- line-height: 2.3125em; }
1528
-
1529
- /* Adjust padding, alignment and radius if pre/post element is a button */
1530
- .postfix.button {
1531
- padding-left: 0;
1532
- padding-right: 0;
1533
- padding-top: 0;
1534
- padding-bottom: 0;
1535
- text-align: center;
1536
- line-height: 2.125em; }
1537
-
1538
- .prefix.button {
1539
- padding-left: 0;
1540
- padding-right: 0;
1541
- padding-top: 0;
1542
- padding-bottom: 0;
1543
- text-align: center;
1544
- line-height: 2.125em; }
1545
-
1546
- .prefix.button.radius {
1547
- -webkit-border-radius: 0;
1548
- border-radius: 0;
1549
- -moz-border-radius-bottomleft: 3px;
1550
- -moz-border-radius-topleft: 3px;
1551
- -webkit-border-bottom-left-radius: 3px;
1552
- -webkit-border-top-left-radius: 3px;
1553
- border-bottom-left-radius: 3px;
1554
- border-top-left-radius: 3px; }
1555
-
1556
- .postfix.button.radius {
1557
- -webkit-border-radius: 0;
1558
- border-radius: 0;
1559
- -moz-border-radius-topright: 3px;
1560
- -moz-border-radius-bottomright: 3px;
1561
- -webkit-border-top-right-radius: 3px;
1562
- -webkit-border-bottom-right-radius: 3px;
1563
- border-top-right-radius: 3px;
1564
- border-bottom-right-radius: 3px; }
1565
-
1566
- .prefix.button.round {
1567
- -webkit-border-radius: 0;
1568
- border-radius: 0;
1569
- -moz-border-radius-bottomleft: 1000px;
1570
- -moz-border-radius-topleft: 1000px;
1571
- -webkit-border-bottom-left-radius: 1000px;
1572
- -webkit-border-top-left-radius: 1000px;
1573
- border-bottom-left-radius: 1000px;
1574
- border-top-left-radius: 1000px; }
1575
-
1576
- .postfix.button.round {
1577
- -webkit-border-radius: 0;
1578
- border-radius: 0;
1579
- -moz-border-radius-topright: 1000px;
1580
- -moz-border-radius-bottomright: 1000px;
1581
- -webkit-border-top-right-radius: 1000px;
1582
- -webkit-border-bottom-right-radius: 1000px;
1583
- border-top-right-radius: 1000px;
1584
- border-bottom-right-radius: 1000px; }
1585
-
1586
- /* Separate prefix and postfix styles when on span so buttons keep their own */
1587
- span.prefix {
1588
- background: #f2f2f2;
1589
- border-color: #d9d9d9;
1590
- border-right: none;
1591
- color: #333333; }
1592
- span.prefix.radius {
1593
- -webkit-border-radius: 0;
1594
- border-radius: 0;
1595
- -moz-border-radius-bottomleft: 3px;
1596
- -moz-border-radius-topleft: 3px;
1597
- -webkit-border-bottom-left-radius: 3px;
1598
- -webkit-border-top-left-radius: 3px;
1599
- border-bottom-left-radius: 3px;
1600
- border-top-left-radius: 3px; }
1601
-
1602
- span.postfix {
1603
- background: #f2f2f2;
1604
- border-color: #cccccc;
1605
- border-left: none;
1606
- color: #333333; }
1607
- span.postfix.radius {
1608
- -webkit-border-radius: 0;
1609
- border-radius: 0;
1610
- -moz-border-radius-topright: 3px;
1611
- -moz-border-radius-bottomright: 3px;
1612
- -webkit-border-top-right-radius: 3px;
1613
- -webkit-border-bottom-right-radius: 3px;
1614
- border-top-right-radius: 3px;
1615
- border-bottom-right-radius: 3px; }
1616
-
1617
- /* Input groups will automatically style first and last elements of the group */
1618
- .input-group.radius > *:first-child, .input-group.radius > *:first-child * {
1619
- -moz-border-radius-bottomleft: 3px;
1620
- -moz-border-radius-topleft: 3px;
1621
- -webkit-border-bottom-left-radius: 3px;
1622
- -webkit-border-top-left-radius: 3px;
1623
- border-bottom-left-radius: 3px;
1624
- border-top-left-radius: 3px; }
1625
- .input-group.radius > *:last-child, .input-group.radius > *:last-child * {
1626
- -moz-border-radius-topright: 3px;
1627
- -moz-border-radius-bottomright: 3px;
1628
- -webkit-border-top-right-radius: 3px;
1629
- -webkit-border-bottom-right-radius: 3px;
1630
- border-top-right-radius: 3px;
1631
- border-bottom-right-radius: 3px; }
1632
- .input-group.round > *:first-child, .input-group.round > *:first-child * {
1633
- -moz-border-radius-bottomleft: 1000px;
1634
- -moz-border-radius-topleft: 1000px;
1635
- -webkit-border-bottom-left-radius: 1000px;
1636
- -webkit-border-top-left-radius: 1000px;
1637
- border-bottom-left-radius: 1000px;
1638
- border-top-left-radius: 1000px; }
1639
- .input-group.round > *:last-child, .input-group.round > *:last-child * {
1640
- -moz-border-radius-topright: 1000px;
1641
- -moz-border-radius-bottomright: 1000px;
1642
- -webkit-border-top-right-radius: 1000px;
1643
- -webkit-border-bottom-right-radius: 1000px;
1644
- border-top-right-radius: 1000px;
1645
- border-bottom-right-radius: 1000px; }
1646
-
1647
- /* We use this to get basic styling on all basic form elements */
1648
- input[type="text"],
1649
- input[type="password"],
1650
- input[type="date"],
1651
- input[type="datetime"],
1652
- input[type="datetime-local"],
1653
- input[type="month"],
1654
- input[type="week"],
1655
- input[type="email"],
1656
- input[type="number"],
1657
- input[type="search"],
1658
- input[type="tel"],
1659
- input[type="time"],
1660
- input[type="url"],
1661
- textarea {
1662
- background-color: white;
1663
- font-family: inherit;
1664
- border: 1px solid #cccccc;
1665
- -webkit-box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1);
1666
- box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1);
1667
- color: rgba(0, 0, 0, 0.75);
1668
- display: block;
1669
- font-size: 0.875em;
1670
- margin: 0 0 1em 0;
1671
- padding: 0.5em;
1672
- height: 2.3125em;
1673
- width: 100%;
1674
- -moz-box-sizing: border-box;
1675
- -webkit-box-sizing: border-box;
1676
- box-sizing: border-box;
1677
- -webkit-transition: -webkit-box-shadow 0.45s, border-color 0.45s ease-in-out;
1678
- -moz-transition: -moz-box-shadow 0.45s, border-color 0.45s ease-in-out;
1679
- transition: box-shadow 0.45s, border-color 0.45s ease-in-out; }
1680
- input[type="text"]:focus,
1681
- input[type="password"]:focus,
1682
- input[type="date"]:focus,
1683
- input[type="datetime"]:focus,
1684
- input[type="datetime-local"]:focus,
1685
- input[type="month"]:focus,
1686
- input[type="week"]:focus,
1687
- input[type="email"]:focus,
1688
- input[type="number"]:focus,
1689
- input[type="search"]:focus,
1690
- input[type="tel"]:focus,
1691
- input[type="time"]:focus,
1692
- input[type="url"]:focus,
1693
- textarea:focus {
1694
- -webkit-box-shadow: 0 0 5px #999999;
1695
- -moz-box-shadow: 0 0 5px #999999;
1696
- box-shadow: 0 0 5px #999999;
1697
- border-color: #999999; }
1698
- input[type="text"]:focus,
1699
- input[type="password"]:focus,
1700
- input[type="date"]:focus,
1701
- input[type="datetime"]:focus,
1702
- input[type="datetime-local"]:focus,
1703
- input[type="month"]:focus,
1704
- input[type="week"]:focus,
1705
- input[type="email"]:focus,
1706
- input[type="number"]:focus,
1707
- input[type="search"]:focus,
1708
- input[type="tel"]:focus,
1709
- input[type="time"]:focus,
1710
- input[type="url"]:focus,
1711
- textarea:focus {
1712
- background: #fafafa;
1713
- border-color: #999999;
1714
- outline: none; }
1715
- input[type="text"][disabled],
1716
- input[type="password"][disabled],
1717
- input[type="date"][disabled],
1718
- input[type="datetime"][disabled],
1719
- input[type="datetime-local"][disabled],
1720
- input[type="month"][disabled],
1721
- input[type="week"][disabled],
1722
- input[type="email"][disabled],
1723
- input[type="number"][disabled],
1724
- input[type="search"][disabled],
1725
- input[type="tel"][disabled],
1726
- input[type="time"][disabled],
1727
- input[type="url"][disabled],
1728
- textarea[disabled] {
1729
- background-color: #dddddd; }
1730
-
1731
- /* Adjust margin for form elements below */
1732
- input[type="file"],
1733
- input[type="checkbox"],
1734
- input[type="radio"],
1735
- select {
1736
- margin: 0 0 1em 0; }
1737
-
1738
- /* Normalize file input width */
1739
- input[type="file"] {
1740
- width: 100%; }
1741
-
1742
- /* We add basic fieldset styling */
1743
- fieldset {
1744
- border: solid 1px #dddddd;
1745
- padding: 1.25em;
1746
- margin: 1.125em 0; }
1747
- fieldset legend {
1748
- font-weight: bold;
1749
- background: white;
1750
- padding: 0 0.1875em;
1751
- margin: 0;
1752
- margin-left: -0.1875em; }
1753
-
1754
- /* Error Handling */
1755
- .error input,
1756
- input.error,
1757
- .error textarea,
1758
- textarea.error {
1759
- border-color: #c60f13;
1760
- background-color: rgba(198, 15, 19, 0.1); }
1761
- .error input:focus,
1762
- input.error:focus,
1763
- .error textarea:focus,
1764
- textarea.error:focus {
1765
- background: #fafafa;
1766
- border-color: #999999; }
1767
-
1768
- .error label,
1769
- label.error {
1770
- color: #c60f13; }
1771
-
1772
- .error small,
1773
- small.error {
1774
- display: block;
1775
- padding: 0.375em 0.25em;
1776
- margin-top: -1.3125em;
1777
- margin-bottom: 1em;
1778
- font-size: 0.75em;
1779
- font-weight: bold;
1780
- background: #c60f13;
1781
- color: white; }
1782
-
1783
- /* Custom Checkbox and Radio Inputs */
1784
- form.custom .hidden-field {
1785
- margin-left: -99999px;
1786
- position: absolute;
1787
- visibility: hidden; }
1788
- form.custom .custom {
1789
- display: inline-block;
1790
- width: 16px;
1791
- height: 16px;
1792
- position: relative;
1793
- vertical-align: middle;
1794
- border: solid 1px #cccccc;
1795
- background: white; }
1796
- form.custom .custom.checkbox {
1797
- -webkit-border-radius: 0px;
1798
- border-radius: 0px;
1799
- padding: -1px; }
1800
- form.custom .custom.radio {
1801
- -webkit-border-radius: 1000px;
1802
- border-radius: 1000px;
1803
- padding: 3px; }
1804
- form.custom .custom.checkbox:before {
1805
- content: "";
1806
- display: block;
1807
- font-size: 16px;
1808
- color: white; }
1809
- form.custom .custom.radio.checked:before {
1810
- content: "";
1811
- display: block;
1812
- width: 8px;
1813
- height: 8px;
1814
- -webkit-border-radius: 1000px;
1815
- border-radius: 1000px;
1816
- background: #222222;
1817
- position: relative; }
1818
- form.custom .custom.checkbox.checked:before {
1819
- content: "\00d7";
1820
- color: #222222;
1821
- position: absolute;
1822
- top: -50%;
1823
- left: 50%;
1824
- margin-top: 4px;
1825
- margin-left: -5px; }
1826
-
1827
- /* Custom Select Options and Dropdowns */
1828
- form.custom {
1829
- /* Custom input, disabled */ }
1830
- form.custom .custom.dropdown {
1831
- display: block;
1832
- position: relative;
1833
- top: 0;
1834
- height: 2.3125em;
1835
- margin-bottom: 1.25em;
1836
- margin-top: 0px;
1837
- padding: 0px;
1838
- width: 100%;
1839
- background: white;
1840
- background: -moz-linear-gradient(top, white 0%, #f3f3f3 100%);
1841
- background: -webkit-linear-gradient(top, white 0%, #f3f3f3 100%);
1842
- -webkit-box-shadow: none;
1843
- background: linear-gradient(to bottom, white 0%, #f3f3f3 100%);
1844
- box-shadow: none;
1845
- font-size: 0.875em;
1846
- vertical-align: top; }
1847
- form.custom .custom.dropdown ul {
1848
- overflow-y: auto;
1849
- max-height: 200px; }
1850
- form.custom .custom.dropdown .current {
1851
- cursor: default;
1852
- white-space: nowrap;
1853
- line-height: 2.25em;
1854
- color: rgba(0, 0, 0, 0.75);
1855
- text-decoration: none;
1856
- overflow: hidden;
1857
- display: block;
1858
- margin-left: 0.5em;
1859
- margin-right: 2.3125em; }
1860
- form.custom .custom.dropdown .selector {
1861
- cursor: default;
1862
- position: absolute;
1863
- width: 2.5em;
1864
- height: 2.3125em;
1865
- display: block;
1866
- right: 0;
1867
- top: 0; }
1868
- form.custom .custom.dropdown .selector:after {
1869
- content: "";
1870
- display: block;
1871
- content: "";
1872
- display: block;
1873
- width: 0;
1874
- height: 0;
1875
- border: inset 5px;
1876
- border-color: #aaaaaa transparent transparent transparent;
1877
- border-top-style: solid;
1878
- position: absolute;
1879
- left: 0.9375em;
1880
- top: 50%;
1881
- margin-top: -3px; }
1882
- form.custom .custom.dropdown:hover a.selector:after, form.custom .custom.dropdown.open a.selector:after {
1883
- content: "";
1884
- display: block;
1885
- width: 0;
1886
- height: 0;
1887
- border: inset 5px;
1888
- border-color: #222222 transparent transparent transparent;
1889
- border-top-style: solid; }
1890
- form.custom .custom.dropdown .disabled {
1891
- color: #888888; }
1892
- form.custom .custom.dropdown .disabled:hover {
1893
- background: transparent;
1894
- color: #888888; }
1895
- form.custom .custom.dropdown .disabled:hover:after {
1896
- display: none; }
1897
- form.custom .custom.dropdown.open ul {
1898
- display: block;
1899
- z-index: 10;
1900
- min-width: 100%;
1901
- -moz-box-sizing: content-box;
1902
- -webkit-box-sizing: content-box;
1903
- box-sizing: content-box; }
1904
- form.custom .custom.dropdown.small {
1905
- max-width: 134px; }
1906
- form.custom .custom.dropdown.medium {
1907
- max-width: 254px; }
1908
- form.custom .custom.dropdown.large {
1909
- max-width: 434px; }
1910
- form.custom .custom.dropdown.expand {
1911
- width: 100% !important; }
1912
- form.custom .custom.dropdown.open.small ul {
1913
- min-width: 134px;
1914
- -moz-box-sizing: border-box;
1915
- -webkit-box-sizing: border-box;
1916
- box-sizing: border-box; }
1917
- form.custom .custom.dropdown.open.medium ul {
1918
- min-width: 254px;
1919
- -moz-box-sizing: border-box;
1920
- -webkit-box-sizing: border-box;
1921
- box-sizing: border-box; }
1922
- form.custom .custom.dropdown.open.large ul {
1923
- min-width: 434px;
1924
- -moz-box-sizing: border-box;
1925
- -webkit-box-sizing: border-box;
1926
- box-sizing: border-box; }
1927
- form.custom .custom.dropdown ul {
1928
- position: absolute;
1929
- width: auto;
1930
- display: none;
1931
- margin: 0;
1932
- left: -1px;
1933
- top: auto;
1934
- -webkit-box-shadow: 0 2px 2px 0px rgba(0, 0, 0, 0.1);
1935
- box-shadow: 0 2px 2px 0px rgba(0, 0, 0, 0.1);
1936
- margin: 0;
1937
- padding: 0;
1938
- background: white;
1939
- border: solid 1px #cccccc;
1940
- font-size: 16px; }
1941
- form.custom .custom.dropdown ul li {
1942
- color: #555555;
1943
- font-size: 0.875em;
1944
- cursor: default;
1945
- padding-top: 0.25em;
1946
- padding-bottom: 0.25em;
1947
- padding-left: 0.375em;
1948
- padding-right: 2.375em;
1949
- min-height: 1.5em;
1950
- line-height: 1.5em;
1951
- margin: 0;
1952
- white-space: nowrap;
1953
- list-style: none; }
1954
- form.custom .custom.dropdown ul li.selected {
1955
- background: #eeeeee;
1956
- color: black; }
1957
- form.custom .custom.dropdown ul li:hover {
1958
- background-color: #e4e4e4;
1959
- color: black; }
1960
- form.custom .custom.dropdown ul li.selected:hover {
1961
- background: #eeeeee;
1962
- cursor: default;
1963
- color: black; }
1964
- form.custom .custom.dropdown ul.show {
1965
- display: block; }
1966
- form.custom .custom.disabled {
1967
- background: #dddddd; }
1968
-
1969
- /* Button Groups */
1970
- .button-group {
1971
- list-style: none;
1972
- margin: 0;
1973
- *zoom: 1; }
1974
- .button-group:before, .button-group:after {
1975
- content: " ";
1976
- display: table; }
1977
- .button-group:after {
1978
- clear: both; }
1979
- .button-group > * {
1980
- margin: 0 0 0 -1px;
1981
- float: left; }
1982
- .button-group > *:first-child {
1983
- margin-left: 0; }
1984
- .button-group.radius > *:first-child, .button-group.radius > *:first-child > a, .button-group.radius > *:first-child > button, .button-group.radius > *:first-child > .button {
1985
- -moz-border-radius-bottomleft: 3px;
1986
- -moz-border-radius-topleft: 3px;
1987
- -webkit-border-bottom-left-radius: 3px;
1988
- -webkit-border-top-left-radius: 3px;
1989
- border-bottom-left-radius: 3px;
1990
- border-top-left-radius: 3px; }
1991
- .button-group.radius > *:last-child, .button-group.radius > *:last-child > a, .button-group.radius > *:last-child > button, .button-group.radius > *:last-child > .button {
1992
- -moz-border-radius-topright: 3px;
1993
- -moz-border-radius-bottomright: 3px;
1994
- -webkit-border-top-right-radius: 3px;
1995
- -webkit-border-bottom-right-radius: 3px;
1996
- border-top-right-radius: 3px;
1997
- border-bottom-right-radius: 3px; }
1998
- .button-group.round > *:first-child, .button-group.round > *:first-child > a, .button-group.round > *:first-child > button, .button-group.round > *:first-child > .button {
1999
- -moz-border-radius-bottomleft: 1000px;
2000
- -moz-border-radius-topleft: 1000px;
2001
- -webkit-border-bottom-left-radius: 1000px;
2002
- -webkit-border-top-left-radius: 1000px;
2003
- border-bottom-left-radius: 1000px;
2004
- border-top-left-radius: 1000px; }
2005
- .button-group.round > *:last-child, .button-group.round > *:last-child > a, .button-group.round > *:last-child > button, .button-group.round > *:last-child > .button {
2006
- -moz-border-radius-topright: 1000px;
2007
- -moz-border-radius-bottomright: 1000px;
2008
- -webkit-border-top-right-radius: 1000px;
2009
- -webkit-border-bottom-right-radius: 1000px;
2010
- border-top-right-radius: 1000px;
2011
- border-bottom-right-radius: 1000px; }
2012
- .button-group.even-2 li {
2013
- width: 50%; }
2014
- .button-group.even-2 li button, .button-group.even-2 li .button {
2015
- width: 100%; }
2016
- .button-group.even-3 li {
2017
- width: 33.33333%; }
2018
- .button-group.even-3 li button, .button-group.even-3 li .button {
2019
- width: 100%; }
2020
- .button-group.even-4 li {
2021
- width: 25%; }
2022
- .button-group.even-4 li button, .button-group.even-4 li .button {
2023
- width: 100%; }
2024
- .button-group.even-5 li {
2025
- width: 20%; }
2026
- .button-group.even-5 li button, .button-group.even-5 li .button {
2027
- width: 100%; }
2028
- .button-group.even-6 li {
2029
- width: 16.66667%; }
2030
- .button-group.even-6 li button, .button-group.even-6 li .button {
2031
- width: 100%; }
2032
- .button-group.even-7 li {
2033
- width: 14.28571%; }
2034
- .button-group.even-7 li button, .button-group.even-7 li .button {
2035
- width: 100%; }
2036
- .button-group.even-8 li {
2037
- width: 12.5%; }
2038
- .button-group.even-8 li button, .button-group.even-8 li .button {
2039
- width: 100%; }
2040
-
2041
- .button-bar {
2042
- *zoom: 1; }
2043
- .button-bar:before, .button-bar:after {
2044
- content: " ";
2045
- display: table; }
2046
- .button-bar:after {
2047
- clear: both; }
2048
- .button-bar .button-group {
2049
- float: left;
2050
- margin-right: 0.625em; }
2051
- .button-bar .button-group div {
2052
- overflow: hidden; }
2053
-
2054
- /* Dropdown Button */
2055
- .dropdown.button {
2056
- position: relative;
2057
- padding-right: 3.1875em; }
2058
- .dropdown.button:before {
2059
- position: absolute;
2060
- content: "";
2061
- width: 0;
2062
- height: 0;
2063
- display: block;
2064
- border-style: solid;
2065
- border-color: white transparent transparent transparent;
2066
- top: 50%; }
2067
- .dropdown.button:before {
2068
- border-width: 0.5625em;
2069
- right: 1.5em;
2070
- margin-top: -0.25em; }
2071
- .dropdown.button:before {
2072
- border-color: white transparent transparent transparent; }
2073
- .dropdown.button.tiny {
2074
- padding-right: 2.1875em; }
2075
- .dropdown.button.tiny:before {
2076
- border-width: 0.4375em;
2077
- right: 0.875em;
2078
- margin-top: -0.15625em; }
2079
- .dropdown.button.tiny:before {
2080
- border-color: white transparent transparent transparent; }
2081
- .dropdown.button.small {
2082
- padding-right: 2.8125em; }
2083
- .dropdown.button.small:before {
2084
- border-width: 0.5625em;
2085
- right: 1.125em;
2086
- margin-top: -0.21875em; }
2087
- .dropdown.button.small:before {
2088
- border-color: white transparent transparent transparent; }
2089
- .dropdown.button.large {
2090
- padding-right: 4em; }
2091
- .dropdown.button.large:before {
2092
- border-width: 0.625em;
2093
- right: 1.75em;
2094
- margin-top: -0.3125em; }
2095
- .dropdown.button.large:before {
2096
- border-color: white transparent transparent transparent; }
2097
- .dropdown.button.secondary:before {
2098
- border-color: #333333 transparent transparent transparent; }
2099
-
2100
- /* Split Buttons */
2101
- .split.button {
2102
- position: relative;
2103
- padding-right: 4.8em; }
2104
- .split.button span {
2105
- display: block;
2106
- height: 100%;
2107
- position: absolute;
2108
- right: 0;
2109
- top: 0;
2110
- border-left: solid 1px; }
2111
- .split.button span:before {
2112
- position: absolute;
2113
- content: "";
2114
- width: 0;
2115
- height: 0;
2116
- display: block;
2117
- border-style: inset;
2118
- left: 50%; }
2119
- .split.button span:active {
2120
- background-color: rgba(0, 0, 0, 0.1); }
2121
- .split.button span {
2122
- border-left-color: #1e728c; }
2123
- .split.button span {
2124
- width: 3em; }
2125
- .split.button span:before {
2126
- border-top-style: solid;
2127
- border-width: 0.5625em;
2128
- top: 1.125em;
2129
- margin-left: -0.5625em; }
2130
- .split.button span:before {
2131
- border-color: white transparent transparent transparent; }
2132
- .split.button.secondary span {
2133
- border-left-color: #c3c3c3; }
2134
- .split.button.secondary span:before {
2135
- border-color: white transparent transparent transparent; }
2136
- .split.button.alert span {
2137
- border-left-color: #7f0a0c; }
2138
- .split.button.success span {
2139
- border-left-color: #396516; }
2140
- .split.button.tiny {
2141
- padding-right: 3.9375em; }
2142
- .split.button.tiny span {
2143
- width: 2.84375em; }
2144
- .split.button.tiny span:before {
2145
- border-top-style: solid;
2146
- border-width: 0.4375em;
2147
- top: 0.875em;
2148
- margin-left: -0.3125em; }
2149
- .split.button.small {
2150
- padding-right: 3.9375em; }
2151
- .split.button.small span {
2152
- width: 2.8125em; }
2153
- .split.button.small span:before {
2154
- border-top-style: solid;
2155
- border-width: 0.5625em;
2156
- top: 0.84375em;
2157
- margin-left: -0.5625em; }
2158
- .split.button.large {
2159
- padding-right: 6em; }
2160
- .split.button.large span {
2161
- width: 3.75em; }
2162
- .split.button.large span:before {
2163
- border-top-style: solid;
2164
- border-width: 0.625em;
2165
- top: 1.3125em;
2166
- margin-left: -0.5625em; }
2167
- .split.button.expand {
2168
- padding-left: 2em; }
2169
- .split.button.secondary span:before {
2170
- border-color: #333333 transparent transparent transparent; }
2171
- .split.button.radius span {
2172
- -moz-border-radius-topright: 3px;
2173
- -moz-border-radius-bottomright: 3px;
2174
- -webkit-border-top-right-radius: 3px;
2175
- -webkit-border-bottom-right-radius: 3px;
2176
- border-top-right-radius: 3px;
2177
- border-bottom-right-radius: 3px; }
2178
- .split.button.round span {
2179
- -moz-border-radius-topright: 1000px;
2180
- -moz-border-radius-bottomright: 1000px;
2181
- -webkit-border-top-right-radius: 1000px;
2182
- -webkit-border-bottom-right-radius: 1000px;
2183
- border-top-right-radius: 1000px;
2184
- border-bottom-right-radius: 1000px; }
2185
-
2186
- /* Flex Video */
2187
- .flex-video {
2188
- position: relative;
2189
- padding-top: 1.5625em;
2190
- padding-bottom: 67.5%;
2191
- height: 0;
2192
- margin-bottom: 1em;
2193
- overflow: hidden; }
2194
- .flex-video.widescreen {
2195
- padding-bottom: 57.25%; }
2196
- .flex-video.vimeo {
2197
- padding-top: 0; }
2198
- .flex-video iframe,
2199
- .flex-video object,
2200
- .flex-video embed,
2201
- .flex-video video {
2202
- position: absolute;
2203
- top: 0;
2204
- left: 0;
2205
- width: 100%;
2206
- height: 100%; }
2207
-
2208
- /* Sections */
2209
- .section-container, .section-container.auto {
2210
- width: 100%;
2211
- display: block;
2212
- margin-bottom: 1.25em;
2213
- border: 1px solid #cccccc;
2214
- border-top: none; }
2215
- .section-container > section, .section-container > .section, .section-container.auto > section, .section-container.auto > .section {
2216
- position: relative; }
2217
- .section-container > section > .title, .section-container > .section > .title, .section-container.auto > section > .title, .section-container.auto > .section > .title {
2218
- background-color: #efefef;
2219
- cursor: pointer;
2220
- margin-bottom: 0; }
2221
- .section-container > section > .title a, .section-container > .section > .title a, .section-container.auto > section > .title a, .section-container.auto > .section > .title a {
2222
- padding: 0.9375em;
2223
- display: inline-block;
2224
- color: #333333;
2225
- font-size: 0.875em;
2226
- white-space: nowrap; }
2227
- .section-container > section > .title:hover, .section-container > .section > .title:hover, .section-container.auto > section > .title:hover, .section-container.auto > .section > .title:hover {
2228
- background-color: #e2e2e2; }
2229
- .section-container > section .content, .section-container > .section .content, .section-container.auto > section .content, .section-container.auto > .section .content {
2230
- display: none;
2231
- padding: 0.9375em;
2232
- background-color: white; }
2233
- .section-container > section .content > *:last-child, .section-container > .section .content > *:last-child, .section-container.auto > section .content > *:last-child, .section-container.auto > .section .content > *:last-child {
2234
- margin-bottom: 0; }
2235
- .section-container > section .content > *:first-child, .section-container > .section .content > *:first-child, .section-container.auto > section .content > *:first-child, .section-container.auto > .section .content > *:first-child {
2236
- padding-top: 0; }
2237
- .section-container > section .content > *:last-child:not(.flex-video), .section-container > .section .content > *:last-child:not(.flex-video), .section-container.auto > section .content > *:last-child:not(.flex-video), .section-container.auto > .section .content > *:last-child:not(.flex-video) {
2238
- padding-bottom: 0; }
2239
- .section-container > section.active > .content, .section-container > .section.active > .content, .section-container.auto > section.active > .content, .section-container.auto > .section.active > .content {
2240
- display: block; }
2241
- .section-container > section.active > .title, .section-container > .section.active > .title, .section-container.auto > section.active > .title, .section-container.auto > .section.active > .title {
2242
- background: #d5d5d5; }
2243
- .section-container > section.active > .title a, .section-container > .section.active > .title a, .section-container.auto > section.active > .title a, .section-container.auto > .section.active > .title a {
2244
- color: #333333; }
2245
- .section-container > section > .title, .section-container > .section > .title, .section-container.auto > section > .title, .section-container.auto > .section > .title {
2246
- top: 0;
2247
- width: 100%;
2248
- margin: 0;
2249
- border-top: solid 1px #cccccc; }
2250
- .section-container > section > .title a, .section-container > .section > .title a, .section-container.auto > section > .title a, .section-container.auto > .section > .title a {
2251
- width: 100%; }
2252
-
2253
- .section-container.tabs {
2254
- border: 0;
2255
- position: relative; }
2256
- .section-container.tabs > section, .section-container.tabs > .section {
2257
- border: 0;
2258
- position: static; }
2259
- .section-container.tabs > section > .title, .section-container.tabs > .section > .title {
2260
- background-color: #efefef;
2261
- cursor: pointer;
2262
- margin-bottom: 0; }
2263
- .section-container.tabs > section > .title a, .section-container.tabs > .section > .title a {
2264
- padding: 0.9375em;
2265
- display: inline-block;
2266
- color: #333333;
2267
- font-size: 0.875em;
2268
- white-space: nowrap; }
2269
- .section-container.tabs > section > .title:hover, .section-container.tabs > .section > .title:hover {
2270
- background-color: #e2e2e2; }
2271
- .section-container.tabs > section .content, .section-container.tabs > .section .content {
2272
- display: none;
2273
- padding: 0.9375em;
2274
- background-color: white; }
2275
- .section-container.tabs > section .content > *:last-child, .section-container.tabs > .section .content > *:last-child {
2276
- margin-bottom: 0; }
2277
- .section-container.tabs > section .content > *:first-child, .section-container.tabs > .section .content > *:first-child {
2278
- padding-top: 0; }
2279
- .section-container.tabs > section .content > *:last-child:not(.flex-video), .section-container.tabs > .section .content > *:last-child:not(.flex-video) {
2280
- padding-bottom: 0; }
2281
- .section-container.tabs > section.active > .content, .section-container.tabs > .section.active > .content {
2282
- display: block; }
2283
- .section-container.tabs > section.active > .title, .section-container.tabs > .section.active > .title {
2284
- background: white; }
2285
- .section-container.tabs > section.active > .title a, .section-container.tabs > .section.active > .title a {
2286
- color: #333333; }
2287
- .section-container.tabs > section > .title, .section-container.tabs > .section > .title {
2288
- width: auto;
2289
- border: solid 1px #cccccc;
2290
- border-right: 0;
2291
- border-bottom: 0;
2292
- position: absolute;
2293
- top: 0;
2294
- z-index: 1; }
2295
- .section-container.tabs > section > .title a, .section-container.tabs > .section > .title a {
2296
- width: 100%; }
2297
- .section-container.tabs > section:last-child .title, .section-container.tabs > .section:last-child .title {
2298
- border-right: solid 1px #cccccc; }
2299
- .section-container.tabs > section .content, .section-container.tabs > .section .content {
2300
- border: solid 1px #cccccc;
2301
- position: absolute;
2302
- z-index: 10;
2303
- display: none;
2304
- top: -1px; }
2305
- .section-container.tabs > section.active > .title, .section-container.tabs > .section.active > .title {
2306
- z-index: 11;
2307
- border-bottom: 0;
2308
- background-color: white; }
2309
- .section-container.tabs > section.active > .content, .section-container.tabs > .section.active > .content {
2310
- position: relative; }
2311
-
2312
- @media only screen and (min-width: 768px) {
2313
- .section-container.auto {
2314
- border: 0;
2315
- position: relative; }
2316
- .section-container.auto > section, .section-container.auto > .section {
2317
- border: 0;
2318
- position: static; }
2319
- .section-container.auto > section > .title, .section-container.auto > .section > .title {
2320
- background-color: #efefef;
2321
- cursor: pointer;
2322
- margin-bottom: 0; }
2323
- .section-container.auto > section > .title a, .section-container.auto > .section > .title a {
2324
- padding: 0.9375em;
2325
- display: inline-block;
2326
- color: #333333;
2327
- font-size: 0.875em;
2328
- white-space: nowrap; }
2329
- .section-container.auto > section > .title:hover, .section-container.auto > .section > .title:hover {
2330
- background-color: #e2e2e2; }
2331
- .section-container.auto > section .content, .section-container.auto > .section .content {
2332
- display: none;
2333
- padding: 0.9375em;
2334
- background-color: white; }
2335
- .section-container.auto > section .content > *:last-child, .section-container.auto > .section .content > *:last-child {
2336
- margin-bottom: 0; }
2337
- .section-container.auto > section .content > *:first-child, .section-container.auto > .section .content > *:first-child {
2338
- padding-top: 0; }
2339
- .section-container.auto > section .content > *:last-child:not(.flex-video), .section-container.auto > .section .content > *:last-child:not(.flex-video) {
2340
- padding-bottom: 0; }
2341
- .section-container.auto > section.active > .content, .section-container.auto > .section.active > .content {
2342
- display: block; }
2343
- .section-container.auto > section.active > .title, .section-container.auto > .section.active > .title {
2344
- background: white; }
2345
- .section-container.auto > section.active > .title a, .section-container.auto > .section.active > .title a {
2346
- color: #333333; }
2347
- .section-container.auto > section > .title, .section-container.auto > .section > .title {
2348
- width: auto;
2349
- border: solid 1px #cccccc;
2350
- border-right: 0;
2351
- border-bottom: 0;
2352
- position: absolute;
2353
- top: 0;
2354
- z-index: 1; }
2355
- .section-container.auto > section > .title a, .section-container.auto > .section > .title a {
2356
- width: 100%; }
2357
- .section-container.auto > section:last-child .title, .section-container.auto > .section:last-child .title {
2358
- border-right: solid 1px #cccccc; }
2359
- .section-container.auto > section .content, .section-container.auto > .section .content {
2360
- border: solid 1px #cccccc;
2361
- position: absolute;
2362
- z-index: 10;
2363
- display: none;
2364
- top: -1px; }
2365
- .section-container.auto > section.active > .title, .section-container.auto > .section.active > .title {
2366
- z-index: 11;
2367
- border-bottom: 0;
2368
- background-color: white; }
2369
- .section-container.auto > section.active > .content, .section-container.auto > .section.active > .content {
2370
- position: relative; }
2371
-
2372
- .section-container.accordion .section {
2373
- padding-top: 0 !important; }
2374
-
2375
- .section-container.vertical-tabs {
2376
- border: 1px solid #cccccc;
2377
- position: relative; }
2378
- .section-container.vertical-tabs section,
2379
- .section-container.vertical-tabs .section {
2380
- padding-top: 0 !important;
2381
- border: 0;
2382
- position: static; }
2383
- .section-container.vertical-tabs section > .title,
2384
- .section-container.vertical-tabs .section > .title {
2385
- background-color: #efefef;
2386
- cursor: pointer;
2387
- margin-bottom: 0; }
2388
- .section-container.vertical-tabs section > .title a,
2389
- .section-container.vertical-tabs .section > .title a {
2390
- padding: 0.9375em;
2391
- display: inline-block;
2392
- color: #333333;
2393
- font-size: 0.875em;
2394
- white-space: nowrap; }
2395
- .section-container.vertical-tabs section > .title:hover,
2396
- .section-container.vertical-tabs .section > .title:hover {
2397
- background-color: #e2e2e2; }
2398
- .section-container.vertical-tabs section .content,
2399
- .section-container.vertical-tabs .section .content {
2400
- display: none;
2401
- padding: 0.9375em;
2402
- background-color: white; }
2403
- .section-container.vertical-tabs section .content > *:last-child,
2404
- .section-container.vertical-tabs .section .content > *:last-child {
2405
- margin-bottom: 0; }
2406
- .section-container.vertical-tabs section .content > *:first-child,
2407
- .section-container.vertical-tabs .section .content > *:first-child {
2408
- padding-top: 0; }
2409
- .section-container.vertical-tabs section .content > *:last-child:not(.flex-video),
2410
- .section-container.vertical-tabs .section .content > *:last-child:not(.flex-video) {
2411
- padding-bottom: 0; }
2412
- .section-container.vertical-tabs section.active > .content,
2413
- .section-container.vertical-tabs .section.active > .content {
2414
- display: block; }
2415
- .section-container.vertical-tabs section.active > .title,
2416
- .section-container.vertical-tabs .section.active > .title {
2417
- background: #d5d5d5; }
2418
- .section-container.vertical-tabs section.active > .title a,
2419
- .section-container.vertical-tabs .section.active > .title a {
2420
- color: #333333; }
2421
- .section-container.vertical-tabs section > .title,
2422
- .section-container.vertical-tabs .section > .title {
2423
- position: absolute;
2424
- border-top: solid 1px #cccccc;
2425
- width: 12.5em; }
2426
- .section-container.vertical-tabs section:first-child .title,
2427
- .section-container.vertical-tabs .section:first-child .title {
2428
- border-top: 0; }
2429
- .section-container.vertical-tabs section .content,
2430
- .section-container.vertical-tabs .section .content {
2431
- display: block;
2432
- position: relative;
2433
- left: 12.5em;
2434
- border-left: solid 1px #cccccc;
2435
- z-index: 10; }
2436
- .section-container.vertical-tabs section.active > .title,
2437
- .section-container.vertical-tabs .section.active > .title {
2438
- background-color: #d5d5d5;
2439
- width: 12.5625em;
2440
- border-right: solid 0 transparent;
2441
- z-index: 11; }
2442
- .section-container.vertical-tabs section.active:last-child .title,
2443
- .section-container.vertical-tabs .section.active:last-child .title {
2444
- border-bottom: 0; }
2445
-
2446
- .section-container.vertical-nav {
2447
- border: 0;
2448
- position: relative; }
2449
- .section-container.vertical-nav > section, .section-container.vertical-nav > .section {
2450
- padding-top: 0 !important;
2451
- position: relative; }
2452
- .section-container.vertical-nav > section > .title, .section-container.vertical-nav > .section > .title {
2453
- background-color: #efefef;
2454
- cursor: pointer;
2455
- margin-bottom: 0; }
2456
- .section-container.vertical-nav > section > .title a, .section-container.vertical-nav > .section > .title a {
2457
- padding: 0.9375em;
2458
- display: inline-block;
2459
- color: #333333;
2460
- font-size: 0.875em;
2461
- white-space: nowrap; }
2462
- .section-container.vertical-nav > section > .title:hover, .section-container.vertical-nav > .section > .title:hover {
2463
- background-color: #e2e2e2; }
2464
- .section-container.vertical-nav > section .content, .section-container.vertical-nav > .section .content {
2465
- display: none;
2466
- padding: 0.9375em;
2467
- background-color: white; }
2468
- .section-container.vertical-nav > section .content > *:last-child, .section-container.vertical-nav > .section .content > *:last-child {
2469
- margin-bottom: 0; }
2470
- .section-container.vertical-nav > section .content > *:first-child, .section-container.vertical-nav > .section .content > *:first-child {
2471
- padding-top: 0; }
2472
- .section-container.vertical-nav > section .content > *:last-child:not(.flex-video), .section-container.vertical-nav > .section .content > *:last-child:not(.flex-video) {
2473
- padding-bottom: 0; }
2474
- .section-container.vertical-nav > section.active > .content, .section-container.vertical-nav > .section.active > .content {
2475
- display: block; }
2476
- .section-container.vertical-nav > section.active > .title, .section-container.vertical-nav > .section.active > .title {
2477
- background: #d5d5d5; }
2478
- .section-container.vertical-nav > section.active > .title a, .section-container.vertical-nav > .section.active > .title a {
2479
- color: #333333; }
2480
- .section-container.vertical-nav > section > .title, .section-container.vertical-nav > .section > .title {
2481
- border-top: none;
2482
- border: solid 1px #cccccc; }
2483
- .section-container.vertical-nav > section > .title a, .section-container.vertical-nav > .section > .title a {
2484
- display: block;
2485
- width: 100%; }
2486
- .section-container.vertical-nav > section .content, .section-container.vertical-nav > .section .content {
2487
- display: none; }
2488
- .section-container.vertical-nav > section:first-child .title, .section-container.vertical-nav > .section:first-child .title {
2489
- border-bottom: none; }
2490
- .section-container.vertical-nav > section.active > .content, .section-container.vertical-nav > .section.active > .content {
2491
- display: block;
2492
- position: absolute;
2493
- left: 100%;
2494
- top: 0px;
2495
- z-index: 999;
2496
- min-width: 12.5em;
2497
- border: solid 1px #cccccc; }
2498
-
2499
- .section-container.horizontal-nav {
2500
- position: relative;
2501
- background: #efefef;
2502
- border: 1px solid #cccccc; }
2503
- .section-container.horizontal-nav > section, .section-container.horizontal-nav > .section {
2504
- padding-top: 0;
2505
- border: 0;
2506
- position: static; }
2507
- .section-container.horizontal-nav > section > .title, .section-container.horizontal-nav > .section > .title {
2508
- background-color: #efefef;
2509
- cursor: pointer;
2510
- margin-bottom: 0; }
2511
- .section-container.horizontal-nav > section > .title a, .section-container.horizontal-nav > .section > .title a {
2512
- padding: 0.9375em;
2513
- display: inline-block;
2514
- color: #333333;
2515
- font-size: 0.875em;
2516
- white-space: nowrap; }
2517
- .section-container.horizontal-nav > section > .title:hover, .section-container.horizontal-nav > .section > .title:hover {
2518
- background-color: #e2e2e2; }
2519
- .section-container.horizontal-nav > section .content, .section-container.horizontal-nav > .section .content {
2520
- display: none;
2521
- padding: 0.9375em;
2522
- background-color: white; }
2523
- .section-container.horizontal-nav > section .content > *:last-child, .section-container.horizontal-nav > .section .content > *:last-child {
2524
- margin-bottom: 0; }
2525
- .section-container.horizontal-nav > section .content > *:first-child, .section-container.horizontal-nav > .section .content > *:first-child {
2526
- padding-top: 0; }
2527
- .section-container.horizontal-nav > section .content > *:last-child:not(.flex-video), .section-container.horizontal-nav > .section .content > *:last-child:not(.flex-video) {
2528
- padding-bottom: 0; }
2529
- .section-container.horizontal-nav > section.active > .content, .section-container.horizontal-nav > .section.active > .content {
2530
- display: block; }
2531
- .section-container.horizontal-nav > section.active > .title, .section-container.horizontal-nav > .section.active > .title {
2532
- background: #d5d5d5; }
2533
- .section-container.horizontal-nav > section.active > .title a, .section-container.horizontal-nav > .section.active > .title a {
2534
- color: #333333; }
2535
- .section-container.horizontal-nav > section > .title, .section-container.horizontal-nav > .section > .title {
2536
- width: auto;
2537
- border: solid 1px #cccccc;
2538
- border-left: 0;
2539
- top: -1px;
2540
- position: absolute;
2541
- z-index: 1; }
2542
- .section-container.horizontal-nav > section > .title a, .section-container.horizontal-nav > .section > .title a {
2543
- width: 100%; }
2544
- .section-container.horizontal-nav > section .content, .section-container.horizontal-nav > .section .content {
2545
- display: none; }
2546
- .section-container.horizontal-nav > section.active > .content, .section-container.horizontal-nav > .section.active > .content {
2547
- display: block;
2548
- position: absolute;
2549
- z-index: 999;
2550
- left: 0;
2551
- top: -2px;
2552
- min-width: 12.5em;
2553
- border: solid 1px #cccccc; } }
2554
- .no-js .section-container.auto, .no-js .section-container.accordion, .no-js .section-container.tabs, .no-js .section-container.vertical-tabs, .no-js .section-container.vertical-nav, .no-js .section-container.horizontal-nav {
2555
- width: 100%;
2556
- display: block;
2557
- margin-bottom: 1.25em;
2558
- border: 1px solid #cccccc;
2559
- border-top: none; }
2560
- .no-js .section-container.auto > section, .no-js .section-container.auto > .section, .no-js .section-container.accordion > section, .no-js .section-container.accordion > .section, .no-js .section-container.tabs > section, .no-js .section-container.tabs > .section, .no-js .section-container.vertical-tabs > section, .no-js .section-container.vertical-tabs > .section, .no-js .section-container.vertical-nav > section, .no-js .section-container.vertical-nav > .section, .no-js .section-container.horizontal-nav > section, .no-js .section-container.horizontal-nav > .section {
2561
- position: relative; }
2562
- .no-js .section-container.auto > section > .title, .no-js .section-container.auto > .section > .title, .no-js .section-container.accordion > section > .title, .no-js .section-container.accordion > .section > .title, .no-js .section-container.tabs > section > .title, .no-js .section-container.tabs > .section > .title, .no-js .section-container.vertical-tabs > section > .title, .no-js .section-container.vertical-tabs > .section > .title, .no-js .section-container.vertical-nav > section > .title, .no-js .section-container.vertical-nav > .section > .title, .no-js .section-container.horizontal-nav > section > .title, .no-js .section-container.horizontal-nav > .section > .title {
2563
- background-color: #efefef;
2564
- cursor: pointer;
2565
- margin-bottom: 0; }
2566
- .no-js .section-container.auto > section > .title a, .no-js .section-container.auto > .section > .title a, .no-js .section-container.accordion > section > .title a, .no-js .section-container.accordion > .section > .title a, .no-js .section-container.tabs > section > .title a, .no-js .section-container.tabs > .section > .title a, .no-js .section-container.vertical-tabs > section > .title a, .no-js .section-container.vertical-tabs > .section > .title a, .no-js .section-container.vertical-nav > section > .title a, .no-js .section-container.vertical-nav > .section > .title a, .no-js .section-container.horizontal-nav > section > .title a, .no-js .section-container.horizontal-nav > .section > .title a {
2567
- padding: 0.9375em;
2568
- display: inline-block;
2569
- color: #333333;
2570
- font-size: 0.875em;
2571
- white-space: nowrap; }
2572
- .no-js .section-container.auto > section > .title:hover, .no-js .section-container.auto > .section > .title:hover, .no-js .section-container.accordion > section > .title:hover, .no-js .section-container.accordion > .section > .title:hover, .no-js .section-container.tabs > section > .title:hover, .no-js .section-container.tabs > .section > .title:hover, .no-js .section-container.vertical-tabs > section > .title:hover, .no-js .section-container.vertical-tabs > .section > .title:hover, .no-js .section-container.vertical-nav > section > .title:hover, .no-js .section-container.vertical-nav > .section > .title:hover, .no-js .section-container.horizontal-nav > section > .title:hover, .no-js .section-container.horizontal-nav > .section > .title:hover {
2573
- background-color: #e2e2e2; }
2574
- .no-js .section-container.auto > section .content, .no-js .section-container.auto > .section .content, .no-js .section-container.accordion > section .content, .no-js .section-container.accordion > .section .content, .no-js .section-container.tabs > section .content, .no-js .section-container.tabs > .section .content, .no-js .section-container.vertical-tabs > section .content, .no-js .section-container.vertical-tabs > .section .content, .no-js .section-container.vertical-nav > section .content, .no-js .section-container.vertical-nav > .section .content, .no-js .section-container.horizontal-nav > section .content, .no-js .section-container.horizontal-nav > .section .content {
2575
- display: none;
2576
- padding: 0.9375em;
2577
- background-color: white; }
2578
- .no-js .section-container.auto > section .content > *:last-child, .no-js .section-container.auto > .section .content > *:last-child, .no-js .section-container.accordion > section .content > *:last-child, .no-js .section-container.accordion > .section .content > *:last-child, .no-js .section-container.tabs > section .content > *:last-child, .no-js .section-container.tabs > .section .content > *:last-child, .no-js .section-container.vertical-tabs > section .content > *:last-child, .no-js .section-container.vertical-tabs > .section .content > *:last-child, .no-js .section-container.vertical-nav > section .content > *:last-child, .no-js .section-container.vertical-nav > .section .content > *:last-child, .no-js .section-container.horizontal-nav > section .content > *:last-child, .no-js .section-container.horizontal-nav > .section .content > *:last-child {
2579
- margin-bottom: 0; }
2580
- .no-js .section-container.auto > section .content > *:first-child, .no-js .section-container.auto > .section .content > *:first-child, .no-js .section-container.accordion > section .content > *:first-child, .no-js .section-container.accordion > .section .content > *:first-child, .no-js .section-container.tabs > section .content > *:first-child, .no-js .section-container.tabs > .section .content > *:first-child, .no-js .section-container.vertical-tabs > section .content > *:first-child, .no-js .section-container.vertical-tabs > .section .content > *:first-child, .no-js .section-container.vertical-nav > section .content > *:first-child, .no-js .section-container.vertical-nav > .section .content > *:first-child, .no-js .section-container.horizontal-nav > section .content > *:first-child, .no-js .section-container.horizontal-nav > .section .content > *:first-child {
2581
- padding-top: 0; }
2582
- .no-js .section-container.auto > section .content > *:last-child:not(.flex-video), .no-js .section-container.auto > .section .content > *:last-child:not(.flex-video), .no-js .section-container.accordion > section .content > *:last-child:not(.flex-video), .no-js .section-container.accordion > .section .content > *:last-child:not(.flex-video), .no-js .section-container.tabs > section .content > *:last-child:not(.flex-video), .no-js .section-container.tabs > .section .content > *:last-child:not(.flex-video), .no-js .section-container.vertical-tabs > section .content > *:last-child:not(.flex-video), .no-js .section-container.vertical-tabs > .section .content > *:last-child:not(.flex-video), .no-js .section-container.vertical-nav > section .content > *:last-child:not(.flex-video), .no-js .section-container.vertical-nav > .section .content > *:last-child:not(.flex-video), .no-js .section-container.horizontal-nav > section .content > *:last-child:not(.flex-video), .no-js .section-container.horizontal-nav > .section .content > *:last-child:not(.flex-video) {
2583
- padding-bottom: 0; }
2584
- .no-js .section-container.auto > section.active > .content, .no-js .section-container.auto > .section.active > .content, .no-js .section-container.accordion > section.active > .content, .no-js .section-container.accordion > .section.active > .content, .no-js .section-container.tabs > section.active > .content, .no-js .section-container.tabs > .section.active > .content, .no-js .section-container.vertical-tabs > section.active > .content, .no-js .section-container.vertical-tabs > .section.active > .content, .no-js .section-container.vertical-nav > section.active > .content, .no-js .section-container.vertical-nav > .section.active > .content, .no-js .section-container.horizontal-nav > section.active > .content, .no-js .section-container.horizontal-nav > .section.active > .content {
2585
- display: block; }
2586
- .no-js .section-container.auto > section.active > .title, .no-js .section-container.auto > .section.active > .title, .no-js .section-container.accordion > section.active > .title, .no-js .section-container.accordion > .section.active > .title, .no-js .section-container.tabs > section.active > .title, .no-js .section-container.tabs > .section.active > .title, .no-js .section-container.vertical-tabs > section.active > .title, .no-js .section-container.vertical-tabs > .section.active > .title, .no-js .section-container.vertical-nav > section.active > .title, .no-js .section-container.vertical-nav > .section.active > .title, .no-js .section-container.horizontal-nav > section.active > .title, .no-js .section-container.horizontal-nav > .section.active > .title {
2587
- background: #d5d5d5; }
2588
- .no-js .section-container.auto > section.active > .title a, .no-js .section-container.auto > .section.active > .title a, .no-js .section-container.accordion > section.active > .title a, .no-js .section-container.accordion > .section.active > .title a, .no-js .section-container.tabs > section.active > .title a, .no-js .section-container.tabs > .section.active > .title a, .no-js .section-container.vertical-tabs > section.active > .title a, .no-js .section-container.vertical-tabs > .section.active > .title a, .no-js .section-container.vertical-nav > section.active > .title a, .no-js .section-container.vertical-nav > .section.active > .title a, .no-js .section-container.horizontal-nav > section.active > .title a, .no-js .section-container.horizontal-nav > .section.active > .title a {
2589
- color: #333333; }
2590
- .no-js .section-container.auto > section > .title, .no-js .section-container.auto > .section > .title, .no-js .section-container.accordion > section > .title, .no-js .section-container.accordion > .section > .title, .no-js .section-container.tabs > section > .title, .no-js .section-container.tabs > .section > .title, .no-js .section-container.vertical-tabs > section > .title, .no-js .section-container.vertical-tabs > .section > .title, .no-js .section-container.vertical-nav > section > .title, .no-js .section-container.vertical-nav > .section > .title, .no-js .section-container.horizontal-nav > section > .title, .no-js .section-container.horizontal-nav > .section > .title {
2591
- top: 0;
2592
- width: 100%;
2593
- margin: 0;
2594
- border-top: solid 1px #cccccc; }
2595
- .no-js .section-container.auto > section > .title a, .no-js .section-container.auto > .section > .title a, .no-js .section-container.accordion > section > .title a, .no-js .section-container.accordion > .section > .title a, .no-js .section-container.tabs > section > .title a, .no-js .section-container.tabs > .section > .title a, .no-js .section-container.vertical-tabs > section > .title a, .no-js .section-container.vertical-tabs > .section > .title a, .no-js .section-container.vertical-nav > section > .title a, .no-js .section-container.vertical-nav > .section > .title a, .no-js .section-container.horizontal-nav > section > .title a, .no-js .section-container.horizontal-nav > .section > .title a {
2596
- width: 100%; }
2597
- .no-js .section-container.auto > section .title, .no-js .section-container.auto > .section .title, .no-js .section-container.accordion > section .title, .no-js .section-container.accordion > .section .title, .no-js .section-container.tabs > section .title, .no-js .section-container.tabs > .section .title, .no-js .section-container.vertical-tabs > section .title, .no-js .section-container.vertical-tabs > .section .title, .no-js .section-container.vertical-nav > section .title, .no-js .section-container.vertical-nav > .section .title, .no-js .section-container.horizontal-nav > section .title, .no-js .section-container.horizontal-nav > .section .title {
2598
- position: static;
2599
- width: 100%;
2600
- border-left: 0;
2601
- border-right: 0; }
2602
- .no-js .section-container.auto > section .content, .no-js .section-container.auto > .section .content, .no-js .section-container.accordion > section .content, .no-js .section-container.accordion > .section .content, .no-js .section-container.tabs > section .content, .no-js .section-container.tabs > .section .content, .no-js .section-container.vertical-tabs > section .content, .no-js .section-container.vertical-tabs > .section .content, .no-js .section-container.vertical-nav > section .content, .no-js .section-container.vertical-nav > .section .content, .no-js .section-container.horizontal-nav > section .content, .no-js .section-container.horizontal-nav > .section .content {
2603
- position: static;
2604
- display: block;
2605
- width: 100%;
2606
- border-left: 0;
2607
- border-right: 0;
2608
- border-bottom: 0; }
2609
-
2610
- /* Wrapped around .top-bar to contain to grid width */
2611
- .contain-to-grid {
2612
- width: 100%;
2613
- background: #111111; }
2614
- .contain-to-grid .top-bar {
2615
- margin-bottom: 0; }
2616
-
2617
- .fixed {
2618
- width: 100%;
2619
- left: 0;
2620
- position: fixed;
2621
- top: 0;
2622
- z-index: 99; }
2623
-
2624
- .top-bar {
2625
- overflow: hidden;
2626
- height: 45px;
2627
- line-height: 45px;
2628
- position: relative;
2629
- background: #111111;
2630
- margin-bottom: 1.875em; }
2631
- .top-bar ul {
2632
- margin-bottom: 0;
2633
- list-style: none; }
2634
- .top-bar .row {
2635
- max-width: none; }
2636
- .top-bar form,
2637
- .top-bar input {
2638
- margin-bottom: 0; }
2639
- .top-bar input {
2640
- height: 2.45em; }
2641
- .top-bar .button {
2642
- padding-top: .5em;
2643
- padding-bottom: .5em;
2644
- margin-bottom: 0; }
2645
- .top-bar .title-area {
2646
- position: relative;
2647
- margin: 0; }
2648
- .top-bar .name {
2649
- height: 45px;
2650
- margin: 0;
2651
- font-size: 16px; }
2652
- .top-bar .name h1 {
2653
- line-height: 45px;
2654
- font-size: 1.0625em;
2655
- margin: 0; }
2656
- .top-bar .name h1 a {
2657
- font-weight: bold;
2658
- color: white;
2659
- width: 50%;
2660
- display: block;
2661
- padding: 0 15px; }
2662
- .top-bar .toggle-topbar {
2663
- position: absolute;
2664
- right: 0;
2665
- top: 0; }
2666
- .top-bar .toggle-topbar a {
2667
- color: white;
2668
- text-transform: uppercase;
2669
- font-size: 0.8125em;
2670
- font-weight: bold;
2671
- position: relative;
2672
- display: block;
2673
- padding: 0 15px;
2674
- height: 45px;
2675
- line-height: 45px; }
2676
- .top-bar .toggle-topbar.menu-icon {
2677
- right: 15px;
2678
- top: 50%;
2679
- margin-top: -16px;
2680
- padding-left: 40px; }
2681
- .top-bar .toggle-topbar.menu-icon a {
2682
- text-indent: -48px;
2683
- width: 34px;
2684
- height: 34px;
2685
- line-height: 33px;
2686
- padding: 0;
2687
- color: white; }
2688
- .top-bar .toggle-topbar.menu-icon a span {
2689
- position: absolute;
2690
- right: 0;
2691
- display: block;
2692
- width: 16px;
2693
- height: 0;
2694
- -webkit-box-shadow: 0 10px 0 1px white, 0 16px 0 1px white, 0 22px 0 1px white;
2695
- box-shadow: 0 10px 0 1px white, 0 16px 0 1px white, 0 22px 0 1px white; }
2696
- .top-bar.expanded {
2697
- height: auto;
2698
- background: transparent; }
2699
- .top-bar.expanded .title-area {
2700
- background: #111111; }
2701
- .top-bar.expanded .toggle-topbar a {
2702
- color: #888888; }
2703
- .top-bar.expanded .toggle-topbar a span {
2704
- -webkit-box-shadow: 0 10px 0 1px #888888, 0 16px 0 1px #888888, 0 22px 0 1px #888888;
2705
- box-shadow: 0 10px 0 1px #888888, 0 16px 0 1px #888888, 0 22px 0 1px #888888; }
2706
-
2707
- .top-bar-section {
2708
- left: 0;
2709
- position: relative;
2710
- width: auto;
2711
- -webkit-transition: left 300ms ease-out;
2712
- -moz-transition: left 300ms ease-out;
2713
- transition: left 300ms ease-out; }
2714
- .top-bar-section ul {
2715
- width: 100%;
2716
- height: auto;
2717
- display: block;
2718
- background: #222222;
2719
- font-size: 16px;
2720
- margin: 0; }
2721
- .top-bar-section .divider,
2722
- .top-bar-section [role="separator"] {
2723
- border-bottom: solid 1px #2b2b2b;
2724
- border-top: solid 1px black;
2725
- clear: both;
2726
- height: 1px;
2727
- width: 100%; }
2728
- .top-bar-section ul li > a {
2729
- display: block;
2730
- width: 100%;
2731
- color: white;
2732
- padding: 12px 0 12px 0;
2733
- padding-left: 15px;
2734
- font-size: 0.8125em;
2735
- font-weight: bold;
2736
- background: #222222; }
2737
- .top-bar-section ul li > a.button {
2738
- background: #2ba6cb;
2739
- font-size: 0.8125em; }
2740
- .top-bar-section ul li > a.button.hover {
2741
- background: #2284a1; }
2742
- .top-bar-section ul li > a.button.secondary {
2743
- background: #e9e9e9; }
2744
- .top-bar-section ul li > a.button.secondary.hover {
2745
- background: #d0d0d0; }
2746
- .top-bar-section ul li > a.button.success {
2747
- background: #5da423; }
2748
- .top-bar-section ul li > a.button.success.hover {
2749
- background: #457a1a; }
2750
- .top-bar-section ul li > a.button.alert {
2751
- background: #c60f13; }
2752
- .top-bar-section ul li > a.button.alert.hover {
2753
- background: #970b0e; }
2754
- .top-bar-section ul li.hover > a {
2755
- background: #090909;
2756
- color: white; }
2757
- .top-bar-section ul li.active > a {
2758
- background: #090909;
2759
- color: white; }
2760
- .top-bar-section .has-form {
2761
- padding: 15px; }
2762
- .top-bar-section .has-dropdown {
2763
- position: relative; }
2764
- .top-bar-section .has-dropdown > a:after {
2765
- content: "";
2766
- display: block;
2767
- width: 0;
2768
- height: 0;
2769
- border: inset 5px;
2770
- border-color: transparent transparent transparent rgba(255, 255, 255, 0.5);
2771
- border-left-style: solid;
2772
- margin-right: 15px;
2773
- margin-top: -4.5px;
2774
- position: absolute;
2775
- top: 50%;
2776
- right: 0; }
2777
- .top-bar-section .has-dropdown.moved {
2778
- position: static; }
2779
- .top-bar-section .has-dropdown.moved > .dropdown {
2780
- visibility: visible; }
2781
- .top-bar-section .dropdown {
2782
- position: absolute;
2783
- left: 100%;
2784
- top: 0;
2785
- visibility: hidden;
2786
- z-index: 99; }
2787
- .top-bar-section .dropdown li {
2788
- width: 100%;
2789
- height: auto; }
2790
- .top-bar-section .dropdown li a {
2791
- font-weight: normal;
2792
- padding: 8px 15px; }
2793
- .top-bar-section .dropdown li.title h5 {
2794
- margin-bottom: 0; }
2795
- .top-bar-section .dropdown li.title h5 a {
2796
- color: white;
2797
- line-height: 22.5px;
2798
- display: block; }
2799
- .top-bar-section .dropdown label {
2800
- padding: 8px 15px 2px;
2801
- margin-bottom: 0;
2802
- text-transform: uppercase;
2803
- color: #555555;
2804
- font-weight: bold;
2805
- font-size: 0.625em; }
2806
-
2807
- .top-bar-js-breakpoint {
2808
- width: 58.75em !important;
2809
- visibility: hidden; }
2810
-
2811
- .js-generated {
2812
- display: block; }
2813
-
2814
- @media only screen and (min-width: 58.75em) {
2815
- .top-bar {
2816
- background: #111111;
2817
- *zoom: 1;
2818
- overflow: visible; }
2819
- .top-bar:before, .top-bar:after {
2820
- content: " ";
2821
- display: table; }
2822
- .top-bar:after {
2823
- clear: both; }
2824
- .top-bar .toggle-topbar {
2825
- display: none; }
2826
- .top-bar .title-area {
2827
- float: left; }
2828
- .top-bar .name h1 a {
2829
- width: auto; }
2830
- .top-bar input,
2831
- .top-bar .button {
2832
- line-height: 2em;
2833
- font-size: 0.875em;
2834
- height: 2em;
2835
- padding: 0 10px;
2836
- position: relative;
2837
- top: 8px; }
2838
- .top-bar.expanded {
2839
- background: #111111; }
2840
-
2841
- .contain-to-grid .top-bar {
2842
- max-width: 62.5em;
2843
- margin: 0 auto; }
2844
-
2845
- .top-bar-section {
2846
- -webkit-transition: none 0 0;
2847
- -moz-transition: none 0 0;
2848
- transition: none 0 0;
2849
- left: 0 !important; }
2850
- .top-bar-section ul {
2851
- width: auto;
2852
- height: auto !important;
2853
- display: inline; }
2854
- .top-bar-section ul li {
2855
- float: left; }
2856
- .top-bar-section ul li .js-generated {
2857
- display: none; }
2858
- .top-bar-section li a:not(.button) {
2859
- padding: 0 15px;
2860
- line-height: 45px;
2861
- background: #111111; }
2862
- .top-bar-section li a:not(.button).hover {
2863
- background: black; }
2864
- .top-bar-section .has-dropdown > a {
2865
- padding-right: 35px !important; }
2866
- .top-bar-section .has-dropdown > a:after {
2867
- content: "";
2868
- display: block;
2869
- width: 0;
2870
- height: 0;
2871
- border: inset 5px;
2872
- border-color: rgba(255, 255, 255, 0.5) transparent transparent transparent;
2873
- border-top-style: solid;
2874
- margin-top: -2.5px;
2875
- top: 22.5px; }
2876
- .top-bar-section .has-dropdown.moved {
2877
- position: relative; }
2878
- .top-bar-section .has-dropdown.moved > .dropdown {
2879
- visibility: hidden; }
2880
- .top-bar-section .has-dropdown.hover > .dropdown {
2881
- visibility: visible; }
2882
- .top-bar-section .has-dropdown .dropdown li.has-dropdown > a:after {
2883
- border: none;
2884
- content: "\00bb";
2885
- margin-top: -16px;
2886
- right: 5px; }
2887
- .top-bar-section .dropdown {
2888
- left: 0;
2889
- top: auto;
2890
- background: transparent;
2891
- min-width: 100%; }
2892
- .top-bar-section .dropdown li a {
2893
- color: white;
2894
- line-height: 1;
2895
- white-space: nowrap;
2896
- padding: 7px 15px;
2897
- background: #1e1e1e; }
2898
- .top-bar-section .dropdown li label {
2899
- white-space: nowrap;
2900
- background: #1e1e1e; }
2901
- .top-bar-section .dropdown li .dropdown {
2902
- left: 100%;
2903
- top: 0; }
2904
- .top-bar-section > ul > .divider, .top-bar-section > ul > [role="separator"] {
2905
- border-bottom: none;
2906
- border-top: none;
2907
- border-right: solid 1px #2b2b2b;
2908
- border-left: solid 1px black;
2909
- clear: none;
2910
- height: 45px;
2911
- width: 0px; }
2912
- .top-bar-section .has-form {
2913
- background: #111111;
2914
- padding: 0 15px;
2915
- height: 45px; }
2916
- .top-bar-section ul.right li .dropdown {
2917
- left: auto;
2918
- right: 0; }
2919
- .top-bar-section ul.right li .dropdown li .dropdown {
2920
- right: 100%; }
2921
-
2922
- .no-js .top-bar-section ul li:hover > a {
2923
- background: #090909;
2924
- color: white; }
2925
- .no-js .top-bar-section ul li:active > a {
2926
- background: #090909;
2927
- color: white; }
2928
- .no-js .top-bar-section .has-dropdown:hover > .dropdown {
2929
- visibility: visible; } }
2930
- @-webkit-keyframes rotate {
2931
- from {
2932
- -webkit-transform: rotate(0deg); }
2933
-
2934
- to {
2935
- -webkit-transform: rotate(360deg); } }
2936
-
2937
- @-moz-keyframes rotate {
2938
- from {
2939
- -webkit-transform: rotate(0deg); }
2940
-
2941
- to {
2942
- -webkit-transform: rotate(360deg); } }
2943
-
2944
- @-o-keyframes rotate {
2945
- from {
2946
- -webkit-transform: rotate(0deg); }
2947
-
2948
- to {
2949
- -webkit-transform: rotate(360deg); } }
2950
-
2951
- @keyframes rotate {
2952
- from {
2953
- -webkit-transform: rotate(0deg); }
2954
-
2955
- to {
2956
- -webkit-transform: rotate(360deg); } }
2957
-
2958
- /* Orbit Graceful Loading */
2959
- .slideshow-wrapper {
2960
- position: relative; }
2961
- .slideshow-wrapper ul {
2962
- list-style-type: none;
2963
- margin: 0; }
2964
- .slideshow-wrapper ul li,
2965
- .slideshow-wrapper ul li .orbit-caption {
2966
- display: none; }
2967
- .slideshow-wrapper ul li:first-child {
2968
- display: block; }
2969
- .slideshow-wrapper .orbit-container {
2970
- background-color: transparent; }
2971
- .slideshow-wrapper .orbit-container li {
2972
- display: block; }
2973
- .slideshow-wrapper .orbit-container li .orbit-caption {
2974
- display: block; }
2975
-
2976
- .preloader {
2977
- display: block;
2978
- width: 40px;
2979
- height: 40px;
2980
- position: absolute;
2981
- top: 50%;
2982
- left: 50%;
2983
- margin-top: -20px;
2984
- margin-left: -20px;
2985
- border: solid 3px;
2986
- border-color: #555555 white;
2987
- -webkit-border-radius: 1000px;
2988
- border-radius: 1000px;
2989
- -webkit-animation-name: rotate;
2990
- -webkit-animation-duration: 1.5s;
2991
- -webkit-animation-iteration-count: infinite;
2992
- -webkit-animation-timing-function: linear;
2993
- -moz-animation-name: rotate;
2994
- -moz-animation-duration: 1.5s;
2995
- -moz-animation-iteration-count: infinite;
2996
- -moz-animation-timing-function: linear;
2997
- -o-animation-name: rotate;
2998
- -o-animation-duration: 1.5s;
2999
- -o-animation-iteration-count: infinite;
3000
- -o-animation-timing-function: linear;
3001
- animation-name: rotate;
3002
- animation-duration: 1.5s;
3003
- animation-iteration-count: infinite;
3004
- animation-timing-function: linear; }
3005
-
3006
- .orbit-container {
3007
- overflow: hidden;
3008
- width: 100%;
3009
- position: relative;
3010
- background: whitesmoke; }
3011
- .orbit-container .orbit-slides-container {
3012
- list-style: none;
3013
- margin: 0;
3014
- padding: 0;
3015
- position: relative; }
3016
- .orbit-container .orbit-slides-container img {
3017
- display: block; }
3018
- .orbit-container .orbit-slides-container > * {
3019
- position: relative;
3020
- float: left;
3021
- height: auto; }
3022
- .orbit-container .orbit-slides-container > * .orbit-caption {
3023
- position: absolute;
3024
- bottom: 0;
3025
- background-color: black;
3026
- background-color: rgba(0, 0, 0, 0.6);
3027
- color: white;
3028
- width: 100%;
3029
- padding: 10px 14px;
3030
- font-size: 0.875em; }
3031
- .orbit-container .orbit-slide-number {
3032
- position: absolute;
3033
- top: 10px;
3034
- left: 10px;
3035
- font-size: 12px;
3036
- color: white;
3037
- background: rgba(0, 0, 0, 0); }
3038
- .orbit-container .orbit-slide-number span {
3039
- font-weight: 700;
3040
- padding: 0.3125em; }
3041
- .orbit-container .orbit-timer {
3042
- position: absolute;
3043
- top: 10px;
3044
- right: 10px;
3045
- height: 6px;
3046
- width: 100px; }
3047
- .orbit-container .orbit-timer .orbit-progress {
3048
- height: 100%;
3049
- background-color: black;
3050
- background-color: rgba(0, 0, 0, 0.6);
3051
- display: block;
3052
- width: 0%; }
3053
- .orbit-container .orbit-timer > span {
3054
- display: none;
3055
- position: absolute;
3056
- top: 10px;
3057
- right: 0px;
3058
- width: 11px;
3059
- height: 14px;
3060
- border: solid 4px black;
3061
- border-top: none;
3062
- border-bottom: none; }
3063
- .orbit-container .orbit-timer.paused > span {
3064
- right: -6px;
3065
- top: 9px;
3066
- width: 11px;
3067
- height: 14px;
3068
- border: inset 8px;
3069
- border-right-style: solid;
3070
- border-color: transparent transparent transparent black; }
3071
- .orbit-container:hover .orbit-timer > span {
3072
- display: block; }
3073
- .orbit-container .orbit-prev,
3074
- .orbit-container .orbit-next {
3075
- position: absolute;
3076
- top: 50%;
3077
- margin-top: -25px;
3078
- background-color: black;
3079
- background-color: rgba(0, 0, 0, 0.6);
3080
- width: 50px;
3081
- height: 60px;
3082
- line-height: 50px;
3083
- color: white;
3084
- text-indent: -9999px !important; }
3085
- .orbit-container .orbit-prev > span,
3086
- .orbit-container .orbit-next > span {
3087
- position: absolute;
3088
- top: 50%;
3089
- margin-top: -16px;
3090
- display: block;
3091
- width: 0;
3092
- height: 0;
3093
- border: inset 16px; }
3094
- .orbit-container .orbit-prev {
3095
- left: 0; }
3096
- .orbit-container .orbit-prev > span {
3097
- border-right-style: solid;
3098
- border-color: transparent;
3099
- border-right-color: #fff; }
3100
- .orbit-container .orbit-prev:hover > span {
3101
- border-right-color: #ccc; }
3102
- .orbit-container .orbit-next {
3103
- right: 0; }
3104
- .orbit-container .orbit-next > span {
3105
- border-color: transparent;
3106
- border-left-style: solid;
3107
- border-left-color: #fff;
3108
- left: 50%;
3109
- margin-left: -8px; }
3110
- .orbit-container .orbit-next:hover > span {
3111
- border-left-color: #ccc; }
3112
-
3113
- .orbit-bullets {
3114
- margin: 0 auto 30px auto;
3115
- overflow: hidden;
3116
- position: relative;
3117
- top: 10px; }
3118
- .orbit-bullets li {
3119
- display: block;
3120
- width: 18px;
3121
- height: 18px;
3122
- background: #999999;
3123
- float: left;
3124
- margin-right: 6px;
3125
- border: solid 2px #222222;
3126
- -webkit-border-radius: 1000px;
3127
- border-radius: 1000px; }
3128
- .orbit-bullets li.active {
3129
- background: #222222; }
3130
- .orbit-bullets li:last-child {
3131
- margin-right: 0; }
3132
-
3133
- .touch .orbit-container .orbit-prev,
3134
- .touch .orbit-container .orbit-next {
3135
- display: none; }
3136
- .touch .orbit-bullets {
3137
- display: none; }
3138
-
3139
- @media only screen and (min-width: 768px) {
3140
- .touch .orbit-container .orbit-prev,
3141
- .touch .orbit-container .orbit-next {
3142
- display: inherit; }
3143
- .touch .orbit-bullets {
3144
- display: block; } }
3145
- .reveal-modal-bg {
3146
- position: fixed;
3147
- height: 100%;
3148
- width: 100%;
3149
- background: black;
3150
- background: rgba(0, 0, 0, 0.45);
3151
- z-index: 98;
3152
- display: none;
3153
- top: 0;
3154
- left: 0; }
3155
-
3156
- .reveal-modal {
3157
- visibility: hidden;
3158
- display: none;
3159
- position: absolute;
3160
- left: 50%;
3161
- z-index: 99;
3162
- height: auto;
3163
- margin-left: -40%;
3164
- width: 80%;
3165
- background-color: white;
3166
- padding: 1.25em;
3167
- border: solid 1px #666666;
3168
- -webkit-box-shadow: 0 0 10px rgba(0, 0, 0, 0.4);
3169
- box-shadow: 0 0 10px rgba(0, 0, 0, 0.4);
3170
- top: 50px; }
3171
- .reveal-modal .column,
3172
- .reveal-modal .columns {
3173
- min-width: 0; }
3174
- .reveal-modal > :first-child {
3175
- margin-top: 0; }
3176
- .reveal-modal > :last-child {
3177
- margin-bottom: 0; }
3178
- .reveal-modal .close-reveal-modal {
3179
- font-size: 1.375em;
3180
- line-height: 1;
3181
- position: absolute;
3182
- top: 0.5em;
3183
- right: 0.6875em;
3184
- color: #aaaaaa;
3185
- font-weight: bold;
3186
- cursor: pointer; }
3187
-
3188
- @media only screen and (min-width: 768px) {
3189
- .reveal-modal {
3190
- padding: 1.875em;
3191
- top: 6.25em; }
3192
- .reveal-modal.tiny {
3193
- margin-left: -15%;
3194
- width: 30%; }
3195
- .reveal-modal.small {
3196
- margin-left: -20%;
3197
- width: 40%; }
3198
- .reveal-modal.medium {
3199
- margin-left: -30%;
3200
- width: 60%; }
3201
- .reveal-modal.large {
3202
- margin-left: -35%;
3203
- width: 70%; }
3204
- .reveal-modal.xlarge {
3205
- margin-left: -47.5%;
3206
- width: 95%; } }
3207
- @media print {
3208
- .reveal-modal {
3209
- background: white !important; } }
3210
- /* Foundation Joyride */
3211
- .joyride-list {
3212
- display: none; }
3213
-
3214
- /* Default styles for the container */
3215
- .joyride-tip-guide {
3216
- display: none;
3217
- position: absolute;
3218
- background: black;
3219
- color: white;
3220
- z-index: 101;
3221
- top: 0;
3222
- left: 2.5%;
3223
- font-family: inherit;
3224
- font-weight: normal;
3225
- width: 95%; }
3226
-
3227
- .lt-ie9 .joyride-tip-guide {
3228
- max-width: 800px;
3229
- left: 50%;
3230
- margin-left: -400px; }
3231
-
3232
- .joyride-content-wrapper {
3233
- width: 100%;
3234
- padding: 1.125em 1.25em 1.5em; }
3235
- .joyride-content-wrapper .button {
3236
- margin-bottom: 0 !important; }
3237
-
3238
- /* Add a little css triangle pip, older browser just miss out on the fanciness of it */
3239
- .joyride-tip-guide .joyride-nub {
3240
- display: block;
3241
- position: absolute;
3242
- left: 22px;
3243
- width: 0;
3244
- height: 0;
3245
- border: inset 14px; }
3246
- .joyride-tip-guide .joyride-nub.top {
3247
- border-top-style: solid;
3248
- border-color: black;
3249
- border-top-color: transparent !important;
3250
- border-left-color: transparent !important;
3251
- border-right-color: transparent !important;
3252
- top: -28px; }
3253
- .joyride-tip-guide .joyride-nub.bottom {
3254
- border-bottom-style: solid;
3255
- border-color: black !important;
3256
- border-bottom-color: transparent !important;
3257
- border-left-color: transparent !important;
3258
- border-right-color: transparent !important;
3259
- bottom: -28px; }
3260
- .joyride-tip-guide .joyride-nub.right {
3261
- right: -28px; }
3262
- .joyride-tip-guide .joyride-nub.left {
3263
- left: -28px; }
3264
-
3265
- /* Typography */
3266
- .joyride-tip-guide h1,
3267
- .joyride-tip-guide h2,
3268
- .joyride-tip-guide h3,
3269
- .joyride-tip-guide h4,
3270
- .joyride-tip-guide h5,
3271
- .joyride-tip-guide h6 {
3272
- line-height: 1.25;
3273
- margin: 0;
3274
- font-weight: bold;
3275
- color: white; }
3276
-
3277
- .joyride-tip-guide p {
3278
- margin: 0 0 1.125em 0;
3279
- font-size: 0.875em;
3280
- line-height: 1.3; }
3281
-
3282
- .joyride-timer-indicator-wrap {
3283
- width: 50px;
3284
- height: 3px;
3285
- border: solid 1px #555555;
3286
- position: absolute;
3287
- right: 1.0625em;
3288
- bottom: 1em; }
3289
-
3290
- .joyride-timer-indicator {
3291
- display: block;
3292
- width: 0;
3293
- height: inherit;
3294
- background: #666666; }
3295
-
3296
- .joyride-close-tip {
3297
- position: absolute;
3298
- right: 12px;
3299
- top: 10px;
3300
- color: #777777 !important;
3301
- text-decoration: none;
3302
- font-size: 30px;
3303
- font-weight: normal;
3304
- line-height: 0.5 !important; }
3305
- .joyride-close-tip:hover, .joyride-close-tip:focus {
3306
- color: #eeeeee !important; }
3307
-
3308
- .joyride-modal-bg {
3309
- position: fixed;
3310
- height: 100%;
3311
- width: 100%;
3312
- background: transparent;
3313
- background: rgba(0, 0, 0, 0.5);
3314
- z-index: 100;
3315
- display: none;
3316
- top: 0;
3317
- left: 0;
3318
- cursor: pointer; }
3319
-
3320
- .joyride-expose-wrapper {
3321
- background-color: #ffffff;
3322
- position: absolute;
3323
- border-radius: 3px;
3324
- z-index: 102;
3325
- -moz-box-shadow: 0px 0px 30px white;
3326
- -webkit-box-shadow: 0px 0px 15px white;
3327
- box-shadow: 0px 0px 15px white; }
3328
-
3329
- .joyride-expose-cover {
3330
- background: transparent;
3331
- border-radius: 3px;
3332
- position: absolute;
3333
- z-index: 9999;
3334
- top: 0px;
3335
- left: 0px; }
3336
-
3337
- /* Styles for screens that are atleast 768px; */
3338
- @media only screen and (min-width: 768px) {
3339
- .joyride-tip-guide {
3340
- width: 300px;
3341
- left: inherit; }
3342
- .joyride-tip-guide .joyride-nub.bottom {
3343
- border-color: black !important;
3344
- border-bottom-color: transparent !important;
3345
- border-left-color: transparent !important;
3346
- border-right-color: transparent !important;
3347
- bottom: -28px; }
3348
- .joyride-tip-guide .joyride-nub.right {
3349
- border-color: black !important;
3350
- border-top-color: transparent !important;
3351
- border-right-color: transparent !important;
3352
- border-bottom-color: transparent !important;
3353
- top: 22px;
3354
- left: auto;
3355
- right: -28px; }
3356
- .joyride-tip-guide .joyride-nub.left {
3357
- border-color: black !important;
3358
- border-top-color: transparent !important;
3359
- border-left-color: transparent !important;
3360
- border-bottom-color: transparent !important;
3361
- top: 22px;
3362
- left: -28px;
3363
- right: auto; } }
3364
- /* Clearing Styles */
3365
- [data-clearing] {
3366
- *zoom: 1;
3367
- margin-bottom: 0;
3368
- margin-left: 0;
3369
- list-style: none; }
3370
- [data-clearing]:before, [data-clearing]:after {
3371
- content: " ";
3372
- display: table; }
3373
- [data-clearing]:after {
3374
- clear: both; }
3375
- [data-clearing] li {
3376
- float: left;
3377
- margin-right: 10px; }
3378
-
3379
- .clearing-blackout {
3380
- background: #111111;
3381
- position: fixed;
3382
- width: 100%;
3383
- height: 100%;
3384
- top: 0;
3385
- left: 0;
3386
- z-index: 998; }
3387
- .clearing-blackout .clearing-close {
3388
- display: block; }
3389
-
3390
- .clearing-container {
3391
- position: relative;
3392
- z-index: 998;
3393
- height: 100%;
3394
- overflow: hidden;
3395
- margin: 0; }
3396
-
3397
- .visible-img {
3398
- height: 95%;
3399
- position: relative; }
3400
- .visible-img img {
3401
- position: absolute;
3402
- left: 50%;
3403
- top: 50%;
3404
- margin-left: -50%;
3405
- max-height: 100%;
3406
- max-width: 100%; }
3407
-
3408
- .clearing-caption {
3409
- color: white;
3410
- line-height: 1.3;
3411
- margin-bottom: 0;
3412
- text-align: center;
3413
- bottom: 0;
3414
- background: #111111;
3415
- width: 100%;
3416
- padding: 10px 30px;
3417
- position: absolute;
3418
- left: 0; }
3419
-
3420
- .clearing-close {
3421
- z-index: 999;
3422
- padding-left: 20px;
3423
- padding-top: 10px;
3424
- font-size: 40px;
3425
- line-height: 1;
3426
- color: white;
3427
- display: none; }
3428
- .clearing-close:hover, .clearing-close:focus {
3429
- color: #ccc; }
3430
-
3431
- .clearing-assembled .clearing-container {
3432
- height: 100%; }
3433
- .clearing-assembled .clearing-container .carousel > ul {
3434
- display: none; }
3435
-
3436
- .clearing-feature li {
3437
- display: none; }
3438
- .clearing-feature li.clearing-featured-img {
3439
- display: block; }
3440
-
3441
- @media only screen and (min-width: 768px) {
3442
- .clearing-main-prev,
3443
- .clearing-main-next {
3444
- position: absolute;
3445
- height: 100%;
3446
- width: 40px;
3447
- top: 0; }
3448
- .clearing-main-prev > span,
3449
- .clearing-main-next > span {
3450
- position: absolute;
3451
- top: 50%;
3452
- display: block;
3453
- width: 0;
3454
- height: 0;
3455
- border: solid 16px; }
3456
-
3457
- .clearing-main-prev {
3458
- left: 0; }
3459
- .clearing-main-prev > span {
3460
- left: 5px;
3461
- border-color: transparent;
3462
- border-right-color: white; }
3463
-
3464
- .clearing-main-next {
3465
- right: 0; }
3466
- .clearing-main-next > span {
3467
- border-color: transparent;
3468
- border-left-color: white; }
3469
-
3470
- .clearing-main-prev.disabled,
3471
- .clearing-main-next.disabled {
3472
- opacity: 0.5; }
3473
-
3474
- .clearing-assembled .clearing-container .carousel {
3475
- background: #111111;
3476
- height: 150px;
3477
- margin-top: 5px; }
3478
- .clearing-assembled .clearing-container .carousel > ul {
3479
- display: block;
3480
- z-index: 999;
3481
- width: 200%;
3482
- height: 100%;
3483
- margin-left: 0;
3484
- position: relative;
3485
- left: 0; }
3486
- .clearing-assembled .clearing-container .carousel > ul li {
3487
- display: block;
3488
- width: 175px;
3489
- height: inherit;
3490
- padding: 0;
3491
- float: left;
3492
- overflow: hidden;
3493
- margin-right: 1px;
3494
- position: relative;
3495
- cursor: pointer;
3496
- opacity: 0.4; }
3497
- .clearing-assembled .clearing-container .carousel > ul li.fix-height img {
3498
- min-height: 100%;
3499
- height: 100%;
3500
- max-width: none; }
3501
- .clearing-assembled .clearing-container .carousel > ul li a.th {
3502
- border: none;
3503
- -webkit-box-shadow: none;
3504
- box-shadow: none;
3505
- display: block; }
3506
- .clearing-assembled .clearing-container .carousel > ul li img {
3507
- cursor: pointer !important;
3508
- min-width: 100% !important; }
3509
- .clearing-assembled .clearing-container .carousel > ul li.visible {
3510
- opacity: 1; }
3511
- .clearing-assembled .clearing-container .visible-img {
3512
- background: #111111;
3513
- overflow: hidden;
3514
- height: 75%; }
3515
-
3516
- .clearing-close {
3517
- position: absolute;
3518
- top: 10px;
3519
- right: 20px;
3520
- padding-left: 0;
3521
- padding-top: 0; } }
3522
- /* Foundation Alerts */
3523
- .alert-box {
3524
- border-style: solid;
3525
- border-width: 1px;
3526
- display: block;
3527
- font-weight: bold;
3528
- margin-bottom: 1.25em;
3529
- position: relative;
3530
- padding: 0.6875em 1.3125em 0.75em 0.6875em;
3531
- font-size: 0.875em;
3532
- background-color: #2ba6cb;
3533
- border-color: #2284a1;
3534
- color: white; }
3535
- .alert-box .close {
3536
- font-size: 1.375em;
3537
- padding: 5px 4px 4px;
3538
- line-height: 0;
3539
- position: absolute;
3540
- top: 0.4375em;
3541
- right: 0.3125em;
3542
- color: #333333;
3543
- opacity: 0.3; }
3544
- .alert-box .close:hover, .alert-box .close:focus {
3545
- opacity: 0.5; }
3546
- .alert-box.radius {
3547
- -webkit-border-radius: 3px;
3548
- border-radius: 3px; }
3549
- .alert-box.round {
3550
- -webkit-border-radius: 1000px;
3551
- border-radius: 1000px; }
3552
- .alert-box.success {
3553
- background-color: #5da423;
3554
- border-color: #457a1a;
3555
- color: white; }
3556
- .alert-box.alert {
3557
- background-color: #c60f13;
3558
- border-color: #970b0e;
3559
- color: white; }
3560
- .alert-box.secondary {
3561
- background-color: #e9e9e9;
3562
- border-color: #d0d0d0;
3563
- color: #505050; }
3564
-
3565
- /* Breadcrumbs */
3566
- .breadcrumbs {
3567
- display: block;
3568
- padding: 0.5625em 0.875em 0.5625em;
3569
- overflow: hidden;
3570
- margin-left: 0;
3571
- list-style: none;
3572
- border-style: solid;
3573
- border-width: 1px;
3574
- background-color: #f6f6f6;
3575
- border-color: gainsboro;
3576
- -webkit-border-radius: 3px;
3577
- border-radius: 3px; }
3578
- .breadcrumbs > * {
3579
- margin: 0;
3580
- float: left;
3581
- font-size: 0.6875em;
3582
- text-transform: uppercase; }
3583
- .breadcrumbs > *:hover a, .breadcrumbs > *:focus a {
3584
- text-decoration: underline; }
3585
- .breadcrumbs > * a,
3586
- .breadcrumbs > * span {
3587
- text-transform: uppercase;
3588
- color: #2ba6cb; }
3589
- .breadcrumbs > *.current {
3590
- cursor: default;
3591
- color: #333333; }
3592
- .breadcrumbs > *.current a {
3593
- cursor: default;
3594
- color: #333333; }
3595
- .breadcrumbs > *.current:hover, .breadcrumbs > *.current:hover a, .breadcrumbs > *.current:focus, .breadcrumbs > *.current:focus a {
3596
- text-decoration: none; }
3597
- .breadcrumbs > *.unavailable {
3598
- color: #999999; }
3599
- .breadcrumbs > *.unavailable a {
3600
- color: #999999; }
3601
- .breadcrumbs > *.unavailable:hover, .breadcrumbs > *.unavailable:hover a, .breadcrumbs > *.unavailable:focus,
3602
- .breadcrumbs > *.unavailable a:focus {
3603
- text-decoration: none;
3604
- color: #999999;
3605
- cursor: default; }
3606
- .breadcrumbs > *:before {
3607
- content: "/";
3608
- color: #aaaaaa;
3609
- margin: 0 0.75em;
3610
- position: relative;
3611
- top: 1px; }
3612
- .breadcrumbs > *:first-child:before {
3613
- content: " ";
3614
- margin: 0; }
3615
-
3616
- /* Keystroke Characters */
3617
- .keystroke,
3618
- kbd {
3619
- background-color: #ededed;
3620
- border-color: #dbdbdb;
3621
- color: #222222;
3622
- border-style: solid;
3623
- border-width: 1px;
3624
- margin: 0;
3625
- font-family: "Consolas", "Menlo", "Courier", monospace;
3626
- font-size: 0.875em;
3627
- padding: 0.125em 0.25em 0em;
3628
- -webkit-border-radius: 3px;
3629
- border-radius: 3px; }
3630
-
3631
- /* Labels */
3632
- .label {
3633
- font-weight: bold;
3634
- text-align: center;
3635
- text-decoration: none;
3636
- line-height: 1;
3637
- white-space: nowrap;
3638
- display: inline-block;
3639
- position: relative;
3640
- padding: 0.1875em 0.625em 0.25em;
3641
- font-size: 0.875em;
3642
- background-color: #2ba6cb;
3643
- color: white; }
3644
- .label.radius {
3645
- -webkit-border-radius: 3px;
3646
- border-radius: 3px; }
3647
- .label.round {
3648
- -webkit-border-radius: 1000px;
3649
- border-radius: 1000px; }
3650
- .label.alert {
3651
- background-color: #c60f13;
3652
- color: white; }
3653
- .label.success {
3654
- background-color: #5da423;
3655
- color: white; }
3656
- .label.secondary {
3657
- background-color: #e9e9e9;
3658
- color: #333333; }
3659
-
3660
- /* Inline Lists */
3661
- .inline-list {
3662
- margin: 0 auto 1.0625em auto;
3663
- margin-left: -1.375em;
3664
- margin-right: 0;
3665
- padding: 0;
3666
- list-style: none;
3667
- overflow: hidden; }
3668
- .inline-list > li {
3669
- list-style: none;
3670
- float: left;
3671
- margin-left: 1.375em;
3672
- display: block; }
3673
- .inline-list > li > * {
3674
- display: block; }
3675
-
3676
- /* Default Pagination */
3677
- ul.pagination {
3678
- display: block;
3679
- height: 1.5em;
3680
- margin-left: -0.3125em; }
3681
- ul.pagination li {
3682
- height: 1.5em;
3683
- color: #222222;
3684
- font-size: 0.875em;
3685
- margin-left: 0.3125em; }
3686
- ul.pagination li a {
3687
- display: block;
3688
- padding: 0.0625em 0.4375em 0.0625em;
3689
- color: #999999; }
3690
- ul.pagination li:hover a,
3691
- ul.pagination li a:focus {
3692
- background: #e6e6e6; }
3693
- ul.pagination li.unavailable a {
3694
- cursor: default;
3695
- color: #999999; }
3696
- ul.pagination li.unavailable:hover a, ul.pagination li.unavailable a:focus {
3697
- background: transparent; }
3698
- ul.pagination li.current a {
3699
- background: #2ba6cb;
3700
- color: white;
3701
- font-weight: bold;
3702
- cursor: default; }
3703
- ul.pagination li.current a:hover, ul.pagination li.current a:focus {
3704
- background: #2ba6cb; }
3705
- ul.pagination li {
3706
- float: left;
3707
- display: block; }
3708
-
3709
- /* Pagination centred wrapper */
3710
- .pagination-centered {
3711
- text-align: center; }
3712
- .pagination-centered ul.pagination li {
3713
- float: none;
3714
- display: inline-block; }
3715
-
3716
- /* Panels */
3717
- .panel {
3718
- border-style: solid;
3719
- border-width: 1px;
3720
- border-color: #d9d9d9;
3721
- margin-bottom: 1.25em;
3722
- padding: 1.25em;
3723
- background: #f2f2f2; }
3724
- .panel > :first-child {
3725
- margin-top: 0; }
3726
- .panel > :last-child {
3727
- margin-bottom: 0; }
3728
- .panel h1, .panel h2, .panel h3, .panel h4, .panel h5, .panel h6, .panel p {
3729
- color: #333333; }
3730
- .panel h1, .panel h2, .panel h3, .panel h4, .panel h5, .panel h6 {
3731
- line-height: 1;
3732
- margin-bottom: 0.625em; }
3733
- .panel h1.subheader, .panel h2.subheader, .panel h3.subheader, .panel h4.subheader, .panel h5.subheader, .panel h6.subheader {
3734
- line-height: 1.4; }
3735
- .panel.callout {
3736
- border-style: solid;
3737
- border-width: 1px;
3738
- border-color: #2284a1;
3739
- margin-bottom: 1.25em;
3740
- padding: 1.25em;
3741
- background: #2ba6cb;
3742
- -webkit-box-shadow: 0 1px 0 rgba(255, 255, 255, 0.5) inset;
3743
- box-shadow: 0 1px 0 rgba(255, 255, 255, 0.5) inset; }
3744
- .panel.callout > :first-child {
3745
- margin-top: 0; }
3746
- .panel.callout > :last-child {
3747
- margin-bottom: 0; }
3748
- .panel.callout h1, .panel.callout h2, .panel.callout h3, .panel.callout h4, .panel.callout h5, .panel.callout h6, .panel.callout p {
3749
- color: white; }
3750
- .panel.callout h1, .panel.callout h2, .panel.callout h3, .panel.callout h4, .panel.callout h5, .panel.callout h6 {
3751
- line-height: 1;
3752
- margin-bottom: 0.625em; }
3753
- .panel.callout h1.subheader, .panel.callout h2.subheader, .panel.callout h3.subheader, .panel.callout h4.subheader, .panel.callout h5.subheader, .panel.callout h6.subheader {
3754
- line-height: 1.4; }
3755
- .panel.radius {
3756
- -webkit-border-radius: 3px;
3757
- border-radius: 3px; }
3758
-
3759
- /* Pricing Tables */
3760
- .pricing-table {
3761
- border: solid 1px #dddddd;
3762
- margin-left: 0;
3763
- margin-bottom: 1.25em; }
3764
- .pricing-table * {
3765
- list-style: none;
3766
- line-height: 1; }
3767
- .pricing-table .title {
3768
- background-color: #dddddd;
3769
- padding: 0.9375em 1.25em;
3770
- text-align: center;
3771
- color: #333333;
3772
- font-weight: bold;
3773
- font-size: 1em; }
3774
- .pricing-table .price {
3775
- background-color: #eeeeee;
3776
- padding: 0.9375em 1.25em;
3777
- text-align: center;
3778
- color: #333333;
3779
- font-weight: normal;
3780
- font-size: 1.25em; }
3781
- .pricing-table .description {
3782
- background-color: white;
3783
- padding: 0.9375em;
3784
- text-align: center;
3785
- color: #777777;
3786
- font-size: 0.75em;
3787
- font-weight: normal;
3788
- line-height: 1.4;
3789
- border-bottom: dotted 1px #dddddd; }
3790
- .pricing-table .bullet-item {
3791
- background-color: white;
3792
- padding: 0.9375em;
3793
- text-align: center;
3794
- color: #333333;
3795
- font-size: 0.875em;
3796
- font-weight: normal;
3797
- border-bottom: dotted 1px #dddddd; }
3798
- .pricing-table .cta-button {
3799
- background-color: whitesmoke;
3800
- text-align: center;
3801
- padding: 1.25em 1.25em 0; }
3802
-
3803
- /* Progress Bar */
3804
- .progress {
3805
- background-color: transparent;
3806
- height: 1.5625em;
3807
- border: 1px solid #cccccc;
3808
- padding: 0.125em;
3809
- margin-bottom: 0.625em; }
3810
- .progress .meter {
3811
- background: #2ba6cb;
3812
- height: 100%;
3813
- display: block; }
3814
- .progress.secondary .meter {
3815
- background: #e9e9e9;
3816
- height: 100%;
3817
- display: block; }
3818
- .progress.success .meter {
3819
- background: #5da423;
3820
- height: 100%;
3821
- display: block; }
3822
- .progress.alert .meter {
3823
- background: #c60f13;
3824
- height: 100%;
3825
- display: block; }
3826
- .progress.radius {
3827
- -webkit-border-radius: 3px;
3828
- border-radius: 3px; }
3829
- .progress.radius .meter {
3830
- -webkit-border-radius: 2px;
3831
- border-radius: 2px; }
3832
- .progress.round {
3833
- -webkit-border-radius: 1000px;
3834
- border-radius: 1000px; }
3835
- .progress.round .meter {
3836
- -webkit-border-radius: 999px;
3837
- border-radius: 999px; }
3838
-
3839
- /* Side Nav */
3840
- .side-nav {
3841
- display: block;
3842
- margin: 0;
3843
- padding: 0.875em 0;
3844
- list-style-type: none;
3845
- list-style-position: inside; }
3846
- .side-nav li {
3847
- margin: 0 0 0.4375em 0;
3848
- font-size: 0.875em; }
3849
- .side-nav li a {
3850
- display: block;
3851
- color: #2ba6cb; }
3852
- .side-nav li.active > a:first-child {
3853
- color: #4d4d4d;
3854
- font-weight: bold; }
3855
- .side-nav li.divider {
3856
- border-top: 1px solid;
3857
- height: 0;
3858
- padding: 0;
3859
- list-style: none;
3860
- border-top-color: #e6e6e6; }
3861
-
3862
- /* Side Nav */
3863
- .sub-nav {
3864
- display: block;
3865
- width: auto;
3866
- overflow: hidden;
3867
- margin: -0.25em 0 1.125em;
3868
- padding-top: 0.25em;
3869
- margin-right: 0;
3870
- margin-left: -0.5625em; }
3871
- .sub-nav dt,
3872
- .sub-nav dd {
3873
- float: left;
3874
- display: inline;
3875
- margin-left: 0.5625em;
3876
- margin-bottom: 0.625em;
3877
- font-weight: normal;
3878
- font-size: 0.875em; }
3879
- .sub-nav dt a,
3880
- .sub-nav dd a {
3881
- color: #999999;
3882
- text-decoration: none; }
3883
- .sub-nav dt.active a,
3884
- .sub-nav dd.active a {
3885
- -webkit-border-radius: 1000px;
3886
- border-radius: 1000px;
3887
- font-weight: bold;
3888
- background: #2ba6cb;
3889
- padding: 0.1875em 0.5625em;
3890
- cursor: default;
3891
- color: white; }
3892
-
3893
- /* Foundation Switches */
3894
- @media only screen {
3895
- div.switch {
3896
- position: relative;
3897
- width: 100%;
3898
- padding: 0;
3899
- display: block;
3900
- overflow: hidden;
3901
- border-style: solid;
3902
- border-width: 1px;
3903
- margin-bottom: 1.25em;
3904
- -webkit-animation: webkitSiblingBugfix infinite 1s;
3905
- height: 36px;
3906
- background: white;
3907
- border-color: #cccccc; }
3908
- div.switch label {
3909
- position: relative;
3910
- left: 0;
3911
- z-index: 2;
3912
- float: left;
3913
- width: 50%;
3914
- height: 100%;
3915
- margin: 0;
3916
- font-weight: bold;
3917
- text-align: left;
3918
- -webkit-transition: all 0.1s ease-out;
3919
- -moz-transition: all 0.1s ease-out;
3920
- transition: all 0.1s ease-out; }
3921
- div.switch input {
3922
- position: absolute;
3923
- z-index: 3;
3924
- opacity: 0;
3925
- width: 100%;
3926
- height: 100%;
3927
- -moz-appearance: none; }
3928
- div.switch input:hover, div.switch input:focus {
3929
- cursor: pointer; }
3930
- div.switch span:last-child {
3931
- position: absolute;
3932
- top: -1px;
3933
- left: -1px;
3934
- z-index: 1;
3935
- display: block;
3936
- padding: 0;
3937
- border-width: 1px;
3938
- border-style: solid;
3939
- -webkit-transition: all 0.1s ease-out;
3940
- -moz-transition: all 0.1s ease-out;
3941
- transition: all 0.1s ease-out; }
3942
- div.switch input:not(:checked) + label {
3943
- opacity: 0; }
3944
- div.switch input:checked {
3945
- display: none !important; }
3946
- div.switch input {
3947
- left: 0;
3948
- display: block !important; }
3949
- div.switch input:first-of-type + label,
3950
- div.switch input:first-of-type + span + label {
3951
- left: -50%; }
3952
- div.switch input:first-of-type:checked + label,
3953
- div.switch input:first-of-type:checked + span + label {
3954
- left: 0%; }
3955
- div.switch input:last-of-type + label,
3956
- div.switch input:last-of-type + span + label {
3957
- right: -50%;
3958
- left: auto;
3959
- text-align: right; }
3960
- div.switch input:last-of-type:checked + label,
3961
- div.switch input:last-of-type:checked + span + label {
3962
- right: 0%;
3963
- left: auto; }
3964
- div.switch span.custom {
3965
- display: none !important; }
3966
- form.custom div.switch .hidden-field {
3967
- margin-left: auto;
3968
- position: absolute;
3969
- visibility: visible; }
3970
- div.switch label {
3971
- padding: 0 0.375em;
3972
- line-height: 2.3em;
3973
- font-size: 0.875em; }
3974
- div.switch input:first-of-type:checked ~ span:last-child {
3975
- left: 100%;
3976
- margin-left: -2.1875em; }
3977
- div.switch span:last-child {
3978
- width: 2.25em;
3979
- height: 2.25em; }
3980
- div.switch span:last-child {
3981
- border-color: #b3b3b3;
3982
- background: white;
3983
- background: -moz-linear-gradient(top, white 0%, #f2f2f2 100%);
3984
- background: -webkit-linear-gradient(top, white 0%, #f2f2f2 100%);
3985
- background: linear-gradient(to bottom, white 0%, #f2f2f2 100%);
3986
- -webkit-box-shadow: 2px 0 10px 0 rgba(0, 0, 0, 0.07), 1000px 0 0 1000px #e1f5d1, -2px 0 10px 0 rgba(0, 0, 0, 0.07), -1000px 0 0 1000px whitesmoke;
3987
- box-shadow: 2px 0 10px 0 rgba(0, 0, 0, 0.07), 1000px 0 0 980px #e1f5d1, -2px 0 10px 0 rgba(0, 0, 0, 0.07), -1000px 0 0 1000px whitesmoke; }
3988
- div.switch:hover span:last-child, div.switch:focus span:last-child {
3989
- background: white;
3990
- background: -moz-linear-gradient(top, white 0%, #e6e6e6 100%);
3991
- background: -webkit-linear-gradient(top, white 0%, #e6e6e6 100%);
3992
- background: linear-gradient(to bottom, white 0%, #e6e6e6 100%); }
3993
- div.switch:active {
3994
- background: transparent; }
3995
- div.switch.large {
3996
- height: 44px; }
3997
- div.switch.large label {
3998
- padding: 0 0.375em;
3999
- line-height: 2.3em;
4000
- font-size: 1.0625em; }
4001
- div.switch.large input:first-of-type:checked ~ span:last-child {
4002
- left: 100%;
4003
- margin-left: -2.6875em; }
4004
- div.switch.large span:last-child {
4005
- width: 2.75em;
4006
- height: 2.75em; }
4007
- div.switch.small {
4008
- height: 28px; }
4009
- div.switch.small label {
4010
- padding: 0 0.375em;
4011
- line-height: 2.1em;
4012
- font-size: 0.75em; }
4013
- div.switch.small input:first-of-type:checked ~ span:last-child {
4014
- left: 100%;
4015
- margin-left: -1.6875em; }
4016
- div.switch.small span:last-child {
4017
- width: 1.75em;
4018
- height: 1.75em; }
4019
- div.switch.tiny {
4020
- height: 22px; }
4021
- div.switch.tiny label {
4022
- padding: 0 0.375em;
4023
- line-height: 1.9em;
4024
- font-size: 0.6875em; }
4025
- div.switch.tiny input:first-of-type:checked ~ span:last-child {
4026
- left: 100%;
4027
- margin-left: -1.3125em; }
4028
- div.switch.tiny span:last-child {
4029
- width: 1.375em;
4030
- height: 1.375em; }
4031
- div.switch.radius {
4032
- -webkit-border-radius: 4px;
4033
- border-radius: 4px; }
4034
- div.switch.radius span:last-child {
4035
- -webkit-border-radius: 3px;
4036
- border-radius: 3px; }
4037
- div.switch.round {
4038
- -webkit-border-radius: 1000px;
4039
- border-radius: 1000px; }
4040
- div.switch.round span:last-child {
4041
- -webkit-border-radius: 999px;
4042
- border-radius: 999px; }
4043
- div.switch.round label {
4044
- padding: 0 0.5625em; }
4045
-
4046
- @-webkit-keyframes webkitSiblingBugfix {
4047
- from {
4048
- position: relative; }
4049
-
4050
- to {
4051
- position: relative; } } }
4052
- [data-magellan-expedition] {
4053
- background: white;
4054
- z-index: 50;
4055
- min-width: 100%;
4056
- padding: 10px; }
4057
- [data-magellan-expedition] .sub-nav {
4058
- margin-bottom: 0; }
4059
- [data-magellan-expedition] .sub-nav dd {
4060
- margin-bottom: 0; }
4061
-
4062
- /* Tables */
4063
- table {
4064
- background: white;
4065
- margin-bottom: 1.25em;
4066
- border: solid 1px #dddddd; }
4067
- table thead,
4068
- table tfoot {
4069
- background: whitesmoke;
4070
- font-weight: bold; }
4071
- table thead tr th,
4072
- table thead tr td,
4073
- table tfoot tr th,
4074
- table tfoot tr td {
4075
- padding: 0.5em 0.625em 0.625em;
4076
- font-size: 0.875em;
4077
- color: #222222;
4078
- text-align: left; }
4079
- table tr th,
4080
- table tr td {
4081
- padding: 0.5625em 0.625em;
4082
- font-size: 0.875em;
4083
- color: #222222; }
4084
- table tr.even, table tr.alt, table tr:nth-of-type(even) {
4085
- background: #f9f9f9; }
4086
- table thead tr th,
4087
- table tfoot tr th,
4088
- table tbody tr td,
4089
- table tr td,
4090
- table tfoot tr td {
4091
- display: table-cell;
4092
- line-height: 1.125em; }
4093
-
4094
- /* Image Thumbnails */
4095
- .th {
4096
- line-height: 0;
4097
- display: inline-block;
4098
- border: solid 4px white;
4099
- -webkit-box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.2);
4100
- box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.2);
4101
- -webkit-transition: all 200ms ease-out;
4102
- -moz-transition: all 200ms ease-out;
4103
- transition: all 200ms ease-out; }
4104
- .th:hover, .th:focus {
4105
- -webkit-box-shadow: 0 0 6px 1px rgba(43, 166, 203, 0.5);
4106
- box-shadow: 0 0 6px 1px rgba(43, 166, 203, 0.5); }
4107
- .th.radius {
4108
- -webkit-border-radius: 3px;
4109
- border-radius: 3px; }
4110
-
4111
- a.th {
4112
- display: inline-block; }
4113
-
4114
- /* Tooltips */
4115
- .has-tip {
4116
- border-bottom: dotted 1px #cccccc;
4117
- cursor: help;
4118
- font-weight: bold;
4119
- color: #333333; }
4120
- .has-tip:hover, .has-tip:focus {
4121
- border-bottom: dotted 1px #196177;
4122
- color: #2ba6cb; }
4123
- .has-tip.tip-left, .has-tip.tip-right {
4124
- float: none !important; }
4125
-
4126
- .tooltip {
4127
- display: none;
4128
- position: absolute;
4129
- z-index: 999;
4130
- font-weight: bold;
4131
- font-size: 0.9375em;
4132
- line-height: 1.3;
4133
- padding: 0.5em;
4134
- max-width: 85%;
4135
- left: 50%;
4136
- width: 100%;
4137
- color: white;
4138
- background: black;
4139
- -webkit-border-radius: 3px;
4140
- border-radius: 3px; }
4141
- .tooltip > .nub {
4142
- display: block;
4143
- left: 5px;
4144
- position: absolute;
4145
- width: 0;
4146
- height: 0;
4147
- border: solid 5px;
4148
- border-color: transparent transparent black transparent;
4149
- top: -10px; }
4150
- .tooltip.opened {
4151
- color: #2ba6cb !important;
4152
- border-bottom: dotted 1px #196177 !important; }
4153
-
4154
- .tap-to-close {
4155
- display: block;
4156
- font-size: 0.625em;
4157
- color: #888888;
4158
- font-weight: normal; }
4159
-
4160
- @media only screen and (min-width: 768px) {
4161
- .tooltip > .nub {
4162
- border-color: transparent transparent black transparent;
4163
- top: -10px; }
4164
- .tooltip.tip-top > .nub {
4165
- border-color: black transparent transparent transparent;
4166
- top: auto;
4167
- bottom: -10px; }
4168
- .tooltip.tip-left, .tooltip.tip-right {
4169
- float: none !important; }
4170
- .tooltip.tip-left > .nub {
4171
- border-color: transparent transparent transparent black;
4172
- right: -10px;
4173
- left: auto;
4174
- top: 50%;
4175
- margin-top: -5px; }
4176
- .tooltip.tip-right > .nub {
4177
- border-color: transparent black transparent transparent;
4178
- right: auto;
4179
- left: -10px;
4180
- top: 50%;
4181
- margin-top: -5px; } }
4182
- @media only screen and (max-width: 767px) {
4183
- .f-dropdown {
4184
- max-width: 100%;
4185
- left: 0; } }
4186
- /* Foundation Dropdowns */
4187
- .f-dropdown {
4188
- position: absolute;
4189
- top: -9999px;
4190
- list-style: none;
4191
- margin-left: 0;
4192
- width: 100%;
4193
- max-height: none;
4194
- height: auto;
4195
- background: white;
4196
- border: solid 1px #cccccc;
4197
- font-size: 16px;
4198
- z-index: 99;
4199
- margin-top: 2px;
4200
- max-width: 200px; }
4201
- .f-dropdown > *:first-child {
4202
- margin-top: 0; }
4203
- .f-dropdown > *:last-child {
4204
- margin-bottom: 0; }
4205
- .f-dropdown:before {
4206
- content: "";
4207
- display: block;
4208
- width: 0;
4209
- height: 0;
4210
- border: inset 6px;
4211
- border-color: transparent transparent white transparent;
4212
- border-bottom-style: solid;
4213
- position: absolute;
4214
- top: -12px;
4215
- left: 10px;
4216
- z-index: 99; }
4217
- .f-dropdown:after {
4218
- content: "";
4219
- display: block;
4220
- width: 0;
4221
- height: 0;
4222
- border: inset 7px;
4223
- border-color: transparent transparent #cccccc transparent;
4224
- border-bottom-style: solid;
4225
- position: absolute;
4226
- top: -14px;
4227
- left: 9px;
4228
- z-index: 98; }
4229
- .f-dropdown.right:before {
4230
- left: auto;
4231
- right: 10px; }
4232
- .f-dropdown.right:after {
4233
- left: auto;
4234
- right: 9px; }
4235
- .f-dropdown li {
4236
- font-size: 0.875em;
4237
- cursor: pointer;
4238
- line-height: 1.125em;
4239
- margin: 0; }
4240
- .f-dropdown li:hover, .f-dropdown li:focus {
4241
- background: #eeeeee; }
4242
- .f-dropdown li a {
4243
- display: block;
4244
- padding: 0.3125em 0.625em;
4245
- color: #555555; }
4246
- .f-dropdown.content {
4247
- position: absolute;
4248
- top: -9999px;
4249
- list-style: none;
4250
- margin-left: 0;
4251
- padding: 1.25em;
4252
- width: 100%;
4253
- height: auto;
4254
- max-height: none;
4255
- background: white;
4256
- border: solid 1px #cccccc;
4257
- font-size: 16px;
4258
- z-index: 99;
4259
- max-width: 200px; }
4260
- .f-dropdown.content > *:first-child {
4261
- margin-top: 0; }
4262
- .f-dropdown.content > *:last-child {
4263
- margin-bottom: 0; }
4264
- .f-dropdown.tiny {
4265
- max-width: 200px; }
4266
- .f-dropdown.small {
4267
- max-width: 300px; }
4268
- .f-dropdown.medium {
4269
- max-width: 500px; }
4270
- .f-dropdown.large {
4271
- max-width: 800px; }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
lib/foundation/foundation.js DELETED
@@ -1,447 +0,0 @@
1
- /*
2
- * Foundation Responsive Library
3
- * http://foundation.zurb.com
4
- * Copyright 2013, ZURB
5
- * Free to use under the MIT license.
6
- * http://www.opensource.org/licenses/mit-license.php
7
- */
8
-
9
- /*jslint unparam: true, browser: true, indent: 2 */
10
-
11
- // Accommodate running jQuery or Zepto in noConflict() mode by
12
- // using an anonymous function to redefine the $ shorthand name.
13
- // See http://docs.jquery.com/Using_jQuery_with_Other_Libraries
14
- // and http://zeptojs.com/
15
- var libFuncName = null;
16
-
17
- if (typeof jQuery === "undefined" &&
18
- typeof Zepto === "undefined" &&
19
- typeof $ === "function") {
20
- libFuncName = $;
21
- } else if (typeof jQuery === "function") {
22
- libFuncName = jQuery;
23
- } else if (typeof Zepto === "function") {
24
- libFuncName = Zepto;
25
- } else {
26
- throw new TypeError();
27
- }
28
-
29
- (function ($, window, document, undefined) {
30
- 'use strict';
31
-
32
- /*
33
- matchMedia() polyfill - Test a CSS media
34
- type/query in JS. Authors & copyright (c) 2012:
35
- Scott Jehl, Paul Irish, Nicholas Zakas.
36
- Dual MIT/BSD license
37
-
38
- https://github.com/paulirish/matchMedia.js
39
- */
40
-
41
- window.matchMedia = window.matchMedia || (function( doc, undefined ) {
42
-
43
- "use strict";
44
-
45
- var bool,
46
- docElem = doc.documentElement,
47
- refNode = docElem.firstElementChild || docElem.firstChild,
48
- // fakeBody required for <FF4 when executed in <head>
49
- fakeBody = doc.createElement( "body" ),
50
- div = doc.createElement( "div" );
51
-
52
- div.id = "mq-test-1";
53
- div.style.cssText = "position:absolute;top:-100em";
54
- fakeBody.style.background = "none";
55
- fakeBody.appendChild(div);
56
-
57
- return function(q){
58
-
59
- div.innerHTML = "&shy;<style media=\"" + q + "\"> #mq-test-1 { width: 42px; }</style>";
60
-
61
- docElem.insertBefore( fakeBody, refNode );
62
- bool = div.offsetWidth === 42;
63
- docElem.removeChild( fakeBody );
64
-
65
- return {
66
- matches: bool,
67
- media: q
68
- };
69
-
70
- };
71
-
72
- }( document ));
73
-
74
- // add dusty browser stuff
75
- if (!Array.prototype.filter) {
76
- Array.prototype.filter = function(fun /*, thisp */) {
77
- "use strict";
78
-
79
- if (this == null) {
80
- throw new TypeError();
81
- }
82
-
83
- var t = Object(this),
84
- len = t.length >>> 0;
85
- if (typeof fun !== "function") {
86
- return;
87
- }
88
-
89
- var res = [],
90
- thisp = arguments[1];
91
- for (var i = 0; i < len; i++) {
92
- if (i in t) {
93
- var val = t[i]; // in case fun mutates this
94
- if (fun && fun.call(thisp, val, i, t)) {
95
- res.push(val);
96
- }
97
- }
98
- }
99
-
100
- return res;
101
- }
102
- }
103
-
104
- if (!Function.prototype.bind) {
105
- Function.prototype.bind = function (oThis) {
106
- if (typeof this !== "function") {
107
- // closest thing possible to the ECMAScript 5 internal IsCallable function
108
- throw new TypeError("Function.prototype.bind - what is trying to be bound is not callable");
109
- }
110
-
111
- var aArgs = Array.prototype.slice.call(arguments, 1),
112
- fToBind = this,
113
- fNOP = function () {},
114
- fBound = function () {
115
- return fToBind.apply(this instanceof fNOP && oThis
116
- ? this
117
- : oThis,
118
- aArgs.concat(Array.prototype.slice.call(arguments)));
119
- };
120
-
121
- fNOP.prototype = this.prototype;
122
- fBound.prototype = new fNOP();
123
-
124
- return fBound;
125
- };
126
- }
127
-
128
- if (!Array.prototype.indexOf) {
129
- Array.prototype.indexOf = function (searchElement /*, fromIndex */ ) {
130
- "use strict";
131
- if (this == null) {
132
- throw new TypeError();
133
- }
134
- var t = Object(this);
135
- var len = t.length >>> 0;
136
- if (len === 0) {
137
- return -1;
138
- }
139
- var n = 0;
140
- if (arguments.length > 1) {
141
- n = Number(arguments[1]);
142
- if (n != n) { // shortcut for verifying if it's NaN
143
- n = 0;
144
- } else if (n != 0 && n != Infinity && n != -Infinity) {
145
- n = (n > 0 || -1) * Math.floor(Math.abs(n));
146
- }
147
- }
148
- if (n >= len) {
149
- return -1;
150
- }
151
- var k = n >= 0 ? n : Math.max(len - Math.abs(n), 0);
152
- for (; k < len; k++) {
153
- if (k in t && t[k] === searchElement) {
154
- return k;
155
- }
156
- }
157
- return -1;
158
- }
159
- }
160
-
161
- // fake stop() for zepto.
162
- $.fn.stop = $.fn.stop || function() {
163
- return this;
164
- };
165
-
166
- window.Foundation = {
167
- name : 'Foundation',
168
-
169
- version : '4.2.3',
170
-
171
- cache : {},
172
-
173
- init : function (scope, libraries, method, options, response, /* internal */ nc) {
174
- var library_arr,
175
- args = [scope, method, options, response],
176
- responses = [],
177
- nc = nc || false;
178
-
179
- // disable library error catching,
180
- // used for development only
181
- if (nc) this.nc = nc;
182
-
183
- // check RTL
184
- this.rtl = /rtl/i.test($('html').attr('dir'));
185
-
186
- // set foundation global scope
187
- this.scope = scope || this.scope;
188
-
189
- if (libraries && typeof libraries === 'string' && !/reflow/i.test(libraries)) {
190
- if (/off/i.test(libraries)) return this.off();
191
-
192
- library_arr = libraries.split(' ');
193
-
194
- if (library_arr.length > 0) {
195
- for (var i = library_arr.length - 1; i >= 0; i--) {
196
- responses.push(this.init_lib(library_arr[i], args));
197
- }
198
- }
199
- } else {
200
- if (/reflow/i.test(libraries)) args[1] = 'reflow';
201
-
202
- for (var lib in this.libs) {
203
- responses.push(this.init_lib(lib, args));
204
- }
205
- }
206
-
207
- // if first argument is callback, add to args
208
- if (typeof libraries === 'function') {
209
- args.unshift(libraries);
210
- }
211
-
212
- return this.response_obj(responses, args);
213
- },
214
-
215
- response_obj : function (response_arr, args) {
216
- for (var i = 0, len = args.length; i < len; i++) {
217
- if (typeof args[i] === 'function') {
218
- return args[i]({
219
- errors: response_arr.filter(function (s) {
220
- if (typeof s === 'string') return s;
221
- })
222
- });
223
- }
224
- }
225
-
226
- return response_arr;
227
- },
228
-
229
- init_lib : function (lib, args) {
230
- return this.trap(function () {
231
- if (this.libs.hasOwnProperty(lib)) {
232
- this.patch(this.libs[lib]);
233
- return this.libs[lib].init.apply(this.libs[lib], args);
234
- }
235
- else {
236
- return function () {};
237
- }
238
- }.bind(this), lib);
239
- },
240
-
241
- trap : function (fun, lib) {
242
- if (!this.nc) {
243
- try {
244
- return fun();
245
- } catch (e) {
246
- return this.error({name: lib, message: 'could not be initialized', more: e.name + ' ' + e.message});
247
- }
248
- }
249
-
250
- return fun();
251
- },
252
-
253
- patch : function (lib) {
254
- this.fix_outer(lib);
255
- lib.scope = this.scope;
256
- lib.rtl = this.rtl;
257
- },
258
-
259
- inherit : function (scope, methods) {
260
- var methods_arr = methods.split(' ');
261
-
262
- for (var i = methods_arr.length - 1; i >= 0; i--) {
263
- if (this.lib_methods.hasOwnProperty(methods_arr[i])) {
264
- this.libs[scope.name][methods_arr[i]] = this.lib_methods[methods_arr[i]];
265
- }
266
- }
267
- },
268
-
269
- random_str : function (length) {
270
- var chars = '0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz'.split('');
271
-
272
- if (!length) {
273
- length = Math.floor(Math.random() * chars.length);
274
- }
275
-
276
- var str = '';
277
- for (var i = 0; i < length; i++) {
278
- str += chars[Math.floor(Math.random() * chars.length)];
279
- }
280
- return str;
281
- },
282
-
283
- libs : {},
284
-
285
- // methods that can be inherited in libraries
286
- lib_methods : {
287
- set_data : function (node, data) {
288
- // this.name references the name of the library calling this method
289
- var id = [this.name,+new Date(),Foundation.random_str(5)].join('-');
290
-
291
- Foundation.cache[id] = data;
292
- node.attr('data-' + this.name + '-id', id);
293
- return data;
294
- },
295
-
296
- get_data : function (node) {
297
- return Foundation.cache[node.attr('data-' + this.name + '-id')];
298
- },
299
-
300
- remove_data : function (node) {
301
- if (node) {
302
- delete Foundation.cache[node.attr('data-' + this.name + '-id')];
303
- node.attr('data-' + this.name + '-id', '');
304
- } else {
305
- $('[data-' + this.name + '-id]').each(function () {
306
- delete Foundation.cache[$(this).attr('data-' + this.name + '-id')];
307
- $(this).attr('data-' + this.name + '-id', '');
308
- });
309
- }
310
- },
311
-
312
- throttle : function(fun, delay) {
313
- var timer = null;
314
- return function () {
315
- var context = this, args = arguments;
316
- clearTimeout(timer);
317
- timer = setTimeout(function () {
318
- fun.apply(context, args);
319
- }, delay);
320
- };
321
- },
322
-
323
- // parses data-options attribute on nodes and turns
324
- // them into an object
325
- data_options : function (el) {
326
- var opts = {}, ii, p,
327
- opts_arr = (el.attr('data-options') || ':').split(';'),
328
- opts_len = opts_arr.length;
329
-
330
- function isNumber (o) {
331
- return ! isNaN (o-0) && o !== null && o !== "" && o !== false && o !== true;
332
- }
333
-
334
- function trim(str) {
335
- if (typeof str === 'string') return $.trim(str);
336
- return str;
337
- }
338
-
339
- // parse options
340
- for (ii = opts_len - 1; ii >= 0; ii--) {
341
- p = opts_arr[ii].split(':');
342
-
343
- if (/true/i.test(p[1])) p[1] = true;
344
- if (/false/i.test(p[1])) p[1] = false;
345
- if (isNumber(p[1])) p[1] = parseInt(p[1], 10);
346
-
347
- if (p.length === 2 && p[0].length > 0) {
348
- opts[trim(p[0])] = trim(p[1]);
349
- }
350
- }
351
-
352
- return opts;
353
- },
354
-
355
- delay : function (fun, delay) {
356
- return setTimeout(fun, delay);
357
- },
358
-
359
- // animated scrolling
360
- scrollTo : function (el, to, duration) {
361
- if (duration < 0) return;
362
- var difference = to - $(window).scrollTop();
363
- var perTick = difference / duration * 10;
364
-
365
- this.scrollToTimerCache = setTimeout(function() {
366
- if (!isNaN(parseInt(perTick, 10))) {
367
- window.scrollTo(0, $(window).scrollTop() + perTick);
368
- this.scrollTo(el, to, duration - 10);
369
- }
370
- }.bind(this), 10);
371
- },
372
-
373
- // not supported in core Zepto
374
- scrollLeft : function (el) {
375
- if (!el.length) return;
376
- return ('scrollLeft' in el[0]) ? el[0].scrollLeft : el[0].pageXOffset;
377
- },
378
-
379
- // test for empty object or array
380
- empty : function (obj) {
381
- if (obj.length && obj.length > 0) return false;
382
- if (obj.length && obj.length === 0) return true;
383
-
384
- for (var key in obj) {
385
- if (hasOwnProperty.call(obj, key)) return false;
386
- }
387
-
388
- return true;
389
- }
390
- },
391
-
392
- fix_outer : function (lib) {
393
- lib.outerHeight = function (el, bool) {
394
- if (typeof Zepto === 'function') {
395
- return el.height();
396
- }
397
-
398
- if (typeof bool !== 'undefined') {
399
- return el.outerHeight(bool);
400
- }
401
-
402
- return el.outerHeight();
403
- };
404
-
405
- lib.outerWidth = function (el) {
406
- if (typeof Zepto === 'function') {
407
- return el.width();
408
- }
409
-
410
- if (typeof bool !== 'undefined') {
411
- return el.outerWidth(bool);
412
- }
413
-
414
- return el.outerWidth();
415
- };
416
- },
417
-
418
- error : function (error) {
419
- return error.name + ' ' + error.message + '; ' + error.more;
420
- },
421
-
422
- // remove all foundation events.
423
- off: function () {
424
- $(this.scope).off('.fndtn');
425
- $(window).off('.fndtn');
426
- return true;
427
- },
428
-
429
- zj : function () {
430
- if (typeof Zepto !== 'undefined') {
431
- return Zepto;
432
- } else {
433
- return jQuery;
434
- }
435
- }()
436
- };
437
-
438
- $.fn.foundation = function () {
439
- var args = Array.prototype.slice.call(arguments, 0);
440
-
441
- return this.each(function () {
442
- Foundation.init.apply(Foundation, [this].concat(args));
443
- return this;
444
- });
445
- };
446
-
447
- }(libFuncName, this, this.document));
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
lib/foundation/foundation.min.js DELETED
@@ -1,15 +0,0 @@
1
- /*
2
- * Foundation Responsive Library
3
- * http://foundation.zurb.com
4
- * Copyright 2013, ZURB
5
- * Free to use under the MIT license.
6
- * http://www.opensource.org/licenses/mit-license.php
7
- */
8
- /*jslint unparam: true, browser: true, indent: 2 */
9
- // Accommodate running jQuery or Zepto in noConflict() mode by
10
- // using an anonymous function to redefine the $ shorthand name.
11
- // See http://docs.jquery.com/Using_jQuery_with_Other_Libraries
12
- // and http://zeptojs.com/
13
- var libFuncName=null;if(typeof jQuery=="undefined"&&typeof Zepto=="undefined"&&typeof $=="function")libFuncName=$;else if(typeof jQuery=="function")libFuncName=jQuery;else{if(typeof Zepto!="function")throw new TypeError;libFuncName=Zepto}(function(e,t,n,r){"use strict";t.matchMedia=t.matchMedia||function(e,t){var n,r=e.documentElement,i=r.firstElementChild||r.firstChild,s=e.createElement("body"),o=e.createElement("div");return o.id="mq-test-1",o.style.cssText="position:absolute;top:-100em",s.style.background="none",s.appendChild(o),function(e){return o.innerHTML='&shy;<style media="'+e+'"> #mq-test-1 { width: 42px; }</style>',r.insertBefore(s,i),n=o.offsetWidth===42,r.removeChild(s),{matches:n,media:e}}}(n),Array.prototype.filter||(Array.prototype.filter=function(e){if(this==null)throw new TypeError;var t=Object(this),n=t.length>>>0;if(typeof e!="function")return;var r=[],i=arguments[1];for(var s=0;s<n;s++)if(s in t){var o=t[s];e&&e.call(i,o,s,t)&&r.push(o)}return r}),Function.prototype.bind||(Function.prototype.bind=function(e){if(typeof this!="function")throw new TypeError("Function.prototype.bind - what is trying to be bound is not callable");var t=Array.prototype.slice.call(arguments,1),n=this,r=function(){},i=function(){return n.apply(this instanceof r&&e?this:e,t.concat(Array.prototype.slice.call(arguments)))};return r.prototype=this.prototype,i.prototype=new r,i}),Array.prototype.indexOf||(Array.prototype.indexOf=function(e){if(this==null)throw new TypeError;var t=Object(this),n=t.length>>>0;if(n===0)return-1;var r=0;arguments.length>1&&(r=Number(arguments[1]),r!=r?r=0:r!=0&&r!=Infinity&&r!=-Infinity&&(r=(r>0||-1)*Math.floor(Math.abs(r))));if(r>=n)return-1;var i=r>=0?r:Math.max(n-Math.abs(r),0);for(;i<n;i++)if(i in t&&t[i]===e)return i;return-1}),e.fn.stop=e.fn.stop||function(){return this},t.Foundation={name:"Foundation",version:"4.2.2",cache:{},init:function(t,n,r,i,s,o){var u,a=[t,r,i,s],f=[],o=o||!1;o&&(this.nc=o),this.rtl=/rtl/i.test(e("html").attr("dir")),this.scope=t||this.scope;if(n&&typeof n=="string"&&!/reflow/i.test(n)){if(/off/i.test(n))return this.off();u=n.split(" ");if(u.length>0)for(var l=u.length-1;l>=0;l--)f.push(this.init_lib(u[l],a))}else{/reflow/i.test(n)&&(a[1]="reflow");for(var c in this.libs)f.push(this.init_lib(c,a))}return typeof n=="function"&&a.unshift(n),this.response_obj(f,a)},response_obj:function(e,t){for(var n=0,r=t.length;n<r;n++)if(typeof t[n]=="function")return t[n]({errors:e.filter(function(e){if(typeof e=="string")return e})});return e},init_lib:function(e,t){return this.trap(function(){return this.libs.hasOwnProperty(e)?(this.patch(this.libs[e]),this.libs[e].init.apply(this.libs[e],t)):function(){}}.bind(this),e)},trap:function(e,t){if(!this.nc)try{return e()}catch(n){return this.error({name:t,message:"could not be initialized",more:n.name+" "+n.message})}return e()},patch:function(e){this.fix_outer(e),e.scope=this.scope,e.rtl=this.rtl},inherit:function(e,t){var n=t.split(" ");for(var r=n.length-1;r>=0;r--)this.lib_methods.hasOwnProperty(n[r])&&(this.libs[e.name][n[r]]=this.lib_methods[n[r]])},random_str:function(e){var t="0123456789ABCDEFGHIJKLMNOPQRSTUVWXTZabcdefghiklmnopqrstuvwxyz".split("");e||(e=Math.floor(Math.random()*t.length));var n="";for(var r=0;r<e;r++)n+=t[Math.floor(Math.random()*t.length)];return n},libs:{},lib_methods:{set_data:function(e,t){var n=[this.name,+(new Date),Foundation.random_str(5)].join("-");return Foundation.cache[n]=t,e.attr("data-"+this.name+"-id",n),t},get_data:function(e){return Foundation.cache[e.attr("data-"+this.name+"-id")]},remove_data:function(t){t?(delete Foundation.cache[t.attr("data-"+this.name+"-id")],t.attr("data-"+this.name+"-id","")):e("[data-"+this.name+"-id]").each(function(){delete Foundation.cache[e(this).attr("data-"+this.name+"-id")],e(this).attr("data-"+this.name+"-id","")})},throttle:function(e,t){var n=null;return function(){var r=this,i=arguments;clearTimeout(n),n=setTimeout(function(){e.apply(r,i)},t)}},data_options:function(t){function u(e){return!isNaN(e-0)&&e!==null&&e!==""&&e!==!1&&e!==!0}function a(t){return typeof t=="string"?e.trim(t):t}var n={},r,i,s=(t.attr("data-options")||":").split(";"),o=s.length;for(r=o-1;r>=0;r--)i=s[r].split(":"),/true/i.test(i[1])&&(i[1]=!0),/false/i.test(i[1])&&(i[1]=!1),u(i[1])&&(i[1]=parseInt(i[1],10)),i.length===2&&i[0].length>0&&(n[a(i[0])]=a(i[1]));return n},delay:function(e,t){return setTimeout(e,t)},scrollTo:function(n,r,i){if(i<0)return;var s=r-e(t).scrollTop(),o=s/i*10;this.scrollToTimerCache=setTimeout(function(){isNaN(parseInt(o,10))||(t.scrollTo(0,e(t).scrollTop()+o),this.scrollTo(n,r,i-10))}.bind(this),10)},scrollLeft:function(e){if(!e.length)return;return"scrollLeft"in e[0]?e[0].scrollLeft:e[0].pageXOffset},empty:function(e){if(e.length&&e.length>0)return!1;if(e.length&&e.length===0)return!0;for(var t in e)if(hasOwnProperty.call(e,t))return!1;return!0}},fix_outer:function(e){e.outerHeight=function(e,t){return typeof Zepto=="function"?e.height():typeof t!="undefined"?e.outerHeight(t):e.outerHeight()},e.outerWidth=function(e){return typeof Zepto=="function"?e.width():typeof bool!="undefined"?e.outerWidth(bool):e.outerWidth()}},error:function(e){return e.name+" "+e.message+"; "+e.more},off:function(){return e(this.scope).off(".fndtn"),e(t).off(".fndtn"),!0},zj:function(){return typeof Zepto!="undefined"?Zepto:jQuery}()},e.fn.foundation=function(){var e=Array.prototype.slice.call(arguments,0);return this.each(function(){return Foundation.init.apply(Foundation,[this].concat(e)),this})}})(libFuncName,this,this.document),function(e,t,n,r){"use strict";Foundation.libs.alerts={name:"alerts",version:"4.2.2",settings:{speed:300,callback:function(){}},init:function(t,n,r){return this.scope=t||this.scope,typeof n=="object"&&e.extend(!0,this.settings,n),typeof n!="string"?(this.settings.init||this.events(),this.settings.init):this[n].call(this,r)},events:function(){var t=this;e(this.scope).on("click.fndtn.alerts","[data-alert] a.close",function(n){n.preventDefault(),e(this).closest("[data-alert]").fadeOut(t.speed,function(){e(this).remove(),t.settings.callback()})}),this.settings.init=!0},off:function(){e(this.scope).off(".fndtn.alerts")},reflow:function(){}}}(Foundation.zj,this,this.document),function(e,t,n,r){"use strict";Foundation.libs.clearing={name:"clearing",version:"4.2.2",settings:{templates:{viewing:'<a href="#" class="clearing-close">&times;</a><div class="visible-img" style="display: none"><img src="//:0"><p class="clearing-caption"></p><a href="#" class="clearing-main-prev"><span></span></a><a href="#" class="clearing-main-next"><span></span></a></div>'},close_selectors:".clearing-close",init:!1,locked:!1},init:function(t,n,r){var i=this;return Foundation.inherit(this,"set_data get_data remove_data throttle data_options"),typeof n=="object"&&(r=e.extend(!0,this.settings,n)),typeof n!="string"?(e(this.scope).find("ul[data-clearing]").each(function(){var t=e(this),n=n||{},r=t.find("li"),s=i.get_data(t);!s&&r.length>0&&(n.$parent=t.parent(),i.set_data(t,e.extend({},i.settings,n,i.data_options(t))),i.assemble(t.find("li")),i.settings.init||i.events().swipe_events())}),this.settings.init):this[n].call(this,r)},events:function(){var n=this;return e(this.scope).on("click.fndtn.clearing","ul[data-clearing] li",function(t,r,i){var r=r||e(this),i=i||r,s=r.next("li"),o=n.get_data(r.parent()),u=e(t.target);t.preventDefault(),o||n.init(),i.hasClass("visible")&&r[0]===i[0]&&s.length>0&&n.is_open(r)&&(i=s,u=i.find("img")),n.open(u,r,i),n.update_paddles(i)}).on("click.fndtn.clearing",".clearing-main-next",function(e){this.nav(e,"next")}.bind(this)).on("click.fndtn.clearing",".clearing-main-prev",function(e){this.nav(e,"prev")}.bind(this)).on("click.fndtn.clearing",this.settings.close_selectors,function(e){Foundation.libs.clearing.close(e,this)}).on("keydown.fndtn.clearing",function(e){this.keydown(e)}.bind(this)),e(t).on("resize.fndtn.clearing",function(){this.resize()}.bind(this)),this.settings.init=!0,this},swipe_events:function(){var t=this;e(this.scope).on("touchstart.fndtn.clearing",".visible-img",function(t){t.touches||(t=t.originalEvent);var n={start_page_x:t.touches[0].pageX,start_page_y:t.touches[0].pageY,start_time:(new Date).getTime(),delta_x:0,is_scrolling:r};e(this).data("swipe-transition",n),t.stopPropagation()}).on("touchmove.fndtn.clearing",".visible-img",function(n){n.touches||(n=n.originalEvent);if(n.touches.length>1||n.scale&&n.scale!==1)return;var r=e(this).data("swipe-transition");typeof r=="undefined"&&(r={}),r.delta_x=n.touches[0].pageX-r.start_page_x,typeof r.is_scrolling=="undefined"&&(r.is_scrolling=!!(r.is_scrolling||Math.abs(r.delta_x)<Math.abs(n.touches[0].pageY-r.start_page_y)));if(!r.is_scrolling&&!r.active){n.preventDefault();var i=r.delta_x<0?"next":"prev";r.active=!0,t.nav(n,i)}}).on("touchend.fndtn.clearing",".visible-img",function(t){e(this).data("swipe-transition",{}),t.stopPropagation()})},assemble:function(t){var n=t.parent();n.after('<div id="foundationClearingHolder"></div>');var r=e("#foundationClearingHolder"),i=this.get_data(n),s=n.detach(),o={grid:'<div class="carousel">'+this.outerHTML(s[0])+"</div>",viewing:i.templates.viewing},u='<div class="clearing-assembled"><div>'+o.viewing+o.grid+"</div></div>";return r.after(u).remove()},open:function(e,t,n){var r=n.closest(".clearing-assembled"),i=r.find("div").first(),s=i.find(".visible-img"),o=s.find("img").not(e);this.locked()||(o.attr("src",this.load(e)).css("visibility","hidden"),this.loaded(o,function(){o.css("visibility","visible"),r.addClass("clearing-blackout"),i.addClass("clearing-container"),s.show(),this.fix_height(n).caption(s.find(".clearing-caption"),e).center(o).shift(t,n,function(){n.siblings().removeClass("visible"),n.addClass("visible")})}.bind(this)))},close:function(t,n){t.preventDefault();var r=function(e){return/blackout/.test(e.selector)?e:e.closest(".clearing-blackout")}(e(n)),i,s;return n===t.target&&r&&(i=r.find("div").first(),s=i.find(".visible-img"),this.settings.prev_index=0,r.find("ul[data-clearing]").attr("style","").closest(".clearing-blackout").removeClass("clearing-blackout"),i.removeClass("clearing-container"),s.hide()),!1},is_open:function(e){return e.parent().attr("style").length>0},keydown:function(t){var n=e(".clearing-blackout").find("ul[data-clearing]");t.which===39&&this.go(n,"next"),t.which===37&&this.go(n,"prev"),t.which===27&&e("a.clearing-close").trigger("click")},nav:function(t,n){var r=e(".clearing-blackout").find("ul[data-clearing]");t.preventDefault(),this.go(r,n)},resize:function(){var t=e(".clearing-blackout .visible-img").find("img");t.length&&this.center(t)},fix_height:function(t){var n=t.parent().children(),r=this;return n.each(function(){var t=e(this),n=t.find("img");t.height()>r.outerHeight(n)&&t.addClass("fix-height")}).closest("ul").width(n.length*100+"%"),this},update_paddles:function(e){var t=e.closest(".carousel").siblings(".visible-img");e.next().length>0?t.find(".clearing-main-next").removeClass("disabled"):t.find(".clearing-main-next").addClass("disabled"),e.prev().length>0?t.find(".clearing-main-prev").removeClass("disabled"):t.find(".clearing-main-prev").addClass("disabled")},center:function(e){return this.rtl?e.css({marginRight:-(this.outerWidth(e)/2),marginTop:-(this.outerHeight(e)/2)}):e.css({marginLeft:-(this.outerWidth(e)/2),marginTop:-(this.outerHeight(e)/2)}),this},load:function(e){if(e[0].nodeName==="A")var t=e.attr("href");else var t=e.parent().attr("href");return this.preload(e),t?t:e.attr("src")},preload:function(e){this.img(e.closest("li").next()).img(e.closest("li").prev())},loaded:function(e,t){function n(){t()}function r(){this.one("load",n);if(/MSIE (\d+\.\d+);/.test(navigator.userAgent)){var e=this.attr("src"),t=e.match(/\?/)?"&":"?";t+="random="+(new Date).getTime(),this.attr("src",e+t)}}if(!e.attr("src")){n();return}e[0].complete||e[0].readyState===4?n():r.call(e)},img:function(e){if(e.length){var t=new Image,n=e.find("a");n.length?t.src=n.attr("href"):t.src=e.find("img").attr("src")}return this},caption:function(e,t){var n=t.data("caption");return n?e.html(n).show():e.text("").hide(),this},go:function(e,t){var n=e.find(".visible"),r=n[t]();r.length&&r.find("img").trigger("click",[n,r])},shift:function(e,t,n){var r=t.parent(),i=this.settings.prev_index||t.index(),s=this.direction(r,e,t),o=parseInt(r.css("left"),10),u=this.outerWidth(t),a;t.index()!==i&&!/skip/.test(s)?/left/.test(s)?(this.lock(),r.animate({left:o+u},300,this.unlock())):/right/.test(s)&&(this.lock(),r.animate({left:o-u},300,this.unlock())):/skip/.test(s)&&(a=t.index()-this.settings.up_count,this.lock(),a>0?r.animate({left:-(a*u)},300,this.unlock()):r.animate({left:0},300,this.unlock())),n()},direction:function(t,n,r){var i=t.find("li"),s=this.outerWidth(i)+this.outerWidth(i)/4,o=Math.floor(this.outerWidth(e(".clearing-container"))/s)-1,u=i.index(r),a;return this.settings.up_count=o,this.adjacent(this.settings.prev_index,u)?u>o&&u>this.settings.prev_index?a="right":u>o-1&&u<=this.settings.prev_index?a="left":a=!1:a="skip",this.settings.prev_index=u,a},adjacent:function(e,t){for(var n=t+1;n>=t-1;n--)if(n===e)return!0;return!1},lock:function(){this.settings.locked=!0},unlock:function(){this.settings.locked=!1},locked:function(){return this.settings.locked},outerHTML:function(e){return e.outerHTML||(new XMLSerializer).serializeToString(e)},off:function(){e(this.scope).off(".fndtn.clearing"),e(t).off(".fndtn.clearing"),this.remove_data(),this.settings.init=!1},reflow:function(){this.init()}}}(Foundation.zj,this,this.document),function(e,t,n){function i(e){return e}function s(e){return decodeURIComponent(e.replace(r," "))}var r=/\+/g,o=e.cookie=function(r,u,a){if(u!==n){a=e.extend({},o.defaults,a),u===null&&(a.expires=-1);if(typeof a.expires=="number"){var f=a.expires,l=a.expires=new Date;l.setDate(l.getDate()+f)}return u=o.json?JSON.stringify(u):String(u),t.cookie=[encodeURIComponent(r),"=",o.raw?u:encodeURIComponent(u),a.expires?"; expires="+a.expires.toUTCString():"",a.path?"; path="+a.path:"",a.domain?"; domain="+a.domain:"",a.secure?"; secure":""].join("")}var c=o.raw?i:s,h=t.cookie.split("; ");for(var p=0,d=h.length;p<d;p++){var v=h[p].split("=");if(c(v.shift())===r){var m=c(v.join("="));return o.json?JSON.parse(m):m}}return null};o.defaults={},e.removeCookie=function(t,n){return e.cookie(t)!==null?(e.cookie(t,null,n),!0):!1}}(Foundation.zj,document),function(e,t,n,r){"use strict";Foundation.libs.dropdown={name:"dropdown",version:"4.2.0",settings:{activeClass:"open",is_hover:!1,opened:function(){},closed:function(){}},init:function(t,n,r){return this.scope=t||this.scope,Foundation.inherit(this,"throttle scrollLeft data_options"),typeof n=="object"&&e.extend(!0,this.settings,n),typeof n!="string"?(this.settings.init||this.events(),this.settings.init):this[n].call(this,r)},events:function(){var n=this;e(this.scope).on("click.fndtn.dropdown","[data-dropdown]",function(t){var r=e.extend({},n.settings,n.data_options(e(this)));t.preventDefault(),r.is_hover||n.toggle(e(this))}).on("mouseenter","[data-dropdown]",function(t){var r=e.extend({},n.settings,n.data_options(e(this)));r.is_hover&&n.toggle(e(this))}).on("mouseleave","[data-dropdown-content]",function(t){var r=e('[data-dropdown="'+e(this).attr("id")+'"]'),i=e.extend({},n.settings,n.data_options(r));i.is_hover&&n.close.call(n,e(this))}).on("opened.fndtn.dropdown","[data-dropdown-content]",this.settings.opened).on("closed.fndtn.dropdown","[data-dropdown-content]",this.settings.closed),e("body").on("click.fndtn.dropdown",function(t){var r=e(t.target).closest("[data-dropdown-content]");if(e(t.target).data("dropdown"))return;if(r.length>0&&(e(t.target).is("[data-dropdown-content]")||e.contains(r.first()[0],t.target))){t.stopPropagation();return}n.close.call(n,e("[data-dropdown-content]"))}),e(t).on("resize.fndtn.dropdown",n.throttle(function(){n.resize.call(n)},50)).trigger("resize"),this.settings.init=!0},close:function(t){var n=this;t.each(function(){e(this).hasClass(n.settings.activeClass)&&(e(this).css(Foundation.rtl?"right":"left","-99999px").removeClass(n.settings.activeClass),e(this).trigger("closed"))})},open:function(e,t){this.css(e.addClass(this.settings.activeClass),t),e.trigger("opened")},toggle:function(t){var n=e("#"+t.data("dropdown"));this.close.call(this,e("[data-dropdown-content]").not(n)),n.hasClass(this.settings.activeClass)?this.close.call(this,n):(this.close.call(this,e("[data-dropdown-content]")),this.open.call(this,n,t))},resize:function(){var t=e("[data-dropdown-content].open"),n=e("[data-dropdown='"+t.attr("id")+"']");t.length&&n.length&&this.css(t,n)},css:function(n,r){var i=n.offsetParent();if(i.length>0&&/body/i.test(n.offsetParent()[0].nodeName)){var s=r.offset();s.top-=n.offsetParent().offset().top,s.left-=n.offsetParent().offset().left}else var s=r.position();if(this.small())n.css({position:"absolute",width:"95%",left:"2.5%","max-width":"none",top:s.top+this.outerHeight(r)});else{if(!Foundation.rtl&&e(t).width()>this.outerWidth(n)+r.offset().left){var o=s.left;n.hasClass("right")&&n.removeClass("right")}else{n.hasClass("right")||n.addClass("right");var o=s.left-(this.outerWidth(n)-this.outerWidth(r))}n.attr("style","").css({position:"absolute",top:s.top+this.outerHeight(r),left:o})}return n},small:function(){return e(t).width()<768||e("html").hasClass("lt-ie9")},off:function(){e(this.scope).off(".fndtn.dropdown"),e("html, body").off(".fndtn.dropdown"),e(t).off(".fndtn.dropdown"),e("[data-dropdown-content]").off(".fndtn.dropdown"),this.settings.init=!1},reflow:function(){}}}(Foundation.zj,this,this.document),function(e,t,n,r){"use strict";Foundation.libs.forms={name:"forms",version:"4.2.2",cache:{},settings:{disable_class:"no-custom",last_combo:null},init:function(t,n,r){return typeof n=="object"&&e.extend(!0,this.settings,n),typeof n!="string"?(this.settings.init||this.events(),this.assemble(),this.settings.init):this[n].call(this,r)},assemble:function(){e('form.custom input[type="radio"]',e(this.scope)).not('[data-customforms="disabled"]').not("."+this.settings.disable_class).each(this.append_custom_markup),e('form.custom input[type="checkbox"]',e(this.scope)).not('[data-customforms="disabled"]').not("."+this.settings.disable_class).each(this.append_custom_markup),e("form.custom select",e(this.scope)).not('[data-customforms="disabled"]').not("."+this.settings.disable_class).not("[multiple=multiple]").each(this.append_custom_select)},events:function(){var r=this;e(this.scope).on("click.fndtn.forms","form.custom span.custom.checkbox",function(t){t.preventDefault(),t.stopPropagation(),r.toggle_checkbox(e(this))}).on("click.fndtn.forms","form.custom span.custom.radio",function(t){t.preventDefault(),t.stopPropagation(),r.toggle_radio(e(this))}).on("change.fndtn.forms","form.custom select",function(t,n){if(!e(this).not('[data-customforms="disabled"])'))return;r.refresh_custom_select(e(this),n)}).on("click.fndtn.forms","form.custom label",function(t){if(e(t.target).is("label")){var n=e("#"+r.escape(e(this).attr("for"))).not('[data-customforms="disabled"]'),i,s;n.length!==0&&(n.attr("type")==="checkbox"?(t.preventDefault(),i=e(this).find("span.custom.checkbox"),i.length===0&&(i=n.add(this).siblings("span.custom.checkbox").first()),r.toggle_checkbox(i)):n.attr("type")==="radio"&&(t.preventDefault(),s=e(this).find("span.custom.radio"),s.length===0&&(s=n.add(this).siblings("span.custom.radio").first()),r.toggle_radio(s)))}}).on("mousedown.fndtn.forms","form.custom div.custom.dropdown",function(){return!1}).on("click.fndtn.forms","form.custom div.custom.dropdown a.current, form.custom div.custom.dropdown a.selector",function(t){var n=e(this),s=n.closest("div.custom.dropdown"),o=i(s,"select");s.hasClass("open")||e(r.scope).trigger("click"),t.preventDefault();if(!1===o.is(":disabled"))return s.toggleClass("open"),s.hasClass("open")?e(r.scope).on("click.fndtn.forms.customdropdown",function(){s.removeClass("open"),e(r.scope).off(".fndtn.forms.customdropdown")}):e(r.scope).on(".fndtn.forms.customdropdown"),!1}).on("click.fndtn.forms touchend.fndtn.forms","form.custom div.custom.dropdown li",function(t){var n=e(this),r=n.closest("div.custom.dropdown"),s=i(r,"select"),o=0;t.preventDefault(),t.stopPropagation();if(!e(this).hasClass("disabled")){e("div.dropdown").not(r).removeClass("open");var u=n.closest("ul").find("li.selected");u.removeClass("selected"),n.addClass("selected"),r.removeClass("open").find("a.current").text(n.text()),n.closest("ul").find("li").each(function(e){n[0]===this&&(o=e)}),s[0].selectedIndex=o,s.data("prevalue",u.html()),s.trigger("change")}}),e(t).on("keydown",function(t){var r=n.activeElement,i=Foundation.libs.forms,s=e(".custom.dropdown.open");if(s.length>0){t.preventDefault(),t.which===13&&s.find("li.selected").trigger("click"),t.which===27&&s.removeClass("open");if(t.which>=65&&t.which<=90){var o=i.go_to(s,t.which),u=s.find("li.selected");o&&(u.removeClass("selected"),i.scrollTo(o.addClass("selected"),300))}if(t.which===38){var u=s.find("li.selected"),a=u.prev(":not(.disabled)");a.length>0&&(a.parent()[0].scrollTop=a.parent().scrollTop()-i.outerHeight(a),u.removeClass("selected"),a.addClass("selected"))}else if(t.which===40){var u=s.find("li.selected"),o=u.next(":not(.disabled)");o.length>0&&(o.parent()[0].scrollTop=o.parent().scrollTop()+i.outerHeight(o),u.removeClass("selected"),o.addClass("selected"))}}}),this.settings.init=!0},go_to:function(e,t){var n=e.find("li"),r=n.length;if(r>0)for(var i=0;i<r;i++){var s=n.eq(i).text().charAt(0).toLowerCase();if(s===String.fromCharCode(t).toLowerCase())return n.eq(i)}},scrollTo:function(e,t){if(t<0)return;var n=e.parent(),r=this.outerHeight(e),i=r*e.index()-n.scrollTop(),s=i/t*10;this.scrollToTimerCache=setTimeout(function(){isNaN(parseInt(s,10))||(n[0].scrollTop=n.scrollTop()+s,this.scrollTo(e,t-10))}.bind(this),10)},append_custom_markup:function(t,n){var r=e(n),i=r.attr("type"),s=r.next("span.custom."+i);r.parent().hasClass("switch")||r.addClass("hidden-field"),s.length===0&&(s=e('<span class="custom '+i+'"></span>').insertAfter(r)),s.toggleClass("checked",r.is(":checked")),s.toggleClass("disabled",r.is(":disabled"))},append_custom_select:function(t,n){var r=Foundation.libs.forms,i=e(n),s=i.next("div.custom.dropdown"),o=s.find("ul"),u=s.find(".current"),a=s.find(".selector"),f=i.find("option"),l=f.filter(":selected"),c=i.attr("class")?i.attr("class").split(" "):[],h=0,p="",d,v=!1;if(s.length===0){var m=i.hasClass("small")?"small":i.hasClass("medium")?"medium":i.hasClass("large")?"large":i.hasClass("expand")?"expand":"";s=e('<div class="'+["custom","dropdown",m].concat(c).filter(function(e,t,n){return e===""?!1:n.indexOf(e)===t}).join(" ")+'"><a href="#" class="selector"></a><ul /></div>'),a=s.find(".selector"),o=s.find("ul"),p=f.map(function(){var t=e(this).attr("class")?e(this).attr("class"):"";return"<li class='"+t+"'>"+e(this).html()+"</li>"}).get().join(""),o.append(p),v=s.prepend('<a href="#" class="current">'+l.html()+"</a>").find(".current"),i.after(s).addClass("hidden-field")}else p=f.map(function(){return"<li>"+e(this).html()+"</li>"}).get().join(""),o.html("").append(p);r.assign_id(i,s),s.toggleClass("disabled",i.is(":disabled")),d=o.find("li"),r.cache[s.data("id")]=d.length,f.each(function(t){this.selected&&(d.eq(t).addClass("selected"),v&&v.html(e(this).html())),e(this).is(":disabled")&&d.eq(t).addClass("disabled")});if(!s.is(".small, .medium, .large, .expand")){s.addClass("open");var r=Foundation.libs.forms;r.hidden_fix.adjust(o),h=r.outerWidth(d)>h?r.outerWidth(d):h,Foundation.libs.forms.hidden_fix.reset(),s.removeClass("open")}},assign_id:function(e,t){var n=[+(new Date),Foundation.random_str(5)].join("-");e.attr("data-id",n),t.attr("data-id",n)},refresh_custom_select:function(t,n){var r=this,i=0,s=t.next(),o=t.find("option"),u=s.find("li");if(u.length!==this.cache[s.data("id")]||n)s.find("ul").html(""),o.each(function(){var t=e("<li>"+e(this).html()+"</li>");s.find("ul").append(t)}),o.each(function(t){this.selected&&(s.find("li").eq(t).addClass("selected"),s.find(".current").html(e(this).html())),e(this).is(":disabled")&&s.find("li").eq(t).addClass("disabled")}),s.removeAttr("style").find("ul").removeAttr("style"),s.find("li").each(function(){s.addClass("open"),r.outerWidth(e(this))>i&&(i=r.outerWidth(e(this))),s.removeClass("open")}),u=s.find("li"),this.cache[s.data("id")]=u.length},toggle_checkbox:function(e){var t=e.prev(),n=t[0];!1===t.is(":disabled")&&(n.checked=n.checked?!1:!0,e.toggleClass("checked"),t.trigger("change"))},toggle_radio:function(e){var t=e.prev(),n=t.closest("form.custom"),r=t[0];!1===t.is(":disabled")&&(n.find('input[type="radio"][name="'+this.escape(t.attr("name"))+'"]').next().not(e).removeClass("checked"),e.hasClass("checked")||e.toggleClass("checked"),r.checked=e.hasClass("checked"),t.trigger("change"))},escape:function(e){return e?e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"):""},hidden_fix:{tmp:[],hidden:null,adjust:function(t){var n=this;n.hidden=t.parents(),n.hidden=n.hidden.add(t).filter(":hidden"),n.hidden.each(function(){var t=e(this);n.tmp.push(t.attr("style")),t.css({visibility:"hidden",display:"block"})})},reset:function(){var t=this;t.hidden.each(function(n){var i=e(this),s=t.tmp[n];s===r?i.removeAttr("style"):i.attr("style",s)}),t.tmp=[],t.hidden=null}},off:function(){e(this.scope).off(".fndtn.forms")},reflow:function(){}};var i=function(t,n){var t=t.prev();while(t.length){if(t.is(n))return t;t=t.prev()}return e()}}(Foundation.zj,this,this.document),function(e,t,n,r){"use strict";Foundation.libs.joyride={name:"joyride",version:"4.2.2",defaults:{expose:!1,modal:!1,tipLocation:"bottom",nubPosition:"auto",scrollSpeed:300,timer:0,startTimerOnClick:!0,startOffset:0,nextButton:!0,tipAnimation:"fade",pauseAfter:[],exposed:[],tipAnimationFadeSpeed:300,cookieMonster:!1,cookieName:"joyride",cookieDomain:!1,cookieExpires:365,tipContainer:"body",postRideCallback:function(){},postStepCallback:function(){},preStepCallback:function(){},preRideCallback:function(){},postExposeCallback:function(){},template:{link:'<a href="#close" class="joyride-close-tip">&times;</a>',timer:'<div class="joyride-timer-indicator-wrap"><span class="joyride-timer-indicator"></span></div>',tip:'<div class="joyride-tip-guide"><span class="joyride-nub"></span></div>',wrapper:'<div class="joyride-content-wrapper"></div>',button:'<a href="#" class="small button joyride-next-tip"></a>',modal:'<div class="joyride-modal-bg"></div>',expose:'<div class="joyride-expose-wrapper"></div>',exposeCover:'<div class="joyride-expose-cover"></div>'},exposeAddClass:""},settings:{},init:function(t,n,r){return this.scope=t||this.scope,Foundation.inherit(this,"throttle data_options scrollTo scrollLeft delay"),typeof n=="object"?e.extend(!0,this.settings,this.defaults,n):e.extend(!0,this.settings,this.defaults,r),typeof n!="string"?(this.settings.init||this.events(),this.settings.init):this[n].call(this,r)},events:function(){var n=this;e(this.scope).on("click.joyride",".joyride-next-tip, .joyride-modal-bg",function(e){e.preventDefault(),this.settings.$li.next().length<1?this.end():this.settings.timer>0?(clearTimeout(this.settings.automate),this.hide(),this.show(),this.startTimer()):(this.hide(),this.show())}.bind(this)).on("click.joyride",".joyride-close-tip",function(e){e.preventDefault(),this.end()}.bind(this)),e(t).on("resize.fndtn.joyride",n.throttle(function(){if(e("[data-joyride]").length>0&&n.settings.$next_tip){if(n.settings.exposed.length>0){var t=e(n.settings.exposed);t.each(function(){var t=e(this);n.un_expose(t),n.expose(t)})}n.is_phone()?n.pos_phone():n.pos_default(!1,!0)}},100)),this.settings.init=!0},start:function(){var t=this,n=e(this.scope).find("[data-joyride]"),r=["timer","scrollSpeed","startOffset","tipAnimationFadeSpeed","cookieExpires"],i=r.length;this.settings.init||this.init(),this.settings.$content_el=n,this.settings.$body=e(this.settings.tipContainer),this.settings.body_offset=e(this.settings.tipContainer).position(),this.settings.$tip_content=this.settings.$content_el.find("> li"),this.settings.paused=!1,this.settings.attempts=0,this.settings.tipLocationPatterns={top:["bottom"],bottom:[],left:["right","top","bottom"],right:["left","top","bottom"]},typeof e.cookie!="function"&&(this.settings.cookieMonster=!1);if(!this.settings.cookieMonster||this.settings.cookieMonster&&e.cookie(this.settings.cookieName)===null)this.settings.$tip_content.each(function(n){var s=e(this);e.extend(!0,t.settings,t.data_options(s));for(var o=i-1;o>=0;o--)t.settings[r[o]]=parseInt(t.settings[r[o]],10);t.create({$li:s,index:n})}),!this.settings.startTimerOnClick&&this.settings.timer>0?(this.show("init"),this.startTimer()):this.show("init")},resume:function(){this.set_li(),this.show()},tip_template:function(t){var n,r;return t.tip_class=t.tip_class||"",n=e(this.settings.template.tip).addClass(t.tip_class),r=e.trim(e(t.li).html())+this.button_text(t.button_text)+this.settings.template.link+this.timer_instance(t.index),n.append(e(this.settings.template.wrapper)),n.first().attr("data-index",t.index),e(".joyride-content-wrapper",n).append(r),n[0]},timer_instance:function(t){var n;return t===0&&this.settings.startTimerOnClick&&this.settings.timer>0||this.settings.timer===0?n="":n=this.outerHTML(e(this.settings.template.timer)[0]),n},button_text:function(t){return this.settings.nextButton?(t=e.trim(t)||"Next",t=this.outerHTML(e(this.settings.template.button).append(t)[0])):t="",t},create:function(t){var n=t.$li.attr("data-button")||t.$li.attr("data-text"),r=t.$li.attr("class"),i=e(this.tip_template({tip_class:r,index:t.index,button_text:n,li:t.$li}));e(this.settings.tipContainer).append(i)},show:function(t){var n=null;this.settings.$li===r||e.inArray(this.settings.$li.index(),this.settings.pauseAfter)===-1?(this.settings.paused?this.settings.paused=!1:this.set_li(t),this.settings.attempts=0,this.settings.$li.length&&this.settings.$target.length>0?(t&&(this.settings.preRideCallback(this.settings.$li.index(),this.settings.$next_tip),this.settings.modal&&this.show_modal()),this.settings.preStepCallback(this.settings.$li.index(),this.settings.$next_tip),this.settings.modal&&this.settings.expose&&this.expose(),this.settings.tipSettings=e.extend(this.settings,this.data_options(this.settings.$li)),this.settings.timer=parseInt(this.settings.timer,10),this.settings.tipSettings.tipLocationPattern=this.settings.tipLocationPatterns[this.settings.tipSettings.tipLocation],/body/i.test(this.settings.$target.selector)||this.scroll_to(),this.is_phone()?this.pos_phone(!0):this.pos_default(!0),n=this.settings.$next_tip.find(".joyride-timer-indicator"),/pop/i.test(this.settings.tipAnimation)?(n.width(0),this.settings.timer>0?(this.settings.$next_tip.show(),this.delay(function(){n.animate({width:n.parent().width()},this.settings.timer,"linear")}.bind(this),this.settings.tipAnimationFadeSpeed)):this.settings.$next_tip.show()):/fade/i.test(this.settings.tipAnimation)&&(n.width(0),this.settings.timer>0?(this.settings.$next_tip.fadeIn(this.settings.tipAnimationFadeSpeed).show(),this.delay(function(){n.animate({width:n.parent().width()},this.settings.timer,"linear")}.bind(this),this.settings.tipAnimationFadeSpeed)):this.settings.$next_tip.fadeIn(this.settings.tipAnimationFadeSpeed)),this.settings.$current_tip=this.settings.$next_tip):this.settings.$li&&this.settings.$target.length<1?this.show():this.end()):this.settings.paused=!0},is_phone:function(){return Modernizr?Modernizr.mq("only screen and (max-width: 767px)")||e(".lt-ie9").length>0:this.settings.$window.width()<767},hide:function(){this.settings.modal&&this.settings.expose&&this.un_expose(),this.settings.modal||e(".joyride-modal-bg").hide(),this.settings.$current_tip.hide(),this.settings.postStepCallback(this.settings.$li.index(),this.settings.$current_tip)},set_li:function(e){e?(this.settings.$li=this.settings.$tip_content.eq(this.settings.startOffset),this.set_next_tip(),this.settings.$current_tip=this.settings.$next_tip):(this.settings.$li=this.settings.$li.next(),this.set_next_tip()),this.set_target()},set_next_tip:function(){this.settings.$next_tip=e(".joyride-tip-guide[data-index='"+this.settings.$li.index()+"']"),this.settings.$next_tip.data("closed","")},set_target:function(){var t=this.settings.$li.attr("data-class"),r=this.settings.$li.attr("data-id"),i=function(
14
- ){return r?e(n.getElementById(r)):t?e("."+t).first():e("body")};this.settings.$target=i()},scroll_to:function(){var n,r;n=e(t).height()/2,r=Math.ceil(this.settings.$target.offset().top-n+this.outerHeight(this.settings.$next_tip)),r>0&&this.scrollTo(e("html, body"),r,this.settings.scrollSpeed)},paused:function(){return e.inArray(this.settings.$li.index()+1,this.settings.pauseAfter)===-1},restart:function(){this.hide(),this.settings.$li=r,this.show("init")},pos_default:function(n,r){var i=Math.ceil(e(t).height()/2),s=this.settings.$next_tip.offset(),o=this.settings.$next_tip.find(".joyride-nub"),u=Math.ceil(this.outerWidth(o)/2),a=Math.ceil(this.outerHeight(o)/2),f=n||!1;f&&(this.settings.$next_tip.css("visibility","hidden"),this.settings.$next_tip.show()),typeof r=="undefined"&&(r=!1);if(!/body/i.test(this.settings.$target.selector)){if(this.bottom()){var l=this.settings.$target.offset().left;Foundation.rtl&&(l=this.settings.$target.offset().width-this.settings.$next_tip.width()+l),this.settings.$next_tip.css({top:this.settings.$target.offset().top+a+this.outerHeight(this.settings.$target),left:l}),this.nub_position(o,this.settings.tipSettings.nubPosition,"top")}else if(this.top()){var l=this.settings.$target.offset().left;Foundation.rtl&&(l=this.settings.$target.offset().width-this.settings.$next_tip.width()+l),this.settings.$next_tip.css({top:this.settings.$target.offset().top-this.outerHeight(this.settings.$next_tip)-a,left:l}),this.nub_position(o,this.settings.tipSettings.nubPosition,"bottom")}else this.right()?(this.settings.$next_tip.css({top:this.settings.$target.offset().top,left:this.outerWidth(this.settings.$target)+this.settings.$target.offset().left+u}),this.nub_position(o,this.settings.tipSettings.nubPosition,"left")):this.left()&&(this.settings.$next_tip.css({top:this.settings.$target.offset().top,left:this.settings.$target.offset().left-this.outerWidth(this.settings.$next_tip)-u}),this.nub_position(o,this.settings.tipSettings.nubPosition,"right"));!this.visible(this.corners(this.settings.$next_tip))&&this.settings.attempts<this.settings.tipSettings.tipLocationPattern.length&&(o.removeClass("bottom").removeClass("top").removeClass("right").removeClass("left"),this.settings.tipSettings.tipLocation=this.settings.tipSettings.tipLocationPattern[this.settings.attempts],this.settings.attempts++,this.pos_default())}else this.settings.$li.length&&this.pos_modal(o);f&&(this.settings.$next_tip.hide(),this.settings.$next_tip.css("visibility","visible"))},pos_phone:function(t){var n=this.outerHeight(this.settings.$next_tip),r=this.settings.$next_tip.offset(),i=this.outerHeight(this.settings.$target),s=e(".joyride-nub",this.settings.$next_tip),o=Math.ceil(this.outerHeight(s)/2),u=t||!1;s.removeClass("bottom").removeClass("top").removeClass("right").removeClass("left"),u&&(this.settings.$next_tip.css("visibility","hidden"),this.settings.$next_tip.show()),/body/i.test(this.settings.$target.selector)?this.settings.$li.length&&this.pos_modal(s):this.top()?(this.settings.$next_tip.offset({top:this.settings.$target.offset().top-n-o}),s.addClass("bottom")):(this.settings.$next_tip.offset({top:this.settings.$target.offset().top+i+o}),s.addClass("top")),u&&(this.settings.$next_tip.hide(),this.settings.$next_tip.css("visibility","visible"))},pos_modal:function(e){this.center(),e.hide(),this.show_modal()},show_modal:function(){if(!this.settings.$next_tip.data("closed")){var t=e(".joyride-modal-bg");t.length<1&&e("body").append(this.settings.template.modal).show(),/pop/i.test(this.settings.tipAnimation)?t.show():t.fadeIn(this.settings.tipAnimationFadeSpeed)}},expose:function(){var n,r,i,s,o,u="expose-"+Math.floor(Math.random()*1e4);if(arguments.length>0&&arguments[0]instanceof e)i=arguments[0];else{if(!this.settings.$target||!!/body/i.test(this.settings.$target.selector))return!1;i=this.settings.$target}if(i.length<1)return t.console&&console.error("element not valid",i),!1;n=e(this.settings.template.expose),this.settings.$body.append(n),n.css({top:i.offset().top,left:i.offset().left,width:this.outerWidth(i,!0),height:this.outerHeight(i,!0)}),r=e(this.settings.template.exposeCover),s={zIndex:i.css("z-index"),position:i.css("position")},o=i.attr("class")==null?"":i.attr("class"),i.css("z-index",parseInt(n.css("z-index"))+1),s.position=="static"&&i.css("position","relative"),i.data("expose-css",s),i.data("orig-class",o),i.attr("class",o+" "+this.settings.exposeAddClass),r.css({top:i.offset().top,left:i.offset().left,width:this.outerWidth(i,!0),height:this.outerHeight(i,!0)}),this.settings.$body.append(r),n.addClass(u),r.addClass(u),i.data("expose",u),this.settings.postExposeCallback(this.settings.$li.index(),this.settings.$next_tip,i),this.add_exposed(i)},un_expose:function(){var n,r,i,s,o,u=!1;if(arguments.length>0&&arguments[0]instanceof e)r=arguments[0];else{if(!this.settings.$target||!!/body/i.test(this.settings.$target.selector))return!1;r=this.settings.$target}if(r.length<1)return t.console&&console.error("element not valid",r),!1;n=r.data("expose"),i=e("."+n),arguments.length>1&&(u=arguments[1]),u===!0?e(".joyride-expose-wrapper,.joyride-expose-cover").remove():i.remove(),s=r.data("expose-css"),s.zIndex=="auto"?r.css("z-index",""):r.css("z-index",s.zIndex),s.position!=r.css("position")&&(s.position=="static"?r.css("position",""):r.css("position",s.position)),o=r.data("orig-class"),r.attr("class",o),r.removeData("orig-classes"),r.removeData("expose"),r.removeData("expose-z-index"),this.remove_exposed(r)},add_exposed:function(t){this.settings.exposed=this.settings.exposed||[],t instanceof e||typeof t=="object"?this.settings.exposed.push(t[0]):typeof t=="string"&&this.settings.exposed.push(t)},remove_exposed:function(t){var n,r;t instanceof e?n=t[0]:typeof t=="string"&&(n=t),this.settings.exposed=this.settings.exposed||[],r=this.settings.exposed.length;for(var i=0;i<r;i++)if(this.settings.exposed[i]==n){this.settings.exposed.splice(i,1);return}},center:function(){var n=e(t);return this.settings.$next_tip.css({top:(n.height()-this.outerHeight(this.settings.$next_tip))/2+n.scrollTop(),left:(n.width()-this.outerWidth(this.settings.$next_tip))/2+this.scrollLeft(n)}),!0},bottom:function(){return/bottom/i.test(this.settings.tipSettings.tipLocation)},top:function(){return/top/i.test(this.settings.tipSettings.tipLocation)},right:function(){return/right/i.test(this.settings.tipSettings.tipLocation)},left:function(){return/left/i.test(this.settings.tipSettings.tipLocation)},corners:function(n){var r=e(t),i=r.height()/2,s=Math.ceil(this.settings.$target.offset().top-i+this.settings.$next_tip.outerHeight()),o=r.width()+this.scrollLeft(r),u=r.height()+s,a=r.height()+r.scrollTop(),f=r.scrollTop();return s<f&&(s<0?f=0:f=s),u>a&&(a=u),[n.offset().top<f,o<n.offset().left+n.outerWidth(),a<n.offset().top+n.outerHeight(),this.scrollLeft(r)>n.offset().left]},visible:function(e){var t=e.length;while(t--)if(e[t])return!1;return!0},nub_position:function(e,t,n){t==="auto"?e.addClass(n):e.addClass(t)},startTimer:function(){this.settings.$li.length?this.settings.automate=setTimeout(function(){this.hide(),this.show(),this.startTimer()}.bind(this),this.settings.timer):clearTimeout(this.settings.automate)},end:function(){this.settings.cookieMonster&&e.cookie(this.settings.cookieName,"ridden",{expires:this.settings.cookieExpires,domain:this.settings.cookieDomain}),this.settings.timer>0&&clearTimeout(this.settings.automate),this.settings.modal&&this.settings.expose&&this.un_expose(),this.settings.$next_tip.data("closed",!0),e(".joyride-modal-bg").hide(),this.settings.$current_tip.hide(),this.settings.postStepCallback(this.settings.$li.index(),this.settings.$current_tip),this.settings.postRideCallback(this.settings.$li.index(),this.settings.$current_tip),e(".joyride-tip-guide").remove()},outerHTML:function(e){return e.outerHTML||(new XMLSerializer).serializeToString(e)},off:function(){e(this.scope).off(".joyride"),e(t).off(".joyride"),e(".joyride-close-tip, .joyride-next-tip, .joyride-modal-bg").off(".joyride"),e(".joyride-tip-guide, .joyride-modal-bg").remove(),clearTimeout(this.settings.automate),this.settings={}},reflow:function(){}}}(Foundation.zj,this,this.document),function(e,t,n,r){"use strict";Foundation.libs.magellan={name:"magellan",version:"4.2.2",settings:{activeClass:"active"},init:function(t,n,r){return this.scope=t||this.scope,Foundation.inherit(this,"data_options"),typeof n=="object"&&e.extend(!0,this.settings,n),typeof n!="string"?(this.settings.init||(this.fixed_magellan=e("[data-magellan-expedition]"),this.set_threshold(),this.last_destination=e("[data-magellan-destination]").last(),this.events()),this.settings.init):this[n].call(this,r)},events:function(){var n=this;e(this.scope).on("arrival.fndtn.magellan","[data-magellan-arrival]",function(t){var r=e(this),i=r.closest("[data-magellan-expedition]"),s=i.attr("data-magellan-active-class")||n.settings.activeClass;r.closest("[data-magellan-expedition]").find("[data-magellan-arrival]").not(r).removeClass(s),r.addClass(s)}),this.fixed_magellan.on("update-position.fndtn.magellan",function(){var t=e(this)}).trigger("update-position"),e(t).on("resize.fndtn.magellan",function(){this.fixed_magellan.trigger("update-position")}.bind(this)).on("scroll.fndtn.magellan",function(){var r=e(t).scrollTop();n.fixed_magellan.each(function(){var t=e(this);typeof t.data("magellan-top-offset")=="undefined"&&t.data("magellan-top-offset",t.offset().top),typeof t.data("magellan-fixed-position")=="undefined"&&t.data("magellan-fixed-position",!1);var i=r+n.settings.threshold>t.data("magellan-top-offset"),s=t.attr("data-magellan-top-offset");t.data("magellan-fixed-position")!=i&&(t.data("magellan-fixed-position",i),i?(t.addClass("fixed"),t.css({position:"fixed",top:0})):(t.removeClass("fixed"),t.css({position:"",top:""})),i&&typeof s!="undefined"&&s!=0&&t.css({position:"fixed",top:s+"px"}))})}),this.last_destination.length>0&&e(t).on("scroll.fndtn.magellan",function(r){var i=e(t).scrollTop(),s=i+e(t).height(),o=Math.ceil(n.last_destination.offset().top);e("[data-magellan-destination]").each(function(){var t=e(this),r=t.attr("data-magellan-destination"),u=t.offset().top-i;u<=n.settings.threshold&&e("[data-magellan-arrival='"+r+"']").trigger("arrival"),s>=e(n.scope).height()&&o>i&&o<s&&e("[data-magellan-arrival]").last().trigger("arrival")})}),this.settings.init=!0},set_threshold:function(){this.settings.threshold||(this.settings.threshold=this.fixed_magellan.length>0?this.outerHeight(this.fixed_magellan,!0):0)},off:function(){e(this.scope).off(".fndtn.magellan")},reflow:function(){}}}(Foundation.zj,this,this.document),function(e,t,n,r){"use strict";Foundation.libs=Foundation.libs||{},Foundation.libs.orbit={name:"orbit",version:"4.2.0",settings:{timer_speed:1e4,pause_on_hover:!0,resume_on_mouseout:!1,animation_speed:500,bullets:!0,stack_on_small:!0,navigation_arrows:!0,slide_number:!0,container_class:"orbit-container",stack_on_small_class:"orbit-stack-on-small",next_class:"orbit-next",prev_class:"orbit-prev",timer_container_class:"orbit-timer",timer_paused_class:"paused",timer_progress_class:"orbit-progress",slides_container_class:"orbit-slides-container",bullets_container_class:"orbit-bullets",bullets_active_class:"active",slide_number_class:"orbit-slide-number",caption_class:"orbit-caption",active_slide_class:"active",orbit_transition_class:"orbit-transitioning"},init:function(t,n,r){var i=this;Foundation.inherit(i,"data_options"),typeof n=="object"&&e.extend(!0,i.settings,n);if(e(t).is("[data-orbit]")){var s=e.extend(!0,{},i);s._init(idx,el)}e("[data-orbit]",t).each(function(t,n){var r=e.extend(!0,{},i);r._init(t,n)})},_container_html:function(){var e=this;return'<div class="'+e.settings.container_class+'"></div>'},_bullets_container_html:function(t){var n=this,r=e('<ol class="'+n.settings.bullets_container_class+'"></ol>');return t.each(function(t,i){var s=e('<li data-orbit-slide-number="'+(t+1)+'" class=""></li>');t===0&&s.addClass(n.settings.bullets_active_class),r.append(s)}),r},_slide_number_html:function(t,n){var r=this,i=e('<div class="'+r.settings.slide_number_class+'"></div>');return i.append("<span>"+t+"</span> of <span>"+n+"</span>"),i},_timer_html:function(){var e=this;return typeof e.settings.timer_speed=="number"&&e.settings.timer_speed>0?'<div class="'+e.settings.timer_container_class+'"><span></span><div class="'+e.settings.timer_progress_class+'"></div></div>':""},_next_html:function(){var e=this;return'<a href="#" class="'+e.settings.next_class+'">Next <span></span></a>'},_prev_html:function(){var e=this;return'<a href="#" class="'+e.settings.prev_class+'">Prev <span></span></a>'},_init:function(t,n){var r=this,i=e(n),s=i.wrap(r._container_html()).parent(),o=i.children();e.extend(!0,r.settings,r.data_options(i)),r.settings.navigation_arrows&&(s.append(r._prev_html()),s.append(r._next_html())),i.addClass(r.settings.slides_container_class),r.settings.stack_on_small&&s.addClass(r.settings.stack_on_small_class),r.settings.slide_number&&s.append(r._slide_number_html(1,o.length)),s.append(r._timer_html()),r.settings.bullets&&s.after(r._bullets_container_html(o)),i.append(o.first().clone().attr("data-orbit-slide","")),i.prepend(o.last().clone().attr("data-orbit-slide","")),i.css(Foundation.rtl?"marginRight":"marginLeft","-100%"),o.first().addClass(r.settings.active_slide_class),r._init_events(i),r._init_dimensions(i),r._start_timer(i)},_init_events:function(i){var s=this,o=i.parent();e(t).on("load.fndtn.orbit",function(){i.height(""),i.height(i.height(o.height())),i.trigger("orbit:ready")}).on("resize.fndtn.orbit",function(){i.height(""),i.height(i.height(o.height()))}),e(n).on("click.fndtn.orbit","[data-orbit-link]",function(t){t.preventDefault();var n=e(t.currentTarget).attr("data-orbit-link"),r=i.find("[data-orbit-slide="+n+"]").first();r.length===1&&(s._reset_timer(i,!0),s._goto(i,r.index(),function(){}))}),o.siblings("."+s.settings.bullets_container_class).on("click.fndtn.orbit","[data-orbit-slide-number]",function(t){t.preventDefault(),s._reset_timer(i,!0),s._goto(i,e(t.currentTarget).data("orbit-slide-number"),function(){})}),o.on("mouseenter.fndtn.orbit",function(e){s.settings.pause_on_hover&&s._stop_timer(i)}).on("mouseleave.fndtn.orbit",function(e){s.settings.resume_on_mouseout&&s._start_timer(i)}).on("orbit:after-slide-change.fndtn.orbit",function(e,t){var n=o.find("."+s.settings.slide_number_class);n.length===1&&n.replaceWith(s._slide_number_html(t.slide_number,t.total_slides))}).on("orbit:next-slide.fndtn.orbit click.fndtn.orbit","."+s.settings.next_class.split(" ").join("."),function(e){e.preventDefault(),s._reset_timer(i,!0),s._goto(i,"next",function(){})}).on("orbit:prev-slide.fndtn.orbit click.fndtn.orbit","."+s.settings.prev_class.split(" ").join("."),function(e){e.preventDefault(),s._reset_timer(i,!0),s._goto(i,"prev",function(){})}).on("orbit:toggle-play-pause.fndtn.orbit click.fndtn.orbit touchstart.fndtn.orbit","."+s.settings.timer_container_class,function(t){t.preventDefault();var n=e(t.currentTarget).toggleClass(s.settings.timer_paused_class),r=n.closest("."+s.settings.container_class).find("."+s.settings.slides_container_class);n.hasClass(s.settings.timer_paused_class)?s._stop_timer(r):s._start_timer(r)}).on("touchstart.fndtn.orbit",function(e){e.touches||(e=e.originalEvent);var t={start_page_x:e.touches[0].pageX,start_page_y:e.touches[0].pageY,start_time:(new Date).getTime(),delta_x:0,is_scrolling:r};o.data("swipe-transition",t),e.stopPropagation()}).on("touchmove.fndtn.orbit",function(e){e.touches||(e=e.originalEvent);if(e.touches.length>1||e.scale&&e.scale!==1)return;var t=o.data("swipe-transition");typeof t=="undefined"&&(t={}),t.delta_x=e.touches[0].pageX-t.start_page_x,typeof t.is_scrolling=="undefined"&&(t.is_scrolling=!!(t.is_scrolling||Math.abs(t.delta_x)<Math.abs(e.touches[0].pageY-t.start_page_y)));if(!t.is_scrolling&&!t.active){e.preventDefault(),s._stop_timer(i);var n=t.delta_x<0?"next":"prev";t.active=!0,s._goto(i,n,function(){})}}).on("touchend.fndtn.orbit",function(e){o.data("swipe-transition",{}),e.stopPropagation()})},_init_dimensions:function(e){var t=e.parent(),n=e.children();e.css("width",n.length*100+"%"),n.css("width",100/n.length+"%"),e.height(t.height()),e.css("width",n.length*100+"%")},_start_timer:function(e){var t=this,n=e.parent(),r=function(){t._reset_timer(e,!1),t._goto(e,"next",function(){t._start_timer(e)})},i=n.find("."+t.settings.timer_container_class),s=i.find("."+t.settings.timer_progress_class),o=s.width()/i.width(),u=t.settings.timer_speed-o*t.settings.timer_speed;s.animate({width:"100%"},u,"linear",r),e.trigger("orbit:timer-started")},_stop_timer:function(e){var t=this,n=e.parent(),r=n.find("."+t.settings.timer_container_class),i=r.find("."+t.settings.timer_progress_class),s=i.width()/r.width();t._rebuild_timer(n,s*100+"%"),e.trigger("orbit:timer-stopped"),r=n.find("."+t.settings.timer_container_class),r.addClass(t.settings.timer_paused_class)},_reset_timer:function(e,t){var n=this,r=e.parent();n._rebuild_timer(r,"0%");if(typeof t=="boolean"&&t){var i=r.find("."+n.settings.timer_container_class);i.addClass(n.settings.timer_paused_class)}},_rebuild_timer:function(t,n){var r=this,i=t.find("."+r.settings.timer_container_class),s=e(r._timer_html()),o=s.find("."+r.settings.timer_progress_class);if(typeof Zepto=="function")i.remove(),t.append(s),o.css("width",n);else if(typeof jQuery=="function"){var u=i.find("."+r.settings.timer_progress_class);u.css("width",n),u.stop()}},_goto:function(t,n,r){var i=this,s=t.parent(),o=t.children(),u=t.find("."+i.settings.active_slide_class),a=u.index(),f=Foundation.rtl?"marginRight":"marginLeft";if(s.hasClass(i.settings.orbit_transition_class))return!1;n==="prev"?a===0?a=o.length-1:a--:n==="next"?a=(a+1)%o.length:typeof n=="number"&&(a=n%o.length),a===o.length-1&&n==="next"?(t.css(f,"0%"),a=1):a===0&&n==="prev"&&(t.css(f,"-"+(o.length-1)*100+"%"),a=o.length-2),s.addClass(i.settings.orbit_transition_class),u.removeClass(i.settings.active_slide_class),e(o[a]).addClass(i.settings.active_slide_class);var l=s.siblings("."+i.settings.bullets_container_class);l.length===1&&(l.children().removeClass(i.settings.bullets_active_class),e(l.children()[a-1]).addClass(i.settings.bullets_active_class));var c="-"+a*100+"%";t.trigger("orbit:before-slide-change");if(t.css(f)===c)s.removeClass(i.settings.orbit_transition_class),t.trigger("orbit:after-slide-change",[{slide_number:a,total_slides:t.children().length-2}]),r();else{var h={};h[f]=c,t.animate(h,i.settings.animation_speed,"linear",function(){s.removeClass(i.settings.orbit_transition_class),t.trigger("orbit:after-slide-change",[{slide_number:a,total_slides:t.children().length-2}]),r()})}}}}(Foundation.zj,this,this.document),function(e,t,n,r){"use strict";Foundation.libs.reveal={name:"reveal",version:"4.2.2",locked:!1,settings:{animation:"fadeAndPop",animationSpeed:250,closeOnBackgroundClick:!0,closeOnEsc:!0,dismissModalClass:"close-reveal-modal",bgClass:"reveal-modal-bg",open:function(){},opened:function(){},close:function(){},closed:function(){},bg:e(".reveal-modal-bg"),css:{open:{opacity:0,visibility:"visible",display:"block"},close:{opacity:1,visibility:"hidden",display:"none"}}},init:function(t,n,r){return Foundation.inherit(this,"data_options delay"),typeof n=="object"?e.extend(!0,this.settings,n):typeof r!="undefined"&&e.extend(!0,this.settings,r),typeof n!="string"?(this.events(),this.settings.init):this[n].call(this,r)},events:function(){var t=this;return e(this.scope).off(".fndtn.reveal").on("click.fndtn.reveal","[data-reveal-id]",function(n){n.preventDefault();if(!t.locked){var r=e(this),i=r.data("reveal-ajax");t.locked=!0;if(typeof i=="undefined")t.open.call(t,r);else{var s=i===!0?r.attr("href"):i;t.open.call(t,r,{url:s})}}}).on("click.fndtn.reveal",this.close_targets(),function(n){n.preventDefault();if(!t.locked){var r=e.extend({},t.settings,t.data_options(e(".reveal-modal.open")));if(e(n.target)[0]===e("."+r.bgClass)[0]&&!r.closeOnBackgroundClick)return;t.locked=!0,t.close.call(t,e(this).closest(".reveal-modal"))}}).on("open.fndtn.reveal",".reveal-modal",this.settings.open).on("opened.fndtn.reveal",".reveal-modal",this.settings.opened).on("opened.fndtn.reveal",".reveal-modal",this.open_video).on("close.fndtn.reveal",".reveal-modal",this.settings.close).on("closed.fndtn.reveal",".reveal-modal",this.settings.closed).on("closed.fndtn.reveal",".reveal-modal",this.close_video),e("body").bind("keyup.reveal",function(n){var r=e(".reveal-modal.open"),i=e.extend({},t.settings,t.data_options(r));n.which===27&&i.closeOnEsc&&r.foundation("reveal","close")}),!0},open:function(t,n){if(t)if(typeof t.selector!="undefined")var r=e("#"+t.data("reveal-id"));else{var r=e(this.scope);n=t}else var r=e(this.scope);if(!r.hasClass("open")){var i=e(".reveal-modal.open");typeof r.data("css-top")=="undefined"&&r.data("css-top",parseInt(r.css("top"),10)).data("offset",this.cache_offset(r)),r.trigger("open"),i.length<1&&this.toggle_bg(r);if(typeof n=="undefined"||!n.url)this.hide(i,this.settings.css.close),this.show(r,this.settings.css.open);else{var s=this,o=typeof n.success!="undefined"?n.success:null;e.extend(n,{success:function(t,n,u){e.isFunction(o)&&o(t,n,u),r.html(t),e(r).foundation("section","reflow"),s.hide(i,s.settings.css.close),s.show(r,s.settings.css.open)}}),e.ajax(n)}}},close:function(t){var t=t&&t.length?t:e(this.scope),n=e(".reveal-modal.open");n.length>0&&(this.locked=!0,t.trigger("close"),this.toggle_bg(t),this.hide(n,this.settings.css.close))},close_targets:function(){var e="."+this.settings.dismissModalClass;return this.settings.closeOnBackgroundClick?e+", ."+this.settings.bgClass:e},toggle_bg:function(t){e(".reveal-modal-bg").length===0&&(this.settings.bg=e("<div />",{"class":this.settings.bgClass}).appendTo("body")),this.settings.bg.filter(":visible").length>0?this.hide(this.settings.bg):this.show(this.settings.bg)},show:function(n,r){if(r){if(/pop/i.test(this.settings.animation)){r.top=e(t).scrollTop()-n.data("offset")+"px";var i={top:e(t).scrollTop()+n.data("css-top")+"px",opacity:1};return this.delay(function(){return n.css(r).animate(i,this.settings.animationSpeed,"linear",function(){this.locked=!1,n.trigger("opened")}.bind(this)).addClass("open")}.bind(this),this.settings.animationSpeed/2)}if(/fade/i.test(this.settings.animation)){var i={opacity:1};return this.delay(function(){return n.css(r).animate(i,this.settings.animationSpeed,"linear",function(){this.locked=!1,n.trigger("opened")}.bind(this)).addClass("open")}.bind(this),this.settings.animationSpeed/2)}return n.css(r).show().css({opacity:1}).addClass("open").trigger("opened")}return/fade/i.test(this.settings.animation)?n.fadeIn(this.settings.animationSpeed/2):n.show()},hide:function(n,r){if(r){if(/pop/i.test(this.settings.animation)){var i={top:-e(t).scrollTop()-n.data("offset")+"px",opacity:0};return this.delay(function(){return n.animate(i,this.settings.animationSpeed,"linear",function(){this.locked=!1,n.css(r).trigger("closed")}.bind(this)).removeClass("open")}.bind(this),this.settings.animationSpeed/2)}if(/fade/i.test(this.settings.animation)){var i={opacity:0};return this.delay(function(){return n.animate(i,this.settings.animationSpeed,"linear",function(){this.locked=!1,n.css(r).trigger("closed")}.bind(this)).removeClass("open")}.bind(this),this.settings.animationSpeed/2)}return n.hide().css(r).removeClass("open").trigger("closed")}return/fade/i.test(this.settings.animation)?n.fadeOut(this.settings.animationSpeed/2):n.hide()},close_video:function(t){var n=e(this).find(".flex-video"),r=n.find("iframe");r.length>0&&(r.attr("data-src",r[0].src),r.attr("src","about:blank"),n.hide())},open_video:function(t){var n=e(this).find(".flex-video"),i=n.find("iframe");if(i.length>0){var s=i.attr("data-src");if(typeof s=="string")i[0].src=i.attr("data-src");else{var o=i[0].src;i[0].src=r,i[0].src=o}n.show()}},cache_offset:function(e){var t=e.show().height()+parseInt(e.css("top"),10);return e.hide(),t},off:function(){e(this.scope).off(".fndtn.reveal")},reflow:function(){}}}(Foundation.zj,this,this.document),function(e,t,n,r){"use strict";Foundation.libs.section={name:"section",version:"4.2.2",settings:{deep_linking:!1,small_breakpoint:768,one_up:!0,section_selector:"[data-section]",region_selector:"section, .section, [data-section-region]",title_selector:".title, [data-section-title]",active_region_selector:"section.active, .section.active, .active[data-section-region]",content_selector:".content, [data-section-content]",nav_selector:'[data-section="vertical-nav"], [data-section="horizontal-nav"]',callback:function(){}},init:function(t,n,r){var i=this;return Foundation.inherit(this,"throttle data_options position_right offset_right"),typeof n=="object"&&e.extend(!0,i.settings,n),typeof n!="string"?(this.set_active_from_hash(),this.events(),!0):this[n].call(this,r)},events:function(){var r=this;e(this.scope).on("click.fndtn.section","[data-section] .title, [data-section] [data-section-title]",function(t){var n=e(this),i=n.closest(r.settings.region_selector);i.children(r.settings.content_selector).length>0&&(r.toggle_active.call(this,t,r),r.reflow())}),e(t).on("resize.fndtn.section",r.throttle(function(){r.resize.call(this)},30)).on("hashchange",function(){r.settings.toggled||(r.set_active_from_hash(),e(this).trigger("resize"))}).trigger("resize"),e(n).on("click.fndtn.section",function(t){e(t.target).closest(r.settings.title_selector).length<1&&e(r.settings.nav_selector).children(r.settings.region_selector).removeClass("active").attr("style","")})},toggle_active:function(t,n){var r=e(this),n=Foundation.libs.section,i=r.closest(n.settings.region_selector),s=r.siblings(n.settings.content_selector),o=i.parent(),u=e.extend({},n.settings,n.data_options(o)),a=o.children(n.settings.active_region_selector);n.settings.toggled=!0,!u.deep_linking&&s.length>0&&t.preventDefault();if(i.hasClass("active"))(n.small(o)||n.is_vertical_nav(o)||n.is_horizontal_nav(o)||n.is_accordion(o))&&(a[0]!==i[0]||a[0]===i[0]&&!u.one_up)&&i.removeClass("active").attr("style","");else{var a=o.children(n.settings.active_region_selector),f=n.outerHeight(i.children(n.settings.title_selector));if(n.small(o)||u.one_up)n.small(o)?a.attr("style",""):a.attr("style","visibility: hidden; padding-top: "+f+"px;");n.small(o)?i.attr("style",""):i.css("padding-top",f),i.addClass("active"),a.length>0&&a.removeClass("active").attr("style",""),n.is_vertical_tabs(o)&&(s.css("display","block"),a!==null&&a.children(n.settings.content_selector).css("display","none"))}setTimeout(function(){n.settings.toggled=!1},300),u.callback()},resize:function(){var t=Foundation.libs.section,n=e(t.settings.section_selector);n.each(function(){var n=e(this),r=n.children(t.settings.active_region_selector),i=e.extend({},t.settings,t.data_options(n));if(r.length>1)r.not(":first").removeClass("active").attr("style","");else if(r.length<1&&!t.is_vertical_nav(n)&&!t.is_horizontal_nav(n)&&!t.is_accordion(n)){var s=n.children(t.settings.region_selector).first();(i.one_up||!t.small(n))&&s.addClass("active"),t.small(n)?s.attr("style",""):s.css("padding-top",t.outerHeight(s.children(t.settings.title_selector)))}t.small(n)?r.attr("style",""):r.css("padding-top",t.outerHeight(r.children(t.settings.title_selector))),t.position_titles(n),t.is_horizontal_nav(n)&&!t.small(n)||t.is_vertical_tabs(n)&&!t.small(n)?t.position_content(n):t.position_content(n,!1)})},is_vertical_nav:function(e){return/vertical-nav/i.test(e.data("section"))},is_horizontal_nav:function(e){return/horizontal-nav/i.test(e.data("section"))},is_accordion:function(e){return/accordion/i.test(e.data("section"))},is_horizontal_tabs:function(e){return/^tabs$/i.test(e.data("section"))},is_vertical_tabs:function(e){return/vertical-tabs/i.test(e.data("section"))},set_active_from_hash:function(){var n=t.location.hash.substring(1),r=e("[data-section]"),i=this;r.each(function(){var t=e(this),r=e.extend({},i.settings,i.data_options(t));if(n.length>0&&r.deep_linking){var s=t.children(i.settings.region_selector).attr("style","").removeClass("active"),o=s.map(function(){var t=e(i.settings.content_selector,this),r=t.data("slug");if((new RegExp(r,"i")).test(n))return t}),u=o.length;for(var a=u-1;a>=0;a--)e(o[a]).parent().addClass("active")}})},position_titles:function(t,n){var r=this,i=t.children(this.settings.region_selector).map(function(){return e(this).children(r.settings.title_selector)}),s=0,o=0,r=this;typeof n=="boolean"?i.attr("style",""):i.each(function(){r.is_vertical_tabs(t)?(e(this).css("top",o),o+=r.outerHeight(e(this))):(r.rtl?e(this).css("right",s):e(this).css("left",s),s+=r.outerWidth(e(this)))})},position_content:function(t,n){var r=this,i=t.children(r.settings.region_selector),s=i.map(function(){return e(this).children(r.settings.title_selector)}),o=i.map(function(){return e(this).children(r.settings.content_selector)});if(typeof n=="boolean")o.attr("style",""),t.attr("style","");else if(r.is_vertical_tabs(t)&&!r.small(t)){var u=0,a=Number.MAX_VALUE,f=null;i.each(function(){var n=e(this),i=n.children(r.settings.title_selector),s=n.children(r.settings.content_selector),o=0;f=r.outerWidth(i),o=r.outerWidth(t)-f,o<a&&(a=o),u+=r.outerHeight(i),e(this).hasClass("active")||s.css("display","none")}),i.each(function(){var t=e(this).children(r.settings.content_selector);t.css("minHeight",u),t.css("maxWidth",a-2)})}else i.each(function(){var t=e(this),n=t.children(r.settings.title_selector),i=t.children(r.settings.content_selector);r.rtl?i.css({right:r.position_right(n)+1,top:r.outerHeight(n)-2}):i.css({left:n.position().left-1,top:r.outerHeight(n)-2})}),typeof Zepto=="function"?t.height(this.outerHeight(e(s[0]))):t.height(this.outerHeight(e(s[0]))-2)},position_right:function(t){var n=this,r=t.closest(this.settings.section_selector),i=r.children(this.settings.region_selector),s=t.closest(this.settings.section_selector).width(),o=i.map(function(){return e(this).children(n.settings.title_selector)}).length;return s-t.position().left-t.width()*(t.index()+1)-o},reflow:function(t){var t=t||n;e(this.settings.section_selector,t).trigger("resize")},small:function(t){var n=e.extend({},this.settings,this.data_options(t));return this.is_horizontal_tabs(t)?!1:t&&this.is_accordion(t)?!0:e("html").hasClass("lt-ie9")?!0:e("html").hasClass("ie8compat")?!0:e(this.scope).width()<n.small_breakpoint},off:function(){e(this.scope).off(".fndtn.section"),e(t).off(".fndtn.section"),e(n).off(".fndtn.section")}}}(Foundation.zj,this,this.document),function(e,t,n,r){"use strict";Foundation.libs.tooltips={name:"tooltips",version:"4.2.2",settings:{selector:".has-tip",additionalInheritableClasses:[],tooltipClass:".tooltip",appendTo:"body","disable-for-touch":!1,tipTemplate:function(e,t){return'<span data-selector="'+e+'" class="'+Foundation.libs.tooltips.settings.tooltipClass.substring(1)+'">'+t+'<span class="nub"></span></span>'}},cache:{},init:function(t,n,r){Foundation.inherit(this,"data_options");var i=this;typeof n=="object"?e.extend(!0,this.settings,n):typeof r!="undefined"&&e.extend(!0,this.settings,r);if(typeof n=="string")return this[n].call(this,r);Modernizr.touch?e(this.scope).on("click.fndtn.tooltip touchstart.fndtn.tooltip touchend.fndtn.tooltip","[data-tooltip]",function(t){var n=e.extend({},i.settings,i.data_options(e(this)));n["disable-for-touch"]||(t.preventDefault(),e(n.tooltipClass).hide(),i.showOrCreateTip(e(this)))}).on("click.fndtn.tooltip touchstart.fndtn.tooltip touchend.fndtn.tooltip",this.settings.tooltipClass,function(t){t.preventDefault(),e(this).fadeOut(150)}):e(this.scope).on("mouseenter.fndtn.tooltip mouseleave.fndtn.tooltip","[data-tooltip]",function(t){var n=e(this);/enter|over/i.test(t.type)?i.showOrCreateTip(n):(t.type==="mouseout"||t.type==="mouseleave")&&i.hide(n)})},showOrCreateTip:function(e){var t=this.getTip(e);return t&&t.length>0?this.show(e):this.create(e)},getTip:function(t){var n=this.selector(t),r=null;return n&&(r=e('span[data-selector="'+n+'"]'+this.settings.tooltipClass)),typeof r=="object"?r:!1},selector:function(e){var t=e.attr("id"),n=e.attr("data-tooltip")||e.attr("data-selector");return(t&&t.length<1||!t)&&typeof n!="string"&&(n="tooltip"+Math.random().toString(36).substring(7),e.attr("data-selector",n)),t&&t.length>0?t:n},create:function(t){var n=e(this.settings.tipTemplate(this.selector(t),e("<div></div>").html(t.attr("title")).html())),r=this.inheritable_classes(t);n.addClass(r).appendTo(this.settings.appendTo),Modernizr.touch&&n.append('<span class="tap-to-close">tap to close </span>'),t.removeAttr("title").attr("title",""),this.show(t)},reposition:function(n,r,i){var s,o,u,a,f,l;r.css("visibility","hidden").show(),s=n.data("width"),o=r.children(".nub"),u=this.outerHeight(o),a=this.outerHeight(o),l=function(e,t,n,r,i,s){return e.css({top:t?
15
- t:"auto",bottom:r?r:"auto",left:i?i:"auto",right:n?n:"auto",width:s?s:"auto"}).end()},l(r,n.offset().top+this.outerHeight(n)+10,"auto","auto",n.offset().left,s);if(e(t).width()<767)l(r,n.offset().top+this.outerHeight(n)+10,"auto","auto",12.5,e(this.scope).width()),r.addClass("tip-override"),l(o,-u,"auto","auto",n.offset().left);else{var c=n.offset().left;Foundation.rtl&&(c=n.offset().left+n.offset().width-this.outerWidth(r)),l(r,n.offset().top+this.outerHeight(n)+10,"auto","auto",c,s),r.removeClass("tip-override"),i&&i.indexOf("tip-top")>-1?l(r,n.offset().top-this.outerHeight(r),"auto","auto",c,s).removeClass("tip-override"):i&&i.indexOf("tip-left")>-1?l(r,n.offset().top+this.outerHeight(n)/2-u*2.5,"auto","auto",n.offset().left-this.outerWidth(r)-u,s).removeClass("tip-override"):i&&i.indexOf("tip-right")>-1&&l(r,n.offset().top+this.outerHeight(n)/2-u*2.5,"auto","auto",n.offset().left+this.outerWidth(n)+u,s).removeClass("tip-override")}r.css("visibility","visible").hide()},inheritable_classes:function(t){var n=["tip-top","tip-left","tip-bottom","tip-right","noradius"].concat(this.settings.additionalInheritableClasses),r=t.attr("class"),i=r?e.map(r.split(" "),function(t,r){if(e.inArray(t,n)!==-1)return t}).join(" "):"";return e.trim(i)},show:function(e){var t=this.getTip(e);this.reposition(e,t,e.attr("class")),t.fadeIn(150)},hide:function(e){var t=this.getTip(e);t.fadeOut(150)},reload:function(){var t=e(this);return t.data("fndtn-tooltips")?t.foundationTooltips("destroy").foundationTooltips("init"):t.foundationTooltips("init")},off:function(){e(this.scope).off(".fndtn.tooltip"),e(this.settings.tooltipClass).each(function(t){e("[data-tooltip]").get(t).attr("title",e(this).text())}).remove()},reflow:function(){}}}(Foundation.zj,this,this.document),function(e,t,n,r){"use strict";Foundation.libs.topbar={name:"topbar",version:"4.2.2",settings:{index:0,stickyClass:"sticky",custom_back_text:!0,back_text:"Back",is_hover:!0,scrolltop:!0,init:!1},init:function(n,r,i){Foundation.inherit(this,"data_options");var s=this;return typeof r=="object"?e.extend(!0,this.settings,r):typeof i!="undefined"&&e.extend(!0,this.settings,i),typeof r!="string"?(e(".top-bar, [data-topbar]").each(function(){e.extend(!0,s.settings,s.data_options(e(this))),s.settings.$w=e(t),s.settings.$topbar=e(this),s.settings.$section=s.settings.$topbar.find("section"),s.settings.$titlebar=s.settings.$topbar.children("ul").first(),s.settings.$topbar.data("index",0);var n=e("<div class='top-bar-js-breakpoint'/>").insertAfter(s.settings.$topbar);s.settings.breakPoint=n.width(),n.remove(),s.assemble(),s.settings.$topbar.parent().hasClass("fixed")&&e("body").css("padding-top",s.outerHeight(s.settings.$topbar))}),s.settings.init||this.events(),this.settings.init):this[r].call(this,i)},events:function(){var n=this,r=this.outerHeight(e(".top-bar, [data-topbar]"));e(this.scope).off(".fndtn.topbar").on("click.fndtn.topbar",".top-bar .toggle-topbar, [data-topbar] .toggle-topbar",function(i){var s=e(this).closest(".top-bar, [data-topbar]"),o=s.find("section, .section"),u=s.children("ul").first();i.preventDefault(),n.breakpoint()&&(n.rtl?(o.css({right:"0%"}),o.find(">.name").css({right:"100%"})):(o.css({left:"0%"}),o.find(">.name").css({left:"100%"})),o.find("li.moved").removeClass("moved"),s.data("index",0),s.toggleClass("expanded").css("max-height","")),s.hasClass("expanded")?s.parent().hasClass("fixed")&&(s.parent().removeClass("fixed"),s.addClass("fixed"),e("body").css("padding-top","0"),n.settings.scrolltop&&t.scrollTo(0,0)):s.hasClass("fixed")&&(s.parent().addClass("fixed"),s.removeClass("fixed"),e("body").css("padding-top",r))}).on("mouseenter mouseleave",".top-bar li",function(t){if(!n.settings.is_hover)return;/enter|over/i.test(t.type)?e(this).addClass("hover"):e(this).removeClass("hover")}).on("click.fndtn.topbar",".top-bar li.has-dropdown",function(t){if(n.breakpoint())return;var r=e(this),i=e(t.target),s=r.closest("[data-topbar], .top-bar"),o=s.data("topbar");if(n.settings.is_hover&&!Modernizr.touch)return;t.stopImmediatePropagation(),i[0].nodeName==="A"&&i.parent().hasClass("has-dropdown")&&t.preventDefault(),r.hasClass("hover")?r.removeClass("hover").find("li").removeClass("hover"):r.addClass("hover")}).on("click.fndtn.topbar",".top-bar .has-dropdown>a, [data-topbar] .has-dropdown>a",function(t){if(n.breakpoint()){t.preventDefault();var r=e(this),i=r.closest(".top-bar, [data-topbar]"),s=i.find("section, .section"),o=i.children("ul").first(),u=r.next(".dropdown").outerHeight(),a=r.closest("li");i.data("index",i.data("index")+1),a.addClass("moved"),n.rtl?(s.css({right:-(100*i.data("index"))+"%"}),s.find(">.name").css({right:100*i.data("index")+"%"})):(s.css({left:-(100*i.data("index"))+"%"}),s.find(">.name").css({left:100*i.data("index")+"%"})),i.css("max-height",n.height(r.siblings("ul"))+n.outerHeight(o,!0))}}),e(t).on("resize.fndtn.topbar",function(){n.breakpoint()||e(".top-bar, [data-topbar]").css("max-height","").removeClass("expanded").find("li").removeClass("hover")}.bind(this)),e("body").on("click.fndtn.topbar",function(t){var n=e(t.target).closest("[data-topbar], .top-bar");if(n.length>0)return;e(".top-bar li, [data-topbar] li").removeClass("hover")}),e(this.scope).on("click.fndtn",".top-bar .has-dropdown .back, [data-topbar] .has-dropdown .back",function(t){t.preventDefault();var r=e(this),i=r.closest(".top-bar, [data-topbar]"),s=i.children("ul").first(),o=i.find("section, .section"),u=r.closest("li.moved"),a=u.parent();i.data("index",i.data("index")-1),n.rtl?(o.css({right:-(100*i.data("index"))+"%"}),o.find(">.name").css({right:100*i.data("index")+"%"})):(o.css({left:-(100*i.data("index"))+"%"}),o.find(">.name").css({left:100*i.data("index")+"%"})),i.data("index")===0?i.css("max-height",""):i.css("max-height",n.height(a)+n.outerHeight(s,!0)),setTimeout(function(){u.removeClass("moved")},300)})},breakpoint:function(){return e(n).width()<=this.settings.breakPoint||e("html").hasClass("lt-ie9")},assemble:function(){var t=this;this.settings.$section.detach(),this.settings.$section.find(".has-dropdown>a").each(function(){var n=e(this),r=n.siblings(".dropdown"),i=n.attr("href");if(i&&i.length>1)var s=e('<li class="title back js-generated"><h5><a href="#"></a></h5></li><li><a class="parent-link js-generated" href="'+i+'">'+n.text()+"</a></li>");else var s=e('<li class="title back js-generated"><h5><a href="#"></a></h5></li>');t.settings.custom_back_text==1?s.find("h5>a").html("&laquo; "+t.settings.back_text):s.find("h5>a").html("&laquo; "+n.html()),r.prepend(s)}),this.settings.$section.appendTo(this.settings.$topbar),this.sticky()},height:function(t){var n=0,r=this;return t.find("> li").each(function(){n+=r.outerHeight(e(this),!0)}),n},sticky:function(){var n="."+this.settings.stickyClass;if(e(n).length>0){var r=e(n).length?e(n).offset().top:0,i=e(t),s=this.outerHeight(e(".top-bar"));i.scroll(function(){i.scrollTop()>=r?(e(n).addClass("fixed"),e("body").css("padding-top",s)):i.scrollTop()<r&&(e(n).removeClass("fixed"),e("body").css("padding-top","0"))})}},off:function(){e(this.scope).off(".fndtn.topbar"),e(t).off(".fndtn.topbar")},reflow:function(){}}}(Foundation.zj,this,this.document),function(e,t,n,r){"use strict";Foundation.libs.interchange={name:"interchange",version:"4.2.2",cache:{},settings:{load_attr:"interchange",named_queries:{"default":"only screen and (min-width: 1px)",small:"only screen and (min-width: 768px)",medium:"only screen and (min-width: 1280px)",large:"only screen and (min-width: 1440px)",landscape:"only screen and (orientation: landscape)",portrait:"only screen and (orientation: portrait)",retina:"only screen and (-webkit-min-device-pixel-ratio: 2),only screen and (min--moz-device-pixel-ratio: 2),only screen and (-o-min-device-pixel-ratio: 2/1),only screen and (min-device-pixel-ratio: 2),only screen and (min-resolution: 192dpi),only screen and (min-resolution: 2dppx)"},directives:{replace:function(e,t){if(/IMG/.test(e[0].nodeName)){var n=t.split("/"),r=n[n.length-1],i=e[0].src;if((new RegExp(r,"i")).test(e[0].src))return;return e[0].src=t,e.trigger("replace",[e[0].src,i])}}}},init:function(t,n,r){return Foundation.inherit(this,"throttle"),typeof n=="object"&&e.extend(!0,this.settings,n),this.events(),this.images(),typeof n!="string"?this.settings.init:this[n].call(this,r)},events:function(){var n=this;e(t).on("resize.fndtn.interchange",n.throttle(function(){n.resize.call(n)},50))},resize:function(){var e=this.cache;for(var t in e)if(e.hasOwnProperty(t)){var n=this.results(t,e[t]);n&&this.settings.directives[n.scenario[1]](n.el,n.scenario[0])}},results:function(t,n){var r=n.length,i=[];if(r>0){var s=e('[data-uuid="'+t+'"]');for(var o=r-1;o>=0;o--){var u=n[o][2];if(this.settings.named_queries.hasOwnProperty(u))var a=matchMedia(this.settings.named_queries[u]);else var a=matchMedia(n[o][2]);if(a.matches)return{el:s,scenario:n[o]}}}return!1},images:function(e){return typeof this.cached_images=="undefined"||e?this.update_images():this.cached_images},update_images:function(){var t=n.getElementsByTagName("img"),r=t.length,i="data-"+this.settings.load_attr;this.cached_images=[];for(var s=r-1;s>=0;s--)this.loaded(e(t[s]),s===0,function(e,t){if(e){var n=e.getAttribute(i)||"";n.length>0&&this.cached_images.push(e)}t&&this.enhance()}.bind(this));return"deferred"},loaded:function(e,t,n){function r(){n(e[0],t)}function i(){this.one("load",r);if(/MSIE (\d+\.\d+);/.test(navigator.userAgent)){var e=this.attr("src"),t=e.match(/\?/)?"&":"?";t+="random="+(new Date).getTime(),this.attr("src",e+t)}}if(!e.attr("src")){r();return}e[0].complete||e[0].readyState===4?r():i.call(e)},enhance:function(){var n=this.images().length;for(var r=n-1;r>=0;r--)this._object(e(this.images()[r]));return e(t).trigger("resize")},parse_params:function(e,t,n){return[this.trim(e),this.convert_directive(t),this.trim(n)]},convert_directive:function(e){var t=this.trim(e);return t.length>0?t:"replace"},_object:function(e){var t=this.parse_data_attr(e),n=[],r=t.length;if(r>0)for(var i=r-1;i>=0;i--){var s=t[i].split(/\((.*?)(\))$/);if(s.length>1){var o=s[0].split(","),u=this.parse_params(o[0],o[1],s[1]);n.push(u)}}return this.store(e,n)},uuid:function(e){function n(){return((1+Math.random())*65536|0).toString(16).substring(1)}var t=e||"-";return n()+n()+t+n()+t+n()+t+n()+t+n()+n()+n()},store:function(e,t){var n=this.uuid(),r=e.data("uuid");return r?this.cache[r]:(e.attr("data-uuid",n),this.cache[n]=t)},trim:function(t){return typeof t=="string"?e.trim(t):t},parse_data_attr:function(e){var t=e.data(this.settings.load_attr).split(/\[(.*?)\]/),n=t.length,r=[];for(var i=n-1;i>=0;i--)t[i].replace(/[\W\d]+/,"").length>4&&r.push(t[i]);return r},reflow:function(){this.images(!0)}}}(Foundation.zj,this,this.document),function(e,t,n){function f(e){var t={},r=/^jQuery\d+$/;return n.each(e.attributes,function(e,n){n.specified&&!r.test(n.name)&&(t[n.name]=n.value)}),t}function l(e,r){var i=this,s=n(i);if(i.value==s.attr("placeholder")&&s.hasClass("placeholder"))if(s.data("placeholder-password")){s=s.hide().next().show().attr("id",s.removeAttr("id").data("placeholder-id"));if(e===!0)return s[0].value=r;s.focus()}else i.value="",s.removeClass("placeholder"),i==t.activeElement&&i.select()}function c(){var e,t=this,r=n(t),i=r,s=this.id;if(t.value==""){if(t.type=="password"){if(!r.data("placeholder-textinput")){try{e=r.clone().attr({type:"text"})}catch(o){e=n("<input>").attr(n.extend(f(this),{type:"text"}))}e.removeAttr("name").data({"placeholder-password":!0,"placeholder-id":s}).bind("focus.placeholder",l),r.data({"placeholder-textinput":e,"placeholder-id":s}).before(e)}r=r.removeAttr("id").hide().prev().attr("id",s).show()}r.addClass("placeholder"),r[0].value=r.attr("placeholder")}else r.removeClass("placeholder")}var r="placeholder"in t.createElement("input"),i="placeholder"in t.createElement("textarea"),s=n.fn,o=n.valHooks,u,a;r&&i?(a=s.placeholder=function(){return this},a.input=a.textarea=!0):(a=s.placeholder=function(){var e=this;return e.filter((r?"textarea":":input")+"[placeholder]").not(".placeholder").bind({"focus.placeholder":l,"blur.placeholder":c}).data("placeholder-enabled",!0).trigger("blur.placeholder"),e},a.input=r,a.textarea=i,u={get:function(e){var t=n(e);return t.data("placeholder-enabled")&&t.hasClass("placeholder")?"":e.value},set:function(e,r){var i=n(e);return i.data("placeholder-enabled")?(r==""?(e.value=r,e!=t.activeElement&&c.call(e)):i.hasClass("placeholder")?l.call(e,!0,r)||(e.value=r):e.value=r,i):e.value=r}},r||(o.input=u),i||(o.textarea=u),n(function(){n(t).delegate("form","submit.placeholder",function(){var e=n(".placeholder",this).each(l);setTimeout(function(){e.each(c)},10)})}),n(e).bind("beforeunload.placeholder",function(){n(".placeholder").each(function(){this.value=""})}))}(this,document,Foundation.zj),function(e,t,n,r){"use strict";Foundation.libs.placeholder={name:"placeholder",version:"4.2.2",init:function(n,r,i){this.scope=n||this.scope,typeof r!="string"&&(t.onload=function(){e("input, textarea").placeholder()})}}}(Foundation.zj,this,this.document);
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
lib/foundation/foundation.reveal.js DELETED
@@ -1,330 +0,0 @@
1
- /*jslint unparam: true, browser: true, indent: 2 */
2
-
3
- ;(function ($, window, document, undefined) {
4
- 'use strict';
5
-
6
- Foundation.libs.reveal = {
7
- name : 'reveal',
8
-
9
- version : '4.2.2',
10
-
11
- locked : false,
12
-
13
- settings : {
14
- animation: 'fadeAndPop',
15
- animationSpeed: 250,
16
- closeOnBackgroundClick: true,
17
- closeOnEsc: true,
18
- dismissModalClass: 'close-reveal-modal',
19
- bgClass: 'reveal-modal-bg',
20
- open: function(){},
21
- opened: function(){},
22
- close: function(){},
23
- closed: function(){},
24
- bg : $('.reveal-modal-bg'),
25
- css : {
26
- open : {
27
- 'opacity': 0,
28
- 'visibility': 'visible',
29
- 'display' : 'block'
30
- },
31
- close : {
32
- 'opacity': 1,
33
- 'visibility': 'hidden',
34
- 'display': 'none'
35
- }
36
- }
37
- },
38
-
39
- init : function (scope, method, options) {
40
- Foundation.inherit(this, 'data_options delay');
41
-
42
- if (typeof method === 'object') {
43
- $.extend(true, this.settings, method);
44
- } else if (typeof options !== 'undefined') {
45
- $.extend(true, this.settings, options);
46
- }
47
-
48
- if (typeof method !== 'string') {
49
- this.events();
50
-
51
- return this.settings.init;
52
- } else {
53
- return this[method].call(this, options);
54
- }
55
- },
56
-
57
- events : function () {
58
- var self = this;
59
-
60
- $(this.scope)
61
- .off('.fndtn.reveal')
62
- .on('click.fndtn.reveal', '[data-reveal-id]', function (e) {
63
- e.preventDefault();
64
-
65
- if (!self.locked) {
66
- var element = $(this),
67
- ajax = element.data('reveal-ajax');
68
-
69
- self.locked = true;
70
-
71
- if (typeof ajax === 'undefined') {
72
- self.open.call(self, element);
73
- } else {
74
- var url = ajax === true ? element.attr('href') : ajax;
75
-
76
- self.open.call(self, element, {url: url});
77
- }
78
- }
79
- })
80
- .on('click.fndtn.reveal', this.close_targets(), function (e) {
81
- e.preventDefault();
82
- if (!self.locked) {
83
- var settings = $.extend({}, self.settings, self.data_options($('.reveal-modal.open')));
84
- if ($(e.target)[0] === $('.' + settings.bgClass)[0] && !settings.closeOnBackgroundClick) {
85
- return;
86
- }
87
-
88
- self.locked = true;
89
- self.close.call(self, $(this).closest('.reveal-modal'));
90
- }
91
- })
92
- .on('open.fndtn.reveal', '.reveal-modal', this.settings.open)
93
- .on('opened.fndtn.reveal', '.reveal-modal', this.settings.opened)
94
- .on('opened.fndtn.reveal', '.reveal-modal', this.open_video)
95
- .on('close.fndtn.reveal', '.reveal-modal', this.settings.close)
96
- .on('closed.fndtn.reveal', '.reveal-modal', this.settings.closed)
97
- .on('closed.fndtn.reveal', '.reveal-modal', this.close_video);
98
-
99
- $( 'body' ).bind( 'keyup.reveal', function ( event ) {
100
- var open_modal = $('.reveal-modal.open'),
101
- settings = $.extend({}, self.settings, self.data_options(open_modal));
102
- if ( event.which === 27 && settings.closeOnEsc) { // 27 is the keycode for the Escape key
103
- open_modal.foundation('reveal', 'close');
104
- }
105
- });
106
-
107
- return true;
108
- },
109
-
110
- open : function (target, ajax_settings) {
111
- if (target) {
112
- if (typeof target.selector !== 'undefined') {
113
- var modal = $('#' + target.data('reveal-id'));
114
- } else {
115
- var modal = $(this.scope);
116
-
117
- ajax_settings = target;
118
- }
119
- } else {
120
- var modal = $(this.scope);
121
- }
122
-
123
- if (!modal.hasClass('open')) {
124
- var open_modal = $('.reveal-modal.open');
125
-
126
- if (typeof modal.data('css-top') === 'undefined') {
127
- modal.data('css-top', parseInt(modal.css('top'), 10))
128
- .data('offset', this.cache_offset(modal));
129
- }
130
-
131
- modal.trigger('open');
132
-
133
- if (open_modal.length < 1) {
134
- this.toggle_bg(modal);
135
- }
136
-
137
- if (typeof ajax_settings === 'undefined' || !ajax_settings.url) {
138
- this.hide(open_modal, this.settings.css.close);
139
- this.show(modal, this.settings.css.open);
140
- } else {
141
- var self = this,
142
- old_success = typeof ajax_settings.success !== 'undefined' ? ajax_settings.success : null;
143
-
144
- $.extend(ajax_settings, {
145
- success: function (data, textStatus, jqXHR) {
146
- if ( $.isFunction(old_success) ) {
147
- old_success(data, textStatus, jqXHR);
148
- }
149
-
150
- modal.html(data);
151
- $(modal).foundation('section', 'reflow');
152
-
153
- self.hide(open_modal, self.settings.css.close);
154
- self.show(modal, self.settings.css.open);
155
- }
156
- });
157
-
158
- $.ajax(ajax_settings);
159
- }
160
- }
161
- },
162
-
163
- close : function (modal) {
164
-
165
- var modal = modal && modal.length ? modal : $(this.scope),
166
- open_modals = $('.reveal-modal.open');
167
-
168
- if (open_modals.length > 0) {
169
- this.locked = true;
170
- modal.trigger('close');
171
- this.toggle_bg(modal);
172
- this.hide(open_modals, this.settings.css.close);
173
- }
174
- },
175
-
176
- close_targets : function () {
177
- var base = '.' + this.settings.dismissModalClass;
178
-
179
- if (this.settings.closeOnBackgroundClick) {
180
- return base + ', .' + this.settings.bgClass;
181
- }
182
-
183
- return base;
184
- },
185
-
186
- toggle_bg : function (modal) {
187
- if ($('.reveal-modal-bg').length === 0) {
188
- this.settings.bg = $('<div />', {'class': this.settings.bgClass})
189
- .appendTo('body');
190
- }
191
-
192
- if (this.settings.bg.filter(':visible').length > 0) {
193
- this.hide(this.settings.bg);
194
- } else {
195
- this.show(this.settings.bg);
196
- }
197
- },
198
-
199
- show : function (el, css) {
200
- // is modal
201
- if (css) {
202
- if (/pop/i.test(this.settings.animation)) {
203
- css.top = $(window).scrollTop() - el.data('offset') + 'px';
204
- var end_css = {
205
- top: $(window).scrollTop() + el.data('css-top') + 'px',
206
- opacity: 1
207
- };
208
-
209
- return this.delay(function () {
210
- return el
211
- .css(css)
212
- .animate(end_css, this.settings.animationSpeed, 'linear', function () {
213
- this.locked = false;
214
- el.trigger('opened');
215
- }.bind(this))
216
- .addClass('open');
217
- }.bind(this), this.settings.animationSpeed / 2);
218
- }
219
-
220
- if (/fade/i.test(this.settings.animation)) {
221
- var end_css = {opacity: 1};
222
-
223
- return this.delay(function () {
224
- return el
225
- .css(css)
226
- .animate(end_css, this.settings.animationSpeed, 'linear', function () {
227
- this.locked = false;
228
- el.trigger('opened');
229
- }.bind(this))
230
- .addClass('open');
231
- }.bind(this), this.settings.animationSpeed / 2);
232
- }
233
-
234
- return el.css(css).show().css({opacity: 1}).addClass('open').trigger('opened');
235
- }
236
-
237
- // should we animate the background?
238
- if (/fade/i.test(this.settings.animation)) {
239
- return el.fadeIn(this.settings.animationSpeed / 2);
240
- }
241
-
242
- return el.show();
243
- },
244
-
245
- hide : function (el, css) {
246
- // is modal
247
- if (css) {
248
- if (/pop/i.test(this.settings.animation)) {
249
- var end_css = {
250
- top: - $(window).scrollTop() - el.data('offset') + 'px',
251
- opacity: 0
252
- };
253
-
254
- return this.delay(function () {
255
- return el
256
- .animate(end_css, this.settings.animationSpeed, 'linear', function () {
257
- this.locked = false;
258
- el.css(css).trigger('closed');
259
- }.bind(this))
260
- .removeClass('open');
261
- }.bind(this), this.settings.animationSpeed / 2);
262
- }
263
-
264
- if (/fade/i.test(this.settings.animation)) {
265
- var end_css = {opacity: 0};
266
-
267
- return this.delay(function () {
268
- return el
269
- .animate(end_css, this.settings.animationSpeed, 'linear', function () {
270
- this.locked = false;
271
- el.css(css).trigger('closed');
272
- }.bind(this))
273
- .removeClass('open');
274
- }.bind(this), this.settings.animationSpeed / 2);
275
- }
276
-
277
- return el.hide().css(css).removeClass('open').trigger('closed');
278
- }
279
-
280
- // should we animate the background?
281
- if (/fade/i.test(this.settings.animation)) {
282
- return el.fadeOut(this.settings.animationSpeed / 2);
283
- }
284
-
285
- return el.hide();
286
- },
287
-
288
- close_video : function (e) {
289
- var video = $(this).find('.flex-video'),
290
- iframe = video.find('iframe');
291
-
292
- if (iframe.length > 0) {
293
- iframe.attr('data-src', iframe[0].src);
294
- iframe.attr('src', 'about:blank');
295
- video.hide();
296
- }
297
- },
298
-
299
- open_video : function (e) {
300
- var video = $(this).find('.flex-video'),
301
- iframe = video.find('iframe');
302
-
303
- if (iframe.length > 0) {
304
- var data_src = iframe.attr('data-src');
305
- if (typeof data_src === 'string') {
306
- iframe[0].src = iframe.attr('data-src');
307
- } else {
308
- var src = iframe[0].src;
309
- iframe[0].src = undefined;
310
- iframe[0].src = src;
311
- }
312
- video.show();
313
- }
314
- },
315
-
316
- cache_offset : function (modal) {
317
- var offset = modal.show().height() + parseInt(modal.css('top'), 10);
318
-
319
- modal.hide();
320
-
321
- return offset;
322
- },
323
-
324
- off : function () {
325
- $(this.scope).off('.fndtn.reveal');
326
- },
327
-
328
- reflow : function () {}
329
- };
330
- }(Foundation.zj, this, this.document));
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
lib/foundation/foundation.section.js DELETED
@@ -1,422 +0,0 @@
1
- /*jslint unparam: true, browser: true, indent: 2 */
2
-
3
- ;(function ($, window, document, undefined) {
4
- 'use strict';
5
-
6
- Foundation.libs.section = {
7
- name: 'section',
8
-
9
- version : '4.2.3',
10
-
11
- settings : {
12
- deep_linking: false,
13
- small_breakpoint: 768,
14
- one_up: true,
15
- section_selector : '[data-section]',
16
- region_selector : 'section, .section, [data-section-region]',
17
- title_selector : '.title, [data-section-title]',
18
- active_region_selector : 'section.active, .section.active, .active[data-section-region]',
19
- content_selector : '.content, [data-section-content]',
20
- nav_selector : '[data-section="vertical-nav"], [data-section="horizontal-nav"]',
21
- callback: function (){}
22
- },
23
-
24
- init : function (scope, method, options) {
25
- var self = this;
26
- Foundation.inherit(this, 'throttle data_options position_right offset_right');
27
-
28
- if (typeof method === 'object') {
29
- $.extend(true, self.settings, method);
30
- }
31
-
32
- if (typeof method !== 'string') {
33
- this.set_active_from_hash();
34
- this.events();
35
-
36
- return true;
37
- } else {
38
- return this[method].call(this, options);
39
- }
40
- },
41
-
42
- events : function () {
43
- var self = this;
44
-
45
- $(this.scope)
46
- .on('click.fndtn.section', '[data-section] .title, [data-section] [data-section-title]', function (e) {
47
- var $this = $(this),
48
- section = $this.closest(self.settings.region_selector);
49
-
50
- if (section.children(self.settings.content_selector).length > 0) {
51
- self.toggle_active.call(this, e, self);
52
- self.reflow();
53
- }
54
- });
55
-
56
- $(window)
57
- .on('resize.fndtn.section', self.throttle(function () {
58
- self.resize.call(this);
59
- }, 30))
60
- .on('hashchange', function () {
61
- if (!self.settings.toggled){
62
- self.set_active_from_hash();
63
- $(this).trigger('resize');
64
- }
65
- }).trigger('resize');
66
-
67
- $(document)
68
- .on('click.fndtn.section', function (e) {
69
- if ($(e.target).closest(self.settings.title_selector).length < 1) {
70
- $(self.settings.nav_selector)
71
- .children(self.settings.region_selector)
72
- .removeClass('active')
73
- .attr('style', '');
74
- }
75
- });
76
-
77
- },
78
-
79
- toggle_active : function (e, self) {
80
- var $this = $(this),
81
- self = Foundation.libs.section,
82
- region = $this.closest(self.settings.region_selector),
83
- content = $this.siblings(self.settings.content_selector),
84
- parent = region.parent(),
85
- settings = $.extend({}, self.settings, self.data_options(parent)),
86
- prev_active_section = parent
87
- .children(self.settings.active_region_selector);
88
-
89
- self.settings.toggled = true;
90
-
91
- if (!settings.deep_linking && content.length > 0) {
92
- e.preventDefault();
93
- }
94
-
95
- if (region.hasClass('active')) {
96
- // this is causing the style flash.
97
- if (self.small(parent)
98
- || self.is_vertical_nav(parent)
99
- || self.is_horizontal_nav(parent)
100
- || self.is_accordion(parent)) {
101
- if (prev_active_section[0] !== region[0]
102
- || (prev_active_section[0] === region[0] && !settings.one_up)) {
103
- region
104
- .removeClass('active')
105
- .attr('style', '');
106
- }
107
- }
108
- } else {
109
- var prev_active_section = parent
110
- .children(self.settings.active_region_selector),
111
- title_height = self.outerHeight(region
112
- .children(self.settings.title_selector));
113
-
114
- if (self.small(parent) || settings.one_up) {
115
-
116
- if (self.small(parent)) {
117
- prev_active_section.attr('style', '');
118
- } else {
119
- prev_active_section.attr('style',
120
- 'visibility: hidden; padding-top: '+title_height+'px;');
121
- }
122
- }
123
-
124
- if (self.small(parent)) {
125
- region.attr('style', '');
126
- } else {
127
- region.css('padding-top', title_height);
128
- }
129
-
130
- region.addClass('active');
131
-
132
- if (prev_active_section.length > 0) {
133
- prev_active_section
134
- .removeClass('active')
135
- .attr('style', '');
136
- }
137
-
138
- // Toggle the content display attribute. This is done to
139
- // ensure accurate outerWidth measurements that account for
140
- // the scrollbar.
141
- if (self.is_vertical_tabs(parent)) {
142
- content.css('display', 'block');
143
-
144
- if (prev_active_section !== null) {
145
- prev_active_section
146
- .children(self.settings.content_selector)
147
- .css('display', 'none');
148
- }
149
- }
150
- }
151
-
152
- setTimeout(function () {
153
- self.settings.toggled = false;
154
- }, 300);
155
-
156
- settings.callback();
157
- },
158
-
159
- resize : function () {
160
- var self = Foundation.libs.section,
161
- sections = $(self.settings.section_selector);
162
-
163
- sections.each(function() {
164
- var $this = $(this),
165
- active_section = $this
166
- .children(self.settings.active_region_selector),
167
- settings = $.extend({}, self.settings, self.data_options($this));
168
-
169
- if (active_section.length > 1) {
170
- active_section
171
- .not(':first')
172
- .removeClass('active')
173
- .attr('style', '');
174
- } else if (active_section.length < 1
175
- && !self.is_vertical_nav($this)
176
- && !self.is_horizontal_nav($this)
177
- && !self.is_accordion($this)) {
178
-
179
- var first = $this.children(self.settings.region_selector).first();
180
-
181
- if (settings.one_up || !self.small($this)) {
182
- first.addClass('active');
183
- }
184
-
185
- if (self.small($this)) {
186
- first.attr('style', '');
187
- } else {
188
- first.css('padding-top', self.outerHeight(first
189
- .children(self.settings.title_selector)));
190
- }
191
- }
192
-
193
- if (self.small($this)) {
194
- active_section.attr('style', '');
195
- } else {
196
- active_section.css('padding-top', self.outerHeight(active_section
197
- .children(self.settings.title_selector)));
198
- }
199
-
200
- self.position_titles($this);
201
-
202
- if ( (self.is_horizontal_nav($this) && !self.small($this))
203
- || self.is_vertical_tabs($this) && !self.small($this)) {
204
- self.position_content($this);
205
- } else {
206
- self.position_content($this, false);
207
- }
208
- });
209
- },
210
-
211
- is_vertical_nav : function (el) {
212
- return /vertical-nav/i.test(el.data('section'));
213
- },
214
-
215
- is_horizontal_nav : function (el) {
216
- return /horizontal-nav/i.test(el.data('section'));
217
- },
218
-
219
- is_accordion : function (el) {
220
- return /accordion/i.test(el.data('section'));
221
- },
222
-
223
- is_horizontal_tabs : function (el) {
224
- return /^tabs$/i.test(el.data('section'));
225
- },
226
-
227
- is_vertical_tabs : function (el) {
228
- return /vertical-tabs/i.test(el.data('section'));
229
- },
230
-
231
- set_active_from_hash : function () {
232
- var hash = window.location.hash.substring(1),
233
- sections = $('[data-section]'),
234
- self = this;
235
- sections.each(function () {
236
- var section = $(this),
237
- settings = $.extend({}, self.settings, self.data_options(section));
238
-
239
- if (hash.length > 0 && settings.deep_linking) {
240
- var regions = section
241
- .children(self.settings.region_selector)
242
- .attr('style', '')
243
- .removeClass('active');
244
-
245
- var hash_regions = regions.map(function () {
246
- var content = $(self.settings.content_selector, this),
247
- content_slug = content.data('slug');
248
-
249
- if (new RegExp(content_slug, 'i').test(hash))
250
- return content;
251
- });
252
-
253
-
254
- var count = hash_regions.length;
255
-
256
- for (var i = count - 1; i >= 0; i--) {
257
- $(hash_regions[i]).parent().addClass('active');
258
- }
259
- }
260
- });
261
- },
262
-
263
- position_titles : function (section, off) {
264
- var self = this,
265
- titles = section
266
- .children(this.settings.region_selector)
267
- .map(function () {
268
- return $(this).children(self.settings.title_selector);
269
- }),
270
- previous_width = 0,
271
- previous_height = 0,
272
- self = this;
273
-
274
- if (typeof off === 'boolean') {
275
- titles.attr('style', '');
276
-
277
- } else {
278
- titles.each(function () {
279
- if (self.is_vertical_tabs(section)) {
280
- $(this).css('top', previous_height);
281
- previous_height += self.outerHeight($(this));
282
- } else {
283
- if (!self.rtl) {
284
- $(this).css('left', previous_width);
285
- } else {
286
- $(this).css('right', previous_width);
287
- }
288
- previous_width += self.outerWidth($(this));
289
- }
290
- });
291
- }
292
- },
293
-
294
- position_content : function (section, off) {
295
- var self = this,
296
- regions = section.children(self.settings.region_selector),
297
- titles = regions
298
- .map(function () {
299
- return $(this).children(self.settings.title_selector);
300
- }),
301
- content = regions
302
- .map(function () {
303
- return $(this).children(self.settings.content_selector);
304
- });
305
-
306
- if (typeof off === 'boolean') {
307
- content.attr('style', '');
308
- section.attr('style', '');
309
-
310
- // Reset the minHeight and maxWidth values (only applicable to
311
- // vertical tabs)
312
- content.css('minHeight', '');
313
- content.css('maxWidth', '');
314
- } else {
315
- if (self.is_vertical_tabs(section)
316
- && !self.small(section)) {
317
- var content_min_height = 0,
318
- content_min_width = Number.MAX_VALUE,
319
- title_width = null;
320
-
321
- regions.each(function () {
322
- var region = $(this),
323
- title = region.children(self.settings.title_selector),
324
- content = region.children(self.settings.content_selector),
325
- content_width = 0;
326
-
327
- title_width = self.outerWidth(title);
328
- content_width = self.outerWidth(section) - title_width;
329
-
330
- if (content_width < content_min_width) {
331
- content_min_width = content_width;
332
- }
333
-
334
- // Increment the minimum height of the content region
335
- // to align with the height of the titles.
336
- content_min_height += self.outerHeight(title);
337
-
338
- // Set all of the inactive tabs to 'display: none'
339
- // The CSS sets all of the tabs as 'display: block'
340
- // in order to account for scrollbars when measuring the width
341
- // of the content regions.
342
- if (!$(this).hasClass('active')) {
343
- content.css('display', 'none');
344
- }
345
- });
346
-
347
- regions.each(function () {
348
- var content = $(this).children(self.settings.content_selector);
349
- content.css('minHeight', content_min_height);
350
-
351
- // Remove 2 pixels to account for the right-shift in the CSS
352
- content.css('maxWidth', content_min_width - 2);
353
- });
354
-
355
- } else {
356
- regions.each(function () {
357
- var region = $(this),
358
- title = region.children(self.settings.title_selector),
359
- content = region.children(self.settings.content_selector);
360
- if (!self.rtl) {
361
- content
362
- .css({left: title.position().left - 1,
363
- top: self.outerHeight(title) - 2});
364
- } else {
365
- content
366
- .css({right: self.position_right(title) + 1,
367
- top: self.outerHeight(title) - 2});
368
- }
369
- });
370
-
371
- // temporary work around for Zepto outerheight calculation issues.
372
- if (typeof Zepto === 'function') {
373
- section.height(this.outerHeight($(titles[0])));
374
- } else {
375
- section.height(this.outerHeight($(titles[0])) - 2);
376
- }
377
- }
378
- }
379
- },
380
-
381
- position_right : function (el) {
382
- var self = this,
383
- section = el.closest(this.settings.section_selector),
384
- regions = section.children(this.settings.region_selector),
385
- section_width = el.closest(this.settings.section_selector).width(),
386
- offset = regions
387
- .map(function () {
388
- return $(this).children(self.settings.title_selector);
389
- }).length;
390
- return (section_width - el.position().left - el.width() * (el.index() + 1) - offset);
391
- },
392
-
393
- reflow : function (scope) {
394
- var scope = scope || document;
395
- $(this.settings.section_selector, scope).trigger('resize');
396
- },
397
-
398
- small : function (el) {
399
- var settings = $.extend({}, this.settings, this.data_options(el));
400
-
401
- if (this.is_horizontal_tabs(el)) {
402
- return false;
403
- }
404
- if (el && this.is_accordion(el)) {
405
- return true;
406
- }
407
- if ($('html').hasClass('lt-ie9')) {
408
- return true;
409
- }
410
- if ($('html').hasClass('ie8compat')) {
411
- return true;
412
- }
413
- return $(this.scope).width() < settings.small_breakpoint;
414
- },
415
-
416
- off : function () {
417
- $(this.scope).off('.fndtn.section');
418
- $(window).off('.fndtn.section');
419
- $(document).off('.fndtn.section')
420
- }
421
- };
422
- }(Foundation.zj, this, this.document));
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
lib/foundation/normalize.css DELETED
@@ -1,402 +0,0 @@
1
- /*! normalize.css v2.1.1 | MIT License | git.io/normalize */
2
-
3
- /* ==========================================================================
4
- HTML5 display definitions
5
- ========================================================================== */
6
-
7
- /**
8
- * Correct `block` display not defined in IE 8/9.
9
- */
10
-
11
- article,
12
- aside,
13
- details,
14
- figcaption,
15
- figure,
16
- footer,
17
- header,
18
- hgroup,
19
- main,
20
- nav,
21
- section,
22
- summary {
23
- display: block;
24
- }
25
-
26
- /**
27
- * Correct `inline-block` display not defined in IE 8/9.
28
- */
29
-
30
- audio,
31
- canvas,
32
- video {
33
- display: inline-block;
34
- }
35
-
36
- /**
37
- * Prevent modern browsers from displaying `audio` without controls.
38
- * Remove excess height in iOS 5 devices.
39
- */
40
-
41
- audio:not([controls]) {
42
- display: none;
43
- height: 0;
44
- }
45
-
46
- /**
47
- * Address styling not present in IE 8/9.
48
- */
49
-
50
- [hidden] {
51
- display: none;
52
- }
53
-
54
- /* ==========================================================================
55
- Base
56
- ========================================================================== */
57
-
58
- /**
59
- * 1. Prevent system color scheme's background color being used in Firefox, IE,
60
- * and Opera.
61
- * 2. Prevent system color scheme's text color being used in Firefox, IE, and
62
- * Opera.
63
- * 3. Set default font family to sans-serif.
64
- * 4. Prevent iOS text size adjust after orientation change, without disabling
65
- * user zoom.
66
- */
67
-
68
- html {
69
- background: #fff; /* 1 */
70
- color: #000; /* 2 */
71
- font-family: sans-serif; /* 3 */
72
- -ms-text-size-adjust: 100%; /* 4 */
73
- -webkit-text-size-adjust: 100%; /* 4 */
74
- }
75
-
76
- /**
77
- * Remove default margin.
78
- */
79
-
80
- body {
81
- margin: 0;
82
- }
83
-
84
- /* ==========================================================================
85
- Links
86
- ========================================================================== */
87
-
88
- /**
89
- * Address `outline` inconsistency between Chrome and other browsers.
90
- */
91
-
92
- a:focus {
93
- outline: thin dotted;
94
- }
95
-
96
- /**
97
- * Improve readability when focused and also mouse hovered in all browsers.
98
- */
99
-
100
- a:active,
101
- a:hover {
102
- outline: 0;
103
- }
104
-
105
- /* ==========================================================================
106
- Typography
107
- ========================================================================== */
108
-
109
- /**
110
- * Address variable `h1` font-size and margin within `section` and `article`
111
- * contexts in Firefox 4+, Safari 5, and Chrome.
112
- */
113
-
114
- h1 {
115
- font-size: 2em;
116
- margin: 0.67em 0;
117
- }
118
-
119
- /**
120
- * Address styling not present in IE 8/9, Safari 5, and Chrome.
121
- */
122
-
123
- abbr[title] {
124
- border-bottom: 1px dotted;
125
- }
126
-
127
- /**
128
- * Address style set to `bolder` in Firefox 4+, Safari 5, and Chrome.
129
- */
130
-
131
- b,
132
- strong {
133
- font-weight: bold;
134
- }
135
-
136
- /**
137
- * Address styling not present in Safari 5 and Chrome.
138
- */
139
-
140
- dfn {
141
- font-style: italic;
142
- }
143
-
144
- /**
145
- * Address differences between Firefox and other browsers.
146
- */
147
-
148
- hr {
149
- -moz-box-sizing: content-box;
150
- box-sizing: content-box;
151
- height: 0;
152
- }
153
-
154
- /**
155
- * Address styling not present in IE 8/9.
156
- */
157
-
158
- mark {
159
- background: #ff0;
160
- color: #000;
161
- }
162
-
163
- /**
164
- * Correct font family set oddly in Safari 5 and Chrome.
165
- */
166
-
167
- code,
168
- kbd,
169
- pre,
170
- samp {
171
- font-family: monospace, serif;
172
- font-size: 1em;
173
- }
174
-
175
- /**
176
- * Improve readability of pre-formatted text in all browsers.
177
- */
178
-
179
- pre {
180
- white-space: pre-wrap;
181
- }
182
-
183
- /**
184
- * Set consistent quote types.
185
- */
186
-
187
- q {
188
- quotes: "\201C" "\201D" "\2018" "\2019";
189
- }
190
-
191
- /**
192
- * Address inconsistent and variable font size in all browsers.
193
- */
194
-
195
- small {
196
- font-size: 80%;
197
- }
198
-
199
- /**
200
- * Prevent `sub` and `sup` affecting `line-height` in all browsers.
201
- */
202
-
203
- sub,
204
- sup {
205
- font-size: 75%;
206
- line-height: 0;
207
- position: relative;
208
- vertical-align: baseline;
209
- }
210
-
211
- sup {
212
- top: -0.5em;
213
- }
214
-
215
- sub {
216
- bottom: -0.25em;
217
- }
218
-
219
- /* ==========================================================================
220
- Embedded content
221
- ========================================================================== */
222
-
223
- /**
224
- * Remove border when inside `a` element in IE 8/9.
225
- */
226
-
227
- img {
228
- border: 0;
229
- }
230
-
231
- /**
232
- * Correct overflow displayed oddly in IE 9.
233
- */
234
-
235
- svg:not(:root) {
236
- overflow: hidden;
237
- }
238
-
239
- /* ==========================================================================
240
- Figures
241
- ========================================================================== */
242
-
243
- /**
244
- * Address margin not present in IE 8/9 and Safari 5.
245
- */
246
-
247
- figure {
248
- margin: 0;
249
- }
250
-
251
- /* ==========================================================================
252
- Forms
253
- ========================================================================== */
254
-
255
- /**
256
- * Define consistent border, margin, and padding.
257
- */
258
-
259
- fieldset {
260
- border: 1px solid #c0c0c0;
261
- margin: 0 2px;
262
- padding: 0.35em 0.625em 0.75em;
263
- }
264
-
265
- /**
266
- * 1. Correct `color` not being inherited in IE 8/9.
267
- * 2. Remove padding so people aren't caught out if they zero out fieldsets.
268
- */
269
-
270
- legend {
271
- border: 0; /* 1 */
272
- padding: 0; /* 2 */
273
- }
274
-
275
- /**
276
- * 1. Correct font family not being inherited in all browsers.
277
- * 2. Correct font size not being inherited in all browsers.
278
- * 3. Address margins set differently in Firefox 4+, Safari 5, and Chrome.
279
- */
280
-
281
- button,
282
- input,
283
- select,
284
- textarea {
285
- font-family: inherit; /* 1 */
286
- font-size: 100%; /* 2 */
287
- margin: 0; /* 3 */
288
- }
289
-
290
- /**
291
- * Address Firefox 4+ setting `line-height` on `input` using `!important` in
292
- * the UA stylesheet.
293
- */
294
-
295
- button,
296
- input {
297
- line-height: normal;
298
- }
299
-
300
- /**
301
- * Address inconsistent `text-transform` inheritance for `button` and `select`.
302
- * All other form control elements do not inherit `text-transform` values.
303
- * Correct `button` style inheritance in Chrome, Safari 5+, and IE 8+.
304
- * Correct `select` style inheritance in Firefox 4+ and Opera.
305
- */
306
-
307
- button,
308
- select {
309
- text-transform: none;
310
- }
311
-
312
- /**
313
- * 1. Avoid the WebKit bug in Android 4.0.* where (2) destroys native `audio`
314
- * and `video` controls.
315
- * 2. Correct inability to style clickable `input` types in iOS.
316
- * 3. Improve usability and consistency of cursor style between image-type
317
- * `input` and others.
318
- */
319
-
320
- button,
321
- html input[type="button"], /* 1 */
322
- input[type="reset"],
323
- input[type="submit"] {
324
- -webkit-appearance: button; /* 2 */
325
- cursor: pointer; /* 3 */
326
- }
327
-
328
- /**
329
- * Re-set default cursor for disabled elements.
330
- */
331
-
332
- button[disabled],
333
- html input[disabled] {
334
- cursor: default;
335
- }
336
-
337
- /**
338
- * 1. Address box sizing set to `content-box` in IE 8/9.
339
- * 2. Remove excess padding in IE 8/9.
340
- */
341
-
342
- input[type="checkbox"],
343
- input[type="radio"] {
344
- box-sizing: border-box; /* 1 */
345
- padding: 0; /* 2 */
346
- }
347
-
348
- /**
349
- * 1. Address `appearance` set to `searchfield` in Safari 5 and Chrome.
350
- * 2. Address `box-sizing` set to `border-box` in Safari 5 and Chrome
351
- * (include `-moz` to future-proof).
352
- */
353
-
354
- input[type="search"] {
355
- -webkit-appearance: textfield; /* 1 */
356
- -moz-box-sizing: content-box;
357
- -webkit-box-sizing: content-box; /* 2 */
358
- box-sizing: content-box;
359
- }
360
-
361
- /**
362
- * Remove inner padding and search cancel button in Safari 5 and Chrome
363
- * on OS X.
364
- */
365
-
366
- input[type="search"]::-webkit-search-cancel-button,
367
- input[type="search"]::-webkit-search-decoration {
368
- -webkit-appearance: none;
369
- }
370
-
371
- /**
372
- * Remove inner padding and border in Firefox 4+.
373
- */
374
-
375
- button::-moz-focus-inner,
376
- input::-moz-focus-inner {
377
- border: 0;
378
- padding: 0;
379
- }
380
-
381
- /**
382
- * 1. Remove default vertical scrollbar in IE 8/9.
383
- * 2. Improve readability and alignment in all browsers.
384
- */
385
-
386
- textarea {
387
- overflow: auto; /* 1 */
388
- vertical-align: top; /* 2 */
389
- }
390
-
391
- /* ==========================================================================
392
- Tables
393
- ========================================================================== */
394
-
395
- /**
396
- * Remove most spacing between table cells.
397
- */
398
-
399
- table {
400
- border-collapse: collapse;
401
- border-spacing: 0;
402
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
lib/magnific/magnific.css DELETED
@@ -1,363 +0,0 @@
1
- /* Magnific Popup CSS */
2
- .mfp-bg {
3
- top: 0;
4
- left: 0;
5
- width: 100%;
6
- height: 100%;
7
- z-index: 1042;
8
- overflow: hidden;
9
- position: fixed;
10
- background: #0b0b0b;
11
- opacity: 0.8;
12
- filter: alpha(opacity=80); }
13
-
14
- .mfp-wrap {
15
- top: 0;
16
- left: 0;
17
- width: 100%;
18
- height: 100%;
19
- z-index: 1043;
20
- position: fixed;
21
- outline: none !important;
22
- -webkit-backface-visibility: hidden; }
23
-
24
- .mfp-container {
25
- text-align: center;
26
- position: absolute;
27
- width: 100%;
28
- height: 100%;
29
- left: 0;
30
- top: 0;
31
- padding: 0 8px;
32
- -webkit-box-sizing: border-box;
33
- -moz-box-sizing: border-box;
34
- box-sizing: border-box; }
35
-
36
- .mfp-container:before {
37
- content: '';
38
- display: inline-block;
39
- height: 100%;
40
- vertical-align: middle; }
41
-
42
- .mfp-align-top .mfp-container:before {
43
- display: none; }
44
-
45
- .mfp-content {
46
- position: relative;
47
- display: inline-block;
48
- vertical-align: middle;
49
- margin: 0 auto;
50
- text-align: left;
51
- z-index: 1045; }
52
-
53
- .mfp-inline-holder .mfp-content, .mfp-ajax-holder .mfp-content {
54
- width: 100%;
55
- cursor: auto; }
56
-
57
- .mfp-ajax-cur {
58
- cursor: progress; }
59
-
60
- .mfp-zoom-out-cur, .mfp-zoom-out-cur .mfp-image-holder .mfp-close {
61
- cursor: -moz-zoom-out;
62
- cursor: -webkit-zoom-out;
63
- cursor: zoom-out; }
64
-
65
- .mfp-zoom {
66
- cursor: pointer;
67
- cursor: -webkit-zoom-in;
68
- cursor: -moz-zoom-in;
69
- cursor: zoom-in; }
70
-
71
- .mfp-auto-cursor .mfp-content {
72
- cursor: auto; }
73
-
74
- .mfp-close, .mfp-arrow, .mfp-preloader, .mfp-counter {
75
- -webkit-user-select: none;
76
- -moz-user-select: none;
77
- user-select: none; }
78
-
79
- .mfp-loading.mfp-figure {
80
- display: none; }
81
-
82
- .mfp-hide {
83
- display: none !important; }
84
-
85
- .mfp-preloader {
86
- color: #cccccc;
87
- position: absolute;
88
- top: 50%;
89
- width: auto;
90
- text-align: center;
91
- margin-top: -0.8em;
92
- left: 8px;
93
- right: 8px;
94
- z-index: 1044; }
95
- .mfp-preloader a {
96
- color: #cccccc; }
97
- .mfp-preloader a:hover {
98
- color: white; }
99
-
100
- .mfp-s-ready .mfp-preloader {
101
- display: none; }
102
-
103
- .mfp-s-error .mfp-content {
104
- display: none; }
105
-
106
- button.mfp-close, button.mfp-arrow {
107
- overflow: visible;
108
- cursor: pointer;
109
- background: transparent;
110
- border: 0;
111
- -webkit-appearance: none;
112
- display: block;
113
- outline: none;
114
- padding: 0;
115
- z-index: 1046;
116
- -webkit-box-shadow: none;
117
- box-shadow: none; }
118
- button::-moz-focus-inner {
119
- padding: 0;
120
- border: 0; }
121
-
122
- .mfp-close {
123
- width: 44px;
124
- height: 44px;
125
- line-height: 44px;
126
- position: absolute;
127
- right: 0;
128
- top: 0;
129
- text-decoration: none;
130
- text-align: center;
131
- opacity: 0.65;
132
- padding: 0 0 18px 10px;
133
- color: white;
134
- font-style: normal;
135
- font-size: 28px;
136
- font-family: Arial, Baskerville, monospace; }
137
- .mfp-close:hover, .mfp-close:focus {
138
- opacity: 1; }
139
- .mfp-close:active {
140
- top: 1px; }
141
-
142
- .mfp-close-btn-in .mfp-close {
143
- color: #333333; }
144
-
145
- .mfp-image-holder .mfp-close, .mfp-iframe-holder .mfp-close {
146
- color: white;
147
- right: -6px;
148
- text-align: right;
149
- padding-right: 6px;
150
- width: 100%; }
151
-
152
- .mfp-counter {
153
- position: absolute;
154
- top: 0;
155
- right: 0;
156
- color: #cccccc;
157
- font-size: 12px;
158
- line-height: 18px; }
159
-
160
- .mfp-arrow {
161
- position: absolute;
162
- opacity: 0.65;
163
- margin: 0;
164
- top: 50%;
165
- margin-top: -55px;
166
- padding: 0;
167
- width: 90px;
168
- height: 110px;
169
- -webkit-tap-highlight-color: rgba(0, 0, 0, 0); }
170
- .mfp-arrow:active {
171
- margin-top: -54px; }
172
- .mfp-arrow:hover, .mfp-arrow:focus {
173
- opacity: 1; }
174
- .mfp-arrow:before, .mfp-arrow:after, .mfp-arrow .mfp-b, .mfp-arrow .mfp-a {
175
- content: '';
176
- display: block;
177
- width: 0;
178
- height: 0;
179
- position: absolute;
180
- left: 0;
181
- top: 0;
182
- margin-top: 35px;
183
- margin-left: 35px;
184
- border: medium inset transparent; }
185
- .mfp-arrow:after, .mfp-arrow .mfp-a {
186
- border-top-width: 13px;
187
- border-bottom-width: 13px;
188
- top: 8px; }
189
- .mfp-arrow:before, .mfp-arrow .mfp-b {
190
- border-top-width: 21px;
191
- border-bottom-width: 21px; }
192
-
193
- .mfp-arrow-left {
194
- left: 0; }
195
- .mfp-arrow-left:after, .mfp-arrow-left .mfp-a {
196
- border-right: 17px solid white;
197
- margin-left: 31px; }
198
- .mfp-arrow-left:before, .mfp-arrow-left .mfp-b {
199
- margin-left: 25px;
200
- border-right: 27px solid #3f3f3f; }
201
-
202
- .mfp-arrow-right {
203
- right: 0; }
204
- .mfp-arrow-right:after, .mfp-arrow-right .mfp-a {
205
- border-left: 17px solid white;
206
- margin-left: 39px; }
207
- .mfp-arrow-right:before, .mfp-arrow-right .mfp-b {
208
- border-left: 27px solid #3f3f3f; }
209
-
210
- .mfp-iframe-holder {
211
- padding-top: 40px;
212
- padding-bottom: 40px; }
213
- .mfp-iframe-holder .mfp-content {
214
- line-height: 0;
215
- width: 100%;
216
- max-width: 900px; }
217
- .mfp-iframe-holder .mfp-close {
218
- top: -40px; }
219
-
220
- .mfp-iframe-scaler {
221
- width: 100%;
222
- height: 0;
223
- overflow: hidden;
224
- padding-top: 56.25%; }
225
- .mfp-iframe-scaler iframe {
226
- position: absolute;
227
- display: block;
228
- top: 0;
229
- left: 0;
230
- width: 100%;
231
- height: 100%;
232
- box-shadow: 0 0 8px rgba(0, 0, 0, 0.6);
233
- background: black; }
234
-
235
- /* Main image in popup */
236
- img.mfp-img {
237
- width: auto;
238
- max-width: 100%;
239
- height: auto;
240
- display: block;
241
- line-height: 0;
242
- -webkit-box-sizing: border-box;
243
- -moz-box-sizing: border-box;
244
- box-sizing: border-box;
245
- padding: 40px 0 40px;
246
- margin: 0 auto; }
247
-
248
- /* The shadow behind the image */
249
- .mfp-figure {
250
- line-height: 0; }
251
- .mfp-figure:after {
252
- content: '';
253
- position: absolute;
254
- left: 0;
255
- top: 40px;
256
- bottom: 40px;
257
- display: block;
258
- right: 0;
259
- width: auto;
260
- height: auto;
261
- z-index: -1;
262
- box-shadow: 0 0 8px rgba(0, 0, 0, 0.6);
263
- background: #444444; }
264
- .mfp-figure small {
265
- color: #bdbdbd;
266
- display: block;
267
- font-size: 12px;
268
- line-height: 14px; }
269
-
270
- .mfp-bottom-bar {
271
- margin-top: -36px;
272
- position: absolute;
273
- top: 100%;
274
- left: 0;
275
- width: 100%;
276
- cursor: auto; }
277
-
278
- .mfp-title {
279
- text-align: left;
280
- line-height: 18px;
281
- color: #f3f3f3;
282
- word-wrap: break-word;
283
- padding-right: 36px; }
284
-
285
- .mfp-image-holder .mfp-content {
286
- max-width: 100%; }
287
-
288
- .mfp-gallery .mfp-image-holder .mfp-figure {
289
- cursor: pointer; }
290
-
291
- @media screen and (max-width: 800px) and (orientation: landscape), screen and (max-height: 300px) {
292
- /**
293
- * Remove all paddings around the image on small screen
294
- */
295
- .mfp-img-mobile .mfp-image-holder {
296
- padding-left: 0;
297
- padding-right: 0; }
298
- .mfp-img-mobile img.mfp-img {
299
- padding: 0; }
300
- .mfp-img-mobile .mfp-figure {
301
- /* The shadow behind the image */ }
302
- .mfp-img-mobile .mfp-figure:after {
303
- top: 0;
304
- bottom: 0; }
305
- .mfp-img-mobile .mfp-figure small {
306
- display: inline;
307
- margin-left: 5px; }
308
- .mfp-img-mobile .mfp-bottom-bar {
309
- background: rgba(0, 0, 0, 0.6);
310
- bottom: 0;
311
- margin: 0;
312
- top: auto;
313
- padding: 3px 5px;
314
- position: fixed;
315
- -webkit-box-sizing: border-box;
316
- -moz-box-sizing: border-box;
317
- box-sizing: border-box; }
318
- .mfp-img-mobile .mfp-bottom-bar:empty {
319
- padding: 0; }
320
- .mfp-img-mobile .mfp-counter {
321
- right: 5px;
322
- top: 3px; }
323
- .mfp-img-mobile .mfp-close {
324
- top: 0;
325
- right: 0;
326
- width: 35px;
327
- height: 35px;
328
- line-height: 35px;
329
- background: rgba(0, 0, 0, 0.6);
330
- position: fixed;
331
- text-align: center;
332
- padding: 0; } }
333
-
334
- @media all and (max-width: 900px) {
335
- .mfp-arrow {
336
- -webkit-transform: scale(0.75);
337
- transform: scale(0.75); }
338
- .mfp-arrow-left {
339
- -webkit-transform-origin: 0;
340
- transform-origin: 0; }
341
- .mfp-arrow-right {
342
- -webkit-transform-origin: 100%;
343
- transform-origin: 100%; }
344
- .mfp-container {
345
- padding-left: 6px;
346
- padding-right: 6px; } }
347
-
348
- .mfp-ie7 .mfp-img {
349
- padding: 0; }
350
- .mfp-ie7 .mfp-bottom-bar {
351
- width: 600px;
352
- left: 50%;
353
- margin-left: -300px;
354
- margin-top: 5px;
355
- padding-bottom: 5px; }
356
- .mfp-ie7 .mfp-container {
357
- padding: 0; }
358
- .mfp-ie7 .mfp-content {
359
- padding-top: 44px; }
360
- .mfp-ie7 .mfp-close {
361
- top: 0;
362
- right: 0;
363
- padding-top: 0; }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
lib/magnific/magnific.js DELETED
@@ -1,2042 +0,0 @@
1
- /*! Magnific Popup - v0.9.9 - 2013-11-15
2
- * http://dimsemenov.com/plugins/magnific-popup/
3
- * Copyright (c) 2013 Dmitry Semenov; */
4
- ;(function($) {
5
-
6
- /*>>core*/
7
- /**
8
- *
9
- * Magnific Popup Core JS file
10
- *
11
- */
12
-
13
-
14
- /**
15
- * Private static constants
16
- */
17
- var CLOSE_EVENT = 'Close',
18
- BEFORE_CLOSE_EVENT = 'BeforeClose',
19
- AFTER_CLOSE_EVENT = 'AfterClose',
20
- BEFORE_APPEND_EVENT = 'BeforeAppend',
21
- MARKUP_PARSE_EVENT = 'MarkupParse',
22
- OPEN_EVENT = 'Open',
23
- CHANGE_EVENT = 'Change',
24
- NS = 'mfp',
25
- EVENT_NS = '.' + NS,
26
- READY_CLASS = 'mfp-ready',
27
- REMOVING_CLASS = 'mfp-removing',
28
- PREVENT_CLOSE_CLASS = 'mfp-prevent-close';
29
-
30
-
31
- /**
32
- * Private vars
33
- */
34
- var mfp, // As we have only one instance of MagnificPopup object, we define it locally to not to use 'this'
35
- MagnificPopup = function(){},
36
- _isJQ = !!(window.jQuery),
37
- _prevStatus,
38
- _window = $(window),
39
- _body,
40
- _document,
41
- _prevContentType,
42
- _wrapClasses,
43
- _currPopupType;
44
-
45
-
46
- /**
47
- * Private functions
48
- */
49
- var _mfpOn = function(name, f) {
50
- mfp.ev.on(NS + name + EVENT_NS, f);
51
- },
52
- _getEl = function(className, appendTo, html, raw) {
53
- var el = document.createElement('div');
54
- el.className = 'mfp-'+className;
55
- if(html) {
56
- el.innerHTML = html;
57
- }
58
- if(!raw) {
59
- el = $(el);
60
- if(appendTo) {
61
- el.appendTo(appendTo);
62
- }
63
- } else if(appendTo) {
64
- appendTo.appendChild(el);
65
- }
66
- return el;
67
- },
68
- _mfpTrigger = function(e, data) {
69
- mfp.ev.triggerHandler(NS + e, data);
70
-
71
- if(mfp.st.callbacks) {
72
- // converts "mfpEventName" to "eventName" callback and triggers it if it's present
73
- e = e.charAt(0).toLowerCase() + e.slice(1);
74
- if(mfp.st.callbacks[e]) {
75
- mfp.st.callbacks[e].apply(mfp, $.isArray(data) ? data : [data]);
76
- }
77
- }
78
- },
79
- _getCloseBtn = function(type) {
80
- if(type !== _currPopupType || !mfp.currTemplate.closeBtn) {
81
- mfp.currTemplate.closeBtn = $( mfp.st.closeMarkup.replace('%title%', mfp.st.tClose ) );
82
- _currPopupType = type;
83
- }
84
- return mfp.currTemplate.closeBtn;
85
- },
86
- // Initialize Magnific Popup only when called at least once
87
- _checkInstance = function() {
88
- if(!$.magnificPopup.instance) {
89
- mfp = new MagnificPopup();
90
- mfp.init();
91
- $.magnificPopup.instance = mfp;
92
- }
93
- },
94
- // CSS transition detection, http://stackoverflow.com/questions/7264899/detect-css-transitions-using-javascript-and-without-modernizr
95
- supportsTransitions = function() {
96
- var s = document.createElement('p').style, // 's' for style. better to create an element if body yet to exist
97
- v = ['ms','O','Moz','Webkit']; // 'v' for vendor
98
-
99
- if( s['transition'] !== undefined ) {
100
- return true;
101
- }
102
-
103
- while( v.length ) {
104
- if( v.pop() + 'Transition' in s ) {
105
- return true;
106
- }
107
- }
108
-
109
- return false;
110
- };
111
-
112
-
113
-
114
- /**
115
- * Public functions
116
- */
117
- MagnificPopup.prototype = {
118
-
119
- constructor: MagnificPopup,
120
-
121
- /**
122
- * Initializes Magnific Popup plugin.
123
- * This function is triggered only once when $.fn.magnificPopup or $.magnificPopup is executed
124
- */
125
- init: function() {
126
- var appVersion = navigator.appVersion;
127
- mfp.isIE7 = appVersion.indexOf("MSIE 7.") !== -1;
128
- mfp.isIE8 = appVersion.indexOf("MSIE 8.") !== -1;
129
- mfp.isLowIE = mfp.isIE7 || mfp.isIE8;
130
- mfp.isAndroid = (/android/gi).test(appVersion);
131
- mfp.isIOS = (/iphone|ipad|ipod/gi).test(appVersion);
132
- mfp.supportsTransition = supportsTransitions();
133
-
134
- // We disable fixed positioned lightbox on devices that don't handle it nicely.
135
- // If you know a better way of detecting this - let me know.
136
- mfp.probablyMobile = (mfp.isAndroid || mfp.isIOS || /(Opera Mini)|Kindle|webOS|BlackBerry|(Opera Mobi)|(Windows Phone)|IEMobile/i.test(navigator.userAgent) );
137
- _body = $(document.body);
138
- _document = $(document);
139
-
140
- mfp.popupsCache = {};
141
- },
142
-
143
- /**
144
- * Opens popup
145
- * @param data [description]
146
- */
147
- open: function(data) {
148
-
149
- var i;
150
-
151
- if(data.isObj === false) {
152
- // convert jQuery collection to array to avoid conflicts later
153
- mfp.items = data.items.toArray();
154
-
155
- mfp.index = 0;
156
- var items = data.items,
157
- item;
158
- for(i = 0; i < items.length; i++) {
159
- item = items[i];
160
- if(item.parsed) {
161
- item = item.el[0];
162
- }
163
- if(item === data.el[0]) {
164
- mfp.index = i;
165
- break;
166
- }
167
- }
168
- } else {
169
- mfp.items = $.isArray(data.items) ? data.items : [data.items];
170
- mfp.index = data.index || 0;
171
- }
172
-
173
- // if popup is already opened - we just update the content
174
- if(mfp.isOpen) {
175
- mfp.updateItemHTML();
176
- return;
177
- }
178
-
179
- mfp.types = [];
180
- _wrapClasses = '';
181
- if(data.mainEl && data.mainEl.length) {
182
- mfp.ev = data.mainEl.eq(0);
183
- } else {
184
- mfp.ev = _document;
185
- }
186
-
187
- if(data.key) {
188
- if(!mfp.popupsCache[data.key]) {
189
- mfp.popupsCache[data.key] = {};
190
- }
191
- mfp.currTemplate = mfp.popupsCache[data.key];
192
- } else {
193
- mfp.currTemplate = {};
194
- }
195
-
196
-
197
-
198
- mfp.st = $.extend(true, {}, $.magnificPopup.defaults, data );
199
- mfp.fixedContentPos = mfp.st.fixedContentPos === 'auto' ? !mfp.probablyMobile : mfp.st.fixedContentPos;
200
-
201
- if(mfp.st.modal) {
202
- mfp.st.closeOnContentClick = false;
203
- mfp.st.closeOnBgClick = false;
204
- mfp.st.showCloseBtn = false;
205
- mfp.st.enableEscapeKey = false;
206
- }
207
-
208
-
209
- // Building markup
210
- // main containers are created only once
211
- if(!mfp.bgOverlay) {
212
-
213
- // Dark overlay
214
- mfp.bgOverlay = _getEl('bg').on('click'+EVENT_NS, function() {
215
- mfp.close();
216
- });
217
-
218
- mfp.wrap = _getEl('wrap').attr('tabindex', -1).on('click'+EVENT_NS, function(e) {
219
- if(mfp._checkIfClose(e.target)) {
220
- mfp.close();
221
- }
222
- });
223
-
224
- mfp.container = _getEl('container', mfp.wrap);
225
- }
226
-
227
- mfp.contentContainer = _getEl('content');
228
- if(mfp.st.preloader) {
229
- mfp.preloader = _getEl('preloader', mfp.container, mfp.st.tLoading);
230
- }
231
-
232
-
233
- // Initializing modules
234
- var modules = $.magnificPopup.modules;
235
- for(i = 0; i < modules.length; i++) {
236
- var n = modules[i];
237
- n = n.charAt(0).toUpperCase() + n.slice(1);
238
- mfp['init'+n].call(mfp);
239
- }
240
- _mfpTrigger('BeforeOpen');
241
-
242
-
243
- if(mfp.st.showCloseBtn) {
244
- // Close button
245
- if(!mfp.st.closeBtnInside) {
246
- mfp.wrap.append( _getCloseBtn() );
247
- } else {
248
- _mfpOn(MARKUP_PARSE_EVENT, function(e, template, values, item) {
249
- values.close_replaceWith = _getCloseBtn(item.type);
250
- });
251
- _wrapClasses += ' mfp-close-btn-in';
252
- }
253
- }
254
-
255
- if(mfp.st.alignTop) {
256
- _wrapClasses += ' mfp-align-top';
257
- }
258
-
259
-
260
-
261
- if(mfp.fixedContentPos) {
262
- mfp.wrap.css({
263
- overflow: mfp.st.overflowY,
264
- overflowX: 'hidden',
265
- overflowY: mfp.st.overflowY
266
- });
267
- } else {
268
- mfp.wrap.css({
269
- top: _window.scrollTop(),
270
- position: 'absolute'
271
- });
272
- }
273
- if( mfp.st.fixedBgPos === false || (mfp.st.fixedBgPos === 'auto' && !mfp.fixedContentPos) ) {
274
- mfp.bgOverlay.css({
275
- height: _document.height(),
276
- position: 'absolute'
277
- });
278
- }
279
-
280
-
281
-
282
- if(mfp.st.enableEscapeKey) {
283
- // Close on ESC key
284
- _document.on('keyup' + EVENT_NS, function(e) {
285
- if(e.keyCode === 27) {
286
- mfp.close();
287
- }
288
- });
289
- }
290
-
291
- _window.on('resize' + EVENT_NS, function() {
292
- mfp.updateSize();
293
- });
294
-
295
-
296
- if(!mfp.st.closeOnContentClick) {
297
- _wrapClasses += ' mfp-auto-cursor';
298
- }
299
-
300
- if(_wrapClasses)
301
- mfp.wrap.addClass(_wrapClasses);
302
-
303
-
304
- // this triggers recalculation of layout, so we get it once to not to trigger twice
305
- var windowHeight = mfp.wH = _window.height();
306
-
307
-
308
- var windowStyles = {};
309
-
310
- if( mfp.fixedContentPos ) {
311
- if(mfp._hasScrollBar(windowHeight)){
312
- var s = mfp._getScrollbarSize();
313
- if(s) {
314
- windowStyles.marginRight = s;
315
- }
316
- }
317
- }
318
-
319
- if(mfp.fixedContentPos) {
320
- if(!mfp.isIE7) {
321
- windowStyles.overflow = 'hidden';
322
- } else {
323
- // ie7 double-scroll bug
324
- $('body, html').css('overflow', 'hidden');
325
- }
326
- }
327
-
328
-
329
-
330
- var classesToadd = mfp.st.mainClass;
331
- if(mfp.isIE7) {
332
- classesToadd += ' mfp-ie7';
333
- }
334
- if(classesToadd) {
335
- mfp._addClassToMFP( classesToadd );
336
- }
337
-
338
- // add content
339
- mfp.updateItemHTML();
340
-
341
- _mfpTrigger('BuildControls');
342
-
343
-
344
- // remove scrollbar, add margin e.t.c
345
- $('html').css(windowStyles);
346
-
347
- // add everything to DOM
348
- mfp.bgOverlay.add(mfp.wrap).prependTo( document.body );
349
-
350
-
351
-
352
- // Save last focused element
353
- mfp._lastFocusedEl = document.activeElement;
354
-
355
- // Wait for next cycle to allow CSS transition
356
- setTimeout(function() {
357
-
358
- if(mfp.content) {
359
- mfp._addClassToMFP(READY_CLASS);
360
- mfp._setFocus();
361
- } else {
362
- // if content is not defined (not loaded e.t.c) we add class only for BG
363
- mfp.bgOverlay.addClass(READY_CLASS);
364
- }
365
-
366
- // Trap the focus in popup
367
- _document.on('focusin' + EVENT_NS, mfp._onFocusIn);
368
-
369
- }, 16);
370
-
371
- mfp.isOpen = true;
372
- mfp.updateSize(windowHeight);
373
- _mfpTrigger(OPEN_EVENT);
374
-
375
- return data;
376
- },
377
-
378
- /**
379
- * Closes the popup
380
- */
381
- close: function() {
382
- if(!mfp.isOpen) return;
383
- _mfpTrigger(BEFORE_CLOSE_EVENT);
384
-
385
- mfp.isOpen = false;
386
- // for CSS3 animation
387
- if(mfp.st.removalDelay && !mfp.isLowIE && mfp.supportsTransition ) {
388
- mfp._addClassToMFP(REMOVING_CLASS);
389
- setTimeout(function() {
390
- mfp._close();
391
- }, mfp.st.removalDelay);
392
- } else {
393
- mfp._close();
394
- }
395
- },
396
-
397
- /**
398
- * Helper for close() function
399
- */
400
- _close: function() {
401
- _mfpTrigger(CLOSE_EVENT);
402
-
403
- var classesToRemove = REMOVING_CLASS + ' ' + READY_CLASS + ' ';
404
-
405
- mfp.bgOverlay.detach();
406
- mfp.wrap.detach();
407
- mfp.container.empty();
408
-
409
- if(mfp.st.mainClass) {
410
- classesToRemove += mfp.st.mainClass + ' ';
411
- }
412
-
413
- mfp._removeClassFromMFP(classesToRemove);
414
-
415
- if(mfp.fixedContentPos) {
416
- var windowStyles = {marginRight: ''};
417
- if(mfp.isIE7) {
418
- $('body, html').css('overflow', '');
419
- } else {
420
- windowStyles.overflow = '';
421
- }
422
- $('html').css(windowStyles);
423
- }
424
-
425
- _document.off('keyup' + EVENT_NS + ' focusin' + EVENT_NS);
426
- mfp.ev.off(EVENT_NS);
427
-
428
- // clean up DOM elements that aren't removed
429
- mfp.wrap.attr('class', 'mfp-wrap').removeAttr('style');
430
- mfp.bgOverlay.attr('class', 'mfp-bg');
431
- mfp.container.attr('class', 'mfp-container');
432
-
433
- // remove close button from target element
434
- if(mfp.st.showCloseBtn &&
435
- (!mfp.st.closeBtnInside || mfp.currTemplate[mfp.currItem.type] === true)) {
436
- if(mfp.currTemplate.closeBtn)
437
- mfp.currTemplate.closeBtn.detach();
438
- }
439
-
440
-
441
- if(mfp._lastFocusedEl) {
442
- $(mfp._lastFocusedEl).focus(); // put tab focus back
443
- }
444
- mfp.currItem = null;
445
- mfp.content = null;
446
- mfp.currTemplate = null;
447
- mfp.prevHeight = 0;
448
-
449
- _mfpTrigger(AFTER_CLOSE_EVENT);
450
- },
451
-
452
- updateSize: function(winHeight) {
453
-
454
- if(mfp.isIOS) {
455
- // fixes iOS nav bars https://github.com/dimsemenov/Magnific-Popup/issues/2
456
- var zoomLevel = document.documentElement.clientWidth / window.innerWidth;
457
- var height = window.innerHeight * zoomLevel;
458
- mfp.wrap.css('height', height);
459
- mfp.wH = height;
460
- } else {
461
- mfp.wH = winHeight || _window.height();
462
- }
463
- // Fixes #84: popup incorrectly positioned with position:relative on body
464
- if(!mfp.fixedContentPos) {
465
- mfp.wrap.css('height', mfp.wH);
466
- }
467
-
468
- _mfpTrigger('Resize');
469
-
470
- },
471
-
472
- /**
473
- * Set content of popup based on current index
474
- */
475
- updateItemHTML: function() {
476
- var item = mfp.items[mfp.index];
477
-
478
- // Detach and perform modifications
479
- mfp.contentContainer.detach();
480
-
481
- if(mfp.content)
482
- mfp.content.detach();
483
-
484
- if(!item.parsed) {
485
- item = mfp.parseEl( mfp.index );
486
- }
487
-
488
- var type = item.type;
489
-
490
- _mfpTrigger('BeforeChange', [mfp.currItem ? mfp.currItem.type : '', type]);
491
- // BeforeChange event works like so:
492
- // _mfpOn('BeforeChange', function(e, prevType, newType) { });
493
-
494
- mfp.currItem = item;
495
-
496
-
497
-
498
-
499
-
500
- if(!mfp.currTemplate[type]) {
501
- var markup = mfp.st[type] ? mfp.st[type].markup : false;
502
-
503
- // allows to modify markup
504
- _mfpTrigger('FirstMarkupParse', markup);
505
-
506
- if(markup) {
507
- mfp.currTemplate[type] = $(markup);
508
- } else {
509
- // if there is no markup found we just define that template is parsed
510
- mfp.currTemplate[type] = true;
511
- }
512
- }
513
-
514
- if(_prevContentType && _prevContentType !== item.type) {
515
- mfp.container.removeClass('mfp-'+_prevContentType+'-holder');
516
- }
517
-
518
- var newContent = mfp['get' + type.charAt(0).toUpperCase() + type.slice(1)](item, mfp.currTemplate[type]);
519
- mfp.appendContent(newContent, type);
520
-
521
- item.preloaded = true;
522
-
523
- _mfpTrigger(CHANGE_EVENT, item);
524
- _prevContentType = item.type;
525
-
526
- // Append container back after its content changed
527
- mfp.container.prepend(mfp.contentContainer);
528
-
529
- _mfpTrigger('AfterChange');
530
- },
531
-
532
-
533
- /**
534
- * Set HTML content of popup
535
- */
536
- appendContent: function(newContent, type) {
537
- mfp.content = newContent;
538
-
539
- if(newContent) {
540
- if(mfp.st.showCloseBtn && mfp.st.closeBtnInside &&
541
- mfp.currTemplate[type] === true) {
542
- // if there is no markup, we just append close button element inside
543
- if(!mfp.content.find('.mfp-close').length) {
544
- mfp.content.append(_getCloseBtn());
545
- }
546
- } else {
547
- mfp.content = newContent;
548
- }
549
- } else {
550
- mfp.content = '';
551
- }
552
-
553
- _mfpTrigger(BEFORE_APPEND_EVENT);
554
- mfp.container.addClass('mfp-'+type+'-holder');
555
-
556
- mfp.contentContainer.append(mfp.content);
557
- },
558
-
559
-
560
-
561
-
562
- /**
563
- * Creates Magnific Popup data object based on given data
564
- * @param {int} index Index of item to parse
565
- */
566
- parseEl: function(index) {
567
- var item = mfp.items[index],
568
- type = item.type;
569
-
570
- if(item.tagName) {
571
- item = { el: $(item) };
572
- } else {
573
- item = { data: item, src: item.src };
574
- }
575
-
576
- if(item.el) {
577
- var types = mfp.types;
578
-
579
- // check for 'mfp-TYPE' class
580
- for(var i = 0; i < types.length; i++) {
581
- if( item.el.hasClass('mfp-'+types[i]) ) {
582
- type = types[i];
583
- break;
584
- }
585
- }
586
-
587
- item.src = item.el.attr('data-mfp-src');
588
- if(!item.src) {
589
- item.src = item.el.attr('href');
590
- }
591
- }
592
-
593
- item.type = type || mfp.st.type || 'inline';
594
- item.index = index;
595
- item.parsed = true;
596
- mfp.items[index] = item;
597
- _mfpTrigger('ElementParse', item);
598
-
599
- return mfp.items[index];
600
- },
601
-
602
-
603
- /**
604
- * Initializes single popup or a group of popups
605
- */
606
- addGroup: function(el, options) {
607
- var eHandler = function(e) {
608
- e.mfpEl = this;
609
- mfp._openClick(e, el, options);
610
- };
611
-
612
- if(!options) {
613
- options = {};
614
- }
615
-
616
- var eName = 'click.magnificPopup';
617
- options.mainEl = el;
618
-
619
- if(options.items) {
620
- options.isObj = true;
621
- el.off(eName).on(eName, eHandler);
622
- } else {
623
- options.isObj = false;
624
- if(options.delegate) {
625
- el.off(eName).on(eName, options.delegate , eHandler);
626
- } else {
627
- options.items = el;
628
- el.off(eName).on(eName, eHandler);
629
- }
630
- }
631
- },
632
- _openClick: function(e, el, options) {
633
- var midClick = options.midClick !== undefined ? options.midClick : $.magnificPopup.defaults.midClick;
634
-
635
-
636
- if(!midClick && ( e.which === 2 || e.ctrlKey || e.metaKey ) ) {
637
- return;
638
- }
639
-
640
- var disableOn = options.disableOn !== undefined ? options.disableOn : $.magnificPopup.defaults.disableOn;
641
-
642
- if(disableOn) {
643
- if($.isFunction(disableOn)) {
644
- if( !disableOn.call(mfp) ) {
645
- return true;
646
- }
647
- } else { // else it's number
648
- if( _window.width() < disableOn ) {
649
- return true;
650
- }
651
- }
652
- }
653
-
654
- if(e.type) {
655
- e.preventDefault();
656
-
657
- // This will prevent popup from closing if element is inside and popup is already opened
658
- if(mfp.isOpen) {
659
- e.stopPropagation();
660
- }
661
- }
662
-
663
-
664
- options.el = $(e.mfpEl);
665
- if(options.delegate) {
666
- options.items = el.find(options.delegate);
667
- }
668
- mfp.open(options);
669
- },
670
-
671
-
672
- /**
673
- * Updates text on preloader
674
- */
675
- updateStatus: function(status, text) {
676
-
677
- if(mfp.preloader) {
678
- if(_prevStatus !== status) {
679
- mfp.container.removeClass('mfp-s-'+_prevStatus);
680
- }
681
-
682
- if(!text && status === 'loading') {
683
- text = mfp.st.tLoading;
684
- }
685
-
686
- var data = {
687
- status: status,
688
- text: text
689
- };
690
- // allows to modify status
691
- _mfpTrigger('UpdateStatus', data);
692
-
693
- status = data.status;
694
- text = data.text;
695
-
696
- mfp.preloader.html(text);
697
-
698
- mfp.preloader.find('a').on('click', function(e) {
699
- e.stopImmediatePropagation();
700
- });
701
-
702
- mfp.container.addClass('mfp-s-'+status);
703
- _prevStatus = status;
704
- }
705
- },
706
-
707
-
708
- /*
709
- "Private" helpers that aren't private at all
710
- */
711
- // Check to close popup or not
712
- // "target" is an element that was clicked
713
- _checkIfClose: function(target) {
714
-
715
- if($(target).hasClass(PREVENT_CLOSE_CLASS)) {
716
- return;
717
- }
718
-
719
- var closeOnContent = mfp.st.closeOnContentClick;
720
- var closeOnBg = mfp.st.closeOnBgClick;
721
-
722
- if(closeOnContent && closeOnBg) {
723
- return true;
724
- } else {
725
-
726
- // We close the popup if click is on close button or on preloader. Or if there is no content.
727
- if(!mfp.content || $(target).hasClass('mfp-close') || (mfp.preloader && target === mfp.preloader[0]) ) {
728
- return true;
729
- }
730
-
731
- // if click is outside the content
732
- if( (target !== mfp.content[0] && !$.contains(mfp.content[0], target)) ) {
733
- if(closeOnBg) {
734
- // last check, if the clicked element is in DOM, (in case it's removed onclick)
735
- if( $.contains(document, target) ) {
736
- return true;
737
- }
738
- }
739
- } else if(closeOnContent) {
740
- return true;
741
- }
742
-
743
- }
744
- return false;
745
- },
746
- _addClassToMFP: function(cName) {
747
- mfp.bgOverlay.addClass(cName);
748
- mfp.wrap.addClass(cName);
749
- },
750
- _removeClassFromMFP: function(cName) {
751
- this.bgOverlay.removeClass(cName);
752
- mfp.wrap.removeClass(cName);
753
- },
754
- _hasScrollBar: function(winHeight) {
755
- return ( (mfp.isIE7 ? _document.height() : document.body.scrollHeight) > (winHeight || _window.height()) );
756
- },
757
- _setFocus: function() {
758
- (mfp.st.focus ? mfp.content.find(mfp.st.focus).eq(0) : mfp.wrap).focus();
759
- },
760
- _onFocusIn: function(e) {
761
- if( e.target !== mfp.wrap[0] && !$.contains(mfp.wrap[0], e.target) ) {
762
- mfp._setFocus();
763
- return false;
764
- }
765
- },
766
- _parseMarkup: function(template, values, item) {
767
- var arr;
768
- if(item.data) {
769
- values = $.extend(item.data, values);
770
- }
771
- _mfpTrigger(MARKUP_PARSE_EVENT, [template, values, item] );
772
-
773
- $.each(values, function(key, value) {
774
- if(value === undefined || value === false) {
775
- return true;
776
- }
777
- arr = key.split('_');
778
- if(arr.length > 1) {
779
- var el = template.find(EVENT_NS + '-'+arr[0]);
780
-
781
- if(el.length > 0) {
782
- var attr = arr[1];
783
- if(attr === 'replaceWith') {
784
- if(el[0] !== value[0]) {
785
- el.replaceWith(value);
786
- }
787
- } else if(attr === 'img') {
788
- if(el.is('img')) {
789
- el.attr('src', value);
790
- } else {
791
- el.replaceWith( '<img src="'+value+'" class="' + el.attr('class') + '" />' );
792
- }
793
- } else {
794
- el.attr(arr[1], value);
795
- }
796
- }
797
-
798
- } else {
799
- template.find(EVENT_NS + '-'+key).html(value);
800
- }
801
- });
802
- },
803
-
804
- _getScrollbarSize: function() {
805
- // thx David
806
- if(mfp.scrollbarSize === undefined) {
807
- var scrollDiv = document.createElement("div");
808
- scrollDiv.id = "mfp-sbm";
809
- scrollDiv.style.cssText = 'width: 99px; height: 99px; overflow: scroll; position: absolute; top: -9999px;';
810
- document.body.appendChild(scrollDiv);
811
- mfp.scrollbarSize = scrollDiv.offsetWidth - scrollDiv.clientWidth;
812
- document.body.removeChild(scrollDiv);
813
- }
814
- return mfp.scrollbarSize;
815
- }
816
-
817
- }; /* MagnificPopup core prototype end */
818
-
819
-
820
-
821
-
822
- /**
823
- * Public static functions
824
- */
825
- $.magnificPopup = {
826
- instance: null,
827
- proto: MagnificPopup.prototype,
828
- modules: [],
829
-
830
- open: function(options, index) {
831
- _checkInstance();
832
-
833
- if(!options) {
834
- options = {};
835
- } else {
836
- options = $.extend(true, {}, options);
837
- }
838
-
839
-
840
- options.isObj = true;
841
- options.index = index || 0;
842
- return this.instance.open(options);
843
- },
844
-
845
- close: function() {
846
- return $.magnificPopup.instance && $.magnificPopup.instance.close();
847
- },
848
-
849
- registerModule: function(name, module) {
850
- if(module.options) {
851
- $.magnificPopup.defaults[name] = module.options;
852
- }
853
- $.extend(this.proto, module.proto);
854
- this.modules.push(name);
855
- },
856
-
857
- defaults: {
858
-
859
- // Info about options is in docs:
860
- // http://dimsemenov.com/plugins/magnific-popup/documentation.html#options
861
-
862
- disableOn: 0,
863
-
864
- key: null,
865
-
866
- midClick: false,
867
-
868
- mainClass: '',
869
-
870
- preloader: true,
871
-
872
- focus: '', // CSS selector of input to focus after popup is opened
873
-
874
- closeOnContentClick: false,
875
-
876
- closeOnBgClick: true,
877
-
878
- closeBtnInside: true,
879
-
880
- showCloseBtn: true,
881
-
882
- enableEscapeKey: true,
883
-
884
- modal: false,
885
-
886
- alignTop: false,
887
-
888
- removalDelay: 0,
889
-
890
- fixedContentPos: 'auto',
891
-
892
- fixedBgPos: 'auto',
893
-
894
- overflowY: 'auto',
895
-
896
- closeMarkup: '<button title="%title%" type="button" class="mfp-close">&times;</button>',
897
-
898
- tClose: 'Close (Esc)',
899
-
900
- tLoading: 'Loading...'
901
-
902
- }
903
- };
904
-
905
-
906
-
907
- $.fn.magnificPopup = function(options) {
908
- _checkInstance();
909
-
910
- var jqEl = $(this);
911
-
912
- // We call some API method of first param is a string
913
- if (typeof options === "string" ) {
914
-
915
- if(options === 'open') {
916
- var items,
917
- itemOpts = _isJQ ? jqEl.data('magnificPopup') : jqEl[0].magnificPopup,
918
- index = parseInt(arguments[1], 10) || 0;
919
-
920
- if(itemOpts.items) {
921
- items = itemOpts.items[index];
922
- } else {
923
- items = jqEl;
924
- if(itemOpts.delegate) {
925
- items = items.find(itemOpts.delegate);
926
- }
927
- items = items.eq( index );
928
- }
929
- mfp._openClick({mfpEl:items}, jqEl, itemOpts);
930
- } else {
931
- if(mfp.isOpen)
932
- mfp[options].apply(mfp, Array.prototype.slice.call(arguments, 1));
933
- }
934
-
935
- } else {
936
- // clone options obj
937
- options = $.extend(true, {}, options);
938
-
939
- /*
940
- * As Zepto doesn't support .data() method for objects
941
- * and it works only in normal browsers
942
- * we assign "options" object directly to the DOM element. FTW!
943
- */
944
- if(_isJQ) {
945
- jqEl.data('magnificPopup', options);
946
- } else {
947
- jqEl[0].magnificPopup = options;
948
- }
949
-
950
- mfp.addGroup(jqEl, options);
951
-
952
- }
953
- return jqEl;
954
- };
955
-
956
-
957
- //Quick benchmark
958
- /*
959
- var start = performance.now(),
960
- i,
961
- rounds = 1000;
962
-
963
- for(i = 0; i < rounds; i++) {
964
-
965
- }
966
- console.log('Test #1:', performance.now() - start);
967
-
968
- start = performance.now();
969
- for(i = 0; i < rounds; i++) {
970
-
971
- }
972
- console.log('Test #2:', performance.now() - start);
973
- */
974
-
975
-
976
- /*>>core*/
977
-
978
- /*>>inline*/
979
-
980
- var INLINE_NS = 'inline',
981
- _hiddenClass,
982
- _inlinePlaceholder,
983
- _lastInlineElement,
984
- _putInlineElementsBack = function() {
985
- if(_lastInlineElement) {
986
- _inlinePlaceholder.after( _lastInlineElement.addClass(_hiddenClass) ).detach();
987
- _lastInlineElement = null;
988
- }
989
- };
990
-
991
- $.magnificPopup.registerModule(INLINE_NS, {
992
- options: {
993
- hiddenClass: 'hide', // will be appended with `mfp-` prefix
994
- markup: '',
995
- tNotFound: 'Content not found'
996
- },
997
- proto: {
998
-
999
- initInline: function() {
1000
- mfp.types.push(INLINE_NS);
1001
-
1002
- _mfpOn(CLOSE_EVENT+'.'+INLINE_NS, function() {
1003
- _putInlineElementsBack();
1004
- });
1005
- },
1006
-
1007
- getInline: function(item, template) {
1008
-
1009
- _putInlineElementsBack();
1010
-
1011
- if(item.src) {
1012
- var inlineSt = mfp.st.inline,
1013
- el = $(item.src);
1014
-
1015
- if(el.length) {
1016
-
1017
- // If target element has parent - we replace it with placeholder and put it back after popup is closed
1018
- var parent = el[0].parentNode;
1019
- if(parent && parent.tagName) {
1020
- if(!_inlinePlaceholder) {
1021
- _hiddenClass = inlineSt.hiddenClass;
1022
- _inlinePlaceholder = _getEl(_hiddenClass);
1023
- _hiddenClass = 'mfp-'+_hiddenClass;
1024
- }
1025
- // replace target inline element with placeholder
1026
- _lastInlineElement = el.after(_inlinePlaceholder).detach().removeClass(_hiddenClass);
1027
- }
1028
-
1029
- mfp.updateStatus('ready');
1030
- } else {
1031
- mfp.updateStatus('error', inlineSt.tNotFound);
1032
- el = $('<div>');
1033
- }
1034
-
1035
- item.inlineElement = el;
1036
- return el;
1037
- }
1038
-
1039
- mfp.updateStatus('ready');
1040
- mfp._parseMarkup(template, {}, item);
1041
- return template;
1042
- }
1043
- }
1044
- });
1045
-
1046
- /*>>inline*/
1047
-
1048
- /*>>ajax*/
1049
- var AJAX_NS = 'ajax',
1050
- _ajaxCur,
1051
- _removeAjaxCursor = function() {
1052
- if(_ajaxCur) {
1053
- _body.removeClass(_ajaxCur);
1054
- }
1055
- },
1056
- _destroyAjaxRequest = function() {
1057
- _removeAjaxCursor();
1058
- if(mfp.req) {
1059
- mfp.req.abort();
1060
- }
1061
- };
1062
-
1063
- $.magnificPopup.registerModule(AJAX_NS, {
1064
-
1065
- options: {
1066
- settings: null,
1067
- cursor: 'mfp-ajax-cur',
1068
- tError: '<a href="%url%">The content</a> could not be loaded.'
1069
- },
1070
-
1071
- proto: {
1072
- initAjax: function() {
1073
- mfp.types.push(AJAX_NS);
1074
- _ajaxCur = mfp.st.ajax.cursor;
1075
-
1076
- _mfpOn(CLOSE_EVENT+'.'+AJAX_NS, _destroyAjaxRequest);
1077
- _mfpOn('BeforeChange.' + AJAX_NS, _destroyAjaxRequest);
1078
- },
1079
- getAjax: function(item) {
1080
-
1081
- if(_ajaxCur)
1082
- _body.addClass(_ajaxCur);
1083
-
1084
- mfp.updateStatus('loading');
1085
-
1086
- var opts = $.extend({
1087
- url: item.src,
1088
- success: function(data, textStatus, jqXHR) {
1089
- var temp = {
1090
- data:data,
1091
- xhr:jqXHR
1092
- };
1093
-
1094
- _mfpTrigger('ParseAjax', temp);
1095
-
1096
- mfp.appendContent( $(temp.data), AJAX_NS );
1097
-
1098
- item.finished = true;
1099
-
1100
- _removeAjaxCursor();
1101
-
1102
- mfp._setFocus();
1103
-
1104
- setTimeout(function() {
1105
- mfp.wrap.addClass(READY_CLASS);
1106
- }, 16);
1107
-
1108
- mfp.updateStatus('ready');
1109
-
1110
- _mfpTrigger('AjaxContentAdded');
1111
- },
1112
- error: function() {
1113
- _removeAjaxCursor();
1114
- item.finished = item.loadError = true;
1115
- mfp.updateStatus('error', mfp.st.ajax.tError.replace('%url%', item.src));
1116
- }
1117
- }, mfp.st.ajax.settings);
1118
-
1119
- mfp.req = $.ajax(opts);
1120
-
1121
- return '';
1122
- }
1123
- }
1124
- });
1125
-
1126
-
1127
-
1128
-
1129
-
1130
-
1131
-
1132
- /*>>ajax*/
1133
-
1134
- /*>>image*/
1135
- var _imgInterval,
1136
- _getTitle = function(item) {
1137
- if(item.data && item.data.title !== undefined)
1138
- return item.data.title;
1139
-
1140
- var src = mfp.st.image.titleSrc;
1141
-
1142
- if(src) {
1143
- if($.isFunction(src)) {
1144
- return src.call(mfp, item);
1145
- } else if(item.el) {
1146
- return item.el.attr(src) || '';
1147
- }
1148
- }
1149
- return '';
1150
- };
1151
-
1152
- $.magnificPopup.registerModule('image', {
1153
-
1154
- options: {
1155
- markup: '<div class="mfp-figure">'+
1156
- '<div class="mfp-close"></div>'+
1157
- '<figure>'+
1158
- '<div class="mfp-img"></div>'+
1159
- '<figcaption>'+
1160
- '<div class="mfp-bottom-bar">'+
1161
- '<div class="mfp-title"></div>'+
1162
- '<div class="mfp-counter"></div>'+
1163
- '</div>'+
1164
- '</figcaption>'+
1165
- '</figure>'+
1166
- '</div>',
1167
- cursor: 'mfp-zoom-out-cur',
1168
- titleSrc: 'title',
1169
- verticalFit: true,
1170
- tError: '<a href="%url%">The image</a> could not be loaded.'
1171
- },
1172
-
1173
- proto: {
1174
- initImage: function() {
1175
- var imgSt = mfp.st.image,
1176
- ns = '.image';
1177
-
1178
- mfp.types.push('image');
1179
-
1180
- _mfpOn(OPEN_EVENT+ns, function() {
1181
- if(mfp.currItem.type === 'image' && imgSt.cursor) {
1182
- _body.addClass(imgSt.cursor);
1183
- }
1184
- });
1185
-
1186
- _mfpOn(CLOSE_EVENT+ns, function() {
1187
- if(imgSt.cursor) {
1188
- _body.removeClass(imgSt.cursor);
1189
- }
1190
- _window.off('resize' + EVENT_NS);
1191
- });
1192
-
1193
- _mfpOn('Resize'+ns, mfp.resizeImage);
1194
- if(mfp.isLowIE) {
1195
- _mfpOn('AfterChange', mfp.resizeImage);
1196
- }
1197
- },
1198
- resizeImage: function() {
1199
- var item = mfp.currItem;
1200
- if(!item || !item.img) return;
1201
-
1202
- if(mfp.st.image.verticalFit) {
1203
- var decr = 0;
1204
- // fix box-sizing in ie7/8
1205
- if(mfp.isLowIE) {
1206
- decr = parseInt(item.img.css('padding-top'), 10) + parseInt(item.img.css('padding-bottom'),10);
1207
- }
1208
- item.img.css('max-height', mfp.wH-decr);
1209
- }
1210
- },
1211
- _onImageHasSize: function(item) {
1212
- if(item.img) {
1213
-
1214
- item.hasSize = true;
1215
-
1216
- if(_imgInterval) {
1217
- clearInterval(_imgInterval);
1218
- }
1219
-
1220
- item.isCheckingImgSize = false;
1221
-
1222
- _mfpTrigger('ImageHasSize', item);
1223
-
1224
- if(item.imgHidden) {
1225
- if(mfp.content)
1226
- mfp.content.removeClass('mfp-loading');
1227
-
1228
- item.imgHidden = false;
1229
- }
1230
-
1231
- }
1232
- },
1233
-
1234
- /**
1235
- * Function that loops until the image has size to display elements that rely on it asap
1236
- */
1237
- findImageSize: function(item) {
1238
-
1239
- var counter = 0,
1240
- img = item.img[0],
1241
- mfpSetInterval = function(delay) {
1242
-
1243
- if(_imgInterval) {
1244
- clearInterval(_imgInterval);
1245
- }
1246
- // decelerating interval that checks for size of an image
1247
- _imgInterval = setInterval(function() {
1248
- if(img.naturalWidth > 0) {
1249
- mfp._onImageHasSize(item);
1250
- return;
1251
- }
1252
-
1253
- if(counter > 200) {
1254
- clearInterval(_imgInterval);
1255
- }
1256
-
1257
- counter++;
1258
- if(counter === 3) {
1259
- mfpSetInterval(10);
1260
- } else if(counter === 40) {
1261
- mfpSetInterval(50);
1262
- } else if(counter === 100) {
1263
- mfpSetInterval(500);
1264
- }
1265
- }, delay);
1266
- };
1267
-
1268
- mfpSetInterval(1);
1269
- },
1270
-
1271
- getImage: function(item, template) {
1272
-
1273
- var guard = 0,
1274
-
1275
- // image load complete handler
1276
- onLoadComplete = function() {
1277
- if(item) {
1278
- if (item.img[0].complete) {
1279
- item.img.off('.mfploader');
1280
-
1281
- if(item === mfp.currItem){
1282
- mfp._onImageHasSize(item);
1283
-
1284
- mfp.updateStatus('ready');
1285
- }
1286
-
1287
- item.hasSize = true;
1288
- item.loaded = true;
1289
-
1290
- _mfpTrigger('ImageLoadComplete');
1291
-
1292
- }
1293
- else {
1294
- // if image complete check fails 200 times (20 sec), we assume that there was an error.
1295
- guard++;
1296
- if(guard < 200) {
1297
- setTimeout(onLoadComplete,100);
1298
- } else {
1299
- onLoadError();
1300
- }
1301
- }
1302
- }
1303
- },
1304
-
1305
- // image error handler
1306
- onLoadError = function() {
1307
- if(item) {
1308
- item.img.off('.mfploader');
1309
- if(item === mfp.currItem){
1310
- mfp._onImageHasSize(item);
1311
- mfp.updateStatus('error', imgSt.tError.replace('%url%', item.src) );
1312
- }
1313
-
1314
- item.hasSize = true;
1315
- item.loaded = true;
1316
- item.loadError = true;
1317
- }
1318
- },
1319
- imgSt = mfp.st.image;
1320
-
1321
-
1322
- var el = template.find('.mfp-img');
1323
- if(el.length) {
1324
- var img = document.createElement('img');
1325
- img.className = 'mfp-img';
1326
- item.img = $(img).on('load.mfploader', onLoadComplete).on('error.mfploader', onLoadError);
1327
- img.src = item.src;
1328
-
1329
- // without clone() "error" event is not firing when IMG is replaced by new IMG
1330
- // TODO: find a way to avoid such cloning
1331
- if(el.is('img')) {
1332
- item.img = item.img.clone();
1333
- }
1334
- if(item.img[0].naturalWidth > 0) {
1335
- item.hasSize = true;
1336
- }
1337
- }
1338
-
1339
- mfp._parseMarkup(template, {
1340
- title: _getTitle(item),
1341
- img_replaceWith: item.img
1342
- }, item);
1343
-
1344
- mfp.resizeImage();
1345
-
1346
- if(item.hasSize) {
1347
- if(_imgInterval) clearInterval(_imgInterval);
1348
-
1349
- if(item.loadError) {
1350
- template.addClass('mfp-loading');
1351
- mfp.updateStatus('error', imgSt.tError.replace('%url%', item.src) );
1352
- } else {
1353
- template.removeClass('mfp-loading');
1354
- mfp.updateStatus('ready');
1355
- }
1356
- return template;
1357
- }
1358
-
1359
- mfp.updateStatus('loading');
1360
- item.loading = true;
1361
-
1362
- if(!item.hasSize) {
1363
- item.imgHidden = true;
1364
- template.addClass('mfp-loading');
1365
- mfp.findImageSize(item);
1366
- }
1367
-
1368
- return template;
1369
- }
1370
- }
1371
- });
1372
-
1373
-
1374
-
1375
- /*>>image*/
1376
-
1377
- /*>>zoom*/
1378
- var hasMozTransform,
1379
- getHasMozTransform = function() {
1380
- if(hasMozTransform === undefined) {
1381
- hasMozTransform = document.createElement('p').style.MozTransform !== undefined;
1382
- }
1383
- return hasMozTransform;
1384
- };
1385
-
1386
- $.magnificPopup.registerModule('zoom', {
1387
-
1388
- options: {
1389
- enabled: false,
1390
- easing: 'ease-in-out',
1391
- duration: 300,
1392
- opener: function(element) {
1393
- return element.is('img') ? element : element.find('img');
1394
- }
1395
- },
1396
-
1397
- proto: {
1398
-
1399
- initZoom: function() {
1400
- var zoomSt = mfp.st.zoom,
1401
- ns = '.zoom',
1402
- image;
1403
-
1404
- if(!zoomSt.enabled || !mfp.supportsTransition) {
1405
- return;
1406
- }
1407
-
1408
- var duration = zoomSt.duration,
1409
- getElToAnimate = function(image) {
1410
- var newImg = image.clone().removeAttr('style').removeAttr('class').addClass('mfp-animated-image'),
1411
- transition = 'all '+(zoomSt.duration/1000)+'s ' + zoomSt.easing,
1412
- cssObj = {
1413
- position: 'fixed',
1414
- zIndex: 9999,
1415
- left: 0,
1416
- top: 0,
1417
- '-webkit-backface-visibility': 'hidden'
1418
- },
1419
- t = 'transition';
1420
-
1421
- cssObj['-webkit-'+t] = cssObj['-moz-'+t] = cssObj['-o-'+t] = cssObj[t] = transition;
1422
-
1423
- newImg.css(cssObj);
1424
- return newImg;
1425
- },
1426
- showMainContent = function() {
1427
- mfp.content.css('visibility', 'visible');
1428
- },
1429
- openTimeout,
1430
- animatedImg;
1431
-
1432
- _mfpOn('BuildControls'+ns, function() {
1433
- if(mfp._allowZoom()) {
1434
-
1435
- clearTimeout(openTimeout);
1436
- mfp.content.css('visibility', 'hidden');
1437
-
1438
- // Basically, all code below does is clones existing image, puts in on top of the current one and animated it
1439
-
1440
- image = mfp._getItemToZoom();
1441
-
1442
- if(!image) {
1443
- showMainContent();
1444
- return;
1445
- }
1446
-
1447
- animatedImg = getElToAnimate(image);
1448
-
1449
- animatedImg.css( mfp._getOffset() );
1450
-
1451
- mfp.wrap.append(animatedImg);
1452
-
1453
- openTimeout = setTimeout(function() {
1454
- animatedImg.css( mfp._getOffset( true ) );
1455
- openTimeout = setTimeout(function() {
1456
-
1457
- showMainContent();
1458
-
1459
- setTimeout(function() {
1460
- animatedImg.remove();
1461
- image = animatedImg = null;
1462
- _mfpTrigger('ZoomAnimationEnded');
1463
- }, 16); // avoid blink when switching images
1464
-
1465
- }, duration); // this timeout equals animation duration
1466
-
1467
- }, 16); // by adding this timeout we avoid short glitch at the beginning of animation
1468
-
1469
-
1470
- // Lots of timeouts...
1471
- }
1472
- });
1473
- _mfpOn(BEFORE_CLOSE_EVENT+ns, function() {
1474
- if(mfp._allowZoom()) {
1475
-
1476
- clearTimeout(openTimeout);
1477
-
1478
- mfp.st.removalDelay = duration;
1479
-
1480
- if(!image) {
1481
- image = mfp._getItemToZoom();
1482
- if(!image) {
1483
- return;
1484
- }
1485
- animatedImg = getElToAnimate(image);
1486
- }
1487
-
1488
-
1489
- animatedImg.css( mfp._getOffset(true) );
1490
- mfp.wrap.append(animatedImg);
1491
- mfp.content.css('visibility', 'hidden');
1492
-
1493
- setTimeout(function() {
1494
- animatedImg.css( mfp._getOffset() );
1495
- }, 16);
1496
- }
1497
-
1498
- });
1499
-
1500
- _mfpOn(CLOSE_EVENT+ns, function() {
1501
- if(mfp._allowZoom()) {
1502
- showMainContent();
1503
- if(animatedImg) {
1504
- animatedImg.remove();
1505
- }
1506
- image = null;
1507
- }
1508
- });
1509
- },
1510
-
1511
- _allowZoom: function() {
1512
- return mfp.currItem.type === 'image';
1513
- },
1514
-
1515
- _getItemToZoom: function() {
1516
- if(mfp.currItem.hasSize) {
1517
- return mfp.currItem.img;
1518
- } else {
1519
- return false;
1520
- }
1521
- },
1522
-
1523
- // Get element postion relative to viewport
1524
- _getOffset: function(isLarge) {
1525
- var el;
1526
- if(isLarge) {
1527
- el = mfp.currItem.img;
1528
- } else {
1529
- el = mfp.st.zoom.opener(mfp.currItem.el || mfp.currItem);
1530
- }
1531
-
1532
- var offset = el.offset();
1533
- var paddingTop = parseInt(el.css('padding-top'),10);
1534
- var paddingBottom = parseInt(el.css('padding-bottom'),10);
1535
- offset.top -= ( $(window).scrollTop() - paddingTop );
1536
-
1537
-
1538
- /*
1539
-
1540
- Animating left + top + width/height looks glitchy in Firefox, but perfect in Chrome. And vice-versa.
1541
-
1542
- */
1543
- var obj = {
1544
- width: el.width(),
1545
- // fix Zepto height+padding issue
1546
- height: (_isJQ ? el.innerHeight() : el[0].offsetHeight) - paddingBottom - paddingTop
1547
- };
1548
-
1549
- // I hate to do this, but there is no another option
1550
- if( getHasMozTransform() ) {
1551
- obj['-moz-transform'] = obj['transform'] = 'translate(' + offset.left + 'px,' + offset.top + 'px)';
1552
- } else {
1553
- obj.left = offset.left;
1554
- obj.top = offset.top;
1555
- }
1556
- return obj;
1557
- }
1558
-
1559
- }
1560
- });
1561
-
1562
-
1563
-
1564
- /*>>zoom*/
1565
-
1566
- /*>>iframe*/
1567
-
1568
- var IFRAME_NS = 'iframe',
1569
- _emptyPage = '//about:blank',
1570
-
1571
- _fixIframeBugs = function(isShowing) {
1572
- if(mfp.currTemplate[IFRAME_NS]) {
1573
- var el = mfp.currTemplate[IFRAME_NS].find('iframe');
1574
- if(el.length) {
1575
- // reset src after the popup is closed to avoid "video keeps playing after popup is closed" bug
1576
- if(!isShowing) {
1577
- el[0].src = _emptyPage;
1578
- }
1579
-
1580
- // IE8 black screen bug fix
1581
- if(mfp.isIE8) {
1582
- el.css('display', isShowing ? 'block' : 'none');
1583
- }
1584
- }
1585
- }
1586
- };
1587
-
1588
- $.magnificPopup.registerModule(IFRAME_NS, {
1589
-
1590
- options: {
1591
- markup: '<div class="mfp-iframe-scaler">'+
1592
- '<div class="mfp-close"></div>'+
1593
- '<iframe class="mfp-iframe" src="//about:blank" frameborder="0" allowfullscreen></iframe>'+
1594
- '</div>',
1595
-
1596
- srcAction: 'iframe_src',
1597
-
1598
- // we don't care and support only one default type of URL by default
1599
- patterns: {
1600
- youtube: {
1601
- index: 'youtube.com',
1602
- id: 'v=',
1603
- src: '//www.youtube.com/embed/%id%?autoplay=1'
1604
- },
1605
- vimeo: {
1606
- index: 'vimeo.com/',
1607
- id: '/',
1608
- src: '//player.vimeo.com/video/%id%?autoplay=1'
1609
- },
1610
- gmaps: {
1611
- index: '//maps.google.',
1612
- src: '%id%&output=embed'
1613
- }
1614
- }
1615
- },
1616
-
1617
- proto: {
1618
- initIframe: function() {
1619
- mfp.types.push(IFRAME_NS);
1620
-
1621
- _mfpOn('BeforeChange', function(e, prevType, newType) {
1622
- if(prevType !== newType) {
1623
- if(prevType === IFRAME_NS) {
1624
- _fixIframeBugs(); // iframe if removed
1625
- } else if(newType === IFRAME_NS) {
1626
- _fixIframeBugs(true); // iframe is showing
1627
- }
1628
- }// else {
1629
- // iframe source is switched, don't do anything
1630
- //}
1631
- });
1632
-
1633
- _mfpOn(CLOSE_EVENT + '.' + IFRAME_NS, function() {
1634
- _fixIframeBugs();
1635
- });
1636
- },
1637
-
1638
- getIframe: function(item, template) {
1639
- var embedSrc = item.src;
1640
- var iframeSt = mfp.st.iframe;
1641
-
1642
- $.each(iframeSt.patterns, function() {
1643
- if(embedSrc.indexOf( this.index ) > -1) {
1644
- if(this.id) {
1645
- if(typeof this.id === 'string') {
1646
- embedSrc = embedSrc.substr(embedSrc.lastIndexOf(this.id)+this.id.length, embedSrc.length);
1647
- } else {
1648
- embedSrc = this.id.call( this, embedSrc );
1649
- }
1650
- }
1651
- embedSrc = this.src.replace('%id%', embedSrc );
1652
- return false; // break;
1653
- }
1654
- });
1655
-
1656
- var dataObj = {};
1657
- if(iframeSt.srcAction) {
1658
- dataObj[iframeSt.srcAction] = embedSrc;
1659
- }
1660
- mfp._parseMarkup(template, dataObj, item);
1661
-
1662
- mfp.updateStatus('ready');
1663
-
1664
- return template;
1665
- }
1666
- }
1667
- });
1668
-
1669
-
1670
-
1671
- /*>>iframe*/
1672
-
1673
- /*>>gallery*/
1674
- /**
1675
- * Get looped index depending on number of slides
1676
- */
1677
- var _getLoopedId = function(index) {
1678
- var numSlides = mfp.items.length;
1679
- if(index > numSlides - 1) {
1680
- return index - numSlides;
1681
- } else if(index < 0) {
1682
- return numSlides + index;
1683
- }
1684
- return index;
1685
- },
1686
- _replaceCurrTotal = function(text, curr, total) {
1687
- return text.replace(/%curr%/gi, curr + 1).replace(/%total%/gi, total);
1688
- };
1689
-
1690
- $.magnificPopup.registerModule('gallery', {
1691
-
1692
- options: {
1693
- enabled: false,
1694
- arrowMarkup: '<button title="%title%" type="button" class="mfp-arrow mfp-arrow-%dir%"></button>',
1695
- preload: [0,2],
1696
- navigateByImgClick: true,
1697
- arrows: true,
1698
-
1699
- tPrev: 'Previous (Left arrow key)',
1700
- tNext: 'Next (Right arrow key)',
1701
- tCounter: '%curr% of %total%'
1702
- },
1703
-
1704
- proto: {
1705
- initGallery: function() {
1706
-
1707
- var gSt = mfp.st.gallery,
1708
- ns = '.mfp-gallery',
1709
- supportsFastClick = Boolean($.fn.mfpFastClick);
1710
-
1711
- mfp.direction = true; // true - next, false - prev
1712
-
1713
- if(!gSt || !gSt.enabled ) return false;
1714
-
1715
- _wrapClasses += ' mfp-gallery';
1716
-
1717
- _mfpOn(OPEN_EVENT+ns, function() {
1718
-
1719
- if(gSt.navigateByImgClick) {
1720
- mfp.wrap.on('click'+ns, '.mfp-img', function() {
1721
- if(mfp.items.length > 1) {
1722
- mfp.next();
1723
- return false;
1724
- }
1725
- });
1726
- }
1727
-
1728
- _document.on('keydown'+ns, function(e) {
1729
- if (e.keyCode === 37) {
1730
- mfp.prev();
1731
- } else if (e.keyCode === 39) {
1732
- mfp.next();
1733
- }
1734
- });
1735
- });
1736
-
1737
- _mfpOn('UpdateStatus'+ns, function(e, data) {
1738
- if(data.text) {
1739
- data.text = _replaceCurrTotal(data.text, mfp.currItem.index, mfp.items.length);
1740
- }
1741
- });
1742
-
1743
- _mfpOn(MARKUP_PARSE_EVENT+ns, function(e, element, values, item) {
1744
- var l = mfp.items.length;
1745
- values.counter = l > 1 ? _replaceCurrTotal(gSt.tCounter, item.index, l) : '';
1746
- });
1747
-
1748
- _mfpOn('BuildControls' + ns, function() {
1749
- if(mfp.items.length > 1 && gSt.arrows && !mfp.arrowLeft) {
1750
- var markup = gSt.arrowMarkup,
1751
- arrowLeft = mfp.arrowLeft = $( markup.replace(/%title%/gi, gSt.tPrev).replace(/%dir%/gi, 'left') ).addClass(PREVENT_CLOSE_CLASS),
1752
- arrowRight = mfp.arrowRight = $( markup.replace(/%title%/gi, gSt.tNext).replace(/%dir%/gi, 'right') ).addClass(PREVENT_CLOSE_CLASS);
1753
-
1754
- var eName = supportsFastClick ? 'mfpFastClick' : 'click';
1755
- arrowLeft[eName](function() {
1756
- mfp.prev();
1757
- });
1758
- arrowRight[eName](function() {
1759
- mfp.next();
1760
- });
1761
-
1762
- // Polyfill for :before and :after (adds elements with classes mfp-a and mfp-b)
1763
- if(mfp.isIE7) {
1764
- _getEl('b', arrowLeft[0], false, true);
1765
- _getEl('a', arrowLeft[0], false, true);
1766
- _getEl('b', arrowRight[0], false, true);
1767
- _getEl('a', arrowRight[0], false, true);
1768
- }
1769
-
1770
- mfp.container.append(arrowLeft.add(arrowRight));
1771
- }
1772
- });
1773
-
1774
- _mfpOn(CHANGE_EVENT+ns, function() {
1775
- if(mfp._preloadTimeout) clearTimeout(mfp._preloadTimeout);
1776
-
1777
- mfp._preloadTimeout = setTimeout(function() {
1778
- mfp.preloadNearbyImages();
1779
- mfp._preloadTimeout = null;
1780
- }, 16);
1781
- });
1782
-
1783
-
1784
- _mfpOn(CLOSE_EVENT+ns, function() {
1785
- _document.off(ns);
1786
- mfp.wrap.off('click'+ns);
1787
-
1788
- if(mfp.arrowLeft && supportsFastClick) {
1789
- mfp.arrowLeft.add(mfp.arrowRight).destroyMfpFastClick();
1790
- }
1791
- mfp.arrowRight = mfp.arrowLeft = null;
1792
- });
1793
-
1794
- },
1795
- next: function() {
1796
- mfp.direction = true;
1797
- mfp.index = _getLoopedId(mfp.index + 1);
1798
- mfp.updateItemHTML();
1799
- },
1800
- prev: function() {
1801
- mfp.direction = false;
1802
- mfp.index = _getLoopedId(mfp.index - 1);
1803
- mfp.updateItemHTML();
1804
- },
1805
- goTo: function(newIndex) {
1806
- mfp.direction = (newIndex >= mfp.index);
1807
- mfp.index = newIndex;
1808
- mfp.updateItemHTML();
1809
- },
1810
- preloadNearbyImages: function() {
1811
- var p = mfp.st.gallery.preload,
1812
- preloadBefore = Math.min(p[0], mfp.items.length),
1813
- preloadAfter = Math.min(p[1], mfp.items.length),
1814
- i;
1815
-
1816
- for(i = 1; i <= (mfp.direction ? preloadAfter : preloadBefore); i++) {
1817
- mfp._preloadItem(mfp.index+i);
1818
- }
1819
- for(i = 1; i <= (mfp.direction ? preloadBefore : preloadAfter); i++) {
1820
- mfp._preloadItem(mfp.index-i);
1821
- }
1822
- },
1823
- _preloadItem: function(index) {
1824
- index = _getLoopedId(index);
1825
-
1826
- if(mfp.items[index].preloaded) {
1827
- return;
1828
- }
1829
-
1830
- var item = mfp.items[index];
1831
- if(!item.parsed) {
1832
- item = mfp.parseEl( index );
1833
- }
1834
-
1835
- _mfpTrigger('LazyLoad', item);
1836
-
1837
- if(item.type === 'image') {
1838
- item.img = $('<img class="mfp-img" />').on('load.mfploader', function() {
1839
- item.hasSize = true;
1840
- }).on('error.mfploader', function() {
1841
- item.hasSize = true;
1842
- item.loadError = true;
1843
- _mfpTrigger('LazyLoadError', item);
1844
- }).attr('src', item.src);
1845
- }
1846
-
1847
-
1848
- item.preloaded = true;
1849
- }
1850
- }
1851
- });
1852
-
1853
- /*
1854
- Touch Support that might be implemented some day
1855
-
1856
- addSwipeGesture: function() {
1857
- var startX,
1858
- moved,
1859
- multipleTouches;
1860
-
1861
- return;
1862
-
1863
- var namespace = '.mfp',
1864
- addEventNames = function(pref, down, move, up, cancel) {
1865
- mfp._tStart = pref + down + namespace;
1866
- mfp._tMove = pref + move + namespace;
1867
- mfp._tEnd = pref + up + namespace;
1868
- mfp._tCancel = pref + cancel + namespace;
1869
- };
1870
-
1871
- if(window.navigator.msPointerEnabled) {
1872
- addEventNames('MSPointer', 'Down', 'Move', 'Up', 'Cancel');
1873
- } else if('ontouchstart' in window) {
1874
- addEventNames('touch', 'start', 'move', 'end', 'cancel');
1875
- } else {
1876
- return;
1877
- }
1878
- _window.on(mfp._tStart, function(e) {
1879
- var oE = e.originalEvent;
1880
- multipleTouches = moved = false;
1881
- startX = oE.pageX || oE.changedTouches[0].pageX;
1882
- }).on(mfp._tMove, function(e) {
1883
- if(e.originalEvent.touches.length > 1) {
1884
- multipleTouches = e.originalEvent.touches.length;
1885
- } else {
1886
- //e.preventDefault();
1887
- moved = true;
1888
- }
1889
- }).on(mfp._tEnd + ' ' + mfp._tCancel, function(e) {
1890
- if(moved && !multipleTouches) {
1891
- var oE = e.originalEvent,
1892
- diff = startX - (oE.pageX || oE.changedTouches[0].pageX);
1893
-
1894
- if(diff > 20) {
1895
- mfp.next();
1896
- } else if(diff < -20) {
1897
- mfp.prev();
1898
- }
1899
- }
1900
- });
1901
- },
1902
- */
1903
-
1904
-
1905
- /*>>gallery*/
1906
-
1907
- /*>>retina*/
1908
-
1909
- var RETINA_NS = 'retina';
1910
-
1911
- $.magnificPopup.registerModule(RETINA_NS, {
1912
- options: {
1913
- replaceSrc: function(item) {
1914
- return item.src.replace(/\.\w+$/, function(m) { return '@2x' + m; });
1915
- },
1916
- ratio: 1 // Function or number. Set to 1 to disable.
1917
- },
1918
- proto: {
1919
- initRetina: function() {
1920
- if(window.devicePixelRatio > 1) {
1921
-
1922
- var st = mfp.st.retina,
1923
- ratio = st.ratio;
1924
-
1925
- ratio = !isNaN(ratio) ? ratio : ratio();
1926
-
1927
- if(ratio > 1) {
1928
- _mfpOn('ImageHasSize' + '.' + RETINA_NS, function(e, item) {
1929
- item.img.css({
1930
- 'max-width': item.img[0].naturalWidth / ratio,
1931
- 'width': '100%'
1932
- });
1933
- });
1934
- _mfpOn('ElementParse' + '.' + RETINA_NS, function(e, item) {
1935
- item.src = st.replaceSrc(item, ratio);
1936
- });
1937
- }
1938
- }
1939
-
1940
- }
1941
- }
1942
- });
1943
-
1944
- /*>>retina*/
1945
-
1946
- /*>>fastclick*/
1947
- /**
1948
- * FastClick event implementation. (removes 300ms delay on touch devices)
1949
- * Based on https://developers.google.com/mobile/articles/fast_buttons
1950
- *
1951
- * You may use it outside the Magnific Popup by calling just:
1952
- *
1953
- * $('.your-el').mfpFastClick(function() {
1954
- * console.log('Clicked!');
1955
- * });
1956
- *
1957
- * To unbind:
1958
- * $('.your-el').destroyMfpFastClick();
1959
- *
1960
- *
1961
- * Note that it's a very basic and simple implementation, it blocks ghost click on the same element where it was bound.
1962
- * If you need something more advanced, use plugin by FT Labs https://github.com/ftlabs/fastclick
1963
- *
1964
- */
1965
-
1966
- (function() {
1967
- var ghostClickDelay = 1000,
1968
- supportsTouch = 'ontouchstart' in window,
1969
- unbindTouchMove = function() {
1970
- _window.off('touchmove'+ns+' touchend'+ns);
1971
- },
1972
- eName = 'mfpFastClick',
1973
- ns = '.'+eName;
1974
-
1975
-
1976
- // As Zepto.js doesn't have an easy way to add custom events (like jQuery), so we implement it in this way
1977
- $.fn.mfpFastClick = function(callback) {
1978
-
1979
- return $(this).each(function() {
1980
-
1981
- var elem = $(this),
1982
- lock;
1983
-
1984
- if( supportsTouch ) {
1985
-
1986
- var timeout,
1987
- startX,
1988
- startY,
1989
- pointerMoved,
1990
- point,
1991
- numPointers;
1992
-
1993
- elem.on('touchstart' + ns, function(e) {
1994
- pointerMoved = false;
1995
- numPointers = 1;
1996
-
1997
- point = e.originalEvent ? e.originalEvent.touches[0] : e.touches[0];
1998
- startX = point.clientX;
1999
- startY = point.clientY;
2000
-
2001
- _window.on('touchmove'+ns, function(e) {
2002
- point = e.originalEvent ? e.originalEvent.touches : e.touches;
2003
- numPointers = point.length;
2004
- point = point[0];
2005
- if (Math.abs(point.clientX - startX) > 10 ||
2006
- Math.abs(point.clientY - startY) > 10) {
2007
- pointerMoved = true;
2008
- unbindTouchMove();
2009
- }
2010
- }).on('touchend'+ns, function(e) {
2011
- unbindTouchMove();
2012
- if(pointerMoved || numPointers > 1) {
2013
- return;
2014
- }
2015
- lock = true;
2016
- e.preventDefault();
2017
- clearTimeout(timeout);
2018
- timeout = setTimeout(function() {
2019
- lock = false;
2020
- }, ghostClickDelay);
2021
- callback();
2022
- });
2023
- });
2024
-
2025
- }
2026
-
2027
- elem.on('click' + ns, function() {
2028
- if(!lock) {
2029
- callback();
2030
- }
2031
- });
2032
- });
2033
- };
2034
-
2035
- $.fn.destroyMfpFastClick = function() {
2036
- $(this).off('touchstart' + ns + ' click' + ns);
2037
- if(supportsTouch) _window.off('touchmove'+ns+' touchend'+ns);
2038
- };
2039
- })();
2040
-
2041
- /*>>fastclick*/
2042
- _checkInstance(); })(window.jQuery || window.Zepto);
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
lib/media-element/background.png DELETED
Binary file
lib/media-element/bigplay.png DELETED
Binary file
lib/media-element/bigplay.svg DELETED
@@ -1 +0,0 @@
1
- <?xml version="1.0" standalone="no"?>
 
lib/media-element/controls-ted.png DELETED
Binary file
lib/media-element/controls-wmp-bg.png DELETED
Binary file
lib/media-element/controls-wmp.png DELETED
Binary file
lib/media-element/controls.png DELETED
Binary file
lib/media-element/controls.svg DELETED
@@ -1 +0,0 @@
1
- <?xml version="1.0" standalone="no"?>
 
lib/media-element/flashmediaelement.swf DELETED
Binary file
lib/media-element/jquery.js DELETED
@@ -1,9300 +0,0 @@
1
- /*!
2
- * jQuery JavaScript Library v1.7
3
- * http://jquery.com/
4
- *
5
- * Copyright 2011, John Resig
6
- * Dual licensed under the MIT or GPL Version 2 licenses.
7
- * http://jquery.org/license
8
- *
9
- * Includes Sizzle.js
10
- * http://sizzlejs.com/
11
- * Copyright 2011, The Dojo Foundation
12
- * Released under the MIT, BSD, and GPL Licenses.
13
- *
14
- * Date: Thu Nov 3 16:18:21 2011 -0400
15
- */
16
- (function( window, undefined ) {
17
-
18
- // Use the correct document accordingly with window argument (sandbox)
19
- var document = window.document,
20
- navigator = window.navigator,
21
- location = window.location;
22
- var jQuery = (function() {
23
-
24
- // Define a local copy of jQuery
25
- var jQuery = function( selector, context ) {
26
- // The jQuery object is actually just the init constructor 'enhanced'
27
- return new jQuery.fn.init( selector, context, rootjQuery );
28
- },
29
-
30
- // Map over jQuery in case of overwrite
31
- _jQuery = window.jQuery,
32
-
33
- // Map over the $ in case of overwrite
34
- _$ = window.$,
35
-
36
- // A central reference to the root jQuery(document)
37
- rootjQuery,
38
-
39
- // A simple way to check for HTML strings or ID strings
40
- // Prioritize #id over <tag> to avoid XSS via location.hash (#9521)
41
- quickExpr = /^(?:[^#<]*(<[\w\W]+>)[^>]*$|#([\w\-]*)$)/,
42
-
43
- // Check if a string has a non-whitespace character in it
44
- rnotwhite = /\S/,
45
-
46
- // Used for trimming whitespace
47
- trimLeft = /^\s+/,
48
- trimRight = /\s+$/,
49
-
50
- // Check for digits
51
- rdigit = /\d/,
52
-
53
- // Match a standalone tag
54
- rsingleTag = /^<(\w+)\s*\/?>(?:<\/\1>)?$/,
55
-
56
- // JSON RegExp
57
- rvalidchars = /^[\],:{}\s]*$/,
58
- rvalidescape = /\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,
59
- rvalidtokens = /"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,
60
- rvalidbraces = /(?:^|:|,)(?:\s*\[)+/g,
61
-
62
- // Useragent RegExp
63
- rwebkit = /(webkit)[ \/]([\w.]+)/,
64
- ropera = /(opera)(?:.*version)?[ \/]([\w.]+)/,
65
- rmsie = /(msie) ([\w.]+)/,
66
- rmozilla = /(mozilla)(?:.*? rv:([\w.]+))?/,
67
-
68
- // Matches dashed string for camelizing
69
- rdashAlpha = /-([a-z]|[0-9])/ig,
70
- rmsPrefix = /^-ms-/,
71
-
72
- // Used by jQuery.camelCase as callback to replace()
73
- fcamelCase = function( all, letter ) {
74
- return ( letter + "" ).toUpperCase();
75
- },
76
-
77
- // Keep a UserAgent string for use with jQuery.browser
78
- userAgent = navigator.userAgent,
79
-
80
- // For matching the engine and version of the browser
81
- browserMatch,
82
-
83
- // The deferred used on DOM ready
84
- readyList,
85
-
86
- // The ready event handler
87
- DOMContentLoaded,
88
-
89
- // Save a reference to some core methods
90
- toString = Object.prototype.toString,
91
- hasOwn = Object.prototype.hasOwnProperty,
92
- push = Array.prototype.push,
93
- slice = Array.prototype.slice,
94
- trim = String.prototype.trim,
95
- indexOf = Array.prototype.indexOf,
96
-
97
- // [[Class]] -> type pairs
98
- class2type = {};
99
-
100
- jQuery.fn = jQuery.prototype = {
101
- constructor: jQuery,
102
- init: function( selector, context, rootjQuery ) {
103
- var match, elem, ret, doc;
104
-
105
- // Handle $(""), $(null), or $(undefined)
106
- if ( !selector ) {
107
- return this;
108
- }
109
-
110
- // Handle $(DOMElement)
111
- if ( selector.nodeType ) {
112
- this.context = this[0] = selector;
113
- this.length = 1;
114
- return this;
115
- }
116
-
117
- // The body element only exists once, optimize finding it
118
- if ( selector === "body" && !context && document.body ) {
119
- this.context = document;
120
- this[0] = document.body;
121
- this.selector = selector;
122
- this.length = 1;
123
- return this;
124
- }
125
-
126
- // Handle HTML strings
127
- if ( typeof selector === "string" ) {
128
- // Are we dealing with HTML string or an ID?
129
- if ( selector.charAt(0) === "<" && selector.charAt( selector.length - 1 ) === ">" && selector.length >= 3 ) {
130
- // Assume that strings that start and end with <> are HTML and skip the regex check
131
- match = [ null, selector, null ];
132
-
133
- } else {
134
- match = quickExpr.exec( selector );
135
- }
136
-
137
- // Verify a match, and that no context was specified for #id
138
- if ( match && (match[1] || !context) ) {
139
-
140
- // HANDLE: $(html) -> $(array)
141
- if ( match[1] ) {
142
- context = context instanceof jQuery ? context[0] : context;
143
- doc = ( context ? context.ownerDocument || context : document );
144
-
145
- // If a single string is passed in and it's a single tag
146
- // just do a createElement and skip the rest
147
- ret = rsingleTag.exec( selector );
148
-
149
- if ( ret ) {
150
- if ( jQuery.isPlainObject( context ) ) {
151
- selector = [ document.createElement( ret[1] ) ];
152
- jQuery.fn.attr.call( selector, context, true );
153
-
154
- } else {
155
- selector = [ doc.createElement( ret[1] ) ];
156
- }
157
-
158
- } else {
159
- ret = jQuery.buildFragment( [ match[1] ], [ doc ] );
160
- selector = ( ret.cacheable ? jQuery.clone(ret.fragment) : ret.fragment ).childNodes;
161
- }
162
-
163
- return jQuery.merge( this, selector );
164
-
165
- // HANDLE: $("#id")
166
- } else {
167
- elem = document.getElementById( match[2] );
168
-
169
- // Check parentNode to catch when Blackberry 4.6 returns
170
- // nodes that are no longer in the document #6963
171
- if ( elem && elem.parentNode ) {
172
- // Handle the case where IE and Opera return items
173
- // by name instead of ID
174
- if ( elem.id !== match[2] ) {
175
- return rootjQuery.find( selector );
176
- }
177
-
178
- // Otherwise, we inject the element directly into the jQuery object
179
- this.length = 1;
180
- this[0] = elem;
181
- }
182
-
183
- this.context = document;
184
- this.selector = selector;
185
- return this;
186
- }
187
-
188
- // HANDLE: $(expr, $(...))
189
- } else if ( !context || context.jquery ) {
190
- return ( context || rootjQuery ).find( selector );
191
-
192
- // HANDLE: $(expr, context)
193
- // (which is just equivalent to: $(context).find(expr)
194
- } else {
195
- return this.constructor( context ).find( selector );
196
- }
197
-
198
- // HANDLE: $(function)
199
- // Shortcut for document ready
200
- } else if ( jQuery.isFunction( selector ) ) {
201
- return rootjQuery.ready( selector );
202
- }
203
-
204
- if ( selector.selector !== undefined ) {
205
- this.selector = selector.selector;
206
- this.context = selector.context;
207
- }
208
-
209
- return jQuery.makeArray( selector, this );
210
- },
211
-
212
- // Start with an empty selector
213
- selector: "",
214
-
215
- // The current version of jQuery being used
216
- jquery: "1.7",
217
-
218
- // The default length of a jQuery object is 0
219
- length: 0,
220
-
221
- // The number of elements contained in the matched element set
222
- size: function() {
223
- return this.length;
224
- },
225
-
226
- toArray: function() {
227
- return slice.call( this, 0 );
228
- },
229
-
230
- // Get the Nth element in the matched element set OR
231
- // Get the whole matched element set as a clean array
232
- get: function( num ) {
233
- return num == null ?
234
-
235
- // Return a 'clean' array
236
- this.toArray() :
237
-
238
- // Return just the object
239
- ( num < 0 ? this[ this.length + num ] : this[ num ] );
240
- },
241
-
242
- // Take an array of elements and push it onto the stack
243
- // (returning the new matched element set)
244
- pushStack: function( elems, name, selector ) {
245
- // Build a new jQuery matched element set
246
- var ret = this.constructor();
247
-
248
- if ( jQuery.isArray( elems ) ) {
249
- push.apply( ret, elems );
250
-
251
- } else {
252
- jQuery.merge( ret, elems );
253
- }
254
-
255
- // Add the old object onto the stack (as a reference)
256
- ret.prevObject = this;
257
-
258
- ret.context = this.context;
259
-
260
- if ( name === "find" ) {
261
- ret.selector = this.selector + ( this.selector ? " " : "" ) + selector;
262
- } else if ( name ) {
263
- ret.selector = this.selector + "." + name + "(" + selector + ")";
264
- }
265
-
266
- // Return the newly-formed element set
267
- return ret;
268
- },
269
-
270
- // Execute a callback for every element in the matched set.
271
- // (You can seed the arguments with an array of args, but this is
272
- // only used internally.)
273
- each: function( callback, args ) {
274
- return jQuery.each( this, callback, args );
275
- },
276
-
277
- ready: function( fn ) {
278
- // Attach the listeners
279
- jQuery.bindReady();
280
-
281
- // Add the callback
282
- readyList.add( fn );
283
-
284
- return this;
285
- },
286
-
287
- eq: function( i ) {
288
- return i === -1 ?
289
- this.slice( i ) :
290
- this.slice( i, +i + 1 );
291
- },
292
-
293
- first: function() {
294
- return this.eq( 0 );
295
- },
296
-
297
- last: function() {
298
- return this.eq( -1 );
299
- },
300
-
301
- slice: function() {
302
- return this.pushStack( slice.apply( this, arguments ),
303
- "slice", slice.call(arguments).join(",") );
304
- },
305
-
306
- map: function( callback ) {
307
- return this.pushStack( jQuery.map(this, function( elem, i ) {
308
- return callback.call( elem, i, elem );
309
- }));
310
- },
311
-
312
- end: function() {
313
- return this.prevObject || this.constructor(null);
314
- },
315
-
316
- // For internal use only.
317
- // Behaves like an Array's method, not like a jQuery method.
318
- push: push,
319
- sort: [].sort,
320
- splice: [].splice
321
- };
322
-
323
- // Give the init function the jQuery prototype for later instantiation
324
- jQuery.fn.init.prototype = jQuery.fn;
325
-
326
- jQuery.extend = jQuery.fn.extend = function() {
327
- var options, name, src, copy, copyIsArray, clone,
328
- target = arguments[0] || {},
329
- i = 1,
330
- length = arguments.length,
331
- deep = false;
332
-
333
- // Handle a deep copy situation
334
- if ( typeof target === "boolean" ) {
335
- deep = target;
336
- target = arguments[1] || {};
337
- // skip the boolean and the target
338
- i = 2;
339
- }
340
-
341
- // Handle case when target is a string or something (possible in deep copy)
342
- if ( typeof target !== "object" && !jQuery.isFunction(target) ) {
343
- target = {};
344
- }
345
-
346
- // extend jQuery itself if only one argument is passed
347
- if ( length === i ) {
348
- target = this;
349
- --i;
350
- }
351
-
352
- for ( ; i < length; i++ ) {
353
- // Only deal with non-null/undefined values
354
- if ( (options = arguments[ i ]) != null ) {
355
- // Extend the base object
356
- for ( name in options ) {
357
- src = target[ name ];
358
- copy = options[ name ];
359
-
360
- // Prevent never-ending loop
361
- if ( target === copy ) {
362
- continue;
363
- }
364
-
365
- // Recurse if we're merging plain objects or arrays
366
- if ( deep && copy && ( jQuery.isPlainObject(copy) || (copyIsArray = jQuery.isArray(copy)) ) ) {
367
- if ( copyIsArray ) {
368
- copyIsArray = false;
369
- clone = src && jQuery.isArray(src) ? src : [];
370
-
371
- } else {
372
- clone = src && jQuery.isPlainObject(src) ? src : {};
373
- }
374
-
375
- // Never move original objects, clone them
376
- target[ name ] = jQuery.extend( deep, clone, copy );
377
-
378
- // Don't bring in undefined values
379
- } else if ( copy !== undefined ) {
380
- target[ name ] = copy;
381
- }
382
- }
383
- }
384
- }
385
-
386
- // Return the modified object
387
- return target;
388
- };
389
-
390
- jQuery.extend({
391
- noConflict: function( deep ) {
392
- if ( window.$ === jQuery ) {
393
- window.$ = _$;
394
- }
395
-
396
- if ( deep && window.jQuery === jQuery ) {
397
- window.jQuery = _jQuery;
398
- }
399
-
400
- return jQuery;
401
- },
402
-
403
- // Is the DOM ready to be used? Set to true once it occurs.
404
- isReady: false,
405
-
406
- // A counter to track how many items to wait for before
407
- // the ready event fires. See #6781
408
- readyWait: 1,
409
-
410
- // Hold (or release) the ready event
411
- holdReady: function( hold ) {
412
- if ( hold ) {
413
- jQuery.readyWait++;
414
- } else {
415
- jQuery.ready( true );
416
- }
417
- },
418
-
419
- // Handle when the DOM is ready
420
- ready: function( wait ) {
421
- // Either a released hold or an DOMready/load event and not yet ready
422
- if ( (wait === true && !--jQuery.readyWait) || (wait !== true && !jQuery.isReady) ) {
423
- // Make sure body exists, at least, in case IE gets a little overzealous (ticket #5443).
424
- if ( !document.body ) {
425
- return setTimeout( jQuery.ready, 1 );
426
- }
427
-
428
- // Remember that the DOM is ready
429
- jQuery.isReady = true;
430
-
431
- // If a normal DOM Ready event fired, decrement, and wait if need be
432
- if ( wait !== true && --jQuery.readyWait > 0 ) {
433
- return;
434
- }
435
-
436
- // If there are functions bound, to execute
437
- readyList.fireWith( document, [ jQuery ] );
438
-
439
- // Trigger any bound ready events
440
- if ( jQuery.fn.trigger ) {
441
- jQuery( document ).trigger( "ready" ).unbind( "ready" );
442
- }
443
- }
444
- },
445
-
446
- bindReady: function() {
447
- if ( readyList ) {
448
- return;
449
- }
450
-
451
- readyList = jQuery.Callbacks( "once memory" );
452
-
453
- // Catch cases where $(document).ready() is called after the
454
- // browser event has already occurred.
455
- if ( document.readyState === "complete" ) {
456
- // Handle it asynchronously to allow scripts the opportunity to delay ready
457
- return setTimeout( jQuery.ready, 1 );
458
- }
459
-
460
- // Mozilla, Opera and webkit nightlies currently support this event
461
- if ( document.addEventListener ) {
462
- // Use the handy event callback
463
- document.addEventListener( "DOMContentLoaded", DOMContentLoaded, false );
464
-
465
- // A fallback to window.onload, that will always work
466
- window.addEventListener( "load", jQuery.ready, false );
467
-
468
- // If IE event model is used
469
- } else if ( document.attachEvent ) {
470
- // ensure firing before onload,
471
- // maybe late but safe also for iframes
472
- document.attachEvent( "onreadystatechange", DOMContentLoaded );
473
-
474
- // A fallback to window.onload, that will always work
475
- window.attachEvent( "onload", jQuery.ready );
476
-
477
- // If IE and not a frame
478
- // continually check to see if the document is ready
479
- var toplevel = false;
480
-
481
- try {
482
- toplevel = window.frameElement == null;
483
- } catch(e) {}
484
-
485
- if ( document.documentElement.doScroll && toplevel ) {
486
- doScrollCheck();
487
- }
488
- }
489
- },
490
-
491
- // See test/unit/core.js for details concerning isFunction.
492
- // Since version 1.3, DOM methods and functions like alert
493
- // aren't supported. They return false on IE (#2968).
494
- isFunction: function( obj ) {
495
- return jQuery.type(obj) === "function";
496
- },
497
-
498
- isArray: Array.isArray || function( obj ) {
499
- return jQuery.type(obj) === "array";
500
- },
501
-
502
- // A crude way of determining if an object is a window
503
- isWindow: function( obj ) {
504
- return obj && typeof obj === "object" && "setInterval" in obj;
505
- },
506
-
507
- isNumeric: function( obj ) {
508
- return obj != null && rdigit.test( obj ) && !isNaN( obj );
509
- },
510
-
511
- type: function( obj ) {
512
- return obj == null ?
513
- String( obj ) :
514
- class2type[ toString.call(obj) ] || "object";
515
- },
516
-
517
- isPlainObject: function( obj ) {
518
- // Must be an Object.
519
- // Because of IE, we also have to check the presence of the constructor property.
520
- // Make sure that DOM nodes and window objects don't pass through, as well
521
- if ( !obj || jQuery.type(obj) !== "object" || obj.nodeType || jQuery.isWindow( obj ) ) {
522
- return false;
523
- }
524
-
525
- try {
526
- // Not own constructor property must be Object
527
- if ( obj.constructor &&
528
- !hasOwn.call(obj, "constructor") &&
529
- !hasOwn.call(obj.constructor.prototype, "isPrototypeOf") ) {
530
- return false;
531
- }
532
- } catch ( e ) {
533
- // IE8,9 Will throw exceptions on certain host objects #9897
534
- return false;
535
- }
536
-
537
- // Own properties are enumerated firstly, so to speed up,
538
- // if last one is own, then all properties are own.
539
-
540
- var key;
541
- for ( key in obj ) {}
542
-
543
- return key === undefined || hasOwn.call( obj, key );
544
- },
545
-
546
- isEmptyObject: function( obj ) {
547
- for ( var name in obj ) {
548
- return false;
549
- }
550
- return true;
551
- },
552
-
553
- error: function( msg ) {
554
- throw msg;
555
- },
556
-
557
- parseJSON: function( data ) {
558
- if ( typeof data !== "string" || !data ) {
559
- return null;
560
- }
561
-
562
- // Make sure leading/trailing whitespace is removed (IE can't handle it)
563
- data = jQuery.trim( data );
564
-
565
- // Attempt to parse using the native JSON parser first
566
- if ( window.JSON && window.JSON.parse ) {
567
- return window.JSON.parse( data );
568
- }
569
-
570
- // Make sure the incoming data is actual JSON
571
- // Logic borrowed from http://json.org/json2.js
572
- if ( rvalidchars.test( data.replace( rvalidescape, "@" )
573
- .replace( rvalidtokens, "]" )
574
- .replace( rvalidbraces, "")) ) {
575
-
576
- return ( new Function( "return " + data ) )();
577
-
578
- }
579
- jQuery.error( "Invalid JSON: " + data );
580
- },
581
-
582
- // Cross-browser xml parsing
583
- parseXML: function( data ) {
584
- var xml, tmp;
585
- try {
586
- if ( window.DOMParser ) { // Standard
587
- tmp = new DOMParser();
588
- xml = tmp.parseFromString( data , "text/xml" );
589
- } else { // IE
590
- xml = new ActiveXObject( "Microsoft.XMLDOM" );
591
- xml.async = "false";
592
- xml.loadXML( data );
593
- }
594
- } catch( e ) {
595
- xml = undefined;
596
- }
597
- if ( !xml || !xml.documentElement || xml.getElementsByTagName( "parsererror" ).length ) {
598
- jQuery.error( "Invalid XML: " + data );
599
- }
600
- return xml;
601
- },
602
-
603
- noop: function() {},
604
-
605
- // Evaluates a script in a global context
606
- // Workarounds based on findings by Jim Driscoll
607
- // http://weblogs.java.net/blog/driscoll/archive/2009/09/08/eval-javascript-global-context
608
- globalEval: function( data ) {
609
- if ( data && rnotwhite.test( data ) ) {
610
- // We use execScript on Internet Explorer
611
- // We use an anonymous function so that context is window
612
- // rather than jQuery in Firefox
613
- ( window.execScript || function( data ) {
614
- window[ "eval" ].call( window, data );
615
- } )( data );
616
- }
617
- },
618
-
619
- // Convert dashed to camelCase; used by the css and data modules
620
- // Microsoft forgot to hump their vendor prefix (#9572)
621
- camelCase: function( string ) {
622
- return string.replace( rmsPrefix, "ms-" ).replace( rdashAlpha, fcamelCase );
623
- },
624
-
625
- nodeName: function( elem, name ) {
626
- return elem.nodeName && elem.nodeName.toUpperCase() === name.toUpperCase();
627
- },
628
-
629
- // args is for internal usage only
630
- each: function( object, callback, args ) {
631
- var name, i = 0,
632
- length = object.length,
633
- isObj = length === undefined || jQuery.isFunction( object );
634
-
635
- if ( args ) {
636
- if ( isObj ) {
637
- for ( name in object ) {
638
- if ( callback.apply( object[ name ], args ) === false ) {
639
- break;
640
- }
641
- }
642
- } else {
643
- for ( ; i < length; ) {
644
- if ( callback.apply( object[ i++ ], args ) === false ) {
645
- break;
646
- }
647
- }
648
- }
649
-
650
- // A special, fast, case for the most common use of each
651
- } else {
652
- if ( isObj ) {
653
- for ( name in object ) {
654
- if ( callback.call( object[ name ], name, object[ name ] ) === false ) {
655
- break;
656
- }
657
- }
658
- } else {
659
- for ( ; i < length; ) {
660
- if ( callback.call( object[ i ], i, object[ i++ ] ) === false ) {
661
- break;
662
- }
663
- }
664
- }
665
- }
666
-
667
- return object;
668
- },
669
-
670
- // Use native String.trim function wherever possible
671
- trim: trim ?
672
- function( text ) {
673
- return text == null ?
674
- "" :
675
- trim.call( text );
676
- } :
677
-
678
- // Otherwise use our own trimming functionality
679
- function( text ) {
680
- return text == null ?
681
- "" :
682
- text.toString().replace( trimLeft, "" ).replace( trimRight, "" );
683
- },
684
-
685
- // results is for internal usage only
686
- makeArray: function( array, results ) {
687
- var ret = results || [];
688
-
689
- if ( array != null ) {
690
- // The window, strings (and functions) also have 'length'
691
- // The extra typeof function check is to prevent crashes
692
- // in Safari 2 (See: #3039)
693
- // Tweaked logic slightly to handle Blackberry 4.7 RegExp issues #6930
694
- var type = jQuery.type( array );
695
-
696
- if ( array.length == null || type === "string" || type === "function" || type === "regexp" || jQuery.isWindow( array ) ) {
697
- push.call( ret, array );
698
- } else {
699
- jQuery.merge( ret, array );
700
- }
701
- }
702
-
703
- return ret;
704
- },
705
-
706
- inArray: function( elem, array, i ) {
707
- var len;
708
-
709
- if ( array ) {
710
- if ( indexOf ) {
711
- return indexOf.call( array, elem, i );
712
- }
713
-
714
- len = array.length;
715
- i = i ? i < 0 ? Math.max( 0, len + i ) : i : 0;
716
-
717
- for ( ; i < len; i++ ) {
718
- // Skip accessing in sparse arrays
719
- if ( i in array && array[ i ] === elem ) {
720
- return i;
721
- }
722
- }
723
- }
724
-
725
- return -1;
726
- },
727
-
728
- merge: function( first, second ) {
729
- var i = first.length,
730
- j = 0;
731
-
732
- if ( typeof second.length === "number" ) {
733
- for ( var l = second.length; j < l; j++ ) {
734
- first[ i++ ] = second[ j ];
735
- }
736
-
737
- } else {
738
- while ( second[j] !== undefined ) {
739
- first[ i++ ] = second[ j++ ];
740
- }
741
- }
742
-
743
- first.length = i;
744
-
745
- return first;
746
- },
747
-
748
- grep: function( elems, callback, inv ) {
749
- var ret = [], retVal;
750
- inv = !!inv;
751
-
752
- // Go through the array, only saving the items
753
- // that pass the validator function
754
- for ( var i = 0, length = elems.length; i < length; i++ ) {
755
- retVal = !!callback( elems[ i ], i );
756
- if ( inv !== retVal ) {
757
- ret.push( elems[ i ] );
758
- }
759
- }
760
-
761
- return ret;
762
- },
763
-
764
- // arg is for internal usage only
765
- map: function( elems, callback, arg ) {
766
- var value, key, ret = [],
767
- i = 0,
768
- length = elems.length,
769
- // jquery objects are treated as arrays
770
- isArray = elems instanceof jQuery || length !== undefined && typeof length === "number" && ( ( length > 0 && elems[ 0 ] && elems[ length -1 ] ) || length === 0 || jQuery.isArray( elems ) ) ;
771
-
772
- // Go through the array, translating each of the items to their
773
- if ( isArray ) {
774
- for ( ; i < length; i++ ) {
775
- value = callback( elems[ i ], i, arg );
776
-
777
- if ( value != null ) {
778
- ret[ ret.length ] = value;
779
- }
780
- }
781
-
782
- // Go through every key on the object,
783
- } else {
784
- for ( key in elems ) {
785
- value = callback( elems[ key ], key, arg );
786
-
787
- if ( value != null ) {
788
- ret[ ret.length ] = value;
789
- }
790
- }
791
- }
792
-
793
- // Flatten any nested arrays
794
- return ret.concat.apply( [], ret );
795
- },
796
-
797
- // A global GUID counter for objects
798
- guid: 1,
799
-
800
- // Bind a function to a context, optionally partially applying any
801
- // arguments.
802
- proxy: function( fn, context ) {
803
- if ( typeof context === "string" ) {
804
- var tmp = fn[ context ];
805
- context = fn;
806
- fn = tmp;
807
- }
808
-
809
- // Quick check to determine if target is callable, in the spec
810
- // this throws a TypeError, but we will just return undefined.
811
- if ( !jQuery.isFunction( fn ) ) {
812
- return undefined;
813
- }
814
-
815
- // Simulated bind
816
- var args = slice.call( arguments, 2 ),
817
- proxy = function() {
818
- return fn.apply( context, args.concat( slice.call( arguments ) ) );
819
- };
820
-
821
- // Set the guid of unique handler to the same of original handler, so it can be removed
822
- proxy.guid = fn.guid = fn.guid || proxy.guid || jQuery.guid++;
823
-
824
- return proxy;
825
- },
826
-
827
- // Mutifunctional method to get and set values to a collection
828
- // The value/s can optionally be executed if it's a function
829
- access: function( elems, key, value, exec, fn, pass ) {
830
- var length = elems.length;
831
-
832
- // Setting many attributes
833
- if ( typeof key === "object" ) {
834
- for ( var k in key ) {
835
- jQuery.access( elems, k, key[k], exec, fn, value );
836
- }
837
- return elems;
838
- }
839
-
840
- // Setting one attribute
841
- if ( value !== undefined ) {
842
- // Optionally, function values get executed if exec is true
843
- exec = !pass && exec && jQuery.isFunction(value);
844
-
845
- for ( var i = 0; i < length; i++ ) {
846
- fn( elems[i], key, exec ? value.call( elems[i], i, fn( elems[i], key ) ) : value, pass );
847
- }
848
-
849
- return elems;
850
- }
851
-
852
- // Getting an attribute
853
- return length ? fn( elems[0], key ) : undefined;
854
- },
855
-
856
- now: function() {
857
- return ( new Date() ).getTime();
858
- },
859
-
860
- // Use of jQuery.browser is frowned upon.
861
- // More details: http://docs.jquery.com/Utilities/jQuery.browser
862
- uaMatch: function( ua ) {
863
- ua = ua.toLowerCase();
864
-
865
- var match = rwebkit.exec( ua ) ||
866
- ropera.exec( ua ) ||
867
- rmsie.exec( ua ) ||
868
- ua.indexOf("compatible") < 0 && rmozilla.exec( ua ) ||
869
- [];
870
-
871
- return { browser: match[1] || "", version: match[2] || "0" };
872
- },
873
-
874
- sub: function() {
875
- function jQuerySub( selector, context ) {
876
- return new jQuerySub.fn.init( selector, context );
877
- }
878
- jQuery.extend( true, jQuerySub, this );
879
- jQuerySub.superclass = this;
880
- jQuerySub.fn = jQuerySub.prototype = this();
881
- jQuerySub.fn.constructor = jQuerySub;
882
- jQuerySub.sub = this.sub;
883
- jQuerySub.fn.init = function init( selector, context ) {
884
- if ( context && context instanceof jQuery && !(context instanceof jQuerySub) ) {
885
- context = jQuerySub( context );
886
- }
887
-
888
- return jQuery.fn.init.call( this, selector, context, rootjQuerySub );
889
- };
890
- jQuerySub.fn.init.prototype = jQuerySub.fn;
891
- var rootjQuerySub = jQuerySub(document);
892
- return jQuerySub;
893
- },
894
-
895
- browser: {}
896
- });
897
-
898
- // Populate the class2type map
899
- jQuery.each("Boolean Number String Function Array Date RegExp Object".split(" "), function(i, name) {
900
- class2type[ "[object " + name + "]" ] = name.toLowerCase();
901
- });
902
-
903
- browserMatch = jQuery.uaMatch( userAgent );
904
- if ( browserMatch.browser ) {
905
- jQuery.browser[ browserMatch.browser ] = true;
906
- jQuery.browser.version = browserMatch.version;
907
- }
908
-
909
- // Deprecated, use jQuery.browser.webkit instead
910
- if ( jQuery.browser.webkit ) {
911
- jQuery.browser.safari = true;
912
- }
913
-
914
- // IE doesn't match non-breaking spaces with \s
915
- if ( rnotwhite.test( "\xA0" ) ) {
916
- trimLeft = /^[\s\xA0]+/;
917
- trimRight = /[\s\xA0]+$/;
918
- }
919
-
920
- // All jQuery objects should point back to these
921
- rootjQuery = jQuery(document);
922
-
923
- // Cleanup functions for the document ready method
924
- if ( document.addEventListener ) {
925
- DOMContentLoaded = function() {
926
- document.removeEventListener( "DOMContentLoaded", DOMContentLoaded, false );
927
- jQuery.ready();
928
- };
929
-
930
- } else if ( document.attachEvent ) {
931
- DOMContentLoaded = function() {
932
- // Make sure body exists, at least, in case IE gets a little overzealous (ticket #5443).
933
- if ( document.readyState === "complete" ) {
934
- document.detachEvent( "onreadystatechange", DOMContentLoaded );
935
- jQuery.ready();
936
- }
937
- };
938
- }
939
-
940
- // The DOM ready check for Internet Explorer
941
- function doScrollCheck() {
942
- if ( jQuery.isReady ) {
943
- return;
944
- }
945
-
946
- try {
947
- // If IE is used, use the trick by Diego Perini
948
- // http://javascript.nwbox.com/IEContentLoaded/
949
- document.documentElement.doScroll("left");
950
- } catch(e) {
951
- setTimeout( doScrollCheck, 1 );
952
- return;
953
- }
954
-
955
- // and execute any waiting functions
956
- jQuery.ready();
957
- }
958
-
959
- // Expose jQuery as an AMD module, but only for AMD loaders that
960
- // understand the issues with loading multiple versions of jQuery
961
- // in a page that all might call define(). The loader will indicate
962
- // they have special allowances for multiple jQuery versions by
963
- // specifying define.amd.jQuery = true. Register as a named module,
964
- // since jQuery can be concatenated with other files that may use define,
965
- // but not use a proper concatenation script that understands anonymous
966
- // AMD modules. A named AMD is safest and most robust way to register.
967
- // Lowercase jquery is used because AMD module names are derived from
968
- // file names, and jQuery is normally delivered in a lowercase file name.
969
- if ( typeof define === "function" && define.amd && define.amd.jQuery ) {
970
- define( "jquery", [], function () { return jQuery; } );
971
- }
972
-
973
- return jQuery;
974
-
975
- })();
976
-
977
-
978
- // String to Object flags format cache
979
- var flagsCache = {};
980
-
981
- // Convert String-formatted flags into Object-formatted ones and store in cache
982
- function createFlags( flags ) {
983
- var object = flagsCache[ flags ] = {},
984
- i, length;
985
- flags = flags.split( /\s+/ );
986
- for ( i = 0, length = flags.length; i < length; i++ ) {
987
- object[ flags[i] ] = true;
988
- }
989
- return object;
990
- }
991
-
992
- /*
993
- * Create a callback list using the following parameters:
994
- *
995
- * flags: an optional list of space-separated flags that will change how
996
- * the callback list behaves
997
- *
998
- * By default a callback list will act like an event callback list and can be
999
- * "fired" multiple times.
1000
- *
1001
- * Possible flags:
1002
- *
1003
- * once: will ensure the callback list can only be fired once (like a Deferred)
1004
- *
1005
- * memory: will keep track of previous values and will call any callback added
1006
- * after the list has been fired right away with the latest "memorized"
1007
- * values (like a Deferred)
1008
- *
1009
- * unique: will ensure a callback can only be added once (no duplicate in the list)
1010
- *
1011
- * stopOnFalse: interrupt callings when a callback returns false
1012
- *
1013
- */
1014
- jQuery.Callbacks = function( flags ) {
1015
-
1016
- // Convert flags from String-formatted to Object-formatted
1017
- // (we check in cache first)
1018
- flags = flags ? ( flagsCache[ flags ] || createFlags( flags ) ) : {};
1019
-
1020
- var // Actual callback list
1021
- list = [],
1022
- // Stack of fire calls for repeatable lists
1023
- stack = [],
1024
- // Last fire value (for non-forgettable lists)
1025
- memory,
1026
- // Flag to know if list is currently firing
1027
- firing,
1028
- // First callback to fire (used internally by add and fireWith)
1029
- firingStart,
1030
- // End of the loop when firing
1031
- firingLength,
1032
- // Index of currently firing callback (modified by remove if needed)
1033
- firingIndex,
1034
- // Add one or several callbacks to the list
1035
- add = function( args ) {
1036
- var i,
1037
- length,
1038
- elem,
1039
- type,
1040
- actual;
1041
- for ( i = 0, length = args.length; i < length; i++ ) {
1042
- elem = args[ i ];
1043
- type = jQuery.type( elem );
1044
- if ( type === "array" ) {
1045
- // Inspect recursively
1046
- add( elem );
1047
- } else if ( type === "function" ) {
1048
- // Add if not in unique mode and callback is not in
1049
- if ( !flags.unique || !self.has( elem ) ) {
1050
- list.push( elem );
1051
- }
1052
- }
1053
- }
1054
- },
1055
- // Fire callbacks
1056
- fire = function( context, args ) {
1057
- args = args || [];
1058
- memory = !flags.memory || [ context, args ];
1059
- firing = true;
1060
- firingIndex = firingStart || 0;
1061
- firingStart = 0;
1062
- firingLength = list.length;
1063
- for ( ; list && firingIndex < firingLength; firingIndex++ ) {
1064
- if ( list[ firingIndex ].apply( context, args ) === false && flags.stopOnFalse ) {
1065
- memory = true; // Mark as halted
1066
- break;
1067
- }
1068
- }
1069
- firing = false;
1070
- if ( list ) {
1071
- if ( !flags.once ) {
1072
- if ( stack && stack.length ) {
1073
- memory = stack.shift();
1074
- self.fireWith( memory[ 0 ], memory[ 1 ] );
1075
- }
1076
- } else if ( memory === true ) {
1077
- self.disable();
1078
- } else {
1079
- list = [];
1080
- }
1081
- }
1082
- },
1083
- // Actual Callbacks object
1084
- self = {
1085
- // Add a callback or a collection of callbacks to the list
1086
- add: function() {
1087
- if ( list ) {
1088
- var length = list.length;
1089
- add( arguments );
1090
- // Do we need to add the callbacks to the
1091
- // current firing batch?
1092
- if ( firing ) {
1093
- firingLength = list.length;
1094
- // With memory, if we're not firing then
1095
- // we should call right away, unless previous
1096
- // firing was halted (stopOnFalse)
1097
- } else if ( memory && memory !== true ) {
1098
- firingStart = length;
1099
- fire( memory[ 0 ], memory[ 1 ] );
1100
- }
1101
- }
1102
- return this;
1103
- },
1104
- // Remove a callback from the list
1105
- remove: function() {
1106
- if ( list ) {
1107
- var args = arguments,
1108
- argIndex = 0,
1109
- argLength = args.length;
1110
- for ( ; argIndex < argLength ; argIndex++ ) {
1111
- for ( var i = 0; i < list.length; i++ ) {
1112
- if ( args[ argIndex ] === list[ i ] ) {
1113
- // Handle firingIndex and firingLength
1114
- if ( firing ) {
1115
- if ( i <= firingLength ) {
1116
- firingLength--;
1117
- if ( i <= firingIndex ) {
1118
- firingIndex--;
1119
- }
1120
- }
1121
- }
1122
- // Remove the element
1123
- list.splice( i--, 1 );
1124
- // If we have some unicity property then
1125
- // we only need to do this once
1126
- if ( flags.unique ) {
1127
- break;
1128
- }
1129
- }
1130
- }
1131
- }
1132
- }
1133
- return this;
1134
- },
1135
- // Control if a given callback is in the list
1136
- has: function( fn ) {
1137
- if ( list ) {
1138
- var i = 0,
1139
- length = list.length;
1140
- for ( ; i < length; i++ ) {
1141
- if ( fn === list[ i ] ) {
1142
- return true;
1143
- }
1144
- }
1145
- }
1146
- return false;
1147
- },
1148
- // Remove all callbacks from the list
1149
- empty: function() {
1150
- list = [];
1151
- return this;
1152
- },
1153
- // Have the list do nothing anymore
1154
- disable: function() {
1155
- list = stack = memory = undefined;
1156
- return this;
1157
- },
1158
- // Is it disabled?
1159
- disabled: function() {
1160
- return !list;
1161
- },
1162
- // Lock the list in its current state
1163
- lock: function() {
1164
- stack = undefined;
1165
- if ( !memory || memory === true ) {
1166
- self.disable();
1167
- }
1168
- return this;
1169
- },
1170
- // Is it locked?
1171
- locked: function() {
1172
- return !stack;
1173
- },
1174
- // Call all callbacks with the given context and arguments
1175
- fireWith: function( context, args ) {
1176
- if ( stack ) {
1177
- if ( firing ) {
1178
- if ( !flags.once ) {
1179
- stack.push( [ context, args ] );
1180
- }
1181
- } else if ( !( flags.once && memory ) ) {
1182
- fire( context, args );
1183
- }
1184
- }
1185
- return this;
1186
- },
1187
- // Call all the callbacks with the given arguments
1188
- fire: function() {
1189
- self.fireWith( this, arguments );
1190
- return this;
1191
- },
1192
- // To know if the callbacks have already been called at least once
1193
- fired: function() {
1194
- return !!memory;
1195
- }
1196
- };
1197
-
1198
- return self;
1199
- };
1200
-
1201
-
1202
-
1203
-
1204
- var // Static reference to slice
1205
- sliceDeferred = [].slice;
1206
-
1207
- jQuery.extend({
1208
-
1209
- Deferred: function( func ) {
1210
- var doneList = jQuery.Callbacks( "once memory" ),
1211
- failList = jQuery.Callbacks( "once memory" ),
1212
- progressList = jQuery.Callbacks( "memory" ),
1213
- state = "pending",
1214
- lists = {
1215
- resolve: doneList,
1216
- reject: failList,
1217
- notify: progressList
1218
- },
1219
- promise = {
1220
- done: doneList.add,
1221
- fail: failList.add,
1222
- progress: progressList.add,
1223
-
1224
- state: function() {
1225
- return state;
1226
- },
1227
-
1228
- // Deprecated
1229
- isResolved: doneList.fired,
1230
- isRejected: failList.fired,
1231
-
1232
- then: function( doneCallbacks, failCallbacks, progressCallbacks ) {
1233
- deferred.done( doneCallbacks ).fail( failCallbacks ).progress( progressCallbacks );
1234
- return this;
1235
- },
1236
- always: function() {
1237
- return deferred.done.apply( deferred, arguments ).fail.apply( deferred, arguments );
1238
- },
1239
- pipe: function( fnDone, fnFail, fnProgress ) {
1240
- return jQuery.Deferred(function( newDefer ) {
1241
- jQuery.each( {
1242
- done: [ fnDone, "resolve" ],
1243
- fail: [ fnFail, "reject" ],
1244
- progress: [ fnProgress, "notify" ]
1245
- }, function( handler, data ) {
1246
- var fn = data[ 0 ],
1247
- action = data[ 1 ],
1248
- returned;
1249
- if ( jQuery.isFunction( fn ) ) {
1250
- deferred[ handler ](function() {
1251
- returned = fn.apply( this, arguments );
1252
- if ( returned && jQuery.isFunction( returned.promise ) ) {
1253
- returned.promise().then( newDefer.resolve, newDefer.reject, newDefer.notify );
1254
- } else {
1255
- newDefer[ action + "With" ]( this === deferred ? newDefer : this, [ returned ] );
1256
- }
1257
- });
1258
- } else {
1259
- deferred[ handler ]( newDefer[ action ] );
1260
- }
1261
- });
1262
- }).promise();
1263
- },
1264
- // Get a promise for this deferred
1265
- // If obj is provided, the promise aspect is added to the object
1266
- promise: function( obj ) {
1267
- if ( obj == null ) {
1268
- obj = promise;
1269
- } else {
1270
- for ( var key in promise ) {
1271
- obj[ key ] = promise[ key ];
1272
- }
1273
- }
1274
- return obj;
1275
- }
1276
- },
1277
- deferred = promise.promise({}),
1278
- key;
1279
-
1280
- for ( key in lists ) {
1281
- deferred[ key ] = lists[ key ].fire;
1282
- deferred[ key + "With" ] = lists[ key ].fireWith;
1283
- }
1284
-
1285
- // Handle state
1286
- deferred.done( function() {
1287
- state = "resolved";
1288
- }, failList.disable, progressList.lock ).fail( function() {
1289
- state = "rejected";
1290
- }, doneList.disable, progressList.lock );
1291
-
1292
- // Call given func if any
1293
- if ( func ) {
1294
- func.call( deferred, deferred );
1295
- }
1296
-
1297
- // All done!
1298
- return deferred;
1299
- },
1300
-
1301
- // Deferred helper
1302
- when: function( firstParam ) {
1303
- var args = sliceDeferred.call( arguments, 0 ),
1304
- i = 0,
1305
- length = args.length,
1306
- pValues = new Array( length ),
1307
- count = length,
1308
- pCount = length,
1309
- deferred = length <= 1 && firstParam && jQuery.isFunction( firstParam.promise ) ?
1310
- firstParam :
1311
- jQuery.Deferred(),
1312
- promise = deferred.promise();
1313
- function resolveFunc( i ) {
1314
- return function( value ) {
1315
- args[ i ] = arguments.length > 1 ? sliceDeferred.call( arguments, 0 ) : value;
1316
- if ( !( --count ) ) {
1317
- deferred.resolveWith( deferred, args );
1318
- }
1319
- };
1320
- }
1321
- function progressFunc( i ) {
1322
- return function( value ) {
1323
- pValues[ i ] = arguments.length > 1 ? sliceDeferred.call( arguments, 0 ) : value;
1324
- deferred.notifyWith( promise, pValues );
1325
- };
1326
- }
1327
- if ( length > 1 ) {
1328
- for ( ; i < length; i++ ) {
1329
- if ( args[ i ] && args[ i ].promise && jQuery.isFunction( args[ i ].promise ) ) {
1330
- args[ i ].promise().then( resolveFunc(i), deferred.reject, progressFunc(i) );
1331
- } else {
1332
- --count;
1333
- }
1334
- }
1335
- if ( !count ) {
1336
- deferred.resolveWith( deferred, args );
1337
- }
1338
- } else if ( deferred !== firstParam ) {
1339
- deferred.resolveWith( deferred, length ? [ firstParam ] : [] );
1340
- }
1341
- return promise;
1342
- }
1343
- });
1344
-
1345
-
1346
-
1347
-
1348
- jQuery.support = (function() {
1349
-
1350
- var div = document.createElement( "div" ),
1351
- documentElement = document.documentElement,
1352
- all,
1353
- a,
1354
- select,
1355
- opt,
1356
- input,
1357
- marginDiv,
1358
- support,
1359
- fragment,
1360
- body,
1361
- testElementParent,
1362
- testElement,
1363
- testElementStyle,
1364
- tds,
1365
- events,
1366
- eventName,
1367
- i,
1368
- isSupported;
1369
-
1370
- // Preliminary tests
1371
- div.setAttribute("className", "t");
1372
- div.innerHTML = " <link/><table></table><a href='/a' style='top:1px;float:left;opacity:.55;'>a</a><input type='checkbox'/><nav></nav>";
1373
-
1374
-
1375
- all = div.getElementsByTagName( "*" );
1376
- a = div.getElementsByTagName( "a" )[ 0 ];
1377
-
1378
- // Can't get basic test support
1379
- if ( !all || !all.length || !a ) {
1380
- return {};
1381
- }
1382
-
1383
- // First batch of supports tests
1384
- select = document.createElement( "select" );
1385
- opt = select.appendChild( document.createElement("option") );
1386
- input = div.getElementsByTagName( "input" )[ 0 ];
1387
-
1388
- support = {
1389
- // IE strips leading whitespace when .innerHTML is used
1390
- leadingWhitespace: ( div.firstChild.nodeType === 3 ),
1391
-
1392
- // Make sure that tbody elements aren't automatically inserted
1393
- // IE will insert them into empty tables
1394
- tbody: !div.getElementsByTagName( "tbody" ).length,
1395
-
1396
- // Make sure that link elements get serialized correctly by innerHTML
1397
- // This requires a wrapper element in IE
1398
- htmlSerialize: !!div.getElementsByTagName( "link" ).length,
1399
-
1400
- // Get the style information from getAttribute
1401
- // (IE uses .cssText instead)
1402
- style: /top/.test( a.getAttribute("style") ),
1403
-
1404
- // Make sure that URLs aren't manipulated
1405
- // (IE normalizes it by default)
1406
- hrefNormalized: ( a.getAttribute( "href" ) === "/a" ),
1407
-
1408
- // Make sure that element opacity exists
1409
- // (IE uses filter instead)
1410
- // Use a regex to work around a WebKit issue. See #5145
1411
- opacity: /^0.55/.test( a.style.opacity ),
1412
-
1413
- // Verify style float existence
1414
- // (IE uses styleFloat instead of cssFloat)
1415
- cssFloat: !!a.style.cssFloat,
1416
-
1417
- // Make sure unknown elements (like HTML5 elems) are handled appropriately
1418
- unknownElems: !!div.getElementsByTagName( "nav" ).length,
1419
-
1420
- // Make sure that if no value is specified for a checkbox
1421
- // that it defaults to "on".
1422
- // (WebKit defaults to "" instead)
1423
- checkOn: ( input.value === "on" ),
1424
-
1425
- // Make sure that a selected-by-default option has a working selected property.
1426
- // (WebKit defaults to false instead of true, IE too, if it's in an optgroup)
1427
- optSelected: opt.selected,
1428
-
1429
- // Test setAttribute on camelCase class. If it works, we need attrFixes when doing get/setAttribute (ie6/7)
1430
- getSetAttribute: div.className !== "t",
1431
-
1432
- // Tests for enctype support on a form(#6743)
1433
- enctype: !!document.createElement("form").enctype,
1434
-
1435
- // Will be defined later
1436
- submitBubbles: true,
1437
- changeBubbles: true,
1438
- focusinBubbles: false,
1439
- deleteExpando: true,
1440
- noCloneEvent: true,
1441
- inlineBlockNeedsLayout: false,
1442
- shrinkWrapBlocks: false,
1443
- reliableMarginRight: true
1444
- };
1445
-
1446
- // Make sure checked status is properly cloned
1447
- input.checked = true;
1448
- support.noCloneChecked = input.cloneNode( true ).checked;
1449
-
1450
- // Make sure that the options inside disabled selects aren't marked as disabled
1451
- // (WebKit marks them as disabled)
1452
- select.disabled = true;
1453
- support.optDisabled = !opt.disabled;
1454
-
1455
- // Test to see if it's possible to delete an expando from an element
1456
- // Fails in Internet Explorer
1457
- try {
1458
- delete div.test;
1459
- } catch( e ) {
1460
- support.deleteExpando = false;
1461
- }
1462
-
1463
- if ( !div.addEventListener && div.attachEvent && div.fireEvent ) {
1464
- div.attachEvent( "onclick", function() {
1465
- // Cloning a node shouldn't copy over any
1466
- // bound event handlers (IE does this)
1467
- support.noCloneEvent = false;
1468
- });
1469
- div.cloneNode( true ).fireEvent( "onclick" );
1470
- }
1471
-
1472
- // Check if a radio maintains its value
1473
- // after being appended to the DOM
1474
- input = document.createElement("input");
1475
- input.value = "t";
1476
- input.setAttribute("type", "radio");
1477
- support.radioValue = input.value === "t";
1478
-
1479
- input.setAttribute("checked", "checked");
1480
- div.appendChild( input );
1481
- fragment = document.createDocumentFragment();
1482
- fragment.appendChild( div.lastChild );
1483
-
1484
- // WebKit doesn't clone checked state correctly in fragments
1485
- support.checkClone = fragment.cloneNode( true ).cloneNode( true ).lastChild.checked;
1486
-
1487
- div.innerHTML = "";
1488
-
1489
- // Figure out if the W3C box model works as expected
1490
- div.style.width = div.style.paddingLeft = "1px";
1491
-
1492
- // We don't want to do body-related feature tests on frameset
1493
- // documents, which lack a body. So we use
1494
- // document.getElementsByTagName("body")[0], which is undefined in
1495
- // frameset documents, while document.body isn’t. (7398)
1496
- body = document.getElementsByTagName("body")[ 0 ];
1497
- // We use our own, invisible, body unless the body is already present
1498
- // in which case we use a div (#9239)
1499
- testElement = document.createElement( body ? "div" : "body" );
1500
- testElementStyle = {
1501
- visibility: "hidden",
1502
- width: 0,
1503
- height: 0,
1504
- border: 0,
1505
- margin: 0,
1506
- background: "none"
1507
- };
1508
- if ( body ) {
1509
- jQuery.extend( testElementStyle, {
1510
- position: "absolute",
1511
- left: "-999px",
1512
- top: "-999px"
1513
- });
1514
- }
1515
- for ( i in testElementStyle ) {
1516
- testElement.style[ i ] = testElementStyle[ i ];
1517
- }
1518
- testElement.appendChild( div );
1519
- testElementParent = body || documentElement;
1520
- testElementParent.insertBefore( testElement, testElementParent.firstChild );
1521
-
1522
- // Check if a disconnected checkbox will retain its checked
1523
- // value of true after appended to the DOM (IE6/7)
1524
- support.appendChecked = input.checked;
1525
-
1526
- support.boxModel = div.offsetWidth === 2;
1527
-
1528
- if ( "zoom" in div.style ) {
1529
- // Check if natively block-level elements act like inline-block
1530
- // elements when setting their display to 'inline' and giving
1531
- // them layout
1532
- // (IE < 8 does this)
1533
- div.style.display = "inline";
1534
- div.style.zoom = 1;
1535
- support.inlineBlockNeedsLayout = ( div.offsetWidth === 2 );
1536
-
1537
- // Check if elements with layout shrink-wrap their children
1538
- // (IE 6 does this)
1539
- div.style.display = "";
1540
- div.innerHTML = "<div style='width:4px;'></div>";
1541
- support.shrinkWrapBlocks = ( div.offsetWidth !== 2 );
1542
- }
1543
-
1544
- div.innerHTML = "<table><tr><td style='padding:0;border:0;display:none'></td><td>t</td></tr></table>";
1545
- tds = div.getElementsByTagName( "td" );
1546
-
1547
- // Check if table cells still have offsetWidth/Height when they are set
1548
- // to display:none and there are still other visible table cells in a
1549
- // table row; if so, offsetWidth/Height are not reliable for use when
1550
- // determining if an element has been hidden directly using
1551
- // display:none (it is still safe to use offsets if a parent element is
1552
- // hidden; don safety goggles and see bug #4512 for more information).
1553
- // (only IE 8 fails this test)
1554
- isSupported = ( tds[ 0 ].offsetHeight === 0 );
1555
-
1556
- tds[ 0 ].style.display = "";
1557
- tds[ 1 ].style.display = "none";
1558
-
1559
- // Check if empty table cells still have offsetWidth/Height
1560
- // (IE < 8 fail this test)
1561
- support.reliableHiddenOffsets = isSupported && ( tds[ 0 ].offsetHeight === 0 );
1562
- div.innerHTML = "";
1563
-
1564
- // Check if div with explicit width and no margin-right incorrectly
1565
- // gets computed margin-right based on width of container. For more
1566
- // info see bug #3333
1567
- // Fails in WebKit before Feb 2011 nightlies
1568
- // WebKit Bug 13343 - getComputedStyle returns wrong value for margin-right
1569
- if ( document.defaultView && document.defaultView.getComputedStyle ) {
1570
- marginDiv = document.createElement( "div" );
1571
- marginDiv.style.width = "0";
1572
- marginDiv.style.marginRight = "0";
1573
- div.appendChild( marginDiv );
1574
- support.reliableMarginRight =
1575
- ( parseInt( ( document.defaultView.getComputedStyle( marginDiv, null ) || { marginRight: 0 } ).marginRight, 10 ) || 0 ) === 0;
1576
- }
1577
-
1578
- // Technique from Juriy Zaytsev
1579
- // http://perfectionkills.com/detecting-event-support-without-browser-sniffing/
1580
- // We only care about the case where non-standard event systems
1581
- // are used, namely in IE. Short-circuiting here helps us to
1582
- // avoid an eval call (in setAttribute) which can cause CSP
1583
- // to go haywire. See: https://developer.mozilla.org/en/Security/CSP
1584
- if ( div.attachEvent ) {
1585
- for( i in {
1586
- submit: 1,
1587
- change: 1,
1588
- focusin: 1
1589
- } ) {
1590
- eventName = "on" + i;
1591
- isSupported = ( eventName in div );
1592
- if ( !isSupported ) {
1593
- div.setAttribute( eventName, "return;" );
1594
- isSupported = ( typeof div[ eventName ] === "function" );
1595
- }
1596
- support[ i + "Bubbles" ] = isSupported;
1597
- }
1598
- }
1599
-
1600
- // Run fixed position tests at doc ready to avoid a crash
1601
- // related to the invisible body in IE8
1602
- jQuery(function() {
1603
- var container, outer, inner, table, td, offsetSupport,
1604
- conMarginTop = 1,
1605
- ptlm = "position:absolute;top:0;left:0;width:1px;height:1px;margin:0;",
1606
- vb = "visibility:hidden;border:0;",
1607
- style = "style='" + ptlm + "border:5px solid #000;padding:0;'",
1608
- html = "<div " + style + "><div></div></div>" +
1609
- "<table " + style + " cellpadding='0' cellspacing='0'>" +
1610
- "<tr><td></td></tr></table>";
1611
-
1612
- // Reconstruct a container
1613
- body = document.getElementsByTagName("body")[0];
1614
- if ( !body ) {
1615
- // Return for frameset docs that don't have a body
1616
- // These tests cannot be done
1617
- return;
1618
- }
1619
-
1620
- container = document.createElement("div");
1621
- container.style.cssText = vb + "width:0;height:0;position:static;top:0;margin-top:" + conMarginTop + "px";
1622
- body.insertBefore( container, body.firstChild );
1623
-
1624
- // Construct a test element
1625
- testElement = document.createElement("div");
1626
- testElement.style.cssText = ptlm + vb;
1627
-
1628
- testElement.innerHTML = html;
1629
- container.appendChild( testElement );
1630
- outer = testElement.firstChild;
1631
- inner = outer.firstChild;
1632
- td = outer.nextSibling.firstChild.firstChild;
1633
-
1634
- offsetSupport = {
1635
- doesNotAddBorder: ( inner.offsetTop !== 5 ),
1636
- doesAddBorderForTableAndCells: ( td.offsetTop === 5 )
1637
- };
1638
-
1639
- inner.style.position = "fixed";
1640
- inner.style.top = "20px";
1641
-
1642
- // safari subtracts parent border width here which is 5px
1643
- offsetSupport.fixedPosition = ( inner.offsetTop === 20 || inner.offsetTop === 15 );
1644
- inner.style.position = inner.style.top = "";
1645
-
1646
- outer.style.overflow = "hidden";
1647
- outer.style.position = "relative";
1648
-
1649
- offsetSupport.subtractsBorderForOverflowNotVisible = ( inner.offsetTop === -5 );
1650
- offsetSupport.doesNotIncludeMarginInBodyOffset = ( body.offsetTop !== conMarginTop );
1651
-
1652
- body.removeChild( container );
1653
- testElement = container = null;
1654
-
1655
- jQuery.extend( support, offsetSupport );
1656
- });
1657
-
1658
- testElement.innerHTML = "";
1659
- testElementParent.removeChild( testElement );
1660
-
1661
- // Null connected elements to avoid leaks in IE
1662
- testElement = fragment = select = opt = body = marginDiv = div = input = null;
1663
-
1664
- return support;
1665
- })();
1666
-
1667
- // Keep track of boxModel
1668
- jQuery.boxModel = jQuery.support.boxModel;
1669
-
1670
-
1671
-
1672
-
1673
- var rbrace = /^(?:\{.*\}|\[.*\])$/,
1674
- rmultiDash = /([A-Z])/g;
1675
-
1676
- jQuery.extend({
1677
- cache: {},
1678
-
1679
- // Please use with caution
1680
- uuid: 0,
1681
-
1682
- // Unique for each copy of jQuery on the page
1683
- // Non-digits removed to match rinlinejQuery
1684
- expando: "jQuery" + ( jQuery.fn.jquery + Math.random() ).replace( /\D/g, "" ),
1685
-
1686
- // The following elements throw uncatchable exceptions if you
1687
- // attempt to add expando properties to them.
1688
- noData: {
1689
- "embed": true,
1690
- // Ban all objects except for Flash (which handle expandos)
1691
- "object": "clsid:D27CDB6E-AE6D-11cf-96B8-444553540000",
1692
- "applet": true
1693
- },
1694
-
1695
- hasData: function( elem ) {
1696
- elem = elem.nodeType ? jQuery.cache[ elem[jQuery.expando] ] : elem[ jQuery.expando ];
1697
- return !!elem && !isEmptyDataObject( elem );
1698
- },
1699
-
1700
- data: function( elem, name, data, pvt /* Internal Use Only */ ) {
1701
- if ( !jQuery.acceptData( elem ) ) {
1702
- return;
1703
- }
1704
-
1705
- var privateCache, thisCache, ret,
1706
- internalKey = jQuery.expando,
1707
- getByName = typeof name === "string",
1708
-
1709
- // We have to handle DOM nodes and JS objects differently because IE6-7
1710
- // can't GC object references properly across the DOM-JS boundary
1711
- isNode = elem.nodeType,
1712
-
1713
- // Only DOM nodes need the global jQuery cache; JS object data is
1714
- // attached directly to the object so GC can occur automatically
1715
- cache = isNode ? jQuery.cache : elem,
1716
-
1717
- // Only defining an ID for JS objects if its cache already exists allows
1718
- // the code to shortcut on the same path as a DOM node with no cache
1719
- id = isNode ? elem[ jQuery.expando ] : elem[ jQuery.expando ] && jQuery.expando,
1720
- isEvents = name === "events";
1721
-
1722
- // Avoid doing any more work than we need to when trying to get data on an
1723
- // object that has no data at all
1724
- if ( (!id || !cache[id] || (!isEvents && !pvt && !cache[id].data)) && getByName && data === undefined ) {
1725
- return;
1726
- }
1727
-
1728
- if ( !id ) {
1729
- // Only DOM nodes need a new unique ID for each element since their data
1730
- // ends up in the global cache
1731
- if ( isNode ) {
1732
- elem[ jQuery.expando ] = id = ++jQuery.uuid;
1733
- } else {
1734
- id = jQuery.expando;
1735
- }
1736
- }
1737
-
1738
- if ( !cache[ id ] ) {
1739
- cache[ id ] = {};
1740
-
1741
- // Avoids exposing jQuery metadata on plain JS objects when the object
1742
- // is serialized using JSON.stringify
1743
- if ( !isNode ) {
1744
- cache[ id ].toJSON = jQuery.noop;
1745
- }
1746
- }
1747
-
1748
- // An object can be passed to jQuery.data instead of a key/value pair; this gets
1749
- // shallow copied over onto the existing cache
1750
- if ( typeof name === "object" || typeof name === "function" ) {
1751
- if ( pvt ) {
1752
- cache[ id ] = jQuery.extend( cache[ id ], name );
1753
- } else {
1754
- cache[ id ].data = jQuery.extend( cache[ id ].data, name );
1755
- }
1756
- }
1757
-
1758
- privateCache = thisCache = cache[ id ];
1759
-
1760
- // jQuery data() is stored in a separate object inside the object's internal data
1761
- // cache in order to avoid key collisions between internal data and user-defined
1762
- // data.
1763
- if ( !pvt ) {
1764
- if ( !thisCache.data ) {
1765
- thisCache.data = {};
1766
- }
1767
-
1768
- thisCache = thisCache.data;
1769
- }
1770
-
1771
- if ( data !== undefined ) {
1772
- thisCache[ jQuery.camelCase( name ) ] = data;
1773
- }
1774
-
1775
- // Users should not attempt to inspect the internal events object using jQuery.data,
1776
- // it is undocumented and subject to change. But does anyone listen? No.
1777
- if ( isEvents && !thisCache[ name ] ) {
1778
- return privateCache.events;
1779
- }
1780
-
1781
- // Check for both converted-to-camel and non-converted data property names
1782
- // If a data property was specified
1783
- if ( getByName ) {
1784
-
1785
- // First Try to find as-is property data
1786
- ret = thisCache[ name ];
1787
-
1788
- // Test for null|undefined property data
1789
- if ( ret == null ) {
1790
-
1791
- // Try to find the camelCased property
1792
- ret = thisCache[ jQuery.camelCase( name ) ];
1793
- }
1794
- } else {
1795
- ret = thisCache;
1796
- }
1797
-
1798
- return ret;
1799
- },
1800
-
1801
- removeData: function( elem, name, pvt /* Internal Use Only */ ) {
1802
- if ( !jQuery.acceptData( elem ) ) {
1803
- return;
1804
- }
1805
-
1806
- var thisCache, i, l,
1807
-
1808
- // Reference to internal data cache key
1809
- internalKey = jQuery.expando,
1810
-
1811
- isNode = elem.nodeType,
1812
-
1813
- // See jQuery.data for more information
1814
- cache = isNode ? jQuery.cache : elem,
1815
-
1816
- // See jQuery.data for more information
1817
- id = isNode ? elem[ jQuery.expando ] : jQuery.expando;
1818
-
1819
- // If there is already no cache entry for this object, there is no
1820
- // purpose in continuing
1821
- if ( !cache[ id ] ) {
1822
- return;
1823
- }
1824
-
1825
- if ( name ) {
1826
-
1827
- thisCache = pvt ? cache[ id ] : cache[ id ].data;
1828
-
1829
- if ( thisCache ) {
1830
-
1831
- // Support space separated names
1832
- if ( jQuery.isArray( name ) ) {
1833
- name = name;
1834
- } else if ( name in thisCache ) {
1835
- name = [ name ];
1836
- } else {
1837
-
1838
- // split the camel cased version by spaces
1839
- name = jQuery.camelCase( name );
1840
- if ( name in thisCache ) {
1841
- name = [ name ];
1842
- } else {
1843
- name = name.split( " " );
1844
- }
1845
- }
1846
-
1847
- for ( i = 0, l = name.length; i < l; i++ ) {
1848
- delete thisCache[ name[i] ];
1849
- }
1850
-
1851
- // If there is no data left in the cache, we want to continue
1852
- // and let the cache object itself get destroyed
1853
- if ( !( pvt ? isEmptyDataObject : jQuery.isEmptyObject )( thisCache ) ) {
1854
- return;
1855
- }
1856
- }
1857
- }
1858
-
1859
- // See jQuery.data for more information
1860
- if ( !pvt ) {
1861
- delete cache[ id ].data;
1862
-
1863
- // Don't destroy the parent cache unless the internal data object
1864
- // had been the only thing left in it
1865
- if ( !isEmptyDataObject(cache[ id ]) ) {
1866
- return;
1867
- }
1868
- }
1869
-
1870
- // Browsers that fail expando deletion also refuse to delete expandos on
1871
- // the window, but it will allow it on all other JS objects; other browsers
1872
- // don't care
1873
- // Ensure that `cache` is not a window object #10080
1874
- if ( jQuery.support.deleteExpando || !cache.setInterval ) {
1875
- delete cache[ id ];
1876
- } else {
1877
- cache[ id ] = null;
1878
- }
1879
-
1880
- // We destroyed the cache and need to eliminate the expando on the node to avoid
1881
- // false lookups in the cache for entries that no longer exist
1882
- if ( isNode ) {
1883
- // IE does not allow us to delete expando properties from nodes,
1884
- // nor does it have a removeAttribute function on Document nodes;
1885
- // we must handle all of these cases
1886
- if ( jQuery.support.deleteExpando ) {
1887
- delete elem[ jQuery.expando ];
1888
- } else if ( elem.removeAttribute ) {
1889
- elem.removeAttribute( jQuery.expando );
1890
- } else {
1891
- elem[ jQuery.expando ] = null;
1892
- }
1893
- }
1894
- },
1895
-
1896
- // For internal use only.
1897
- _data: function( elem, name, data ) {
1898
- return jQuery.data( elem, name, data, true );
1899
- },
1900
-
1901
- // A method for determining if a DOM node can handle the data expando
1902
- acceptData: function( elem ) {
1903
- if ( elem.nodeName ) {
1904
- var match = jQuery.noData[ elem.nodeName.toLowerCase() ];
1905
-
1906
- if ( match ) {
1907
- return !(match === true || elem.getAttribute("classid") !== match);
1908
- }
1909
- }
1910
-
1911
- return true;
1912
- }
1913
- });
1914
-
1915
- jQuery.fn.extend({
1916
- data: function( key, value ) {
1917
- var parts, attr, name,
1918
- data = null;
1919
-
1920
- if ( typeof key === "undefined" ) {
1921
- if ( this.length ) {
1922
- data = jQuery.data( this[0] );
1923
-
1924
- if ( this[0].nodeType === 1 && !jQuery._data( this[0], "parsedAttrs" ) ) {
1925
- attr = this[0].attributes;
1926
- for ( var i = 0, l = attr.length; i < l; i++ ) {
1927
- name = attr[i].name;
1928
-
1929
- if ( name.indexOf( "data-" ) === 0 ) {
1930
- name = jQuery.camelCase( name.substring(5) );
1931
-
1932
- dataAttr( this[0], name, data[ name ] );
1933
- }
1934
- }
1935
- jQuery._data( this[0], "parsedAttrs", true );
1936
- }
1937
- }
1938
-
1939
- return data;
1940
-
1941
- } else if ( typeof key === "object" ) {
1942
- return this.each(function() {
1943
- jQuery.data( this, key );
1944
- });
1945
- }
1946
-
1947
- parts = key.split(".");
1948
- parts[1] = parts[1] ? "." + parts[1] : "";
1949
-
1950
- if ( value === undefined ) {
1951
- data = this.triggerHandler("getData" + parts[1] + "!", [parts[0]]);
1952
-
1953
- // Try to fetch any internally stored data first
1954
- if ( data === undefined && this.length ) {
1955
- data = jQuery.data( this[0], key );
1956
- data = dataAttr( this[0], key, data );
1957
- }
1958
-
1959
- return data === undefined && parts[1] ?
1960
- this.data( parts[0] ) :
1961
- data;
1962
-
1963
- } else {
1964
- return this.each(function() {
1965
- var $this = jQuery( this ),
1966
- args = [ parts[0], value ];
1967
-
1968
- $this.triggerHandler( "setData" + parts[1] + "!", args );
1969
- jQuery.data( this, key, value );
1970
- $this.triggerHandler( "changeData" + parts[1] + "!", args );
1971
- });
1972
- }
1973
- },
1974
-
1975
- removeData: function( key ) {
1976
- return this.each(function() {
1977
- jQuery.removeData( this, key );
1978
- });
1979
- }
1980
- });
1981
-
1982
- function dataAttr( elem, key, data ) {
1983
- // If nothing was found internally, try to fetch any
1984
- // data from the HTML5 data-* attribute
1985
- if ( data === undefined && elem.nodeType === 1 ) {
1986
-
1987
- var name = "data-" + key.replace( rmultiDash, "-$1" ).toLowerCase();
1988
-
1989
- data = elem.getAttribute( name );
1990
-
1991
- if ( typeof data === "string" ) {
1992
- try {
1993
- data = data === "true" ? true :
1994
- data === "false" ? false :
1995
- data === "null" ? null :
1996
- jQuery.isNumeric( data ) ? parseFloat( data ) :
1997
- rbrace.test( data ) ? jQuery.parseJSON( data ) :
1998
- data;
1999
- } catch( e ) {}
2000
-
2001
- // Make sure we set the data so it isn't changed later
2002
- jQuery.data( elem, key, data );
2003
-
2004
- } else {
2005
- data = undefined;
2006
- }
2007
- }
2008
-
2009
- return data;
2010
- }
2011
-
2012
- // checks a cache object for emptiness
2013
- function isEmptyDataObject( obj ) {
2014
- for ( var name in obj ) {
2015
-
2016
- // if the public data object is empty, the private is still empty
2017
- if ( name === "data" && jQuery.isEmptyObject( obj[name] ) ) {
2018
- continue;
2019
- }
2020
- if ( name !== "toJSON" ) {
2021
- return false;
2022
- }
2023
- }
2024
-
2025
- return true;
2026
- }
2027
-
2028
-
2029
-
2030
-
2031
- function handleQueueMarkDefer( elem, type, src ) {
2032
- var deferDataKey = type + "defer",
2033
- queueDataKey = type + "queue",
2034
- markDataKey = type + "mark",
2035
- defer = jQuery._data( elem, deferDataKey );
2036
- if ( defer &&
2037
- ( src === "queue" || !jQuery._data(elem, queueDataKey) ) &&
2038
- ( src === "mark" || !jQuery._data(elem, markDataKey) ) ) {
2039
- // Give room for hard-coded callbacks to fire first
2040
- // and eventually mark/queue something else on the element
2041
- setTimeout( function() {
2042
- if ( !jQuery._data( elem, queueDataKey ) &&
2043
- !jQuery._data( elem, markDataKey ) ) {
2044
- jQuery.removeData( elem, deferDataKey, true );
2045
- defer.fire();
2046
- }
2047
- }, 0 );
2048
- }
2049
- }
2050
-
2051
- jQuery.extend({
2052
-
2053
- _mark: function( elem, type ) {
2054
- if ( elem ) {
2055
- type = ( type || "fx" ) + "mark";
2056
- jQuery._data( elem, type, (jQuery._data( elem, type ) || 0) + 1 );
2057
- }
2058
- },
2059
-
2060
- _unmark: function( force, elem, type ) {
2061
- if ( force !== true ) {
2062
- type = elem;
2063
- elem = force;
2064
- force = false;
2065
- }
2066
- if ( elem ) {
2067
- type = type || "fx";
2068
- var key = type + "mark",
2069
- count = force ? 0 : ( (jQuery._data( elem, key ) || 1) - 1 );
2070
- if ( count ) {
2071
- jQuery._data( elem, key, count );
2072
- } else {
2073
- jQuery.removeData( elem, key, true );
2074
- handleQueueMarkDefer( elem, type, "mark" );
2075
- }
2076
- }
2077
- },
2078
-
2079
- queue: function( elem, type, data ) {
2080
- var q;
2081
- if ( elem ) {
2082
- type = ( type || "fx" ) + "queue";
2083
- q = jQuery._data( elem, type );
2084
-
2085
- // Speed up dequeue by getting out quickly if this is just a lookup
2086
- if ( data ) {
2087
- if ( !q || jQuery.isArray(data) ) {
2088
- q = jQuery._data( elem, type, jQuery.makeArray(data) );
2089
- } else {
2090
- q.push( data );
2091
- }
2092
- }
2093
- return q || [];
2094
- }
2095
- },
2096
-
2097
- dequeue: function( elem, type ) {
2098
- type = type || "fx";
2099
-
2100
- var queue = jQuery.queue( elem, type ),
2101
- fn = queue.shift(),
2102
- hooks = {};
2103
-
2104
- // If the fx queue is dequeued, always remove the progress sentinel
2105
- if ( fn === "inprogress" ) {
2106
- fn = queue.shift();
2107
- }
2108
-
2109
- if ( fn ) {
2110
- // Add a progress sentinel to prevent the fx queue from being
2111
- // automatically dequeued
2112
- if ( type === "fx" ) {
2113
- queue.unshift( "inprogress" );
2114
- }
2115
-
2116
- jQuery._data( elem, type + ".run", hooks );
2117
- fn.call( elem, function() {
2118
- jQuery.dequeue( elem, type );
2119
- }, hooks );
2120
- }
2121
-
2122
- if ( !queue.length ) {
2123
- jQuery.removeData( elem, type + "queue " + type + ".run", true );
2124
- handleQueueMarkDefer( elem, type, "queue" );
2125
- }
2126
- }
2127
- });
2128
-
2129
- jQuery.fn.extend({
2130
- queue: function( type, data ) {
2131
- if ( typeof type !== "string" ) {
2132
- data = type;
2133
- type = "fx";
2134
- }
2135
-
2136
- if ( data === undefined ) {
2137
- return jQuery.queue( this[0], type );
2138
- }
2139
- return this.each(function() {
2140
- var queue = jQuery.queue( this, type, data );
2141
-
2142
- if ( type === "fx" && queue[0] !== "inprogress" ) {
2143
- jQuery.dequeue( this, type );
2144
- }
2145
- });
2146
- },
2147
- dequeue: function( type ) {
2148
- return this.each(function() {
2149
- jQuery.dequeue( this, type );
2150
- });
2151
- },
2152
- // Based off of the plugin by Clint Helfers, with permission.
2153
- // http://blindsignals.com/index.php/2009/07/jquery-delay/
2154
- delay: function( time, type ) {
2155
- time = jQuery.fx ? jQuery.fx.speeds[ time ] || time : time;
2156
- type = type || "fx";
2157
-
2158
- return this.queue( type, function( next, hooks ) {
2159
- var timeout = setTimeout( next, time );
2160
- hooks.stop = function() {
2161
- clearTimeout( timeout );
2162
- };
2163
- });
2164
- },
2165
- clearQueue: function( type ) {
2166
- return this.queue( type || "fx", [] );
2167
- },
2168
- // Get a promise resolved when queues of a certain type
2169
- // are emptied (fx is the type by default)
2170
- promise: function( type, object ) {
2171
- if ( typeof type !== "string" ) {
2172
- object = type;
2173
- type = undefined;
2174
- }
2175
- type = type || "fx";
2176
- var defer = jQuery.Deferred(),
2177
- elements = this,
2178
- i = elements.length,
2179
- count = 1,
2180
- deferDataKey = type + "defer",
2181
- queueDataKey = type + "queue",
2182
- markDataKey = type + "mark",
2183
- tmp;
2184
- function resolve() {
2185
- if ( !( --count ) ) {
2186
- defer.resolveWith( elements, [ elements ] );
2187
- }
2188
- }
2189
- while( i-- ) {
2190
- if (( tmp = jQuery.data( elements[ i ], deferDataKey, undefined, true ) ||
2191
- ( jQuery.data( elements[ i ], queueDataKey, undefined, true ) ||
2192
- jQuery.data( elements[ i ], markDataKey, undefined, true ) ) &&
2193
- jQuery.data( elements[ i ], deferDataKey, jQuery.Callbacks( "once memory" ), true ) )) {
2194
- count++;
2195
- tmp.add( resolve );
2196
- }
2197
- }
2198
- resolve();
2199
- return defer.promise();
2200
- }
2201
- });
2202
-
2203
-
2204
-
2205
-
2206
- var rclass = /[\n\t\r]/g,
2207
- rspace = /\s+/,
2208
- rreturn = /\r/g,
2209
- rtype = /^(?:button|input)$/i,
2210
- rfocusable = /^(?:button|input|object|select|textarea)$/i,
2211
- rclickable = /^a(?:rea)?$/i,
2212
- rboolean = /^(?:autofocus|autoplay|async|checked|controls|defer|disabled|hidden|loop|multiple|open|readonly|required|scoped|selected)$/i,
2213
- getSetAttribute = jQuery.support.getSetAttribute,
2214
- nodeHook, boolHook, fixSpecified;
2215
-
2216
- jQuery.fn.extend({
2217
- attr: function( name, value ) {
2218
- return jQuery.access( this, name, value, true, jQuery.attr );
2219
- },
2220
-
2221
- removeAttr: function( name ) {
2222
- return this.each(function() {
2223
- jQuery.removeAttr( this, name );
2224
- });
2225
- },
2226
-
2227
- prop: function( name, value ) {
2228
- return jQuery.access( this, name, value, true, jQuery.prop );
2229
- },
2230
-
2231
- removeProp: function( name ) {
2232
- name = jQuery.propFix[ name ] || name;
2233
- return this.each(function() {
2234
- // try/catch handles cases where IE balks (such as removing a property on window)
2235
- try {
2236
- this[ name ] = undefined;
2237
- delete this[ name ];
2238
- } catch( e ) {}
2239
- });
2240
- },
2241
-
2242
- addClass: function( value ) {
2243
- var classNames, i, l, elem,
2244
- setClass, c, cl;
2245
-
2246
- if ( jQuery.isFunction( value ) ) {
2247
- return this.each(function( j ) {
2248
- jQuery( this ).addClass( value.call(this, j, this.className) );
2249
- });
2250
- }
2251
-
2252
- if ( value && typeof value === "string" ) {
2253
- classNames = value.split( rspace );
2254
-
2255
- for ( i = 0, l = this.length; i < l; i++ ) {
2256
- elem = this[ i ];
2257
-
2258
- if ( elem.nodeType === 1 ) {
2259
- if ( !elem.className && classNames.length === 1 ) {
2260
- elem.className = value;
2261
-
2262
- } else {
2263
- setClass = " " + elem.className + " ";
2264
-
2265
- for ( c = 0, cl = classNames.length; c < cl; c++ ) {
2266
- if ( !~setClass.indexOf( " " + classNames[ c ] + " " ) ) {
2267
- setClass += classNames[ c ] + " ";
2268
- }
2269
- }
2270
- elem.className = jQuery.trim( setClass );
2271
- }
2272
- }
2273
- }
2274
- }
2275
-
2276
- return this;
2277
- },
2278
-
2279
- removeClass: function( value ) {
2280
- var classNames, i, l, elem, className, c, cl;
2281
-
2282
- if ( jQuery.isFunction( value ) ) {
2283
- return this.each(function( j ) {
2284
- jQuery( this ).removeClass( value.call(this, j, this.className) );
2285
- });
2286
- }
2287
-
2288
- if ( (value && typeof value === "string") || value === undefined ) {
2289
- classNames = ( value || "" ).split( rspace );
2290
-
2291
- for ( i = 0, l = this.length; i < l; i++ ) {
2292
- elem = this[ i ];
2293
-
2294
- if ( elem.nodeType === 1 && elem.className ) {
2295
- if ( value ) {
2296
- className = (" " + elem.className + " ").replace( rclass, " " );
2297
- for ( c = 0, cl = classNames.length; c < cl; c++ ) {
2298
- className = className.replace(" " + classNames[ c ] + " ", " ");
2299
- }
2300
- elem.className = jQuery.trim( className );
2301
-
2302
- } else {
2303
- elem.className = "";
2304
- }
2305
- }
2306
- }
2307
- }
2308
-
2309
- return this;
2310
- },
2311
-
2312
- toggleClass: function( value, stateVal ) {
2313
- var type = typeof value,
2314
- isBool = typeof stateVal === "boolean";
2315
-
2316
- if ( jQuery.isFunction( value ) ) {
2317
- return this.each(function( i ) {
2318
- jQuery( this ).toggleClass( value.call(this, i, this.className, stateVal), stateVal );
2319
- });
2320
- }
2321
-
2322
- return this.each(function() {
2323
- if ( type === "string" ) {
2324
- // toggle individual class names
2325
- var className,
2326
- i = 0,
2327
- self = jQuery( this ),
2328
- state = stateVal,
2329
- classNames = value.split( rspace );
2330
-
2331
- while ( (className = classNames[ i++ ]) ) {
2332
- // check each className given, space seperated list
2333
- state = isBool ? state : !self.hasClass( className );
2334
- self[ state ? "addClass" : "removeClass" ]( className );
2335
- }
2336
-
2337
- } else if ( type === "undefined" || type === "boolean" ) {
2338
- if ( this.className ) {
2339
- // store className if set
2340
- jQuery._data( this, "__className__", this.className );
2341
- }
2342
-
2343
- // toggle whole className
2344
- this.className = this.className || value === false ? "" : jQuery._data( this, "__className__" ) || "";
2345
- }
2346
- });
2347
- },
2348
-
2349
- hasClass: function( selector ) {
2350
- var className = " " + selector + " ",
2351
- i = 0,
2352
- l = this.length;
2353
- for ( ; i < l; i++ ) {
2354
- if ( this[i].nodeType === 1 && (" " + this[i].className + " ").replace(rclass, " ").indexOf( className ) > -1 ) {
2355
- return true;
2356
- }
2357
- }
2358
-
2359
- return false;
2360
- },
2361
-
2362
- val: function( value ) {
2363
- var hooks, ret, isFunction,
2364
- elem = this[0];
2365
-
2366
- if ( !arguments.length ) {
2367
- if ( elem ) {
2368
- hooks = jQuery.valHooks[ elem.nodeName.toLowerCase() ] || jQuery.valHooks[ elem.type ];
2369
-
2370
- if ( hooks && "get" in hooks && (ret = hooks.get( elem, "value" )) !== undefined ) {
2371
- return ret;
2372
- }
2373
-
2374
- ret = elem.value;
2375
-
2376
- return typeof ret === "string" ?
2377
- // handle most common string cases
2378
- ret.replace(rreturn, "") :
2379
- // handle cases where value is null/undef or number
2380
- ret == null ? "" : ret;
2381
- }
2382
-
2383
- return undefined;
2384
- }
2385
-
2386
- isFunction = jQuery.isFunction( value );
2387
-
2388
- return this.each(function( i ) {
2389
- var self = jQuery(this), val;
2390
-
2391
- if ( this.nodeType !== 1 ) {
2392
- return;
2393
- }
2394
-
2395
- if ( isFunction ) {
2396
- val = value.call( this, i, self.val() );
2397
- } else {
2398
- val = value;
2399
- }
2400
-
2401
- // Treat null/undefined as ""; convert numbers to string
2402
- if ( val == null ) {
2403
- val = "";
2404
- } else if ( typeof val === "number" ) {
2405
- val += "";
2406
- } else if ( jQuery.isArray( val ) ) {
2407
- val = jQuery.map(val, function ( value ) {
2408
- return value == null ? "" : value + "";
2409
- });
2410
- }
2411
-
2412
- hooks = jQuery.valHooks[ this.nodeName.toLowerCase() ] || jQuery.valHooks[ this.type ];
2413
-
2414
- // If set returns undefined, fall back to normal setting
2415
- if ( !hooks || !("set" in hooks) || hooks.set( this, val, "value" ) === undefined ) {
2416
- this.value = val;
2417
- }
2418
- });
2419
- }
2420
- });
2421
-
2422
- jQuery.extend({
2423
- valHooks: {
2424
- option: {
2425
- get: function( elem ) {
2426
- // attributes.value is undefined in Blackberry 4.7 but
2427
- // uses .value. See #6932
2428
- var val = elem.attributes.value;
2429
- return !val || val.specified ? elem.value : elem.text;
2430
- }
2431
- },
2432
- select: {
2433
- get: function( elem ) {
2434
- var value, i, max, option,
2435
- index = elem.selectedIndex,
2436
- values = [],
2437
- options = elem.options,
2438
- one = elem.type === "select-one";
2439
-
2440
- // Nothing was selected
2441
- if ( index < 0 ) {
2442
- return null;
2443
- }
2444
-
2445
- // Loop through all the selected options
2446
- i = one ? index : 0;
2447
- max = one ? index + 1 : options.length;
2448
- for ( ; i < max; i++ ) {
2449
- option = options[ i ];
2450
-
2451
- // Don't return options that are disabled or in a disabled optgroup
2452
- if ( option.selected && (jQuery.support.optDisabled ? !option.disabled : option.getAttribute("disabled") === null) &&
2453
- (!option.parentNode.disabled || !jQuery.nodeName( option.parentNode, "optgroup" )) ) {
2454
-
2455
- // Get the specific value for the option
2456
- value = jQuery( option ).val();
2457
-
2458
- // We don't need an array for one selects
2459
- if ( one ) {
2460
- return value;
2461
- }
2462
-
2463
- // Multi-Selects return an array
2464
- values.push( value );
2465
- }
2466
- }
2467
-
2468
- // Fixes Bug #2551 -- select.val() broken in IE after form.reset()
2469
- if ( one && !values.length && options.length ) {
2470
- return jQuery( options[ index ] ).val();
2471
- }
2472
-
2473
- return values;
2474
- },
2475
-
2476
- set: function( elem, value ) {
2477
- var values = jQuery.makeArray( value );
2478
-
2479
- jQuery(elem).find("option").each(function() {
2480
- this.selected = jQuery.inArray( jQuery(this).val(), values ) >= 0;
2481
- });
2482
-
2483
- if ( !values.length ) {
2484
- elem.selectedIndex = -1;
2485
- }
2486
- return values;
2487
- }
2488
- }
2489
- },
2490
-
2491
- attrFn: {
2492
- val: true,
2493
- css: true,
2494
- html: true,
2495
- text: true,
2496
- data: true,
2497
- width: true,
2498
- height: true,
2499
- offset: true
2500
- },
2501
-
2502
- attr: function( elem, name, value, pass ) {
2503
- var ret, hooks, notxml,
2504
- nType = elem.nodeType;
2505
-
2506
- // don't get/set attributes on text, comment and attribute nodes
2507
- if ( !elem || nType === 3 || nType === 8 || nType === 2 ) {
2508
- return undefined;
2509
- }
2510
-
2511
- if ( pass && name in jQuery.attrFn ) {
2512
- return jQuery( elem )[ name ]( value );
2513
- }
2514
-
2515
- // Fallback to prop when attributes are not supported
2516
- if ( !("getAttribute" in elem) ) {
2517
- return jQuery.prop( elem, name, value );
2518
- }
2519
-
2520
- notxml = nType !== 1 || !jQuery.isXMLDoc( elem );
2521
-
2522
- // All attributes are lowercase
2523
- // Grab necessary hook if one is defined
2524
- if ( notxml ) {
2525
- name = name.toLowerCase();
2526
- hooks = jQuery.attrHooks[ name ] || ( rboolean.test( name ) ? boolHook : nodeHook );
2527
- }
2528
-
2529
- if ( value !== undefined ) {
2530
-
2531
- if ( value === null ) {
2532
- jQuery.removeAttr( elem, name );
2533
- return undefined;
2534
-
2535
- } else if ( hooks && "set" in hooks && notxml && (ret = hooks.set( elem, value, name )) !== undefined ) {
2536
- return ret;
2537
-
2538
- } else {
2539
- elem.setAttribute( name, "" + value );
2540
- return value;
2541
- }
2542
-
2543
- } else if ( hooks && "get" in hooks && notxml && (ret = hooks.get( elem, name )) !== null ) {
2544
- return ret;
2545
-
2546
- } else {
2547
-
2548
- ret = elem.getAttribute( name );
2549
-
2550
- // Non-existent attributes return null, we normalize to undefined
2551
- return ret === null ?
2552
- undefined :
2553
- ret;
2554
- }
2555
- },
2556
-
2557
- removeAttr: function( elem, value ) {
2558
- var propName, attrNames, name, l,
2559
- i = 0;
2560
-
2561
- if ( elem.nodeType === 1 ) {
2562
- attrNames = ( value || "" ).split( rspace );
2563
- l = attrNames.length;
2564
-
2565
- for ( ; i < l; i++ ) {
2566
- name = attrNames[ i ].toLowerCase();
2567
- propName = jQuery.propFix[ name ] || name;
2568
-
2569
- // See #9699 for explanation of this approach (setting first, then removal)
2570
- jQuery.attr( elem, name, "" );
2571
- elem.removeAttribute( getSetAttribute ? name : propName );
2572
-
2573
- // Set corresponding property to false for boolean attributes
2574
- if ( rboolean.test( name ) && propName in elem ) {
2575
- elem[ propName ] = false;
2576
- }
2577
- }
2578
- }
2579
- },
2580
-
2581
- attrHooks: {
2582
- type: {
2583
- set: function( elem, value ) {
2584
- // We can't allow the type property to be changed (since it causes problems in IE)
2585
- if ( rtype.test( elem.nodeName ) && elem.parentNode ) {
2586
- jQuery.error( "type property can't be changed" );
2587
- } else if ( !jQuery.support.radioValue && value === "radio" && jQuery.nodeName(elem, "input") ) {
2588
- // Setting the type on a radio button after the value resets the value in IE6-9
2589
- // Reset value to it's default in case type is set after value
2590
- // This is for element creation
2591
- var val = elem.value;
2592
- elem.setAttribute( "type", value );
2593
- if ( val ) {
2594
- elem.value = val;
2595
- }
2596
- return value;
2597
- }
2598
- }
2599
- },
2600
- // Use the value property for back compat
2601
- // Use the nodeHook for button elements in IE6/7 (#1954)
2602
- value: {
2603
- get: function( elem, name ) {
2604
- if ( nodeHook && jQuery.nodeName( elem, "button" ) ) {
2605
- return nodeHook.get( elem, name );
2606
- }
2607
- return name in elem ?
2608
- elem.value :
2609
- null;
2610
- },
2611
- set: function( elem, value, name ) {
2612
- if ( nodeHook && jQuery.nodeName( elem, "button" ) ) {
2613
- return nodeHook.set( elem, value, name );
2614
- }
2615
- // Does not return so that setAttribute is also used
2616
- elem.value = value;
2617
- }
2618
- }
2619
- },
2620
-
2621
- propFix: {
2622
- tabindex: "tabIndex",
2623
- readonly: "readOnly",
2624
- "for": "htmlFor",
2625
- "class": "className",
2626
- maxlength: "maxLength",
2627
- cellspacing: "cellSpacing",
2628
- cellpadding: "cellPadding",
2629
- rowspan: "rowSpan",
2630
- colspan: "colSpan",
2631
- usemap: "useMap",
2632
- frameborder: "frameBorder",
2633
- contenteditable: "contentEditable"
2634
- },
2635
-
2636
- prop: function( elem, name, value ) {
2637
- var ret, hooks, notxml,
2638
- nType = elem.nodeType;
2639
-
2640
- // don't get/set properties on text, comment and attribute nodes
2641
- if ( !elem || nType === 3 || nType === 8 || nType === 2 ) {
2642
- return undefined;
2643
- }
2644
-
2645
- notxml = nType !== 1 || !jQuery.isXMLDoc( elem );
2646
-
2647
- if ( notxml ) {
2648
- // Fix name and attach hooks
2649
- name = jQuery.propFix[ name ] || name;
2650
- hooks = jQuery.propHooks[ name ];
2651
- }
2652
-
2653
- if ( value !== undefined ) {
2654
- if ( hooks && "set" in hooks && (ret = hooks.set( elem, value, name )) !== undefined ) {
2655
- return ret;
2656
-
2657
- } else {
2658
- return ( elem[ name ] = value );
2659
- }
2660
-
2661
- } else {
2662
- if ( hooks && "get" in hooks && (ret = hooks.get( elem, name )) !== null ) {
2663
- return ret;
2664
-
2665
- } else {
2666
- return elem[ name ];
2667
- }
2668
- }
2669
- },
2670
-
2671
- propHooks: {
2672
- tabIndex: {
2673
- get: function( elem ) {
2674
- // elem.tabIndex doesn't always return the correct value when it hasn't been explicitly set
2675
- // http://fluidproject.org/blog/2008/01/09/getting-setting-and-removing-tabindex-values-with-javascript/
2676
- var attributeNode = elem.getAttributeNode("tabindex");
2677
-
2678
- return attributeNode && attributeNode.specified ?
2679
- parseInt( attributeNode.value, 10 ) :
2680
- rfocusable.test( elem.nodeName ) || rclickable.test( elem.nodeName ) && elem.href ?
2681
- 0 :
2682
- undefined;
2683
- }
2684
- }
2685
- }
2686
- });
2687
-
2688
- // Add the tabIndex propHook to attrHooks for back-compat (different case is intentional)
2689
- jQuery.attrHooks.tabindex = jQuery.propHooks.tabIndex;
2690
-
2691
- // Hook for boolean attributes
2692
- boolHook = {
2693
- get: function( elem, name ) {
2694
- // Align boolean attributes with corresponding properties
2695
- // Fall back to attribute presence where some booleans are not supported
2696
- var attrNode,
2697
- property = jQuery.prop( elem, name );
2698
- return property === true || typeof property !== "boolean" && ( attrNode = elem.getAttributeNode(name) ) && attrNode.nodeValue !== false ?
2699
- name.toLowerCase() :
2700
- undefined;
2701
- },
2702
- set: function( elem, value, name ) {
2703
- var propName;
2704
- if ( value === false ) {
2705
- // Remove boolean attributes when set to false
2706
- jQuery.removeAttr( elem, name );
2707
- } else {
2708
- // value is true since we know at this point it's type boolean and not false
2709
- // Set boolean attributes to the same name and set the DOM property
2710
- propName = jQuery.propFix[ name ] || name;
2711
- if ( propName in elem ) {
2712
- // Only set the IDL specifically if it already exists on the element
2713
- elem[ propName ] = true;
2714
- }
2715
-
2716
- elem.setAttribute( name, name.toLowerCase() );
2717
- }
2718
- return name;
2719
- }
2720
- };
2721
-
2722
- // IE6/7 do not support getting/setting some attributes with get/setAttribute
2723
- if ( !getSetAttribute ) {
2724
-
2725
- fixSpecified = {
2726
- name: true,
2727
- id: true
2728
- };
2729
-
2730
- // Use this for any attribute in IE6/7
2731
- // This fixes almost every IE6/7 issue
2732
- nodeHook = jQuery.valHooks.button = {
2733
- get: function( elem, name ) {
2734
- var ret;
2735
- ret = elem.getAttributeNode( name );
2736
- return ret && ( fixSpecified[ name ] ? ret.nodeValue !== "" : ret.specified ) ?
2737
- ret.nodeValue :
2738
- undefined;
2739
- },
2740
- set: function( elem, value, name ) {
2741
- // Set the existing or create a new attribute node
2742
- var ret = elem.getAttributeNode( name );
2743
- if ( !ret ) {
2744
- ret = document.createAttribute( name );
2745
- elem.setAttributeNode( ret );
2746
- }
2747
- return ( ret.nodeValue = value + "" );
2748
- }
2749
- };
2750
-
2751
- // Apply the nodeHook to tabindex
2752
- jQuery.attrHooks.tabindex.set = nodeHook.set;
2753
-
2754
- // Set width and height to auto instead of 0 on empty string( Bug #8150 )
2755
- // This is for removals
2756
- jQuery.each([ "width", "height" ], function( i, name ) {
2757
- jQuery.attrHooks[ name ] = jQuery.extend( jQuery.attrHooks[ name ], {
2758
- set: function( elem, value ) {
2759
- if ( value === "" ) {
2760
- elem.setAttribute( name, "auto" );
2761
- return value;
2762
- }
2763
- }
2764
- });
2765
- });
2766
-
2767
- // Set contenteditable to false on removals(#10429)
2768
- // Setting to empty string throws an error as an invalid value
2769
- jQuery.attrHooks.contenteditable = {
2770
- get: nodeHook.get,
2771
- set: function( elem, value, name ) {
2772
- if ( value === "" ) {
2773
- value = "false";
2774
- }
2775
- nodeHook.set( elem, value, name );
2776
- }
2777
- };
2778
- }
2779
-
2780
-
2781
- // Some attributes require a special call on IE
2782
- if ( !jQuery.support.hrefNormalized ) {
2783
- jQuery.each([ "href", "src", "width", "height" ], function( i, name ) {
2784
- jQuery.attrHooks[ name ] = jQuery.extend( jQuery.attrHooks[ name ], {
2785
- get: function( elem ) {
2786
- var ret = elem.getAttribute( name, 2 );
2787
- return ret === null ? undefined : ret;
2788
- }
2789
- });
2790
- });
2791
- }
2792
-
2793
- if ( !jQuery.support.style ) {
2794
- jQuery.attrHooks.style = {
2795
- get: function( elem ) {
2796
- // Return undefined in the case of empty string
2797
- // Normalize to lowercase since IE uppercases css property names
2798
- return elem.style.cssText.toLowerCase() || undefined;
2799
- },
2800
- set: function( elem, value ) {
2801
- return ( elem.style.cssText = "" + value );
2802
- }
2803
- };
2804
- }
2805
-
2806
- // Safari mis-reports the default selected property of an option
2807
- // Accessing the parent's selectedIndex property fixes it
2808
- if ( !jQuery.support.optSelected ) {
2809
- jQuery.propHooks.selected = jQuery.extend( jQuery.propHooks.selected, {
2810
- get: function( elem ) {
2811
- var parent = elem.parentNode;
2812
-
2813
- if ( parent ) {
2814
- parent.selectedIndex;
2815
-
2816
- // Make sure that it also works with optgroups, see #5701
2817
- if ( parent.parentNode ) {
2818
- parent.parentNode.selectedIndex;
2819
- }
2820
- }
2821
- return null;
2822
- }
2823
- });
2824
- }
2825
-
2826
- // IE6/7 call enctype encoding
2827
- if ( !jQuery.support.enctype ) {
2828
- jQuery.propFix.enctype = "encoding";
2829
- }
2830
-
2831
- // Radios and checkboxes getter/setter
2832
- if ( !jQuery.support.checkOn ) {
2833
- jQuery.each([ "radio", "checkbox" ], function() {
2834
- jQuery.valHooks[ this ] = {
2835
- get: function( elem ) {
2836
- // Handle the case where in Webkit "" is returned instead of "on" if a value isn't specified
2837
- return elem.getAttribute("value") === null ? "on" : elem.value;
2838
- }
2839
- };
2840
- });
2841
- }
2842
- jQuery.each([ "radio", "checkbox" ], function() {
2843
- jQuery.valHooks[ this ] = jQuery.extend( jQuery.valHooks[ this ], {
2844
- set: function( elem, value ) {
2845
- if ( jQuery.isArray( value ) ) {
2846
- return ( elem.checked = jQuery.inArray( jQuery(elem).val(), value ) >= 0 );
2847
- }
2848
- }
2849
- });
2850
- });
2851
-
2852
-
2853
-
2854
-
2855
- var rnamespaces = /\.(.*)$/,
2856
- rformElems = /^(?:textarea|input|select)$/i,
2857
- rperiod = /\./g,
2858
- rspaces = / /g,
2859
- rescape = /[^\w\s.|`]/g,
2860
- rtypenamespace = /^([^\.]*)?(?:\.(.+))?$/,
2861
- rhoverHack = /\bhover(\.\S+)?/,
2862
- rkeyEvent = /^key/,
2863
- rmouseEvent = /^(?:mouse|contextmenu)|click/,
2864
- rquickIs = /^(\w*)(?:#([\w\-]+))?(?:\.([\w\-]+))?$/,
2865
- quickParse = function( selector ) {
2866
- var quick = rquickIs.exec( selector );
2867
- if ( quick ) {
2868
- // 0 1 2 3
2869
- // [ _, tag, id, class ]
2870
- quick[1] = ( quick[1] || "" ).toLowerCase();
2871
- quick[3] = quick[3] && new RegExp( "(?:^|\\s)" + quick[3] + "(?:\\s|$)" );
2872
- }
2873
- return quick;
2874
- },
2875
- quickIs = function( elem, m ) {
2876
- return (
2877
- (!m[1] || elem.nodeName.toLowerCase() === m[1]) &&
2878
- (!m[2] || elem.id === m[2]) &&
2879
- (!m[3] || m[3].test( elem.className ))
2880
- );
2881
- },
2882
- hoverHack = function( events ) {
2883
- return jQuery.event.special.hover ? events : events.replace( rhoverHack, "mouseenter$1 mouseleave$1" );
2884
- };
2885
-
2886
- /*
2887
- * Helper functions for managing events -- not part of the public interface.
2888
- * Props to Dean Edwards' addEvent library for many of the ideas.
2889
- */
2890
- jQuery.event = {
2891
-
2892
- add: function( elem, types, handler, data, selector ) {
2893
-
2894
- var elemData, eventHandle, events,
2895
- t, tns, type, namespaces, handleObj,
2896
- handleObjIn, quick, handlers, special;
2897
-
2898
- // Don't attach events to noData or text/comment nodes (allow plain objects tho)
2899
- if ( elem.nodeType === 3 || elem.nodeType === 8 || !types || !handler || !(elemData = jQuery._data( elem )) ) {
2900
- return;
2901
- }
2902
-
2903
- // Caller can pass in an object of custom data in lieu of the handler
2904
- if ( handler.handler ) {
2905
- handleObjIn = handler;
2906
- handler = handleObjIn.handler;
2907
- }
2908
-
2909
- // Make sure that the handler has a unique ID, used to find/remove it later
2910
- if ( !handler.guid ) {
2911
- handler.guid = jQuery.guid++;
2912
- }
2913
-
2914
- // Init the element's event structure and main handler, if this is the first
2915
- events = elemData.events;
2916
- if ( !events ) {
2917
- elemData.events = events = {};
2918
- }
2919
- eventHandle = elemData.handle;
2920
- if ( !eventHandle ) {
2921
- elemData.handle = eventHandle = function( e ) {
2922
- // Discard the second event of a jQuery.event.trigger() and
2923
- // when an event is called after a page has unloaded
2924
- return typeof jQuery !== "undefined" && (!e || jQuery.event.triggered !== e.type) ?
2925
- jQuery.event.dispatch.apply( eventHandle.elem, arguments ) :
2926
- undefined;
2927
- };
2928
- // Add elem as a property of the handle fn to prevent a memory leak with IE non-native events
2929
- eventHandle.elem = elem;
2930
- }
2931
-
2932
- // Handle multiple events separated by a space
2933
- // jQuery(...).bind("mouseover mouseout", fn);
2934
- types = hoverHack(types).split( " " );
2935
- for ( t = 0; t < types.length; t++ ) {
2936
-
2937
- tns = rtypenamespace.exec( types[t] ) || [];
2938
- type = tns[1];
2939
- namespaces = ( tns[2] || "" ).split( "." ).sort();
2940
-
2941
- // If event changes its type, use the special event handlers for the changed type
2942
- special = jQuery.event.special[ type ] || {};
2943
-
2944
- // If selector defined, determine special event api type, otherwise given type
2945
- type = ( selector ? special.delegateType : special.bindType ) || type;
2946
-
2947
- // Update special based on newly reset type
2948
- special = jQuery.event.special[ type ] || {};
2949
-
2950
- // handleObj is passed to all event handlers
2951
- handleObj = jQuery.extend({
2952
- type: type,
2953
- origType: tns[1],
2954
- data: data,
2955
- handler: handler,
2956
- guid: handler.guid,
2957
- selector: selector,
2958
- namespace: namespaces.join(".")
2959
- }, handleObjIn );
2960
-
2961
- // Delegated event; pre-analyze selector so it's processed quickly on event dispatch
2962
- if ( selector ) {
2963
- handleObj.quick = quickParse( selector );
2964
- if ( !handleObj.quick && jQuery.expr.match.POS.test( selector ) ) {
2965
- handleObj.isPositional = true;
2966
- }
2967
- }
2968
-
2969
- // Init the event handler queue if we're the first
2970
- handlers = events[ type ];
2971
- if ( !handlers ) {
2972
- handlers = events[ type ] = [];
2973
- handlers.delegateCount = 0;
2974
-
2975
- // Only use addEventListener/attachEvent if the special events handler returns false
2976
- if ( !special.setup || special.setup.call( elem, data, namespaces, eventHandle ) === false ) {
2977
- // Bind the global event handler to the element
2978
- if ( elem.addEventListener ) {
2979
- elem.addEventListener( type, eventHandle, false );
2980
-
2981
- } else if ( elem.attachEvent ) {
2982
- elem.attachEvent( "on" + type, eventHandle );
2983
- }
2984
- }
2985
- }
2986
-
2987
- if ( special.add ) {
2988
- special.add.call( elem, handleObj );
2989
-
2990
- if ( !handleObj.handler.guid ) {
2991
- handleObj.handler.guid = handler.guid;
2992
- }
2993
- }
2994
-
2995
- // Add to the element's handler list, delegates in front
2996
- if ( selector ) {
2997
- handlers.splice( handlers.delegateCount++, 0, handleObj );
2998
- } else {
2999
- handlers.push( handleObj );
3000
- }
3001
-
3002
- // Keep track of which events have ever been used, for event optimization
3003
- jQuery.event.global[ type ] = true;
3004
- }
3005
-
3006
- // Nullify elem to prevent memory leaks in IE
3007
- elem = null;
3008
- },
3009
-
3010
- global: {},
3011
-
3012
- // Detach an event or set of events from an element
3013
- remove: function( elem, types, handler, selector ) {
3014
-
3015
- var elemData = jQuery.hasData( elem ) && jQuery._data( elem ),
3016
- t, tns, type, namespaces, origCount,
3017
- j, events, special, handle, eventType, handleObj;
3018
-
3019
- if ( !elemData || !(events = elemData.events) ) {
3020
- return;
3021
- }
3022
-
3023
- // Once for each type.namespace in types; type may be omitted
3024
- types = hoverHack( types || "" ).split(" ");
3025
- for ( t = 0; t < types.length; t++ ) {
3026
- tns = rtypenamespace.exec( types[t] ) || [];
3027
- type = tns[1];
3028
- namespaces = tns[2];
3029
-
3030
- // Unbind all events (on this namespace, if provided) for the element
3031
- if ( !type ) {
3032
- namespaces = namespaces? "." + namespaces : "";
3033
- for ( j in events ) {
3034
- jQuery.event.remove( elem, j + namespaces, handler, selector );
3035
- }
3036
- return;
3037
- }
3038
-
3039
- special = jQuery.event.special[ type ] || {};
3040
- type = ( selector? special.delegateType : special.bindType ) || type;
3041
- eventType = events[ type ] || [];
3042
- origCount = eventType.length;
3043
- namespaces = namespaces ? new RegExp("(^|\\.)" + namespaces.split(".").sort().join("\\.(?:.*\\.)?") + "(\\.|$)") : null;
3044
-
3045
- // Only need to loop for special events or selective removal
3046
- if ( handler || namespaces || selector || special.remove ) {
3047
- for ( j = 0; j < eventType.length; j++ ) {
3048
- handleObj = eventType[ j ];
3049
-
3050
- if ( !handler || handler.guid === handleObj.guid ) {
3051
- if ( !namespaces || namespaces.test( handleObj.namespace ) ) {
3052
- if ( !selector || selector === handleObj.selector || selector === "**" && handleObj.selector ) {
3053
- eventType.splice( j--, 1 );
3054
-
3055
- if ( handleObj.selector ) {
3056
- eventType.delegateCount--;
3057
- }
3058
- if ( special.remove ) {
3059
- special.remove.call( elem, handleObj );
3060
- }
3061
- }
3062
- }
3063
- }
3064
- }
3065
- } else {
3066
- // Removing all events
3067
- eventType.length = 0;
3068
- }
3069
-
3070
- // Remove generic event handler if we removed something and no more handlers exist
3071
- // (avoids potential for endless recursion during removal of special event handlers)
3072
- if ( eventType.length === 0 && origCount !== eventType.length ) {
3073
- if ( !special.teardown || special.teardown.call( elem, namespaces ) === false ) {
3074
- jQuery.removeEvent( elem, type, elemData.handle );
3075
- }
3076
-
3077
- delete events[ type ];
3078
- }
3079
- }
3080
-
3081
- // Remove the expando if it's no longer used
3082
- if ( jQuery.isEmptyObject( events ) ) {
3083
- handle = elemData.handle;
3084
- if ( handle ) {
3085
- handle.elem = null;
3086
- }
3087
-
3088
- // removeData also checks for emptiness and clears the expando if empty
3089
- // so use it instead of delete
3090
- jQuery.removeData( elem, [ "events", "handle" ], true );
3091
- }
3092
- },
3093
-
3094
- // Events that are safe to short-circuit if no handlers are attached.
3095
- // Native DOM events should not be added, they may have inline handlers.
3096
- customEvent: {
3097
- "getData": true,
3098
- "setData": true,
3099
- "changeData": true
3100
- },
3101
-
3102
- trigger: function( event, data, elem, onlyHandlers ) {
3103
- // Don't do events on text and comment nodes
3104
- if ( elem && (elem.nodeType === 3 || elem.nodeType === 8) ) {
3105
- return;
3106
- }
3107
-
3108
- // Event object or event type
3109
- var type = event.type || event,
3110
- namespaces = [],
3111
- cache, exclusive, i, cur, old, ontype, special, handle, eventPath, bubbleType;
3112
-
3113
- if ( type.indexOf( "!" ) >= 0 ) {
3114
- // Exclusive events trigger only for the exact event (no namespaces)
3115
- type = type.slice(0, -1);
3116
- exclusive = true;
3117
- }
3118
-
3119
- if ( type.indexOf( "." ) >= 0 ) {
3120
- // Namespaced trigger; create a regexp to match event type in handle()
3121
- namespaces = type.split(".");
3122
- type = namespaces.shift();
3123
- namespaces.sort();
3124
- }
3125
-
3126
- if ( (!elem || jQuery.event.customEvent[ type ]) && !jQuery.event.global[ type ] ) {
3127
- // No jQuery handlers for this event type, and it can't have inline handlers
3128
- return;
3129
- }
3130
-
3131
- // Caller can pass in an Event, Object, or just an event type string
3132
- event = typeof event === "object" ?
3133
- // jQuery.Event object
3134
- event[ jQuery.expando ] ? event :
3135
- // Object literal
3136
- new jQuery.Event( type, event ) :
3137
- // Just the event type (string)
3138
- new jQuery.Event( type );
3139
-
3140
- event.type = type;
3141
- event.isTrigger = true;
3142
- event.exclusive = exclusive;
3143
- event.namespace = namespaces.join( "." );
3144
- event.namespace_re = event.namespace? new RegExp("(^|\\.)" + namespaces.join("\\.(?:.*\\.)?") + "(\\.|$)") : null;
3145
- ontype = type.indexOf( ":" ) < 0 ? "on" + type : "";
3146
-
3147
- // triggerHandler() and global events don't bubble or run the default action
3148
- if ( onlyHandlers || !elem ) {
3149
- event.preventDefault();
3150
- }
3151
-
3152
- // Handle a global trigger
3153
- if ( !elem ) {
3154
-
3155
- // TODO: Stop taunting the data cache; remove global events and always attach to document
3156
- cache = jQuery.cache;
3157
- for ( i in cache ) {
3158
- if ( cache[ i ].events && cache[ i ].events[ type ] ) {
3159
- jQuery.event.trigger( event, data, cache[ i ].handle.elem, true );
3160
- }
3161
- }
3162
- return;
3163
- }
3164
-
3165
- // Clean up the event in case it is being reused
3166
- event.result = undefined;
3167
- if ( !event.target ) {
3168
- event.target = elem;
3169
- }
3170
-
3171
- // Clone any incoming data and prepend the event, creating the handler arg list
3172
- data = data != null ? jQuery.makeArray( data ) : [];
3173
- data.unshift( event );
3174
-
3175
- // Allow special events to draw outside the lines
3176
- special = jQuery.event.special[ type ] || {};
3177
- if ( special.trigger && special.trigger.apply( elem, data ) === false ) {
3178
- return;
3179
- }
3180
-
3181
- // Determine event propagation path in advance, per W3C events spec (#9951)
3182
- // Bubble up to document, then to window; watch for a global ownerDocument var (#9724)
3183
- eventPath = [[ elem, special.bindType || type ]];
3184
- if ( !onlyHandlers && !special.noBubble && !jQuery.isWindow( elem ) ) {
3185
-
3186
- bubbleType = special.delegateType || type;
3187
- old = null;
3188
- for ( cur = elem.parentNode; cur; cur = cur.parentNode ) {
3189
- eventPath.push([ cur, bubbleType ]);
3190
- old = cur;
3191
- }
3192
-
3193
- // Only add window if we got to document (e.g., not plain obj or detached DOM)
3194
- if ( old && old === elem.ownerDocument ) {
3195
- eventPath.push([ old.defaultView || old.parentWindow || window, bubbleType ]);
3196
- }
3197
- }
3198
-
3199
- // Fire handlers on the event path
3200
- for ( i = 0; i < eventPath.length; i++ ) {
3201
-
3202
- cur = eventPath[i][0];
3203
- event.type = eventPath[i][1];
3204
-
3205
- handle = ( jQuery._data( cur, "events" ) || {} )[ event.type ] && jQuery._data( cur, "handle" );
3206
- if ( handle ) {
3207
- handle.apply( cur, data );
3208
- }
3209
- handle = ontype && cur[ ontype ];
3210
- if ( handle && jQuery.acceptData( cur ) ) {
3211
- handle.apply( cur, data );
3212
- }
3213
-
3214
- if ( event.isPropagationStopped() ) {
3215
- break;
3216
- }
3217
- }
3218
- event.type = type;
3219
-
3220
- // If nobody prevented the default action, do it now
3221
- if ( !event.isDefaultPrevented() ) {
3222
-
3223
- if ( (!special._default || special._default.apply( elem.ownerDocument, data ) === false) &&
3224
- !(type === "click" && jQuery.nodeName( elem, "a" )) && jQuery.acceptData( elem ) ) {
3225
-
3226
- // Call a native DOM method on the target with the same name name as the event.
3227
- // Can't use an .isFunction() check here because IE6/7 fails that test.
3228
- // Don't do default actions on window, that's where global variables be (#6170)
3229
- // IE<9 dies on focus/blur to hidden element (#1486)
3230
- if ( ontype && elem[ type ] && ((type !== "focus" && type !== "blur") || event.target.offsetWidth !== 0) && !jQuery.isWindow( elem ) ) {
3231
-
3232
- // Don't re-trigger an onFOO event when we call its FOO() method
3233
- old = elem[ ontype ];
3234
-
3235
- if ( old ) {
3236
- elem[ ontype ] = null;
3237
- }
3238
-
3239
- // Prevent re-triggering of the same event, since we already bubbled it above
3240
- jQuery.event.triggered = type;
3241
- elem[ type ]();
3242
- jQuery.event.triggered = undefined;
3243
-
3244
- if ( old ) {
3245
- elem[ ontype ] = old;
3246
- }
3247
- }
3248
- }
3249
- }
3250
-
3251
- return event.result;
3252
- },
3253
-
3254
- dispatch: function( event ) {
3255
-
3256
- // Make a writable jQuery.Event from the native event object
3257
- event = jQuery.event.fix( event || window.event );
3258
-
3259
- var handlers = ( (jQuery._data( this, "events" ) || {} )[ event.type ] || []),
3260
- delegateCount = handlers.delegateCount,
3261
- args = [].slice.call( arguments, 0 ),
3262
- run_all = !event.exclusive && !event.namespace,
3263
- specialHandle = ( jQuery.event.special[ event.type ] || {} ).handle,
3264
- handlerQueue = [],
3265
- i, j, cur, ret, selMatch, matched, matches, handleObj, sel, hit, related;
3266
-
3267
- // Use the fix-ed jQuery.Event rather than the (read-only) native event
3268
- args[0] = event;
3269
- event.delegateTarget = this;
3270
-
3271
- // Determine handlers that should run if there are delegated events
3272
- // Avoid disabled elements in IE (#6911) and non-left-click bubbling in Firefox (#3861)
3273
- if ( delegateCount && !event.target.disabled && !(event.button && event.type === "click") ) {
3274
-
3275
- for ( cur = event.target; cur != this; cur = cur.parentNode || this ) {
3276
- selMatch = {};
3277
- matches = [];
3278
- for ( i = 0; i < delegateCount; i++ ) {
3279
- handleObj = handlers[ i ];
3280
- sel = handleObj.selector;
3281
- hit = selMatch[ sel ];
3282
-
3283
- if ( handleObj.isPositional ) {
3284
- // Since .is() does not work for positionals; see http://jsfiddle.net/eJ4yd/3/
3285
- hit = ( hit || (selMatch[ sel ] = jQuery( sel )) ).index( cur ) >= 0;
3286
- } else if ( hit === undefined ) {
3287
- hit = selMatch[ sel ] = ( handleObj.quick ? quickIs( cur, handleObj.quick ) : jQuery( cur ).is( sel ) );
3288
- }
3289
- if ( hit ) {
3290
- matches.push( handleObj );
3291
- }
3292
- }
3293
- if ( matches.length ) {
3294
- handlerQueue.push({ elem: cur, matches: matches });
3295
- }
3296
- }
3297
- }
3298
-
3299
- // Add the remaining (directly-bound) handlers
3300
- if ( handlers.length > delegateCount ) {
3301
- handlerQueue.push({ elem: this, matches: handlers.slice( delegateCount ) });
3302
- }
3303
-
3304
- // Run delegates first; they may want to stop propagation beneath us
3305
- for ( i = 0; i < handlerQueue.length && !event.isPropagationStopped(); i++ ) {
3306
- matched = handlerQueue[ i ];
3307
- event.currentTarget = matched.elem;
3308
-
3309
- for ( j = 0; j < matched.matches.length && !event.isImmediatePropagationStopped(); j++ ) {
3310
- handleObj = matched.matches[ j ];
3311
-
3312
- // Triggered event must either 1) be non-exclusive and have no namespace, or
3313
- // 2) have namespace(s) a subset or equal to those in the bound event (both can have no namespace).
3314
- if ( run_all || (!event.namespace && !handleObj.namespace) || event.namespace_re && event.namespace_re.test( handleObj.namespace ) ) {
3315
-
3316
- event.data = handleObj.data;
3317
- event.handleObj = handleObj;
3318
-
3319
- ret = ( specialHandle || handleObj.handler ).apply( matched.elem, args );
3320
-
3321
- if ( ret !== undefined ) {
3322
- event.result = ret;
3323
- if ( ret === false ) {
3324
- event.preventDefault();
3325
- event.stopPropagation();
3326
- }
3327
- }
3328
- }
3329
- }
3330
- }
3331
-
3332
- return event.result;
3333
- },
3334
-
3335
- // Includes some event props shared by KeyEvent and MouseEvent
3336
- // *** attrChange attrName relatedNode srcElement are not normalized, non-W3C, deprecated, will be removed in 1.8 ***
3337
- props: "attrChange attrName relatedNode srcElement altKey bubbles cancelable ctrlKey currentTarget eventPhase metaKey relatedTarget shiftKey target timeStamp view which".split(" "),
3338
-
3339
- fixHooks: {},
3340
-
3341
- keyHooks: {
3342
- props: "char charCode key keyCode".split(" "),
3343
- filter: function( event, original ) {
3344
-
3345
- // Add which for key events
3346
- if ( event.which == null ) {
3347
- event.which = original.charCode != null ? original.charCode : original.keyCode;
3348
- }
3349
-
3350
- return event;
3351
- }
3352
- },
3353
-
3354
- mouseHooks: {
3355
- props: "button buttons clientX clientY fromElement offsetX offsetY pageX pageY screenX screenY toElement wheelDelta".split(" "),
3356
- filter: function( event, original ) {
3357
- var eventDoc, doc, body,
3358
- button = original.button,
3359
- fromElement = original.fromElement;
3360
-
3361
- // Calculate pageX/Y if missing and clientX/Y available
3362
- if ( event.pageX == null && original.clientX != null ) {
3363
- eventDoc = event.target.ownerDocument || document;
3364
- doc = eventDoc.documentElement;
3365
- body = eventDoc.body;
3366
-
3367
- event.pageX = original.clientX + ( doc && doc.scrollLeft || body && body.scrollLeft || 0 ) - ( doc && doc.clientLeft || body && body.clientLeft || 0 );
3368
- event.pageY = original.clientY + ( doc && doc.scrollTop || body && body.scrollTop || 0 ) - ( doc && doc.clientTop || body && body.clientTop || 0 );
3369
- }
3370
-
3371
- // Add relatedTarget, if necessary
3372
- if ( !event.relatedTarget && fromElement ) {
3373
- event.relatedTarget = fromElement === event.target ? original.toElement : fromElement;
3374
- }
3375
-
3376
- // Add which for click: 1 === left; 2 === middle; 3 === right
3377
- // Note: button is not normalized, so don't use it
3378
- if ( !event.which && button !== undefined ) {
3379
- event.which = ( button & 1 ? 1 : ( button & 2 ? 3 : ( button & 4 ? 2 : 0 ) ) );
3380
- }
3381
-
3382
- return event;
3383
- }
3384
- },
3385
-
3386
- fix: function( event ) {
3387
- if ( event[ jQuery.expando ] ) {
3388
- return event;
3389
- }
3390
-
3391
- // Create a writable copy of the event object and normalize some properties
3392
- var i, prop,
3393
- originalEvent = event,
3394
- fixHook = jQuery.event.fixHooks[ event.type ] || {},
3395
- copy = fixHook.props ? this.props.concat( fixHook.props ) : this.props;
3396
-
3397
- event = jQuery.Event( originalEvent );
3398
-
3399
- for ( i = copy.length; i; ) {
3400
- prop = copy[ --i ];
3401
- event[ prop ] = originalEvent[ prop ];
3402
- }
3403
-
3404
- // Fix target property, if necessary (#1925, IE 6/7/8 & Safari2)
3405
- if ( !event.target ) {
3406
- event.target = originalEvent.srcElement || document;
3407
- }
3408
-
3409
- // Target should not be a text node (#504, Safari)
3410
- if ( event.target.nodeType === 3 ) {
3411
- event.target = event.target.parentNode;
3412
- }
3413
-
3414
- // For mouse/key events; add metaKey if it's not there (#3368, IE6/7/8)
3415
- if ( event.metaKey === undefined ) {
3416
- event.metaKey = event.ctrlKey;
3417
- }
3418
-
3419
- return fixHook.filter? fixHook.filter( event, originalEvent ) : event;
3420
- },
3421
-
3422
- special: {
3423
- ready: {
3424
- // Make sure the ready event is setup
3425
- setup: jQuery.bindReady
3426
- },
3427
-
3428
- focus: {
3429
- delegateType: "focusin",
3430
- noBubble: true
3431
- },
3432
- blur: {
3433
- delegateType: "focusout",
3434
- noBubble: true
3435
- },
3436
-
3437
- beforeunload: {
3438
- setup: function( data, namespaces, eventHandle ) {
3439
- // We only want to do this special case on windows
3440
- if ( jQuery.isWindow( this ) ) {
3441
- this.onbeforeunload = eventHandle;
3442
- }
3443
- },
3444
-
3445
- teardown: function( namespaces, eventHandle ) {
3446
- if ( this.onbeforeunload === eventHandle ) {
3447
- this.onbeforeunload = null;
3448
- }
3449
- }
3450
- }
3451
- },
3452
-
3453
- simulate: function( type, elem, event, bubble ) {
3454
- // Piggyback on a donor event to simulate a different one.
3455
- // Fake originalEvent to avoid donor's stopPropagation, but if the
3456
- // simulated event prevents default then we do the same on the donor.
3457
- var e = jQuery.extend(
3458
- new jQuery.Event(),
3459
- event,
3460
- { type: type,
3461
- isSimulated: true,
3462
- originalEvent: {}
3463
- }
3464
- );
3465
- if ( bubble ) {
3466
- jQuery.event.trigger( e, null, elem );
3467
- } else {
3468
- jQuery.event.dispatch.call( elem, e );
3469
- }
3470
- if ( e.isDefaultPrevented() ) {
3471
- event.preventDefault();
3472
- }
3473
- }
3474
- };
3475
-
3476
- // Some plugins are using, but it's undocumented/deprecated and will be removed.
3477
- // The 1.7 special event interface should provide all the hooks needed now.
3478
- jQuery.event.handle = jQuery.event.dispatch;
3479
-
3480
- jQuery.removeEvent = document.removeEventListener ?
3481
- function( elem, type, handle ) {
3482
- if ( elem.removeEventListener ) {
3483
- elem.removeEventListener( type, handle, false );
3484
- }
3485
- } :
3486
- function( elem, type, handle ) {
3487
- if ( elem.detachEvent ) {
3488
- elem.detachEvent( "on" + type, handle );
3489
- }
3490
- };
3491
-
3492
- jQuery.Event = function( src, props ) {
3493
- // Allow instantiation without the 'new' keyword
3494
- if ( !(this instanceof jQuery.Event) ) {
3495
- return new jQuery.Event( src, props );
3496
- }
3497
-
3498
- // Event object
3499
- if ( src && src.type ) {
3500
- this.originalEvent = src;
3501
- this.type = src.type;
3502
-
3503
- // Events bubbling up the document may have been marked as prevented
3504
- // by a handler lower down the tree; reflect the correct value.
3505
- this.isDefaultPrevented = ( src.defaultPrevented || src.returnValue === false ||
3506
- src.getPreventDefault && src.getPreventDefault() ) ? returnTrue : returnFalse;
3507
-
3508
- // Event type
3509
- } else {
3510
- this.type = src;
3511
- }
3512
-
3513
- // Put explicitly provided properties onto the event object
3514
- if ( props ) {
3515
- jQuery.extend( this, props );
3516
- }
3517
-
3518
- // Create a timestamp if incoming event doesn't have one
3519
- this.timeStamp = src && src.timeStamp || jQuery.now();
3520
-
3521
- // Mark it as fixed
3522
- this[ jQuery.expando ] = true;
3523
- };
3524
-
3525
- function returnFalse() {
3526
- return false;
3527
- }
3528
- function returnTrue() {
3529
- return true;
3530
- }
3531
-
3532
- // jQuery.Event is based on DOM3 Events as specified by the ECMAScript Language Binding
3533
- // http://www.w3.org/TR/2003/WD-DOM-Level-3-Events-20030331/ecma-script-binding.html
3534
- jQuery.Event.prototype = {
3535
- preventDefault: function() {
3536
- this.isDefaultPrevented = returnTrue;
3537
-
3538
- var e = this.originalEvent;
3539
- if ( !e ) {
3540
- return;
3541
- }
3542
-
3543
- // if preventDefault exists run it on the original event
3544
- if ( e.preventDefault ) {
3545
- e.preventDefault();
3546
-
3547
- // otherwise set the returnValue property of the original event to false (IE)
3548
- } else {
3549
- e.returnValue = false;
3550
- }
3551
- },
3552
- stopPropagation: function() {
3553
- this.isPropagationStopped = returnTrue;
3554
-
3555
- var e = this.originalEvent;
3556
- if ( !e ) {
3557
- return;
3558
- }
3559
- // if stopPropagation exists run it on the original event
3560
- if ( e.stopPropagation ) {
3561
- e.stopPropagation();
3562
- }
3563
- // otherwise set the cancelBubble property of the original event to true (IE)
3564
- e.cancelBubble = true;
3565
- },
3566
- stopImmediatePropagation: function() {
3567
- this.isImmediatePropagationStopped = returnTrue;
3568
- this.stopPropagation();
3569
- },
3570
- isDefaultPrevented: returnFalse,
3571
- isPropagationStopped: returnFalse,
3572
- isImmediatePropagationStopped: returnFalse
3573
- };
3574
-
3575
- // Create mouseenter/leave events using mouseover/out and event-time checks
3576
- jQuery.each({
3577
- mouseenter: "mouseover",
3578
- mouseleave: "mouseout"
3579
- }, function( orig, fix ) {
3580
- jQuery.event.special[ orig ] = jQuery.event.special[ fix ] = {
3581
- delegateType: fix,
3582
- bindType: fix,
3583
-
3584
- handle: function( event ) {
3585
- var target = this,
3586
- related = event.relatedTarget,
3587
- handleObj = event.handleObj,
3588
- selector = handleObj.selector,
3589
- oldType, ret;
3590
-
3591
- // For a real mouseover/out, always call the handler; for
3592
- // mousenter/leave call the handler if related is outside the target.
3593
- // NB: No relatedTarget if the mouse left/entered the browser window
3594
- if ( !related || handleObj.origType === event.type || (related !== target && !jQuery.contains( target, related )) ) {
3595
- oldType = event.type;
3596
- event.type = handleObj.origType;
3597
- ret = handleObj.handler.apply( this, arguments );
3598
- event.type = oldType;
3599
- }
3600
- return ret;
3601
- }
3602
- };
3603
- });
3604
-
3605
- // IE submit delegation
3606
- if ( !jQuery.support.submitBubbles ) {
3607
-
3608
- jQuery.event.special.submit = {
3609
- setup: function() {
3610
- // Only need this for delegated form submit events
3611
- if ( jQuery.nodeName( this, "form" ) ) {
3612
- return false;
3613
- }
3614
-
3615
- // Lazy-add a submit handler when a descendant form may potentially be submitted
3616
- jQuery.event.add( this, "click._submit keypress._submit", function( e ) {
3617
- // Node name check avoids a VML-related crash in IE (#9807)
3618
- var elem = e.target,
3619
- form = jQuery.nodeName( elem, "input" ) || jQuery.nodeName( elem, "button" ) ? elem.form : undefined;
3620
- if ( form && !form._submit_attached ) {
3621
- jQuery.event.add( form, "submit._submit", function( event ) {
3622
- // Form was submitted, bubble the event up the tree
3623
- if ( this.parentNode ) {
3624
- jQuery.event.simulate( "submit", this.parentNode, event, true );
3625
- }
3626
- });
3627
- form._submit_attached = true;
3628
- }
3629
- });
3630
- // return undefined since we don't need an event listener
3631
- },
3632
-
3633
- teardown: function() {
3634
- // Only need this for delegated form submit events
3635
- if ( jQuery.nodeName( this, "form" ) ) {
3636
- return false;
3637
- }
3638
-
3639
- // Remove delegated handlers; cleanData eventually reaps submit handlers attached above
3640
- jQuery.event.remove( this, "._submit" );
3641
- }
3642
- };
3643
- }
3644
-
3645
- // IE change delegation and checkbox/radio fix
3646
- if ( !jQuery.support.changeBubbles ) {
3647
-
3648
- jQuery.event.special.change = {
3649
-
3650
- setup: function() {
3651
-
3652
- if ( rformElems.test( this.nodeName ) ) {
3653
- // IE doesn't fire change on a check/radio until blur; trigger it on click
3654
- // after a propertychange. Eat the blur-change in special.change.handle.
3655
- // This still fires onchange a second time for check/radio after blur.
3656
- if ( this.type === "checkbox" || this.type === "radio" ) {
3657
- jQuery.event.add( this, "propertychange._change", function( event ) {
3658
- if ( event.originalEvent.propertyName === "checked" ) {
3659
- this._just_changed = true;
3660
- }
3661
- });
3662
- jQuery.event.add( this, "click._change", function( event ) {
3663
- if ( this._just_changed ) {
3664
- this._just_changed = false;
3665
- jQuery.event.simulate( "change", this, event, true );
3666
- }
3667
- });
3668
- }
3669
- return false;
3670
- }
3671
- // Delegated event; lazy-add a change handler on descendant inputs
3672
- jQuery.event.add( this, "beforeactivate._change", function( e ) {
3673
- var elem = e.target;
3674
-
3675
- if ( rformElems.test( elem.nodeName ) && !elem._change_attached ) {
3676
- jQuery.event.add( elem, "change._change", function( event ) {
3677
- if ( this.parentNode && !event.isSimulated ) {
3678
- jQuery.event.simulate( "change", this.parentNode, event, true );
3679
- }
3680
- });
3681
- elem._change_attached = true;
3682
- }
3683
- });
3684
- },
3685
-
3686
- handle: function( event ) {
3687
- var elem = event.target;
3688
-
3689
- // Swallow native change events from checkbox/radio, we already triggered them above
3690
- if ( this !== elem || event.isSimulated || event.isTrigger || (elem.type !== "radio" && elem.type !== "checkbox") ) {
3691
- return event.handleObj.handler.apply( this, arguments );
3692
- }
3693
- },
3694
-
3695
- teardown: function() {
3696
- jQuery.event.remove( this, "._change" );
3697
-
3698
- return rformElems.test( this.nodeName );
3699
- }
3700
- };
3701
- }
3702
-
3703
- // Create "bubbling" focus and blur events
3704
- if ( !jQuery.support.focusinBubbles ) {
3705
- jQuery.each({ focus: "focusin", blur: "focusout" }, function( orig, fix ) {
3706
-
3707
- // Attach a single capturing handler while someone wants focusin/focusout
3708
- var attaches = 0,
3709
- handler = function( event ) {
3710
- jQuery.event.simulate( fix, event.target, jQuery.event.fix( event ), true );
3711
- };
3712
-
3713
- jQuery.event.special[ fix ] = {
3714
- setup: function() {
3715
- if ( attaches++ === 0 ) {
3716
- document.addEventListener( orig, handler, true );
3717
- }
3718
- },
3719
- teardown: function() {
3720
- if ( --attaches === 0 ) {
3721
- document.removeEventListener( orig, handler, true );
3722
- }
3723
- }
3724
- };
3725
- });
3726
- }
3727
-
3728
- jQuery.fn.extend({
3729
-
3730
- on: function( types, selector, data, fn, /*INTERNAL*/ one ) {
3731
- var origFn, type;
3732
-
3733
- // Types can be a map of types/handlers
3734
- if ( typeof types === "object" ) {
3735
- // ( types-Object, selector, data )
3736
- if ( typeof selector !== "string" ) {
3737
- // ( types-Object, data )
3738
- data = selector;
3739
- selector = undefined;
3740
- }
3741
- for ( type in types ) {
3742
- this.on( type, selector, data, types[ type ], one );
3743
- }
3744
- return this;
3745
- }
3746
-
3747
- if ( data == null && fn == null ) {
3748
- // ( types, fn )
3749
- fn = selector;
3750
- data = selector = undefined;
3751
- } else if ( fn == null ) {
3752
- if ( typeof selector === "string" ) {
3753
- // ( types, selector, fn )
3754
- fn = data;
3755
- data = undefined;
3756
- } else {
3757
- // ( types, data, fn )
3758
- fn = data;
3759
- data = selector;
3760
- selector = undefined;
3761
- }
3762
- }
3763
- if ( fn === false ) {
3764
- fn = returnFalse;
3765
- } else if ( !fn ) {
3766
- return this;
3767
- }
3768
-
3769
- if ( one === 1 ) {
3770
- origFn = fn;
3771
- fn = function( event ) {
3772
- // Can use an empty set, since event contains the info
3773
- jQuery().off( event );
3774
- return origFn.apply( this, arguments );
3775
- };
3776
- // Use same guid so caller can remove using origFn
3777
- fn.guid = origFn.guid || ( origFn.guid = jQuery.guid++ );
3778
- }
3779
- return this.each( function() {
3780
- jQuery.event.add( this, types, fn, data, selector );
3781
- });
3782
- },
3783
- one: function( types, selector, data, fn ) {
3784
- return this.on.call( this, types, selector, data, fn, 1 );
3785
- },
3786
- off: function( types, selector, fn ) {
3787
- if ( types && types.preventDefault && types.handleObj ) {
3788
- // ( event ) dispatched jQuery.Event
3789
- var handleObj = types.handleObj;
3790
- jQuery( types.delegateTarget ).off(
3791
- handleObj.namespace? handleObj.type + "." + handleObj.namespace : handleObj.type,
3792
- handleObj.selector,
3793
- handleObj.handler
3794
- );
3795
- return this;
3796
- }
3797
- if ( typeof types === "object" ) {
3798
- // ( types-object [, selector] )
3799
- for ( var type in types ) {
3800
- this.off( type, selector, types[ type ] );
3801
- }
3802
- return this;
3803
- }
3804
- if ( selector === false || typeof selector === "function" ) {
3805
- // ( types [, fn] )
3806
- fn = selector;
3807
- selector = undefined;
3808
- }
3809
- if ( fn === false ) {
3810
- fn = returnFalse;
3811
- }
3812
- return this.each(function() {
3813
- jQuery.event.remove( this, types, fn, selector );
3814
- });
3815
- },
3816
-
3817
- bind: function( types, data, fn ) {
3818
- return this.on( types, null, data, fn );
3819
- },
3820
- unbind: function( types, fn ) {
3821
- return this.off( types, null, fn );
3822
- },
3823
-
3824
- live: function( types, data, fn ) {
3825
- jQuery( this.context ).on( types, this.selector, data, fn );
3826
- return this;
3827
- },
3828
- die: function( types, fn ) {
3829
- jQuery( this.context ).off( types, this.selector || "**", fn );
3830
- return this;
3831
- },
3832
-
3833
- delegate: function( selector, types, data, fn ) {
3834
- return this.on( types, selector, data, fn );
3835
- },
3836
- undelegate: function( selector, types, fn ) {
3837
- // ( namespace ) or ( selector, types [, fn] )
3838
- return arguments.length == 1? this.off( selector, "**" ) : this.off( types, selector, fn );
3839
- },
3840
-
3841
- trigger: function( type, data ) {
3842
- return this.each(function() {
3843
- jQuery.event.trigger( type, data, this );
3844
- });
3845
- },
3846
- triggerHandler: function( type, data ) {
3847
- if ( this[0] ) {
3848
- return jQuery.event.trigger( type, data, this[0], true );
3849
- }
3850
- },
3851
-
3852
- toggle: function( fn ) {
3853
- // Save reference to arguments for access in closure
3854
- var args = arguments,
3855
- guid = fn.guid || jQuery.guid++,
3856
- i = 0,
3857
- toggler = function( event ) {
3858
- // Figure out which function to execute
3859
- var lastToggle = ( jQuery._data( this, "lastToggle" + fn.guid ) || 0 ) % i;
3860
- jQuery._data( this, "lastToggle" + fn.guid, lastToggle + 1 );
3861
-
3862
- // Make sure that clicks stop
3863
- event.preventDefault();
3864
-
3865
- // and execute the function
3866
- return args[ lastToggle ].apply( this, arguments ) || false;
3867
- };
3868
-
3869
- // link all the functions, so any of them can unbind this click handler
3870
- toggler.guid = guid;
3871
- while ( i < args.length ) {
3872
- args[ i++ ].guid = guid;
3873
- }
3874
-
3875
- return this.click( toggler );
3876
- },
3877
-
3878
- hover: function( fnOver, fnOut ) {
3879
- return this.mouseenter( fnOver ).mouseleave( fnOut || fnOver );
3880
- }
3881
- });
3882
-
3883
- jQuery.each( ("blur focus focusin focusout load resize scroll unload click dblclick " +
3884
- "mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave " +
3885
- "change select submit keydown keypress keyup error contextmenu").split(" "), function( i, name ) {
3886
-
3887
- // Handle event binding
3888
- jQuery.fn[ name ] = function( data, fn ) {
3889
- if ( fn == null ) {
3890
- fn = data;
3891
- data = null;
3892
- }
3893
-
3894
- return arguments.length > 0 ?
3895
- this.bind( name, data, fn ) :
3896
- this.trigger( name );
3897
- };
3898
-
3899
- if ( jQuery.attrFn ) {
3900
- jQuery.attrFn[ name ] = true;
3901
- }
3902
-
3903
- if ( rkeyEvent.test( name ) ) {
3904
- jQuery.event.fixHooks[ name ] = jQuery.event.keyHooks;
3905
- }
3906
-
3907
- if ( rmouseEvent.test( name ) ) {
3908
- jQuery.event.fixHooks[ name ] = jQuery.event.mouseHooks;
3909
- }
3910
- });
3911
-
3912
-
3913
-
3914
- /*!
3915
- * Sizzle CSS Selector Engine
3916
- * Copyright 2011, The Dojo Foundation
3917
- * Released under the MIT, BSD, and GPL Licenses.
3918
- * More information: http://sizzlejs.com/
3919
- */
3920
- (function(){
3921
-
3922
- var chunker = /((?:\((?:\([^()]+\)|[^()]+)+\)|\[(?:\[[^\[\]]*\]|['"][^'"]*['"]|[^\[\]'"]+)+\]|\\.|[^ >+~,(\[\\]+)+|[>+~])(\s*,\s*)?((?:.|\r|\n)*)/g,
3923
- expando = "sizcache" + (Math.random() + '').replace('.', ''),
3924
- done = 0,
3925
- toString = Object.prototype.toString,
3926
- hasDuplicate = false,
3927
- baseHasDuplicate = true,
3928
- rBackslash = /\\/g,
3929
- rReturn = /\r\n/g,
3930
- rNonWord = /\W/;
3931
-
3932
- // Here we check if the JavaScript engine is using some sort of
3933
- // optimization where it does not always call our comparision
3934
- // function. If that is the case, discard the hasDuplicate value.
3935
- // Thus far that includes Google Chrome.
3936
- [0, 0].sort(function() {
3937
- baseHasDuplicate = false;
3938
- return 0;
3939
- });
3940
-
3941
- var Sizzle = function( selector, context, results, seed ) {
3942
- results = results || [];
3943
- context = context || document;
3944
-
3945
- var origContext = context;
3946
-
3947
- if ( context.nodeType !== 1 && context.nodeType !== 9 ) {
3948
- return [];
3949
- }
3950
-
3951
- if ( !selector || typeof selector !== "string" ) {
3952
- return results;
3953
- }
3954
-
3955
- var m, set, checkSet, extra, ret, cur, pop, i,
3956
- prune = true,
3957
- contextXML = Sizzle.isXML( context ),
3958
- parts = [],
3959
- soFar = selector;
3960
-
3961
- // Reset the position of the chunker regexp (start from head)
3962
- do {
3963
- chunker.exec( "" );
3964
- m = chunker.exec( soFar );
3965
-
3966
- if ( m ) {
3967
- soFar = m[3];
3968
-
3969
- parts.push( m[1] );
3970
-
3971
- if ( m[2] ) {
3972
- extra = m[3];
3973
- break;
3974
- }
3975
- }
3976
- } while ( m );
3977
-
3978
- if ( parts.length > 1 && origPOS.exec( selector ) ) {
3979
-
3980
- if ( parts.length === 2 && Expr.relative[ parts[0] ] ) {
3981
- set = posProcess( parts[0] + parts[1], context, seed );
3982
-
3983
- } else {
3984
- set = Expr.relative[ parts[0] ] ?
3985
- [ context ] :
3986
- Sizzle( parts.shift(), context );
3987
-
3988
- while ( parts.length ) {
3989
- selector = parts.shift();
3990
-
3991
- if ( Expr.relative[ selector ] ) {
3992
- selector += parts.shift();
3993
- }
3994
-
3995
- set = posProcess( selector, set, seed );
3996
- }
3997
- }
3998
-
3999
- } else {
4000
- // Take a shortcut and set the context if the root selector is an ID
4001
- // (but not if it'll be faster if the inner selector is an ID)
4002
- if ( !seed && parts.length > 1 && context.nodeType === 9 && !contextXML &&
4003
- Expr.match.ID.test(parts[0]) && !Expr.match.ID.test(parts[parts.length - 1]) ) {
4004
-
4005
- ret = Sizzle.find( parts.shift(), context, contextXML );
4006
- context = ret.expr ?
4007
- Sizzle.filter( ret.expr, ret.set )[0] :
4008
- ret.set[0];
4009
- }
4010
-
4011
- if ( context ) {
4012
- ret = seed ?
4013
- { expr: parts.pop(), set: makeArray(seed) } :
4014
- Sizzle.find( parts.pop(), parts.length === 1 && (parts[0] === "~" || parts[0] === "+") && context.parentNode ? context.parentNode : context, contextXML );
4015
-
4016
- set = ret.expr ?
4017
- Sizzle.filter( ret.expr, ret.set ) :
4018
- ret.set;
4019
-
4020
- if ( parts.length > 0 ) {
4021
- checkSet = makeArray( set );
4022
-
4023
- } else {
4024
- prune = false;
4025
- }
4026
-
4027
- while ( parts.length ) {
4028
- cur = parts.pop();
4029
- pop = cur;
4030
-
4031
- if ( !Expr.relative[ cur ] ) {
4032
- cur = "";
4033
- } else {
4034
- pop = parts.pop();
4035
- }
4036
-
4037
- if ( pop == null ) {
4038
- pop = context;
4039
- }
4040
-
4041
- Expr.relative[ cur ]( checkSet, pop, contextXML );
4042
- }
4043
-
4044
- } else {
4045
- checkSet = parts = [];
4046
- }
4047
- }
4048
-
4049
- if ( !checkSet ) {
4050
- checkSet = set;
4051
- }
4052
-
4053
- if ( !checkSet ) {
4054
- Sizzle.error( cur || selector );
4055
- }
4056
-
4057
- if ( toString.call(checkSet) === "[object Array]" ) {
4058
- if ( !prune ) {
4059
- results.push.apply( results, checkSet );
4060
-
4061
- } else if ( context && context.nodeType === 1 ) {
4062
- for ( i = 0; checkSet[i] != null; i++ ) {
4063
- if ( checkSet[i] && (checkSet[i] === true || checkSet[i].nodeType === 1 && Sizzle.contains(context, checkSet[i])) ) {
4064
- results.push( set[i] );
4065
- }
4066
- }
4067
-
4068
- } else {
4069
- for ( i = 0; checkSet[i] != null; i++ ) {
4070
- if ( checkSet[i] && checkSet[i].nodeType === 1 ) {
4071
- results.push( set[i] );
4072
- }
4073
- }
4074
- }
4075
-
4076
- } else {
4077
- makeArray( checkSet, results );
4078
- }
4079
-
4080
- if ( extra ) {
4081
- Sizzle( extra, origContext, results, seed );
4082
- Sizzle.uniqueSort( results );
4083
- }
4084
-
4085
- return results;
4086
- };
4087
-
4088
- Sizzle.uniqueSort = function( results ) {
4089
- if ( sortOrder ) {
4090
- hasDuplicate = baseHasDuplicate;
4091
- results.sort( sortOrder );
4092
-
4093
- if ( hasDuplicate ) {
4094
- for ( var i = 1; i < results.length; i++ ) {
4095
- if ( results[i] === results[ i - 1 ] ) {
4096
- results.splice( i--, 1 );
4097
- }
4098
- }
4099
- }
4100
- }
4101
-
4102
- return results;
4103
- };
4104
-
4105
- Sizzle.matches = function( expr, set ) {
4106
- return Sizzle( expr, null, null, set );
4107
- };
4108
-
4109
- Sizzle.matchesSelector = function( node, expr ) {
4110
- return Sizzle( expr, null, null, [node] ).length > 0;
4111
- };
4112
-
4113
- Sizzle.find = function( expr, context, isXML ) {
4114
- var set, i, len, match, type, left;
4115
-
4116
- if ( !expr ) {
4117
- return [];
4118
- }
4119
-
4120
- for ( i = 0, len = Expr.order.length; i < len; i++ ) {
4121
- type = Expr.order[i];
4122
-
4123
- if ( (match = Expr.leftMatch[ type ].exec( expr )) ) {
4124
- left = match[1];
4125
- match.splice( 1, 1 );
4126
-
4127
- if ( left.substr( left.length - 1 ) !== "\\" ) {
4128
- match[1] = (match[1] || "").replace( rBackslash, "" );
4129
- set = Expr.find[ type ]( match, context, isXML );
4130
-
4131
- if ( set != null ) {
4132
- expr = expr.replace( Expr.match[ type ], "" );
4133
- break;
4134
- }
4135
- }
4136
- }
4137
- }
4138
-
4139
- if ( !set ) {
4140
- set = typeof context.getElementsByTagName !== "undefined" ?
4141
- context.getElementsByTagName( "*" ) :
4142
- [];
4143
- }
4144
-
4145
- return { set: set, expr: expr };
4146
- };
4147
-
4148
- Sizzle.filter = function( expr, set, inplace, not ) {
4149
- var match, anyFound,
4150
- type, found, item, filter, left,
4151
- i, pass,
4152
- old = expr,
4153
- result = [],
4154
- curLoop = set,
4155
- isXMLFilter = set && set[0] && Sizzle.isXML( set[0] );
4156
-
4157
- while ( expr && set.length ) {
4158
- for ( type in Expr.filter ) {
4159
- if ( (match = Expr.leftMatch[ type ].exec( expr )) != null && match[2] ) {
4160
- filter = Expr.filter[ type ];
4161
- left = match[1];
4162
-
4163
- anyFound = false;
4164
-
4165
- match.splice(1,1);
4166
-
4167
- if ( left.substr( left.length - 1 ) === "\\" ) {
4168
- continue;
4169
- }
4170
-
4171
- if ( curLoop === result ) {
4172
- result = [];
4173
- }
4174
-
4175
- if ( Expr.preFilter[ type ] ) {
4176
- match = Expr.preFilter[ type ]( match, curLoop, inplace, result, not, isXMLFilter );
4177
-
4178
- if ( !match ) {
4179
- anyFound = found = true;
4180
-
4181
- } else if ( match === true ) {
4182
- continue;
4183
- }
4184
- }
4185
-
4186
- if ( match ) {
4187
- for ( i = 0; (item = curLoop[i]) != null; i++ ) {
4188
- if ( item ) {
4189
- found = filter( item, match, i, curLoop );
4190
- pass = not ^ found;
4191
-
4192
- if ( inplace && found != null ) {
4193
- if ( pass ) {
4194
- anyFound = true;
4195
-
4196
- } else {
4197
- curLoop[i] = false;
4198
- }
4199
-
4200
- } else if ( pass ) {
4201
- result.push( item );
4202
- anyFound = true;
4203
- }
4204
- }
4205
- }
4206
- }
4207
-
4208
- if ( found !== undefined ) {
4209
- if ( !inplace ) {
4210
- curLoop = result;
4211
- }
4212
-
4213
- expr = expr.replace( Expr.match[ type ], "" );
4214
-
4215
- if ( !anyFound ) {
4216
- return [];
4217
- }
4218
-
4219
- break;
4220
- }
4221
- }
4222
- }
4223
-
4224
- // Improper expression
4225
- if ( expr === old ) {
4226
- if ( anyFound == null ) {
4227
- Sizzle.error( expr );
4228
-
4229
- } else {
4230
- break;
4231
- }
4232
- }
4233
-
4234
- old = expr;
4235
- }
4236
-
4237
- return curLoop;
4238
- };
4239
-
4240
- Sizzle.error = function( msg ) {
4241
- throw "Syntax error, unrecognized expression: " + msg;
4242
- };
4243
-
4244
- /**
4245
- * Utility function for retreiving the text value of an array of DOM nodes
4246
- * @param {Array|Element} elem
4247
- */
4248
- var getText = Sizzle.getText = function( elem ) {
4249
- var i, node,
4250
- nodeType = elem.nodeType,
4251
- ret = "";
4252
-
4253
- if ( nodeType ) {
4254
- if ( nodeType === 1 ) {
4255
- // Use textContent || innerText for elements
4256
- if ( typeof elem.textContent === 'string' ) {
4257
- return elem.textContent;
4258
- } else if ( typeof elem.innerText === 'string' ) {
4259
- // Replace IE's carriage returns
4260
- return elem.innerText.replace( rReturn, '' );
4261
- } else {
4262
- // Traverse it's children
4263
- for ( elem = elem.firstChild; elem; elem = elem.nextSibling) {
4264
- ret += getText( elem );
4265
- }
4266
- }
4267
- } else if ( nodeType === 3 || nodeType === 4 ) {
4268
- return elem.nodeValue;
4269
- }
4270
- } else {
4271
-
4272
- // If no nodeType, this is expected to be an array
4273
- for ( i = 0; (node = elem[i]); i++ ) {
4274
- // Do not traverse comment nodes
4275
- if ( node.nodeType !== 8 ) {
4276
- ret += getText( node );
4277
- }
4278
- }
4279
- }
4280
- return ret;
4281
- };
4282
-
4283
- var Expr = Sizzle.selectors = {
4284
- order: [ "ID", "NAME", "TAG" ],
4285
-
4286
- match: {
4287
- ID: /#((?:[\w\u00c0-\uFFFF\-]|\\.)+)/,
4288
- CLASS: /\.((?:[\w\u00c0-\uFFFF\-]|\\.)+)/,
4289
- NAME: /\[name=['"]*((?:[\w\u00c0-\uFFFF\-]|\\.)+)['"]*\]/,
4290
- ATTR: /\[\s*((?:[\w\u00c0-\uFFFF\-]|\\.)+)\s*(?:(\S?=)\s*(?:(['"])(.*?)\3|(#?(?:[\w\u00c0-\uFFFF\-]|\\.)*)|)|)\s*\]/,
4291
- TAG: /^((?:[\w\u00c0-\uFFFF\*\-]|\\.)+)/,
4292
- CHILD: /:(only|nth|last|first)-child(?:\(\s*(even|odd|(?:[+\-]?\d+|(?:[+\-]?\d*)?n\s*(?:[+\-]\s*\d+)?))\s*\))?/,
4293
- POS: /:(nth|eq|gt|lt|first|last|even|odd)(?:\((\d*)\))?(?=[^\-]|$)/,
4294
- PSEUDO: /:((?:[\w\u00c0-\uFFFF\-]|\\.)+)(?:\((['"]?)((?:\([^\)]+\)|[^\(\)]*)+)\2\))?/
4295
- },
4296
-
4297
- leftMatch: {},
4298
-
4299
- attrMap: {
4300
- "class": "className",
4301
- "for": "htmlFor"
4302
- },
4303
-
4304
- attrHandle: {
4305
- href: function( elem ) {
4306
- return elem.getAttribute( "href" );
4307
- },
4308
- type: function( elem ) {
4309
- return elem.getAttribute( "type" );
4310
- }
4311
- },
4312
-
4313
- relative: {
4314
- "+": function(checkSet, part){
4315
- var isPartStr = typeof part === "string",
4316
- isTag = isPartStr && !rNonWord.test( part ),
4317
- isPartStrNotTag = isPartStr && !isTag;
4318
-
4319
- if ( isTag ) {
4320
- part = part.toLowerCase();
4321
- }
4322
-
4323
- for ( var i = 0, l = checkSet.length, elem; i < l; i++ ) {
4324
- if ( (elem = checkSet[i]) ) {
4325
- while ( (elem = elem.previousSibling) && elem.nodeType !== 1 ) {}
4326
-
4327
- checkSet[i] = isPartStrNotTag || elem && elem.nodeName.toLowerCase() === part ?
4328
- elem || false :
4329
- elem === part;
4330
- }
4331
- }
4332
-
4333
- if ( isPartStrNotTag ) {
4334
- Sizzle.filter( part, checkSet, true );
4335
- }
4336
- },
4337
-
4338
- ">": function( checkSet, part ) {
4339
- var elem,
4340
- isPartStr = typeof part === "string",
4341
- i = 0,
4342
- l = checkSet.length;
4343
-
4344
- if ( isPartStr && !rNonWord.test( part ) ) {
4345
- part = part.toLowerCase();
4346
-
4347
- for ( ; i < l; i++ ) {
4348
- elem = checkSet[i];
4349
-
4350
- if ( elem ) {
4351
- var parent = elem.parentNode;
4352
- checkSet[i] = parent.nodeName.toLowerCase() === part ? parent : false;
4353
- }
4354
- }
4355
-
4356
- } else {
4357
- for ( ; i < l; i++ ) {
4358
- elem = checkSet[i];
4359
-
4360
- if ( elem ) {
4361
- checkSet[i] = isPartStr ?
4362
- elem.parentNode :
4363
- elem.parentNode === part;
4364
- }
4365
- }
4366
-
4367
- if ( isPartStr ) {
4368
- Sizzle.filter( part, checkSet, true );
4369
- }
4370
- }
4371
- },
4372
-
4373
- "": function(checkSet, part, isXML){
4374
- var nodeCheck,
4375
- doneName = done++,
4376
- checkFn = dirCheck;
4377
-
4378
- if ( typeof part === "string" && !rNonWord.test( part ) ) {
4379
- part = part.toLowerCase();
4380
- nodeCheck = part;
4381
- checkFn = dirNodeCheck;
4382
- }
4383
-
4384
- checkFn( "parentNode", part, doneName, checkSet, nodeCheck, isXML );
4385
- },
4386
-
4387
- "~": function( checkSet, part, isXML ) {
4388
- var nodeCheck,
4389
- doneName = done++,
4390
- checkFn = dirCheck;
4391
-
4392
- if ( typeof part === "string" && !rNonWord.test( part ) ) {
4393
- part = part.toLowerCase();
4394
- nodeCheck = part;
4395
- checkFn = dirNodeCheck;
4396
- }
4397
-
4398
- checkFn( "previousSibling", part, doneName, checkSet, nodeCheck, isXML );
4399
- }
4400
- },
4401
-
4402
- find: {
4403
- ID: function( match, context, isXML ) {
4404
- if ( typeof context.getElementById !== "undefined" && !isXML ) {
4405
- var m = context.getElementById(match[1]);
4406
- // Check parentNode to catch when Blackberry 4.6 returns
4407
- // nodes that are no longer in the document #6963
4408
- return m && m.parentNode ? [m] : [];
4409
- }
4410
- },
4411
-
4412
- NAME: function( match, context ) {
4413
- if ( typeof context.getElementsByName !== "undefined" ) {
4414
- var ret = [],
4415
- results = context.getElementsByName( match[1] );
4416
-
4417
- for ( var i = 0, l = results.length; i < l; i++ ) {
4418
- if ( results[i].getAttribute("name") === match[1] ) {
4419
- ret.push( results[i] );
4420
- }
4421
- }
4422
-
4423
- return ret.length === 0 ? null : ret;
4424
- }
4425
- },
4426
-
4427
- TAG: function( match, context ) {
4428
- if ( typeof context.getElementsByTagName !== "undefined" ) {
4429
- return context.getElementsByTagName( match[1] );
4430
- }
4431
- }
4432
- },
4433
- preFilter: {
4434
- CLASS: function( match, curLoop, inplace, result, not, isXML ) {
4435
- match = " " + match[1].replace( rBackslash, "" ) + " ";
4436
-
4437
- if ( isXML ) {
4438
- return match;
4439
- }
4440
-
4441
- for ( var i = 0, elem; (elem = curLoop[i]) != null; i++ ) {
4442
- if ( elem ) {
4443
- if ( not ^ (elem.className && (" " + elem.className + " ").replace(/[\t\n\r]/g, " ").indexOf(match) >= 0) ) {
4444
- if ( !inplace ) {
4445
- result.push( elem );
4446
- }
4447
-
4448
- } else if ( inplace ) {
4449
- curLoop[i] = false;
4450
- }
4451
- }
4452
- }
4453
-
4454
- return false;
4455
- },
4456
-
4457
- ID: function( match ) {
4458
- return match[1].replace( rBackslash, "" );
4459
- },
4460
-
4461
- TAG: function( match, curLoop ) {
4462
- return match[1].replace( rBackslash, "" ).toLowerCase();
4463
- },
4464
-
4465
- CHILD: function( match ) {
4466
- if ( match[1] === "nth" ) {
4467
- if ( !match[2] ) {
4468
- Sizzle.error( match[0] );
4469
- }
4470
-
4471
- match[2] = match[2].replace(/^\+|\s*/g, '');
4472
-
4473
- // parse equations like 'even', 'odd', '5', '2n', '3n+2', '4n-1', '-n+6'
4474
- var test = /(-?)(\d*)(?:n([+\-]?\d*))?/.exec(
4475
- match[2] === "even" && "2n" || match[2] === "odd" && "2n+1" ||
4476
- !/\D/.test( match[2] ) && "0n+" + match[2] || match[2]);
4477
-
4478
- // calculate the numbers (first)n+(last) including if they are negative
4479
- match[2] = (test[1] + (test[2] || 1)) - 0;
4480
- match[3] = test[3] - 0;
4481
- }
4482
- else if ( match[2] ) {
4483
- Sizzle.error( match[0] );
4484
- }
4485
-
4486
- // TODO: Move to normal caching system
4487
- match[0] = done++;
4488
-
4489
- return match;
4490
- },
4491
-
4492
- ATTR: function( match, curLoop, inplace, result, not, isXML ) {
4493
- var name = match[1] = match[1].replace( rBackslash, "" );
4494
-
4495
- if ( !isXML && Expr.attrMap[name] ) {
4496
- match[1] = Expr.attrMap[name];
4497
- }
4498
-
4499
- // Handle if an un-quoted value was used
4500
- match[4] = ( match[4] || match[5] || "" ).replace( rBackslash, "" );
4501
-
4502
- if ( match[2] === "~=" ) {
4503
- match[4] = " " + match[4] + " ";
4504
- }
4505
-
4506
- return match;
4507
- },
4508
-
4509
- PSEUDO: function( match, curLoop, inplace, result, not ) {
4510
- if ( match[1] === "not" ) {
4511
- // If we're dealing with a complex expression, or a simple one
4512
- if ( ( chunker.exec(match[3]) || "" ).length > 1 || /^\w/.test(match[3]) ) {
4513
- match[3] = Sizzle(match[3], null, null, curLoop);
4514
-
4515
- } else {
4516
- var ret = Sizzle.filter(match[3], curLoop, inplace, true ^ not);
4517
-
4518
- if ( !inplace ) {
4519
- result.push.apply( result, ret );
4520
- }
4521
-
4522
- return false;
4523
- }
4524
-
4525
- } else if ( Expr.match.POS.test( match[0] ) || Expr.match.CHILD.test( match[0] ) ) {
4526
- return true;
4527
- }
4528
-
4529
- return match;
4530
- },
4531
-
4532
- POS: function( match ) {
4533
- match.unshift( true );
4534
-
4535
- return match;
4536
- }
4537
- },
4538
-
4539
- filters: {
4540
- enabled: function( elem ) {
4541
- return elem.disabled === false && elem.type !== "hidden";
4542
- },
4543
-
4544
- disabled: function( elem ) {
4545
- return elem.disabled === true;
4546
- },
4547
-
4548
- checked: function( elem ) {
4549
- return elem.checked === true;
4550
- },
4551
-
4552
- selected: function( elem ) {
4553
- // Accessing this property makes selected-by-default
4554
- // options in Safari work properly
4555
- if ( elem.parentNode ) {
4556
- elem.parentNode.selectedIndex;
4557
- }
4558
-
4559
- return elem.selected === true;
4560
- },
4561
-
4562
- parent: function( elem ) {
4563
- return !!elem.firstChild;
4564
- },
4565
-
4566
- empty: function( elem ) {
4567
- return !elem.firstChild;
4568
- },
4569
-
4570
- has: function( elem, i, match ) {
4571
- return !!Sizzle( match[3], elem ).length;
4572
- },
4573
-
4574
- header: function( elem ) {
4575
- return (/h\d/i).test( elem.nodeName );
4576
- },
4577
-
4578
- text: function( elem ) {
4579
- var attr = elem.getAttribute( "type" ), type = elem.type;
4580
- // IE6 and 7 will map elem.type to 'text' for new HTML5 types (search, etc)
4581
- // use getAttribute instead to test this case
4582
- return elem.nodeName.toLowerCase() === "input" && "text" === type && ( attr === type || attr === null );
4583
- },
4584
-
4585
- radio: function( elem ) {
4586
- return elem.nodeName.toLowerCase() === "input" && "radio" === elem.type;
4587
- },
4588
-
4589
- checkbox: function( elem ) {
4590
- return elem.nodeName.toLowerCase() === "input" && "checkbox" === elem.type;
4591
- },
4592
-
4593
- file: function( elem ) {
4594
- return elem.nodeName.toLowerCase() === "input" && "file" === elem.type;
4595
- },
4596
-
4597
- password: function( elem ) {
4598
- return elem.nodeName.toLowerCase() === "input" && "password" === elem.type;
4599
- },
4600
-
4601
- submit: function( elem ) {
4602
- var name = elem.nodeName.toLowerCase();
4603
- return (name === "input" || name === "button") && "submit" === elem.type;
4604
- },
4605
-
4606
- image: function( elem ) {
4607
- return elem.nodeName.toLowerCase() === "input" && "image" === elem.type;
4608
- },
4609
-
4610
- reset: function( elem ) {
4611
- var name = elem.nodeName.toLowerCase();
4612
- return (name === "input" || name === "button") && "reset" === elem.type;
4613
- },
4614
-
4615
- button: function( elem ) {
4616
- var name = elem.nodeName.toLowerCase();
4617
- return name === "input" && "button" === elem.type || name === "button";
4618
- },
4619
-
4620
- input: function( elem ) {
4621
- return (/input|select|textarea|button/i).test( elem.nodeName );
4622
- },
4623
-
4624
- focus: function( elem ) {
4625
- return elem === elem.ownerDocument.activeElement;
4626
- }
4627
- },
4628
- setFilters: {
4629
- first: function( elem, i ) {
4630
- return i === 0;
4631
- },
4632
-
4633
- last: function( elem, i, match, array ) {
4634
- return i === array.length - 1;
4635
- },
4636
-
4637
- even: function( elem, i ) {
4638
- return i % 2 === 0;
4639
- },
4640
-
4641
- odd: function( elem, i ) {
4642
- return i % 2 === 1;
4643
- },
4644
-
4645
- lt: function( elem, i, match ) {
4646
- return i < match[3] - 0;
4647
- },
4648
-
4649
- gt: function( elem, i, match ) {
4650
- return i > match[3] - 0;
4651
- },
4652
-
4653
- nth: function( elem, i, match ) {
4654
- return match[3] - 0 === i;
4655
- },
4656
-
4657
- eq: function( elem, i, match ) {
4658
- return match[3] - 0 === i;
4659
- }
4660
- },
4661
- filter: {
4662
- PSEUDO: function( elem, match, i, array ) {
4663
- var name = match[1],
4664
- filter = Expr.filters[ name ];
4665
-
4666
- if ( filter ) {
4667
- return filter( elem, i, match, array );
4668
-
4669
- } else if ( name === "contains" ) {
4670
- return (elem.textContent || elem.innerText || getText([ elem ]) || "").indexOf(match[3]) >= 0;
4671
-
4672
- } else if ( name === "not" ) {
4673
- var not = match[3];
4674
-
4675
- for ( var j = 0, l = not.length; j < l; j++ ) {
4676
- if ( not[j] === elem ) {
4677
- return false;
4678
- }
4679
- }
4680
-
4681
- return true;
4682
-
4683
- } else {
4684
- Sizzle.error( name );
4685
- }
4686
- },
4687
-
4688
- CHILD: function( elem, match ) {
4689
- var first, last,
4690
- doneName, parent, cache,
4691
- count, diff,
4692
- type = match[1],
4693
- node = elem;
4694
-
4695
- switch ( type ) {
4696
- case "only":
4697
- case "first":
4698
- while ( (node = node.previousSibling) ) {
4699
- if ( node.nodeType === 1 ) {
4700
- return false;
4701
- }
4702
- }
4703
-
4704
- if ( type === "first" ) {
4705
- return true;
4706
- }
4707
-
4708
- node = elem;
4709
-
4710
- case "last":
4711
- while ( (node = node.nextSibling) ) {
4712
- if ( node.nodeType === 1 ) {
4713
- return false;
4714
- }
4715
- }
4716
-
4717
- return true;
4718
-
4719
- case "nth":
4720
- first = match[2];
4721
- last = match[3];
4722
-
4723
- if ( first === 1 && last === 0 ) {
4724
- return true;
4725
- }
4726
-
4727
- doneName = match[0];
4728
- parent = elem.parentNode;
4729
-
4730
- if ( parent && (parent[ expando ] !== doneName || !elem.nodeIndex) ) {
4731
- count = 0;
4732
-
4733
- for ( node = parent.firstChild; node; node = node.nextSibling ) {
4734
- if ( node.nodeType === 1 ) {
4735
- node.nodeIndex = ++count;
4736
- }
4737
- }
4738
-
4739
- parent[ expando ] = doneName;
4740
- }
4741
-
4742
- diff = elem.nodeIndex - last;
4743
-
4744
- if ( first === 0 ) {
4745
- return diff === 0;
4746
-
4747
- } else {
4748
- return ( diff % first === 0 && diff / first >= 0 );
4749
- }
4750
- }
4751
- },
4752
-
4753
- ID: function( elem, match ) {
4754
- return elem.nodeType === 1 && elem.getAttribute("id") === match;
4755
- },
4756
-
4757
- TAG: function( elem, match ) {
4758
- return (match === "*" && elem.nodeType === 1) || !!elem.nodeName && elem.nodeName.toLowerCase() === match;
4759
- },
4760
-
4761
- CLASS: function( elem, match ) {
4762
- return (" " + (elem.className || elem.getAttribute("class")) + " ")
4763
- .indexOf( match ) > -1;
4764
- },
4765
-
4766
- ATTR: function( elem, match ) {
4767
- var name = match[1],
4768
- result = Sizzle.attr ?
4769
- Sizzle.attr( elem, name ) :
4770
- Expr.attrHandle[ name ] ?
4771
- Expr.attrHandle[ name ]( elem ) :
4772
- elem[ name ] != null ?
4773
- elem[ name ] :
4774
- elem.getAttribute( name ),
4775
- value = result + "",
4776
- type = match[2],
4777
- check = match[4];
4778
-
4779
- return result == null ?
4780
- type === "!=" :
4781
- !type && Sizzle.attr ?
4782
- result != null :
4783
- type === "=" ?
4784
- value === check :
4785
- type === "*=" ?
4786
- value.indexOf(check) >= 0 :
4787
- type === "~=" ?
4788
- (" " + value + " ").indexOf(check) >= 0 :
4789
- !check ?
4790
- value && result !== false :
4791
- type === "!=" ?
4792
- value !== check :
4793
- type === "^=" ?
4794
- value.indexOf(check) === 0 :
4795
- type === "$=" ?
4796
- value.substr(value.length - check.length) === check :
4797
- type === "|=" ?
4798
- value === check || value.substr(0, check.length + 1) === check + "-" :
4799
- false;
4800
- },
4801
-
4802
- POS: function( elem, match, i, array ) {
4803
- var name = match[2],
4804
- filter = Expr.setFilters[ name ];
4805
-
4806
- if ( filter ) {
4807
- return filter( elem, i, match, array );
4808
- }
4809
- }
4810
- }
4811
- };
4812
-
4813
- var origPOS = Expr.match.POS,
4814
- fescape = function(all, num){
4815
- return "\\" + (num - 0 + 1);
4816
- };
4817
-
4818
- for ( var type in Expr.match ) {
4819
- Expr.match[ type ] = new RegExp( Expr.match[ type ].source + (/(?![^\[]*\])(?![^\(]*\))/.source) );
4820
- Expr.leftMatch[ type ] = new RegExp( /(^(?:.|\r|\n)*?)/.source + Expr.match[ type ].source.replace(/\\(\d+)/g, fescape) );
4821
- }
4822
-
4823
- var makeArray = function( array, results ) {
4824
- array = Array.prototype.slice.call( array, 0 );
4825
-
4826
- if ( results ) {
4827
- results.push.apply( results, array );
4828
- return results;
4829
- }
4830
-
4831
- return array;
4832
- };
4833
-
4834
- // Perform a simple check to determine if the browser is capable of
4835
- // converting a NodeList to an array using builtin methods.
4836
- // Also verifies that the returned array holds DOM nodes
4837
- // (which is not the case in the Blackberry browser)
4838
- try {
4839
- Array.prototype.slice.call( document.documentElement.childNodes, 0 )[0].nodeType;
4840
-
4841
- // Provide a fallback method if it does not work
4842
- } catch( e ) {
4843
- makeArray = function( array, results ) {
4844
- var i = 0,
4845
- ret = results || [];
4846
-
4847
- if ( toString.call(array) === "[object Array]" ) {
4848
- Array.prototype.push.apply( ret, array );
4849
-
4850
- } else {
4851
- if ( typeof array.length === "number" ) {
4852
- for ( var l = array.length; i < l; i++ ) {
4853
- ret.push( array[i] );
4854
- }
4855
-
4856
- } else {
4857
- for ( ; array[i]; i++ ) {
4858
- ret.push( array[i] );
4859
- }
4860
- }
4861
- }
4862
-
4863
- return ret;
4864
- };
4865
- }
4866
-
4867
- var sortOrder, siblingCheck;
4868
-
4869
- if ( document.documentElement.compareDocumentPosition ) {
4870
- sortOrder = function( a, b ) {
4871
- if ( a === b ) {
4872
- hasDuplicate = true;
4873
- return 0;
4874
- }
4875
-
4876
- if ( !a.compareDocumentPosition || !b.compareDocumentPosition ) {
4877
- return a.compareDocumentPosition ? -1 : 1;
4878
- }
4879
-
4880
- return a.compareDocumentPosition(b) & 4 ? -1 : 1;
4881
- };
4882
-
4883
- } else {
4884
- sortOrder = function( a, b ) {
4885
- // The nodes are identical, we can exit early
4886
- if ( a === b ) {
4887
- hasDuplicate = true;
4888
- return 0;
4889
-
4890
- // Fallback to using sourceIndex (in IE) if it's available on both nodes
4891
- } else if ( a.sourceIndex && b.sourceIndex ) {
4892
- return a.sourceIndex - b.sourceIndex;
4893
- }
4894
-
4895
- var al, bl,
4896
- ap = [],
4897
- bp = [],
4898
- aup = a.parentNode,
4899
- bup = b.parentNode,
4900
- cur = aup;
4901
-
4902
- // If the nodes are siblings (or identical) we can do a quick check
4903
- if ( aup === bup ) {
4904
- return siblingCheck( a, b );
4905
-
4906
- // If no parents were found then the nodes are disconnected
4907
- } else if ( !aup ) {
4908
- return -1;
4909
-
4910
- } else if ( !bup ) {
4911
- return 1;
4912
- }
4913
-
4914
- // Otherwise they're somewhere else in the tree so we need
4915
- // to build up a full list of the parentNodes for comparison
4916
- while ( cur ) {
4917
- ap.unshift( cur );
4918
- cur = cur.parentNode;
4919
- }
4920
-
4921
- cur = bup;
4922
-
4923
- while ( cur ) {
4924
- bp.unshift( cur );
4925
- cur = cur.parentNode;
4926
- }
4927
-
4928
- al = ap.length;
4929
- bl = bp.length;
4930
-
4931
- // Start walking down the tree looking for a discrepancy
4932
- for ( var i = 0; i < al && i < bl; i++ ) {
4933
- if ( ap[i] !== bp[i] ) {
4934
- return siblingCheck( ap[i], bp[i] );
4935
- }
4936
- }
4937
-
4938
- // We ended someplace up the tree so do a sibling check
4939
- return i === al ?
4940
- siblingCheck( a, bp[i], -1 ) :
4941
- siblingCheck( ap[i], b, 1 );
4942
- };
4943
-
4944
- siblingCheck = function( a, b, ret ) {
4945
- if ( a === b ) {
4946
- return ret;
4947
- }
4948
-
4949
- var cur = a.nextSibling;
4950
-
4951
- while ( cur ) {
4952
- if ( cur === b ) {
4953
- return -1;
4954
- }
4955
-
4956
- cur = cur.nextSibling;
4957
- }
4958
-
4959
- return 1;
4960
- };
4961
- }
4962
-
4963
- // Check to see if the browser returns elements by name when
4964
- // querying by getElementById (and provide a workaround)
4965
- (function(){
4966
- // We're going to inject a fake input element with a specified name
4967
- var form = document.createElement("div"),
4968
- id = "script" + (new Date()).getTime(),
4969
- root = document.documentElement;
4970
-
4971
- form.innerHTML = "<a name='" + id + "'/>";
4972
-
4973
- // Inject it into the root element, check its status, and remove it quickly
4974
- root.insertBefore( form, root.firstChild );
4975
-
4976
- // The workaround has to do additional checks after a getElementById
4977
- // Which slows things down for other browsers (hence the branching)
4978
- if ( document.getElementById( id ) ) {
4979
- Expr.find.ID = function( match, context, isXML ) {
4980
- if ( typeof context.getElementById !== "undefined" && !isXML ) {
4981
- var m = context.getElementById(match[1]);
4982
-
4983
- return m ?
4984
- m.id === match[1] || typeof m.getAttributeNode !== "undefined" && m.getAttributeNode("id").nodeValue === match[1] ?
4985
- [m] :
4986
- undefined :
4987
- [];
4988
- }
4989
- };
4990
-
4991
- Expr.filter.ID = function( elem, match ) {
4992
- var node = typeof elem.getAttributeNode !== "undefined" && elem.getAttributeNode("id");
4993
-
4994
- return elem.nodeType === 1 && node && node.nodeValue === match;
4995
- };
4996
- }
4997
-
4998
- root.removeChild( form );
4999
-
5000
- // release memory in IE
5001
- root = form = null;
5002
- })();
5003
-
5004
- (function(){
5005
- // Check to see if the browser returns only elements
5006
- // when doing getElementsByTagName("*")
5007
-
5008
- // Create a fake element
5009
- var div = document.createElement("div");
5010
- div.appendChild( document.createComment("") );
5011
-
5012
- // Make sure no comments are found
5013
- if ( div.getElementsByTagName("*").length > 0 ) {
5014
- Expr.find.TAG = function( match, context ) {
5015
- var results = context.getElementsByTagName( match[1] );
5016
-
5017
- // Filter out possible comments
5018
- if ( match[1] === "*" ) {
5019
- var tmp = [];
5020
-
5021
- for ( var i = 0; results[i]; i++ ) {
5022
- if ( results[i].nodeType === 1 ) {
5023
- tmp.push( results[i] );
5024
- }
5025
- }
5026
-
5027
- results = tmp;
5028
- }
5029
-
5030
- return results;
5031
- };
5032
- }
5033
-
5034
- // Check to see if an attribute returns normalized href attributes
5035
- div.innerHTML = "<a href='#'></a>";
5036
-
5037
- if ( div.firstChild && typeof div.firstChild.getAttribute !== "undefined" &&
5038
- div.firstChild.getAttribute("href") !== "#" ) {
5039
-
5040
- Expr.attrHandle.href = function( elem ) {
5041
- return elem.getAttribute( "href", 2 );
5042
- };
5043
- }
5044
-
5045
- // release memory in IE
5046
- div = null;
5047
- })();
5048
-
5049
- if ( document.querySelectorAll ) {
5050
- (function(){
5051
- var oldSizzle = Sizzle,
5052
- div = document.createElement("div"),
5053
- id = "__sizzle__";
5054
-
5055
- div.innerHTML = "<p class='TEST'></p>";
5056
-
5057
- // Safari can't handle uppercase or unicode characters when
5058
- // in quirks mode.
5059
- if ( div.querySelectorAll && div.querySelectorAll(".TEST").length === 0 ) {
5060
- return;
5061
- }
5062
-
5063
- Sizzle = function( query, context, extra, seed ) {
5064
- context = context || document;
5065
-
5066
- // Only use querySelectorAll on non-XML documents
5067
- // (ID selectors don't work in non-HTML documents)
5068
- if ( !seed && !Sizzle.isXML(context) ) {
5069
- // See if we find a selector to speed up
5070
- var match = /^(\w+$)|^\.([\w\-]+$)|^#([\w\-]+$)/.exec( query );
5071
-
5072
- if ( match && (context.nodeType === 1 || context.nodeType === 9) ) {
5073
- // Speed-up: Sizzle("TAG")
5074
- if ( match[1] ) {
5075
- return makeArray( context.getElementsByTagName( query ), extra );
5076
-
5077
- // Speed-up: Sizzle(".CLASS")
5078
- } else if ( match[2] && Expr.find.CLASS && context.getElementsByClassName ) {
5079
- return makeArray( context.getElementsByClassName( match[2] ), extra );
5080
- }
5081
- }
5082
-
5083
- if ( context.nodeType === 9 ) {
5084
- // Speed-up: Sizzle("body")
5085
- // The body element only exists once, optimize finding it
5086
- if ( query === "body" && context.body ) {
5087
- return makeArray( [ context.body ], extra );
5088
-
5089
- // Speed-up: Sizzle("#ID")
5090
- } else if ( match && match[3] ) {
5091
- var elem = context.getElementById( match[3] );
5092
-
5093
- // Check parentNode to catch when Blackberry 4.6 returns
5094
- // nodes that are no longer in the document #6963
5095
- if ( elem && elem.parentNode ) {
5096
- // Handle the case where IE and Opera return items
5097
- // by name instead of ID
5098
- if ( elem.id === match[3] ) {
5099
- return makeArray( [ elem ], extra );
5100
- }
5101
-
5102
- } else {
5103
- return makeArray( [], extra );
5104
- }
5105
- }
5106
-
5107
- try {
5108
- return makeArray( context.querySelectorAll(query), extra );
5109
- } catch(qsaError) {}
5110
-
5111
- // qSA works strangely on Element-rooted queries
5112
- // We can work around this by specifying an extra ID on the root
5113
- // and working up from there (Thanks to Andrew Dupont for the technique)
5114
- // IE 8 doesn't work on object elements
5115
- } else if ( context.nodeType === 1 && context.nodeName.toLowerCase() !== "object" ) {
5116
- var oldContext = context,
5117
- old = context.getAttribute( "id" ),
5118
- nid = old || id,
5119
- hasParent = context.parentNode,
5120
- relativeHierarchySelector = /^\s*[+~]/.test( query );
5121
-
5122
- if ( !old ) {
5123
- context.setAttribute( "id", nid );
5124
- } else {
5125
- nid = nid.replace( /'/g, "\\$&" );
5126
- }
5127
- if ( relativeHierarchySelector && hasParent ) {
5128
- context = context.parentNode;
5129
- }
5130
-
5131
- try {
5132
- if ( !relativeHierarchySelector || hasParent ) {
5133
- return makeArray( context.querySelectorAll( "[id='" + nid + "'] " + query ), extra );
5134
- }
5135
-
5136
- } catch(pseudoError) {
5137
- } finally {
5138
- if ( !old ) {
5139
- oldContext.removeAttribute( "id" );
5140
- }
5141
- }
5142
- }
5143
- }
5144
-
5145
- return oldSizzle(query, context, extra, seed);
5146
- };
5147
-
5148
- for ( var prop in oldSizzle ) {
5149
- Sizzle[ prop ] = oldSizzle[ prop ];
5150
- }
5151
-
5152
- // release memory in IE
5153
- div = null;
5154
- })();
5155
- }
5156
-
5157
- (function(){
5158
- var html = document.documentElement,
5159
- matches = html.matchesSelector || html.mozMatchesSelector || html.webkitMatchesSelector || html.msMatchesSelector;
5160
-
5161
- if ( matches ) {
5162
- // Check to see if it's possible to do matchesSelector
5163
- // on a disconnected node (IE 9 fails this)
5164
- var disconnectedMatch = !matches.call( document.createElement( "div" ), "div" ),
5165
- pseudoWorks = false;
5166
-
5167
- try {
5168
- // This should fail with an exception
5169
- // Gecko does not error, returns false instead
5170
- matches.call( document.documentElement, "[test!='']:sizzle" );
5171
-
5172
- } catch( pseudoError ) {
5173
- pseudoWorks = true;
5174
- }
5175
-
5176
- Sizzle.matchesSelector = function( node, expr ) {
5177
- // Make sure that attribute selectors are quoted
5178
- expr = expr.replace(/\=\s*([^'"\]]*)\s*\]/g, "='$1']");
5179
-
5180
- if ( !Sizzle.isXML( node ) ) {
5181
- try {
5182
- if ( pseudoWorks || !Expr.match.PSEUDO.test( expr ) && !/!=/.test( expr ) ) {
5183
- var ret = matches.call( node, expr );
5184
-
5185
- // IE 9's matchesSelector returns false on disconnected nodes
5186
- if ( ret || !disconnectedMatch ||
5187
- // As well, disconnected nodes are said to be in a document
5188
- // fragment in IE 9, so check for that
5189
- node.document && node.document.nodeType !== 11 ) {
5190
- return ret;
5191
- }
5192
- }
5193
- } catch(e) {}
5194
- }
5195
-
5196
- return Sizzle(expr, null, null, [node]).length > 0;
5197
- };
5198
- }
5199
- })();
5200
-
5201
- (function(){
5202
- var div = document.createElement("div");
5203
-
5204
- div.innerHTML = "<div class='test e'></div><div class='test'></div>";
5205
-
5206
- // Opera can't find a second classname (in 9.6)
5207
- // Also, make sure that getElementsByClassName actually exists
5208
- if ( !div.getElementsByClassName || div.getElementsByClassName("e").length === 0 ) {
5209
- return;
5210
- }
5211
-
5212
- // Safari caches class attributes, doesn't catch changes (in 3.2)
5213
- div.lastChild.className = "e";
5214
-
5215
- if ( div.getElementsByClassName("e").length === 1 ) {
5216
- return;
5217
- }
5218
-
5219
- Expr.order.splice(1, 0, "CLASS");
5220
- Expr.find.CLASS = function( match, context, isXML ) {
5221
- if ( typeof context.getElementsByClassName !== "undefined" && !isXML ) {
5222
- return context.getElementsByClassName(match[1]);
5223
- }
5224
- };
5225
-
5226
- // release memory in IE
5227
- div = null;
5228
- })();
5229
-
5230
- function dirNodeCheck( dir, cur, doneName, checkSet, nodeCheck, isXML ) {
5231
- for ( var i = 0, l = checkSet.length; i < l; i++ ) {
5232
- var elem = checkSet[i];
5233
-
5234
- if ( elem ) {
5235
- var match = false;
5236
-
5237
- elem = elem[dir];
5238
-
5239
- while ( elem ) {
5240
- if ( elem[ expando ] === doneName ) {
5241
- match = checkSet[elem.sizset];
5242
- break;
5243
- }
5244
-
5245
- if ( elem.nodeType === 1 && !isXML ){
5246
- elem[ expando ] = doneName;
5247
- elem.sizset = i;
5248
- }
5249
-
5250
- if ( elem.nodeName.toLowerCase() === cur ) {
5251
- match = elem;
5252
- break;
5253
- }
5254
-
5255
- elem = elem[dir];
5256
- }
5257
-
5258
- checkSet[i] = match;
5259
- }
5260
- }
5261
- }
5262
-
5263
- function dirCheck( dir, cur, doneName, checkSet, nodeCheck, isXML ) {
5264
- for ( var i = 0, l = checkSet.length; i < l; i++ ) {
5265
- var elem = checkSet[i];
5266
-
5267
- if ( elem ) {
5268
- var match = false;
5269
-
5270
- elem = elem[dir];
5271
-
5272
- while ( elem ) {
5273
- if ( elem[ expando ] === doneName ) {
5274
- match = checkSet[elem.sizset];
5275
- break;
5276
- }
5277
-
5278
- if ( elem.nodeType === 1 ) {
5279
- if ( !isXML ) {
5280
- elem[ expando ] = doneName;
5281
- elem.sizset = i;
5282
- }
5283
-
5284
- if ( typeof cur !== "string" ) {
5285
- if ( elem === cur ) {
5286
- match = true;
5287
- break;
5288
- }
5289
-
5290
- } else if ( Sizzle.filter( cur, [elem] ).length > 0 ) {
5291
- match = elem;
5292
- break;
5293
- }
5294
- }
5295
-
5296
- elem = elem[dir];
5297
- }
5298
-
5299
- checkSet[i] = match;
5300
- }
5301
- }
5302
- }
5303
-
5304
- if ( document.documentElement.contains ) {
5305
- Sizzle.contains = function( a, b ) {
5306
- return a !== b && (a.contains ? a.contains(b) : true);
5307
- };
5308
-
5309
- } else if ( document.documentElement.compareDocumentPosition ) {
5310
- Sizzle.contains = function( a, b ) {
5311
- return !!(a.compareDocumentPosition(b) & 16);
5312
- };
5313
-
5314
- } else {
5315
- Sizzle.contains = function() {
5316
- return false;
5317
- };
5318
- }
5319
-
5320
- Sizzle.isXML = function( elem ) {
5321
- // documentElement is verified for cases where it doesn't yet exist
5322
- // (such as loading iframes in IE - #4833)
5323
- var documentElement = (elem ? elem.ownerDocument || elem : 0).documentElement;
5324
-
5325
- return documentElement ? documentElement.nodeName !== "HTML" : false;
5326
- };
5327
-
5328
- var posProcess = function( selector, context, seed ) {
5329
- var match,
5330
- tmpSet = [],
5331
- later = "",
5332
- root = context.nodeType ? [context] : context;
5333
-
5334
- // Position selectors must be done after the filter
5335
- // And so must :not(positional) so we move all PSEUDOs to the end
5336
- while ( (match = Expr.match.PSEUDO.exec( selector )) ) {
5337
- later += match[0];
5338
- selector = selector.replace( Expr.match.PSEUDO, "" );
5339
- }
5340
-
5341
- selector = Expr.relative[selector] ? selector + "*" : selector;
5342
-
5343
- for ( var i = 0, l = root.length; i < l; i++ ) {
5344
- Sizzle( selector, root[i], tmpSet, seed );
5345
- }
5346
-
5347
- return Sizzle.filter( later, tmpSet );
5348
- };
5349
-
5350
- // EXPOSE
5351
- // Override sizzle attribute retrieval
5352
- Sizzle.attr = jQuery.attr;
5353
- Sizzle.selectors.attrMap = {};
5354
- jQuery.find = Sizzle;
5355
- jQuery.expr = Sizzle.selectors;
5356
- jQuery.expr[":"] = jQuery.expr.filters;
5357
- jQuery.unique = Sizzle.uniqueSort;
5358
- jQuery.text = Sizzle.getText;
5359
- jQuery.isXMLDoc = Sizzle.isXML;
5360
- jQuery.contains = Sizzle.contains;
5361
-
5362
-
5363
- })();
5364
-
5365
-
5366
- var runtil = /Until$/,
5367
- rparentsprev = /^(?:parents|prevUntil|prevAll)/,
5368
- // Note: This RegExp should be improved, or likely pulled from Sizzle
5369
- rmultiselector = /,/,
5370
- isSimple = /^.[^:#\[\.,]*$/,
5371
- slice = Array.prototype.slice,
5372
- POS = jQuery.expr.match.POS,
5373
- // methods guaranteed to produce a unique set when starting from a unique set
5374
- guaranteedUnique = {
5375
- children: true,
5376
- contents: true,
5377
- next: true,
5378
- prev: true
5379
- };
5380
-
5381
- jQuery.fn.extend({
5382
- find: function( selector ) {
5383
- var self = this,
5384
- i, l;
5385
-
5386
- if ( typeof selector !== "string" ) {
5387
- return jQuery( selector ).filter(function() {
5388
- for ( i = 0, l = self.length; i < l; i++ ) {
5389
- if ( jQuery.contains( self[ i ], this ) ) {
5390
- return true;
5391
- }
5392
- }
5393
- });
5394
- }
5395
-
5396
- var ret = this.pushStack( "", "find", selector ),
5397
- length, n, r;
5398
-
5399
- for ( i = 0, l = this.length; i < l; i++ ) {
5400
- length = ret.length;
5401
- jQuery.find( selector, this[i], ret );
5402
-
5403
- if ( i > 0 ) {
5404
- // Make sure that the results are unique
5405
- for ( n = length; n < ret.length; n++ ) {
5406
- for ( r = 0; r < length; r++ ) {
5407
- if ( ret[r] === ret[n] ) {
5408
- ret.splice(n--, 1);
5409
- break;
5410
- }
5411
- }
5412
- }
5413
- }
5414
- }
5415
-
5416
- return ret;
5417
- },
5418
-
5419
- has: function( target ) {
5420
- var targets = jQuery( target );
5421
- return this.filter(function() {
5422
- for ( var i = 0, l = targets.length; i < l; i++ ) {
5423
- if ( jQuery.contains( this, targets[i] ) ) {
5424
- return true;
5425
- }
5426
- }
5427
- });
5428
- },
5429
-
5430
- not: function( selector ) {
5431
- return this.pushStack( winnow(this, selector, false), "not", selector);
5432
- },
5433
-
5434
- filter: function( selector ) {
5435
- return this.pushStack( winnow(this, selector, true), "filter", selector );
5436
- },
5437
-
5438
- is: function( selector ) {
5439
- return !!selector && (
5440
- typeof selector === "string" ?
5441
- // If this is a positional selector, check membership in the returned set
5442
- // so $("p:first").is("p:last") won't return true for a doc with two "p".
5443
- POS.test( selector ) ?
5444
- jQuery( selector, this.context ).index( this[0] ) >= 0 :
5445
- jQuery.filter( selector, this ).length > 0 :
5446
- this.filter( selector ).length > 0 );
5447
- },
5448
-
5449
- closest: function( selectors, context ) {
5450
- var ret = [], i, l, cur = this[0];
5451
-
5452
- // Array (deprecated as of jQuery 1.7)
5453
- if ( jQuery.isArray( selectors ) ) {
5454
- var level = 1;
5455
-
5456
- while ( cur && cur.ownerDocument && cur !== context ) {
5457
- for ( i = 0; i < selectors.length; i++ ) {
5458
-
5459
- if ( jQuery( cur ).is( selectors[ i ] ) ) {
5460
- ret.push({ selector: selectors[ i ], elem: cur, level: level });
5461
- }
5462
- }
5463
-
5464
- cur = cur.parentNode;
5465
- level++;
5466
- }
5467
-
5468
- return ret;
5469
- }
5470
-
5471
- // String
5472
- var pos = POS.test( selectors ) || typeof selectors !== "string" ?
5473
- jQuery( selectors, context || this.context ) :
5474
- 0;
5475
-
5476
- for ( i = 0, l = this.length; i < l; i++ ) {
5477
- cur = this[i];
5478
-
5479
- while ( cur ) {
5480
- if ( pos ? pos.index(cur) > -1 : jQuery.find.matchesSelector(cur, selectors) ) {
5481
- ret.push( cur );
5482
- break;
5483
-
5484
- } else {
5485
- cur = cur.parentNode;
5486
- if ( !cur || !cur.ownerDocument || cur === context || cur.nodeType === 11 ) {
5487
- break;
5488
- }
5489
- }
5490
- }
5491
- }
5492
-
5493
- ret = ret.length > 1 ? jQuery.unique( ret ) : ret;
5494
-
5495
- return this.pushStack( ret, "closest", selectors );
5496
- },
5497
-
5498
- // Determine the position of an element within
5499
- // the matched set of elements
5500
- index: function( elem ) {
5501
-
5502
- // No argument, return index in parent
5503
- if ( !elem ) {
5504
- return ( this[0] && this[0].parentNode ) ? this.prevAll().length : -1;
5505
- }
5506
-
5507
- // index in selector
5508
- if ( typeof elem === "string" ) {
5509
- return jQuery.inArray( this[0], jQuery( elem ) );
5510
- }
5511
-
5512
- // Locate the position of the desired element
5513
- return jQuery.inArray(
5514
- // If it receives a jQuery object, the first element is used
5515
- elem.jquery ? elem[0] : elem, this );
5516
- },
5517
-
5518
- add: function( selector, context ) {
5519
- var set = typeof selector === "string" ?
5520
- jQuery( selector, context ) :
5521
- jQuery.makeArray( selector && selector.nodeType ? [ selector ] : selector ),
5522
- all = jQuery.merge( this.get(), set );
5523
-
5524
- return this.pushStack( isDisconnected( set[0] ) || isDisconnected( all[0] ) ?
5525
- all :
5526
- jQuery.unique( all ) );
5527
- },
5528
-
5529
- andSelf: function() {
5530
- return this.add( this.prevObject );
5531
- }
5532
- });
5533
-
5534
- // A painfully simple check to see if an element is disconnected
5535
- // from a document (should be improved, where feasible).
5536
- function isDisconnected( node ) {
5537
- return !node || !node.parentNode || node.parentNode.nodeType === 11;
5538
- }
5539
-
5540
- jQuery.each({
5541
- parent: function( elem ) {
5542
- var parent = elem.parentNode;
5543
- return parent && parent.nodeType !== 11 ? parent : null;
5544
- },
5545
- parents: function( elem ) {
5546
- return jQuery.dir( elem, "parentNode" );
5547
- },
5548
- parentsUntil: function( elem, i, until ) {
5549
- return jQuery.dir( elem, "parentNode", until );
5550
- },
5551
- next: function( elem ) {
5552
- return jQuery.nth( elem, 2, "nextSibling" );
5553
- },
5554
- prev: function( elem ) {
5555
- return jQuery.nth( elem, 2, "previousSibling" );
5556
- },
5557
- nextAll: function( elem ) {
5558
- return jQuery.dir( elem, "nextSibling" );
5559
- },
5560
- prevAll: function( elem ) {
5561
- return jQuery.dir( elem, "previousSibling" );
5562
- },
5563
- nextUntil: function( elem, i, until ) {
5564
- return jQuery.dir( elem, "nextSibling", until );
5565
- },
5566
- prevUntil: function( elem, i, until ) {
5567
- return jQuery.dir( elem, "previousSibling", until );
5568
- },
5569
- siblings: function( elem ) {
5570
- return jQuery.sibling( elem.parentNode.firstChild, elem );
5571
- },
5572
- children: function( elem ) {
5573
- return jQuery.sibling( elem.firstChild );
5574
- },
5575
- contents: function( elem ) {
5576
- return jQuery.nodeName( elem, "iframe" ) ?
5577
- elem.contentDocument || elem.contentWindow.document :
5578
- jQuery.makeArray( elem.childNodes );
5579
- }
5580
- }, function( name, fn ) {
5581
- jQuery.fn[ name ] = function( until, selector ) {
5582
- var ret = jQuery.map( this, fn, until ),
5583
- // The variable 'args' was introduced in
5584
- // https://github.com/jquery/jquery/commit/52a0238
5585
- // to work around a bug in Chrome 10 (Dev) and should be removed when the bug is fixed.
5586
- // http://code.google.com/p/v8/issues/detail?id=1050
5587
- args = slice.call(arguments);
5588
-
5589
- if ( !runtil.test( name ) ) {
5590
- selector = until;
5591
- }
5592
-
5593
- if ( selector && typeof selector === "string" ) {
5594
- ret = jQuery.filter( selector, ret );
5595
- }
5596
-
5597
- ret = this.length > 1 && !guaranteedUnique[ name ] ? jQuery.unique( ret ) : ret;
5598
-
5599
- if ( (this.length > 1 || rmultiselector.test( selector )) && rparentsprev.test( name ) ) {
5600
- ret = ret.reverse();
5601
- }
5602
-
5603
- return this.pushStack( ret, name, args.join(",") );
5604
- };
5605
- });
5606
-
5607
- jQuery.extend({
5608
- filter: function( expr, elems, not ) {
5609
- if ( not ) {
5610
- expr = ":not(" + expr + ")";
5611
- }
5612
-
5613
- return elems.length === 1 ?
5614
- jQuery.find.matchesSelector(elems[0], expr) ? [ elems[0] ] : [] :
5615
- jQuery.find.matches(expr, elems);
5616
- },
5617
-
5618
- dir: function( elem, dir, until ) {
5619
- var matched = [],
5620
- cur = elem[ dir ];
5621
-
5622
- while ( cur && cur.nodeType !== 9 && (until === undefined || cur.nodeType !== 1 || !jQuery( cur ).is( until )) ) {
5623
- if ( cur.nodeType === 1 ) {
5624
- matched.push( cur );
5625
- }
5626
- cur = cur[dir];
5627
- }
5628
- return matched;
5629
- },
5630
-
5631
- nth: function( cur, result, dir, elem ) {
5632
- result = result || 1;
5633
- var num = 0;
5634
-
5635
- for ( ; cur; cur = cur[dir] ) {
5636
- if ( cur.nodeType === 1 && ++num === result ) {
5637
- break;
5638
- }
5639
- }
5640
-
5641
- return cur;
5642
- },
5643
-
5644
- sibling: function( n, elem ) {
5645
- var r = [];
5646
-
5647
- for ( ; n; n = n.nextSibling ) {
5648
- if ( n.nodeType === 1 && n !== elem ) {
5649
- r.push( n );
5650
- }
5651
- }
5652
-
5653
- return r;
5654
- }
5655
- });
5656
-
5657
- // Implement the identical functionality for filter and not
5658
- function winnow( elements, qualifier, keep ) {
5659
-
5660
- // Can't pass null or undefined to indexOf in Firefox 4
5661
- // Set to 0 to skip string check
5662
- qualifier = qualifier || 0;
5663
-
5664
- if ( jQuery.isFunction( qualifier ) ) {
5665
- return jQuery.grep(elements, function( elem, i ) {
5666
- var retVal = !!qualifier.call( elem, i, elem );
5667
- return retVal === keep;
5668
- });
5669
-
5670
- } else if ( qualifier.nodeType ) {
5671
- return jQuery.grep(elements, function( elem, i ) {
5672
- return ( elem === qualifier ) === keep;
5673
- });
5674
-
5675
- } else if ( typeof qualifier === "string" ) {
5676
- var filtered = jQuery.grep(elements, function( elem ) {
5677
- return elem.nodeType === 1;
5678
- });
5679
-
5680
- if ( isSimple.test( qualifier ) ) {
5681
- return jQuery.filter(qualifier, filtered, !keep);
5682
- } else {
5683
- qualifier = jQuery.filter( qualifier, filtered );
5684
- }
5685
- }
5686
-
5687
- return jQuery.grep(elements, function( elem, i ) {
5688
- return ( jQuery.inArray( elem, qualifier ) >= 0 ) === keep;
5689
- });
5690
- }
5691
-
5692
-
5693
-
5694
-
5695
- function createSafeFragment( document ) {
5696
- var list = nodeNames.split( " " ),
5697
- safeFrag = document.createDocumentFragment();
5698
-
5699
- if ( safeFrag.createElement ) {
5700
- while ( list.length ) {
5701
- safeFrag.createElement(
5702
- list.pop()
5703
- );
5704
- }
5705
- }
5706
- return safeFrag;
5707
- }
5708
-
5709
- var nodeNames = "abbr article aside audio canvas datalist details figcaption figure footer " +
5710
- "header hgroup mark meter nav output progress section summary time video",
5711
- rinlinejQuery = / jQuery\d+="(?:\d+|null)"/g,
5712
- rleadingWhitespace = /^\s+/,
5713
- rxhtmlTag = /<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/ig,
5714
- rtagName = /<([\w:]+)/,
5715
- rtbody = /<tbody/i,
5716
- rhtml = /<|&#?\w+;/,
5717
- rnoInnerhtml = /<(?:script|style)/i,
5718
- rnocache = /<(?:script|object|embed|option|style)/i,
5719
- rnoshimcache = new RegExp("<(?:" + nodeNames.replace(" ", "|") + ")", "i"),
5720
- // checked="checked" or checked
5721
- rchecked = /checked\s*(?:[^=]|=\s*.checked.)/i,
5722
- rscriptType = /\/(java|ecma)script/i,
5723
- rcleanScript = /^\s*<!(?:\[CDATA\[|\-\-)/,
5724
- wrapMap = {
5725
- option: [ 1, "<select multiple='multiple'>", "</select>" ],
5726
- legend: [ 1, "<fieldset>", "</fieldset>" ],
5727
- thead: [ 1, "<table>", "</table>" ],
5728
- tr: [ 2, "<table><tbody>", "</tbody></table>" ],
5729
- td: [ 3, "<table><tbody><tr>", "</tr></tbody></table>" ],
5730
- col: [ 2, "<table><tbody></tbody><colgroup>", "</colgroup></table>" ],
5731
- area: [ 1, "<map>", "</map>" ],
5732
- _default: [ 0, "", "" ]
5733
- },
5734
- safeFragment = createSafeFragment( document );
5735
-
5736
- wrapMap.optgroup = wrapMap.option;
5737
- wrapMap.tbody = wrapMap.tfoot = wrapMap.colgroup = wrapMap.caption = wrapMap.thead;
5738
- wrapMap.th = wrapMap.td;
5739
-
5740
- // IE can't serialize <link> and <script> tags normally
5741
- if ( !jQuery.support.htmlSerialize ) {
5742
- wrapMap._default = [ 1, "div<div>", "</div>" ];
5743
- }
5744
-
5745
- jQuery.fn.extend({
5746
- text: function( text ) {
5747
- if ( jQuery.isFunction(text) ) {
5748
- return this.each(function(i) {
5749
- var self = jQuery( this );
5750
-
5751
- self.text( text.call(this, i, self.text()) );
5752
- });
5753
- }
5754
-
5755
- if ( typeof text !== "object" && text !== undefined ) {
5756
- return this.empty().append( (this[0] && this[0].ownerDocument || document).createTextNode( text ) );
5757
- }
5758
-
5759
- return jQuery.text( this );
5760
- },
5761
-
5762
- wrapAll: function( html ) {
5763
- if ( jQuery.isFunction( html ) ) {
5764
- return this.each(function(i) {
5765
- jQuery(this).wrapAll( html.call(this, i) );
5766
- });
5767
- }
5768
-
5769
- if ( this[0] ) {
5770
- // The elements to wrap the target around
5771
- var wrap = jQuery( html, this[0].ownerDocument ).eq(0).clone(true);
5772
-
5773
- if ( this[0].parentNode ) {
5774
- wrap.insertBefore( this[0] );
5775
- }
5776
-
5777
- wrap.map(function() {
5778
- var elem = this;
5779
-
5780
- while ( elem.firstChild && elem.firstChild.nodeType === 1 ) {
5781
- elem = elem.firstChild;
5782
- }
5783
-
5784
- return elem;
5785
- }).append( this );
5786
- }
5787
-
5788
- return this;
5789
- },
5790
-
5791
- wrapInner: function( html ) {
5792
- if ( jQuery.isFunction( html ) ) {
5793
- return this.each(function(i) {
5794
- jQuery(this).wrapInner( html.call(this, i) );
5795
- });
5796
- }
5797
-
5798
- return this.each(function() {
5799
- var self = jQuery( this ),
5800
- contents = self.contents();
5801
-
5802
- if ( contents.length ) {
5803
- contents.wrapAll( html );
5804
-
5805
- } else {
5806
- self.append( html );
5807
- }
5808
- });
5809
- },
5810
-
5811
- wrap: function( html ) {
5812
- return this.each(function() {
5813
- jQuery( this ).wrapAll( html );
5814
- });
5815
- },
5816
-
5817
- unwrap: function() {
5818
- return this.parent().each(function() {
5819
- if ( !jQuery.nodeName( this, "body" ) ) {
5820
- jQuery( this ).replaceWith( this.childNodes );
5821
- }
5822
- }).end();
5823
- },
5824
-
5825
- append: function() {
5826
- return this.domManip(arguments, true, function( elem ) {
5827
- if ( this.nodeType === 1 ) {
5828
- this.appendChild( elem );
5829
- }
5830
- });
5831
- },
5832
-
5833
- prepend: function() {
5834
- return this.domManip(arguments, true, function( elem ) {
5835
- if ( this.nodeType === 1 ) {
5836
- this.insertBefore( elem, this.firstChild );
5837
- }
5838
- });
5839
- },
5840
-
5841
- before: function() {
5842
- if ( this[0] && this[0].parentNode ) {
5843
- return this.domManip(arguments, false, function( elem ) {
5844
- this.parentNode.insertBefore( elem, this );
5845
- });
5846
- } else if ( arguments.length ) {
5847
- var set = jQuery(arguments[0]);
5848
- set.push.apply( set, this.toArray() );
5849
- return this.pushStack( set, "before", arguments );
5850
- }
5851
- },
5852
-
5853
- after: function() {
5854
- if ( this[0] && this[0].parentNode ) {
5855
- return this.domManip(arguments, false, function( elem ) {
5856
- this.parentNode.insertBefore( elem, this.nextSibling );
5857
- });
5858
- } else if ( arguments.length ) {
5859
- var set = this.pushStack( this, "after", arguments );
5860
- set.push.apply( set, jQuery(arguments[0]).toArray() );
5861
- return set;
5862
- }
5863
- },
5864
-
5865
- // keepData is for internal use only--do not document
5866
- remove: function( selector, keepData ) {
5867
- for ( var i = 0, elem; (elem = this[i]) != null; i++ ) {
5868
- if ( !selector || jQuery.filter( selector, [ elem ] ).length ) {
5869
- if ( !keepData && elem.nodeType === 1 ) {
5870
- jQuery.cleanData( elem.getElementsByTagName("*") );
5871
- jQuery.cleanData( [ elem ] );
5872
- }
5873
-
5874
- if ( elem.parentNode ) {
5875
- elem.parentNode.removeChild( elem );
5876
- }
5877
- }
5878
- }
5879
-
5880
- return this;
5881
- },
5882
-
5883
- empty: function() {
5884
- for ( var i = 0, elem; (elem = this[i]) != null; i++ ) {
5885
- // Remove element nodes and prevent memory leaks
5886
- if ( elem.nodeType === 1 ) {
5887
- jQuery.cleanData( elem.getElementsByTagName("*") );
5888
- }
5889
-
5890
- // Remove any remaining nodes
5891
- while ( elem.firstChild ) {
5892
- elem.removeChild( elem.firstChild );
5893
- }
5894
- }
5895
-
5896
- return this;
5897
- },
5898
-
5899
- clone: function( dataAndEvents, deepDataAndEvents ) {
5900
- dataAndEvents = dataAndEvents == null ? false : dataAndEvents;
5901
- deepDataAndEvents = deepDataAndEvents == null ? dataAndEvents : deepDataAndEvents;
5902
-
5903
- return this.map( function () {
5904
- return jQuery.clone( this, dataAndEvents, deepDataAndEvents );
5905
- });
5906
- },
5907
-
5908
- html: function( value ) {
5909
- if ( value === undefined ) {
5910
- return this[0] && this[0].nodeType === 1 ?
5911
- this[0].innerHTML.replace(rinlinejQuery, "") :
5912
- null;
5913
-
5914
- // See if we can take a shortcut and just use innerHTML
5915
- } else if ( typeof value === "string" && !rnoInnerhtml.test( value ) &&
5916
- (jQuery.support.leadingWhitespace || !rleadingWhitespace.test( value )) &&
5917
- !wrapMap[ (rtagName.exec( value ) || ["", ""])[1].toLowerCase() ] ) {
5918
-
5919
- value = value.replace(rxhtmlTag, "<$1></$2>");
5920
-
5921
- try {
5922
- for ( var i = 0, l = this.length; i < l; i++ ) {
5923
- // Remove element nodes and prevent memory leaks
5924
- if ( this[i].nodeType === 1 ) {
5925
- jQuery.cleanData( this[i].getElementsByTagName("*") );
5926
- this[i].innerHTML = value;
5927
- }
5928
- }
5929
-
5930
- // If using innerHTML throws an exception, use the fallback method
5931
- } catch(e) {
5932
- this.empty().append( value );
5933
- }
5934
-
5935
- } else if ( jQuery.isFunction( value ) ) {
5936
- this.each(function(i){
5937
- var self = jQuery( this );
5938
-
5939
- self.html( value.call(this, i, self.html()) );
5940
- });
5941
-
5942
- } else {
5943
- this.empty().append( value );
5944
- }
5945
-
5946
- return this;
5947
- },
5948
-
5949
- replaceWith: function( value ) {
5950
- if ( this[0] && this[0].parentNode ) {
5951
- // Make sure that the elements are removed from the DOM before they are inserted
5952
- // this can help fix replacing a parent with child elements
5953
- if ( jQuery.isFunction( value ) ) {
5954
- return this.each(function(i) {
5955
- var self = jQuery(this), old = self.html();
5956
- self.replaceWith( value.call( this, i, old ) );
5957
- });
5958
- }
5959
-
5960
- if ( typeof value !== "string" ) {
5961
- value = jQuery( value ).detach();
5962
- }
5963
-
5964
- return this.each(function() {
5965
- var next = this.nextSibling,
5966
- parent = this.parentNode;
5967
-
5968
- jQuery( this ).remove();
5969
-
5970
- if ( next ) {
5971
- jQuery(next).before( value );
5972
- } else {
5973
- jQuery(parent).append( value );
5974
- }
5975
- });
5976
- } else {
5977
- return this.length ?
5978
- this.pushStack( jQuery(jQuery.isFunction(value) ? value() : value), "replaceWith", value ) :
5979
- this;
5980
- }
5981
- },
5982
-
5983
- detach: function( selector ) {
5984
- return this.remove( selector, true );
5985
- },
5986
-
5987
- domManip: function( args, table, callback ) {
5988
- var results, first, fragment, parent,
5989
- value = args[0],
5990
- scripts = [];
5991
-
5992
- // We can't cloneNode fragments that contain checked, in WebKit
5993
- if ( !jQuery.support.checkClone && arguments.length === 3 && typeof value === "string" && rchecked.test( value ) ) {
5994
- return this.each(function() {
5995
- jQuery(this).domManip( args, table, callback, true );
5996
- });
5997
- }
5998
-
5999
- if ( jQuery.isFunction(value) ) {
6000
- return this.each(function(i) {
6001
- var self = jQuery(this);
6002
- args[0] = value.call(this, i, table ? self.html() : undefined);
6003
- self.domManip( args, table, callback );
6004
- });
6005
- }
6006
-
6007
- if ( this[0] ) {
6008
- parent = value && value.parentNode;
6009
-
6010
- // If we're in a fragment, just use that instead of building a new one
6011
- if ( jQuery.support.parentNode && parent && parent.nodeType === 11 && parent.childNodes.length === this.length ) {
6012
- results = { fragment: parent };
6013
-
6014
- } else {
6015
- results = jQuery.buildFragment( args, this, scripts );
6016
- }
6017
-
6018
- fragment = results.fragment;
6019
-
6020
- if ( fragment.childNodes.length === 1 ) {
6021
- first = fragment = fragment.firstChild;
6022
- } else {
6023
- first = fragment.firstChild;
6024
- }
6025
-
6026
- if ( first ) {
6027
- table = table && jQuery.nodeName( first, "tr" );
6028
-
6029
- for ( var i = 0, l = this.length, lastIndex = l - 1; i < l; i++ ) {
6030
- callback.call(
6031
- table ?
6032
- root(this[i], first) :
6033
- this[i],
6034
- // Make sure that we do not leak memory by inadvertently discarding
6035
- // the original fragment (which might have attached data) instead of
6036
- // using it; in addition, use the original fragment object for the last
6037
- // item instead of first because it can end up being emptied incorrectly
6038
- // in certain situations (Bug #8070).
6039
- // Fragments from the fragment cache must always be cloned and never used
6040
- // in place.
6041
- results.cacheable || ( l > 1 && i < lastIndex ) ?
6042
- jQuery.clone( fragment, true, true ) :
6043
- fragment
6044
- );
6045
- }
6046
- }
6047
-
6048
- if ( scripts.length ) {
6049
- jQuery.each( scripts, evalScript );
6050
- }
6051
- }
6052
-
6053
- return this;
6054
- }
6055
- });
6056
-
6057
- function root( elem, cur ) {
6058
- return jQuery.nodeName(elem, "table") ?
6059
- (elem.getElementsByTagName("tbody")[0] ||
6060
- elem.appendChild(elem.ownerDocument.createElement("tbody"))) :
6061
- elem;
6062
- }
6063
-
6064
- function cloneCopyEvent( src, dest ) {
6065
-
6066
- if ( dest.nodeType !== 1 || !jQuery.hasData( src ) ) {
6067
- return;
6068
- }
6069
-
6070
- var type, i, l,
6071
- oldData = jQuery._data( src ),
6072
- curData = jQuery._data( dest, oldData ),
6073
- events = oldData.events;
6074
-
6075
- if ( events ) {
6076
- delete curData.handle;
6077
- curData.events = {};
6078
-
6079
- for ( type in events ) {
6080
- for ( i = 0, l = events[ type ].length; i < l; i++ ) {
6081
- jQuery.event.add( dest, type + ( events[ type ][ i ].namespace ? "." : "" ) + events[ type ][ i ].namespace, events[ type ][ i ], events[ type ][ i ].data );
6082
- }
6083
- }
6084
- }
6085
-
6086
- // make the cloned public data object a copy from the original
6087
- if ( curData.data ) {
6088
- curData.data = jQuery.extend( {}, curData.data );
6089
- }
6090
- }
6091
-
6092
- function cloneFixAttributes( src, dest ) {
6093
- var nodeName;
6094
-
6095
- // We do not need to do anything for non-Elements
6096
- if ( dest.nodeType !== 1 ) {
6097
- return;
6098
- }
6099
-
6100
- // clearAttributes removes the attributes, which we don't want,
6101
- // but also removes the attachEvent events, which we *do* want
6102
- if ( dest.clearAttributes ) {
6103
- dest.clearAttributes();
6104
- }
6105
-
6106
- // mergeAttributes, in contrast, only merges back on the
6107
- // original attributes, not the events
6108
- if ( dest.mergeAttributes ) {
6109
- dest.mergeAttributes( src );
6110
- }
6111
-
6112
- nodeName = dest.nodeName.toLowerCase();
6113
-
6114
- // IE6-8 fail to clone children inside object elements that use
6115
- // the proprietary classid attribute value (rather than the type
6116
- // attribute) to identify the type of content to display
6117
- if ( nodeName === "object" ) {
6118
- dest.outerHTML = src.outerHTML;
6119
-
6120
- } else if ( nodeName === "input" && (src.type === "checkbox" || src.type === "radio") ) {
6121
- // IE6-8 fails to persist the checked state of a cloned checkbox
6122
- // or radio button. Worse, IE6-7 fail to give the cloned element
6123
- // a checked appearance if the defaultChecked value isn't also set
6124
- if ( src.checked ) {
6125
- dest.defaultChecked = dest.checked = src.checked;
6126
- }
6127
-
6128
- // IE6-7 get confused and end up setting the value of a cloned
6129
- // checkbox/radio button to an empty string instead of "on"
6130
- if ( dest.value !== src.value ) {
6131
- dest.value = src.value;
6132
- }
6133
-
6134
- // IE6-8 fails to return the selected option to the default selected
6135
- // state when cloning options
6136
- } else if ( nodeName === "option" ) {
6137
- dest.selected = src.defaultSelected;
6138
-
6139
- // IE6-8 fails to set the defaultValue to the correct value when
6140
- // cloning other types of input fields
6141
- } else if ( nodeName === "input" || nodeName === "textarea" ) {
6142
- dest.defaultValue = src.defaultValue;
6143
- }
6144
-
6145
- // Event data gets referenced instead of copied if the expando
6146
- // gets copied too
6147
- dest.removeAttribute( jQuery.expando );
6148
- }
6149
-
6150
- jQuery.buildFragment = function( args, nodes, scripts ) {
6151
- var fragment, cacheable, cacheresults, doc,
6152
- first = args[ 0 ];
6153
-
6154
- // nodes may contain either an explicit document object,
6155
- // a jQuery collection or context object.
6156
- // If nodes[0] contains a valid object to assign to doc
6157
- if ( nodes && nodes[0] ) {
6158
- doc = nodes[0].ownerDocument || nodes[0];
6159
- }
6160
-
6161
- // Ensure that an attr object doesn't incorrectly stand in as a document object
6162
- // Chrome and Firefox seem to allow this to occur and will throw exception
6163
- // Fixes #8950
6164
- if ( !doc.createDocumentFragment ) {
6165
- doc = document;
6166
- }
6167
-
6168
- // Only cache "small" (1/2 KB) HTML strings that are associated with the main document
6169
- // Cloning options loses the selected state, so don't cache them
6170
- // IE 6 doesn't like it when you put <object> or <embed> elements in a fragment
6171
- // Also, WebKit does not clone 'checked' attributes on cloneNode, so don't cache
6172
- // Lastly, IE6,7,8 will not correctly reuse cached fragments that were created from unknown elems #10501
6173
- if ( args.length === 1 && typeof first === "string" && first.length < 512 && doc === document &&
6174
- first.charAt(0) === "<" && !rnocache.test( first ) &&
6175
- (jQuery.support.checkClone || !rchecked.test( first )) &&
6176
- (!jQuery.support.unknownElems && rnoshimcache.test( first )) ) {
6177
-
6178
- cacheable = true;
6179
-
6180
- cacheresults = jQuery.fragments[ first ];
6181
- if ( cacheresults && cacheresults !== 1 ) {
6182
- fragment = cacheresults;
6183
- }
6184
- }
6185
-
6186
- if ( !fragment ) {
6187
- fragment = doc.createDocumentFragment();
6188
- jQuery.clean( args, doc, fragment, scripts );
6189
- }
6190
-
6191
- if ( cacheable ) {
6192
- jQuery.fragments[ first ] = cacheresults ? fragment : 1;
6193
- }
6194
-
6195
- return { fragment: fragment, cacheable: cacheable };
6196
- };
6197
-
6198
- jQuery.fragments = {};
6199
-
6200
- jQuery.each({
6201
- appendTo: "append",
6202
- prependTo: "prepend",
6203
- insertBefore: "before",
6204
- insertAfter: "after",
6205
- replaceAll: "replaceWith"
6206
- }, function( name, original ) {
6207
- jQuery.fn[ name ] = function( selector ) {
6208
- var ret = [],
6209
- insert = jQuery( selector ),
6210
- parent = this.length === 1 && this[0].parentNode;
6211
-
6212
- if ( parent && parent.nodeType === 11 && parent.childNodes.length === 1 && insert.length === 1 ) {
6213
- insert[ original ]( this[0] );
6214
- return this;
6215
-
6216
- } else {
6217
- for ( var i = 0, l = insert.length; i < l; i++ ) {
6218
- var elems = ( i > 0 ? this.clone(true) : this ).get();
6219
- jQuery( insert[i] )[ original ]( elems );
6220
- ret = ret.concat( elems );
6221
- }
6222
-
6223
- return this.pushStack( ret, name, insert.selector );
6224
- }
6225
- };
6226
- });
6227
-
6228
- function getAll( elem ) {
6229
- if ( typeof elem.getElementsByTagName !== "undefined" ) {
6230
- return elem.getElementsByTagName( "*" );
6231
-
6232
- } else if ( typeof elem.querySelectorAll !== "undefined" ) {
6233
- return elem.querySelectorAll( "*" );
6234
-
6235
- } else {
6236
- return [];
6237
- }
6238
- }
6239
-
6240
- // Used in clean, fixes the defaultChecked property
6241
- function fixDefaultChecked( elem ) {
6242
- if ( elem.type === "checkbox" || elem.type === "radio" ) {
6243
- elem.defaultChecked = elem.checked;
6244
- }
6245
- }
6246
- // Finds all inputs and passes them to fixDefaultChecked
6247
- function findInputs( elem ) {
6248
- var nodeName = ( elem.nodeName || "" ).toLowerCase();
6249
- if ( nodeName === "input" ) {
6250
- fixDefaultChecked( elem );
6251
- // Skip scripts, get other children
6252
- } else if ( nodeName !== "script" && typeof elem.getElementsByTagName !== "undefined" ) {
6253
- jQuery.grep( elem.getElementsByTagName("input"), fixDefaultChecked );
6254
- }
6255
- }
6256
-
6257
- jQuery.extend({
6258
- clone: function( elem, dataAndEvents, deepDataAndEvents ) {
6259
- var clone = elem.cloneNode(true),
6260
- srcElements,
6261
- destElements,
6262
- i;
6263
-
6264
- if ( (!jQuery.support.noCloneEvent || !jQuery.support.noCloneChecked) &&
6265
- (elem.nodeType === 1 || elem.nodeType === 11) && !jQuery.isXMLDoc(elem) ) {
6266
- // IE copies events bound via attachEvent when using cloneNode.
6267
- // Calling detachEvent on the clone will also remove the events
6268
- // from the original. In order to get around this, we use some
6269
- // proprietary methods to clear the events. Thanks to MooTools
6270
- // guys for this hotness.
6271
-
6272
- cloneFixAttributes( elem, clone );
6273
-
6274
- // Using Sizzle here is crazy slow, so we use getElementsByTagName
6275
- // instead
6276
- srcElements = getAll( elem );
6277
- destElements = getAll( clone );
6278
-
6279
- // Weird iteration because IE will replace the length property
6280
- // with an element if you are cloning the body and one of the
6281
- // elements on the page has a name or id of "length"
6282
- for ( i = 0; srcElements[i]; ++i ) {
6283
- // Ensure that the destination node is not null; Fixes #9587
6284
- if ( destElements[i] ) {
6285
- cloneFixAttributes( srcElements[i], destElements[i] );
6286
- }
6287
- }
6288
- }
6289
-
6290
- // Copy the events from the original to the clone
6291
- if ( dataAndEvents ) {
6292
- cloneCopyEvent( elem, clone );
6293
-
6294
- if ( deepDataAndEvents ) {
6295
- srcElements = getAll( elem );
6296
- destElements = getAll( clone );
6297
-
6298
- for ( i = 0; srcElements[i]; ++i ) {
6299
- cloneCopyEvent( srcElements[i], destElements[i] );
6300
- }
6301
- }
6302
- }
6303
-
6304
- srcElements = destElements = null;
6305
-
6306
- // Return the cloned set
6307
- return clone;
6308
- },
6309
-
6310
- clean: function( elems, context, fragment, scripts ) {
6311
- var checkScriptType;
6312
-
6313
- context = context || document;
6314
-
6315
- // !context.createElement fails in IE with an error but returns typeof 'object'
6316
- if ( typeof context.createElement === "undefined" ) {
6317
- context = context.ownerDocument || context[0] && context[0].ownerDocument || document;
6318
- }
6319
-
6320
- var ret = [], j;
6321
-
6322
- for ( var i = 0, elem; (elem = elems[i]) != null; i++ ) {
6323
- if ( typeof elem === "number" ) {
6324
- elem += "";
6325
- }
6326
-
6327
- if ( !elem ) {
6328
- continue;
6329
- }
6330
-
6331
- // Convert html string into DOM nodes
6332
- if ( typeof elem === "string" ) {
6333
- if ( !rhtml.test( elem ) ) {
6334
- elem = context.createTextNode( elem );
6335
- } else {
6336
- // Fix "XHTML"-style tags in all browsers
6337
- elem = elem.replace(rxhtmlTag, "<$1></$2>");
6338
-
6339
- // Trim whitespace, otherwise indexOf won't work as expected
6340
- var tag = ( rtagName.exec( elem ) || ["", ""] )[1].toLowerCase(),
6341
- wrap = wrapMap[ tag ] || wrapMap._default,
6342
- depth = wrap[0],
6343
- div = context.createElement("div");
6344
-
6345
- // Append wrapper element to unknown element safe doc fragment
6346
- if ( context === document ) {
6347
- // Use the fragment we've already created for this document
6348
- safeFragment.appendChild( div );
6349
- } else {
6350
- // Use a fragment created with the owner document
6351
- createSafeFragment( context ).appendChild( div );
6352
- }
6353
-
6354
- // Go to html and back, then peel off extra wrappers
6355
- div.innerHTML = wrap[1] + elem + wrap[2];
6356
-
6357
- // Move to the right depth
6358
- while ( depth-- ) {
6359
- div = div.lastChild;
6360
- }
6361
-
6362
- // Remove IE's autoinserted <tbody> from table fragments
6363
- if ( !jQuery.support.tbody ) {
6364
-
6365
- // String was a <table>, *may* have spurious <tbody>
6366
- var hasBody = rtbody.test(elem),
6367
- tbody = tag === "table" && !hasBody ?
6368
- div.firstChild && div.firstChild.childNodes :
6369
-
6370
- // String was a bare <thead> or <tfoot>
6371
- wrap[1] === "<table>" && !hasBody ?
6372
- div.childNodes :
6373
- [];
6374
-
6375
- for ( j = tbody.length - 1; j >= 0 ; --j ) {
6376
- if ( jQuery.nodeName( tbody[ j ], "tbody" ) && !tbody[ j ].childNodes.length ) {
6377
- tbody[ j ].parentNode.removeChild( tbody[ j ] );
6378
- }
6379
- }
6380
- }
6381
-
6382
- // IE completely kills leading whitespace when innerHTML is used
6383
- if ( !jQuery.support.leadingWhitespace && rleadingWhitespace.test( elem ) ) {
6384
- div.insertBefore( context.createTextNode( rleadingWhitespace.exec(elem)[0] ), div.firstChild );
6385
- }
6386
-
6387
- elem = div.childNodes;
6388
- }
6389
- }
6390
-
6391
- // Resets defaultChecked for any radios and checkboxes
6392
- // about to be appended to the DOM in IE 6/7 (#8060)
6393
- var len;
6394
- if ( !jQuery.support.appendChecked ) {
6395
- if ( elem[0] && typeof (len = elem.length) === "number" ) {
6396
- for ( j = 0; j < len; j++ ) {
6397
- findInputs( elem[j] );
6398
- }
6399
- } else {
6400
- findInputs( elem );
6401
- }
6402
- }
6403
-
6404
- if ( elem.nodeType ) {
6405
- ret.push( elem );
6406
- } else {
6407
- ret = jQuery.merge( ret, elem );
6408
- }
6409
- }
6410
-
6411
- if ( fragment ) {
6412
- checkScriptType = function( elem ) {
6413
- return !elem.type || rscriptType.test( elem.type );
6414
- };
6415
- for ( i = 0; ret[i]; i++ ) {
6416
- if ( scripts && jQuery.nodeName( ret[i], "script" ) && (!ret[i].type || ret[i].type.toLowerCase() === "text/javascript") ) {
6417
- scripts.push( ret[i].parentNode ? ret[i].parentNode.removeChild( ret[i] ) : ret[i] );
6418
-
6419
- } else {
6420
- if ( ret[i].nodeType === 1 ) {
6421
- var jsTags = jQuery.grep( ret[i].getElementsByTagName( "script" ), checkScriptType );
6422
-
6423
- ret.splice.apply( ret, [i + 1, 0].concat( jsTags ) );
6424
- }
6425
- fragment.appendChild( ret[i] );
6426
- }
6427
- }
6428
- }
6429
-
6430
- return ret;
6431
- },
6432
-
6433
- cleanData: function( elems ) {
6434
- var data, id,
6435
- cache = jQuery.cache,
6436
- special = jQuery.event.special,
6437
- deleteExpando = jQuery.support.deleteExpando;
6438
-
6439
- for ( var i = 0, elem; (elem = elems[i]) != null; i++ ) {
6440
- if ( elem.nodeName && jQuery.noData[elem.nodeName.toLowerCase()] ) {
6441
- continue;
6442
- }
6443
-
6444
- id = elem[ jQuery.expando ];
6445
-
6446
- if ( id ) {
6447
- data = cache[ id ];
6448
-
6449
- if ( data && data.events ) {
6450
- for ( var type in data.events ) {
6451
- if ( special[ type ] ) {
6452
- jQuery.event.remove( elem, type );
6453
-
6454
- // This is a shortcut to avoid jQuery.event.remove's overhead
6455
- } else {
6456
- jQuery.removeEvent( elem, type, data.handle );
6457
- }
6458
- }
6459
-
6460
- // Null the DOM reference to avoid IE6/7/8 leak (#7054)
6461
- if ( data.handle ) {
6462
- data.handle.elem = null;
6463
- }
6464
- }
6465
-
6466
- if ( deleteExpando ) {
6467
- delete elem[ jQuery.expando ];
6468
-
6469
- } else if ( elem.removeAttribute ) {
6470
- elem.removeAttribute( jQuery.expando );
6471
- }
6472
-
6473
- delete cache[ id ];
6474
- }
6475
- }
6476
- }
6477
- });
6478
-
6479
- function evalScript( i, elem ) {
6480
- if ( elem.src ) {
6481
- jQuery.ajax({
6482
- url: elem.src,
6483
- async: false,
6484
- dataType: "script"
6485
- });
6486
- } else {
6487
- jQuery.globalEval( ( elem.text || elem.textContent || elem.innerHTML || "" ).replace( rcleanScript, "/*$0*/" ) );
6488
- }
6489
-
6490
- if ( elem.parentNode ) {
6491
- elem.parentNode.removeChild( elem );
6492
- }
6493
- }
6494
-
6495
-
6496
-
6497
-
6498
- var ralpha = /alpha\([^)]*\)/i,
6499
- ropacity = /opacity=([^)]*)/,
6500
- // fixed for IE9, see #8346
6501
- rupper = /([A-Z]|^ms)/g,
6502
- rnumpx = /^-?\d+(?:px)?$/i,
6503
- rnum = /^-?\d/,
6504
- rrelNum = /^([\-+])=([\-+.\de]+)/,
6505
-
6506
- cssShow = { position: "absolute", visibility: "hidden", display: "block" },
6507
- cssWidth = [ "Left", "Right" ],
6508
- cssHeight = [ "Top", "Bottom" ],
6509
- curCSS,
6510
-
6511
- getComputedStyle,
6512
- currentStyle;
6513
-
6514
- jQuery.fn.css = function( name, value ) {
6515
- // Setting 'undefined' is a no-op
6516
- if ( arguments.length === 2 && value === undefined ) {
6517
- return this;
6518
- }
6519
-
6520
- return jQuery.access( this, name, value, true, function( elem, name, value ) {
6521
- return value !== undefined ?
6522
- jQuery.style( elem, name, value ) :
6523
- jQuery.css( elem, name );
6524
- });
6525
- };
6526
-
6527
- jQuery.extend({
6528
- // Add in style property hooks for overriding the default
6529
- // behavior of getting and setting a style property
6530
- cssHooks: {
6531
- opacity: {
6532
- get: function( elem, computed ) {
6533
- if ( computed ) {
6534
- // We should always get a number back from opacity
6535
- var ret = curCSS( elem, "opacity", "opacity" );
6536
- return ret === "" ? "1" : ret;
6537
-
6538
- } else {
6539
- return elem.style.opacity;
6540
- }
6541
- }
6542
- }
6543
- },
6544
-
6545
- // Exclude the following css properties to add px
6546
- cssNumber: {
6547
- "fillOpacity": true,
6548
- "fontWeight": true,
6549
- "lineHeight": true,
6550
- "opacity": true,
6551
- "orphans": true,
6552
- "widows": true,
6553
- "zIndex": true,
6554
- "zoom": true
6555
- },
6556
-
6557
- // Add in properties whose names you wish to fix before
6558
- // setting or getting the value
6559
- cssProps: {
6560
- // normalize float css property
6561
- "float": jQuery.support.cssFloat ? "cssFloat" : "styleFloat"
6562
- },
6563
-
6564
- // Get and set the style property on a DOM Node
6565
- style: function( elem, name, value, extra ) {
6566
- // Don't set styles on text and comment nodes
6567
- if ( !elem || elem.nodeType === 3 || elem.nodeType === 8 || !elem.style ) {
6568
- return;
6569
- }
6570
-
6571
- // Make sure that we're working with the right name
6572
- var ret, type, origName = jQuery.camelCase( name ),
6573
- style = elem.style, hooks = jQuery.cssHooks[ origName ];
6574
-
6575
- name = jQuery.cssProps[ origName ] || origName;
6576
-
6577
- // Check if we're setting a value
6578
- if ( value !== undefined ) {
6579
- type = typeof value;
6580
-
6581
- // convert relative number strings (+= or -=) to relative numbers. #7345
6582
- if ( type === "string" && (ret = rrelNum.exec( value )) ) {
6583
- value = ( +( ret[1] + 1) * +ret[2] ) + parseFloat( jQuery.css( elem, name ) );
6584
- // Fixes bug #9237
6585
- type = "number";
6586
- }
6587
-
6588
- // Make sure that NaN and null values aren't set. See: #7116
6589
- if ( value == null || type === "number" && isNaN( value ) ) {
6590
- return;
6591
- }
6592
-
6593
- // If a number was passed in, add 'px' to the (except for certain CSS properties)
6594
- if ( type === "number" && !jQuery.cssNumber[ origName ] ) {
6595
- value += "px";
6596
- }
6597
-
6598
- // If a hook was provided, use that value, otherwise just set the specified value
6599
- if ( !hooks || !("set" in hooks) || (value = hooks.set( elem, value )) !== undefined ) {
6600
- // Wrapped to prevent IE from throwing errors when 'invalid' values are provided
6601
- // Fixes bug #5509
6602
- try {
6603
- style[ name ] = value;
6604
- } catch(e) {}
6605
- }
6606
-
6607
- } else {
6608
- // If a hook was provided get the non-computed value from there
6609
- if ( hooks && "get" in hooks && (ret = hooks.get( elem, false, extra )) !== undefined ) {
6610
- return ret;
6611
- }
6612
-
6613
- // Otherwise just get the value from the style object
6614
- return style[ name ];
6615
- }
6616
- },
6617
-
6618
- css: function( elem, name, extra ) {
6619
- var ret, hooks;
6620
-
6621
- // Make sure that we're working with the right name
6622
- name = jQuery.camelCase( name );
6623
- hooks = jQuery.cssHooks[ name ];
6624
- name = jQuery.cssProps[ name ] || name;
6625
-
6626
- // cssFloat needs a special treatment
6627
- if ( name === "cssFloat" ) {
6628
- name = "float";
6629
- }
6630
-
6631
- // If a hook was provided get the computed value from there
6632
- if ( hooks && "get" in hooks && (ret = hooks.get( elem, true, extra )) !== undefined ) {
6633
- return ret;
6634
-
6635
- // Otherwise, if a way to get the computed value exists, use that
6636
- } else if ( curCSS ) {
6637
- return curCSS( elem, name );
6638
- }
6639
- },
6640
-
6641
- // A method for quickly swapping in/out CSS properties to get correct calculations
6642
- swap: function( elem, options, callback ) {
6643
- var old = {};
6644
-
6645
- // Remember the old values, and insert the new ones
6646
- for ( var name in options ) {
6647
- old[ name ] = elem.style[ name ];
6648
- elem.style[ name ] = options[ name ];
6649
- }
6650
-
6651
- callback.call( elem );
6652
-
6653
- // Revert the old values
6654
- for ( name in options ) {
6655
- elem.style[ name ] = old[ name ];
6656
- }
6657
- }
6658
- });
6659
-
6660
- // DEPRECATED, Use jQuery.css() instead
6661
- jQuery.curCSS = jQuery.css;
6662
-
6663
- jQuery.each(["height", "width"], function( i, name ) {
6664
- jQuery.cssHooks[ name ] = {
6665
- get: function( elem, computed, extra ) {
6666
- var val;
6667
-
6668
- if ( computed ) {
6669
- if ( elem.offsetWidth !== 0 ) {
6670
- return getWH( elem, name, extra );
6671
- } else {
6672
- jQuery.swap( elem, cssShow, function() {
6673
- val = getWH( elem, name, extra );
6674
- });
6675
- }
6676
-
6677
- return val;
6678
- }
6679
- },
6680
-
6681
- set: function( elem, value ) {
6682
- if ( rnumpx.test( value ) ) {
6683
- // ignore negative width and height values #1599
6684
- value = parseFloat( value );
6685
-
6686
- if ( value >= 0 ) {
6687
- return value + "px";
6688
- }
6689
-
6690
- } else {
6691
- return value;
6692
- }
6693
- }
6694
- };
6695
- });
6696
-
6697
- if ( !jQuery.support.opacity ) {
6698
- jQuery.cssHooks.opacity = {
6699
- get: function( elem, computed ) {
6700
- // IE uses filters for opacity
6701
- return ropacity.test( (computed && elem.currentStyle ? elem.currentStyle.filter : elem.style.filter) || "" ) ?
6702
- ( parseFloat( RegExp.$1 ) / 100 ) + "" :
6703
- computed ? "1" : "";
6704
- },
6705
-
6706
- set: function( elem, value ) {
6707
- var style = elem.style,
6708
- currentStyle = elem.currentStyle,
6709
- opacity = jQuery.isNumeric( value ) ? "alpha(opacity=" + value * 100 + ")" : "",
6710
- filter = currentStyle && currentStyle.filter || style.filter || "";
6711
-
6712
- // IE has trouble with opacity if it does not have layout
6713
- // Force it by setting the zoom level
6714
- style.zoom = 1;
6715
-
6716
- // if setting opacity to 1, and no other filters exist - attempt to remove filter attribute #6652
6717
- if ( value >= 1 && jQuery.trim( filter.replace( ralpha, "" ) ) === "" ) {
6718
-
6719
- // Setting style.filter to null, "" & " " still leave "filter:" in the cssText
6720
- // if "filter:" is present at all, clearType is disabled, we want to avoid this
6721
- // style.removeAttribute is IE Only, but so apparently is this code path...
6722
- style.removeAttribute( "filter" );
6723
-
6724
- // if there there is no filter style applied in a css rule, we are done
6725
- if ( currentStyle && !currentStyle.filter ) {
6726
- return;
6727
- }
6728
- }
6729
-
6730
- // otherwise, set new filter values
6731
- style.filter = ralpha.test( filter ) ?
6732
- filter.replace( ralpha, opacity ) :
6733
- filter + " " + opacity;
6734
- }
6735
- };
6736
- }
6737
-
6738
- jQuery(function() {
6739
- // This hook cannot be added until DOM ready because the support test
6740
- // for it is not run until after DOM ready
6741
- if ( !jQuery.support.reliableMarginRight ) {
6742
- jQuery.cssHooks.marginRight = {
6743
- get: function( elem, computed ) {
6744
- // WebKit Bug 13343 - getComputedStyle returns wrong value for margin-right
6745
- // Work around by temporarily setting element display to inline-block
6746
- var ret;
6747
- jQuery.swap( elem, { "display": "inline-block" }, function() {
6748
- if ( computed ) {
6749
- ret = curCSS( elem, "margin-right", "marginRight" );
6750
- } else {
6751
- ret = elem.style.marginRight;
6752
- }
6753
- });
6754
- return ret;
6755
- }
6756
- };
6757
- }
6758
- });
6759
-
6760
- if ( document.defaultView && document.defaultView.getComputedStyle ) {
6761
- getComputedStyle = function( elem, name ) {
6762
- var ret, defaultView, computedStyle;
6763
-
6764
- name = name.replace( rupper, "-$1" ).toLowerCase();
6765
-
6766
- if ( !(defaultView = elem.ownerDocument.defaultView) ) {
6767
- return undefined;
6768
- }
6769
-
6770
- if ( (computedStyle = defaultView.getComputedStyle( elem, null )) ) {
6771
- ret = computedStyle.getPropertyValue( name );
6772
- if ( ret === "" && !jQuery.contains( elem.ownerDocument.documentElement, elem ) ) {
6773
- ret = jQuery.style( elem, name );
6774
- }
6775
- }
6776
-
6777
- return ret;
6778
- };
6779
- }
6780
-
6781
- if ( document.documentElement.currentStyle ) {
6782
- currentStyle = function( elem, name ) {
6783
- var left, rsLeft, uncomputed,
6784
- ret = elem.currentStyle && elem.currentStyle[ name ],
6785
- style = elem.style;
6786
-
6787
- // Avoid setting ret to empty string here
6788
- // so we don't default to auto
6789
- if ( ret === null && style && (uncomputed = style[ name ]) ) {
6790
- ret = uncomputed;
6791
- }
6792
-
6793
- // From the awesome hack by Dean Edwards
6794
- // http://erik.eae.net/archives/2007/07/27/18.54.15/#comment-102291
6795
-
6796
- // If we're not dealing with a regular pixel number
6797
- // but a number that has a weird ending, we need to convert it to pixels
6798
- if ( !rnumpx.test( ret ) && rnum.test( ret ) ) {
6799
-
6800
- // Remember the original values
6801
- left = style.left;
6802
- rsLeft = elem.runtimeStyle && elem.runtimeStyle.left;
6803
-
6804
- // Put in the new values to get a computed value out
6805
- if ( rsLeft ) {
6806
- elem.runtimeStyle.left = elem.currentStyle.left;
6807
- }
6808
- style.left = name === "fontSize" ? "1em" : ( ret || 0 );
6809
- ret = style.pixelLeft + "px";
6810
-
6811
- // Revert the changed values
6812
- style.left = left;
6813
- if ( rsLeft ) {
6814
- elem.runtimeStyle.left = rsLeft;
6815
- }
6816
- }
6817
-
6818
- return ret === "" ? "auto" : ret;
6819
- };
6820
- }
6821
-
6822
- curCSS = getComputedStyle || currentStyle;
6823
-
6824
- function getWH( elem, name, extra ) {
6825
-
6826
- // Start with offset property
6827
- var val = name === "width" ? elem.offsetWidth : elem.offsetHeight,
6828
- which = name === "width" ? cssWidth : cssHeight;
6829
-
6830
- if ( val > 0 ) {
6831
- if ( extra !== "border" ) {
6832
- jQuery.each( which, function() {
6833
- if ( !extra ) {
6834
- val -= parseFloat( jQuery.css( elem, "padding" + this ) ) || 0;
6835
- }
6836
- if ( extra === "margin" ) {
6837
- val += parseFloat( jQuery.css( elem, extra + this ) ) || 0;
6838
- } else {
6839
- val -= parseFloat( jQuery.css( elem, "border" + this + "Width" ) ) || 0;
6840
- }
6841
- });
6842
- }
6843
-
6844
- return val + "px";
6845
- }
6846
-
6847
- // Fall back to computed then uncomputed css if necessary
6848
- val = curCSS( elem, name, name );
6849
- if ( val < 0 || val == null ) {
6850
- val = elem.style[ name ] || 0;
6851
- }
6852
- // Normalize "", auto, and prepare for extra
6853
- val = parseFloat( val ) || 0;
6854
-
6855
- // Add padding, border, margin
6856
- if ( extra ) {
6857
- jQuery.each( which, function() {
6858
- val += parseFloat( jQuery.css( elem, "padding" + this ) ) || 0;
6859
- if ( extra !== "padding" ) {
6860
- val += parseFloat( jQuery.css( elem, "border" + this + "Width" ) ) || 0;
6861
- }
6862
- if ( extra === "margin" ) {
6863
- val += parseFloat( jQuery.css( elem, extra + this ) ) || 0;
6864
- }
6865
- });
6866
- }
6867
-
6868
- return val + "px";
6869
- }
6870
-
6871
- if ( jQuery.expr && jQuery.expr.filters ) {
6872
- jQuery.expr.filters.hidden = function( elem ) {
6873
- var width = elem.offsetWidth,
6874
- height = elem.offsetHeight;
6875
-
6876
- return ( width === 0 && height === 0 ) || (!jQuery.support.reliableHiddenOffsets && ((elem.style && elem.style.display) || jQuery.css( elem, "display" )) === "none");
6877
- };
6878
-
6879
- jQuery.expr.filters.visible = function( elem ) {
6880
- return !jQuery.expr.filters.hidden( elem );
6881
- };
6882
- }
6883
-
6884
-
6885
-
6886
-
6887
- var r20 = /%20/g,
6888
- rbracket = /\[\]$/,
6889
- rCRLF = /\r?\n/g,
6890
- rhash = /#.*$/,
6891
- rheaders = /^(.*?):[ \t]*([^\r\n]*)\r?$/mg, // IE leaves an \r character at EOL
6892
- rinput = /^(?:color|date|datetime|datetime-local|email|hidden|month|number|password|range|search|tel|text|time|url|week)$/i,
6893
- // #7653, #8125, #8152: local protocol detection
6894
- rlocalProtocol = /^(?:about|app|app\-storage|.+\-extension|file|res|widget):$/,
6895
- rnoContent = /^(?:GET|HEAD)$/,
6896
- rprotocol = /^\/\//,
6897
- rquery = /\?/,
6898
- rscript = /<script\b[^<]*(?:(?!<\/script>)<[^<]*)*<\/script>/gi,
6899
- rselectTextarea = /^(?:select|textarea)/i,
6900
- rspacesAjax = /\s+/,
6901
- rts = /([?&])_=[^&]*/,
6902
- rurl = /^([\w\+\.\-]+:)(?:\/\/([^\/?#:]*)(?::(\d+))?)?/,
6903
-
6904
- // Keep a copy of the old load method
6905
- _load = jQuery.fn.load,
6906
-
6907
- /* Prefilters
6908
- * 1) They are useful to introduce custom dataTypes (see ajax/jsonp.js for an example)
6909
- * 2) These are called:
6910
- * - BEFORE asking for a transport
6911
- * - AFTER param serialization (s.data is a string if s.processData is true)
6912
- * 3) key is the dataType
6913
- * 4) the catchall symbol "*" can be used
6914
- * 5) execution will start with transport dataType and THEN continue down to "*" if needed
6915
- */
6916
- prefilters = {},
6917
-
6918
- /* Transports bindings
6919
- * 1) key is the dataType
6920
- * 2) the catchall symbol "*" can be used
6921
- * 3) selection will start with transport dataType and THEN go to "*" if needed
6922
- */
6923
- transports = {},
6924
-
6925
- // Document location
6926
- ajaxLocation,
6927
-
6928
- // Document location segments
6929
- ajaxLocParts,
6930
-
6931
- // Avoid comment-prolog char sequence (#10098); must appease lint and evade compression
6932
- allTypes = ["*/"] + ["*"];
6933
-
6934
- // #8138, IE may throw an exception when accessing
6935
- // a field from window.location if document.domain has been set
6936
- try {
6937
- ajaxLocation = location.href;
6938
- } catch( e ) {
6939
- // Use the href attribute of an A element
6940
- // since IE will modify it given document.location
6941
- ajaxLocation = document.createElement( "a" );
6942
- ajaxLocation.href = "";
6943
- ajaxLocation = ajaxLocation.href;
6944
- }
6945
-
6946
- // Segment location into parts
6947
- ajaxLocParts = rurl.exec( ajaxLocation.toLowerCase() ) || [];
6948
-
6949
- // Base "constructor" for jQuery.ajaxPrefilter and jQuery.ajaxTransport
6950
- function addToPrefiltersOrTransports( structure ) {
6951
-
6952
- // dataTypeExpression is optional and defaults to "*"
6953
- return function( dataTypeExpression, func ) {
6954
-
6955
- if ( typeof dataTypeExpression !== "string" ) {
6956
- func = dataTypeExpression;
6957
- dataTypeExpression = "*";
6958
- }
6959
-
6960
- if ( jQuery.isFunction( func ) ) {
6961
- var dataTypes = dataTypeExpression.toLowerCase().split( rspacesAjax ),
6962
- i = 0,
6963
- length = dataTypes.length,
6964
- dataType,
6965
- list,
6966
- placeBefore;
6967
-
6968
- // For each dataType in the dataTypeExpression
6969
- for ( ; i < length; i++ ) {
6970
- dataType = dataTypes[ i ];
6971
- // We control if we're asked to add before
6972
- // any existing element
6973
- placeBefore = /^\+/.test( dataType );
6974
- if ( placeBefore ) {
6975
- dataType = dataType.substr( 1 ) || "*";
6976
- }
6977
- list = structure[ dataType ] = structure[ dataType ] || [];
6978
- // then we add to the structure accordingly
6979
- list[ placeBefore ? "unshift" : "push" ]( func );
6980
- }
6981
- }
6982
- };
6983
- }
6984
-
6985
- // Base inspection function for prefilters and transports
6986
- function inspectPrefiltersOrTransports( structure, options, originalOptions, jqXHR,
6987
- dataType /* internal */, inspected /* internal */ ) {
6988
-
6989
- dataType = dataType || options.dataTypes[ 0 ];
6990
- inspected = inspected || {};
6991
-
6992
- inspected[ dataType ] = true;
6993
-
6994
- var list = structure[ dataType ],
6995
- i = 0,
6996
- length = list ? list.length : 0,
6997
- executeOnly = ( structure === prefilters ),
6998
- selection;
6999
-
7000
- for ( ; i < length && ( executeOnly || !selection ); i++ ) {
7001
- selection = list[ i ]( options, originalOptions, jqXHR );
7002
- // If we got redirected to another dataType
7003
- // we try there if executing only and not done already
7004
- if ( typeof selection === "string" ) {
7005
- if ( !executeOnly || inspected[ selection ] ) {
7006
- selection = undefined;
7007
- } else {
7008
- options.dataTypes.unshift( selection );
7009
- selection = inspectPrefiltersOrTransports(
7010
- structure, options, originalOptions, jqXHR, selection, inspected );
7011
- }
7012
- }
7013
- }
7014
- // If we're only executing or nothing was selected
7015
- // we try the catchall dataType if not done already
7016
- if ( ( executeOnly || !selection ) && !inspected[ "*" ] ) {
7017
- selection = inspectPrefiltersOrTransports(
7018
- structure, options, originalOptions, jqXHR, "*", inspected );
7019
- }
7020
- // unnecessary when only executing (prefilters)
7021
- // but it'll be ignored by the caller in that case
7022
- return selection;
7023
- }
7024
-
7025
- // A special extend for ajax options
7026
- // that takes "flat" options (not to be deep extended)
7027
- // Fixes #9887
7028
- function ajaxExtend( target, src ) {
7029
- var key, deep,
7030
- flatOptions = jQuery.ajaxSettings.flatOptions || {};
7031
- for ( key in src ) {
7032
- if ( src[ key ] !== undefined ) {
7033
- ( flatOptions[ key ] ? target : ( deep || ( deep = {} ) ) )[ key ] = src[ key ];
7034
- }
7035
- }
7036
- if ( deep ) {
7037
- jQuery.extend( true, target, deep );
7038
- }
7039
- }
7040
-
7041
- jQuery.fn.extend({
7042
- load: function( url, params, callback ) {
7043
- if ( typeof url !== "string" && _load ) {
7044
- return _load.apply( this, arguments );
7045
-
7046
- // Don't do a request if no elements are being requested
7047
- } else if ( !this.length ) {
7048
- return this;
7049
- }
7050
-
7051
- var off = url.indexOf( " " );
7052
- if ( off >= 0 ) {
7053
- var selector = url.slice( off, url.length );
7054
- url = url.slice( 0, off );
7055
- }
7056
-
7057
- // Default to a GET request
7058
- var type = "GET";
7059
-
7060
- // If the second parameter was provided
7061
- if ( params ) {
7062
- // If it's a function
7063
- if ( jQuery.isFunction( params ) ) {
7064
- // We assume that it's the callback
7065
- callback = params;
7066
- params = undefined;
7067
-
7068
- // Otherwise, build a param string
7069
- } else if ( typeof params === "object" ) {
7070
- params = jQuery.param( params, jQuery.ajaxSettings.traditional );
7071
- type = "POST";
7072
- }
7073
- }
7074
-
7075
- var self = this;
7076
-
7077
- // Request the remote document
7078
- jQuery.ajax({
7079
- url: url,
7080
- type: type,
7081
- dataType: "html",
7082
- data: params,
7083
- // Complete callback (responseText is used internally)
7084
- complete: function( jqXHR, status, responseText ) {
7085
- // Store the response as specified by the jqXHR object
7086
- responseText = jqXHR.responseText;
7087
- // If successful, inject the HTML into all the matched elements
7088
- if ( jqXHR.isResolved() ) {
7089
- // #4825: Get the actual response in case
7090
- // a dataFilter is present in ajaxSettings
7091
- jqXHR.done(function( r ) {
7092
- responseText = r;
7093
- });
7094
- // See if a selector was specified
7095
- self.html( selector ?
7096
- // Create a dummy div to hold the results
7097
- jQuery("<div>")
7098
- // inject the contents of the document in, removing the scripts
7099
- // to avoid any 'Permission Denied' errors in IE
7100
- .append(responseText.replace(rscript, ""))
7101
-
7102
- // Locate the specified elements
7103
- .find(selector) :
7104
-
7105
- // If not, just inject the full result
7106
- responseText );
7107
- }
7108
-
7109
- if ( callback ) {
7110
- self.each( callback, [ responseText, status, jqXHR ] );
7111
- }
7112
- }
7113
- });
7114
-
7115
- return this;
7116
- },
7117
-
7118
- serialize: function() {
7119
- return jQuery.param( this.serializeArray() );
7120
- },
7121
-
7122
- serializeArray: function() {
7123
- return this.map(function(){
7124
- return this.elements ? jQuery.makeArray( this.elements ) : this;
7125
- })
7126
- .filter(function(){
7127
- return this.name && !this.disabled &&
7128
- ( this.checked || rselectTextarea.test( this.nodeName ) ||
7129
- rinput.test( this.type ) );
7130
- })
7131
- .map(function( i, elem ){
7132
- var val = jQuery( this ).val();
7133
-
7134
- return val == null ?
7135
- null :
7136
- jQuery.isArray( val ) ?
7137
- jQuery.map( val, function( val, i ){
7138
- return { name: elem.name, value: val.replace( rCRLF, "\r\n" ) };
7139
- }) :
7140
- { name: elem.name, value: val.replace( rCRLF, "\r\n" ) };
7141
- }).get();
7142
- }
7143
- });
7144
-
7145
- // Attach a bunch of functions for handling common AJAX events
7146
- jQuery.each( "ajaxStart ajaxStop ajaxComplete ajaxError ajaxSuccess ajaxSend".split( " " ), function( i, o ){
7147
- jQuery.fn[ o ] = function( f ){
7148
- return this.bind( o, f );
7149
- };
7150
- });
7151
-
7152
- jQuery.each( [ "get", "post" ], function( i, method ) {
7153
- jQuery[ method ] = function( url, data, callback, type ) {
7154
- // shift arguments if data argument was omitted
7155
- if ( jQuery.isFunction( data ) ) {
7156
- type = type || callback;
7157
- callback = data;
7158
- data = undefined;
7159
- }
7160
-
7161
- return jQuery.ajax({
7162
- type: method,
7163
- url: url,
7164
- data: data,
7165
- success: callback,
7166
- dataType: type
7167
- });
7168
- };
7169
- });
7170
-
7171
- jQuery.extend({
7172
-
7173
- getScript: function( url, callback ) {
7174
- return jQuery.get( url, undefined, callback, "script" );
7175
- },
7176
-
7177
- getJSON: function( url, data, callback ) {
7178
- return jQuery.get( url, data, callback, "json" );
7179
- },
7180
-
7181
- // Creates a full fledged settings object into target
7182
- // with both ajaxSettings and settings fields.
7183
- // If target is omitted, writes into ajaxSettings.
7184
- ajaxSetup: function( target, settings ) {
7185
- if ( settings ) {
7186
- // Building a settings object
7187
- ajaxExtend( target, jQuery.ajaxSettings );
7188
- } else {
7189
- // Extending ajaxSettings
7190
- settings = target;
7191
- target = jQuery.ajaxSettings;
7192
- }
7193
- ajaxExtend( target, settings );
7194
- return target;
7195
- },
7196
-
7197
- ajaxSettings: {
7198
- url: ajaxLocation,
7199
- isLocal: rlocalProtocol.test( ajaxLocParts[ 1 ] ),
7200
- global: true,
7201
- type: "GET",
7202
- contentType: "application/x-www-form-urlencoded",
7203
- processData: true,
7204
- async: true,
7205
- /*
7206
- timeout: 0,
7207
- data: null,
7208
- dataType: null,
7209
- username: null,
7210
- password: null,
7211
- cache: null,
7212
- traditional: false,
7213
- headers: {},
7214
- */
7215
-
7216
- accepts: {
7217
- xml: "application/xml, text/xml",
7218
- html: "text/html",
7219
- text: "text/plain",
7220
- json: "application/json, text/javascript",
7221
- "*": allTypes
7222
- },
7223
-
7224
- contents: {
7225
- xml: /xml/,
7226
- html: /html/,
7227
- json: /json/
7228
- },
7229
-
7230
- responseFields: {
7231
- xml: "responseXML",
7232
- text: "responseText"
7233
- },
7234
-
7235
- // List of data converters
7236
- // 1) key format is "source_type destination_type" (a single space in-between)
7237
- // 2) the catchall symbol "*" can be used for source_type
7238
- converters: {
7239
-
7240
- // Convert anything to text
7241
- "* text": window.String,
7242
-
7243
- // Text to html (true = no transformation)
7244
- "text html": true,
7245
-
7246
- // Evaluate text as a json expression
7247
- "text json": jQuery.parseJSON,
7248
-
7249
- // Parse text as xml
7250
- "text xml": jQuery.parseXML
7251
- },
7252
-
7253
- // For options that shouldn't be deep extended:
7254
- // you can add your own custom options here if
7255
- // and when you create one that shouldn't be
7256
- // deep extended (see ajaxExtend)
7257
- flatOptions: {
7258
- context: true,
7259
- url: true
7260
- }
7261
- },
7262
-
7263
- ajaxPrefilter: addToPrefiltersOrTransports( prefilters ),
7264
- ajaxTransport: addToPrefiltersOrTransports( transports ),
7265
-
7266
- // Main method
7267
- ajax: function( url, options ) {
7268
-
7269
- // If url is an object, simulate pre-1.5 signature
7270
- if ( typeof url === "object" ) {
7271
- options = url;
7272
- url = undefined;
7273
- }
7274
-
7275
- // Force options to be an object
7276
- options = options || {};
7277
-
7278
- var // Create the final options object
7279
- s = jQuery.ajaxSetup( {}, options ),
7280
- // Callbacks context
7281
- callbackContext = s.context || s,
7282
- // Context for global events
7283
- // It's the callbackContext if one was provided in the options
7284
- // and if it's a DOM node or a jQuery collection
7285
- globalEventContext = callbackContext !== s &&
7286
- ( callbackContext.nodeType || callbackContext instanceof jQuery ) ?
7287
- jQuery( callbackContext ) : jQuery.event,
7288
- // Deferreds
7289
- deferred = jQuery.Deferred(),
7290
- completeDeferred = jQuery.Callbacks( "once memory" ),
7291
- // Status-dependent callbacks
7292
- statusCode = s.statusCode || {},
7293
- // ifModified key
7294
- ifModifiedKey,
7295
- // Headers (they are sent all at once)
7296
- requestHeaders = {},
7297
- requestHeadersNames = {},
7298
- // Response headers
7299
- responseHeadersString,
7300
- responseHeaders,
7301
- // transport
7302
- transport,
7303
- // timeout handle
7304
- timeoutTimer,
7305
- // Cross-domain detection vars
7306
- parts,
7307
- // The jqXHR state
7308
- state = 0,
7309
- // To know if global events are to be dispatched
7310
- fireGlobals,
7311
- // Loop variable
7312
- i,
7313
- // Fake xhr
7314
- jqXHR = {
7315
-
7316
- readyState: 0,
7317
-
7318
- // Caches the header
7319
- setRequestHeader: function( name, value ) {
7320
- if ( !state ) {
7321
- var lname = name.toLowerCase();
7322
- name = requestHeadersNames[ lname ] = requestHeadersNames[ lname ] || name;
7323
- requestHeaders[ name ] = value;
7324
- }
7325
- return this;
7326
- },
7327
-
7328
- // Raw string
7329
- getAllResponseHeaders: function() {
7330
- return state === 2 ? responseHeadersString : null;
7331
- },
7332
-
7333
- // Builds headers hashtable if needed
7334
- getResponseHeader: function( key ) {
7335
- var match;
7336
- if ( state === 2 ) {
7337
- if ( !responseHeaders ) {
7338
- responseHeaders = {};
7339
- while( ( match = rheaders.exec( responseHeadersString ) ) ) {
7340
- responseHeaders[ match[1].toLowerCase() ] = match[ 2 ];
7341
- }
7342
- }
7343
- match = responseHeaders[ key.toLowerCase() ];
7344
- }
7345
- return match === undefined ? null : match;
7346
- },
7347
-
7348
- // Overrides response content-type header
7349
- overrideMimeType: function( type ) {
7350
- if ( !state ) {
7351
- s.mimeType = type;
7352
- }
7353
- return this;
7354
- },
7355
-
7356
- // Cancel the request
7357
- abort: function( statusText ) {
7358
- statusText = statusText || "abort";
7359
- if ( transport ) {
7360
- transport.abort( statusText );
7361
- }
7362
- done( 0, statusText );
7363
- return this;
7364
- }
7365
- };
7366
-
7367
- // Callback for when everything is done
7368
- // It is defined here because jslint complains if it is declared
7369
- // at the end of the function (which would be more logical and readable)
7370
- function done( status, nativeStatusText, responses, headers ) {
7371
-
7372
- // Called once
7373
- if ( state === 2 ) {
7374
- return;
7375
- }
7376
-
7377
- // State is "done" now
7378
- state = 2;
7379
-
7380
- // Clear timeout if it exists
7381
- if ( timeoutTimer ) {
7382
- clearTimeout( timeoutTimer );
7383
- }
7384
-
7385
- // Dereference transport for early garbage collection
7386
- // (no matter how long the jqXHR object will be used)
7387
- transport = undefined;
7388
-
7389
- // Cache response headers
7390
- responseHeadersString = headers || "";
7391
-
7392
- // Set readyState
7393
- jqXHR.readyState = status > 0 ? 4 : 0;
7394
-
7395
- var isSuccess,
7396
- success,
7397
- error,
7398
- statusText = nativeStatusText,
7399
- response = responses ? ajaxHandleResponses( s, jqXHR, responses ) : undefined,
7400
- lastModified,
7401
- etag;
7402
-
7403
- // If successful, handle type chaining
7404
- if ( status >= 200 && status < 300 || status === 304 ) {
7405
-
7406
- // Set the If-Modified-Since and/or If-None-Match header, if in ifModified mode.
7407
- if ( s.ifModified ) {
7408
-
7409
- if ( ( lastModified = jqXHR.getResponseHeader( "Last-Modified" ) ) ) {
7410
- jQuery.lastModified[ ifModifiedKey ] = lastModified;
7411
- }
7412
- if ( ( etag = jqXHR.getResponseHeader( "Etag" ) ) ) {
7413
- jQuery.etag[ ifModifiedKey ] = etag;
7414
- }
7415
- }
7416
-
7417
- // If not modified
7418
- if ( status === 304 ) {
7419
-
7420
- statusText = "notmodified";
7421
- isSuccess = true;
7422
-
7423
- // If we have data
7424
- } else {
7425
-
7426
- try {
7427
- success = ajaxConvert( s, response );
7428
- statusText = "success";
7429
- isSuccess = true;
7430
- } catch(e) {
7431
- // We have a parsererror
7432
- statusText = "parsererror";
7433
- error = e;
7434
- }
7435
- }
7436
- } else {
7437
- // We extract error from statusText
7438
- // then normalize statusText and status for non-aborts
7439
- error = statusText;
7440
- if ( !statusText || status ) {
7441
- statusText = "error";
7442
- if ( status < 0 ) {
7443
- status = 0;
7444
- }
7445
- }
7446
- }
7447
-
7448
- // Set data for the fake xhr object
7449
- jqXHR.status = status;
7450
- jqXHR.statusText = "" + ( nativeStatusText || statusText );
7451
-
7452
- // Success/Error
7453
- if ( isSuccess ) {
7454
- deferred.resolveWith( callbackContext, [ success, statusText, jqXHR ] );
7455
- } else {
7456
- deferred.rejectWith( callbackContext, [ jqXHR, statusText, error ] );
7457
- }
7458
-
7459
- // Status-dependent callbacks
7460
- jqXHR.statusCode( statusCode );
7461
- statusCode = undefined;
7462
-
7463
- if ( fireGlobals ) {
7464
- globalEventContext.trigger( "ajax" + ( isSuccess ? "Success" : "Error" ),
7465
- [ jqXHR, s, isSuccess ? success : error ] );
7466
- }
7467
-
7468
- // Complete
7469
- completeDeferred.fireWith( callbackContext, [ jqXHR, statusText ] );
7470
-
7471
- if ( fireGlobals ) {
7472
- globalEventContext.trigger( "ajaxComplete", [ jqXHR, s ] );
7473
- // Handle the global AJAX counter
7474
- if ( !( --jQuery.active ) ) {
7475
- jQuery.event.trigger( "ajaxStop" );
7476
- }
7477
- }
7478
- }
7479
-
7480
- // Attach deferreds
7481
- deferred.promise( jqXHR );
7482
- jqXHR.success = jqXHR.done;
7483
- jqXHR.error = jqXHR.fail;
7484
- jqXHR.complete = completeDeferred.add;
7485
-
7486
- // Status-dependent callbacks
7487
- jqXHR.statusCode = function( map ) {
7488
- if ( map ) {
7489
- var tmp;
7490
- if ( state < 2 ) {
7491
- for ( tmp in map ) {
7492
- statusCode[ tmp ] = [ statusCode[tmp], map[tmp] ];
7493
- }
7494
- } else {
7495
- tmp = map[ jqXHR.status ];
7496
- jqXHR.then( tmp, tmp );
7497
- }
7498
- }
7499
- return this;
7500
- };
7501
-
7502
- // Remove hash character (#7531: and string promotion)
7503
- // Add protocol if not provided (#5866: IE7 issue with protocol-less urls)
7504
- // We also use the url parameter if available
7505
- s.url = ( ( url || s.url ) + "" ).replace( rhash, "" ).replace( rprotocol, ajaxLocParts[ 1 ] + "//" );
7506
-
7507
- // Extract dataTypes list
7508
- s.dataTypes = jQuery.trim( s.dataType || "*" ).toLowerCase().split( rspacesAjax );
7509
-
7510
- // Determine if a cross-domain request is in order
7511
- if ( s.crossDomain == null ) {
7512
- parts = rurl.exec( s.url.toLowerCase() );
7513
- s.crossDomain = !!( parts &&
7514
- ( parts[ 1 ] != ajaxLocParts[ 1 ] || parts[ 2 ] != ajaxLocParts[ 2 ] ||
7515
- ( parts[ 3 ] || ( parts[ 1 ] === "http:" ? 80 : 443 ) ) !=
7516
- ( ajaxLocParts[ 3 ] || ( ajaxLocParts[ 1 ] === "http:" ? 80 : 443 ) ) )
7517
- );
7518
- }
7519
-
7520
- // Convert data if not already a string
7521
- if ( s.data && s.processData && typeof s.data !== "string" ) {
7522
- s.data = jQuery.param( s.data, s.traditional );
7523
- }
7524
-
7525
- // Apply prefilters
7526
- inspectPrefiltersOrTransports( prefilters, s, options, jqXHR );
7527
-
7528
- // If request was aborted inside a prefiler, stop there
7529
- if ( state === 2 ) {
7530
- return false;
7531
- }
7532
-
7533
- // We can fire global events as of now if asked to
7534
- fireGlobals = s.global;
7535
-
7536
- // Uppercase the type
7537
- s.type = s.type.toUpperCase();
7538
-
7539
- // Determine if request has content
7540
- s.hasContent = !rnoContent.test( s.type );
7541
-
7542
- // Watch for a new set of requests
7543
- if ( fireGlobals && jQuery.active++ === 0 ) {
7544
- jQuery.event.trigger( "ajaxStart" );
7545
- }
7546
-
7547
- // More options handling for requests with no content
7548
- if ( !s.hasContent ) {
7549
-
7550
- // If data is available, append data to url
7551
- if ( s.data ) {
7552
- s.url += ( rquery.test( s.url ) ? "&" : "?" ) + s.data;
7553
- // #9682: remove data so that it's not used in an eventual retry
7554
- delete s.data;
7555
- }
7556
-
7557
- // Get ifModifiedKey before adding the anti-cache parameter
7558
- ifModifiedKey = s.url;
7559
-
7560
- // Add anti-cache in url if needed
7561
- if ( s.cache === false ) {
7562
-
7563
- var ts = jQuery.now(),
7564
- // try replacing _= if it is there
7565
- ret = s.url.replace( rts, "$1_=" + ts );
7566
-
7567
- // if nothing was replaced, add timestamp to the end
7568
- s.url = ret + ( ( ret === s.url ) ? ( rquery.test( s.url ) ? "&" : "?" ) + "_=" + ts : "" );
7569
- }
7570
- }
7571
-
7572
- // Set the correct header, if data is being sent
7573
- if ( s.data && s.hasContent && s.contentType !== false || options.contentType ) {
7574
- jqXHR.setRequestHeader( "Content-Type", s.contentType );
7575
- }
7576
-
7577
- // Set the If-Modified-Since and/or If-None-Match header, if in ifModified mode.
7578
- if ( s.ifModified ) {
7579
- ifModifiedKey = ifModifiedKey || s.url;
7580
- if ( jQuery.lastModified[ ifModifiedKey ] ) {
7581
- jqXHR.setRequestHeader( "If-Modified-Since", jQuery.lastModified[ ifModifiedKey ] );
7582
- }
7583
- if ( jQuery.etag[ ifModifiedKey ] ) {
7584
- jqXHR.setRequestHeader( "If-None-Match", jQuery.etag[ ifModifiedKey ] );
7585
- }
7586
- }
7587
-
7588
- // Set the Accepts header for the server, depending on the dataType
7589
- jqXHR.setRequestHeader(
7590
- "Accept",
7591
- s.dataTypes[ 0 ] && s.accepts[ s.dataTypes[0] ] ?
7592
- s.accepts[ s.dataTypes[0] ] + ( s.dataTypes[ 0 ] !== "*" ? ", " + allTypes + "; q=0.01" : "" ) :
7593
- s.accepts[ "*" ]
7594
- );
7595
-
7596
- // Check for headers option
7597
- for ( i in s.headers ) {
7598
- jqXHR.setRequestHeader( i, s.headers[ i ] );
7599
- }
7600
-
7601
- // Allow custom headers/mimetypes and early abort
7602
- if ( s.beforeSend && ( s.beforeSend.call( callbackContext, jqXHR, s ) === false || state === 2 ) ) {
7603
- // Abort if not done already
7604
- jqXHR.abort();
7605
- return false;
7606
-
7607
- }
7608
-
7609
- // Install callbacks on deferreds
7610
- for ( i in { success: 1, error: 1, complete: 1 } ) {
7611
- jqXHR[ i ]( s[ i ] );
7612
- }
7613
-
7614
- // Get transport
7615
- transport = inspectPrefiltersOrTransports( transports, s, options, jqXHR );
7616
-
7617
- // If no transport, we auto-abort
7618
- if ( !transport ) {
7619
- done( -1, "No Transport" );
7620
- } else {
7621
- jqXHR.readyState = 1;
7622
- // Send global event
7623
- if ( fireGlobals ) {
7624
- globalEventContext.trigger( "ajaxSend", [ jqXHR, s ] );
7625
- }
7626
- // Timeout
7627
- if ( s.async && s.timeout > 0 ) {
7628
- timeoutTimer = setTimeout( function(){
7629
- jqXHR.abort( "timeout" );
7630
- }, s.timeout );
7631
- }
7632
-
7633
- try {
7634
- state = 1;
7635
- transport.send( requestHeaders, done );
7636
- } catch (e) {
7637
- // Propagate exception as error if not done
7638
- if ( state < 2 ) {
7639
- done( -1, e );
7640
- // Simply rethrow otherwise
7641
- } else {
7642
- jQuery.error( e );
7643
- }
7644
- }
7645
- }
7646
-
7647
- return jqXHR;
7648
- },
7649
-
7650
- // Serialize an array of form elements or a set of
7651
- // key/values into a query string
7652
- param: function( a, traditional ) {
7653
- var s = [],
7654
- add = function( key, value ) {
7655
- // If value is a function, invoke it and return its value
7656
- value = jQuery.isFunction( value ) ? value() : value;
7657
- s[ s.length ] = encodeURIComponent( key ) + "=" + encodeURIComponent( value );
7658
- };
7659
-
7660
- // Set traditional to true for jQuery <= 1.3.2 behavior.
7661
- if ( traditional === undefined ) {
7662
- traditional = jQuery.ajaxSettings.traditional;
7663
- }
7664
-
7665
- // If an array was passed in, assume that it is an array of form elements.
7666
- if ( jQuery.isArray( a ) || ( a.jquery && !jQuery.isPlainObject( a ) ) ) {
7667
- // Serialize the form elements
7668
- jQuery.each( a, function() {
7669
- add( this.name, this.value );
7670
- });
7671
-
7672
- } else {
7673
- // If traditional, encode the "old" way (the way 1.3.2 or older
7674
- // did it), otherwise encode params recursively.
7675
- for ( var prefix in a ) {
7676
- buildParams( prefix, a[ prefix ], traditional, add );
7677
- }
7678
- }
7679
-
7680
- // Return the resulting serialization
7681
- return s.join( "&" ).replace( r20, "+" );
7682
- }
7683
- });
7684
-
7685
- function buildParams( prefix, obj, traditional, add ) {
7686
- if ( jQuery.isArray( obj ) ) {
7687
- // Serialize array item.
7688
- jQuery.each( obj, function( i, v ) {
7689
- if ( traditional || rbracket.test( prefix ) ) {
7690
- // Treat each array item as a scalar.
7691
- add( prefix, v );
7692
-
7693
- } else {
7694
- // If array item is non-scalar (array or object), encode its
7695
- // numeric index to resolve deserialization ambiguity issues.
7696
- // Note that rack (as of 1.0.0) can't currently deserialize
7697
- // nested arrays properly, and attempting to do so may cause
7698
- // a server error. Possible fixes are to modify rack's
7699
- // deserialization algorithm or to provide an option or flag
7700
- // to force array serialization to be shallow.
7701
- buildParams( prefix + "[" + ( typeof v === "object" || jQuery.isArray(v) ? i : "" ) + "]", v, traditional, add );
7702
- }
7703
- });
7704
-
7705
- } else if ( !traditional && obj != null && typeof obj === "object" ) {
7706
- // Serialize object item.
7707
- for ( var name in obj ) {
7708
- buildParams( prefix + "[" + name + "]", obj[ name ], traditional, add );
7709
- }
7710
-
7711
- } else {
7712
- // Serialize scalar item.
7713
- add( prefix, obj );
7714
- }
7715
- }
7716
-
7717
- // This is still on the jQuery object... for now
7718
- // Want to move this to jQuery.ajax some day
7719
- jQuery.extend({
7720
-
7721
- // Counter for holding the number of active queries
7722
- active: 0,
7723
-
7724
- // Last-Modified header cache for next request
7725
- lastModified: {},
7726
- etag: {}
7727
-
7728
- });
7729
-
7730
- /* Handles responses to an ajax request:
7731
- * - sets all responseXXX fields accordingly
7732
- * - finds the right dataType (mediates between content-type and expected dataType)
7733
- * - returns the corresponding response
7734
- */
7735
- function ajaxHandleResponses( s, jqXHR, responses ) {
7736
-
7737
- var contents = s.contents,
7738
- dataTypes = s.dataTypes,
7739
- responseFields = s.responseFields,
7740
- ct,
7741
- type,
7742
- finalDataType,
7743
- firstDataType;
7744
-
7745
- // Fill responseXXX fields
7746
- for ( type in responseFields ) {
7747
- if ( type in responses ) {
7748
- jqXHR[ responseFields[type] ] = responses[ type ];
7749
- }
7750
- }
7751
-
7752
- // Remove auto dataType and get content-type in the process
7753
- while( dataTypes[ 0 ] === "*" ) {
7754
- dataTypes.shift();
7755
- if ( ct === undefined ) {
7756
- ct = s.mimeType || jqXHR.getResponseHeader( "content-type" );
7757
- }
7758
- }
7759
-
7760
- // Check if we're dealing with a known content-type
7761
- if ( ct ) {
7762
- for ( type in contents ) {
7763
- if ( contents[ type ] && contents[ type ].test( ct ) ) {
7764
- dataTypes.unshift( type );
7765
- break;
7766
- }
7767
- }
7768
- }
7769
-
7770
- // Check to see if we have a response for the expected dataType
7771
- if ( dataTypes[ 0 ] in responses ) {
7772
- finalDataType = dataTypes[ 0 ];
7773
- } else {
7774
- // Try convertible dataTypes
7775
- for ( type in responses ) {
7776
- if ( !dataTypes[ 0 ] || s.converters[ type + " " + dataTypes[0] ] ) {
7777
- finalDataType = type;
7778
- break;
7779
- }
7780
- if ( !firstDataType ) {
7781
- firstDataType = type;
7782
- }
7783
- }
7784
- // Or just use first one
7785
- finalDataType = finalDataType || firstDataType;
7786
- }
7787
-
7788
- // If we found a dataType
7789
- // We add the dataType to the list if needed
7790
- // and return the corresponding response
7791
- if ( finalDataType ) {
7792
- if ( finalDataType !== dataTypes[ 0 ] ) {
7793
- dataTypes.unshift( finalDataType );
7794
- }
7795
- return responses[ finalDataType ];
7796
- }
7797
- }
7798
-
7799
- // Chain conversions given the request and the original response
7800
- function ajaxConvert( s, response ) {
7801
-
7802
- // Apply the dataFilter if provided
7803
- if ( s.dataFilter ) {
7804
- response = s.dataFilter( response, s.dataType );
7805
- }
7806
-
7807
- var dataTypes = s.dataTypes,
7808
- converters = {},
7809
- i,
7810
- key,
7811
- length = dataTypes.length,
7812
- tmp,
7813
- // Current and previous dataTypes
7814
- current = dataTypes[ 0 ],
7815
- prev,
7816
- // Conversion expression
7817
- conversion,
7818
- // Conversion function
7819
- conv,
7820
- // Conversion functions (transitive conversion)
7821
- conv1,
7822
- conv2;
7823
-
7824
- // For each dataType in the chain
7825
- for ( i = 1; i < length; i++ ) {
7826
-
7827
- // Create converters map
7828
- // with lowercased keys
7829
- if ( i === 1 ) {
7830
- for ( key in s.converters ) {
7831
- if ( typeof key === "string" ) {
7832
- converters[ key.toLowerCase() ] = s.converters[ key ];
7833
- }
7834
- }
7835
- }
7836
-
7837
- // Get the dataTypes
7838
- prev = current;
7839
- current = dataTypes[ i ];
7840
-
7841
- // If current is auto dataType, update it to prev
7842
- if ( current === "*" ) {
7843
- current = prev;
7844
- // If no auto and dataTypes are actually different
7845
- } else if ( prev !== "*" && prev !== current ) {
7846
-
7847
- // Get the converter
7848
- conversion = prev + " " + current;
7849
- conv = converters[ conversion ] || converters[ "* " + current ];
7850
-
7851
- // If there is no direct converter, search transitively
7852
- if ( !conv ) {
7853
- conv2 = undefined;
7854
- for ( conv1 in converters ) {
7855
- tmp = conv1.split( " " );
7856
- if ( tmp[ 0 ] === prev || tmp[ 0 ] === "*" ) {
7857
- conv2 = converters[ tmp[1] + " " + current ];
7858
- if ( conv2 ) {
7859
- conv1 = converters[ conv1 ];
7860
- if ( conv1 === true ) {
7861
- conv = conv2;
7862
- } else if ( conv2 === true ) {
7863
- conv = conv1;
7864
- }
7865
- break;
7866
- }
7867
- }
7868
- }
7869
- }
7870
- // If we found no converter, dispatch an error
7871
- if ( !( conv || conv2 ) ) {
7872
- jQuery.error( "No conversion from " + conversion.replace(" "," to ") );
7873
- }
7874
- // If found converter is not an equivalence
7875
- if ( conv !== true ) {
7876
- // Convert with 1 or 2 converters accordingly
7877
- response = conv ? conv( response ) : conv2( conv1(response) );
7878
- }
7879
- }
7880
- }
7881
- return response;
7882
- }
7883
-
7884
-
7885
-
7886
-
7887
- var jsc = jQuery.now(),
7888
- jsre = /(\=)\?(&|$)|\?\?/i;
7889
-
7890
- // Default jsonp settings
7891
- jQuery.ajaxSetup({
7892
- jsonp: "callback",
7893
- jsonpCallback: function() {
7894
- return jQuery.expando + "_" + ( jsc++ );
7895
- }
7896
- });
7897
-
7898
- // Detect, normalize options and install callbacks for jsonp requests
7899
- jQuery.ajaxPrefilter( "json jsonp", function( s, originalSettings, jqXHR ) {
7900
-
7901
- var inspectData = s.contentType === "application/x-www-form-urlencoded" &&
7902
- ( typeof s.data === "string" );
7903
-
7904
- if ( s.dataTypes[ 0 ] === "jsonp" ||
7905
- s.jsonp !== false && ( jsre.test( s.url ) ||
7906
- inspectData && jsre.test( s.data ) ) ) {
7907
-
7908
- var responseContainer,
7909
- jsonpCallback = s.jsonpCallback =
7910
- jQuery.isFunction( s.jsonpCallback ) ? s.jsonpCallback() : s.jsonpCallback,
7911
- previous = window[ jsonpCallback ],
7912
- url = s.url,
7913
- data = s.data,
7914
- replace = "$1" + jsonpCallback + "$2";
7915
-
7916
- if ( s.jsonp !== false ) {
7917
- url = url.replace( jsre, replace );
7918
- if ( s.url === url ) {
7919
- if ( inspectData ) {
7920
- data = data.replace( jsre, replace );
7921
- }
7922
- if ( s.data === data ) {
7923
- // Add callback manually
7924
- url += (/\?/.test( url ) ? "&" : "?") + s.jsonp + "=" + jsonpCallback;
7925
- }
7926
- }
7927
- }
7928
-
7929
- s.url = url;
7930
- s.data = data;
7931
-
7932
- // Install callback
7933
- window[ jsonpCallback ] = function( response ) {
7934
- responseContainer = [ response ];
7935
- };
7936
-
7937
- // Clean-up function
7938
- jqXHR.always(function() {
7939
- // Set callback back to previous value
7940
- window[ jsonpCallback ] = previous;
7941
- // Call if it was a function and we have a response
7942
- if ( responseContainer && jQuery.isFunction( previous ) ) {
7943
- window[ jsonpCallback ]( responseContainer[ 0 ] );
7944
- }
7945
- });
7946
-
7947
- // Use data converter to retrieve json after script execution
7948
- s.converters["script json"] = function() {
7949
- if ( !responseContainer ) {
7950
- jQuery.error( jsonpCallback + " was not called" );
7951
- }
7952
- return responseContainer[ 0 ];
7953
- };
7954
-
7955
- // force json dataType
7956
- s.dataTypes[ 0 ] = "json";
7957
-
7958
- // Delegate to script
7959
- return "script";
7960
- }
7961
- });
7962
-
7963
-
7964
-
7965
-
7966
- // Install script dataType
7967
- jQuery.ajaxSetup({
7968
- accepts: {
7969
- script: "text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"
7970
- },
7971
- contents: {
7972
- script: /javascript|ecmascript/
7973
- },
7974
- converters: {
7975
- "text script": function( text ) {
7976
- jQuery.globalEval( text );
7977
- return text;
7978
- }
7979
- }
7980
- });
7981
-
7982
- // Handle cache's special case and global
7983
- jQuery.ajaxPrefilter( "script", function( s ) {
7984
- if ( s.cache === undefined ) {
7985
- s.cache = false;
7986
- }
7987
- if ( s.crossDomain ) {
7988
- s.type = "GET";
7989
- s.global = false;
7990
- }
7991
- });
7992
-
7993
- // Bind script tag hack transport
7994
- jQuery.ajaxTransport( "script", function(s) {
7995
-
7996
- // This transport only deals with cross domain requests
7997
- if ( s.crossDomain ) {
7998
-
7999
- var script,
8000
- head = document.head || document.getElementsByTagName( "head" )[0] || document.documentElement;
8001
-
8002
- return {
8003
-
8004
- send: function( _, callback ) {
8005
-
8006
- script = document.createElement( "script" );
8007
-
8008
- script.async = "async";
8009
-
8010
- if ( s.scriptCharset ) {
8011
- script.charset = s.scriptCharset;
8012
- }
8013
-
8014
- script.src = s.url;
8015
-
8016
- // Attach handlers for all browsers
8017
- script.onload = script.onreadystatechange = function( _, isAbort ) {
8018
-
8019
- if ( isAbort || !script.readyState || /loaded|complete/.test( script.readyState ) ) {
8020
-
8021
- // Handle memory leak in IE
8022
- script.onload = script.onreadystatechange = null;
8023
-
8024
- // Remove the script
8025
- if ( head && script.parentNode ) {
8026
- head.removeChild( script );
8027
- }
8028
-
8029
- // Dereference the script
8030
- script = undefined;
8031
-
8032
- // Callback if not abort
8033
- if ( !isAbort ) {
8034
- callback( 200, "success" );
8035
- }
8036
- }
8037
- };
8038
- // Use insertBefore instead of appendChild to circumvent an IE6 bug.
8039
- // This arises when a base node is used (#2709 and #4378).
8040
- head.insertBefore( script, head.firstChild );
8041
- },
8042
-
8043
- abort: function() {
8044
- if ( script ) {
8045
- script.onload( 0, 1 );
8046
- }
8047
- }
8048
- };
8049
- }
8050
- });
8051
-
8052
-
8053
-
8054
-
8055
- var // #5280: Internet Explorer will keep connections alive if we don't abort on unload
8056
- xhrOnUnloadAbort = window.ActiveXObject ? function() {
8057
- // Abort all pending requests
8058
- for ( var key in xhrCallbacks ) {
8059
- xhrCallbacks[ key ]( 0, 1 );
8060
- }
8061
- } : false,
8062
- xhrId = 0,
8063
- xhrCallbacks;
8064
-
8065
- // Functions to create xhrs
8066
- function createStandardXHR() {
8067
- try {
8068
- return new window.XMLHttpRequest();
8069
- } catch( e ) {}
8070
- }
8071
-
8072
- function createActiveXHR() {
8073
- try {
8074
- return new window.ActiveXObject( "Microsoft.XMLHTTP" );
8075
- } catch( e ) {}
8076
- }
8077
-
8078
- // Create the request object
8079
- // (This is still attached to ajaxSettings for backward compatibility)
8080
- jQuery.ajaxSettings.xhr = window.ActiveXObject ?
8081
- /* Microsoft failed to properly
8082
- * implement the XMLHttpRequest in IE7 (can't request local files),
8083
- * so we use the ActiveXObject when it is available
8084
- * Additionally XMLHttpRequest can be disabled in IE7/IE8 so
8085
- * we need a fallback.
8086
- */
8087
- function() {
8088
- return !this.isLocal && createStandardXHR() || createActiveXHR();
8089
- } :
8090
- // For all other browsers, use the standard XMLHttpRequest object
8091
- createStandardXHR;
8092
-
8093
- // Determine support properties
8094
- (function( xhr ) {
8095
- jQuery.extend( jQuery.support, {
8096
- ajax: !!xhr,
8097
- cors: !!xhr && ( "withCredentials" in xhr )
8098
- });
8099
- })( jQuery.ajaxSettings.xhr() );
8100
-
8101
- // Create transport if the browser can provide an xhr
8102
- if ( jQuery.support.ajax ) {
8103
-
8104
- jQuery.ajaxTransport(function( s ) {
8105
- // Cross domain only allowed if supported through XMLHttpRequest
8106
- if ( !s.crossDomain || jQuery.support.cors ) {
8107
-
8108
- var callback;
8109
-
8110
- return {
8111
- send: function( headers, complete ) {
8112
-
8113
- // Get a new xhr
8114
- var xhr = s.xhr(),
8115
- handle,
8116
- i;
8117
-
8118
- // Open the socket
8119
- // Passing null username, generates a login popup on Opera (#2865)
8120
- if ( s.username ) {
8121
- xhr.open( s.type, s.url, s.async, s.username, s.password );
8122
- } else {
8123
- xhr.open( s.type, s.url, s.async );
8124
- }
8125
-
8126
- // Apply custom fields if provided
8127
- if ( s.xhrFields ) {
8128
- for ( i in s.xhrFields ) {
8129
- xhr[ i ] = s.xhrFields[ i ];
8130
- }
8131
- }
8132
-
8133
- // Override mime type if needed
8134
- if ( s.mimeType && xhr.overrideMimeType ) {
8135
- xhr.overrideMimeType( s.mimeType );
8136
- }
8137
-
8138
- // X-Requested-With header
8139
- // For cross-domain requests, seeing as conditions for a preflight are
8140
- // akin to a jigsaw puzzle, we simply never set it to be sure.
8141
- // (it can always be set on a per-request basis or even using ajaxSetup)
8142
- // For same-domain requests, won't change header if already provided.
8143
- if ( !s.crossDomain && !headers["X-Requested-With"] ) {
8144
- headers[ "X-Requested-With" ] = "XMLHttpRequest";
8145
- }
8146
-
8147
- // Need an extra try/catch for cross domain requests in Firefox 3
8148
- try {
8149
- for ( i in headers ) {
8150
- xhr.setRequestHeader( i, headers[ i ] );
8151
- }
8152
- } catch( _ ) {}
8153
-
8154
- // Do send the request
8155
- // This may raise an exception which is actually
8156
- // handled in jQuery.ajax (so no try/catch here)
8157
- xhr.send( ( s.hasContent && s.data ) || null );
8158
-
8159
- // Listener
8160
- callback = function( _, isAbort ) {
8161
-
8162
- var status,
8163
- statusText,
8164
- responseHeaders,
8165
- responses,
8166
- xml;
8167
-
8168
- // Firefox throws exceptions when accessing properties
8169
- // of an xhr when a network error occured
8170
- // http://helpful.knobs-dials.com/index.php/Component_returned_failure_code:_0x80040111_(NS_ERROR_NOT_AVAILABLE)
8171
- try {
8172
-
8173
- // Was never called and is aborted or complete
8174
- if ( callback && ( isAbort || xhr.readyState === 4 ) ) {
8175
-
8176
- // Only called once
8177
- callback = undefined;
8178
-
8179
- // Do not keep as active anymore
8180
- if ( handle ) {
8181
- xhr.onreadystatechange = jQuery.noop;
8182
- if ( xhrOnUnloadAbort ) {
8183
- delete xhrCallbacks[ handle ];
8184
- }
8185
- }
8186
-
8187
- // If it's an abort
8188
- if ( isAbort ) {
8189
- // Abort it manually if needed
8190
- if ( xhr.readyState !== 4 ) {
8191
- xhr.abort();
8192
- }
8193
- } else {
8194
- status = xhr.status;
8195
- responseHeaders = xhr.getAllResponseHeaders();
8196
- responses = {};
8197
- xml = xhr.responseXML;
8198
-
8199
- // Construct response list
8200
- if ( xml && xml.documentElement /* #4958 */ ) {
8201
- responses.xml = xml;
8202
- }
8203
- responses.text = xhr.responseText;
8204
-
8205
- // Firefox throws an exception when accessing
8206
- // statusText for faulty cross-domain requests
8207
- try {
8208
- statusText = xhr.statusText;
8209
- } catch( e ) {
8210
- // We normalize with Webkit giving an empty statusText
8211
- statusText = "";
8212
- }
8213
-
8214
- // Filter status for non standard behaviors
8215
-
8216
- // If the request is local and we have data: assume a success
8217
- // (success with no data won't get notified, that's the best we
8218
- // can do given current implementations)
8219
- if ( !status && s.isLocal && !s.crossDomain ) {
8220
- status = responses.text ? 200 : 404;
8221
- // IE - #1450: sometimes returns 1223 when it should be 204
8222
- } else if ( status === 1223 ) {
8223
- status = 204;
8224
- }
8225
- }
8226
- }
8227
- } catch( firefoxAccessException ) {
8228
- if ( !isAbort ) {
8229
- complete( -1, firefoxAccessException );
8230
- }
8231
- }
8232
-
8233
- // Call complete if needed
8234
- if ( responses ) {
8235
- complete( status, statusText, responses, responseHeaders );
8236
- }
8237
- };
8238
-
8239
- // if we're in sync mode or it's in cache
8240
- // and has been retrieved directly (IE6 & IE7)
8241
- // we need to manually fire the callback
8242
- if ( !s.async || xhr.readyState === 4 ) {
8243
- callback();
8244
- } else {
8245
- handle = ++xhrId;
8246
- if ( xhrOnUnloadAbort ) {
8247
- // Create the active xhrs callbacks list if needed
8248
- // and attach the unload handler
8249
- if ( !xhrCallbacks ) {
8250
- xhrCallbacks = {};
8251
- jQuery( window ).unload( xhrOnUnloadAbort );
8252
- }
8253
- // Add to list of active xhrs callbacks
8254
- xhrCallbacks[ handle ] = callback;
8255
- }
8256
- xhr.onreadystatechange = callback;
8257
- }
8258
- },
8259
-
8260
- abort: function() {
8261
- if ( callback ) {
8262
- callback(0,1);
8263
- }
8264
- }
8265
- };
8266
- }
8267
- });
8268
- }
8269
-
8270
-
8271
-
8272
-
8273
- var elemdisplay = {},
8274
- iframe, iframeDoc,
8275
- rfxtypes = /^(?:toggle|show|hide)$/,
8276
- rfxnum = /^([+\-]=)?([\d+.\-]+)([a-z%]*)$/i,
8277
- timerId,
8278
- fxAttrs = [
8279
- // height animations
8280
- [ "height", "marginTop", "marginBottom", "paddingTop", "paddingBottom" ],
8281
- // width animations
8282
- [ "width", "marginLeft", "marginRight", "paddingLeft", "paddingRight" ],
8283
- // opacity animations
8284
- [ "opacity" ]
8285
- ],
8286
- fxNow;
8287
-
8288
- jQuery.fn.extend({
8289
- show: function( speed, easing, callback ) {
8290
- var elem, display;
8291
-
8292
- if ( speed || speed === 0 ) {
8293
- return this.animate( genFx("show", 3), speed, easing, callback );
8294
-
8295
- } else {
8296
- for ( var i = 0, j = this.length; i < j; i++ ) {
8297
- elem = this[ i ];
8298
-
8299
- if ( elem.style ) {
8300
- display = elem.style.display;
8301
-
8302
- // Reset the inline display of this element to learn if it is
8303
- // being hidden by cascaded rules or not
8304
- if ( !jQuery._data(elem, "olddisplay") && display === "none" ) {
8305
- display = elem.style.display = "";
8306
- }
8307
-
8308
- // Set elements which have been overridden with display: none
8309
- // in a stylesheet to whatever the default browser style is
8310
- // for such an element
8311
- if ( display === "" && jQuery.css(elem, "display") === "none" ) {
8312
- jQuery._data( elem, "olddisplay", defaultDisplay(elem.nodeName) );
8313
- }
8314
- }
8315
- }
8316
-
8317
- // Set the display of most of the elements in a second loop
8318
- // to avoid the constant reflow
8319
- for ( i = 0; i < j; i++ ) {
8320
- elem = this[ i ];
8321
-
8322
- if ( elem.style ) {
8323
- display = elem.style.display;
8324
-
8325
- if ( display === "" || display === "none" ) {
8326
- elem.style.display = jQuery._data( elem, "olddisplay" ) || "";
8327
- }
8328
- }
8329
- }
8330
-
8331
- return this;
8332
- }
8333
- },
8334
-
8335
- hide: function( speed, easing, callback ) {
8336
- if ( speed || speed === 0 ) {
8337
- return this.animate( genFx("hide", 3), speed, easing, callback);
8338
-
8339
- } else {
8340
- var elem, display,
8341
- i = 0,
8342
- j = this.length;
8343
-
8344
- for ( ; i < j; i++ ) {
8345
- elem = this[i];
8346
- if ( elem.style ) {
8347
- display = jQuery.css( elem, "display" );
8348
-
8349
- if ( display !== "none" && !jQuery._data( elem, "olddisplay" ) ) {
8350
- jQuery._data( elem, "olddisplay", display );
8351
- }
8352
- }
8353
- }
8354
-
8355
- // Set the display of the elements in a second loop
8356
- // to avoid the constant reflow
8357
- for ( i = 0; i < j; i++ ) {
8358
- if ( this[i].style ) {
8359
- this[i].style.display = "none";
8360
- }
8361
- }
8362
-
8363
- return this;
8364
- }
8365
- },
8366
-
8367
- // Save the old toggle function
8368
- _toggle: jQuery.fn.toggle,
8369
-
8370
- toggle: function( fn, fn2, callback ) {
8371
- var bool = typeof fn === "boolean";
8372
-
8373
- if ( jQuery.isFunction(fn) && jQuery.isFunction(fn2) ) {
8374
- this._toggle.apply( this, arguments );
8375
-
8376
- } else if ( fn == null || bool ) {
8377
- this.each(function() {
8378
- var state = bool ? fn : jQuery(this).is(":hidden");
8379
- jQuery(this)[ state ? "show" : "hide" ]();
8380
- });
8381
-
8382
- } else {
8383
- this.animate(genFx("toggle", 3), fn, fn2, callback);
8384
- }
8385
-
8386
- return this;
8387
- },
8388
-
8389
- fadeTo: function( speed, to, easing, callback ) {
8390
- return this.filter(":hidden").css("opacity", 0).show().end()
8391
- .animate({opacity: to}, speed, easing, callback);
8392
- },
8393
-
8394
- animate: function( prop, speed, easing, callback ) {
8395
- var optall = jQuery.speed( speed, easing, callback );
8396
-
8397
- if ( jQuery.isEmptyObject( prop ) ) {
8398
- return this.each( optall.complete, [ false ] );
8399
- }
8400
-
8401
- // Do not change referenced properties as per-property easing will be lost
8402
- prop = jQuery.extend( {}, prop );
8403
-
8404
- function doAnimation() {
8405
- // XXX 'this' does not always have a nodeName when running the
8406
- // test suite
8407
-
8408
- if ( optall.queue === false ) {
8409
- jQuery._mark( this );
8410
- }
8411
-
8412
- var opt = jQuery.extend( {}, optall ),
8413
- isElement = this.nodeType === 1,
8414
- hidden = isElement && jQuery(this).is(":hidden"),
8415
- name, val, p, e,
8416
- parts, start, end, unit,
8417
- method;
8418
-
8419
- // will store per property easing and be used to determine when an animation is complete
8420
- opt.animatedProperties = {};
8421
-
8422
- for ( p in prop ) {
8423
-
8424
- // property name normalization
8425
- name = jQuery.camelCase( p );
8426
- if ( p !== name ) {
8427
- prop[ name ] = prop[ p ];
8428
- delete prop[ p ];
8429
- }
8430
-
8431
- val = prop[ name ];
8432
-
8433
- // easing resolution: per property > opt.specialEasing > opt.easing > 'swing' (default)
8434
- if ( jQuery.isArray( val ) ) {
8435
- opt.animatedProperties[ name ] = val[ 1 ];
8436
- val = prop[ name ] = val[ 0 ];
8437
- } else {
8438
- opt.animatedProperties[ name ] = opt.specialEasing && opt.specialEasing[ name ] || opt.easing || 'swing';
8439
- }
8440
-
8441
- if ( val === "hide" && hidden || val === "show" && !hidden ) {
8442
- return opt.complete.call( this );
8443
- }
8444
-
8445
- if ( isElement && ( name === "height" || name === "width" ) ) {
8446
- // Make sure that nothing sneaks out
8447
- // Record all 3 overflow attributes because IE does not
8448
- // change the overflow attribute when overflowX and
8449
- // overflowY are set to the same value
8450
- opt.overflow = [ this.style.overflow, this.style.overflowX, this.style.overflowY ];
8451
-
8452
- // Set display property to inline-block for height/width
8453
- // animations on inline elements that are having width/height animated
8454
- if ( jQuery.css( this, "display" ) === "inline" &&
8455
- jQuery.css( this, "float" ) === "none" ) {
8456
-
8457
- // inline-level elements accept inline-block;
8458
- // block-level elements need to be inline with layout
8459
- if ( !jQuery.support.inlineBlockNeedsLayout || defaultDisplay( this.nodeName ) === "inline" ) {
8460
- this.style.display = "inline-block";
8461
-
8462
- } else {
8463
- this.style.zoom = 1;
8464
- }
8465
- }
8466
- }
8467
- }
8468
-
8469
- if ( opt.overflow != null ) {
8470
- this.style.overflow = "hidden";
8471
- }
8472
-
8473
- for ( p in prop ) {
8474
- e = new jQuery.fx( this, opt, p );
8475
- val = prop[ p ];
8476
-
8477
- if ( rfxtypes.test( val ) ) {
8478
-
8479
- // Tracks whether to show or hide based on private
8480
- // data attached to the element
8481
- method = jQuery._data( this, "toggle" + p ) || ( val === "toggle" ? hidden ? "show" : "hide" : 0 );
8482
- if ( method ) {
8483
- jQuery._data( this, "toggle" + p, method === "show" ? "hide" : "show" );
8484
- e[ method ]();
8485
- } else {
8486
- e[ val ]();
8487
- }
8488
-
8489
- } else {
8490
- parts = rfxnum.exec( val );
8491
- start = e.cur();
8492
-
8493
- if ( parts ) {
8494
- end = parseFloat( parts[2] );
8495
- unit = parts[3] || ( jQuery.cssNumber[ p ] ? "" : "px" );
8496
-
8497
- // We need to compute starting value
8498
- if ( unit !== "px" ) {
8499
- jQuery.style( this, p, (end || 1) + unit);
8500
- start = ( (end || 1) / e.cur() ) * start;
8501
- jQuery.style( this, p, start + unit);
8502
- }
8503
-
8504
- // If a +=/-= token was provided, we're doing a relative animation
8505
- if ( parts[1] ) {
8506
- end = ( (parts[ 1 ] === "-=" ? -1 : 1) * end ) + start;
8507
- }
8508
-
8509
- e.custom( start, end, unit );
8510
-
8511
- } else {
8512
- e.custom( start, val, "" );
8513
- }
8514
- }
8515
- }
8516
-
8517
- // For JS strict compliance
8518
- return true;
8519
- }
8520
-
8521
- return optall.queue === false ?
8522
- this.each( doAnimation ) :
8523
- this.queue( optall.queue, doAnimation );
8524
- },
8525
-
8526
- stop: function( type, clearQueue, gotoEnd ) {
8527
- if ( typeof type !== "string" ) {
8528
- gotoEnd = clearQueue;
8529
- clearQueue = type;
8530
- type = undefined;
8531
- }
8532
- if ( clearQueue && type !== false ) {
8533
- this.queue( type || "fx", [] );
8534
- }
8535
-
8536
- return this.each(function() {
8537
- var i,
8538
- hadTimers = false,
8539
- timers = jQuery.timers,
8540
- data = jQuery._data( this );
8541
-
8542
- // clear marker counters if we know they won't be
8543
- if ( !gotoEnd ) {
8544
- jQuery._unmark( true, this );
8545
- }
8546
-
8547
- function stopQueue( elem, data, i ) {
8548
- var hooks = data[ i ];
8549
- jQuery.removeData( elem, i, true );
8550
- hooks.stop( gotoEnd );
8551
- }
8552
-
8553
- if ( type == null ) {
8554
- for ( i in data ) {
8555
- if ( data[ i ].stop && i.indexOf(".run") === i.length - 4 ) {
8556
- stopQueue( this, data, i );
8557
- }
8558
- }
8559
- } else if ( data[ i = type + ".run" ] && data[ i ].stop ){
8560
- stopQueue( this, data, i );
8561
- }
8562
-
8563
- for ( i = timers.length; i--; ) {
8564
- if ( timers[ i ].elem === this && (type == null || timers[ i ].queue === type) ) {
8565
- if ( gotoEnd ) {
8566
-
8567
- // force the next step to be the last
8568
- timers[ i ]( true );
8569
- } else {
8570
- timers[ i ].saveState();
8571
- }
8572
- hadTimers = true;
8573
- timers.splice( i, 1 );
8574
- }
8575
- }
8576
-
8577
- // start the next in the queue if the last step wasn't forced
8578
- // timers currently will call their complete callbacks, which will dequeue
8579
- // but only if they were gotoEnd
8580
- if ( !( gotoEnd && hadTimers ) ) {
8581
- jQuery.dequeue( this, type );
8582
- }
8583
- });
8584
- }
8585
-
8586
- });
8587
-
8588
- // Animations created synchronously will run synchronously
8589
- function createFxNow() {
8590
- setTimeout( clearFxNow, 0 );
8591
- return ( fxNow = jQuery.now() );
8592
- }
8593
-
8594
- function clearFxNow() {
8595
- fxNow = undefined;
8596
- }
8597
-
8598
- // Generate parameters to create a standard animation
8599
- function genFx( type, num ) {
8600
- var obj = {};
8601
-
8602
- jQuery.each( fxAttrs.concat.apply([], fxAttrs.slice( 0, num )), function() {
8603
- obj[ this ] = type;
8604
- });
8605
-
8606
- return obj;
8607
- }
8608
-
8609
- // Generate shortcuts for custom animations
8610
- jQuery.each({
8611
- slideDown: genFx( "show", 1 ),
8612
- slideUp: genFx( "hide", 1 ),
8613
- slideToggle: genFx( "toggle", 1 ),
8614
- fadeIn: { opacity: "show" },
8615
- fadeOut: { opacity: "hide" },
8616
- fadeToggle: { opacity: "toggle" }
8617
- }, function( name, props ) {
8618
- jQuery.fn[ name ] = function( speed, easing, callback ) {
8619
- return this.animate( props, speed, easing, callback );
8620
- };
8621
- });
8622
-
8623
- jQuery.extend({
8624
- speed: function( speed, easing, fn ) {
8625
- var opt = speed && typeof speed === "object" ? jQuery.extend( {}, speed ) : {
8626
- complete: fn || !fn && easing ||
8627
- jQuery.isFunction( speed ) && speed,
8628
- duration: speed,
8629
- easing: fn && easing || easing && !jQuery.isFunction( easing ) && easing
8630
- };
8631
-
8632
- opt.duration = jQuery.fx.off ? 0 : typeof opt.duration === "number" ? opt.duration :
8633
- opt.duration in jQuery.fx.speeds ? jQuery.fx.speeds[ opt.duration ] : jQuery.fx.speeds._default;
8634
-
8635
- // normalize opt.queue - true/undefined/null -> "fx"
8636
- if ( opt.queue == null || opt.queue === true ) {
8637
- opt.queue = "fx";
8638
- }
8639
-
8640
- // Queueing
8641
- opt.old = opt.complete;
8642
-
8643
- opt.complete = function( noUnmark ) {
8644
- if ( jQuery.isFunction( opt.old ) ) {
8645
- opt.old.call( this );
8646
- }
8647
-
8648
- if ( opt.queue ) {
8649
- jQuery.dequeue( this, opt.queue );
8650
- } else if ( noUnmark !== false ) {
8651
- jQuery._unmark( this );
8652
- }
8653
- };
8654
-
8655
- return opt;
8656
- },
8657
-
8658
- easing: {
8659
- linear: function( p, n, firstNum, diff ) {
8660
- return firstNum + diff * p;
8661
- },
8662
- swing: function( p, n, firstNum, diff ) {
8663
- return ( ( -Math.cos( p*Math.PI ) / 2 ) + 0.5 ) * diff + firstNum;
8664
- }
8665
- },
8666
-
8667
- timers: [],
8668
-
8669
- fx: function( elem, options, prop ) {
8670
- this.options = options;
8671
- this.elem = elem;
8672
- this.prop = prop;
8673
-
8674
- options.orig = options.orig || {};
8675
- }
8676
-
8677
- });
8678
-
8679
- jQuery.fx.prototype = {
8680
- // Simple function for setting a style value
8681
- update: function() {
8682
- if ( this.options.step ) {
8683
- this.options.step.call( this.elem, this.now, this );
8684
- }
8685
-
8686
- ( jQuery.fx.step[ this.prop ] || jQuery.fx.step._default )( this );
8687
- },
8688
-
8689
- // Get the current size
8690
- cur: function() {
8691
- if ( this.elem[ this.prop ] != null && (!this.elem.style || this.elem.style[ this.prop ] == null) ) {
8692
- return this.elem[ this.prop ];
8693
- }
8694
-
8695
- var parsed,
8696
- r = jQuery.css( this.elem, this.prop );
8697
- // Empty strings, null, undefined and "auto" are converted to 0,
8698
- // complex values such as "rotate(1rad)" are returned as is,
8699
- // simple values such as "10px" are parsed to Float.
8700
- return isNaN( parsed = parseFloat( r ) ) ? !r || r === "auto" ? 0 : r : parsed;
8701
- },
8702
-
8703
- // Start an animation from one number to another
8704
- custom: function( from, to, unit ) {
8705
- var self = this,
8706
- fx = jQuery.fx;
8707
-
8708
- this.startTime = fxNow || createFxNow();
8709
- this.end = to;
8710
- this.now = this.start = from;
8711
- this.pos = this.state = 0;
8712
- this.unit = unit || this.unit || ( jQuery.cssNumber[ this.prop ] ? "" : "px" );
8713
-
8714
- function t( gotoEnd ) {
8715
- return self.step( gotoEnd );
8716
- }
8717
-
8718
- t.queue = this.options.queue;
8719
- t.elem = this.elem;
8720
- t.saveState = function() {
8721
- if ( self.options.hide && jQuery._data( self.elem, "fxshow" + self.prop ) === undefined ) {
8722
- jQuery._data( self.elem, "fxshow" + self.prop, self.start );
8723
- }
8724
- };
8725
-
8726
- if ( t() && jQuery.timers.push(t) && !timerId ) {
8727
- timerId = setInterval( fx.tick, fx.interval );
8728
- }
8729
- },
8730
-
8731
- // Simple 'show' function
8732
- show: function() {
8733
- var dataShow = jQuery._data( this.elem, "fxshow" + this.prop );
8734
-
8735
- // Remember where we started, so that we can go back to it later
8736
- this.options.orig[ this.prop ] = dataShow || jQuery.style( this.elem, this.prop );
8737
- this.options.show = true;
8738
-
8739
- // Begin the animation
8740
- // Make sure that we start at a small width/height to avoid any flash of content
8741
- if ( dataShow !== undefined ) {
8742
- // This show is picking up where a previous hide or show left off
8743
- this.custom( this.cur(), dataShow );
8744
- } else {
8745
- this.custom( this.prop === "width" || this.prop === "height" ? 1 : 0, this.cur() );
8746
- }
8747
-
8748
- // Start by showing the element
8749
- jQuery( this.elem ).show();
8750
- },
8751
-
8752
- // Simple 'hide' function
8753
- hide: function() {
8754
- // Remember where we started, so that we can go back to it later
8755
- this.options.orig[ this.prop ] = jQuery._data( this.elem, "fxshow" + this.prop ) || jQuery.style( this.elem, this.prop );
8756
- this.options.hide = true;
8757
-
8758
- // Begin the animation
8759
- this.custom( this.cur(), 0 );
8760
- },
8761
-
8762
- // Each step of an animation
8763
- step: function( gotoEnd ) {
8764
- var p, n, complete,
8765
- t = fxNow || createFxNow(),
8766
- done = true,
8767
- elem = this.elem,
8768
- options = this.options;
8769
-
8770
- if ( gotoEnd || t >= options.duration + this.startTime ) {
8771
- this.now = this.end;
8772
- this.pos = this.state = 1;
8773
- this.update();
8774
-
8775
- options.animatedProperties[ this.prop ] = true;
8776
-
8777
- for ( p in options.animatedProperties ) {
8778
- if ( options.animatedProperties[ p ] !== true ) {
8779
- done = false;
8780
- }
8781
- }
8782
-
8783
- if ( done ) {
8784
- // Reset the overflow
8785
- if ( options.overflow != null && !jQuery.support.shrinkWrapBlocks ) {
8786
-
8787
- jQuery.each( [ "", "X", "Y" ], function( index, value ) {
8788
- elem.style[ "overflow" + value ] = options.overflow[ index ];
8789
- });
8790
- }
8791
-
8792
- // Hide the element if the "hide" operation was done
8793
- if ( options.hide ) {
8794
- jQuery( elem ).hide();
8795
- }
8796
-
8797
- // Reset the properties, if the item has been hidden or shown
8798
- if ( options.hide || options.show ) {
8799
- for ( p in options.animatedProperties ) {
8800
- jQuery.style( elem, p, options.orig[ p ] );
8801
- jQuery.removeData( elem, "fxshow" + p, true );
8802
- // Toggle data is no longer needed
8803
- jQuery.removeData( elem, "toggle" + p, true );
8804
- }
8805
- }
8806
-
8807
- // Execute the complete function
8808
- // in the event that the complete function throws an exception
8809
- // we must ensure it won't be called twice. #5684
8810
-
8811
- complete = options.complete;
8812
- if ( complete ) {
8813
-
8814
- options.complete = false;
8815
- complete.call( elem );
8816
- }
8817
- }
8818
-
8819
- return false;
8820
-
8821
- } else {
8822
- // classical easing cannot be used with an Infinity duration
8823
- if ( options.duration == Infinity ) {
8824
- this.now = t;
8825
- } else {
8826
- n = t - this.startTime;
8827
- this.state = n / options.duration;
8828
-
8829
- // Perform the easing function, defaults to swing
8830
- this.pos = jQuery.easing[ options.animatedProperties[this.prop] ]( this.state, n, 0, 1, options.duration );
8831
- this.now = this.start + ( (this.end - this.start) * this.pos );
8832
- }
8833
- // Perform the next step of the animation
8834
- this.update();
8835
- }
8836
-
8837
- return true;
8838
- }
8839
- };
8840
-
8841
- jQuery.extend( jQuery.fx, {
8842
- tick: function() {
8843
- var timer,
8844
- timers = jQuery.timers,
8845
- i = 0;
8846
-
8847
- for ( ; i < timers.length; i++ ) {
8848
- timer = timers[ i ];
8849
- // Checks the timer has not already been removed
8850
- if ( !timer() && timers[ i ] === timer ) {
8851
- timers.splice( i--, 1 );
8852
- }
8853
- }
8854
-
8855
- if ( !timers.length ) {
8856
- jQuery.fx.stop();
8857
- }
8858
- },
8859
-
8860
- interval: 13,
8861
-
8862
- stop: function() {
8863
- clearInterval( timerId );
8864
- timerId = null;
8865
- },
8866
-
8867
- speeds: {
8868
- slow: 600,
8869
- fast: 200,
8870
- // Default speed
8871
- _default: 400
8872
- },
8873
-
8874
- step: {
8875
- opacity: function( fx ) {
8876
- jQuery.style( fx.elem, "opacity", fx.now );
8877
- },
8878
-
8879
- _default: function( fx ) {
8880
- if ( fx.elem.style && fx.elem.style[ fx.prop ] != null ) {
8881
- fx.elem.style[ fx.prop ] = fx.now + fx.unit;
8882
- } else {
8883
- fx.elem[ fx.prop ] = fx.now;
8884
- }
8885
- }
8886
- }
8887
- });
8888
-
8889
- // Adds width/height step functions
8890
- // Do not set anything below 0
8891
- jQuery.each([ "width", "height" ], function( i, prop ) {
8892
- jQuery.fx.step[ prop ] = function( fx ) {
8893
- jQuery.style( fx.elem, prop, Math.max(0, fx.now) );
8894
- };
8895
- });
8896
-
8897
- if ( jQuery.expr && jQuery.expr.filters ) {
8898
- jQuery.expr.filters.animated = function( elem ) {
8899
- return jQuery.grep(jQuery.timers, function( fn ) {
8900
- return elem === fn.elem;
8901
- }).length;
8902
- };
8903
- }
8904
-
8905
- // Try to restore the default display value of an element
8906
- function defaultDisplay( nodeName ) {
8907
-
8908
- if ( !elemdisplay[ nodeName ] ) {
8909
-
8910
- var body = document.body,
8911
- elem = jQuery( "<" + nodeName + ">" ).appendTo( body ),
8912
- display = elem.css( "display" );
8913
- elem.remove();
8914
-
8915
- // If the simple way fails,
8916
- // get element's real default display by attaching it to a temp iframe
8917
- if ( display === "none" || display === "" ) {
8918
- // No iframe to use yet, so create it
8919
- if ( !iframe ) {
8920
- iframe = document.createElement( "iframe" );
8921
- iframe.frameBorder = iframe.width = iframe.height = 0;
8922
- }
8923
-
8924
- body.appendChild( iframe );
8925
-
8926
- // Create a cacheable copy of the iframe document on first call.
8927
- // IE and Opera will allow us to reuse the iframeDoc without re-writing the fake HTML
8928
- // document to it; WebKit & Firefox won't allow reusing the iframe document.
8929
- if ( !iframeDoc || !iframe.createElement ) {
8930
- iframeDoc = ( iframe.contentWindow || iframe.contentDocument ).document;
8931
- iframeDoc.write( ( document.compatMode === "CSS1Compat" ? "<!doctype html>" : "" ) + "<html><body>" );
8932
- iframeDoc.close();
8933
- }
8934
-
8935
- elem = iframeDoc.createElement( nodeName );
8936
-
8937
- iframeDoc.body.appendChild( elem );
8938
-
8939
- display = jQuery.css( elem, "display" );
8940
- body.removeChild( iframe );
8941
- }
8942
-
8943
- // Store the correct default display
8944
- elemdisplay[ nodeName ] = display;
8945
- }
8946
-
8947
- return elemdisplay[ nodeName ];
8948
- }
8949
-
8950
-
8951
-
8952
-
8953
- var rtable = /^t(?:able|d|h)$/i,
8954
- rroot = /^(?:body|html)$/i;
8955
-
8956
- if ( "getBoundingClientRect" in document.documentElement ) {
8957
- jQuery.fn.offset = function( options ) {
8958
- var elem = this[0], box;
8959
-
8960
- if ( options ) {
8961
- return this.each(function( i ) {
8962
- jQuery.offset.setOffset( this, options, i );
8963
- });
8964
- }
8965
-
8966
- if ( !elem || !elem.ownerDocument ) {
8967
- return null;
8968
- }
8969
-
8970
- if ( elem === elem.ownerDocument.body ) {
8971
- return jQuery.offset.bodyOffset( elem );
8972
- }
8973
-
8974
- try {
8975
- box = elem.getBoundingClientRect();
8976
- } catch(e) {}
8977
-
8978
- var doc = elem.ownerDocument,
8979
- docElem = doc.documentElement;
8980
-
8981
- // Make sure we're not dealing with a disconnected DOM node
8982
- if ( !box || !jQuery.contains( docElem, elem ) ) {
8983
- return box ? { top: box.top, left: box.left } : { top: 0, left: 0 };
8984
- }
8985
-
8986
- var body = doc.body,
8987
- win = getWindow(doc),
8988
- clientTop = docElem.clientTop || body.clientTop || 0,
8989
- clientLeft = docElem.clientLeft || body.clientLeft || 0,
8990
- scrollTop = win.pageYOffset || jQuery.support.boxModel && docElem.scrollTop || body.scrollTop,
8991
- scrollLeft = win.pageXOffset || jQuery.support.boxModel && docElem.scrollLeft || body.scrollLeft,
8992
- top = box.top + scrollTop - clientTop,
8993
- left = box.left + scrollLeft - clientLeft;
8994
-
8995
- return { top: top, left: left };
8996
- };
8997
-
8998
- } else {
8999
- jQuery.fn.offset = function( options ) {
9000
- var elem = this[0];
9001
-
9002
- if ( options ) {
9003
- return this.each(function( i ) {
9004
- jQuery.offset.setOffset( this, options, i );
9005
- });
9006
- }
9007
-
9008
- if ( !elem || !elem.ownerDocument ) {
9009
- return null;
9010
- }
9011
-
9012
- if ( elem === elem.ownerDocument.body ) {
9013
- return jQuery.offset.bodyOffset( elem );
9014
- }
9015
-
9016
- var computedStyle,
9017
- offsetParent = elem.offsetParent,
9018
- prevOffsetParent = elem,
9019
- doc = elem.ownerDocument,
9020
- docElem = doc.documentElement,
9021
- body = doc.body,
9022
- defaultView = doc.defaultView,
9023
- prevComputedStyle = defaultView ? defaultView.getComputedStyle( elem, null ) : elem.currentStyle,
9024
- top = elem.offsetTop,
9025
- left = elem.offsetLeft;
9026
-
9027
- while ( (elem = elem.parentNode) && elem !== body && elem !== docElem ) {
9028
- if ( jQuery.support.fixedPosition && prevComputedStyle.position === "fixed" ) {
9029
- break;
9030
- }
9031
-
9032
- computedStyle = defaultView ? defaultView.getComputedStyle(elem, null) : elem.currentStyle;
9033
- top -= elem.scrollTop;
9034
- left -= elem.scrollLeft;
9035
-
9036
- if ( elem === offsetParent ) {
9037
- top += elem.offsetTop;
9038
- left += elem.offsetLeft;
9039
-
9040
- if ( jQuery.support.doesNotAddBorder && !(jQuery.support.doesAddBorderForTableAndCells && rtable.test(elem.nodeName)) ) {
9041
- top += parseFloat( computedStyle.borderTopWidth ) || 0;
9042
- left += parseFloat( computedStyle.borderLeftWidth ) || 0;
9043
- }
9044
-
9045
- prevOffsetParent = offsetParent;
9046
- offsetParent = elem.offsetParent;
9047
- }
9048
-
9049
- if ( jQuery.support.subtractsBorderForOverflowNotVisible && computedStyle.overflow !== "visible" ) {
9050
- top += parseFloat( computedStyle.borderTopWidth ) || 0;
9051
- left += parseFloat( computedStyle.borderLeftWidth ) || 0;
9052
- }
9053
-
9054
- prevComputedStyle = computedStyle;
9055
- }
9056
-
9057
- if ( prevComputedStyle.position === "relative" || prevComputedStyle.position === "static" ) {
9058
- top += body.offsetTop;
9059
- left += body.offsetLeft;
9060
- }
9061
-
9062
- if ( jQuery.support.fixedPosition && prevComputedStyle.position === "fixed" ) {
9063
- top += Math.max( docElem.scrollTop, body.scrollTop );
9064
- left += Math.max( docElem.scrollLeft, body.scrollLeft );
9065
- }
9066
-
9067
- return { top: top, left: left };
9068
- };
9069
- }
9070
-
9071
- jQuery.offset = {
9072
-
9073
- bodyOffset: function( body ) {
9074
- var top = body.offsetTop,
9075
- left = body.offsetLeft;
9076
-
9077
- if ( jQuery.support.doesNotIncludeMarginInBodyOffset ) {
9078
- top += parseFloat( jQuery.css(body, "marginTop") ) || 0;
9079
- left += parseFloat( jQuery.css(body, "marginLeft") ) || 0;
9080
- }
9081
-
9082
- return { top: top, left: left };
9083
- },
9084
-
9085
- setOffset: function( elem, options, i ) {
9086
- var position = jQuery.css( elem, "position" );
9087
-
9088
- // set position first, in-case top/left are set even on static elem
9089
- if ( position === "static" ) {
9090
- elem.style.position = "relative";
9091
- }
9092
-
9093
- var curElem = jQuery( elem ),
9094
- curOffset = curElem.offset(),
9095
- curCSSTop = jQuery.css( elem, "top" ),
9096
- curCSSLeft = jQuery.css( elem, "left" ),
9097
- calculatePosition = ( position === "absolute" || position === "fixed" ) && jQuery.inArray("auto", [curCSSTop, curCSSLeft]) > -1,
9098
- props = {}, curPosition = {}, curTop, curLeft;
9099
-
9100
- // need to be able to calculate position if either top or left is auto and position is either absolute or fixed
9101
- if ( calculatePosition ) {
9102
- curPosition = curElem.position();
9103
- curTop = curPosition.top;
9104
- curLeft = curPosition.left;
9105
- } else {
9106
- curTop = parseFloat( curCSSTop ) || 0;
9107
- curLeft = parseFloat( curCSSLeft ) || 0;
9108
- }
9109
-
9110
- if ( jQuery.isFunction( options ) ) {
9111
- options = options.call( elem, i, curOffset );
9112
- }
9113
-
9114
- if ( options.top != null ) {
9115
- props.top = ( options.top - curOffset.top ) + curTop;
9116
- }
9117
- if ( options.left != null ) {
9118
- props.left = ( options.left - curOffset.left ) + curLeft;
9119
- }
9120
-
9121
- if ( "using" in options ) {
9122
- options.using.call( elem, props );
9123
- } else {
9124
- curElem.css( props );
9125
- }
9126
- }
9127
- };
9128
-
9129
-
9130
- jQuery.fn.extend({
9131
-
9132
- position: function() {
9133
- if ( !this[0] ) {
9134
- return null;
9135
- }
9136
-
9137
- var elem = this[0],
9138
-
9139
- // Get *real* offsetParent
9140
- offsetParent = this.offsetParent(),
9141
-
9142
- // Get correct offsets
9143
- offset = this.offset(),
9144
- parentOffset = rroot.test(offsetParent[0].nodeName) ? { top: 0, left: 0 } : offsetParent.offset();
9145
-
9146
- // Subtract element margins
9147
- // note: when an element has margin: auto the offsetLeft and marginLeft
9148
- // are the same in Safari causing offset.left to incorrectly be 0
9149
- offset.top -= parseFloat( jQuery.css(elem, "marginTop") ) || 0;
9150
- offset.left -= parseFloat( jQuery.css(elem, "marginLeft") ) || 0;
9151
-
9152
- // Add offsetParent borders
9153
- parentOffset.top += parseFloat( jQuery.css(offsetParent[0], "borderTopWidth") ) || 0;
9154
- parentOffset.left += parseFloat( jQuery.css(offsetParent[0], "borderLeftWidth") ) || 0;
9155
-
9156
- // Subtract the two offsets
9157
- return {
9158
- top: offset.top - parentOffset.top,
9159
- left: offset.left - parentOffset.left
9160
- };
9161
- },
9162
-
9163
- offsetParent: function() {
9164
- return this.map(function() {
9165
- var offsetParent = this.offsetParent || document.body;
9166
- while ( offsetParent && (!rroot.test(offsetParent.nodeName) && jQuery.css(offsetParent, "position") === "static") ) {
9167
- offsetParent = offsetParent.offsetParent;
9168
- }
9169
- return offsetParent;
9170
- });
9171
- }
9172
- });
9173
-
9174
-
9175
- // Create scrollLeft and scrollTop methods
9176
- jQuery.each( ["Left", "Top"], function( i, name ) {
9177
- var method = "scroll" + name;
9178
-
9179
- jQuery.fn[ method ] = function( val ) {
9180
- var elem, win;
9181
-
9182
- if ( val === undefined ) {
9183
- elem = this[ 0 ];
9184
-
9185
- if ( !elem ) {
9186
- return null;
9187
- }
9188
-
9189
- win = getWindow( elem );
9190
-
9191
- // Return the scroll offset
9192
- return win ? ("pageXOffset" in win) ? win[ i ? "pageYOffset" : "pageXOffset" ] :
9193
- jQuery.support.boxModel && win.document.documentElement[ method ] ||
9194
- win.document.body[ method ] :
9195
- elem[ method ];
9196
- }
9197
-
9198
- // Set the scroll offset
9199
- return this.each(function() {
9200
- win = getWindow( this );
9201
-
9202
- if ( win ) {
9203
- win.scrollTo(
9204
- !i ? val : jQuery( win ).scrollLeft(),
9205
- i ? val : jQuery( win ).scrollTop()
9206
- );
9207
-
9208
- } else {
9209
- this[ method ] = val;
9210
- }
9211
- });
9212
- };
9213
- });
9214
-
9215
- function getWindow( elem ) {
9216
- return jQuery.isWindow( elem ) ?
9217
- elem :
9218
- elem.nodeType === 9 ?
9219
- elem.defaultView || elem.parentWindow :
9220
- false;
9221
- }
9222
-
9223
-
9224
-
9225
-
9226
- // Create width, height, innerHeight, innerWidth, outerHeight and outerWidth methods
9227
- jQuery.each([ "Height", "Width" ], function( i, name ) {
9228
-
9229
- var type = name.toLowerCase();
9230
-
9231
- // innerHeight and innerWidth
9232
- jQuery.fn[ "inner" + name ] = function() {
9233
- var elem = this[0];
9234
- return elem ?
9235
- elem.style ?
9236
- parseFloat( jQuery.css( elem, type, "padding" ) ) :
9237
- this[ type ]() :
9238
- null;
9239
- };
9240
-
9241
- // outerHeight and outerWidth
9242
- jQuery.fn[ "outer" + name ] = function( margin ) {
9243
- var elem = this[0];
9244
- return elem ?
9245
- elem.style ?
9246
- parseFloat( jQuery.css( elem, type, margin ? "margin" : "border" ) ) :
9247
- this[ type ]() :
9248
- null;
9249
- };
9250
-
9251
- jQuery.fn[ type ] = function( size ) {
9252
- // Get window width or height
9253
- var elem = this[0];
9254
- if ( !elem ) {
9255
- return size == null ? null : this;
9256
- }
9257
-
9258
- if ( jQuery.isFunction( size ) ) {
9259
- return this.each(function( i ) {
9260
- var self = jQuery( this );
9261
- self[ type ]( size.call( this, i, self[ type ]() ) );
9262
- });
9263
- }
9264
-
9265
- if ( jQuery.isWindow( elem ) ) {
9266
- // Everyone else use document.documentElement or document.body depending on Quirks vs Standards mode
9267
- // 3rd condition allows Nokia support, as it supports the docElem prop but not CSS1Compat
9268
- var docElemProp = elem.document.documentElement[ "client" + name ],
9269
- body = elem.document.body;
9270
- return elem.document.compatMode === "CSS1Compat" && docElemProp ||
9271
- body && body[ "client" + name ] || docElemProp;
9272
-
9273
- // Get document width or height
9274
- } else if ( elem.nodeType === 9 ) {
9275
- // Either scroll[Width/Height] or offset[Width/Height], whichever is greater
9276
- return Math.max(
9277
- elem.documentElement["client" + name],
9278
- elem.body["scroll" + name], elem.documentElement["scroll" + name],
9279
- elem.body["offset" + name], elem.documentElement["offset" + name]
9280
- );
9281
-
9282
- // Get or set width or height on the element
9283
- } else if ( size === undefined ) {
9284
- var orig = jQuery.css( elem, type ),
9285
- ret = parseFloat( orig );
9286
-
9287
- return jQuery.isNumeric( ret ) ? ret : orig;
9288
-
9289
- // Set the width or height on the element (default to pixels if value is unitless)
9290
- } else {
9291
- return this.css( type, typeof size === "string" ? size : size + "px" );
9292
- }
9293
- };
9294
-
9295
- });
9296
-
9297
-
9298
- // Expose jQuery to the global object
9299
- window.jQuery = window.$ = jQuery;
9300
- })( window );
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
lib/media-element/loading.gif DELETED
Binary file
lib/media-element/mediaelementplayer.js DELETED
@@ -1,2804 +0,0 @@
1
- /*!
2
- * MediaElementPlayer
3
- * http://mediaelementjs.com/
4
- *
5
- * Creates a controller bar for HTML5 <video> add <audio> tags
6
- * using jQuery and MediaElement.js (HTML5 Flash/Silverlight wrapper)
7
- *
8
- * Copyright 2010-2012, John Dyer (http://j.hn/)
9
- * Dual licensed under the MIT or GPL Version 2 licenses.
10
- *
11
- */
12
- if (typeof jQuery != 'undefined') {
13
- mejs.$ = jQuery;
14
- } else if (typeof ender != 'undefined') {
15
- mejs.$ = ender;
16
- }
17
- (function ($) {
18
-
19
- // default player values
20
- mejs.MepDefaults = {
21
- // url to poster (to fix iOS 3.x)
22
- poster: '',
23
- // default if the <video width> is not specified
24
- defaultVideoWidth: 480,
25
- // default if the <video height> is not specified
26
- defaultVideoHeight: 270,
27
- // if set, overrides <video width>
28
- videoWidth: -1,
29
- // if set, overrides <video height>
30
- videoHeight: -1,
31
- // default if the user doesn't specify
32
- defaultAudioWidth: 400,
33
- // default if the user doesn't specify
34
- defaultAudioHeight: 30,
35
-
36
- // default amount to move back when back key is pressed
37
- defaultSeekBackwardInterval: function(media) {
38
- return (media.duration * 0.05);
39
- },
40
- // default amount to move forward when forward key is pressed
41
- defaultSeekForwardInterval: function(media) {
42
- return (media.duration * 0.05);
43
- },
44
-
45
- // width of audio player
46
- audioWidth: -1,
47
- // height of audio player
48
- audioHeight: -1,
49
- // initial volume when the player starts (overrided by user cookie)
50
- startVolume: 0.8,
51
- // useful for <audio> player loops
52
- loop: false,
53
- // resize to media dimensions
54
- enableAutosize: true,
55
- // forces the hour marker (##:00:00)
56
- alwaysShowHours: false,
57
-
58
- // show framecount in timecode (##:00:00:00)
59
- showTimecodeFrameCount: false,
60
- // used when showTimecodeFrameCount is set to true
61
- framesPerSecond: 25,
62
-
63
- // automatically calculate the width of the progress bar based on the sizes of other elements
64
- autosizeProgress : true,
65
- // Hide controls when playing and mouse is not over the video
66
- alwaysShowControls: false,
67
- // force iPad's native controls
68
- iPadUseNativeControls: false,
69
- // force iPhone's native controls
70
- iPhoneUseNativeControls: false,
71
- // force Android's native controls
72
- AndroidUseNativeControls: false,
73
- // features to show
74
- features: ['playpause','current','progress','duration','tracks','volume','fullscreen'],
75
- // only for dynamic
76
- isVideo: true,
77
-
78
- // turns keyboard support on and off for this instance
79
- enableKeyboard: true,
80
-
81
- // whenthis player starts, it will pause other players
82
- pauseOtherPlayers: true,
83
-
84
- // array of keyboard actions such as play pause
85
- keyActions: [
86
- {
87
- keys: [
88
- 32, // SPACE
89
- 179 // GOOGLE play/pause button
90
- ],
91
- action: function(player, media) {
92
- if (media.paused || media.ended) {
93
- media.play();
94
- } else {
95
- media.pause();
96
- }
97
- }
98
- },
99
- {
100
- keys: [38], // UP
101
- action: function(player, media) {
102
- var newVolume = Math.min(media.volume + 0.1, 1);
103
- media.setVolume(newVolume);
104
- }
105
- },
106
- {
107
- keys: [40], // DOWN
108
- action: function(player, media) {
109
- var newVolume = Math.max(media.volume - 0.1, 0);
110
- media.setVolume(newVolume);
111
- }
112
- },
113
- {
114
- keys: [
115
- 37, // LEFT
116
- 227 // Google TV rewind
117
- ],
118
- action: function(player, media) {
119
- if (!isNaN(media.duration) && media.duration > 0) {
120
- if (player.isVideo) {
121
- player.showControls();
122
- player.startControlsTimer();
123
- }
124
-
125
- // 5%
126
- var newTime = Math.max(media.currentTime - player.options.defaultSeekBackwardInterval(media), 0);
127
- media.setCurrentTime(newTime);
128
- }
129
- }
130
- },
131
- {
132
- keys: [
133
- 39, // RIGHT
134
- 228 // Google TV forward
135
- ],
136
- action: function(player, media) {
137
- if (!isNaN(media.duration) && media.duration > 0) {
138
- if (player.isVideo) {
139
- player.showControls();
140
- player.startControlsTimer();
141
- }
142
-
143
- // 5%
144
- var newTime = Math.min(media.currentTime + player.options.defaultSeekForwardInterval(media), media.duration);
145
- media.setCurrentTime(newTime);
146
- }
147
- }
148
- },
149
- {
150
- keys: [70], // f
151
- action: function(player, media) {
152
- if (typeof player.enterFullScreen != 'undefined') {
153
- if (player.isFullScreen) {
154
- player.exitFullScreen();
155
- } else {
156
- player.enterFullScreen();
157
- }
158
- }
159
- }
160
- }
161
- ]
162
- };
163
-
164
- mejs.mepIndex = 0;
165
-
166
- mejs.players = [];
167
-
168
- // wraps a MediaElement object in player controls
169
- mejs.MediaElementPlayer = function(node, o) {
170
- // enforce object, even without "new" (via John Resig)
171
- if ( !(this instanceof mejs.MediaElementPlayer) ) {
172
- return new mejs.MediaElementPlayer(node, o);
173
- }
174
-
175
- var t = this;
176
-
177
- // these will be reset after the MediaElement.success fires
178
- t.$media = t.$node = $(node);
179
- t.node = t.media = t.$media[0];
180
-
181
- // check for existing player
182
- if (typeof t.node.player != 'undefined') {
183
- return t.node.player;
184
- } else {
185
- // attach player to DOM node for reference
186
- t.node.player = t;
187
- }
188
-
189
-
190
- // try to get options from data-mejsoptions
191
- if (typeof o == 'undefined') {
192
- o = t.$node.data('mejsoptions');
193
- }
194
-
195
- // extend default options
196
- t.options = $.extend({},mejs.MepDefaults,o);
197
-
198
- // add to player array (for focus events)
199
- mejs.players.push(t);
200
-
201
- // start up
202
- t.init();
203
-
204
- return t;
205
- };
206
-
207
- // actual player
208
- mejs.MediaElementPlayer.prototype = {
209
-
210
- hasFocus: false,
211
-
212
- controlsAreVisible: true,
213
-
214
- init: function() {
215
-
216
- var
217
- t = this,
218
- mf = mejs.MediaFeatures,
219
- // options for MediaElement (shim)
220
- meOptions = $.extend(true, {}, t.options, {
221
- success: function(media, domNode) { t.meReady(media, domNode); },
222
- error: function(e) { t.handleError(e);}
223
- }),
224
- tagName = t.media.tagName.toLowerCase();
225
-
226
- t.isDynamic = (tagName !== 'audio' && tagName !== 'video');
227
-
228
- if (t.isDynamic) {
229
- // get video from src or href?
230
- t.isVideo = t.options.isVideo;
231
- } else {
232
- t.isVideo = (tagName !== 'audio' && t.options.isVideo);
233
- }
234
-
235
- // use native controls in iPad, iPhone, and Android
236
- if ((mf.isiPad && t.options.iPadUseNativeControls) || (mf.isiPhone && t.options.iPhoneUseNativeControls)) {
237
-
238
- // add controls and stop
239
- t.$media.attr('controls', 'controls');
240
-
241
- // attempt to fix iOS 3 bug
242
- //t.$media.removeAttr('poster');
243
- // no Issue found on iOS3 -ttroxell
244
-
245
- // override Apple's autoplay override for iPads
246
- if (mf.isiPad && t.media.getAttribute('autoplay') !== null) {
247
- t.media.load();
248
- t.media.play();
249
- }
250
-
251
- } else if (mf.isAndroid && t.AndroidUseNativeControls) {
252
-
253
- // leave default player
254
-
255
- } else {
256
-
257
- // DESKTOP: use MediaElementPlayer controls
258
-
259
- // remove native controls
260
- t.$media.removeAttr('controls');
261
-
262
- // unique ID
263
- t.id = 'mep_' + mejs.mepIndex++;
264
-
265
- // build container
266
- t.container =
267
- $('<div id="' + t.id + '" class="mejs-container">'+
268
- '<div class="mejs-inner">'+
269
- '<div class="mejs-mediaelement"></div>'+
270
- '<div class="mejs-layers"></div>'+
271
- '<div class="mejs-controls"></div>'+
272
- '<div class="mejs-clear"></div>'+
273
- '</div>' +
274
- '</div>')
275
- .addClass(t.$media[0].className)
276
- .insertBefore(t.$media);
277
-
278
- // add classes for user and content
279
- t.container.addClass(
280
- (mf.isAndroid ? 'mejs-android ' : '') +
281
- (mf.isiOS ? 'mejs-ios ' : '') +
282
- (mf.isiPad ? 'mejs-ipad ' : '') +
283
- (mf.isiPhone ? 'mejs-iphone ' : '') +
284
- (t.isVideo ? 'mejs-video ' : 'mejs-audio ')
285
- );
286
-
287
-
288
- // move the <video/video> tag into the right spot
289
- if (mf.isiOS) {
290
-
291
- // sadly, you can't move nodes in iOS, so we have to destroy and recreate it!
292
- var $newMedia = t.$media.clone();
293
-
294
- t.container.find('.mejs-mediaelement').append($newMedia);
295
-
296
- t.$media.remove();
297
- t.$node = t.$media = $newMedia;
298
- t.node = t.media = $newMedia[0]
299
-
300
- } else {
301
-
302
- // normal way of moving it into place (doesn't work on iOS)
303
- t.container.find('.mejs-mediaelement').append(t.$media);
304
- }
305
-
306
- // find parts
307
- t.controls = t.container.find('.mejs-controls');
308
- t.layers = t.container.find('.mejs-layers');
309
-
310
- // determine the size
311
-
312
- /* size priority:
313
- (1) videoWidth (forced),
314
- (2) style="width;height;"
315
- (3) width attribute,
316
- (4) defaultVideoWidth (for unspecified cases)
317
- */
318
-
319
- var tagType = (t.isVideo ? 'video' : 'audio'),
320
- capsTagName = tagType.substring(0,1).toUpperCase() + tagType.substring(1);
321
-
322
-
323
- if (t.options[tagType + 'Width'] > 0 || t.options[tagType + 'Width'].toString().indexOf('%') > -1) {
324
- t.width = t.options[tagType + 'Width'];
325
- } else if (t.media.style.width !== '' && t.media.style.width !== null) {
326
- t.width = t.media.style.width;
327
- } else if (t.media.getAttribute('width') !== null) {
328
- t.width = t.$media.attr('width');
329
- } else {
330
- t.width = t.options['default' + capsTagName + 'Width'];
331
- }
332
-
333
- if (t.options[tagType + 'Height'] > 0 || t.options[tagType + 'Height'].toString().indexOf('%') > -1) {
334
- t.height = t.options[tagType + 'Height'];
335
- } else if (t.media.style.height !== '' && t.media.style.height !== null) {
336
- t.height = t.media.style.height;
337
- } else if (t.$media[0].getAttribute('height') !== null) {
338
- t.height = t.$media.attr('height');
339
- } else {
340
- t.height = t.options['default' + capsTagName + 'Height'];
341
- }
342
-
343
- // set the size, while we wait for the plugins to load below
344
- t.setPlayerSize(t.width, t.height);
345
-
346
- // create MediaElementShim
347
- meOptions.pluginWidth = t.height;
348
- meOptions.pluginHeight = t.width;
349
- }
350
-
351
-
352
-
353
- // create MediaElement shim
354
- mejs.MediaElement(t.$media[0], meOptions);
355
- },
356
-
357
- showControls: function(doAnimation) {
358
- var t = this;
359
-
360
- doAnimation = typeof doAnimation == 'undefined' || doAnimation;
361
-
362
- if (t.controlsAreVisible)
363
- return;
364
-
365
- if (doAnimation) {
366
- t.controls
367
- .css('visibility','visible')
368
- .stop(true, true).fadeIn(200, function() {t.controlsAreVisible = true;});
369
-
370
- // any additional controls people might add and want to hide
371
- t.container.find('.mejs-control')
372
- .css('visibility','visible')
373
- .stop(true, true).fadeIn(200, function() {t.controlsAreVisible = true;});
374
-
375
- } else {
376
- t.controls
377
- .css('visibility','visible')
378
- .css('display','block');
379
-
380
- // any additional controls people might add and want to hide
381
- t.container.find('.mejs-control')
382
- .css('visibility','visible')
383
- .css('display','block');
384
-
385
- t.controlsAreVisible = true;
386
- }
387
-
388
- t.setControlsSize();
389
-
390
- },
391
-
392
- hideControls: function(doAnimation) {
393
- var t = this;
394
-
395
- doAnimation = typeof doAnimation == 'undefined' || doAnimation;
396
-
397
- if (!t.controlsAreVisible)
398
- return;
399
-
400
- if (doAnimation) {
401
- // fade out main controls
402
- t.controls.stop(true, true).fadeOut(200, function() {
403
- $(this)
404
- .css('visibility','hidden')
405
- .css('display','block');
406
-
407
- t.controlsAreVisible = false;
408
- });
409
-
410
- // any additional controls people might add and want to hide
411
- t.container.find('.mejs-control').stop(true, true).fadeOut(200, function() {
412
- $(this)
413
- .css('visibility','hidden')
414
- .css('display','block');
415
- });
416
- } else {
417
-
418
- // hide main controls
419
- t.controls
420
- .css('visibility','hidden')
421
- .css('display','block');
422
-
423
- // hide others
424
- t.container.find('.mejs-control')
425
- .css('visibility','hidden')
426
- .css('display','block');
427
-
428
- t.controlsAreVisible = false;
429
- }
430
- },
431
-
432
- controlsTimer: null,
433
-
434
- startControlsTimer: function(timeout) {
435
-
436
- var t = this;
437
-
438
- timeout = typeof timeout != 'undefined' ? timeout : 1500;
439
-
440
- t.killControlsTimer('start');
441
-
442
- t.controlsTimer = setTimeout(function() {
443
- //console.log('timer fired');
444
- t.hideControls();
445
- t.killControlsTimer('hide');
446
- }, timeout);
447
- },
448
-
449
- killControlsTimer: function(src) {
450
-
451
- var t = this;
452
-
453
- if (t.controlsTimer !== null) {
454
- clearTimeout(t.controlsTimer);
455
- delete t.controlsTimer;
456
- t.controlsTimer = null;
457
- }
458
- },
459
-
460
- controlsEnabled: true,
461
-
462
- disableControls: function() {
463
- var t= this;
464
-
465
- t.killControlsTimer();
466
- t.hideControls(false);
467
- this.controlsEnabled = false;
468
- },
469
-
470
- enableControls: function() {
471
- var t= this;
472
-
473
- t.showControls(false);
474
-
475
- t.controlsEnabled = true;
476
- },
477
-
478
-
479
- // Sets up all controls and events
480
- meReady: function(media, domNode) {
481
-
482
-
483
- var t = this,
484
- mf = mejs.MediaFeatures,
485
- autoplayAttr = domNode.getAttribute('autoplay'),
486
- autoplay = !(typeof autoplayAttr == 'undefined' || autoplayAttr === null || autoplayAttr === 'false'),
487
- featureIndex,
488
- feature;
489
-
490
- // make sure it can't create itself again if a plugin reloads
491
- if (t.created)
492
- return;
493
- else
494
- t.created = true;
495
-
496
- t.media = media;
497
- t.domNode = domNode;
498
-
499
- if (!(mf.isAndroid && t.options.AndroidUseNativeControls) && !(mf.isiPad && t.options.iPadUseNativeControls) && !(mf.isiPhone && t.options.iPhoneUseNativeControls)) {
500
-
501
- // two built in features
502
- t.buildposter(t, t.controls, t.layers, t.media);
503
- t.buildkeyboard(t, t.controls, t.layers, t.media);
504
- t.buildoverlays(t, t.controls, t.layers, t.media);
505
-
506
- // grab for use by features
507
- t.findTracks();
508
-
509
- // add user-defined features/controls
510
- for (featureIndex in t.options.features) {
511
- feature = t.options.features[featureIndex];
512
- if (t['build' + feature]) {
513
- try {
514
- t['build' + feature](t, t.controls, t.layers, t.media);
515
- } catch (e) {
516
- // TODO: report control error
517
- //throw e;
518
- //console.log('error building ' + feature);
519
- //console.log(e);
520
- }
521
- }
522
- }
523
-
524
- t.container.trigger('controlsready');
525
-
526
- // reset all layers and controls
527
- t.setPlayerSize(t.width, t.height);
528
- t.setControlsSize();
529
-
530
-
531
- // controls fade
532
- if (t.isVideo) {
533
-
534
- if (mejs.MediaFeatures.hasTouch) {
535
-
536
- // for touch devices (iOS, Android)
537
- // show/hide without animation on touch
538
-
539
- t.$media.bind('touchstart', function() {
540
-
541
-
542
- // toggle controls
543
- if (t.controlsAreVisible) {
544
- t.hideControls(false);
545
- } else {
546
- if (t.controlsEnabled) {
547
- t.showControls(false);
548
- }
549
- }
550
- });
551
-
552
- } else {
553
- // click controls
554
- var clickElement = (t.media.pluginType == 'native') ? t.$media : $(t.media.pluginElement);
555
-
556
- // click to play/pause
557
- clickElement.click(function() {
558
- if (media.paused) {
559
- media.play();
560
- } else {
561
- media.pause();
562
- }
563
- });
564
-
565
-
566
- // show/hide controls
567
- t.container
568
- .bind('mouseenter mouseover', function () {
569
- if (t.controlsEnabled) {
570
- if (!t.options.alwaysShowControls) {
571
- t.killControlsTimer('enter');
572
- t.showControls();
573
- t.startControlsTimer(2500);
574
- }
575
- }
576
- })
577
- .bind('mousemove', function() {
578
- if (t.controlsEnabled) {
579
- if (!t.controlsAreVisible) {
580
- t.showControls();
581
- }
582
- //t.killControlsTimer('move');
583
- if (!t.options.alwaysShowControls) {
584
- t.startControlsTimer(2500);
585
- }
586
- }
587
- })
588
- .bind('mouseleave', function () {
589
- if (t.controlsEnabled) {
590
- if (!t.media.paused && !t.options.alwaysShowControls) {
591
- t.startControlsTimer(1000);
592
- }
593
- }
594
- });
595
- }
596
-
597
- // check for autoplay
598
- if (autoplay && !t.options.alwaysShowControls) {
599
- t.hideControls();
600
- }
601
-
602
- // resizer
603
- if (t.options.enableAutosize) {
604
- t.media.addEventListener('loadedmetadata', function(e) {
605
- // if the <video height> was not set and the options.videoHeight was not set
606
- // then resize to the real dimensions
607
- if (t.options.videoHeight <= 0 && t.domNode.getAttribute('height') === null && !isNaN(e.target.videoHeight)) {
608
- t.setPlayerSize(e.target.videoWidth, e.target.videoHeight);
609
- t.setControlsSize();
610
- t.media.setVideoSize(e.target.videoWidth, e.target.videoHeight);
611
- }
612
- }, false);
613
- }
614
- }
615
-
616
- // EVENTS
617
-
618
- // FOCUS: when a video starts playing, it takes focus from other players (possibily pausing them)
619
- media.addEventListener('play', function() {
620
-
621
- // go through all other players
622
- for (var i=0, il=mejs.players.length; i<il; i++) {
623
- var p = mejs.players[i];
624
- if (p.id != t.id && t.options.pauseOtherPlayers && !p.paused && !p.ended) {
625
- p.pause();
626
- }
627
- p.hasFocus = false;
628
- }
629
-
630
- t.hasFocus = true;
631
- },false);
632
-
633
-
634
- // ended for all
635
- t.media.addEventListener('ended', function (e) {
636
- try{
637
- t.media.setCurrentTime(0);
638
- } catch (exp) {
639
-
640
- }
641
- t.media.pause();
642
-
643
- if (t.setProgressRail)
644
- t.setProgressRail();
645
- if (t.setCurrentRail)
646
- t.setCurrentRail();
647
-
648
- if (t.options.loop) {
649
- t.media.play();
650
- } else if (!t.options.alwaysShowControls && t.controlsEnabled) {
651
- t.showControls();
652
- }
653
- }, false);
654
-
655
- // resize on the first play
656
- t.media.addEventListener('loadedmetadata', function(e) {
657
- if (t.updateDuration) {
658
- t.updateDuration();
659
- }
660
- if (t.updateCurrent) {
661
- t.updateCurrent();
662
- }
663
-
664
- if (!t.isFullScreen) {
665
- t.setPlayerSize(t.width, t.height);
666
- t.setControlsSize();
667
- }
668
- }, false);
669
-
670
-
671
- // webkit has trouble doing this without a delay
672
- setTimeout(function () {
673
- t.setPlayerSize(t.width, t.height);
674
- t.setControlsSize();
675
- }, 50);
676
-
677
- // adjust controls whenever window sizes (used to be in fullscreen only)
678
- $(window).resize(function() {
679
-
680
- // don't resize for fullscreen mode
681
- if ( !(t.isFullScreen || (mejs.MediaFeatures.hasTrueNativeFullScreen && document.webkitIsFullScreen)) ) {
682
- t.setPlayerSize(t.width, t.height);
683
- }
684
-
685
- // always adjust controls
686
- t.setControlsSize();
687
- });
688
-
689
- // TEMP: needs to be moved somewhere else
690
- if (t.media.pluginType == 'youtube') {
691
- t.container.find('.mejs-overlay-play').hide();
692
- }
693
- }
694
-
695
- // force autoplay for HTML5
696
- if (autoplay && media.pluginType == 'native') {
697
- media.load();
698
- media.play();
699
- }
700
-
701
-
702
- if (t.options.success) {
703
-
704
- if (typeof t.options.success == 'string') {
705
- window[t.options.success](t.media, t.domNode, t);
706
- } else {
707
- t.options.success(t.media, t.domNode, t);
708
- }
709
- }
710
- },
711
-
712
- handleError: function(e) {
713
- var t = this;
714
-
715
- t.controls.hide();
716
-
717
- // Tell user that the file cannot be played
718
- if (t.options.error) {
719
- t.options.error(e);
720
- }
721
- },
722
-
723
- setPlayerSize: function(width,height) {
724
- var t = this;
725
-
726
- if (typeof width != 'undefined')
727
- t.width = width;
728
-
729
- if (typeof height != 'undefined')
730
- t.height = height;
731
-
732
- // detect 100% mode
733
- if (t.height.toString().indexOf('%') > 0 || t.$node.css('max-width') === '100%') {
734
-
735
- // do we have the native dimensions yet?
736
- var
737
- nativeWidth = (t.media.videoWidth && t.media.videoWidth > 0) ? t.media.videoWidth : t.options.defaultVideoWidth,
738
- nativeHeight = (t.media.videoHeight && t.media.videoHeight > 0) ? t.media.videoHeight : t.options.defaultVideoHeight,
739
- parentWidth = t.container.parent().width(),
740
- newHeight = parseInt(parentWidth * nativeHeight/nativeWidth, 10);
741
-
742
- if (t.container.parent()[0].tagName.toLowerCase() === 'body') { // && t.container.siblings().count == 0) {
743
- parentWidth = $(window).width();
744
- newHeight = $(window).height();
745
- }
746
-
747
- if ( newHeight != 0 ) {
748
- // set outer container size
749
- t.container
750
- .width(parentWidth)
751
- .height(newHeight);
752
-
753
- // set native <video>
754
- t.$media
755
- .width('100%')
756
- .height('100%');
757
-
758
- // set shims
759
- t.container.find('object, embed, iframe')
760
- .width('100%')
761
- .height('100%');
762
-
763
- // if shim is ready, send the size to the embeded plugin
764
- if (t.isVideo) {
765
- if (t.media.setVideoSize) {
766
- t.media.setVideoSize(parentWidth, newHeight);
767
- }
768
- }
769
-
770
- // set the layers
771
- t.layers.children('.mejs-layer')
772
- .width('100%')
773
- .height('100%');
774
- }
775
-
776
-
777
- } else {
778
-
779
- t.container
780
- .width(t.width)
781
- .height(t.height);
782
-
783
- t.layers.children('.mejs-layer')
784
- .width(t.width)
785
- .height(t.height);
786
-
787
- }
788
- },
789
-
790
- setControlsSize: function() {
791
- var t = this,
792
- usedWidth = 0,
793
- railWidth = 0,
794
- rail = t.controls.find('.mejs-time-rail'),
795
- total = t.controls.find('.mejs-time-total'),
796
- current = t.controls.find('.mejs-time-current'),
797
- loaded = t.controls.find('.mejs-time-loaded'),
798
- others = rail.siblings();
799
-
800
-
801
- // allow the size to come from custom CSS
802
- if (t.options && !t.options.autosizeProgress) {
803
- // Also, frontends devs can be more flexible
804
- // due the opportunity of absolute positioning.
805
- railWidth = parseInt(rail.css('width'));
806
- }
807
-
808
- // attempt to autosize
809
- if (railWidth === 0 || !railWidth) {
810
-
811
- // find the size of all the other controls besides the rail
812
- others.each(function() {
813
- if ($(this).css('position') != 'absolute') {
814
- usedWidth += $(this).outerWidth(true);
815
- }
816
- });
817
-
818
- // fit the rail into the remaining space
819
- railWidth = t.controls.width() - usedWidth - (rail.outerWidth(true) - rail.width());
820
- }
821
-
822
- // outer area
823
- rail.width(railWidth);
824
- // dark space
825
- total.width(railWidth - (total.outerWidth(true) - total.width()));
826
-
827
- if (t.setProgressRail)
828
- t.setProgressRail();
829
- if (t.setCurrentRail)
830
- t.setCurrentRail();
831
- },
832
-
833
-
834
- buildposter: function(player, controls, layers, media) {
835
- var t = this,
836
- poster =
837
- $('<div class="mejs-poster mejs-layer">' +
838
- '</div>')
839
- .appendTo(layers),
840
- posterUrl = player.$media.attr('poster');
841
-
842
- // prioriy goes to option (this is useful if you need to support iOS 3.x (iOS completely fails with poster)
843
- if (player.options.poster !== '') {
844
- posterUrl = player.options.poster;
845
- }
846
-
847
- // second, try the real poster
848
- if (posterUrl !== '' && posterUrl != null) {
849
- t.setPoster(posterUrl);
850
- } else {
851
- poster.hide();
852
- }
853
-
854
- media.addEventListener('play',function() {
855
- poster.hide();
856
- }, false);
857
- },
858
-
859
- setPoster: function(url) {
860
- var t = this,
861
- posterDiv = t.container.find('.mejs-poster'),
862
- posterImg = posterDiv.find('img');
863
-
864
- if (posterImg.length == 0) {
865
- posterImg = $('<img width="100%" height="100%" />').appendTo(posterDiv);
866
- }
867
-
868
- posterImg.attr('src', url);
869
- },
870
-
871
- buildoverlays: function(player, controls, layers, media) {
872
- if (!player.isVideo)
873
- return;
874
-
875
- var
876
- loading =
877
- $('<div class="mejs-overlay mejs-layer">'+
878
- '<div class="mejs-overlay-loading"><span></span></div>'+
879
- '</div>')
880
- .hide() // start out hidden
881
- .appendTo(layers),
882
- error =
883
- $('<div class="mejs-overlay mejs-layer">'+
884
- '<div class="mejs-overlay-error"></div>'+
885
- '</div>')
886
- .hide() // start out hidden
887
- .appendTo(layers),
888
- // this needs to come last so it's on top
889
- bigPlay =
890
- $('<div class="mejs-overlay mejs-layer mejs-overlay-play">'+
891
- '<div class="mejs-overlay-button"></div>'+
892
- '</div>')
893
- .appendTo(layers)
894
- .click(function() {
895
- if (media.paused) {
896
- media.play();
897
- } else {
898
- media.pause();
899
- }
900
- });
901
-
902
- /*
903
- if (mejs.MediaFeatures.isiOS || mejs.MediaFeatures.isAndroid) {
904
- bigPlay.remove();
905
- loading.remove();
906
- }
907
- */
908
-
909
-
910
- // show/hide big play button
911
- media.addEventListener('play',function() {
912
- bigPlay.hide();
913
- loading.hide();
914
- controls.find('.mejs-time-buffering').hide();
915
- error.hide();
916
- }, false);
917
-
918
- media.addEventListener('playing', function() {
919
- bigPlay.hide();
920
- loading.hide();
921
- controls.find('.mejs-time-buffering').hide();
922
- error.hide();
923
- }, false);
924
-
925
- media.addEventListener('seeking', function() {
926
- loading.show();
927
- controls.find('.mejs-time-buffering').show();
928
- }, false);
929
-
930
- media.addEventListener('seeked', function() {
931
- loading.hide();
932
- controls.find('.mejs-time-buffering').hide();
933
- }, false);
934
-
935
- media.addEventListener('pause',function() {
936
- if (!mejs.MediaFeatures.isiPhone) {
937
- bigPlay.show();
938
- }
939
- }, false);
940
-
941
- media.addEventListener('waiting', function() {
942
- loading.show();
943
- controls.find('.mejs-time-buffering').show();
944
- }, false);
945
-
946
-
947
- // show/hide loading
948
- media.addEventListener('loadeddata',function() {
949
- // for some reason Chrome is firing this event
950
- //if (mejs.MediaFeatures.isChrome && media.getAttribute && media.getAttribute('preload') === 'none')
951
- // return;
952
-
953
- loading.show();
954
- controls.find('.mejs-time-buffering').show();
955
- }, false);
956
- media.addEventListener('canplay',function() {
957
- loading.hide();
958
- controls.find('.mejs-time-buffering').hide();
959
- }, false);
960
-
961
- // error handling
962
- media.addEventListener('error',function() {
963
- loading.hide();
964
- controls.find('.mejs-time-buffering').hide();
965
- error.show();
966
- error.find('mejs-overlay-error').html("Error loading this resource");
967
- }, false);
968
- },
969
-
970
- buildkeyboard: function(player, controls, layers, media) {
971
-
972
- var t = this;
973
-
974
- // listen for key presses
975
- $(document).keydown(function(e) {
976
-
977
- if (player.hasFocus && player.options.enableKeyboard) {
978
-
979
- // find a matching key
980
- for (var i=0, il=player.options.keyActions.length; i<il; i++) {
981
- var keyAction = player.options.keyActions[i];
982
-
983
- for (var j=0, jl=keyAction.keys.length; j<jl; j++) {
984
- if (e.keyCode == keyAction.keys[j]) {
985
- e.preventDefault();
986
- keyAction.action(player, media, e.keyCode);
987
- return false;
988
- }
989
- }
990
- }
991
- }
992
-
993
- return true;
994
- });
995
-
996
- // check if someone clicked outside a player region, then kill its focus
997
- $(document).click(function(event) {
998
- if ($(event.target).closest('.mejs-container').length == 0) {
999
- player.hasFocus = false;
1000
- }
1001
- });
1002
-
1003
- },
1004
-
1005
- findTracks: function() {
1006
- var t = this,
1007
- tracktags = t.$media.find('track');
1008
-
1009
- // store for use by plugins
1010
- t.tracks = [];
1011
- tracktags.each(function(index, track) {
1012
-
1013
- track = $(track);
1014
-
1015
- t.tracks.push({
1016
- srclang: track.attr('srclang').toLowerCase(),
1017
- src: track.attr('src'),
1018
- kind: track.attr('kind'),
1019
- label: track.attr('label') || '',
1020
- entries: [],
1021
- isLoaded: false
1022
- });
1023
- });
1024
- },
1025
- changeSkin: function(className) {
1026
- this.container[0].className = 'mejs-container ' + className;
1027
- this.setPlayerSize(this.width, this.height);
1028
- this.setControlsSize();
1029
- },
1030
- play: function() {
1031
- this.media.play();
1032
- },
1033
- pause: function() {
1034
- this.media.pause();
1035
- },
1036
- load: function() {
1037
- this.media.load();
1038
- },
1039
- setMuted: function(muted) {
1040
- this.media.setMuted(muted);
1041
- },
1042
- setCurrentTime: function(time) {
1043
- this.media.setCurrentTime(time);
1044
- },
1045
- getCurrentTime: function() {
1046
- return this.media.currentTime;
1047
- },
1048
- setVolume: function(volume) {
1049
- this.media.setVolume(volume);
1050
- },
1051
- getVolume: function() {
1052
- return this.media.volume;
1053
- },
1054
- setSrc: function(src) {
1055
- this.media.setSrc(src);
1056
- },
1057
- remove: function() {
1058
- var t = this;
1059
-
1060
- if (t.media.pluginType === 'flash') {
1061
- t.media.remove();
1062
- } else if (t.media.pluginType === 'native') {
1063
- t.$media.prop('controls', true);
1064
- }
1065
-
1066
- // grab video and put it back in place
1067
- if (!t.isDynamic) {
1068
- t.$node.insertBefore(t.container)
1069
- }
1070
-
1071
- t.container.remove();
1072
- }
1073
- };
1074
-
1075
- // turn into jQuery plugin
1076
- if (typeof jQuery != 'undefined') {
1077
- jQuery.fn.mediaelementplayer = function (options) {
1078
- return this.each(function () {
1079
- new mejs.MediaElementPlayer(this, options);
1080
- });
1081
- };
1082
- }
1083
-
1084
- $(document).ready(function() {
1085
- // auto enable using JSON attribute
1086
- $('.mejs-player').mediaelementplayer();
1087
- });
1088
-
1089
- // push out to window
1090
- window.MediaElementPlayer = mejs.MediaElementPlayer;
1091
-
1092
- })(mejs.$);
1093
-
1094
- (function($) {
1095
-
1096
- $.extend(mejs.MepDefaults, {
1097
- playpauseText: 'Play/Pause'
1098
- });
1099
-
1100
- // PLAY/pause BUTTON
1101
- $.extend(MediaElementPlayer.prototype, {
1102
- buildplaypause: function(player, controls, layers, media) {
1103
- var
1104
- t = this,
1105
- play =
1106
- $('<div class="mejs-button mejs-playpause-button mejs-play" >' +
1107
- '<button type="button" aria-controls="' + t.id + '" title="' + t.options.playpauseText + '"></button>' +
1108
- '</div>')
1109
- .appendTo(controls)
1110
- .click(function(e) {
1111
- e.preventDefault();
1112
-
1113
- if (media.paused) {
1114
- media.play();
1115
- } else {
1116
- media.pause();
1117
- }
1118
-
1119
- return false;
1120
- });
1121
-
1122
- media.addEventListener('play',function() {
1123
- play.removeClass('mejs-play').addClass('mejs-pause');
1124
- }, false);
1125
- media.addEventListener('playing',function() {
1126
- play.removeClass('mejs-play').addClass('mejs-pause');
1127
- }, false);
1128
-
1129
-
1130
- media.addEventListener('pause',function() {
1131
- play.removeClass('mejs-pause').addClass('mejs-play');
1132
- }, false);
1133
- media.addEventListener('paused',function() {
1134
- play.removeClass('mejs-pause').addClass('mejs-play');
1135
- }, false);
1136
- }
1137
- });
1138
-
1139
- })(mejs.$);
1140
- (function($) {
1141
-
1142
- $.extend(mejs.MepDefaults, {
1143
- stopText: 'Stop'
1144
- });
1145
-
1146
- // STOP BUTTON
1147
- $.extend(MediaElementPlayer.prototype, {
1148
- buildstop: function(player, controls, layers, media) {
1149
- var t = this,
1150
- stop =
1151
- $('<div class="mejs-button mejs-stop-button mejs-stop">' +
1152
- '<button type="button" aria-controls="' + t.id + '" title="' + t.options.stopText + '"></button>' +
1153
- '</div>')
1154
- .appendTo(controls)
1155
- .click(function() {
1156
- if (!media.paused) {
1157
- media.pause();
1158
- }
1159
- if (media.currentTime > 0) {
1160
- media.setCurrentTime(0);
1161
- controls.find('.mejs-time-current').width('0px');
1162
- controls.find('.mejs-time-handle').css('left', '0px');
1163
- controls.find('.mejs-time-float-current').html( mejs.Utility.secondsToTimeCode(0) );
1164
- controls.find('.mejs-currenttime').html( mejs.Utility.secondsToTimeCode(0) );
1165
- layers.find('.mejs-poster').show();
1166
- }
1167
- });
1168
- }
1169
- });
1170
-
1171
- })(mejs.$);
1172
- (function($) {
1173
- // progress/loaded bar
1174
- $.extend(MediaElementPlayer.prototype, {
1175
- buildprogress: function(player, controls, layers, media) {
1176
-
1177
- $('<div class="mejs-time-rail">'+
1178
- '<span class="mejs-time-total">'+
1179
- '<span class="mejs-time-buffering"></span>'+
1180
- '<span class="mejs-time-loaded"></span>'+
1181
- '<span class="mejs-time-current"></span>'+
1182
- '<span class="mejs-time-handle"></span>'+
1183
- '<span class="mejs-time-float">' +
1184
- '<span class="mejs-time-float-current">00:00</span>' +
1185
- '<span class="mejs-time-float-corner"></span>' +
1186
- '</span>'+
1187
- '</span>'+
1188
- '</div>')
1189
- .appendTo(controls);
1190
- controls.find('.mejs-time-buffering').hide();
1191
-
1192
- var
1193
- t = this,
1194
- total = controls.find('.mejs-time-total'),
1195
- loaded = controls.find('.mejs-time-loaded'),
1196
- current = controls.find('.mejs-time-current'),
1197
- handle = controls.find('.mejs-time-handle'),
1198
- timefloat = controls.find('.mejs-time-float'),
1199
- timefloatcurrent = controls.find('.mejs-time-float-current'),
1200
- handleMouseMove = function (e) {
1201
- // mouse position relative to the object
1202
- var x = e.pageX,
1203
- offset = total.offset(),
1204
- width = total.outerWidth(),
1205
- percentage = 0,
1206
- newTime = 0,
1207
- pos = x - offset.left;
1208
-
1209
-
1210
- if (x > offset.left && x <= width + offset.left && media.duration) {
1211
- percentage = ((x - offset.left) / width);
1212
- newTime = (percentage <= 0.02) ? 0 : percentage * media.duration;
1213
-
1214
- // seek to where the mouse is
1215
- if (mouseIsDown) {
1216
- media.setCurrentTime(newTime);
1217
- }
1218
-
1219
- // position floating time box
1220
- if (!mejs.MediaFeatures.hasTouch) {
1221
- timefloat.css('left', pos);
1222
- timefloatcurrent.html( mejs.Utility.secondsToTimeCode(newTime) );
1223
- timefloat.show();
1224
- }
1225
- }
1226
- },
1227
- mouseIsDown = false,
1228
- mouseIsOver = false;
1229
-
1230
- // handle clicks
1231
- //controls.find('.mejs-time-rail').delegate('span', 'click', handleMouseMove);
1232
- total
1233
- .bind('mousedown', function (e) {
1234
- // only handle left clicks
1235
- if (e.which === 1) {
1236
- mouseIsDown = true;
1237
- handleMouseMove(e);
1238
- $(document)
1239
- .bind('mousemove.dur', function(e) {
1240
- handleMouseMove(e);
1241
- })
1242
- .bind('mouseup.dur', function (e) {
1243
- mouseIsDown = false;
1244
- timefloat.hide();
1245
- $(document).unbind('.dur');
1246
- });
1247
- return false;
1248
- }
1249
- })
1250
- .bind('mouseenter', function(e) {
1251
- mouseIsOver = true;
1252
- $(document).bind('mousemove.dur', function(e) {
1253
- handleMouseMove(e);
1254
- });
1255
- if (!mejs.MediaFeatures.hasTouch) {
1256
- timefloat.show();
1257
- }
1258
- })
1259
- .bind('mouseleave',function(e) {
1260
- mouseIsOver = false;
1261
- if (!mouseIsDown) {
1262
- $(document).unbind('.dur');
1263
- timefloat.hide();
1264
- }
1265
- });
1266
-
1267
- // loading
1268
- media.addEventListener('progress', function (e) {
1269
- player.setProgressRail(e);
1270
- player.setCurrentRail(e);
1271
- }, false);
1272
-
1273
- // current time
1274
- media.addEventListener('timeupdate', function(e) {
1275
- player.setProgressRail(e);
1276
- player.setCurrentRail(e);
1277
- }, false);
1278
-
1279
-
1280
- // store for later use
1281
- t.loaded = loaded;
1282
- t.total = total;
1283
- t.current = current;
1284
- t.handle = handle;
1285
- },
1286
- setProgressRail: function(e) {
1287
-
1288
- var
1289
- t = this,
1290
- target = (e != undefined) ? e.target : t.media,
1291
- percent = null;
1292
-
1293
- // newest HTML5 spec has buffered array (FF4, Webkit)
1294
- if (target && target.buffered && target.buffered.length > 0 && target.buffered.end && target.duration) {
1295
- // TODO: account for a real array with multiple values (only Firefox 4 has this so far)
1296
- percent = target.buffered.end(0) / target.duration;
1297
- }
1298
- // Some browsers (e.g., FF3.6 and Safari 5) cannot calculate target.bufferered.end()
1299
- // to be anything other than 0. If the byte count is available we use this instead.
1300
- // Browsers that support the else if do not seem to have the bufferedBytes value and
1301
- // should skip to there. Tested in Safari 5, Webkit head, FF3.6, Chrome 6, IE 7/8.
1302
- else if (target && target.bytesTotal != undefined && target.bytesTotal > 0 && target.bufferedBytes != undefined) {
1303
- percent = target.bufferedBytes / target.bytesTotal;
1304
- }
1305
- // Firefox 3 with an Ogg file seems to go this way
1306
- else if (e && e.lengthComputable && e.total != 0) {
1307
- percent = e.loaded/e.total;
1308
- }
1309
-
1310
- // finally update the progress bar
1311
- if (percent !== null) {
1312
- percent = Math.min(1, Math.max(0, percent));
1313
- // update loaded bar
1314
- if (t.loaded && t.total) {
1315
- t.loaded.width(t.total.width() * percent);
1316
- }
1317
- }
1318
- },
1319
- setCurrentRail: function() {
1320
-
1321
- var t = this;
1322
-
1323
- if (t.media.currentTime != undefined && t.media.duration) {
1324
-
1325
- // update bar and handle
1326
- if (t.total && t.handle) {
1327
- var
1328
- newWidth = t.total.width() * t.media.currentTime / t.media.duration,
1329
- handlePos = newWidth - (t.handle.outerWidth(true) / 2);
1330
-
1331
- t.current.width(newWidth);
1332
- t.handle.css('left', handlePos);
1333
- }
1334
- }
1335
-
1336
- }
1337
- });
1338
- })(mejs.$);
1339
- (function($) {
1340
-
1341
- // options
1342
- $.extend(mejs.MepDefaults, {
1343
- duration: -1,
1344
- timeAndDurationSeparator: ' <span> | </span> '
1345
- });
1346
-
1347
-
1348
- // current and duration 00:00 / 00:00
1349
- $.extend(MediaElementPlayer.prototype, {
1350
- buildcurrent: function(player, controls, layers, media) {
1351
- var t = this;
1352
-
1353
- $('<div class="mejs-time">'+
1354
- '<span class="mejs-currenttime">' + (player.options.alwaysShowHours ? '00:' : '')
1355
- + (player.options.showTimecodeFrameCount? '00:00:00':'00:00')+ '</span>'+
1356
- '</div>')
1357
- .appendTo(controls);
1358
-
1359
- t.currenttime = t.controls.find('.mejs-currenttime');
1360
-
1361
- media.addEventListener('timeupdate',function() {
1362
- player.updateCurrent();
1363
- }, false);
1364
- },
1365
-
1366
-
1367
- buildduration: function(player, controls, layers, media) {
1368
- var t = this;
1369
-
1370
- if (controls.children().last().find('.mejs-currenttime').length > 0) {
1371
- $(t.options.timeAndDurationSeparator +
1372
- '<span class="mejs-duration">' +
1373
- (t.options.duration > 0 ?
1374
- mejs.Utility.secondsToTimeCode(t.options.duration, t.options.alwaysShowHours || t.media.duration > 3600, t.options.showTimecodeFrameCount, t.options.framesPerSecond || 25) :
1375
- ((player.options.alwaysShowHours ? '00:' : '') + (player.options.showTimecodeFrameCount? '00:00:00':'00:00'))
1376
- ) +
1377
- '</span>')
1378
- .appendTo(controls.find('.mejs-time'));
1379
- } else {
1380
-
1381
- // add class to current time
1382
- controls.find('.mejs-currenttime').parent().addClass('mejs-currenttime-container');
1383
-
1384
- $('<div class="mejs-time mejs-duration-container">'+
1385
- '<span class="mejs-duration">' +
1386
- (t.options.duration > 0 ?
1387
- mejs.Utility.secondsToTimeCode(t.options.duration, t.options.alwaysShowHours || t.media.duration > 3600, t.options.showTimecodeFrameCount, t.options.framesPerSecond || 25) :
1388
- ((player.options.alwaysShowHours ? '00:' : '') + (player.options.showTimecodeFrameCount? '00:00:00':'00:00'))
1389
- ) +
1390
- '</span>' +
1391
- '</div>')
1392
- .appendTo(controls);
1393
- }
1394
-
1395
- t.durationD = t.controls.find('.mejs-duration');
1396
-
1397
- media.addEventListener('timeupdate',function() {
1398
- player.updateDuration();
1399
- }, false);
1400
- },
1401
-
1402
- updateCurrent: function() {
1403
- var t = this;
1404
-
1405
- if (t.currenttime) {
1406
- t.currenttime.html(mejs.Utility.secondsToTimeCode(t.media.currentTime, t.options.alwaysShowHours || t.media.duration > 3600, t.options.showTimecodeFrameCount, t.options.framesPerSecond || 25));
1407
- }
1408
- },
1409
-
1410
- updateDuration: function() {
1411
- var t = this;
1412
-
1413
- if (t.media.duration && t.durationD) {
1414
- t.durationD.html(mejs.Utility.secondsToTimeCode(t.media.duration, t.options.alwaysShowHours, t.options.showTimecodeFrameCount, t.options.framesPerSecond || 25));
1415
- }
1416
- }
1417
- });
1418
-
1419
- })(mejs.$);
1420
- (function($) {
1421
-
1422
- $.extend(mejs.MepDefaults, {
1423
- muteText: 'Mute Toggle',
1424
- hideVolumeOnTouchDevices: true,
1425
-
1426
- audioVolume: 'horizontal',
1427
- videoVolume: 'vertical'
1428
- });
1429
-
1430
- $.extend(MediaElementPlayer.prototype, {
1431
- buildvolume: function(player, controls, layers, media) {
1432
-
1433
- // Android and iOS don't support volume controls
1434
- if (mejs.MediaFeatures.hasTouch && this.options.hideVolumeOnTouchDevices)
1435
- return;
1436
-
1437
- var t = this,
1438
- mode = (t.isVideo) ? t.options.videoVolume : t.options.audioVolume,
1439
- mute = (mode == 'horizontal') ?
1440
-
1441
- // horizontal version
1442
- $('<div class="mejs-button mejs-volume-button mejs-mute">'+
1443
- '<button type="button" aria-controls="' + t.id + '" title="' + t.options.muteText + '"></button>'+
1444
- '</div>' +
1445
- '<div class="mejs-horizontal-volume-slider">'+ // outer background
1446
- '<div class="mejs-horizontal-volume-total"></div>'+ // line background
1447
- '<div class="mejs-horizontal-volume-current"></div>'+ // current volume
1448
- '<div class="mejs-horizontal-volume-handle"></div>'+ // handle
1449
- '</div>'
1450
- )
1451
- .appendTo(controls) :
1452
-
1453
- // vertical version
1454
- $('<div class="mejs-button mejs-volume-button mejs-mute">'+
1455
- '<button type="button" aria-controls="' + t.id + '" title="' + t.options.muteText + '"></button>'+
1456
- '<div class="mejs-volume-slider">'+ // outer background
1457
- '<div class="mejs-volume-total"></div>'+ // line background
1458
- '<div class="mejs-volume-current"></div>'+ // current volume
1459
- '<div class="mejs-volume-handle"></div>'+ // handle
1460
- '</div>'+
1461
- '</div>')
1462
- .appendTo(controls),
1463
- volumeSlider = t.container.find('.mejs-volume-slider, .mejs-horizontal-volume-slider'),
1464
- volumeTotal = t.container.find('.mejs-volume-total, .mejs-horizontal-volume-total'),
1465
- volumeCurrent = t.container.find('.mejs-volume-current, .mejs-horizontal-volume-current'),
1466
- volumeHandle = t.container.find('.mejs-volume-handle, .mejs-horizontal-volume-handle'),
1467
-
1468
- positionVolumeHandle = function(volume, secondTry) {
1469
-
1470
- if (!volumeSlider.is(':visible') && typeof secondTry != 'undefined') {
1471
- volumeSlider.show();
1472
- positionVolumeHandle(volume, true);
1473
- volumeSlider.hide()
1474
- return;
1475
- }
1476
-
1477
- // correct to 0-1
1478
- volume = Math.max(0,volume);
1479
- volume = Math.min(volume,1);
1480
-
1481
- // ajust mute button style
1482
- if (volume == 0) {
1483
- mute.removeClass('mejs-mute').addClass('mejs-unmute');
1484
- } else {
1485
- mute.removeClass('mejs-unmute').addClass('mejs-mute');
1486
- }
1487
-
1488
- // position slider
1489
- if (mode == 'vertical') {
1490
- var
1491
-
1492
- // height of the full size volume slider background
1493
- totalHeight = volumeTotal.height(),
1494
-
1495
- // top/left of full size volume slider background
1496
- totalPosition = volumeTotal.position(),
1497
-
1498
- // the new top position based on the current volume
1499
- // 70% volume on 100px height == top:30px
1500
- newTop = totalHeight - (totalHeight * volume);
1501
-
1502
- // handle
1503
- volumeHandle.css('top', totalPosition.top + newTop - (volumeHandle.height() / 2));
1504
-
1505
- // show the current visibility
1506
- volumeCurrent.height(totalHeight - newTop );
1507
- volumeCurrent.css('top', totalPosition.top + newTop);
1508
- } else {
1509
- var
1510
-
1511
- // height of the full size volume slider background
1512
- totalWidth = volumeTotal.width(),
1513
-
1514
- // top/left of full size volume slider background
1515
- totalPosition = volumeTotal.position(),
1516
-
1517
- // the new left position based on the current volume
1518
- newLeft = totalWidth * volume;
1519
-
1520
- // handle
1521
- volumeHandle.css('left', totalPosition.left + newLeft - (volumeHandle.width() / 2));
1522
-
1523
- // rezize the current part of the volume bar
1524
- volumeCurrent.width( newLeft );
1525
- }
1526
- },
1527
- handleVolumeMove = function(e) {
1528
-
1529
- var volume = null,
1530
- totalOffset = volumeTotal.offset();
1531
-
1532
- // calculate the new volume based on the moust position
1533
- if (mode == 'vertical') {
1534
-
1535
- var
1536
- railHeight = volumeTotal.height(),
1537
- totalTop = parseInt(volumeTotal.css('top').replace(/px/,''),10),
1538
- newY = e.pageY - totalOffset.top;
1539
-
1540
- volume = (railHeight - newY) / railHeight;
1541
-
1542
- // the controls just hide themselves (usually when mouse moves too far up)
1543
- if (totalOffset.top == 0 || totalOffset.left == 0)
1544
- return;
1545
-
1546
- } else {
1547
- var
1548
- railWidth = volumeTotal.width(),
1549
- newX = e.pageX - totalOffset.left;
1550
-
1551
- volume = newX / railWidth;
1552
- }
1553
-
1554
- // ensure the volume isn't outside 0-1
1555
- volume = Math.max(0,volume);
1556
- volume = Math.min(volume,1);
1557
-
1558
- // position the slider and handle
1559
- positionVolumeHandle(volume);
1560
-
1561
- // set the media object (this will trigger the volumechanged event)
1562
- if (volume == 0) {
1563
- media.setMuted(true);
1564
- } else {
1565
- media.setMuted(false);
1566
- }
1567
- media.setVolume(volume);
1568
- },
1569
- mouseIsDown = false,
1570
- mouseIsOver = false;
1571
-
1572
- // SLIDER
1573
-
1574
- mute
1575
- .hover(function() {
1576
- volumeSlider.show();
1577
- mouseIsOver = true;
1578
- }, function() {
1579
- mouseIsOver = false;
1580
-
1581
- if (!mouseIsDown && mode == 'vertical') {
1582
- volumeSlider.hide();
1583
- }
1584
- });
1585
-
1586
- volumeSlider
1587
- .bind('mouseover', function() {
1588
- mouseIsOver = true;
1589
- })
1590
- .bind('mousedown', function (e) {
1591
- handleVolumeMove(e);
1592
- $(document)
1593
- .bind('mousemove.vol', function(e) {
1594
- handleVolumeMove(e);
1595
- })
1596
- .bind('mouseup.vol', function () {
1597
- mouseIsDown = false;
1598
- $(document).unbind('.vol');
1599
-
1600
- if (!mouseIsOver && mode == 'vertical') {
1601
- volumeSlider.hide();
1602
- }
1603
- });
1604
- mouseIsDown = true;
1605
-
1606
- return false;
1607
- });
1608
-
1609
-
1610
- // MUTE button
1611
- mute.find('button').click(function() {
1612
- media.setMuted( !media.muted );
1613
- });
1614
-
1615
- // listen for volume change events from other sources
1616
- media.addEventListener('volumechange', function(e) {
1617
- if (!mouseIsDown) {
1618
- if (media.muted) {
1619
- positionVolumeHandle(0);
1620
- mute.removeClass('mejs-mute').addClass('mejs-unmute');
1621
- } else {
1622
- positionVolumeHandle(media.volume);
1623
- mute.removeClass('mejs-unmute').addClass('mejs-mute');
1624
- }
1625
- }
1626
- }, false);
1627
-
1628
- if (t.container.is(':visible')) {
1629
- // set initial volume
1630
- positionVolumeHandle(player.options.startVolume);
1631
-
1632
- // shim gets the startvolume as a parameter, but we have to set it on the native <video> and <audio> elements
1633
- if (media.pluginType === 'native') {
1634
- media.setVolume(player.options.startVolume);
1635
- }
1636
- }
1637
- }
1638
- });
1639
-
1640
- })(mejs.$);
1641
-
1642
- (function($) {
1643
-
1644
- $.extend(mejs.MepDefaults, {
1645
- usePluginFullScreen: true,
1646
- newWindowCallback: function() { return '';},
1647
- fullscreenText: 'Fullscreen'
1648
- });
1649
-
1650
- $.extend(MediaElementPlayer.prototype, {
1651
-
1652
- isFullScreen: false,
1653
-
1654
- isNativeFullScreen: false,
1655
-
1656
- docStyleOverflow: null,
1657
-
1658
- isInIframe: false,
1659
-
1660
- buildfullscreen: function(player, controls, layers, media) {
1661
-
1662
- if (!player.isVideo)
1663
- return;
1664
-
1665
- player.isInIframe = (window.location != window.parent.location);
1666
-
1667
- // native events
1668
- if (mejs.MediaFeatures.hasTrueNativeFullScreen) {
1669
-
1670
- // chrome doesn't alays fire this in an iframe
1671
- var target = null;
1672
-
1673
- if (mejs.MediaFeatures.hasMozNativeFullScreen) {
1674
- target = $(document);
1675
- } else {
1676
- target = player.container;
1677
- }
1678
-
1679
- target.bind(mejs.MediaFeatures.fullScreenEventName, function(e) {
1680
-
1681
- if (mejs.MediaFeatures.isFullScreen()) {
1682
- player.isNativeFullScreen = true;
1683
- // reset the controls once we are fully in full screen
1684
- player.setControlsSize();
1685
- } else {
1686
- player.isNativeFullScreen = false;
1687
- // when a user presses ESC
1688
- // make sure to put the player back into place
1689
- player.exitFullScreen();
1690
- }
1691
- });
1692
- }
1693
-
1694
- var t = this,
1695
- normalHeight = 0,
1696
- normalWidth = 0,
1697
- container = player.container,
1698
- fullscreenBtn =
1699
- $('<div class="mejs-button mejs-fullscreen-button">' +
1700
- '<button type="button" aria-controls="' + t.id + '" title="' + t.options.fullscreenText + '"></button>' +
1701
- '</div>')
1702
- .appendTo(controls);
1703
-
1704
- if (t.media.pluginType === 'native' || (!t.options.usePluginFullScreen && !mejs.MediaFeatures.isFirefox)) {
1705
-
1706
- fullscreenBtn.click(function() {
1707
- var isFullScreen = (mejs.MediaFeatures.hasTrueNativeFullScreen && mejs.MediaFeatures.isFullScreen()) || player.isFullScreen;
1708
-
1709
- if (isFullScreen) {
1710
- player.exitFullScreen();
1711
- } else {
1712
- player.enterFullScreen();
1713
- }
1714
- });
1715
-
1716
- } else {
1717
-
1718
- var hideTimeout = null,
1719
- supportsPointerEvents = (function() {
1720
- // TAKEN FROM MODERNIZR
1721
- var element = document.createElement('x'),
1722
- documentElement = document.documentElement,
1723
- getComputedStyle = window.getComputedStyle,
1724
- supports;
1725
- if(!('pointerEvents' in element.style)){
1726
- return false;
1727
- }
1728
- element.style.pointerEvents = 'auto';
1729
- element.style.pointerEvents = 'x';
1730
- documentElement.appendChild(element);
1731
- supports = getComputedStyle &&
1732
- getComputedStyle(element, '').pointerEvents === 'auto';
1733
- documentElement.removeChild(element);
1734
- return !!supports;
1735
- })();
1736
-
1737
- //console.log('supportsPointerEvents', supportsPointerEvents);
1738
-
1739
- if (supportsPointerEvents && !mejs.MediaFeatures.isOpera) { // opera doesn't allow this :(
1740
-
1741
- // allows clicking through the fullscreen button and controls down directly to Flash
1742
-
1743
- /*
1744
- When a user puts his mouse over the fullscreen button, the controls are disabled
1745
- So we put a div over the video and another one on iether side of the fullscreen button
1746
- that caputre mouse movement
1747
- and restore the controls once the mouse moves outside of the fullscreen button
1748
- */
1749
-
1750
- var fullscreenIsDisabled = false,
1751
- restoreControls = function() {
1752
- if (fullscreenIsDisabled) {
1753
- // hide the hovers
1754
- videoHoverDiv.hide();
1755
- controlsLeftHoverDiv.hide();
1756
- controlsRightHoverDiv.hide();
1757
-
1758
- // restore the control bar
1759
- fullscreenBtn.css('pointer-events', '');
1760
- t.controls.css('pointer-events', '');
1761
-
1762
- // store for later
1763
- fullscreenIsDisabled = false;
1764
- }
1765
- },
1766
- videoHoverDiv = $('<div class="mejs-fullscreen-hover" />').appendTo(t.container).mouseover(restoreControls),
1767
- controlsLeftHoverDiv = $('<div class="mejs-fullscreen-hover" />').appendTo(t.container).mouseover(restoreControls),
1768
- controlsRightHoverDiv = $('<div class="mejs-fullscreen-hover" />').appendTo(t.container).mouseover(restoreControls),
1769
- positionHoverDivs = function() {
1770
- var style = {position: 'absolute', top: 0, left: 0}; //, backgroundColor: '#f00'};
1771
- videoHoverDiv.css(style);
1772
- controlsLeftHoverDiv.css(style);
1773
- controlsRightHoverDiv.css(style);
1774
-
1775
- // over video, but not controls
1776
- videoHoverDiv
1777
- .width( t.container.width() )
1778
- .height( t.container.height() - t.controls.height() );
1779
-
1780
- // over controls, but not the fullscreen button
1781
- var fullScreenBtnOffset = fullscreenBtn.offset().left - t.container.offset().left;
1782
- fullScreenBtnWidth = fullscreenBtn.outerWidth(true);
1783
-
1784
- controlsLeftHoverDiv
1785
- .width( fullScreenBtnOffset )
1786
- .height( t.controls.height() )
1787
- .css({top: t.container.height() - t.controls.height()});
1788
-
1789
- // after the fullscreen button
1790
- controlsRightHoverDiv
1791
- .width( t.container.width() - fullScreenBtnOffset - fullScreenBtnWidth )
1792
- .height( t.controls.height() )
1793
- .css({top: t.container.height() - t.controls.height(),
1794
- left: fullScreenBtnOffset + fullScreenBtnWidth});
1795
- };
1796
-
1797
- $(document).resize(function() {
1798
- positionHoverDivs();
1799
- });
1800
-
1801
- // on hover, kill the fullscreen button's HTML handling, allowing clicks down to Flash
1802
- fullscreenBtn
1803
- .mouseover(function() {
1804
-
1805
- if (!t.isFullScreen) {
1806
-
1807
- var buttonPos = fullscreenBtn.offset(),
1808
- containerPos = player.container.offset();
1809
-
1810
- // move the button in Flash into place
1811
- media.positionFullscreenButton(buttonPos.left - containerPos.left, buttonPos.top - containerPos.top, false);
1812
-
1813
- // allows click through
1814
- fullscreenBtn.css('pointer-events', 'none');
1815
- t.controls.css('pointer-events', 'none');
1816
-
1817
- // show the divs that will restore things
1818
- videoHoverDiv.show();
1819
- controlsRightHoverDiv.show();
1820
- controlsLeftHoverDiv.show();
1821
- positionHoverDivs();
1822
-
1823
- fullscreenIsDisabled = true;
1824
- }
1825
-
1826
- });
1827
-
1828
- // restore controls anytime the user enters or leaves fullscreen
1829
- media.addEventListener('fullscreenchange', function(e) {
1830
- restoreControls();
1831
- });
1832
-
1833
-
1834
- // the mouseout event doesn't work on the fullscren button, because we already killed the pointer-events
1835
- // so we use the document.mousemove event to restore controls when the mouse moves outside the fullscreen button
1836
- /*
1837
- $(document).mousemove(function(e) {
1838
-
1839
- // if the mouse is anywhere but the fullsceen button, then restore it all
1840
- if (fullscreenIsDisabled) {
1841
-
1842
- var fullscreenBtnPos = fullscreenBtn.offset();
1843
-
1844
-
1845
- if (e.pageY < fullscreenBtnPos.top || e.pageY > fullscreenBtnPos.top + fullscreenBtn.outerHeight(true) ||
1846
- e.pageX < fullscreenBtnPos.left || e.pageX > fullscreenBtnPos.left + fullscreenBtn.outerWidth(true)
1847
- ) {
1848
-
1849
- fullscreenBtn.css('pointer-events', '');
1850
- t.controls.css('pointer-events', '');
1851
-
1852
- fullscreenIsDisabled = false;
1853
- }
1854
- }
1855
- });
1856
- */
1857
-
1858
-
1859
- } else {
1860
-
1861
- // the hover state will show the fullscreen button in Flash to hover up and click
1862
-
1863
- fullscreenBtn
1864
- .mouseover(function() {
1865
-
1866
- if (hideTimeout !== null) {
1867
- clearTimeout(hideTimeout);
1868
- delete hideTimeout;
1869
- }
1870
-
1871
- var buttonPos = fullscreenBtn.offset(),
1872
- containerPos = player.container.offset();
1873
-
1874
- media.positionFullscreenButton(buttonPos.left - containerPos.left, buttonPos.top - containerPos.top, true);
1875
-
1876
- })
1877
- .mouseout(function() {
1878
-
1879
- if (hideTimeout !== null) {
1880
- clearTimeout(hideTimeout);
1881
- delete hideTimeout;
1882
- }
1883
-
1884
- hideTimeout = setTimeout(function() {
1885
- media.hideFullscreenButton();
1886
- }, 1500);
1887
-
1888
-
1889
- });
1890
- }
1891
- }
1892
-
1893
- player.fullscreenBtn = fullscreenBtn;
1894
-
1895
- $(document).bind('keydown',function (e) {
1896
- if (((mejs.MediaFeatures.hasTrueNativeFullScreen && mejs.MediaFeatures.isFullScreen()) || t.isFullScreen) && e.keyCode == 27) {
1897
- player.exitFullScreen();
1898
- }
1899
- });
1900
-
1901
- },
1902
- enterFullScreen: function() {
1903
-
1904
- var t = this;
1905
-
1906
- // firefox+flash can't adjust plugin sizes without resetting :(
1907
- if (t.media.pluginType !== 'native' && (mejs.MediaFeatures.isFirefox || t.options.usePluginFullScreen)) {
1908
- //t.media.setFullscreen(true);
1909
- //player.isFullScreen = true;
1910
- return;
1911
- }
1912
-
1913
- // store overflow
1914
- docStyleOverflow = document.documentElement.style.overflow;
1915
- // set it to not show scroll bars so 100% will work
1916
- document.documentElement.style.overflow = 'hidden';
1917
-
1918
- // store sizing
1919
- normalHeight = t.container.height();
1920
- normalWidth = t.container.width();
1921
-
1922
- // attempt to do true fullscreen (Safari 5.1 and Firefox Nightly only for now)
1923
- if (t.media.pluginType === 'native') {
1924
- if (mejs.MediaFeatures.hasTrueNativeFullScreen) {
1925
-
1926
- mejs.MediaFeatures.requestFullScreen(t.container[0]);
1927
- //return;
1928
-
1929
- if (t.isInIframe) {
1930
- // sometimes exiting from fullscreen doesn't work
1931
- // notably in Chrome <iframe>. Fixed in version 17
1932
- setTimeout(function checkFullscreen() {
1933
-
1934
- if (t.isNativeFullScreen) {
1935
-
1936
- // check if the video is suddenly not really fullscreen
1937
- if ($(window).width() !== screen.width) {
1938
- // manually exit
1939
- t.exitFullScreen();
1940
- } else {
1941
- // test again
1942
- setTimeout(checkFullscreen, 500);
1943
- }
1944
- }
1945
-
1946
-
1947
- }, 500);
1948
- }
1949
-
1950
- } else if (mejs.MediaFeatures.hasSemiNativeFullScreen) {
1951
- t.media.webkitEnterFullscreen();
1952
- return;
1953
- }
1954
- }
1955
-
1956
- // check for iframe launch
1957
- if (t.isInIframe) {
1958
- var url = t.options.newWindowCallback(this);
1959
-
1960
-
1961
- if (url !== '') {
1962
-
1963
- // launch immediately
1964
- if (!mejs.MediaFeatures.hasTrueNativeFullScreen) {
1965
- t.pause();
1966
- window.open(url, t.id, 'top=0,left=0,width=' + screen.availWidth + ',height=' + screen.availHeight + ',resizable=yes,scrollbars=no,status=no,toolbar=no');
1967
- return;
1968
- } else {
1969
- setTimeout(function() {
1970
- if (!t.isNativeFullScreen) {
1971
- t.pause();
1972
- window.open(url, t.id, 'top=0,left=0,width=' + screen.availWidth + ',height=' + screen.availHeight + ',resizable=yes,scrollbars=no,status=no,toolbar=no');
1973
- }
1974
- }, 250);
1975
- }
1976
- }
1977
-
1978
- }
1979
-
1980
- // full window code
1981
-
1982
-
1983
-
1984
- // make full size
1985
- t.container
1986
- .addClass('mejs-container-fullscreen')
1987
- .width('100%')
1988
- .height('100%');
1989
- //.css({position: 'fixed', left: 0, top: 0, right: 0, bottom: 0, overflow: 'hidden', width: '100%', height: '100%', 'z-index': 1000});
1990
-
1991
- // Only needed for safari 5.1 native full screen, can cause display issues elsewhere
1992
- // Actually, it seems to be needed for IE8, too
1993
- //if (mejs.MediaFeatures.hasTrueNativeFullScreen) {
1994
- setTimeout(function() {
1995
- t.container.css({width: '100%', height: '100%'});
1996
- t.setControlsSize();
1997
- }, 500);
1998
- //}
1999
-
2000
- if (t.pluginType === 'native') {
2001
- t.$media
2002
- .width('100%')
2003
- .height('100%');
2004
- } else {
2005
- t.container.find('object, embed, iframe')
2006
- .width('100%')
2007
- .height('100%');
2008
-
2009
- //if (!mejs.MediaFeatures.hasTrueNativeFullScreen) {
2010
- t.media.setVideoSize($(window).width(),$(window).height());
2011
- //}
2012
- }
2013
-
2014
- t.layers.children('div')
2015
- .width('100%')
2016
- .height('100%');
2017
-
2018
- if (t.fullscreenBtn) {
2019
- t.fullscreenBtn
2020
- .removeClass('mejs-fullscreen')
2021
- .addClass('mejs-unfullscreen');
2022
- }
2023
-
2024
- t.setControlsSize();
2025
- t.isFullScreen = true;
2026
- },
2027
-
2028
- exitFullScreen: function() {
2029
-
2030
- var t = this;
2031
-
2032
- // firefox can't adjust plugins
2033
- if (t.media.pluginType !== 'native' && mejs.MediaFeatures.isFirefox) {
2034
- t.media.setFullscreen(false);
2035
- //player.isFullScreen = false;
2036
- return;
2037
- }
2038
-
2039
- // come outo of native fullscreen
2040
- if (mejs.MediaFeatures.hasTrueNativeFullScreen && (mejs.MediaFeatures.isFullScreen() || t.isFullScreen)) {
2041
- mejs.MediaFeatures.cancelFullScreen();
2042
- }
2043
-
2044
- // restore scroll bars to document
2045
- document.documentElement.style.overflow = docStyleOverflow;
2046
-
2047
- t.container
2048
- .removeClass('mejs-container-fullscreen')
2049
- .width(normalWidth)
2050
- .height(normalHeight);
2051
- //.css({position: '', left: '', top: '', right: '', bottom: '', overflow: 'inherit', width: normalWidth + 'px', height: normalHeight + 'px', 'z-index': 1});
2052
-
2053
- if (t.pluginType === 'native') {
2054
- t.$media
2055
- .width(normalWidth)
2056
- .height(normalHeight);
2057
- } else {
2058
- t.container.find('object embed')
2059
- .width(normalWidth)
2060
- .height(normalHeight);
2061
-
2062
- t.media.setVideoSize(normalWidth, normalHeight);
2063
- }
2064
-
2065
- t.layers.children('div')
2066
- .width(normalWidth)
2067
- .height(normalHeight);
2068
-
2069
- t.fullscreenBtn
2070
- .removeClass('mejs-unfullscreen')
2071
- .addClass('mejs-fullscreen');
2072
-
2073
- t.setControlsSize();
2074
- t.isFullScreen = false;
2075
- }
2076
- });
2077
-
2078
- })(mejs.$);
2079
-
2080
- (function($) {
2081
-
2082
- // add extra default options
2083
- $.extend(mejs.MepDefaults, {
2084
- // this will automatically turn on a <track>
2085
- startLanguage: '',
2086
-
2087
- tracksText: 'Captions/Subtitles'
2088
- });
2089
-
2090
- $.extend(MediaElementPlayer.prototype, {
2091
-
2092
- hasChapters: false,
2093
-
2094
- buildtracks: function(player, controls, layers, media) {
2095
- if (!player.isVideo)
2096
- return;
2097
-
2098
- if (player.tracks.length == 0)
2099
- return;
2100
-
2101
- var t= this, i, options = '';
2102
-
2103
- player.chapters =
2104
- $('<div class="mejs-chapters mejs-layer"></div>')
2105
- .prependTo(layers).hide();
2106
- player.captions =
2107
- $('<div class="mejs-captions-layer mejs-layer"><div class="mejs-captions-position"><span class="mejs-captions-text"></span></div></div>')
2108
- .prependTo(layers).hide();
2109
- player.captionsText = player.captions.find('.mejs-captions-text');
2110
- player.captionsButton =
2111
- $('<div class="mejs-button mejs-captions-button">'+
2112
- '<button type="button" aria-controls="' + t.id + '" title="' + t.options.tracksText + '"></button>'+
2113
- '<div class="mejs-captions-selector">'+
2114
- '<ul>'+
2115
- '<li>'+
2116
- '<input type="radio" name="' + player.id + '_captions" id="' + player.id + '_captions_none" value="none" checked="checked" />' +
2117
- '<label for="' + player.id + '_captions_none">None</label>'+
2118
- '</li>' +
2119
- '</ul>'+
2120
- '</div>'+
2121
- '</div>')
2122
- .appendTo(controls)
2123
-
2124
- // hover
2125
- .hover(function() {
2126
- $(this).find('.mejs-captions-selector').css('visibility','visible');
2127
- }, function() {
2128
- $(this).find('.mejs-captions-selector').css('visibility','hidden');
2129
- })
2130
-
2131
- // handle clicks to the language radio buttons
2132
- .delegate('input[type=radio]','click',function() {
2133
- lang = this.value;
2134
-
2135
- if (lang == 'none') {
2136
- player.selectedTrack = null;
2137
- } else {
2138
- for (i=0; i<player.tracks.length; i++) {
2139
- if (player.tracks[i].srclang == lang) {
2140
- player.selectedTrack = player.tracks[i];
2141
- player.captions.attr('lang', player.selectedTrack.srclang);
2142
- player.displayCaptions();
2143
- break;
2144
- }
2145
- }
2146
- }
2147
- });
2148
- //.bind('mouseenter', function() {
2149
- // player.captionsButton.find('.mejs-captions-selector').css('visibility','visible')
2150
- //});
2151
-
2152
- if (!player.options.alwaysShowControls) {
2153
- // move with controls
2154
- player.container
2155
- .bind('mouseenter', function () {
2156
- // push captions above controls
2157
- player.container.find('.mejs-captions-position').addClass('mejs-captions-position-hover');
2158
-
2159
- })
2160
- .bind('mouseleave', function () {
2161
- if (!media.paused) {
2162
- // move back to normal place
2163
- player.container.find('.mejs-captions-position').removeClass('mejs-captions-position-hover');
2164
- }
2165
- });
2166
- } else {
2167
- player.container.find('.mejs-captions-position').addClass('mejs-captions-position-hover');
2168
- }
2169
-
2170
- player.trackToLoad = -1;
2171
- player.selectedTrack = null;
2172
- player.isLoadingTrack = false;
2173
-
2174
-
2175
-
2176
- // add to list
2177
- for (i=0; i<player.tracks.length; i++) {
2178
- if (player.tracks[i].kind == 'subtitles') {
2179
- player.addTrackButton(player.tracks[i].srclang, player.tracks[i].label);
2180
- }
2181
- }
2182
-
2183
- player.loadNextTrack();
2184
-
2185
-
2186
- media.addEventListener('timeupdate',function(e) {
2187
- player.displayCaptions();
2188
- }, false);
2189
-
2190
- media.addEventListener('loadedmetadata', function(e) {
2191
- player.displayChapters();
2192
- }, false);
2193
-
2194
- player.container.hover(
2195
- function () {
2196
- // chapters
2197
- if (player.hasChapters) {
2198
- player.chapters.css('visibility','visible');
2199
- player.chapters.fadeIn(200).height(player.chapters.find('.mejs-chapter').outerHeight());
2200
- }
2201
- },
2202
- function () {
2203
- if (player.hasChapters && !media.paused) {
2204
- player.chapters.fadeOut(200, function() {
2205
- $(this).css('visibility','hidden');
2206
- $(this).css('display','block');
2207
- });
2208
- }
2209
- });
2210
-
2211
- // check for autoplay
2212
- if (player.node.getAttribute('autoplay') !== null) {
2213
- player.chapters.css('visibility','hidden');
2214
- }
2215
- },
2216
-
2217
- loadNextTrack: function() {
2218
- var t = this;
2219
-
2220
- t.trackToLoad++;
2221
- if (t.trackToLoad < t.tracks.length) {
2222
- t.isLoadingTrack = true;
2223
- t.loadTrack(t.trackToLoad);
2224
- } else {
2225
- // add done?
2226
- t.isLoadingTrack = false;
2227
- }
2228
- },
2229
-
2230
- loadTrack: function(index){
2231
- var
2232
- t = this,
2233
- track = t.tracks[index],
2234
- after = function() {
2235
-
2236
- track.isLoaded = true;
2237
-
2238
- // create button
2239
- //t.addTrackButton(track.srclang);
2240
- t.enableTrackButton(track.srclang, track.label);
2241
-
2242
- t.loadNextTrack();
2243
-
2244
- };
2245
-
2246
-
2247
- $.ajax({
2248
- url: track.src,
2249
- dataType: "text",
2250
- success: function(d) {
2251
-
2252
- // parse the loaded file
2253
- if (typeof d == "string" && (/<tt\s+xml/ig).exec(d)) {
2254
- track.entries = mejs.TrackFormatParser.dfxp.parse(d);
2255
- } else {
2256
- track.entries = mejs.TrackFormatParser.webvvt.parse(d);
2257
- }
2258
-
2259
- after();
2260
-
2261
- if (track.kind == 'chapters' && t.media.duration > 0) {
2262
- t.drawChapters(track);
2263
- }
2264
- },
2265
- error: function() {
2266
- t.loadNextTrack();
2267
- }
2268
- });
2269
- },
2270
-
2271
- enableTrackButton: function(lang, label) {
2272
- var t = this;
2273
-
2274
- if (label === '') {
2275
- label = mejs.language.codes[lang] || lang;
2276
- }
2277
-
2278
- t.captionsButton
2279
- .find('input[value=' + lang + ']')
2280
- .prop('disabled',false)
2281
- .siblings('label')
2282
- .html( label );
2283
-
2284
- // auto select
2285
- if (t.options.startLanguage == lang) {
2286
- $('#' + t.id + '_captions_' + lang).click();
2287
- }
2288
-
2289
- t.adjustLanguageBox();
2290
- },
2291
-
2292
- addTrackButton: function(lang, label) {
2293
- var t = this;
2294
- if (label === '') {
2295
- label = mejs.language.codes[lang] || lang;
2296
- }
2297
-
2298
- t.captionsButton.find('ul').append(
2299
- $('<li>'+
2300
- '<input type="radio" name="' + t.id + '_captions" id="' + t.id + '_captions_' + lang + '" value="' + lang + '" disabled="disabled" />' +
2301
- '<label for="' + t.id + '_captions_' + lang + '">' + label + ' (loading)' + '</label>'+
2302
- '</li>')
2303
- );
2304
-
2305
- t.adjustLanguageBox();
2306
-
2307
- // remove this from the dropdownlist (if it exists)
2308
- t.container.find('.mejs-captions-translations option[value=' + lang + ']').remove();
2309
- },
2310
-
2311
- adjustLanguageBox:function() {
2312
- var t = this;
2313
- // adjust the size of the outer box
2314
- t.captionsButton.find('.mejs-captions-selector').height(
2315
- t.captionsButton.find('.mejs-captions-selector ul').outerHeight(true) +
2316
- t.captionsButton.find('.mejs-captions-translations').outerHeight(true)
2317
- );
2318
- },
2319
-
2320
- displayCaptions: function() {
2321
-
2322
- if (typeof this.tracks == 'undefined')
2323
- return;
2324
-
2325
- var
2326
- t = this,
2327
- i,
2328
- track = t.selectedTrack;
2329
-
2330
- if (track != null && track.isLoaded) {
2331
- for (i=0; i<track.entries.times.length; i++) {
2332
- if (t.media.currentTime >= track.entries.times[i].start && t.media.currentTime <= track.entries.times[i].stop){
2333
- t.captionsText.html(track.entries.text[i]);
2334
- t.captions.show().height(0);
2335
- return; // exit out if one is visible;
2336
- }
2337
- }
2338
- t.captions.hide();
2339
- } else {
2340
- t.captions.hide();
2341
- }
2342
- },
2343
-
2344
- displayChapters: function() {
2345
- var
2346
- t = this,
2347
- i;
2348
-
2349
- for (i=0; i<t.tracks.length; i++) {
2350
- if (t.tracks[i].kind == 'chapters' && t.tracks[i].isLoaded) {
2351
- t.drawChapters(t.tracks[i]);
2352
- t.hasChapters = true;
2353
- break;
2354
- }
2355
- }
2356
- },
2357
-
2358
- drawChapters: function(chapters) {
2359
- var
2360
- t = this,
2361
- i,
2362
- dur,
2363
- //width,
2364
- //left,
2365
- percent = 0,
2366
- usedPercent = 0;
2367
-
2368
- t.chapters.empty();
2369
-
2370
- for (i=0; i<chapters.entries.times.length; i++) {
2371
- dur = chapters.entries.times[i].stop - chapters.entries.times[i].start;
2372
- percent = Math.floor(dur / t.media.duration * 100);
2373
- if (percent + usedPercent > 100 || // too large
2374
- i == chapters.entries.times.length-1 && percent + usedPercent < 100) // not going to fill it in
2375
- {
2376
- percent = 100 - usedPercent;
2377
- }
2378
- //width = Math.floor(t.width * dur / t.media.duration);
2379
- //left = Math.floor(t.width * chapters.entries.times[i].start / t.media.duration);
2380
- //if (left + width > t.width) {
2381
- // width = t.width - left;
2382
- //}
2383
-
2384
- t.chapters.append( $(
2385
- '<div class="mejs-chapter" rel="' + chapters.entries.times[i].start + '" style="left: ' + usedPercent.toString() + '%;width: ' + percent.toString() + '%;">' +
2386
- '<div class="mejs-chapter-block' + ((i==chapters.entries.times.length-1) ? ' mejs-chapter-block-last' : '') + '">' +
2387
- '<span class="ch-title">' + chapters.entries.text[i] + '</span>' +
2388
- '<span class="ch-time">' + mejs.Utility.secondsToTimeCode(chapters.entries.times[i].start) + '&ndash;' + mejs.Utility.secondsToTimeCode(chapters.entries.times[i].stop) + '</span>' +
2389
- '</div>' +
2390
- '</div>'));
2391
- usedPercent += percent;
2392
- }
2393
-
2394
- t.chapters.find('div.mejs-chapter').click(function() {
2395
- t.media.setCurrentTime( parseFloat( $(this).attr('rel') ) );
2396
- if (t.media.paused) {
2397
- t.media.play();
2398
- }
2399
- });
2400
-
2401
- t.chapters.show();
2402
- }
2403
- });
2404
-
2405
-
2406
-
2407
- mejs.language = {
2408
- codes: {
2409
- af:'Afrikaans',
2410
- sq:'Albanian',
2411
- ar:'Arabic',
2412
- be:'Belarusian',
2413
- bg:'Bulgarian',
2414
- ca:'Catalan',
2415
- zh:'Chinese',
2416
- 'zh-cn':'Chinese Simplified',
2417
- 'zh-tw':'Chinese Traditional',
2418
- hr:'Croatian',
2419
- cs:'Czech',
2420
- da:'Danish',
2421
- nl:'Dutch',
2422
- en:'English',
2423
- et:'Estonian',
2424
- tl:'Filipino',
2425
- fi:'Finnish',
2426
- fr:'French',
2427
- gl:'Galician',
2428
- de:'German',
2429
- el:'Greek',
2430
- ht:'Haitian Creole',
2431
- iw:'Hebrew',
2432
- hi:'Hindi',
2433
- hu:'Hungarian',
2434
- is:'Icelandic',
2435
- id:'Indonesian',
2436
- ga:'Irish',
2437
- it:'Italian',
2438
- ja:'Japanese',
2439
- ko:'Korean',
2440
- lv:'Latvian',
2441
- lt:'Lithuanian',
2442
- mk:'Macedonian',
2443
- ms:'Malay',
2444
- mt:'Maltese',
2445
- no:'Norwegian',
2446
- fa:'Persian',
2447
- pl:'Polish',
2448
- pt:'Portuguese',
2449
- //'pt-pt':'Portuguese (Portugal)',
2450
- ro:'Romanian',
2451
- ru:'Russian',
2452
- sr:'Serbian',
2453
- sk:'Slovak',
2454
- sl:'Slovenian',
2455
- es:'Spanish',
2456
- sw:'Swahili',
2457
- sv:'Swedish',
2458
- tl:'Tagalog',
2459
- th:'Thai',
2460
- tr:'Turkish',
2461
- uk:'Ukrainian',
2462
- vi:'Vietnamese',
2463
- cy:'Welsh',
2464
- yi:'Yiddish'
2465
- }
2466
- };
2467
-
2468
- /*
2469
- Parses WebVVT format which should be formatted as
2470
- ================================
2471
- WEBVTT
2472
-
2473
- 1
2474
- 00:00:01,1 --> 00:00:05,000
2475
- A line of text
2476
-
2477
- 2
2478
- 00:01:15,1 --> 00:02:05,000
2479
- A second line of text
2480
-
2481
- ===============================
2482
-
2483
- Adapted from: http://www.delphiki.com/html5/playr
2484
- */
2485
- mejs.TrackFormatParser = {
2486
- webvvt: {
2487
- // match start "chapter-" (or anythingelse)
2488
- pattern_identifier: /^([a-zA-z]+-)?[0-9]+$/,
2489
- pattern_timecode: /^([0-9]{2}:[0-9]{2}:[0-9]{2}([,.][0-9]{1,3})?) --\> ([0-9]{2}:[0-9]{2}:[0-9]{2}([,.][0-9]{3})?)(.*)$/,
2490
-
2491
- parse: function(trackText) {
2492
- var
2493
- i = 0,
2494
- lines = mejs.TrackFormatParser.split2(trackText, /\r?\n/),
2495
- entries = {text:[], times:[]},
2496
- timecode,
2497
- text;
2498
- for(; i<lines.length; i++) {
2499
- // check for the line number
2500
- if (this.pattern_identifier.exec(lines[i])){
2501
- // skip to the next line where the start --> end time code should be
2502
- i++;
2503
- timecode = this.pattern_timecode.exec(lines[i]);
2504
-
2505
- if (timecode && i<lines.length){
2506
- i++;
2507
- // grab all the (possibly multi-line) text that follows
2508
- text = lines[i];
2509
- i++;
2510
- while(lines[i] !== '' && i<lines.length){
2511
- text = text + '\n' + lines[i];
2512
- i++;
2513
- }
2514
- text = $.trim(text).replace(/(\b(https?|ftp|file):\/\/[-A-Z0-9+&@#\/%?=~_|!:,.;]*[-A-Z0-9+&@#\/%=~_|])/ig, "<a href='$1' target='_blank'>$1</a>");
2515
- // Text is in a different array so I can use .join
2516
- entries.text.push(text);
2517
- entries.times.push(
2518
- {
2519
- start: (mejs.Utility.convertSMPTEtoSeconds(timecode[1]) == 0) ? 0.200 : mejs.Utility.convertSMPTEtoSeconds(timecode[1]),
2520
- stop: mejs.Utility.convertSMPTEtoSeconds(timecode[3]),
2521
- settings: timecode[5]
2522
- });
2523
- }
2524
- }
2525
- }
2526
- return entries;
2527
- }
2528
- },
2529
- // Thanks to Justin Capella: https://github.com/johndyer/mediaelement/pull/420
2530
- dfxp: {
2531
- parse: function(trackText) {
2532
- trackText = $(trackText).filter("tt");
2533
- var
2534
- i = 0,
2535
- container = trackText.children("div").eq(0),
2536
- lines = container.find("p"),
2537
- styleNode = trackText.find("#" + container.attr("style")),
2538
- styles,
2539
- begin,
2540
- end,
2541
- text,
2542
- entries = {text:[], times:[]};
2543
-
2544
-
2545
- if (styleNode.length) {
2546
- var attributes = styleNode.removeAttr("id").get(0).attributes;
2547
- if (attributes.length) {
2548
- styles = {};
2549
- for (i = 0; i < attributes.length; i++) {
2550
- styles[attributes[i].name.split(":")[1]] = attributes[i].value;
2551
- }
2552
- }
2553
- }
2554
-
2555
- for(i = 0; i<lines.length; i++) {
2556
- var style;
2557
- var _temp_times = {
2558
- start: null,
2559
- stop: null,
2560
- style: null
2561
- };
2562
- if (lines.eq(i).attr("begin")) _temp_times.start = mejs.Utility.convertSMPTEtoSeconds(lines.eq(i).attr("begin"));
2563
- if (!_temp_times.start && lines.eq(i-1).attr("end")) _temp_times.start = mejs.Utility.convertSMPTEtoSeconds(lines.eq(i-1).attr("end"));
2564
- if (lines.eq(i).attr("end")) _temp_times.stop = mejs.Utility.convertSMPTEtoSeconds(lines.eq(i).attr("end"));
2565
- if (!_temp_times.stop && lines.eq(i+1).attr("begin")) _temp_times.stop = mejs.Utility.convertSMPTEtoSeconds(lines.eq(i+1).attr("begin"));
2566
- if (styles) {
2567
- style = "";
2568
- for (var _style in styles) {
2569
- style += _style + ":" + styles[_style] + ";";
2570
- }
2571
- }
2572
- if (style) _temp_times.style = style;
2573
- if (_temp_times.start == 0) _temp_times.start = 0.200;
2574
- entries.times.push(_temp_times);
2575
- text = $.trim(lines.eq(i).html()).replace(/(\b(https?|ftp|file):\/\/[-A-Z0-9+&@#\/%?=~_|!:,.;]*[-A-Z0-9+&@#\/%=~_|])/ig, "<a href='$1' target='_blank'>$1</a>");
2576
- entries.text.push(text);
2577
- if (entries.times.start == 0) entries.times.start = 2;
2578
- }
2579
- return entries;
2580
- }
2581
- },
2582
- split2: function (text, regex) {
2583
- // normal version for compliant browsers
2584
- // see below for IE fix
2585
- return text.split(regex);
2586
- }
2587
- };
2588
-
2589
- // test for browsers with bad String.split method.
2590
- if ('x\n\ny'.split(/\n/gi).length != 3) {
2591
- // add super slow IE8 and below version
2592
- mejs.TrackFormatParser.split2 = function(text, regex) {
2593
- var
2594
- parts = [],
2595
- chunk = '',
2596
- i;
2597
-
2598
- for (i=0; i<text.length; i++) {
2599
- chunk += text.substring(i,i+1);
2600
- if (regex.test(chunk)) {
2601
- parts.push(chunk.replace(regex, ''));
2602
- chunk = '';
2603
- }
2604
- }
2605
- parts.push(chunk);
2606
- return parts;
2607
- }
2608
- }
2609
-
2610
- })(mejs.$);
2611
-
2612
- /*
2613
- * ContextMenu Plugin
2614
- *
2615
- *
2616
- */
2617
-
2618
- (function($) {
2619
-
2620
- $.extend(mejs.MepDefaults,
2621
- { 'contextMenuItems': [
2622
- // demo of a fullscreen option
2623
- {
2624
- render: function(player) {
2625
-
2626
- // check for fullscreen plugin
2627
- if (typeof player.enterFullScreen == 'undefined')
2628
- return null;
2629
-
2630
- if (player.isFullScreen) {
2631
- return "Turn off Fullscreen";
2632
- } else {
2633
- return "Go Fullscreen";
2634
- }
2635
- },
2636
- click: function(player) {
2637
- if (player.isFullScreen) {
2638
- player.exitFullScreen();
2639
- } else {
2640
- player.enterFullScreen();
2641
- }
2642
- }
2643
- }
2644
- ,
2645
- // demo of a mute/unmute button
2646
- {
2647
- render: function(player) {
2648
- if (player.media.muted) {
2649
- return "Unmute";
2650
- } else {
2651
- return "Mute";
2652
- }
2653
- },
2654
- click: function(player) {
2655
- if (player.media.muted) {
2656
- player.setMuted(false);
2657
- } else {
2658
- player.setMuted(true);
2659
- }
2660
- }
2661
- },
2662
- // separator
2663
- {
2664
- isSeparator: true
2665
- }
2666
- ,
2667
- // demo of simple download video
2668
- {
2669
- render: function(player) {
2670
- return "Download Video";
2671
- },
2672
- click: function(player) {
2673
- window.location.href = player.media.currentSrc;
2674
- }
2675
- }
2676
- ]}
2677
- );
2678
-
2679
-
2680
- $.extend(MediaElementPlayer.prototype, {
2681
- buildcontextmenu: function(player, controls, layers, media) {
2682
-
2683
- // create context menu
2684
- player.contextMenu = $('<div class="mejs-contextmenu"></div>')
2685
- .appendTo($('body'))
2686
- .hide();
2687
-
2688
- // create events for showing context menu
2689
- player.container.bind('contextmenu', function(e) {
2690
- if (player.isContextMenuEnabled) {
2691
- e.preventDefault();
2692
- player.renderContextMenu(e.clientX-1, e.clientY-1);
2693
- return false;
2694
- }
2695
- });
2696
- player.container.bind('click', function() {
2697
- player.contextMenu.hide();
2698
- });
2699
- player.contextMenu.bind('mouseleave', function() {
2700
-
2701
- //console.log('context hover out');
2702
- player.startContextMenuTimer();
2703
-
2704
- });
2705
- },
2706
-
2707
- isContextMenuEnabled: true,
2708
- enableContextMenu: function() {
2709
- this.isContextMenuEnabled = true;
2710
- },
2711
- disableContextMenu: function() {
2712
- this.isContextMenuEnabled = false;
2713
- },
2714
-
2715
- contextMenuTimeout: null,
2716
- startContextMenuTimer: function() {
2717
- //console.log('startContextMenuTimer');
2718
-
2719
- var t = this;
2720
-
2721
- t.killContextMenuTimer();
2722
-
2723
- t.contextMenuTimer = setTimeout(function() {
2724
- t.hideContextMenu();
2725
- t.killContextMenuTimer();
2726
- }, 750);
2727
- },
2728
- killContextMenuTimer: function() {
2729
- var timer = this.contextMenuTimer;
2730
-
2731
- //console.log('killContextMenuTimer', timer);
2732
-
2733
- if (timer != null) {
2734
- clearTimeout(timer);
2735
- delete timer;
2736
- timer = null;
2737
- }
2738
- },
2739
-
2740
- hideContextMenu: function() {
2741
- this.contextMenu.hide();
2742
- },
2743
-
2744
- renderContextMenu: function(x,y) {
2745
-
2746
- // alway re-render the items so that things like "turn fullscreen on" and "turn fullscreen off" are always written correctly
2747
- var t = this,
2748
- html = '',
2749
- items = t.options.contextMenuItems;
2750
-
2751
- for (var i=0, il=items.length; i<il; i++) {
2752
-
2753
- if (items[i].isSeparator) {
2754
- html += '<div class="mejs-contextmenu-separator"></div>';
2755
- } else {
2756
-
2757
- var rendered = items[i].render(t);
2758
-
2759
- // render can return null if the item doesn't need to be used at the moment
2760
- if (rendered != null) {
2761
- html += '<div class="mejs-contextmenu-item" data-itemindex="' + i + '" id="element-' + (Math.random()*1000000) + '">' + rendered + '</div>';
2762
- }
2763
- }
2764
- }
2765
-
2766
- // position and show the context menu
2767
- t.contextMenu
2768
- .empty()
2769
- .append($(html))
2770
- .css({top:y, left:x})
2771
- .show();
2772
-
2773
- // bind events
2774
- t.contextMenu.find('.mejs-contextmenu-item').each(function() {
2775
-
2776
- // which one is this?
2777
- var $dom = $(this),
2778
- itemIndex = parseInt( $dom.data('itemindex'), 10 ),
2779
- item = t.options.contextMenuItems[itemIndex];
2780
-
2781
- // bind extra functionality?
2782
- if (typeof item.show != 'undefined')
2783
- item.show( $dom , t);
2784
-
2785
- // bind click action
2786
- $dom.click(function() {
2787
- // perform click action
2788
- if (typeof item.click != 'undefined')
2789
- item.click(t);
2790
-
2791
- // close
2792
- t.contextMenu.hide();
2793
- });
2794
- });
2795
-
2796
- // stop the controls from hiding
2797
- setTimeout(function() {
2798
- t.killControlsTimer('rev3');
2799
- }, 100);
2800
-
2801
- }
2802
- });
2803
-
2804
- })(mejs.$);
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
lib/media-element/mediaelementplayer.min.js DELETED
@@ -1,90 +0,0 @@
1
- /*!
2
- * MediaElementPlayer
3
- * http://mediaelementjs.com/
4
- *
5
- * Creates a controller bar for HTML5 <video> add <audio> tags
6
- * using jQuery and MediaElement.js (HTML5 Flash/Silverlight wrapper)
7
- *
8
- * Copyright 2010-2012, John Dyer (http://j.hn/)
9
- * Dual licensed under the MIT or GPL Version 2 licenses.
10
- *
11
- */if(typeof jQuery!="undefined")mejs.$=jQuery;else if(typeof ender!="undefined")mejs.$=ender;
12
- (function(f){mejs.MepDefaults={poster:"",defaultVideoWidth:480,defaultVideoHeight:270,videoWidth:-1,videoHeight:-1,defaultAudioWidth:400,defaultAudioHeight:30,defaultSeekBackwardInterval:function(a){return a.duration*0.05},defaultSeekForwardInterval:function(a){return a.duration*0.05},audioWidth:-1,audioHeight:-1,startVolume:0.8,loop:false,enableAutosize:true,alwaysShowHours:false,showTimecodeFrameCount:false,framesPerSecond:25,autosizeProgress:true,alwaysShowControls:false,iPadUseNativeControls:false,
13
- iPhoneUseNativeControls:false,AndroidUseNativeControls:false,features:["playpause","current","progress","duration","tracks","volume","fullscreen"],isVideo:true,enableKeyboard:true,pauseOtherPlayers:true,keyActions:[{keys:[32,179],action:function(a,b){b.paused||b.ended?b.play():b.pause()}},{keys:[38],action:function(a,b){b.setVolume(Math.min(b.volume+0.1,1))}},{keys:[40],action:function(a,b){b.setVolume(Math.max(b.volume-0.1,0))}},{keys:[37,227],action:function(a,b){if(!isNaN(b.duration)&&b.duration>
14
- 0){if(a.isVideo){a.showControls();a.startControlsTimer()}var c=Math.max(b.currentTime-a.options.defaultSeekBackwardInterval(b),0);b.setCurrentTime(c)}}},{keys:[39,228],action:function(a,b){if(!isNaN(b.duration)&&b.duration>0){if(a.isVideo){a.showControls();a.startControlsTimer()}var c=Math.min(b.currentTime+a.options.defaultSeekForwardInterval(b),b.duration);b.setCurrentTime(c)}}},{keys:[70],action:function(a){if(typeof a.enterFullScreen!="undefined")a.isFullScreen?a.exitFullScreen():a.enterFullScreen()}}]};
15
- mejs.mepIndex=0;mejs.players=[];mejs.MediaElementPlayer=function(a,b){if(!(this instanceof mejs.MediaElementPlayer))return new mejs.MediaElementPlayer(a,b);this.$media=this.$node=f(a);this.node=this.media=this.$media[0];if(typeof this.node.player!="undefined")return this.node.player;else this.node.player=this;if(typeof b=="undefined")b=this.$node.data("mejsoptions");this.options=f.extend({},mejs.MepDefaults,b);mejs.players.push(this);this.init();return this};mejs.MediaElementPlayer.prototype={hasFocus:false,
16
- controlsAreVisible:true,init:function(){var a=this,b=mejs.MediaFeatures,c=f.extend(true,{},a.options,{success:function(d,g){a.meReady(d,g)},error:function(d){a.handleError(d)}}),e=a.media.tagName.toLowerCase();a.isDynamic=e!=="audio"&&e!=="video";a.isVideo=a.isDynamic?a.options.isVideo:e!=="audio"&&a.options.isVideo;if(b.isiPad&&a.options.iPadUseNativeControls||b.isiPhone&&a.options.iPhoneUseNativeControls){a.$media.attr("controls","controls");if(b.isiPad&&a.media.getAttribute("autoplay")!==null){a.media.load();
17
- a.media.play()}}else if(!(b.isAndroid&&a.AndroidUseNativeControls)){a.$media.removeAttr("controls");a.id="mep_"+mejs.mepIndex++;a.container=f('<div id="'+a.id+'" class="mejs-container"><div class="mejs-inner"><div class="mejs-mediaelement"></div><div class="mejs-layers"></div><div class="mejs-controls"></div><div class="mejs-clear"></div></div></div>').addClass(a.$media[0].className).insertBefore(a.$media);a.container.addClass((b.isAndroid?"mejs-android ":"")+(b.isiOS?"mejs-ios ":"")+(b.isiPad?"mejs-ipad ":
18
- "")+(b.isiPhone?"mejs-iphone ":"")+(a.isVideo?"mejs-video ":"mejs-audio "));if(b.isiOS){b=a.$media.clone();a.container.find(".mejs-mediaelement").append(b);a.$media.remove();a.$node=a.$media=b;a.node=a.media=b[0]}else a.container.find(".mejs-mediaelement").append(a.$media);a.controls=a.container.find(".mejs-controls");a.layers=a.container.find(".mejs-layers");b=a.isVideo?"video":"audio";e=b.substring(0,1).toUpperCase()+b.substring(1);a.width=a.options[b+"Width"]>0||a.options[b+"Width"].toString().indexOf("%")>
19
- -1?a.options[b+"Width"]:a.media.style.width!==""&&a.media.style.width!==null?a.media.style.width:a.media.getAttribute("width")!==null?a.$media.attr("width"):a.options["default"+e+"Width"];a.height=a.options[b+"Height"]>0||a.options[b+"Height"].toString().indexOf("%")>-1?a.options[b+"Height"]:a.media.style.height!==""&&a.media.style.height!==null?a.media.style.height:a.$media[0].getAttribute("height")!==null?a.$media.attr("height"):a.options["default"+e+"Height"];a.setPlayerSize(a.width,a.height);
20
- c.pluginWidth=a.height;c.pluginHeight=a.width}mejs.MediaElement(a.$media[0],c)},showControls:function(a){var b=this;a=typeof a=="undefined"||a;if(!b.controlsAreVisible){if(a){b.controls.css("visibility","visible").stop(true,true).fadeIn(200,function(){b.controlsAreVisible=true});b.container.find(".mejs-control").css("visibility","visible").stop(true,true).fadeIn(200,function(){b.controlsAreVisible=true})}else{b.controls.css("visibility","visible").css("display","block");b.container.find(".mejs-control").css("visibility",
21
- "visible").css("display","block");b.controlsAreVisible=true}b.setControlsSize()}},hideControls:function(a){var b=this;a=typeof a=="undefined"||a;if(b.controlsAreVisible)if(a){b.controls.stop(true,true).fadeOut(200,function(){f(this).css("visibility","hidden").css("display","block");b.controlsAreVisible=false});b.container.find(".mejs-control").stop(true,true).fadeOut(200,function(){f(this).css("visibility","hidden").css("display","block")})}else{b.controls.css("visibility","hidden").css("display",
22
- "block");b.container.find(".mejs-control").css("visibility","hidden").css("display","block");b.controlsAreVisible=false}},controlsTimer:null,startControlsTimer:function(a){var b=this;a=typeof a!="undefined"?a:1500;b.killControlsTimer("start");b.controlsTimer=setTimeout(function(){b.hideControls();b.killControlsTimer("hide")},a)},killControlsTimer:function(){if(this.controlsTimer!==null){clearTimeout(this.controlsTimer);delete this.controlsTimer;this.controlsTimer=null}},controlsEnabled:true,disableControls:function(){this.killControlsTimer();
23
- this.hideControls(false);this.controlsEnabled=false},enableControls:function(){this.showControls(false);this.controlsEnabled=true},meReady:function(a,b){var c=this,e=mejs.MediaFeatures,d=b.getAttribute("autoplay");d=!(typeof d=="undefined"||d===null||d==="false");var g;if(!c.created){c.created=true;c.media=a;c.domNode=b;if(!(e.isAndroid&&c.options.AndroidUseNativeControls)&&!(e.isiPad&&c.options.iPadUseNativeControls)&&!(e.isiPhone&&c.options.iPhoneUseNativeControls)){c.buildposter(c,c.controls,c.layers,
24
- c.media);c.buildkeyboard(c,c.controls,c.layers,c.media);c.buildoverlays(c,c.controls,c.layers,c.media);c.findTracks();for(g in c.options.features){e=c.options.features[g];if(c["build"+e])try{c["build"+e](c,c.controls,c.layers,c.media)}catch(k){}}c.container.trigger("controlsready");c.setPlayerSize(c.width,c.height);c.setControlsSize();if(c.isVideo){if(mejs.MediaFeatures.hasTouch)c.$media.bind("touchstart",function(){if(c.controlsAreVisible)c.hideControls(false);else c.controlsEnabled&&c.showControls(false)});
25
- else{(c.media.pluginType=="native"?c.$media:f(c.media.pluginElement)).click(function(){a.paused?a.play():a.pause()});c.container.bind("mouseenter mouseover",function(){if(c.controlsEnabled)if(!c.options.alwaysShowControls){c.killControlsTimer("enter");c.showControls();c.startControlsTimer(2500)}}).bind("mousemove",function(){if(c.controlsEnabled){c.controlsAreVisible||c.showControls();c.options.alwaysShowControls||c.startControlsTimer(2500)}}).bind("mouseleave",function(){c.controlsEnabled&&!c.media.paused&&
26
- !c.options.alwaysShowControls&&c.startControlsTimer(1E3)})}d&&!c.options.alwaysShowControls&&c.hideControls();c.options.enableAutosize&&c.media.addEventListener("loadedmetadata",function(h){if(c.options.videoHeight<=0&&c.domNode.getAttribute("height")===null&&!isNaN(h.target.videoHeight)){c.setPlayerSize(h.target.videoWidth,h.target.videoHeight);c.setControlsSize();c.media.setVideoSize(h.target.videoWidth,h.target.videoHeight)}},false)}a.addEventListener("play",function(){for(var h=0,o=mejs.players.length;h<
27
- o;h++){var n=mejs.players[h];n.id!=c.id&&c.options.pauseOtherPlayers&&!n.paused&&!n.ended&&n.pause();n.hasFocus=false}c.hasFocus=true},false);c.media.addEventListener("ended",function(){try{c.media.setCurrentTime(0)}catch(h){}c.media.pause();c.setProgressRail&&c.setProgressRail();c.setCurrentRail&&c.setCurrentRail();if(c.options.loop)c.media.play();else!c.options.alwaysShowControls&&c.controlsEnabled&&c.showControls()},false);c.media.addEventListener("loadedmetadata",function(){c.updateDuration&&
28
- c.updateDuration();c.updateCurrent&&c.updateCurrent();if(!c.isFullScreen){c.setPlayerSize(c.width,c.height);c.setControlsSize()}},false);setTimeout(function(){c.setPlayerSize(c.width,c.height);c.setControlsSize()},50);f(window).resize(function(){c.isFullScreen||mejs.MediaFeatures.hasTrueNativeFullScreen&&document.webkitIsFullScreen||c.setPlayerSize(c.width,c.height);c.setControlsSize()});c.media.pluginType=="youtube"&&c.container.find(".mejs-overlay-play").hide()}if(d&&a.pluginType=="native"){a.load();
29
- a.play()}if(c.options.success)typeof c.options.success=="string"?window[c.options.success](c.media,c.domNode,c):c.options.success(c.media,c.domNode,c)}},handleError:function(a){this.controls.hide();this.options.error&&this.options.error(a)},setPlayerSize:function(a,b){if(typeof a!="undefined")this.width=a;if(typeof b!="undefined")this.height=b;if(this.height.toString().indexOf("%")>0||this.$node.css("max-width")==="100%"){var c=this.media.videoWidth&&this.media.videoWidth>0?this.media.videoWidth:
30
- this.options.defaultVideoWidth,e=this.media.videoHeight&&this.media.videoHeight>0?this.media.videoHeight:this.options.defaultVideoHeight,d=this.container.parent().width();c=parseInt(d*e/c,10);if(this.container.parent()[0].tagName.toLowerCase()==="body"){d=f(window).width();c=f(window).height()}if(c!=0){this.container.width(d).height(c);this.$media.width("100%").height("100%");this.container.find("object, embed, iframe").width("100%").height("100%");this.isVideo&&this.media.setVideoSize&&this.media.setVideoSize(d,
31
- c);this.layers.children(".mejs-layer").width("100%").height("100%")}}else{this.container.width(this.width).height(this.height);this.layers.children(".mejs-layer").width(this.width).height(this.height)}},setControlsSize:function(){var a=0,b=0,c=this.controls.find(".mejs-time-rail"),e=this.controls.find(".mejs-time-total");this.controls.find(".mejs-time-current");this.controls.find(".mejs-time-loaded");var d=c.siblings();if(this.options&&!this.options.autosizeProgress)b=parseInt(c.css("width"));if(b===
32
- 0||!b){d.each(function(){if(f(this).css("position")!="absolute")a+=f(this).outerWidth(true)});b=this.controls.width()-a-(c.outerWidth(true)-c.width())}c.width(b);e.width(b-(e.outerWidth(true)-e.width()));this.setProgressRail&&this.setProgressRail();this.setCurrentRail&&this.setCurrentRail()},buildposter:function(a,b,c,e){var d=f('<div class="mejs-poster mejs-layer"></div>').appendTo(c);b=a.$media.attr("poster");if(a.options.poster!=="")b=a.options.poster;b!==""&&b!=null?this.setPoster(b):d.hide();
33
- e.addEventListener("play",function(){d.hide()},false)},setPoster:function(a){var b=this.container.find(".mejs-poster"),c=b.find("img");if(c.length==0)c=f('<img width="100%" height="100%" />').appendTo(b);c.attr("src",a)},buildoverlays:function(a,b,c,e){if(a.isVideo){var d=f('<div class="mejs-overlay mejs-layer"><div class="mejs-overlay-loading"><span></span></div></div>').hide().appendTo(c),g=f('<div class="mejs-overlay mejs-layer"><div class="mejs-overlay-error"></div></div>').hide().appendTo(c),
34
- k=f('<div class="mejs-overlay mejs-layer mejs-overlay-play"><div class="mejs-overlay-button"></div></div>').appendTo(c).click(function(){e.paused?e.play():e.pause()});e.addEventListener("play",function(){k.hide();d.hide();b.find(".mejs-time-buffering").hide();g.hide()},false);e.addEventListener("playing",function(){k.hide();d.hide();b.find(".mejs-time-buffering").hide();g.hide()},false);e.addEventListener("seeking",function(){d.show();b.find(".mejs-time-buffering").show()},false);e.addEventListener("seeked",
35
- function(){d.hide();b.find(".mejs-time-buffering").hide()},false);e.addEventListener("pause",function(){mejs.MediaFeatures.isiPhone||k.show()},false);e.addEventListener("waiting",function(){d.show();b.find(".mejs-time-buffering").show()},false);e.addEventListener("loadeddata",function(){d.show();b.find(".mejs-time-buffering").show()},false);e.addEventListener("canplay",function(){d.hide();b.find(".mejs-time-buffering").hide()},false);e.addEventListener("error",function(){d.hide();b.find(".mejs-time-buffering").hide();
36
- g.show();g.find("mejs-overlay-error").html("Error loading this resource")},false)}},buildkeyboard:function(a,b,c,e){f(document).keydown(function(d){if(a.hasFocus&&a.options.enableKeyboard)for(var g=0,k=a.options.keyActions.length;g<k;g++)for(var h=a.options.keyActions[g],o=0,n=h.keys.length;o<n;o++)if(d.keyCode==h.keys[o]){d.preventDefault();h.action(a,e,d.keyCode);return false}return true});f(document).click(function(d){if(f(d.target).closest(".mejs-container").length==0)a.hasFocus=false})},findTracks:function(){var a=
37
- this,b=a.$media.find("track");a.tracks=[];b.each(function(c,e){e=f(e);a.tracks.push({srclang:e.attr("srclang").toLowerCase(),src:e.attr("src"),kind:e.attr("kind"),label:e.attr("label")||"",entries:[],isLoaded:false})})},changeSkin:function(a){this.container[0].className="mejs-container "+a;this.setPlayerSize(this.width,this.height);this.setControlsSize()},play:function(){this.media.play()},pause:function(){this.media.pause()},load:function(){this.media.load()},setMuted:function(a){this.media.setMuted(a)},
38
- setCurrentTime:function(a){this.media.setCurrentTime(a)},getCurrentTime:function(){return this.media.currentTime},setVolume:function(a){this.media.setVolume(a)},getVolume:function(){return this.media.volume},setSrc:function(a){this.media.setSrc(a)},remove:function(){if(this.media.pluginType==="flash")this.media.remove();else this.media.pluginType==="native"&&this.$media.prop("controls",true);this.isDynamic||this.$node.insertBefore(this.container);this.container.remove()}};if(typeof jQuery!="undefined")jQuery.fn.mediaelementplayer=
39
- function(a){return this.each(function(){new mejs.MediaElementPlayer(this,a)})};f(document).ready(function(){f(".mejs-player").mediaelementplayer()});window.MediaElementPlayer=mejs.MediaElementPlayer})(mejs.$);
40
- (function(f){f.extend(mejs.MepDefaults,{playpauseText:"Play/Pause"});f.extend(MediaElementPlayer.prototype,{buildplaypause:function(a,b,c,e){var d=f('<div class="mejs-button mejs-playpause-button mejs-play" ><button type="button" aria-controls="'+this.id+'" title="'+this.options.playpauseText+'"></button></div>').appendTo(b).click(function(g){g.preventDefault();e.paused?e.play():e.pause();return false});e.addEventListener("play",function(){d.removeClass("mejs-play").addClass("mejs-pause")},false);
41
- e.addEventListener("playing",function(){d.removeClass("mejs-play").addClass("mejs-pause")},false);e.addEventListener("pause",function(){d.removeClass("mejs-pause").addClass("mejs-play")},false);e.addEventListener("paused",function(){d.removeClass("mejs-pause").addClass("mejs-play")},false)}})})(mejs.$);
42
- (function(f){f.extend(mejs.MepDefaults,{stopText:"Stop"});f.extend(MediaElementPlayer.prototype,{buildstop:function(a,b,c,e){f('<div class="mejs-button mejs-stop-button mejs-stop"><button type="button" aria-controls="'+this.id+'" title="'+this.options.stopText+'"></button></div>').appendTo(b).click(function(){e.paused||e.pause();if(e.currentTime>0){e.setCurrentTime(0);b.find(".mejs-time-current").width("0px");b.find(".mejs-time-handle").css("left","0px");b.find(".mejs-time-float-current").html(mejs.Utility.secondsToTimeCode(0));
43
- b.find(".mejs-currenttime").html(mejs.Utility.secondsToTimeCode(0));c.find(".mejs-poster").show()}})}})})(mejs.$);
44
- (function(f){f.extend(MediaElementPlayer.prototype,{buildprogress:function(a,b,c,e){f('<div class="mejs-time-rail"><span class="mejs-time-total"><span class="mejs-time-buffering"></span><span class="mejs-time-loaded"></span><span class="mejs-time-current"></span><span class="mejs-time-handle"></span><span class="mejs-time-float"><span class="mejs-time-float-current">00:00</span><span class="mejs-time-float-corner"></span></span></span></div>').appendTo(b);b.find(".mejs-time-buffering").hide();var d=
45
- b.find(".mejs-time-total");c=b.find(".mejs-time-loaded");var g=b.find(".mejs-time-current"),k=b.find(".mejs-time-handle"),h=b.find(".mejs-time-float"),o=b.find(".mejs-time-float-current"),n=function(l){l=l.pageX;var q=d.offset(),i=d.outerWidth(),j=0;j=0;var m=l-q.left;if(l>q.left&&l<=i+q.left&&e.duration){j=(l-q.left)/i;j=j<=0.02?0:j*e.duration;p&&e.setCurrentTime(j);if(!mejs.MediaFeatures.hasTouch){h.css("left",m);o.html(mejs.Utility.secondsToTimeCode(j));h.show()}}},p=false;d.bind("mousedown",function(l){if(l.which===
46
- 1){p=true;n(l);f(document).bind("mousemove.dur",function(q){n(q)}).bind("mouseup.dur",function(){p=false;h.hide();f(document).unbind(".dur")});return false}}).bind("mouseenter",function(){f(document).bind("mousemove.dur",function(l){n(l)});mejs.MediaFeatures.hasTouch||h.show()}).bind("mouseleave",function(){if(!p){f(document).unbind(".dur");h.hide()}});e.addEventListener("progress",function(l){a.setProgressRail(l);a.setCurrentRail(l)},false);e.addEventListener("timeupdate",function(l){a.setProgressRail(l);
47
- a.setCurrentRail(l)},false);this.loaded=c;this.total=d;this.current=g;this.handle=k},setProgressRail:function(a){var b=a!=undefined?a.target:this.media,c=null;if(b&&b.buffered&&b.buffered.length>0&&b.buffered.end&&b.duration)c=b.buffered.end(0)/b.duration;else if(b&&b.bytesTotal!=undefined&&b.bytesTotal>0&&b.bufferedBytes!=undefined)c=b.bufferedBytes/b.bytesTotal;else if(a&&a.lengthComputable&&a.total!=0)c=a.loaded/a.total;if(c!==null){c=Math.min(1,Math.max(0,c));this.loaded&&this.total&&this.loaded.width(this.total.width()*
48
- c)}},setCurrentRail:function(){if(this.media.currentTime!=undefined&&this.media.duration)if(this.total&&this.handle){var a=this.total.width()*this.media.currentTime/this.media.duration,b=a-this.handle.outerWidth(true)/2;this.current.width(a);this.handle.css("left",b)}}})})(mejs.$);
49
- (function(f){f.extend(mejs.MepDefaults,{duration:-1,timeAndDurationSeparator:" <span> | </span> "});f.extend(MediaElementPlayer.prototype,{buildcurrent:function(a,b,c,e){f('<div class="mejs-time"><span class="mejs-currenttime">'+(a.options.alwaysShowHours?"00:":"")+(a.options.showTimecodeFrameCount?"00:00:00":"00:00")+"</span></div>").appendTo(b);this.currenttime=this.controls.find(".mejs-currenttime");e.addEventListener("timeupdate",function(){a.updateCurrent()},false)},buildduration:function(a,
50
- b,c,e){if(b.children().last().find(".mejs-currenttime").length>0)f(this.options.timeAndDurationSeparator+'<span class="mejs-duration">'+(this.options.duration>0?mejs.Utility.secondsToTimeCode(this.options.duration,this.options.alwaysShowHours||this.media.duration>3600,this.options.showTimecodeFrameCount,this.options.framesPerSecond||25):(a.options.alwaysShowHours?"00:":"")+(a.options.showTimecodeFrameCount?"00:00:00":"00:00"))+"</span>").appendTo(b.find(".mejs-time"));else{b.find(".mejs-currenttime").parent().addClass("mejs-currenttime-container");
51
- f('<div class="mejs-time mejs-duration-container"><span class="mejs-duration">'+(this.options.duration>0?mejs.Utility.secondsToTimeCode(this.options.duration,this.options.alwaysShowHours||this.media.duration>3600,this.options.showTimecodeFrameCount,this.options.framesPerSecond||25):(a.options.alwaysShowHours?"00:":"")+(a.options.showTimecodeFrameCount?"00:00:00":"00:00"))+"</span></div>").appendTo(b)}this.durationD=this.controls.find(".mejs-duration");e.addEventListener("timeupdate",function(){a.updateDuration()},
52
- false)},updateCurrent:function(){if(this.currenttime)this.currenttime.html(mejs.Utility.secondsToTimeCode(this.media.currentTime,this.options.alwaysShowHours||this.media.duration>3600,this.options.showTimecodeFrameCount,this.options.framesPerSecond||25))},updateDuration:function(){if(this.media.duration&&this.durationD)this.durationD.html(mejs.Utility.secondsToTimeCode(this.media.duration,this.options.alwaysShowHours,this.options.showTimecodeFrameCount,this.options.framesPerSecond||25))}})})(mejs.$);
53
- (function(f){f.extend(mejs.MepDefaults,{muteText:"Mute Toggle",hideVolumeOnTouchDevices:true,audioVolume:"horizontal",videoVolume:"vertical"});f.extend(MediaElementPlayer.prototype,{buildvolume:function(a,b,c,e){if(!(mejs.MediaFeatures.hasTouch&&this.options.hideVolumeOnTouchDevices)){var d=this.isVideo?this.options.videoVolume:this.options.audioVolume,g=d=="horizontal"?f('<div class="mejs-button mejs-volume-button mejs-mute"><button type="button" aria-controls="'+this.id+'" title="'+this.options.muteText+
54
- '"></button></div><div class="mejs-horizontal-volume-slider"><div class="mejs-horizontal-volume-total"></div><div class="mejs-horizontal-volume-current"></div><div class="mejs-horizontal-volume-handle"></div></div>').appendTo(b):f('<div class="mejs-button mejs-volume-button mejs-mute"><button type="button" aria-controls="'+this.id+'" title="'+this.options.muteText+'"></button><div class="mejs-volume-slider"><div class="mejs-volume-total"></div><div class="mejs-volume-current"></div><div class="mejs-volume-handle"></div></div></div>').appendTo(b),
55
- k=this.container.find(".mejs-volume-slider, .mejs-horizontal-volume-slider"),h=this.container.find(".mejs-volume-total, .mejs-horizontal-volume-total"),o=this.container.find(".mejs-volume-current, .mejs-horizontal-volume-current"),n=this.container.find(".mejs-volume-handle, .mejs-horizontal-volume-handle"),p=function(j,m){if(!k.is(":visible")&&typeof m!="undefined"){k.show();p(j,true);k.hide()}else{j=Math.max(0,j);j=Math.min(j,1);j==0?g.removeClass("mejs-mute").addClass("mejs-unmute"):g.removeClass("mejs-unmute").addClass("mejs-mute");
56
- if(d=="vertical"){var r=h.height(),s=h.position(),t=r-r*j;n.css("top",s.top+t-n.height()/2);o.height(r-t);o.css("top",s.top+t)}else{r=h.width();s=h.position();r=r*j;n.css("left",s.left+r-n.width()/2);o.width(r)}}},l=function(j){var m=null,r=h.offset();if(d=="vertical"){m=h.height();parseInt(h.css("top").replace(/px/,""),10);m=(m-(j.pageY-r.top))/m;if(r.top==0||r.left==0)return}else{m=h.width();m=(j.pageX-r.left)/m}m=Math.max(0,m);m=Math.min(m,1);p(m);m==0?e.setMuted(true):e.setMuted(false);e.setVolume(m)},
57
- q=false,i=false;g.hover(function(){k.show();i=true},function(){i=false;!q&&d=="vertical"&&k.hide()});k.bind("mouseover",function(){i=true}).bind("mousedown",function(j){l(j);f(document).bind("mousemove.vol",function(m){l(m)}).bind("mouseup.vol",function(){q=false;f(document).unbind(".vol");!i&&d=="vertical"&&k.hide()});q=true;return false});g.find("button").click(function(){e.setMuted(!e.muted)});e.addEventListener("volumechange",function(){if(!q)if(e.muted){p(0);g.removeClass("mejs-mute").addClass("mejs-unmute")}else{p(e.volume);
58
- g.removeClass("mejs-unmute").addClass("mejs-mute")}},false);if(this.container.is(":visible")){p(a.options.startVolume);e.pluginType==="native"&&e.setVolume(a.options.startVolume)}}}})})(mejs.$);
59
- (function(f){f.extend(mejs.MepDefaults,{usePluginFullScreen:true,newWindowCallback:function(){return""},fullscreenText:"Fullscreen"});f.extend(MediaElementPlayer.prototype,{isFullScreen:false,isNativeFullScreen:false,docStyleOverflow:null,isInIframe:false,buildfullscreen:function(a,b,c,e){if(a.isVideo){a.isInIframe=window.location!=window.parent.location;if(mejs.MediaFeatures.hasTrueNativeFullScreen){c=null;c=mejs.MediaFeatures.hasMozNativeFullScreen?f(document):a.container;c.bind(mejs.MediaFeatures.fullScreenEventName,
60
- function(){if(mejs.MediaFeatures.isFullScreen()){a.isNativeFullScreen=true;a.setControlsSize()}else{a.isNativeFullScreen=false;a.exitFullScreen()}})}var d=this,g=f('<div class="mejs-button mejs-fullscreen-button"><button type="button" aria-controls="'+d.id+'" title="'+d.options.fullscreenText+'"></button></div>').appendTo(b);if(d.media.pluginType==="native"||!d.options.usePluginFullScreen&&!mejs.MediaFeatures.isFirefox)g.click(function(){mejs.MediaFeatures.hasTrueNativeFullScreen&&mejs.MediaFeatures.isFullScreen()||
61
- a.isFullScreen?a.exitFullScreen():a.enterFullScreen()});else{var k=null;if(function(){var i=document.createElement("x"),j=document.documentElement,m=window.getComputedStyle;if(!("pointerEvents"in i.style))return false;i.style.pointerEvents="auto";i.style.pointerEvents="x";j.appendChild(i);m=m&&m(i,"").pointerEvents==="auto";j.removeChild(i);return!!m}()&&!mejs.MediaFeatures.isOpera){var h=false,o=function(){if(h){n.hide();p.hide();l.hide();g.css("pointer-events","");d.controls.css("pointer-events",
62
- "");h=false}},n=f('<div class="mejs-fullscreen-hover" />').appendTo(d.container).mouseover(o),p=f('<div class="mejs-fullscreen-hover" />').appendTo(d.container).mouseover(o),l=f('<div class="mejs-fullscreen-hover" />').appendTo(d.container).mouseover(o),q=function(){var i={position:"absolute",top:0,left:0};n.css(i);p.css(i);l.css(i);n.width(d.container.width()).height(d.container.height()-d.controls.height());i=g.offset().left-d.container.offset().left;fullScreenBtnWidth=g.outerWidth(true);p.width(i).height(d.controls.height()).css({top:d.container.height()-
63
- d.controls.height()});l.width(d.container.width()-i-fullScreenBtnWidth).height(d.controls.height()).css({top:d.container.height()-d.controls.height(),left:i+fullScreenBtnWidth})};f(document).resize(function(){q()});g.mouseover(function(){if(!d.isFullScreen){var i=g.offset(),j=a.container.offset();e.positionFullscreenButton(i.left-j.left,i.top-j.top,false);g.css("pointer-events","none");d.controls.css("pointer-events","none");n.show();l.show();p.show();q();h=true}});e.addEventListener("fullscreenchange",
64
- function(){o()})}else g.mouseover(function(){if(k!==null){clearTimeout(k);delete k}var i=g.offset(),j=a.container.offset();e.positionFullscreenButton(i.left-j.left,i.top-j.top,true)}).mouseout(function(){if(k!==null){clearTimeout(k);delete k}k=setTimeout(function(){e.hideFullscreenButton()},1500)})}a.fullscreenBtn=g;f(document).bind("keydown",function(i){if((mejs.MediaFeatures.hasTrueNativeFullScreen&&mejs.MediaFeatures.isFullScreen()||d.isFullScreen)&&i.keyCode==27)a.exitFullScreen()})}},enterFullScreen:function(){var a=
65
- this;if(!(a.media.pluginType!=="native"&&(mejs.MediaFeatures.isFirefox||a.options.usePluginFullScreen))){docStyleOverflow=document.documentElement.style.overflow;document.documentElement.style.overflow="hidden";normalHeight=a.container.height();normalWidth=a.container.width();if(a.media.pluginType==="native")if(mejs.MediaFeatures.hasTrueNativeFullScreen){mejs.MediaFeatures.requestFullScreen(a.container[0]);a.isInIframe&&setTimeout(function c(){if(a.isNativeFullScreen)f(window).width()!==screen.width?
66
- a.exitFullScreen():setTimeout(c,500)},500)}else if(mejs.MediaFeatures.hasSemiNativeFullScreen){a.media.webkitEnterFullscreen();return}if(a.isInIframe){var b=a.options.newWindowCallback(this);if(b!=="")if(mejs.MediaFeatures.hasTrueNativeFullScreen)setTimeout(function(){if(!a.isNativeFullScreen){a.pause();window.open(b,a.id,"top=0,left=0,width="+screen.availWidth+",height="+screen.availHeight+",resizable=yes,scrollbars=no,status=no,toolbar=no")}},250);else{a.pause();window.open(b,a.id,"top=0,left=0,width="+
67
- screen.availWidth+",height="+screen.availHeight+",resizable=yes,scrollbars=no,status=no,toolbar=no");return}}a.container.addClass("mejs-container-fullscreen").width("100%").height("100%");setTimeout(function(){a.container.css({width:"100%",height:"100%"});a.setControlsSize()},500);if(a.pluginType==="native")a.$media.width("100%").height("100%");else{a.container.find("object, embed, iframe").width("100%").height("100%");a.media.setVideoSize(f(window).width(),f(window).height())}a.layers.children("div").width("100%").height("100%");
68
- a.fullscreenBtn&&a.fullscreenBtn.removeClass("mejs-fullscreen").addClass("mejs-unfullscreen");a.setControlsSize();a.isFullScreen=true}},exitFullScreen:function(){if(this.media.pluginType!=="native"&&mejs.MediaFeatures.isFirefox)this.media.setFullscreen(false);else{if(mejs.MediaFeatures.hasTrueNativeFullScreen&&(mejs.MediaFeatures.isFullScreen()||this.isFullScreen))mejs.MediaFeatures.cancelFullScreen();document.documentElement.style.overflow=docStyleOverflow;this.container.removeClass("mejs-container-fullscreen").width(normalWidth).height(normalHeight);
69
- if(this.pluginType==="native")this.$media.width(normalWidth).height(normalHeight);else{this.container.find("object embed").width(normalWidth).height(normalHeight);this.media.setVideoSize(normalWidth,normalHeight)}this.layers.children("div").width(normalWidth).height(normalHeight);this.fullscreenBtn.removeClass("mejs-unfullscreen").addClass("mejs-fullscreen");this.setControlsSize();this.isFullScreen=false}}})})(mejs.$);
70
- (function(f){f.extend(mejs.MepDefaults,{startLanguage:"",tracksText:"Captions/Subtitles"});f.extend(MediaElementPlayer.prototype,{hasChapters:false,buildtracks:function(a,b,c,e){if(a.isVideo)if(a.tracks.length!=0){var d;a.chapters=f('<div class="mejs-chapters mejs-layer"></div>').prependTo(c).hide();a.captions=f('<div class="mejs-captions-layer mejs-layer"><div class="mejs-captions-position"><span class="mejs-captions-text"></span></div></div>').prependTo(c).hide();a.captionsText=a.captions.find(".mejs-captions-text");
71
- a.captionsButton=f('<div class="mejs-button mejs-captions-button"><button type="button" aria-controls="'+this.id+'" title="'+this.options.tracksText+'"></button><div class="mejs-captions-selector"><ul><li><input type="radio" name="'+a.id+'_captions" id="'+a.id+'_captions_none" value="none" checked="checked" /><label for="'+a.id+'_captions_none">None</label></li></ul></div></div>').appendTo(b).hover(function(){f(this).find(".mejs-captions-selector").css("visibility","visible")},function(){f(this).find(".mejs-captions-selector").css("visibility",
72
- "hidden")}).delegate("input[type=radio]","click",function(){lang=this.value;if(lang=="none")a.selectedTrack=null;else for(d=0;d<a.tracks.length;d++)if(a.tracks[d].srclang==lang){a.selectedTrack=a.tracks[d];a.captions.attr("lang",a.selectedTrack.srclang);a.displayCaptions();break}});a.options.alwaysShowControls?a.container.find(".mejs-captions-position").addClass("mejs-captions-position-hover"):a.container.bind("mouseenter",function(){a.container.find(".mejs-captions-position").addClass("mejs-captions-position-hover")}).bind("mouseleave",
73
- function(){e.paused||a.container.find(".mejs-captions-position").removeClass("mejs-captions-position-hover")});a.trackToLoad=-1;a.selectedTrack=null;a.isLoadingTrack=false;for(d=0;d<a.tracks.length;d++)a.tracks[d].kind=="subtitles"&&a.addTrackButton(a.tracks[d].srclang,a.tracks[d].label);a.loadNextTrack();e.addEventListener("timeupdate",function(){a.displayCaptions()},false);e.addEventListener("loadedmetadata",function(){a.displayChapters()},false);a.container.hover(function(){if(a.hasChapters){a.chapters.css("visibility",
74
- "visible");a.chapters.fadeIn(200).height(a.chapters.find(".mejs-chapter").outerHeight())}},function(){a.hasChapters&&!e.paused&&a.chapters.fadeOut(200,function(){f(this).css("visibility","hidden");f(this).css("display","block")})});a.node.getAttribute("autoplay")!==null&&a.chapters.css("visibility","hidden")}},loadNextTrack:function(){this.trackToLoad++;if(this.trackToLoad<this.tracks.length){this.isLoadingTrack=true;this.loadTrack(this.trackToLoad)}else this.isLoadingTrack=false},loadTrack:function(a){var b=
75
- this,c=b.tracks[a];f.ajax({url:c.src,dataType:"text",success:function(e){c.entries=typeof e=="string"&&/<tt\s+xml/ig.exec(e)?mejs.TrackFormatParser.dfxp.parse(e):mejs.TrackFormatParser.webvvt.parse(e);c.isLoaded=true;b.enableTrackButton(c.srclang,c.label);b.loadNextTrack();c.kind=="chapters"&&b.media.duration>0&&b.drawChapters(c)},error:function(){b.loadNextTrack()}})},enableTrackButton:function(a,b){if(b==="")b=mejs.language.codes[a]||a;this.captionsButton.find("input[value="+a+"]").prop("disabled",
76
- false).siblings("label").html(b);this.options.startLanguage==a&&f("#"+this.id+"_captions_"+a).click();this.adjustLanguageBox()},addTrackButton:function(a,b){if(b==="")b=mejs.language.codes[a]||a;this.captionsButton.find("ul").append(f('<li><input type="radio" name="'+this.id+'_captions" id="'+this.id+"_captions_"+a+'" value="'+a+'" disabled="disabled" /><label for="'+this.id+"_captions_"+a+'">'+b+" (loading)</label></li>"));this.adjustLanguageBox();this.container.find(".mejs-captions-translations option[value="+
77
- a+"]").remove()},adjustLanguageBox:function(){this.captionsButton.find(".mejs-captions-selector").height(this.captionsButton.find(".mejs-captions-selector ul").outerHeight(true)+this.captionsButton.find(".mejs-captions-translations").outerHeight(true))},displayCaptions:function(){if(typeof this.tracks!="undefined"){var a,b=this.selectedTrack;if(b!=null&&b.isLoaded)for(a=0;a<b.entries.times.length;a++)if(this.media.currentTime>=b.entries.times[a].start&&this.media.currentTime<=b.entries.times[a].stop){this.captionsText.html(b.entries.text[a]);
78
- this.captions.show().height(0);return}this.captions.hide()}},displayChapters:function(){var a;for(a=0;a<this.tracks.length;a++)if(this.tracks[a].kind=="chapters"&&this.tracks[a].isLoaded){this.drawChapters(this.tracks[a]);this.hasChapters=true;break}},drawChapters:function(a){var b=this,c,e,d=e=0;b.chapters.empty();for(c=0;c<a.entries.times.length;c++){e=a.entries.times[c].stop-a.entries.times[c].start;e=Math.floor(e/b.media.duration*100);if(e+d>100||c==a.entries.times.length-1&&e+d<100)e=100-d;b.chapters.append(f('<div class="mejs-chapter" rel="'+
79
- a.entries.times[c].start+'" style="left: '+d.toString()+"%;width: "+e.toString()+'%;"><div class="mejs-chapter-block'+(c==a.entries.times.length-1?" mejs-chapter-block-last":"")+'"><span class="ch-title">'+a.entries.text[c]+'</span><span class="ch-time">'+mejs.Utility.secondsToTimeCode(a.entries.times[c].start)+"&ndash;"+mejs.Utility.secondsToTimeCode(a.entries.times[c].stop)+"</span></div></div>"));d+=e}b.chapters.find("div.mejs-chapter").click(function(){b.media.setCurrentTime(parseFloat(f(this).attr("rel")));
80
- b.media.paused&&b.media.play()});b.chapters.show()}});mejs.language={codes:{af:"Afrikaans",sq:"Albanian",ar:"Arabic",be:"Belarusian",bg:"Bulgarian",ca:"Catalan",zh:"Chinese","zh-cn":"Chinese Simplified","zh-tw":"Chinese Traditional",hr:"Croatian",cs:"Czech",da:"Danish",nl:"Dutch",en:"English",et:"Estonian",tl:"Filipino",fi:"Finnish",fr:"French",gl:"Galician",de:"German",el:"Greek",ht:"Haitian Creole",iw:"Hebrew",hi:"Hindi",hu:"Hungarian",is:"Icelandic",id:"Indonesian",ga:"Irish",it:"Italian",ja:"Japanese",
81
- ko:"Korean",lv:"Latvian",lt:"Lithuanian",mk:"Macedonian",ms:"Malay",mt:"Maltese",no:"Norwegian",fa:"Persian",pl:"Polish",pt:"Portuguese",ro:"Romanian",ru:"Russian",sr:"Serbian",sk:"Slovak",sl:"Slovenian",es:"Spanish",sw:"Swahili",sv:"Swedish",tl:"Tagalog",th:"Thai",tr:"Turkish",uk:"Ukrainian",vi:"Vietnamese",cy:"Welsh",yi:"Yiddish"}};mejs.TrackFormatParser={webvvt:{pattern_identifier:/^([a-zA-z]+-)?[0-9]+$/,pattern_timecode:/^([0-9]{2}:[0-9]{2}:[0-9]{2}([,.][0-9]{1,3})?) --\> ([0-9]{2}:[0-9]{2}:[0-9]{2}([,.][0-9]{3})?)(.*)$/,
82
- parse:function(a){var b=0;a=mejs.TrackFormatParser.split2(a,/\r?\n/);for(var c={text:[],times:[]},e,d;b<a.length;b++)if(this.pattern_identifier.exec(a[b])){b++;if((e=this.pattern_timecode.exec(a[b]))&&b<a.length){b++;d=a[b];for(b++;a[b]!==""&&b<a.length;){d=d+"\n"+a[b];b++}d=f.trim(d).replace(/(\b(https?|ftp|file):\/\/[-A-Z0-9+&@#\/%?=~_|!:,.;]*[-A-Z0-9+&@#\/%=~_|])/ig,"<a href='$1' target='_blank'>$1</a>");c.text.push(d);c.times.push({start:mejs.Utility.convertSMPTEtoSeconds(e[1])==0?0.2:mejs.Utility.convertSMPTEtoSeconds(e[1]),
83
- stop:mejs.Utility.convertSMPTEtoSeconds(e[3]),settings:e[5]})}}return c}},dfxp:{parse:function(a){a=f(a).filter("tt");var b=0;b=a.children("div").eq(0);var c=b.find("p");b=a.find("#"+b.attr("style"));var e,d;a={text:[],times:[]};if(b.length){d=b.removeAttr("id").get(0).attributes;if(d.length){e={};for(b=0;b<d.length;b++)e[d[b].name.split(":")[1]]=d[b].value}}for(b=0;b<c.length;b++){var g;d={start:null,stop:null,style:null};if(c.eq(b).attr("begin"))d.start=mejs.Utility.convertSMPTEtoSeconds(c.eq(b).attr("begin"));
84
- if(!d.start&&c.eq(b-1).attr("end"))d.start=mejs.Utility.convertSMPTEtoSeconds(c.eq(b-1).attr("end"));if(c.eq(b).attr("end"))d.stop=mejs.Utility.convertSMPTEtoSeconds(c.eq(b).attr("end"));if(!d.stop&&c.eq(b+1).attr("begin"))d.stop=mejs.Utility.convertSMPTEtoSeconds(c.eq(b+1).attr("begin"));if(e){g="";for(var k in e)g+=k+":"+e[k]+";"}if(g)d.style=g;if(d.start==0)d.start=0.2;a.times.push(d);d=f.trim(c.eq(b).html()).replace(/(\b(https?|ftp|file):\/\/[-A-Z0-9+&@#\/%?=~_|!:,.;]*[-A-Z0-9+&@#\/%=~_|])/ig,
85
- "<a href='$1' target='_blank'>$1</a>");a.text.push(d);if(a.times.start==0)a.times.start=2}return a}},split2:function(a,b){return a.split(b)}};if("x\n\ny".split(/\n/gi).length!=3)mejs.TrackFormatParser.split2=function(a,b){var c=[],e="",d;for(d=0;d<a.length;d++){e+=a.substring(d,d+1);if(b.test(e)){c.push(e.replace(b,""));e=""}}c.push(e);return c}})(mejs.$);
86
- (function(f){f.extend(mejs.MepDefaults,{contextMenuItems:[{render:function(a){if(typeof a.enterFullScreen=="undefined")return null;return a.isFullScreen?"Turn off Fullscreen":"Go Fullscreen"},click:function(a){a.isFullScreen?a.exitFullScreen():a.enterFullScreen()}},{render:function(a){return a.media.muted?"Unmute":"Mute"},click:function(a){a.media.muted?a.setMuted(false):a.setMuted(true)}},{isSeparator:true},{render:function(){return"Download Video"},click:function(a){window.location.href=a.media.currentSrc}}]});
87
- f.extend(MediaElementPlayer.prototype,{buildcontextmenu:function(a){a.contextMenu=f('<div class="mejs-contextmenu"></div>').appendTo(f("body")).hide();a.container.bind("contextmenu",function(b){if(a.isContextMenuEnabled){b.preventDefault();a.renderContextMenu(b.clientX-1,b.clientY-1);return false}});a.container.bind("click",function(){a.contextMenu.hide()});a.contextMenu.bind("mouseleave",function(){a.startContextMenuTimer()})},isContextMenuEnabled:true,enableContextMenu:function(){this.isContextMenuEnabled=
88
- true},disableContextMenu:function(){this.isContextMenuEnabled=false},contextMenuTimeout:null,startContextMenuTimer:function(){var a=this;a.killContextMenuTimer();a.contextMenuTimer=setTimeout(function(){a.hideContextMenu();a.killContextMenuTimer()},750)},killContextMenuTimer:function(){var a=this.contextMenuTimer;if(a!=null){clearTimeout(a);delete a}},hideContextMenu:function(){this.contextMenu.hide()},renderContextMenu:function(a,b){for(var c=this,e="",d=c.options.contextMenuItems,g=0,k=d.length;g<
89
- k;g++)if(d[g].isSeparator)e+='<div class="mejs-contextmenu-separator"></div>';else{var h=d[g].render(c);if(h!=null)e+='<div class="mejs-contextmenu-item" data-itemindex="'+g+'" id="element-'+Math.random()*1E6+'">'+h+"</div>"}c.contextMenu.empty().append(f(e)).css({top:b,left:a}).show();c.contextMenu.find(".mejs-contextmenu-item").each(function(){var o=f(this),n=parseInt(o.data("itemindex"),10),p=c.options.contextMenuItems[n];typeof p.show!="undefined"&&p.show(o,c);o.click(function(){typeof p.click!=
90
- "undefined"&&p.click(c);c.contextMenu.hide()})});setTimeout(function(){c.killControlsTimer("rev3")},100)}})})(mejs.$);
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
lib/media-element/mejs-skins.css DELETED
@@ -1,283 +0,0 @@
1
- /* TED player */
2
- .mejs-container.mejs-ted {
3
-
4
- }
5
- .mejs-ted .mejs-controls {
6
- background: #eee;
7
- height: 65px;
8
- }
9
-
10
- .mejs-ted .mejs-button,
11
- .mejs-ted .mejs-time {
12
- position: absolute;
13
- background: #ddd;
14
- }
15
- .mejs-ted .mejs-controls .mejs-time-rail .mejs-time-total {
16
- background-color: none;
17
- background: url(controls-ted.png) repeat-x 0 -52px;
18
- height: 6px;
19
- }
20
- .mejs-ted .mejs-controls .mejs-time-rail .mejs-time-loaded {
21
- background-color: none;
22
- background: url(controls-ted.png) repeat-x 0 -52px;
23
- width: 0;
24
- height: 6px;
25
- }
26
- .mejs-ted .mejs-controls .mejs-time-rail .mejs-time-current {
27
- width: 0;
28
- height: 6px;
29
- background-color: none;
30
- background: url(controls-ted.png) repeat-x 0 -59px;
31
- }
32
- .mejs-ted .mejs-controls .mejs-time-rail .mejs-time-handle {
33
- display: block;
34
- margin: 0;
35
- width: 14px;
36
- height: 21px;
37
- top: -7px;
38
- border: 0;
39
- background: url(controls-ted.png) no-repeat 0 0;
40
- }
41
- .mejs-ted .mejs-controls .mejs-time-rail .mejs-time-float {
42
- display: none;
43
- }
44
- .mejs-ted .mejs-controls .mejs-playpause-button {
45
- top: 29px;
46
- left: 9px;
47
- width: 49px;
48
- height: 28px;
49
- }
50
- .mejs-ted .mejs-controls .mejs-playpause-button button {
51
- width: 49px;
52
- height: 28px;
53
- background: url(controls-ted.png) no-repeat -50px -23px;
54
- margin: 0;
55
- padding: 0;
56
- }
57
- .mejs-ted .mejs-controls .mejs-pause button {
58
- background-position: 0 -23px;
59
- }
60
-
61
- .mejs-ted .mejs-controls .mejs-fullscreen-button {
62
- top: 34px;
63
- right: 9px;
64
- width: 17px;
65
- height: 15px;
66
- background : none;
67
- }
68
- .mejs-ted .mejs-controls .mejs-fullscreen-button button {
69
- width: 19px;
70
- height: 17px;
71
- background: transparent url(controls-ted.png) no-repeat 0 -66px;
72
- margin: 0;
73
- padding: 0;
74
- }
75
- .mejs-ted .mejs-controls .mejs-unfullscreen button {
76
- background: transparent url(controls-ted.png) no-repeat -21px -66px;
77
- margin: 0;
78
- padding: 0;
79
- }
80
- .mejs-ted .mejs-controls .mejs-volume-button {
81
- top: 30px;
82
- right: 35px;
83
- width: 24px;
84
- height: 22px;
85
- }
86
- .mejs-ted .mejs-controls .mejs-mute button {
87
- background: url(controls-ted.png) no-repeat -15px 0;
88
- width: 24px;
89
- height: 22px;
90
- margin: 0;
91
- padding: 0;
92
- }
93
- .mejs-ted .mejs-controls .mejs-unmute button {
94
- background: url(controls-ted.png) no-repeat -40px 0;
95
- width: 24px;
96
- height: 22px;
97
- margin: 0;
98
- padding: 0;
99
- }
100
- .mejs-ted .mejs-controls .mejs-volume-button .mejs-volume-slider {
101
- background: #fff;
102
- border: solid 1px #aaa;
103
- border-width: 1px 1px 0 1px;
104
- width: 22px;
105
- height: 65px;
106
- top: -65px;
107
- }
108
- .mejs-ted .mejs-controls .mejs-volume-button .mejs-volume-total {
109
- background: url(controls-ted.png) repeat-y -41px -66px;
110
- left: 8px;
111
- width: 6px;
112
- height: 50px;
113
- }
114
- .mejs-ted .mejs-controls .mejs-volume-button .mejs-volume-current {
115
- left: 8px;
116
- width: 6px;
117
- background: url(controls-ted.png) repeat-y -48px -66px;
118
- height: 50px;
119
- }
120
-
121
- .mejs-ted .mejs-controls .mejs-volume-button .mejs-volume-handle {
122
- display: none;
123
- }
124
-
125
- .mejs-ted .mejs-controls .mejs-time span {
126
- color: #333;
127
- }
128
- .mejs-ted .mejs-controls .mejs-currenttime-container {
129
- position: absolute;
130
- top: 32px;
131
- right: 100px;
132
- border: solid 1px #999;
133
- background: #fff;
134
- color: #333;
135
- padding-top: 2px;
136
- border-radius: 3px;
137
- color: #333;
138
- }
139
- .mejs-ted .mejs-controls .mejs-duration-container {
140
-
141
- position: absolute;
142
- top: 32px;
143
- right: 65px;
144
- border: solid 1px #999;
145
- background: #fff;
146
- color: #333;
147
- padding-top: 2px;
148
- border-radius: 3px;
149
- color: #333;
150
- }
151
-
152
- .mejs-ted .mejs-controls .mejs-time button{
153
- color: #333;
154
- }
155
- .mejs-ted .mejs-controls .mejs-captions-button {
156
- display: none;
157
- }
158
- /* END: TED player */
159
-
160
-
161
- /* WMP player */
162
- .mejs-container.mejs-wmp {
163
-
164
- }
165
- .mejs-wmp .mejs-controls {
166
- background: transparent url(controls-wmp-bg.png) center 16px no-repeat;
167
- height: 65px;
168
- }
169
-
170
- .mejs-wmp .mejs-button,
171
- .mejs-wmp .mejs-time {
172
- position: absolute;
173
- background: transparent;
174
- }
175
- .mejs-wmp .mejs-controls .mejs-time-rail .mejs-time-total {
176
- background-color: transparent;
177
- border: solid 1px #ccc;
178
- height: 3px;
179
- }
180
- .mejs-wmp .mejs-controls .mejs-time-rail .mejs-time-loaded {
181
- background-color: rgba(255,255,255,0.3);
182
- width: 0;
183
- height: 3px;
184
- }
185
- .mejs-wmp .mejs-controls .mejs-time-rail .mejs-time-current {
186
- width: 0;
187
- height: 1px;
188
- background-color: #014CB6;
189
- border: solid 1px #7FC9FA;
190
- border-width: 1px 0;
191
- border-color: #7FC9FA #fff #619FF2 #fff;
192
- }
193
- .mejs-wmp .mejs-controls .mejs-time-rail .mejs-time-handle {
194
- display: block;
195
- margin: 0;
196
- width: 16px;
197
- height: 9px;
198
- top: -3px;
199
- border: 0;
200
- background: url(controls-wmp.png) no-repeat 0 -80px;
201
- }
202
- .mejs-wmp .mejs-controls .mejs-time-rail .mejs-time-float {
203
- display: none;
204
- }
205
- .mejs-wmp .mejs-controls .mejs-playpause-button {
206
- top: 10px;
207
- left: 50%;
208
- margin: 10px 0 0 -20px;
209
- width: 40px;
210
- height: 40px;
211
-
212
- }
213
- .mejs-wmp .mejs-controls .mejs-playpause-button button {
214
- width: 40px;
215
- height: 40px;
216
- background: url(controls-wmp.png) no-repeat 0 0;
217
- margin: 0;
218
- padding: 0;
219
- }
220
- .mejs-wmp .mejs-controls .mejs-pause button {
221
- background-position: 0 -40px;
222
- }
223
-
224
- .mejs-wmp .mejs-controls .mejs-currenttime-container {
225
- position: absolute;
226
- top: 25px;
227
- left: 50%;
228
- margin-left: -93px;
229
- }
230
- .mejs-wmp .mejs-controls .mejs-duration-container {
231
- position: absolute;
232
- top: 25px;
233
- left: 50%;
234
- margin-left: -58px;
235
- }
236
-
237
-
238
- .mejs-wmp .mejs-controls .mejs-volume-button {
239
- top: 32px;
240
- right: 50%;
241
- margin-right: -55px;
242
- width: 20px;
243
- height: 15px;
244
- }
245
- .mejs-wmp .mejs-controls .mejs-volume-button button {
246
- margin: 0;
247
- padding: 0;
248
- background: url(controls-wmp.png) no-repeat -42px -17px;
249
- width: 20px;
250
- height: 15px;
251
- }
252
- .mejs-wmp .mejs-controls .mejs-unmute button {
253
- margin: 0;
254
- padding: 0;
255
- background: url(controls-wmp.png) no-repeat -42px 0;
256
- width: 20px;
257
- height: 15px;
258
- }
259
- .mejs-wmp .mejs-controls .mejs-volume-button .mejs-volume-slider {
260
- background: rgba(102,102,102,0.6);
261
- }
262
-
263
- .mejs-wmp .mejs-controls .mejs-fullscreen-button {
264
- top: 32px;
265
- right: 50%;
266
- margin-right: -82px;
267
- width: 15px;
268
- height: 14px;
269
- }
270
- .mejs-wmp .mejs-controls .mejs-fullscreen-button button {
271
- margin: 0;
272
- padding: 0;
273
- background: url(controls-wmp.png) no-repeat -63px 0;
274
- width: 15px;
275
- height: 14px;
276
- }
277
- .mejs-wmp .mejs-controls .mejs-captions-button {
278
- display: none;
279
- }
280
- /* END: WMP player */
281
-
282
-
283
-
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
lib/media-element/silverlightmediaelement.xap DELETED
Binary file
readme.txt CHANGED
@@ -4,8 +4,8 @@ Tags: BuddyPress, media, multimedia, album, audio, songs, music, video, photo, i
4
  License: GPLv2 or later
5
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
6
  Requires at least: WordPress 4.1
7
- Tested up to: 5.3
8
- Stable tag: 4.5.9
9
 
10
  Add albums, photo, audio/video upload, privacy, sharing, front-end uploads & more. All this works on mobile/tablets devices.
11
 
@@ -134,6 +134,18 @@ http://www.youtube.com/watch?v=dJrykKQGDcs
134
 
135
  == Changelog ==
136
 
 
 
 
 
 
 
 
 
 
 
 
 
137
  = 4.5.9 [October 29, 2019] =
138
 
139
  * Enhancement
@@ -142,8 +154,8 @@ http://www.youtube.com/watch?v=dJrykKQGDcs
142
 
143
  * FIXED
144
 
145
- * Post Update button issue with BuddyPress Nouveau template
146
- * Issue when user uploads the media with link in comment on buddypress activity
147
 
148
  = 4.5.8 [August 6, 2019] =
149
 
@@ -171,8 +183,8 @@ http://www.youtube.com/watch?v=dJrykKQGDcs
171
  * Issue of entering text in text area when Direct Upload and Upload terms enabled together
172
  * UI of pagination button height and text field
173
  * Export/Import button issue in Firefox browser
174
- * Issue of direct upload and media was not opening in lightbox with TwentySeventeen theme v2.1
175
- * Empty space issue for generated activity when media is uploaded without adding text
176
  * Other Errors, Warnings and notices
177
  * Group Activity media are not shown in Group Media tab with BuddyPress Nouveau Template
178
  * User’s name autosuggestion
@@ -1625,8 +1637,8 @@ http://www.youtube.com/watch?v=dJrykKQGDcs
1625
 
1626
  == Upgrade Notice ==
1627
 
1628
- = 4.5.9 =
1629
- rtMedia 4.5.9, with an addition of new classes in BuddPress Activity based on the uploaded media type, and other minor fixes around BuddPress Activity.
1630
 
1631
  == Sponsors ==
1632
 
4
  License: GPLv2 or later
5
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
6
  Requires at least: WordPress 4.1
7
+ Tested up to: 5.3.2
8
+ Stable tag: 4.5.10
9
 
10
  Add albums, photo, audio/video upload, privacy, sharing, front-end uploads & more. All this works on mobile/tablets devices.
11
 
134
 
135
  == Changelog ==
136
 
137
+ = 4.5.10 [December 26, 2019] =
138
+
139
+ * Enhancement
140
+
141
+ * Add better styling for albums
142
+
143
+ * FIXED
144
+
145
+ * Warnings on Support page of rtMedia Settings
146
+ * Issue with rtMedia Update filter on BuddyPress activity wall
147
+ * Redirection popup on Media upload in Activity stream
148
+
149
  = 4.5.9 [October 29, 2019] =
150
 
151
  * Enhancement
154
 
155
  * FIXED
156
 
157
+ * Post Update button issue with BuddyPress Nouveau template
158
+ * Issue when user uploads the media with link in comment on buddypress activity
159
 
160
  = 4.5.8 [August 6, 2019] =
161
 
183
  * Issue of entering text in text area when Direct Upload and Upload terms enabled together
184
  * UI of pagination button height and text field
185
  * Export/Import button issue in Firefox browser
186
+ * Issue of direct upload and media was not opening in lightbox with TwentySeventeen theme v2.1
187
+ * Empty space issue for generated activity when media is uploaded without adding text
188
  * Other Errors, Warnings and notices
189
  * Group Activity media are not shown in Group Media tab with BuddyPress Nouveau Template
190
  * User’s name autosuggestion
1637
 
1638
  == Upgrade Notice ==
1639
 
1640
+ = 4.5.10 =
1641
+ rtMedia 4.5.10, with improved styling for albums and improved UX on BuddyPress Activity Wall.
1642
 
1643
  == Sponsors ==
1644