Linux cpanel2.daytoncreative.net 2.6.32-754.29.2.el6.x86_64 #1 SMP Tue May 12 17:39:04 UTC 2020 x86_64
Apache/2.4.43 (cPanel) OpenSSL/1.1.1g mod_bwlimited/1.4
Server IP : 70.62.220.67 & Your IP : 216.73.216.193
Domains :
Cant Read [ /etc/named.conf ]
User : michaelgreg
Terminal
Auto Root
Create File
Create Folder
Localroot Suggester
Backdoor Destroyer
Readme
/
home /
michaelgreg /
ketteringglass.com /
index_files /
Delete
Unzip
Name
Size
Permission
Date
Action
1f1fa-1f1f8.svg
2.4
KB
-rw-r--r--
2026-04-20 14:43
1f44a-1f3fb.svg
1.29
KB
-rw-r--r--
2026-04-20 14:43
1f44d.svg
1.62
KB
-rw-r--r--
2026-04-20 14:42
1f44f-1f3fc.svg
2.66
KB
-rw-r--r--
2026-04-20 14:43
2764.svg
368
B
-rw-r--r--
2026-04-20 14:42
3d52fbd622754ee337e4dcc06edeb0765ae323c2426b15f4e35ccfae9703.jpg
1.04
KB
-rw-r--r--
2026-04-20 14:43
3d52fbd622754ee337e4dcc06edeb0765ae323c2426b15f4e35ccfae_002.jpg
870
B
-rw-r--r--
2026-04-20 14:43
3d52fbd622754ee337e4dcc06edeb0765ae323c2426b15f4e35ccfae_003.jpg
1.67
KB
-rw-r--r--
2026-04-20 14:43
3d52fbd622754ee337e4dcc06edeb0765ae323c2426b15f4e35ccfae_004.jpg
1.13
KB
-rw-r--r--
2026-04-20 14:43
IMG-0406-150x200.jpg
7.12
KB
-rw-r--r--
2026-04-20 14:43
IMG-0406-225x300.jpg
13.94
KB
-rw-r--r--
2026-04-20 14:43
IMG-0406-324x432.jpg
24.85
KB
-rw-r--r--
2026-04-20 14:43
IMG-0406.jpg
66.54
KB
-rw-r--r--
2026-04-20 14:43
IMG-1402-150x200.jpg
6.23
KB
-rw-r--r--
2026-04-20 14:42
IMG-1402-225x300.jpg
11.92
KB
-rw-r--r--
2026-04-20 14:42
IMG-1402-324x432.jpg
21.29
KB
-rw-r--r--
2026-04-20 14:43
IMG-1402.jpg
58.61
KB
-rw-r--r--
2026-04-20 14:42
IMG-1404-225x300.jpg
13.57
KB
-rw-r--r--
2026-04-20 14:43
IMG-1404-324x432.jpg
25.4
KB
-rw-r--r--
2026-04-20 14:43
IMG-1404.jpg
69.62
KB
-rw-r--r--
2026-04-20 14:42
IMG-1466-225x300.jpg
11.65
KB
-rw-r--r--
2026-04-20 14:43
IMG-1466-324x432.jpg
21.46
KB
-rw-r--r--
2026-04-20 14:43
IMG-1466.jpg
58.75
KB
-rw-r--r--
2026-04-20 14:42
IMG-1468-225x300.jpg
13.72
KB
-rw-r--r--
2026-04-20 14:43
IMG-1468-324x432.jpg
24.04
KB
-rw-r--r--
2026-04-20 14:43
IMG-1468.jpg
63.85
KB
-rw-r--r--
2026-04-20 14:43
IMG-1473-225x300.jpg
14.39
KB
-rw-r--r--
2026-04-20 14:43
IMG-1473-324x432.jpg
24.76
KB
-rw-r--r--
2026-04-20 14:42
IMG-1473.jpg
65.58
KB
-rw-r--r--
2026-04-20 14:43
IMG-1502-225x300.jpg
12.74
KB
-rw-r--r--
2026-04-20 14:43
IMG-1502-324x432.jpg
22.84
KB
-rw-r--r--
2026-04-20 14:42
IMG-1502.jpg
62.01
KB
-rw-r--r--
2026-04-20 14:43
IMG-1503-225x300.jpg
13.77
KB
-rw-r--r--
2026-04-20 14:43
IMG-1503-324x432.jpg
25.59
KB
-rw-r--r--
2026-04-20 14:43
IMG-1503.jpg
68.57
KB
-rw-r--r--
2026-04-20 14:43
IMG-1504-225x300.jpg
13.84
KB
-rw-r--r--
2026-04-20 14:43
IMG-1504-324x432.jpg
25.39
KB
-rw-r--r--
2026-04-20 14:43
IMG-1504.jpg
68.13
KB
-rw-r--r--
2026-04-20 14:43
IMG-1514-225x300.jpg
12.14
KB
-rw-r--r--
2026-04-20 14:43
IMG-1514-324x432.jpg
21.7
KB
-rw-r--r--
2026-04-20 14:43
IMG-1514.jpg
57.12
KB
-rw-r--r--
2026-04-20 14:43
IMG-1516-225x300.jpg
11.47
KB
-rw-r--r--
2026-04-20 14:43
IMG-1516-324x432.jpg
20.01
KB
-rw-r--r--
2026-04-20 14:43
IMG-1516.jpg
52.27
KB
-rw-r--r--
2026-04-20 14:43
IMG-1519-225x300.jpg
16.22
KB
-rw-r--r--
2026-04-20 14:42
IMG-1519-324x432.jpg
30.07
KB
-rw-r--r--
2026-04-20 14:43
IMG-1519.jpg
80.04
KB
-rw-r--r--
2026-04-20 14:43
IMG-1572-225x300.jpg
12.42
KB
-rw-r--r--
2026-04-20 14:43
IMG-1572-324x432.jpg
21.02
KB
-rw-r--r--
2026-04-20 14:42
IMG-1572.jpg
56.66
KB
-rw-r--r--
2026-04-20 14:42
IMG-1604-225x300.jpg
14.23
KB
-rw-r--r--
2026-04-20 14:43
IMG-1604-324x432.jpg
26.57
KB
-rw-r--r--
2026-04-20 14:43
IMG-1604.jpg
70.35
KB
-rw-r--r--
2026-04-20 14:42
Showroom5-1024x302.png
456.11
KB
-rw-r--r--
2026-04-20 14:43
Showroom5-1536x453.png
1007.28
KB
-rw-r--r--
2026-04-20 14:43
Showroom5-2048x604.png
1.69
MB
-rw-r--r--
2026-04-20 14:43
Showroom5-300x89.png
41.58
KB
-rw-r--r--
2026-04-20 14:42
Showroom5-768x227.png
258.85
KB
-rw-r--r--
2026-04-20 14:43
Showroom5.png
4.77
MB
-rw-r--r--
2026-04-20 14:43
a.html
107
B
-rw-r--r--
2026-04-20 14:43
a11y.min.js
2.16
KB
-rw-r--r--
2026-04-20 14:43
a_002.html
1.89
KB
-rw-r--r--
2026-04-20 14:43
admin-bar.min.css
19.89
KB
-rw-r--r--
2026-04-20 14:43
admin-bar.min.js
3.41
KB
-rw-r--r--
2026-04-20 14:43
adminbar-2490.css
4.09
KB
-rw-r--r--
2026-04-20 14:43
animate.min.css
16.99
KB
-rw-r--r--
2026-04-20 14:42
api-request.min.js
1023
B
-rw-r--r--
2026-04-20 14:42
autocomplete.min.js
8.34
KB
-rw-r--r--
2026-04-20 14:43
backbone.min.js
23.73
KB
-rw-r--r--
2026-04-20 14:43
backstretch.themify-version.min.js
6.39
KB
-rw-r--r--
2026-04-20 14:42
beforeafter_commercial-300x207.png
92.99
KB
-rw-r--r--
2026-04-20 14:43
beforeafter_commercial-580x400.png
298.43
KB
-rw-r--r--
2026-04-20 14:43
beforeafter_commercial-768x529.png
471.49
KB
-rw-r--r--
2026-04-20 14:43
beforeafter_commercial.png
644.23
KB
-rw-r--r--
2026-04-20 14:43
beforeafter_shower-300x207.png
109.07
KB
-rw-r--r--
2026-04-20 14:42
beforeafter_shower-580x400.png
361.25
KB
-rw-r--r--
2026-04-20 14:43
beforeafter_shower-768x529.png
584.73
KB
-rw-r--r--
2026-04-20 14:43
beforeafter_shower.png
873.96
KB
-rw-r--r--
2026-04-20 14:42
beforeafter_shower2-300x207.png
82.62
KB
-rw-r--r--
2026-04-20 14:43
beforeafter_shower2-580x400.png
264.89
KB
-rw-r--r--
2026-04-20 14:43
beforeafter_shower2-768x529.png
424.96
KB
-rw-r--r--
2026-04-20 14:43
beforeafter_shower2.png
635.05
KB
-rw-r--r--
2026-04-20 14:43
beforeafter_stair-300x207.png
114.08
KB
-rw-r--r--
2026-04-20 14:43
beforeafter_stair-580x400.png
350.34
KB
-rw-r--r--
2026-04-20 14:42
beforeafter_stair-768x529.png
548.42
KB
-rw-r--r--
2026-04-20 14:42
beforeafter_stair.png
780.41
KB
-rw-r--r--
2026-04-20 14:43
beforeafter_stair2-300x207.png
120.1
KB
-rw-r--r--
2026-04-20 14:43
beforeafter_stair2-580x400.png
367.55
KB
-rw-r--r--
2026-04-20 14:42
beforeafter_stair2-768x529.png
576.75
KB
-rw-r--r--
2026-04-20 14:42
beforeafter_stair2.png
844.15
KB
-rw-r--r--
2026-04-20 14:43
bulet_curtain.png
107.5
KB
-rw-r--r--
2026-04-20 14:42
bulet_door.png
78.39
KB
-rw-r--r--
2026-04-20 14:43
bulet_glassdoor.png
103.53
KB
-rw-r--r--
2026-04-20 14:42
bulet_mirror2.png
94.54
KB
-rw-r--r--
2026-04-20 14:43
bulet_rail.png
112.45
KB
-rw-r--r--
2026-04-20 14:43
bulet_sky.png
119.84
KB
-rw-r--r--
2026-04-20 14:42
bulet_sliding.png
98.04
KB
-rw-r--r--
2026-04-20 14:42
bulet_sliding2.png
115.9
KB
-rw-r--r--
2026-04-20 14:43
bulet_tabletop.png
104.01
KB
-rw-r--r--
2026-04-20 14:43
bulet_terracedoor.png
101.63
KB
-rw-r--r--
2026-04-20 14:43
bulet_win.png
104.21
KB
-rw-r--r--
2026-04-20 14:43
bulet_windscreen.png
102.32
KB
-rw-r--r--
2026-04-20 14:42
buttons.min.css
5.92
KB
-rw-r--r--
2026-04-20 14:42
carousel.min.js
65.15
KB
-rw-r--r--
2026-04-20 14:43
clipboard.min.js
8.8
KB
-rw-r--r--
2026-04-20 14:43
common.min.js
23.12
KB
-rw-r--r--
2026-04-20 14:43
core.min.js
20.96
KB
-rw-r--r--
2026-04-20 14:42
css.css
14.21
KB
-rw-r--r--
2026-04-20 14:43
dashicons.min.css
57.62
KB
-rw-r--r--
2026-04-20 14:42
dom-ready.min.js
457
B
-rw-r--r--
2026-04-20 14:43
editor.min.css
26.84
KB
-rw-r--r--
2026-04-20 14:43
editor.min.js
12.78
KB
-rw-r--r--
2026-04-20 14:43
gally_comm1-1006x1024-196x200.png
48.24
KB
-rw-r--r--
2026-04-20 14:43
gally_comm1-1006x1024-270x275.png
84.18
KB
-rw-r--r--
2026-04-20 14:42
gally_comm1-1006x1024.png
922.53
KB
-rw-r--r--
2026-04-20 14:43
gally_comm1-295x300.png
93.39
KB
-rw-r--r--
2026-04-20 14:43
gally_comm1-768x782.png
560.64
KB
-rw-r--r--
2026-04-20 14:43
gally_comm1.png
1.23
MB
-rw-r--r--
2026-04-20 14:43
gally_comm2-1006x1024-196x200.png
71.83
KB
-rw-r--r--
2026-04-20 14:43
gally_comm2-1006x1024-589x600.png
472.42
KB
-rw-r--r--
2026-04-20 14:43
gally_comm2-1006x1024.png
1.1
MB
-rw-r--r--
2026-04-20 14:43
gally_comm2-295x300.png
146.94
KB
-rw-r--r--
2026-04-20 14:43
gally_comm2-768x782.png
727.12
KB
-rw-r--r--
2026-04-20 14:43
gally_comm2.png
2.2
MB
-rw-r--r--
2026-04-20 14:43
gally_comm3-1006x1024-196x200.png
66.37
KB
-rw-r--r--
2026-04-20 14:43
gally_comm3-1006x1024-589x600.png
474.85
KB
-rw-r--r--
2026-04-20 14:43
gally_comm3-1006x1024.png
1.17
MB
-rw-r--r--
2026-04-20 14:43
gally_comm3-295x300.png
139.02
KB
-rw-r--r--
2026-04-20 14:43
gally_comm3-768x782.png
766.88
KB
-rw-r--r--
2026-04-20 14:42
gally_comm3.png
2.2
MB
-rw-r--r--
2026-04-20 14:43
gally_comm4-1006x1024-196x200.png
55.88
KB
-rw-r--r--
2026-04-20 14:42
gally_comm4-1006x1024-589x600.png
424.78
KB
-rw-r--r--
2026-04-20 14:42
gally_comm4-1006x1024.png
1.04
MB
-rw-r--r--
2026-04-20 14:43
gally_comm4-295x300.png
122.01
KB
-rw-r--r--
2026-04-20 14:43
gally_comm4-768x782.png
672.12
KB
-rw-r--r--
2026-04-20 14:43
gally_comm4.png
1.9
MB
-rw-r--r--
2026-04-20 14:43
gally_comm5-1006x1024-196x200.png
51.58
KB
-rw-r--r--
2026-04-20 14:43
gally_comm5-1006x1024-589x600.png
373.62
KB
-rw-r--r--
2026-04-20 14:43
gally_comm5-1006x1024.png
934.99
KB
-rw-r--r--
2026-04-20 14:43
gally_comm5-295x300.png
106.87
KB
-rw-r--r--
2026-04-20 14:42
gally_comm5-768x782.png
585.32
KB
-rw-r--r--
2026-04-20 14:43
gally_comm5.png
1.7
MB
-rw-r--r--
2026-04-20 14:43
hooks.min.js
5.53
KB
-rw-r--r--
2026-04-20 14:43
hoverIntent.min.js
1.46
KB
-rw-r--r--
2026-04-20 14:43
hoverintent-js.min.js
1.68
KB
-rw-r--r--
2026-04-20 14:42
i18n.min.js
5.19
KB
-rw-r--r--
2026-04-20 14:42
imgareaselect.css
790
B
-rw-r--r--
2026-04-20 14:43
jquery-migrate.min.js
13.26
KB
-rw-r--r--
2026-04-20 14:43
jquery.iframe-auto-height.min.js
2.87
KB
-rw-r--r--
2026-04-20 14:43
jquery.imagesloaded.min.js
5.12
KB
-rw-r--r--
2026-04-20 14:43
jquery.min.js
85.5
KB
-rw-r--r--
2026-04-20 14:43
lightbox.min.css
7.68
KB
-rw-r--r--
2026-04-20 14:43
lightbox.min.js
19.53
KB
-rw-r--r--
2026-04-20 14:43
logonew2.png
79.53
KB
-rw-r--r--
2026-04-20 14:43
main.min.js
35.66
KB
-rw-r--r--
2026-04-20 14:43
media-audiovideo.min.js
11.77
KB
-rw-r--r--
2026-04-20 14:43
media-editor.min.js
10.63
KB
-rw-r--r--
2026-04-20 14:43
media-models.min.js
12.97
KB
-rw-r--r--
2026-04-20 14:43
media-queries.min.css
17.76
KB
-rw-r--r--
2026-04-20 14:42
media-upload.min.js
1.13
KB
-rw-r--r--
2026-04-20 14:42
media-views.min.css
45.61
KB
-rw-r--r--
2026-04-20 14:43
media-views.min.js
108.18
KB
-rw-r--r--
2026-04-20 14:42
mediaelement-and-player.min.js
154.3
KB
-rw-r--r--
2026-04-20 14:42
mediaelement-migrate.min.js
1.16
KB
-rw-r--r--
2026-04-20 14:42
mediaelementplayer-legacy.min.css
10.99
KB
-rw-r--r--
2026-04-20 14:42
menu.min.js
9.96
KB
-rw-r--r--
2026-04-20 14:43
mouse.min.js
3.35
KB
-rw-r--r--
2026-04-20 14:43
moxie.min.js
85.35
KB
-rw-r--r--
2026-04-20 14:43
plugin.min.js
4.03
KB
-rw-r--r--
2026-04-20 14:43
plupload.min.js
15.24
KB
-rw-r--r--
2026-04-20 14:43
quicktags.min.js
10.87
KB
-rw-r--r--
2026-04-20 14:43
shortcode.min.js
2.58
KB
-rw-r--r--
2026-04-20 14:43
shwr-corner-212x300.png
110.1
KB
-rw-r--r--
2026-04-20 14:43
shwr-corner.png
549.44
KB
-rw-r--r--
2026-04-20 14:43
shwr-door-213x300.png
85.45
KB
-rw-r--r--
2026-04-20 14:43
shwr-door.png
404.22
KB
-rw-r--r--
2026-04-20 14:43
shwr-inline2-212x300.png
72.76
KB
-rw-r--r--
2026-04-20 14:43
shwr-inline2.png
356.29
KB
-rw-r--r--
2026-04-20 14:42
shwr-return-212x300.png
79.51
KB
-rw-r--r--
2026-04-20 14:43
shwr-return.png
379.17
KB
-rw-r--r--
2026-04-20 14:42
site-reviews.js
35.54
KB
-rw-r--r--
2026-04-20 14:43
skin.min.css
42.98
KB
-rw-r--r--
2026-04-20 14:43
sortable.min.js
24.91
KB
-rw-r--r--
2026-04-20 14:43
style.min.css
67.09
KB
-rw-r--r--
2026-04-20 14:42
themify-builder-13065-generated.css
15.25
KB
-rw-r--r--
2026-04-20 14:43
themify-builder-style.min.css
127.66
KB
-rw-r--r--
2026-04-20 14:43
themify-customizer.css
1.77
KB
-rw-r--r--
2026-04-20 14:42
themify-icons.min.css
13.48
KB
-rw-r--r--
2026-04-20 14:42
themify.builder.loader.min.css
5.67
KB
-rw-r--r--
2026-04-20 14:43
themify.builder.loader.min.js
8.56
KB
-rw-r--r--
2026-04-20 14:43
themify.builder.script.min.js
48.93
KB
-rw-r--r--
2026-04-20 14:42
themify.common.min.css
4
KB
-rw-r--r--
2026-04-20 14:43
themify.gallery.min.js
10.98
KB
-rw-r--r--
2026-04-20 14:42
themify.header-slider.min.js
4.88
KB
-rw-r--r--
2026-04-20 14:43
themify.lax.min.js
10.22
KB
-rw-r--r--
2026-04-20 14:43
themify.script.min.js
18.46
KB
-rw-r--r--
2026-04-20 14:43
themify.scroll-highlight.min.js
6.06
KB
-rw-r--r--
2026-04-20 14:42
themify.sidemenu.min.js
1.63
KB
-rw-r--r--
2026-04-20 14:43
themify.slidersection.min.js
3.5
KB
-rw-r--r--
2026-04-20 14:43
thickbox.css
2.61
KB
-rw-r--r--
2026-04-20 14:43
thickbox.js
13.02
KB
-rw-r--r--
2026-04-20 14:43
tinymce.min.js
357
KB
-rw-r--r--
2026-04-20 14:43
twentytwentytwo.css
22.61
KB
-rw-r--r--
2026-04-20 14:43
underscore.min.js
18.46
KB
-rw-r--r--
2026-04-20 14:42
utils.min.js
1.82
KB
-rw-r--r--
2026-04-20 14:43
waypoints.min.js
8.45
KB
-rw-r--r--
2026-04-20 14:43
wow.min.js
8.07
KB
-rw-r--r--
2026-04-20 14:43
wp-backbone.min.js
2.97
KB
-rw-r--r--
2026-04-20 14:43
wp-emoji-release.min.js
22.23
KB
-rw-r--r--
2026-04-20 14:43
wp-mediaelement.min.css
4.09
KB
-rw-r--r--
2026-04-20 14:43
wp-mediaelement.min.js
1.08
KB
-rw-r--r--
2026-04-20 14:43
wp-plupload.min.js
5.89
KB
-rw-r--r--
2026-04-20 14:43
wp-util.min.js
1.4
KB
-rw-r--r--
2026-04-20 14:43
wplink.min.js
11.05
KB
-rw-r--r--
2026-04-20 14:43
Save
Rename
/* * Thickbox 3.1 - One Box To Rule Them All. * By Cody Lindley (http://www.codylindley.com) * Copyright (c) 2007 cody lindley * Licensed under the MIT License: http://www.opensource.org/licenses/mit-license.php */ if ( typeof tb_pathToImage != 'string' ) { var tb_pathToImage = thickboxL10n.loadingAnimation; } /*!!!!!!!!!!!!!!!!! edit below this line at your own risk !!!!!!!!!!!!!!!!!!!!!!!*/ //on page load call tb_init jQuery(document).ready(function(){ tb_init('a.thickbox, area.thickbox, input.thickbox');//pass where to apply thickbox imgLoader = new Image();// preload image imgLoader.src = tb_pathToImage; }); /* * Add thickbox to href & area elements that have a class of .thickbox. * Remove the loading indicator when content in an iframe has loaded. */ function tb_init(domChunk){ jQuery( 'body' ) .on( 'click', domChunk, tb_click ) .on( 'thickbox:iframe:loaded', function() { jQuery( '#TB_window' ).removeClass( 'thickbox-loading' ); }); } function tb_click(){ var t = this.title || this.name || null; var a = this.href || this.alt; var g = this.rel || false; tb_show(t,a,g); this.blur(); return false; } function tb_show(caption, url, imageGroup) {//function called when the user clicks on a thickbox link var $closeBtn; try { if (typeof document.body.style.maxHeight === "undefined") {//if IE 6 jQuery("body","html").css({height: "100%", width: "100%"}); jQuery("html").css("overflow","hidden"); if (document.getElementById("TB_HideSelect") === null) {//iframe to hide select elements in ie6 jQuery("body").append("<iframe id='TB_HideSelect'>"+thickboxL10n.noiframes+"</iframe><div id='TB_overlay'></div><div id='TB_window' class='thickbox-loading'></div>"); jQuery("#TB_overlay").on( 'click', tb_remove ); } }else{//all others if(document.getElementById("TB_overlay") === null){ jQuery("body").append("<div id='TB_overlay'></div><div id='TB_window' class='thickbox-loading'></div>"); jQuery("#TB_overlay").on( 'click', tb_remove ); jQuery( 'body' ).addClass( 'modal-open' ); } } if(tb_detectMacXFF()){ jQuery("#TB_overlay").addClass("TB_overlayMacFFBGHack");//use png overlay so hide flash }else{ jQuery("#TB_overlay").addClass("TB_overlayBG");//use background and opacity } if(caption===null){caption="";} jQuery("body").append("<div id='TB_load'><img src='"+imgLoader.src+"' width='208' /></div>");//add loader to the page jQuery('#TB_load').show();//show loader var baseURL; if(url.indexOf("?")!==-1){ //ff there is a query string involved baseURL = url.substr(0, url.indexOf("?")); }else{ baseURL = url; } var urlString = /\.jpg$|\.jpeg$|\.png$|\.gif$|\.bmp$|\.webp$|\.avif$/; var urlType = baseURL.toLowerCase().match(urlString); if(urlType == '.jpg' || urlType == '.jpeg' || urlType == '.png' || urlType == '.gif' || urlType == '.bmp' || urlType == '.webp' || urlType == '.avif' ){//code to show images TB_PrevCaption = ""; TB_PrevURL = ""; TB_PrevHTML = ""; TB_NextCaption = ""; TB_NextURL = ""; TB_NextHTML = ""; TB_imageCount = ""; TB_FoundURL = false; if(imageGroup){ TB_TempArray = jQuery("a[rel="+imageGroup+"]").get(); for (TB_Counter = 0; ((TB_Counter < TB_TempArray.length) && (TB_NextHTML === "")); TB_Counter++) { var urlTypeTemp = TB_TempArray[TB_Counter].href.toLowerCase().match(urlString); if (!(TB_TempArray[TB_Counter].href == url)) { if (TB_FoundURL) { TB_NextCaption = TB_TempArray[TB_Counter].title; TB_NextURL = TB_TempArray[TB_Counter].href; TB_NextHTML = "<span id='TB_next'> <a href='#'>"+thickboxL10n.next+"</a></span>"; } else { TB_PrevCaption = TB_TempArray[TB_Counter].title; TB_PrevURL = TB_TempArray[TB_Counter].href; TB_PrevHTML = "<span id='TB_prev'> <a href='#'>"+thickboxL10n.prev+"</a></span>"; } } else { TB_FoundURL = true; TB_imageCount = thickboxL10n.image + ' ' + (TB_Counter + 1) + ' ' + thickboxL10n.of + ' ' + (TB_TempArray.length); } } } imgPreloader = new Image(); imgPreloader.onload = function(){ imgPreloader.onload = null; // Resizing large images - original by Christian Montoya edited by me. var pagesize = tb_getPageSize(); var x = pagesize[0] - 150; var y = pagesize[1] - 150; var imageWidth = imgPreloader.width; var imageHeight = imgPreloader.height; if (imageWidth > x) { imageHeight = imageHeight * (x / imageWidth); imageWidth = x; if (imageHeight > y) { imageWidth = imageWidth * (y / imageHeight); imageHeight = y; } } else if (imageHeight > y) { imageWidth = imageWidth * (y / imageHeight); imageHeight = y; if (imageWidth > x) { imageHeight = imageHeight * (x / imageWidth); imageWidth = x; } } // End Resizing TB_WIDTH = imageWidth + 30; TB_HEIGHT = imageHeight + 60; jQuery("#TB_window").append("<a href='' id='TB_ImageOff'><span class='screen-reader-text'>"+thickboxL10n.close+"</span><img id='TB_Image' src='"+url+"' width='"+imageWidth+"' height='"+imageHeight+"' alt='"+caption+"'/></a>" + "<div id='TB_caption'>"+caption+"<div id='TB_secondLine'>" + TB_imageCount + TB_PrevHTML + TB_NextHTML + "</div></div><div id='TB_closeWindow'><button type='button' id='TB_closeWindowButton'><span class='screen-reader-text'>"+thickboxL10n.close+"</span><span class='tb-close-icon' aria-hidden='true'></span></button></div>"); jQuery("#TB_closeWindowButton").on( 'click', tb_remove ); if (!(TB_PrevHTML === "")) { function goPrev(){ if(jQuery(document).off("click",goPrev)){jQuery(document).off("click",goPrev);} jQuery("#TB_window").remove(); jQuery("body").append("<div id='TB_window'></div>"); tb_show(TB_PrevCaption, TB_PrevURL, imageGroup); return false; } jQuery("#TB_prev").on( 'click', goPrev ); } if (!(TB_NextHTML === "")) { function goNext(){ jQuery("#TB_window").remove(); jQuery("body").append("<div id='TB_window'></div>"); tb_show(TB_NextCaption, TB_NextURL, imageGroup); return false; } jQuery("#TB_next").on( 'click', goNext ); } jQuery(document).on('keydown.thickbox', function(e){ if ( e.which == 27 ){ // close tb_remove(); } else if ( e.which == 190 ){ // display previous image if(!(TB_NextHTML == "")){ jQuery(document).off('thickbox'); goNext(); } } else if ( e.which == 188 ){ // display next image if(!(TB_PrevHTML == "")){ jQuery(document).off('thickbox'); goPrev(); } } return false; }); tb_position(); jQuery("#TB_load").remove(); jQuery("#TB_ImageOff").on( 'click', tb_remove ); jQuery("#TB_window").css({'visibility':'visible'}); //for safari using css instead of show }; imgPreloader.src = url; }else{//code to show html var queryString = url.replace(/^[^\?]+\??/,''); var params = tb_parseQuery( queryString ); TB_WIDTH = (params['width']*1) + 30 || 630; //defaults to 630 if no parameters were added to URL TB_HEIGHT = (params['height']*1) + 40 || 440; //defaults to 440 if no parameters were added to URL ajaxContentW = TB_WIDTH - 30; ajaxContentH = TB_HEIGHT - 45; if(url.indexOf('TB_iframe') != -1){// either iframe or ajax window urlNoQuery = url.split('TB_'); jQuery("#TB_iframeContent").remove(); if(params['modal'] != "true"){//iframe no modal jQuery("#TB_window").append("<div id='TB_title'><div id='TB_ajaxWindowTitle'>"+caption+"</div><div id='TB_closeAjaxWindow'><button type='button' id='TB_closeWindowButton'><span class='screen-reader-text'>"+thickboxL10n.close+"</span><span class='tb-close-icon' aria-hidden='true'></span></button></div></div><iframe frameborder='0' hspace='0' allowtransparency='true' src='"+urlNoQuery[0]+"' id='TB_iframeContent' name='TB_iframeContent"+Math.round(Math.random()*1000)+"' onload='tb_showIframe()' style='width:"+(ajaxContentW + 29)+"px;height:"+(ajaxContentH + 17)+"px;' >"+thickboxL10n.noiframes+"</iframe>"); }else{//iframe modal jQuery("#TB_overlay").off(); jQuery("#TB_window").append("<iframe frameborder='0' hspace='0' allowtransparency='true' src='"+urlNoQuery[0]+"' id='TB_iframeContent' name='TB_iframeContent"+Math.round(Math.random()*1000)+"' onload='tb_showIframe()' style='width:"+(ajaxContentW + 29)+"px;height:"+(ajaxContentH + 17)+"px;'>"+thickboxL10n.noiframes+"</iframe>"); } }else{// not an iframe, ajax if(jQuery("#TB_window").css("visibility") != "visible"){ if(params['modal'] != "true"){//ajax no modal jQuery("#TB_window").append("<div id='TB_title'><div id='TB_ajaxWindowTitle'>"+caption+"</div><div id='TB_closeAjaxWindow'><button type='button' id='TB_closeWindowButton'><span class='screen-reader-text'>"+thickboxL10n.close+"</span><span class='tb-close-icon' aria-hidden='true'></span></button></div></div><div id='TB_ajaxContent' style='width:"+ajaxContentW+"px;height:"+ajaxContentH+"px'></div>"); }else{//ajax modal jQuery("#TB_overlay").off(); jQuery("#TB_window").append("<div id='TB_ajaxContent' class='TB_modal' style='width:"+ajaxContentW+"px;height:"+ajaxContentH+"px;'></div>"); } }else{//this means the window is already up, we are just loading new content via ajax jQuery("#TB_ajaxContent")[0].style.width = ajaxContentW +"px"; jQuery("#TB_ajaxContent")[0].style.height = ajaxContentH +"px"; jQuery("#TB_ajaxContent")[0].scrollTop = 0; jQuery("#TB_ajaxWindowTitle").html(caption); } } jQuery("#TB_closeWindowButton").on( 'click', tb_remove ); if(url.indexOf('TB_inline') != -1){ jQuery("#TB_ajaxContent").append(jQuery('#' + params['inlineId']).children()); jQuery("#TB_window").on('tb_unload', function () { jQuery('#' + params['inlineId']).append( jQuery("#TB_ajaxContent").children() ); // move elements back when you're finished }); tb_position(); jQuery("#TB_load").remove(); jQuery("#TB_window").css({'visibility':'visible'}); }else if(url.indexOf('TB_iframe') != -1){ tb_position(); jQuery("#TB_load").remove(); jQuery("#TB_window").css({'visibility':'visible'}); }else{ var load_url = url; load_url += -1 === url.indexOf('?') ? '?' : '&'; jQuery("#TB_ajaxContent").load(load_url += "random=" + (new Date().getTime()),function(){//to do a post change this load method tb_position(); jQuery("#TB_load").remove(); tb_init("#TB_ajaxContent a.thickbox"); jQuery("#TB_window").css({'visibility':'visible'}); }); } } if(!params['modal']){ jQuery(document).on('keydown.thickbox', function(e){ if ( e.which == 27 ){ // close tb_remove(); return false; } }); } $closeBtn = jQuery( '#TB_closeWindowButton' ); /* * If the native Close button icon is visible, move focus on the button * (e.g. in the Network Admin Themes screen). * In other admin screens is hidden and replaced by a different icon. */ if ( $closeBtn.find( '.tb-close-icon' ).is( ':visible' ) ) { $closeBtn.trigger( 'focus' ); } } catch(e) { //nothing here } } //helper functions below function tb_showIframe(){ jQuery("#TB_load").remove(); jQuery("#TB_window").css({'visibility':'visible'}).trigger( 'thickbox:iframe:loaded' ); } function tb_remove() { jQuery("#TB_imageOff").off("click"); jQuery("#TB_closeWindowButton").off("click"); jQuery( '#TB_window' ).fadeOut( 'fast', function() { jQuery( '#TB_window, #TB_overlay, #TB_HideSelect' ).trigger( 'tb_unload' ).off().remove(); jQuery( 'body' ).trigger( 'thickbox:removed' ); }); jQuery( 'body' ).removeClass( 'modal-open' ); jQuery("#TB_load").remove(); if (typeof document.body.style.maxHeight == "undefined") {//if IE 6 jQuery("body","html").css({height: "auto", width: "auto"}); jQuery("html").css("overflow",""); } jQuery(document).off('.thickbox'); return false; } function tb_position() { var isIE6 = typeof document.body.style.maxHeight === "undefined"; jQuery("#TB_window").css({marginLeft: '-' + parseInt((TB_WIDTH / 2),10) + 'px', width: TB_WIDTH + 'px'}); if ( ! isIE6 ) { // take away IE6 jQuery("#TB_window").css({marginTop: '-' + parseInt((TB_HEIGHT / 2),10) + 'px'}); } } function tb_parseQuery ( query ) { var Params = {}; if ( ! query ) {return Params;}// return empty object var Pairs = query.split(/[;&]/); for ( var i = 0; i < Pairs.length; i++ ) { var KeyVal = Pairs[i].split('='); if ( ! KeyVal || KeyVal.length != 2 ) {continue;} var key = unescape( KeyVal[0] ); var val = unescape( KeyVal[1] ); val = val.replace(/\+/g, ' '); Params[key] = val; } return Params; } function tb_getPageSize(){ var de = document.documentElement; var w = window.innerWidth || self.innerWidth || (de&&de.clientWidth) || document.body.clientWidth; var h = window.innerHeight || self.innerHeight || (de&&de.clientHeight) || document.body.clientHeight; arrayPageSize = [w,h]; return arrayPageSize; } function tb_detectMacXFF() { var userAgent = navigator.userAgent.toLowerCase(); if (userAgent.indexOf('mac') != -1 && userAgent.indexOf('firefox')!=-1) { return true; } }