UKcaving blogs - smaller pics
4
years/2017/frontmatter.html
Normal file
@@ -0,0 +1,4 @@
|
||||
<h1>CUCC Expo Logbook 2017</h1>
|
||||
<p>
|
||||
<h2>See also: <a href="ukcaving/index.html">UK CAVING ILLUSTRATED BLOG</a> </h3>
|
||||
<p>
|
||||
|
Before Width: | Height: | Size: 58 KiB |
|
Before Width: | Height: | Size: 55 KiB |
|
Before Width: | Height: | Size: 81 KiB |
|
Before Width: | Height: | Size: 138 KiB |
|
Before Width: | Height: | Size: 116 KiB |
|
Before Width: | Height: | Size: 90 KiB |
|
Before Width: | Height: | Size: 106 KiB |
|
Before Width: | Height: | Size: 118 KiB |
|
Before Width: | Height: | Size: 119 KiB |
|
Before Width: | Height: | Size: 127 KiB |
|
Before Width: | Height: | Size: 91 KiB |
|
Before Width: | Height: | Size: 64 KiB |
|
Before Width: | Height: | Size: 42 KiB |
|
Before Width: | Height: | Size: 44 KiB |
|
Before Width: | Height: | Size: 53 KiB |
|
Before Width: | Height: | Size: 65 KiB |
|
Before Width: | Height: | Size: 43 KiB |
|
Before Width: | Height: | Size: 81 KiB |
|
Before Width: | Height: | Size: 72 KiB |
|
Before Width: | Height: | Size: 61 KiB |
|
Before Width: | Height: | Size: 140 KiB |
|
Before Width: | Height: | Size: 149 KiB |
|
Before Width: | Height: | Size: 151 KiB |
|
Before Width: | Height: | Size: 70 KiB |
|
Before Width: | Height: | Size: 159 KiB |
|
Before Width: | Height: | Size: 121 KiB |
|
Before Width: | Height: | Size: 60 KiB |
|
Before Width: | Height: | Size: 213 KiB |
|
Before Width: | Height: | Size: 136 KiB |
|
Before Width: | Height: | Size: 180 KiB |
|
Before Width: | Height: | Size: 163 KiB |
|
Before Width: | Height: | Size: 168 KiB |
|
Before Width: | Height: | Size: 156 KiB |
|
Before Width: | Height: | Size: 118 KiB |
|
Before Width: | Height: | Size: 150 KiB |
|
Before Width: | Height: | Size: 198 KiB |
|
Before Width: | Height: | Size: 93 KiB |
|
Before Width: | Height: | Size: 93 KiB |
|
Before Width: | Height: | Size: 164 KiB |
|
Before Width: | Height: | Size: 145 KiB |
|
Before Width: | Height: | Size: 68 KiB |
|
Before Width: | Height: | Size: 162 KiB |
|
Before Width: | Height: | Size: 135 KiB |
|
Before Width: | Height: | Size: 173 KiB |
|
Before Width: | Height: | Size: 118 KiB |
|
Before Width: | Height: | Size: 82 KiB |
|
Before Width: | Height: | Size: 76 KiB |
|
Before Width: | Height: | Size: 57 KiB |
|
Before Width: | Height: | Size: 45 KiB |
|
Before Width: | Height: | Size: 76 KiB |
|
Before Width: | Height: | Size: 80 KiB |
|
Before Width: | Height: | Size: 203 KiB |
|
Before Width: | Height: | Size: 1.3 KiB |
|
Before Width: | Height: | Size: 1.1 KiB |
|
Before Width: | Height: | Size: 28 KiB |
|
Before Width: | Height: | Size: 41 KiB |
|
Before Width: | Height: | Size: 22 KiB |
|
Before Width: | Height: | Size: 24 KiB |
|
Before Width: | Height: | Size: 32 KiB |
|
Before Width: | Height: | Size: 875 B |
|
Before Width: | Height: | Size: 139 KiB |
|
Before Width: | Height: | Size: 89 KiB |
4
years/2017/ukcaving/font-awesome.min.css
vendored
|
Before Width: | Height: | Size: 413 B |
|
Before Width: | Height: | Size: 591 B |
|
Before Width: | Height: | Size: 108 B |
|
Before Width: | Height: | Size: 362 B |
@@ -1,600 +0,0 @@
|
||||
/* Version 2.3.5; portal */
|
||||
|
||||
/* ************************************* */
|
||||
/* Common styles */
|
||||
/* ************************************* */
|
||||
.sp_table
|
||||
{
|
||||
border-collapse: collapse;
|
||||
border-spacing: 0;
|
||||
width: 100%;
|
||||
}
|
||||
.sp_center
|
||||
{
|
||||
text-align: center;
|
||||
}
|
||||
.sp_right
|
||||
{
|
||||
text-align: right;
|
||||
}
|
||||
.sp_left
|
||||
{
|
||||
text-align: left;
|
||||
}
|
||||
.sp_middle
|
||||
{
|
||||
vertical-align: middle;
|
||||
}
|
||||
.sp_top
|
||||
{
|
||||
vertical-align: top;
|
||||
}
|
||||
.sp_auto_align
|
||||
{
|
||||
margin: 0 auto;
|
||||
}
|
||||
.sp_float_left
|
||||
{
|
||||
float: left;
|
||||
}
|
||||
.sp_float_right
|
||||
{
|
||||
float: right;
|
||||
}
|
||||
.sp_regular_padding
|
||||
{
|
||||
padding: 5px;
|
||||
}
|
||||
.sp_content_padding
|
||||
{
|
||||
padding: 0 0.8em;
|
||||
}
|
||||
.sp_fullwidth
|
||||
{
|
||||
width: 100%;
|
||||
}
|
||||
.sp_page_index
|
||||
{
|
||||
width: 100%;
|
||||
text-align: center;
|
||||
}
|
||||
.sp_clear
|
||||
{
|
||||
clear: both;
|
||||
}
|
||||
.sp_side_clear
|
||||
{
|
||||
clear: both;
|
||||
line-height: 0.7em;
|
||||
}
|
||||
|
||||
/* ************************************* */
|
||||
/* List styles */
|
||||
/* ************************************* */
|
||||
.sp_list
|
||||
{
|
||||
list-style-type: none;
|
||||
text-align: left;
|
||||
padding: 0 0 0 5px;
|
||||
line-height: 1.5em;
|
||||
margin: 0;
|
||||
}
|
||||
.sp_list_indent
|
||||
{
|
||||
padding: 0 0 0 10px;
|
||||
}
|
||||
li.sp_list_top
|
||||
{
|
||||
padding-top: 5px;
|
||||
}
|
||||
li.sp_list_bottom
|
||||
{
|
||||
padding-bottom: 5px;
|
||||
border-bottom: 1px dashed #AAA;
|
||||
}
|
||||
li.sp_list_divider
|
||||
{
|
||||
border-bottom: 1px solid #DDD;
|
||||
}
|
||||
|
||||
/* ************************************* */
|
||||
/* Block specific styles */
|
||||
/* ************************************* */
|
||||
.sp_online_flow
|
||||
{
|
||||
max-height: 150px;
|
||||
height: auto !important;
|
||||
height: 150px;
|
||||
overflow: auto;
|
||||
}
|
||||
.sp_rss_flow
|
||||
{
|
||||
max-height: 300px;
|
||||
height: auto !important;
|
||||
height: 300px;
|
||||
overflow: auto;
|
||||
}
|
||||
td.sp_top_poster, td.sp_staff, td.sp_blog, td.sp_articles
|
||||
{
|
||||
width: 45px;
|
||||
}
|
||||
td.sp_staff_info
|
||||
{
|
||||
padding: 7px 0;
|
||||
vertical-align: bottom;
|
||||
}
|
||||
td.sp_staff_divider
|
||||
{
|
||||
border-bottom: 1px dashed #AAA;
|
||||
}
|
||||
td.sp_recent_icon
|
||||
{
|
||||
vertical-align: middle;
|
||||
width: 5%;
|
||||
}
|
||||
td.sp_recent_subject
|
||||
{
|
||||
width: 60%;
|
||||
}
|
||||
td.sp_recent_info
|
||||
{
|
||||
width: 35%;
|
||||
}
|
||||
div.sp_image
|
||||
{
|
||||
text-align: center;
|
||||
line-height: 1.4em;
|
||||
padding: 5px;
|
||||
}
|
||||
input.sp_search
|
||||
{
|
||||
width: 95%;
|
||||
}
|
||||
.sp_acalendar
|
||||
{
|
||||
border-collapse: collapse;
|
||||
border-spacing: 0;
|
||||
width: 100%;
|
||||
text-align: center;
|
||||
}
|
||||
td.sp_acalendar_day
|
||||
{
|
||||
height: 20px;
|
||||
padding: 2px;
|
||||
text-align: center;
|
||||
vertical-align: top;
|
||||
}
|
||||
.sp_acalendar_divider
|
||||
{
|
||||
width: 80%;
|
||||
}
|
||||
table.sp_blog, table.sp_articles, td.sp_shop_info
|
||||
{
|
||||
line-height: 1.7em;
|
||||
}
|
||||
td.sp_shop_info
|
||||
{
|
||||
font-size: smaller;
|
||||
}
|
||||
td.sp_shop_divider
|
||||
{
|
||||
border-bottom: 1px dashed #AAA;
|
||||
}
|
||||
td.sp_shop
|
||||
{
|
||||
width: 40px;
|
||||
}
|
||||
.sp_blog_title, .sp_articles_title
|
||||
{
|
||||
border-bottom: 1px dashed #AAA;
|
||||
}
|
||||
#sp_menu
|
||||
{
|
||||
width: 100%;
|
||||
}
|
||||
#sp_menu a
|
||||
{
|
||||
margin: 0;
|
||||
line-height: 1.7em;
|
||||
}
|
||||
#sp_menu li
|
||||
{
|
||||
position: relative;
|
||||
}
|
||||
#sp_menu li ul
|
||||
{
|
||||
position: absolute;
|
||||
top: 0;
|
||||
left: 75%;
|
||||
width: 200px;
|
||||
background: #FFFFFF;
|
||||
border: 1px solid #AAA;
|
||||
}
|
||||
#sp_menu ul
|
||||
{
|
||||
display: none;
|
||||
}
|
||||
#sp_menu li:hover ul
|
||||
{
|
||||
display: block;
|
||||
}
|
||||
.sp_article_icon
|
||||
{
|
||||
margin: 5px 10px 0 0;
|
||||
}
|
||||
.sp_article_content
|
||||
{
|
||||
margin-bottom: 0.5em;
|
||||
}
|
||||
|
||||
/* ************************************* */
|
||||
/* Main layout styles */
|
||||
/* ************************************* */
|
||||
#sp_main
|
||||
{
|
||||
width: 100%;
|
||||
border-spacing: 5px;
|
||||
table-layout: fixed;
|
||||
}
|
||||
#sp_header, #sp_footer
|
||||
{
|
||||
vertical-align: top;
|
||||
margin: 0 0.4em;
|
||||
}
|
||||
#sp_left
|
||||
{
|
||||
vertical-align: top;
|
||||
}
|
||||
#sp_right
|
||||
{
|
||||
vertical-align: top;
|
||||
}
|
||||
#sp_center
|
||||
{
|
||||
vertical-align: top;
|
||||
}
|
||||
div.sp_block
|
||||
{
|
||||
overflow: auto;
|
||||
padding: 0 0.5em;
|
||||
}
|
||||
div.sp_block_container
|
||||
{
|
||||
overflow: auto;
|
||||
}
|
||||
table.sp_block
|
||||
{
|
||||
border-collapse: collapse;
|
||||
border-spacing: 0;
|
||||
width: 100%;
|
||||
}
|
||||
td.sp_block_padding
|
||||
{
|
||||
padding: 5px;
|
||||
}
|
||||
.sp_block_section
|
||||
{
|
||||
padding-bottom: 0.7em;
|
||||
}
|
||||
body
|
||||
{
|
||||
min-width: 750px;
|
||||
}
|
||||
|
||||
/* ************************************* */
|
||||
/* Shoutbox styles */
|
||||
/* ************************************* */
|
||||
table.shoutbox_container
|
||||
{
|
||||
width: 100%;
|
||||
font-size: x-small;
|
||||
}
|
||||
.shoutbox_padding
|
||||
{
|
||||
padding: 5px;
|
||||
}
|
||||
.shoutbox_body
|
||||
{
|
||||
text-align: left;
|
||||
padding: 0;
|
||||
}
|
||||
.shoutbox_list_compact
|
||||
{
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
list-style: none;
|
||||
overflow: auto;
|
||||
height: 200px;
|
||||
}
|
||||
.shoutbox_list_compact li
|
||||
{
|
||||
padding: 4px 0 4px 4px;
|
||||
border-bottom: 1px dashed #CCCCCC;
|
||||
border-left: 3px solid #DADADA;
|
||||
}
|
||||
.shoutbox_list_all
|
||||
{
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
list-style: none;
|
||||
}
|
||||
.shoutbox_list_all li
|
||||
{
|
||||
padding: 4px 0 0 4px;
|
||||
border-left: 3px solid #DADADA;
|
||||
}
|
||||
li.shoutbox_time
|
||||
{
|
||||
border-bottom: 1px dashed #CCCCCC;
|
||||
color: #777;
|
||||
}
|
||||
span.shoutbox_time
|
||||
{
|
||||
color: #777;
|
||||
padding-left: 5px;
|
||||
}
|
||||
span.shoutbox_delete
|
||||
{
|
||||
float: right;
|
||||
padding-right: 3px;
|
||||
}
|
||||
.shoutbox_page_index
|
||||
{
|
||||
padding: 2px 0 3px 2px;
|
||||
line-height: 1.8em;
|
||||
text-align: center;
|
||||
}
|
||||
div.shoutbox_input
|
||||
{
|
||||
padding-top: 5px;
|
||||
}
|
||||
input.shoutbox_input
|
||||
{
|
||||
width: 65%;
|
||||
}
|
||||
li.shoutbox_warning
|
||||
{
|
||||
border-left: 3px solid #F66;
|
||||
border-bottom: none;
|
||||
background: #FDD;
|
||||
color: #FF0000;
|
||||
}
|
||||
.shoutbox_me
|
||||
{
|
||||
font-weight: bold;
|
||||
color: #FF0000;
|
||||
}
|
||||
|
||||
/* ************************************* */
|
||||
/* Admin styles */
|
||||
/* ************************************* */
|
||||
#sp_admin_main
|
||||
{
|
||||
overflow: hidden;
|
||||
margin: 1em 0;
|
||||
}
|
||||
#sp_live_info
|
||||
{
|
||||
width: 65%;
|
||||
}
|
||||
#sp_general_info
|
||||
{
|
||||
width: 34%;
|
||||
}
|
||||
#spAnnouncements
|
||||
{
|
||||
height: 18ex;
|
||||
overflow: auto;
|
||||
padding-right: 1ex;
|
||||
}
|
||||
#sp_live_info div.sp_content_padding, #sp_general_info div.sp_content_padding
|
||||
{
|
||||
height: 18ex;
|
||||
}
|
||||
#sp_credits p
|
||||
{
|
||||
margin: 0;
|
||||
padding: 0.5em 0;
|
||||
}
|
||||
|
||||
#sp_manage_blocks h3.titlebg a.sp_float_right
|
||||
{
|
||||
padding-top: 0.5em;
|
||||
}
|
||||
#sp_manage_blocks table.table_grid
|
||||
{
|
||||
margin-bottom: 0.8em;
|
||||
}
|
||||
#sp_select_block_type
|
||||
{
|
||||
width: 80%;
|
||||
margin: 0 auto;
|
||||
}
|
||||
#sp_select_block_type div.sp_content_padding
|
||||
{
|
||||
height: 100px;
|
||||
padding: 0 1em;
|
||||
}
|
||||
#sp_select_block_type li
|
||||
{
|
||||
float: left;
|
||||
width: 150px;
|
||||
height: 200px;
|
||||
}
|
||||
#sp_select_block_type table
|
||||
{
|
||||
width: 100%;
|
||||
}
|
||||
#sp_select_block_type td
|
||||
{
|
||||
width: 33%;
|
||||
vertical-align: top;
|
||||
}
|
||||
#sp_edit_block
|
||||
{
|
||||
width: 70%;
|
||||
margin: 0 auto;
|
||||
}
|
||||
#sp_edit_block #sp_display_advanced
|
||||
{
|
||||
padding-top: 0.6em;
|
||||
line-height: 2em;
|
||||
}
|
||||
#sp_edit_block ul.sp_display_list
|
||||
{
|
||||
overflow: hidden;
|
||||
margin: 0;
|
||||
}
|
||||
#sp_edit_block ul.sp_display_list li
|
||||
{
|
||||
float: left;
|
||||
width: 50%;
|
||||
}
|
||||
|
||||
#sp_manage_articles table.table_grid
|
||||
{
|
||||
margin: 0.4em 0;
|
||||
}
|
||||
#sp_article_add
|
||||
{
|
||||
width: 65%;
|
||||
margin: 0 auto;
|
||||
}
|
||||
#sp_add_articles_category
|
||||
{
|
||||
margin-bottom: 0.5em;
|
||||
}
|
||||
#sp_add_articles_list
|
||||
{
|
||||
list-style: none;
|
||||
}
|
||||
#sp_add_articles_list_header
|
||||
{
|
||||
list-style: none;
|
||||
}
|
||||
#sp_add_articles_list li
|
||||
{
|
||||
margin-top: 0.2em;
|
||||
}
|
||||
#sp_edit_category
|
||||
{
|
||||
width: 60%;
|
||||
margin: 0 auto;
|
||||
}
|
||||
#sp_add_articles_button
|
||||
{
|
||||
padding-top: 0em;
|
||||
}
|
||||
|
||||
#sp_manage_pages table.table_grid
|
||||
{
|
||||
margin: 0.4em 0;
|
||||
}
|
||||
#sp_edit_page
|
||||
{
|
||||
width: 70%;
|
||||
margin: 0 auto;
|
||||
}
|
||||
|
||||
#sp_manage_shoutboxes table.table_grid
|
||||
{
|
||||
margin: 0.4em 0;
|
||||
}
|
||||
#sp_edit_shoutbox
|
||||
{
|
||||
width: 70%;
|
||||
margin: 0 auto;
|
||||
}
|
||||
#sp_prune_shoutbox
|
||||
{
|
||||
width: 70%;
|
||||
margin: 0 auto;
|
||||
}
|
||||
#sp_prune_shoutbox dl.sp_form dt
|
||||
{
|
||||
width: 65%;
|
||||
}
|
||||
#sp_prune_shoutbox dl.sp_form dd
|
||||
{
|
||||
width: 34%;
|
||||
}
|
||||
#sp_shoutbox_redirect
|
||||
{
|
||||
width: 50%;
|
||||
margin: 0 auto;
|
||||
}
|
||||
|
||||
dl#sp_edit_style_title, dl#sp_edit_style_body
|
||||
{
|
||||
width: 50%;
|
||||
}
|
||||
dl#sp_edit_style_title dt, dl#sp_edit_style_body dt
|
||||
{
|
||||
width: 45%;
|
||||
}
|
||||
dl#sp_edit_style_title dd, dl#sp_edit_style_body dd
|
||||
{
|
||||
width: 54%;
|
||||
}
|
||||
|
||||
dl.sp_form
|
||||
{
|
||||
margin: 0;
|
||||
clear: right;
|
||||
overflow: auto;
|
||||
}
|
||||
dl.sp_form dt
|
||||
{
|
||||
font-weight: normal;
|
||||
float: left;
|
||||
clear: both;
|
||||
width: 31%;
|
||||
margin: 0.5em 0 0 0;
|
||||
}
|
||||
dl.sp_form dt strong
|
||||
{
|
||||
font-weight: bold;
|
||||
}
|
||||
dl.sp_form dt span
|
||||
{
|
||||
display: block;
|
||||
}
|
||||
dl.sp_form dd
|
||||
{
|
||||
float: left;
|
||||
width: 68%;
|
||||
margin: 0.5em 0 0 0;
|
||||
}
|
||||
dl.sp_form img, #sp_add_articles_list_header img
|
||||
{
|
||||
margin: 0 0.2em 0 0;
|
||||
}
|
||||
dl.sp_form dt a img, #sp_add_articles_list_header a img
|
||||
{
|
||||
position: relative;
|
||||
top: 2px;
|
||||
}
|
||||
|
||||
.sp_button_container
|
||||
{
|
||||
text-align: center;
|
||||
padding-top: 1.5em;
|
||||
}
|
||||
#sp_rich_editor
|
||||
{
|
||||
padding-left: 2em;
|
||||
padding-top: 1em;
|
||||
}
|
||||
#sp_text_editor
|
||||
{
|
||||
padding: 1em;
|
||||
}
|
||||
#sp_text_editor textarea
|
||||
{
|
||||
width: 100%;
|
||||
}
|
||||
#sp_text_editor input
|
||||
{
|
||||
float: right;
|
||||
margin-right: 2px;
|
||||
}
|
||||
|
Before Width: | Height: | Size: 95 KiB |
@@ -1,239 +0,0 @@
|
||||
// Version 2.3.5; portal.js
|
||||
|
||||
// Define the version of SMF that we are using.
|
||||
if (typeof(smf_editorArray) == "undefined")
|
||||
portal_smf_version = 1.1;
|
||||
else
|
||||
portal_smf_version = 2;
|
||||
|
||||
function sp_collapse_object(id, has_image)
|
||||
{
|
||||
mode = document.getElementById("sp_object_" + id).style.display == '' ? 0 : 1;
|
||||
document.getElementById("sp_object_" + id).style.display = mode ? '' : 'none';
|
||||
|
||||
if (typeof(has_image) == "undefined" || has_image == true)
|
||||
document.getElementById("sp_collapse_" + id).src = smf_images_url + (mode ? '/collapse.gif' : '/expand.gif');
|
||||
}
|
||||
|
||||
function sp_image_resize()
|
||||
{
|
||||
var possible_images = document.getElementsByTagName("img");
|
||||
for (var i = 0; i < possible_images.length; i++)
|
||||
{
|
||||
if (possible_images[i].className != (portal_smf_version == 1.1 ? "sp_article" : "bbc_img sp_article"))
|
||||
continue;
|
||||
|
||||
var temp_image = new Image();
|
||||
temp_image.src = possible_images[i].src;
|
||||
|
||||
if (temp_image.width > 300)
|
||||
{
|
||||
possible_images[i].height = (300 * temp_image.height) / temp_image.width;
|
||||
possible_images[i].width = 300;
|
||||
}
|
||||
else
|
||||
{
|
||||
possible_images[i].width = temp_image.width;
|
||||
possible_images[i].height = temp_image.height;
|
||||
}
|
||||
}
|
||||
|
||||
if (typeof(window_oldSPImageOnload) != "undefined" && window_oldSPImageOnload)
|
||||
{
|
||||
window_oldSPImageOnload();
|
||||
window_oldSPImageOnload = null;
|
||||
}
|
||||
}
|
||||
|
||||
function sp_submit_shout(shoutbox_id, sSessionVar, sSessionId)
|
||||
{
|
||||
if (window.XMLHttpRequest)
|
||||
{
|
||||
shoutbox_indicator(shoutbox_id, true);
|
||||
|
||||
var shout_body = "";
|
||||
|
||||
if (portal_smf_version == 1.1)
|
||||
shout_body = escape(textToEntities(document.getElementById('new_shout_' + shoutbox_id).value.replace(/&#/g, "&#"))).replace(/\+/g, "%2B");
|
||||
else
|
||||
shout_body = escape(document.getElementById('new_shout_' + shoutbox_id).value.replace(/&#/g, "&#").php_to8bit()).replace(/\+/g, "%2B");
|
||||
|
||||
sendXMLDocument(smf_prepareScriptUrl(smf_scripturl) + 'action=portal;sa=shoutbox;xml', 'shoutbox_id=' + shoutbox_id + '&shout=' + shout_body + '&' + sSessionVar + '=' + sSessionId, onShoutReceived);
|
||||
|
||||
document.getElementById('new_shout_' + shoutbox_id).value = '';
|
||||
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
function sp_delete_shout(shoutbox_id, shout_id, sSessionVar, sSessionId)
|
||||
{
|
||||
if (window.XMLHttpRequest)
|
||||
{
|
||||
shoutbox_indicator(shoutbox_id, true);
|
||||
|
||||
sendXMLDocument(smf_prepareScriptUrl(smf_scripturl) + 'action=portal;sa=shoutbox;xml', 'shoutbox_id=' + shoutbox_id + '&delete=' + shout_id + '&' + sSessionVar + '=' + sSessionId, onShoutReceived);
|
||||
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
function sp_refresh_shout(shoutbox_id, last_refresh)
|
||||
{
|
||||
if (window.XMLHttpRequest)
|
||||
{
|
||||
shoutbox_indicator(shoutbox_id, true);
|
||||
|
||||
getXMLDocument(smf_prepareScriptUrl(smf_scripturl) + 'action=portal;sa=shoutbox;shoutbox_id=' + shoutbox_id + ';time=' + last_refresh + ';xml', onShoutReceived);
|
||||
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
// Function to handle the receiving of new shout data from the xml request.
|
||||
function onShoutReceived(XMLDoc)
|
||||
{
|
||||
var shouts = XMLDoc.getElementsByTagName("smf")[0].getElementsByTagName("shout");
|
||||
var shoutbox_id, updated, error, warning, reverse, shout, id, author, time, timeclean, delete_link, content, is_me, new_body = '';
|
||||
|
||||
shoutbox_id = XMLDoc.getElementsByTagName("smf")[0].getElementsByTagName("shoutbox")[0].childNodes[0].nodeValue;
|
||||
updated = XMLDoc.getElementsByTagName("smf")[0].getElementsByTagName("updated")[0].childNodes[0].nodeValue;
|
||||
|
||||
if (updated == 1)
|
||||
{
|
||||
error = XMLDoc.getElementsByTagName("smf")[0].getElementsByTagName("error")[0].childNodes[0].nodeValue;
|
||||
warning = XMLDoc.getElementsByTagName("smf")[0].getElementsByTagName("warning")[0].childNodes[0].nodeValue;
|
||||
reverse = XMLDoc.getElementsByTagName("smf")[0].getElementsByTagName("reverse")[0].childNodes[0].nodeValue;
|
||||
|
||||
if (warning != 0)
|
||||
new_body += '<li class="shoutbox_warning smalltext">' + warning + '</li>';
|
||||
|
||||
if (error != 0)
|
||||
setInnerHTML(document.getElementById('shouts_' + shoutbox_id), new_body + '<li class="smalltext">' + error + '</li>');
|
||||
else
|
||||
{
|
||||
for (var i = 0; i < shouts.length; i++)
|
||||
{
|
||||
shout = XMLDoc.getElementsByTagName("smf")[0].getElementsByTagName("shout")[i];
|
||||
id = shout.getElementsByTagName("id")[0].childNodes[0].nodeValue;
|
||||
author = shout.getElementsByTagName("author")[0].childNodes[0].nodeValue;
|
||||
time = shout.getElementsByTagName("time")[0].childNodes[0].nodeValue;
|
||||
timeclean = shout.getElementsByTagName("timeclean")[0].childNodes[0].nodeValue;
|
||||
delete_link = shout.getElementsByTagName("delete")[0].childNodes[0].nodeValue;
|
||||
content = shout.getElementsByTagName("content")[0].childNodes[0].nodeValue;
|
||||
is_me = shout.getElementsByTagName("is_me")[0].childNodes[0].nodeValue;
|
||||
|
||||
new_body += '<li class="smalltext">' + (is_me == 0 ? '<strong>' + author + ':</strong> ' : '') + content + '<br />' + (delete_link != 0 ? ('<span class="shoutbox_delete">' + delete_link + '</span>') : '') + '<span class="smalltext shoutbox_time">' + time + '</span></li>';
|
||||
}
|
||||
|
||||
setInnerHTML(document.getElementById('shouts_' + shoutbox_id), new_body);
|
||||
|
||||
if (reverse != 0)
|
||||
document.getElementById('shouts_' + shoutbox_id).scrollTop = document.getElementById('shouts_' + shoutbox_id).scrollHeight;
|
||||
else
|
||||
document.getElementById('shouts_' + shoutbox_id).scrollTop = 0;
|
||||
|
||||
var sp_date = new Date;
|
||||
eval("last_refresh_" + shoutbox_id + " = " + Math.round(sp_date.getTime() / 1000, 0) + ";");
|
||||
}
|
||||
}
|
||||
|
||||
shoutbox_indicator(shoutbox_id, false);
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
function shoutbox_indicator(shoutbox_id, turn_on)
|
||||
{
|
||||
document.getElementById('shoutbox_load_' + shoutbox_id).style.display = turn_on ? '' : 'none';
|
||||
}
|
||||
|
||||
function sp_catch_enter(key)
|
||||
{
|
||||
var keycode;
|
||||
|
||||
if (window.event)
|
||||
keycode = window.event.keyCode;
|
||||
else if (key)
|
||||
keycode = key.which;
|
||||
|
||||
if (keycode == 13)
|
||||
return true;
|
||||
}
|
||||
|
||||
function sp_show_ignored_shout(shout_id)
|
||||
{
|
||||
document.getElementById('ignored_shout_' + shout_id).style.display = '';
|
||||
document.getElementById('ignored_shout_link_' + shout_id).style.display = 'none';
|
||||
}
|
||||
|
||||
function sp_show_history_ignored_shout(shout_id)
|
||||
{
|
||||
document.getElementById('history_ignored_shout_' + shout_id).style.display = '';
|
||||
document.getElementById('history_ignored_shout_link_' + shout_id).style.display = 'none';
|
||||
}
|
||||
|
||||
function style_highlight(something, mode)
|
||||
{
|
||||
something.style.backgroundImage = 'url(' + smf_images_url + (mode ? '/bbc/bbc_hoverbg.gif)' : '/bbc/bbc_bg.gif)');
|
||||
}
|
||||
|
||||
function smf_prepareScriptUrl(sUrl)
|
||||
{
|
||||
return sUrl.indexOf('?') == -1 ? sUrl + '?' : sUrl + (sUrl.charAt(sUrl.length - 1) == '?' || sUrl.charAt(sUrl.length - 1) == '&' || sUrl.charAt(sUrl.length - 1) == ';' ? '' : ';');
|
||||
}
|
||||
|
||||
// This function is for SMF 1.1.x as well as SMF 2RC1.2 and below.
|
||||
function sp_compat_showMoreSmileys(postbox, sTitleText, sPickText, sCloseText, smf_theme_url, smf_smileys_url)
|
||||
{
|
||||
if (this.oSmileyPopupWindow)
|
||||
this.oSmileyPopupWindow.close();
|
||||
|
||||
this.oSmileyPopupWindow = window.open('', 'add_smileys', 'toolbar=no,location=no,status=no,menubar=no,scrollbars=yes,width=480,height=220,resizable=yes');
|
||||
this.oSmileyPopupWindow.document.write('<!DOCTYPE html>\n<html>');
|
||||
this.oSmileyPopupWindow.document.write('\n\t<head>\n\t\t<title>' + sTitleText + '</title>\n\t\t<link rel="stylesheet" type="text/css" href="' + smf_theme_url + '/style.css" />\n\t</head>');
|
||||
this.oSmileyPopupWindow.document.write('\n\t<body style="margin: 1ex;">\n\t\t<table width="100%" cellpadding="5" cellspacing="0" border="0" class="tborder">\n\t\t\t<tr class="titlebg"><td align="left">' + sPickText + '</td></tr>\n\t\t\t<tr class="windowbg"><td align="left">');
|
||||
|
||||
for (i = 0; i < sp_smileys.length; i++)
|
||||
{
|
||||
sp_smileys[i][2] = sp_smileys[i][2].replace(/"/g, '"');
|
||||
sp_smileys[i][0] = sp_smileys[i][0].replace(/"/g, '"');
|
||||
this.oSmileyPopupWindow.document.write('<a href="javascript:void(0);" onclick="window.opener.replaceText(\' ' + (portal_smf_version == 1.1 ? sp_smileys[i][0] : smf_addslashes(sp_smileys[i][0])) + '\', window.opener.document.getElementById(\'new_shout_' + postbox + '\')); window.focus(); return false;"><img src="' + smf_smileys_url + '/' + sp_smileys[i][1] + '" id="sml_' + sp_smileys[i][1] + '" alt="' + sp_smileys[i][2] + '" title="' + sp_smileys[i][2] + '" style="padding: 4px;" border="0" /></a> ');
|
||||
}
|
||||
|
||||
this.oSmileyPopupWindow.document.write('</td></tr>\n\t\t\t<tr><td align="center" class="windowbg"><a href="javascript:window.close();">' + sCloseText + '</a></td></tr>\n\t\t</table>');
|
||||
this.oSmileyPopupWindow.document.write('\n\t</body>\n</html>');
|
||||
this.oSmileyPopupWindow.document.close();
|
||||
}
|
||||
|
||||
// This function is for SMF 2 RC2 and above.
|
||||
function sp_showMoreSmileys(postbox, sTitleText, sPickText, sCloseText, smf_theme_url, smf_smileys_url)
|
||||
{
|
||||
if (this.oSmileyPopupWindow != null && 'closed' in this.oSmileyPopupWindow && !this.oSmileyPopupWindow.closed)
|
||||
{
|
||||
this.oSmileyPopupWindow.focus();
|
||||
return;
|
||||
}
|
||||
|
||||
if (sp_smileyRowsContent == undefined)
|
||||
{
|
||||
var sp_smileyRowsContent = '';
|
||||
for (i = 0; i < sp_smileys.length; i++)
|
||||
{
|
||||
sp_smileys[i][2] = sp_smileys[i][2].replace(/"/g, '"');
|
||||
sp_smileys[i][0] = sp_smileys[i][0].replace(/"/g, '"');
|
||||
sp_smileyRowsContent += '<a href="javascript:void(0);" onclick="window.opener.replaceText(\' ' + sp_smileys[i][0].php_addslashes() + '\', window.opener.document.getElementById(\'new_shout_' + postbox + '\')); window.focus(); return false;"><img src="' + smf_smileys_url + '/' + sp_smileys[i][1] + '" id="sml_' + sp_smileys[i][1] + '" alt="' + sp_smileys[i][2] + '" title="' + sp_smileys[i][2] + '" style="padding: 4px;" border="0" /></a> ';
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
this.oSmileyPopupWindow = window.open('', 'add_smileys', 'toolbar=no,location=no,status=no,menubar=no,scrollbars=yes,width=480,height=220,resizable=yes');
|
||||
|
||||
// Paste the template in the popup.
|
||||
this.oSmileyPopupWindow.document.open('text/html', 'replace');
|
||||
this.oSmileyPopupWindow.document.write(sp_moreSmileysTemplate.easyReplace({
|
||||
smileyRows: sp_smileyRowsContent
|
||||
}));
|
||||
|
||||
this.oSmileyPopupWindow.document.close();
|
||||
}
|
||||
@@ -1,205 +0,0 @@
|
||||
/*
|
||||
* A JavaScript implementation of the Secure Hash Algorithm, SHA-1, as defined
|
||||
* in FIPS PUB 180-1
|
||||
* Version 2.1 Copyright Paul Johnston 2000 - 2002.
|
||||
* Other contributors: Greg Holt, Andrew Kepert, Ydnar, Lostinet
|
||||
* Distributed under the BSD License
|
||||
* See http://pajhome.org.uk/crypt/md5 for details.
|
||||
*/
|
||||
|
||||
/*
|
||||
* Configurable variables. You may need to tweak these to be compatible with
|
||||
* the server-side, but the defaults work in most cases.
|
||||
*/
|
||||
var hexcase = 0; /* hex output format. 0 - lowercase; 1 - uppercase */
|
||||
var b64pad = ""; /* base-64 pad character. "=" for strict RFC compliance */
|
||||
var chrsz = 8; /* bits per input character. 8 - ASCII; 16 - Unicode */
|
||||
|
||||
/*
|
||||
* These are the functions you'll usually want to call
|
||||
* They take string arguments and return either hex or base-64 encoded strings
|
||||
*/
|
||||
function hex_sha1(s){return binb2hex(core_sha1(str2binb(s),s.length * chrsz));}
|
||||
function b64_sha1(s){return binb2b64(core_sha1(str2binb(s),s.length * chrsz));}
|
||||
function str_sha1(s){return binb2str(core_sha1(str2binb(s),s.length * chrsz));}
|
||||
function hex_hmac_sha1(key, data){ return binb2hex(core_hmac_sha1(key, data));}
|
||||
function b64_hmac_sha1(key, data){ return binb2b64(core_hmac_sha1(key, data));}
|
||||
function str_hmac_sha1(key, data){ return binb2str(core_hmac_sha1(key, data));}
|
||||
|
||||
/*
|
||||
* Perform a simple self-test to see if the VM is working
|
||||
*/
|
||||
function sha1_vm_test()
|
||||
{
|
||||
return hex_sha1("abc") == "a9993e364706816aba3e25717850c26c9cd0d89d";
|
||||
}
|
||||
|
||||
/*
|
||||
* Calculate the SHA-1 of an array of big-endian words, and a bit length
|
||||
*/
|
||||
function core_sha1(x, len)
|
||||
{
|
||||
/* append padding */
|
||||
x[len >> 5] |= 0x80 << (24 - len % 32);
|
||||
x[((len + 64 >> 9) << 4) + 15] = len;
|
||||
|
||||
var w = Array(80);
|
||||
var a = 1732584193;
|
||||
var b = -271733879;
|
||||
var c = -1732584194;
|
||||
var d = 271733878;
|
||||
var e = -1009589776;
|
||||
|
||||
for (var i = 0; i < x.length; i += 16)
|
||||
{
|
||||
var olda = a;
|
||||
var oldb = b;
|
||||
var oldc = c;
|
||||
var oldd = d;
|
||||
var olde = e;
|
||||
|
||||
for (var j = 0; j < 80; j++)
|
||||
{
|
||||
if (j < 16) w[j] = x[i + j];
|
||||
else w[j] = rol(w[j-3] ^ w[j-8] ^ w[j-14] ^ w[j-16], 1);
|
||||
var t = safe_add(safe_add(rol(a, 5), sha1_ft(j, b, c, d)), safe_add(safe_add(e, w[j]), sha1_kt(j)));
|
||||
e = d;
|
||||
d = c;
|
||||
c = rol(b, 30);
|
||||
b = a;
|
||||
a = t;
|
||||
}
|
||||
|
||||
a = safe_add(a, olda);
|
||||
b = safe_add(b, oldb);
|
||||
c = safe_add(c, oldc);
|
||||
d = safe_add(d, oldd);
|
||||
e = safe_add(e, olde);
|
||||
}
|
||||
return Array(a, b, c, d, e);
|
||||
}
|
||||
|
||||
/*
|
||||
* Perform the appropriate triplet combination function for the current
|
||||
* iteration
|
||||
*/
|
||||
function sha1_ft(t, b, c, d)
|
||||
{
|
||||
if (t < 20) return (b & c) | ((~b) & d);
|
||||
if (t < 40) return b ^ c ^ d;
|
||||
if (t < 60) return (b & c) | (b & d) | (c & d);
|
||||
return b ^ c ^ d;
|
||||
}
|
||||
|
||||
/*
|
||||
* Determine the appropriate additive constant for the current iteration
|
||||
*/
|
||||
function sha1_kt(t)
|
||||
{
|
||||
return (t < 20) ? 1518500249 : (t < 40) ? 1859775393 :
|
||||
(t < 60) ? -1894007588 : -899497514;
|
||||
}
|
||||
|
||||
/*
|
||||
* Calculate the HMAC-SHA1 of a key and some data
|
||||
*/
|
||||
function core_hmac_sha1(key, data)
|
||||
{
|
||||
var bkey = str2binb(key);
|
||||
if (bkey.length > 16) bkey = core_sha1(bkey, key.length * chrsz);
|
||||
|
||||
var ipad = Array(16), opad = Array(16);
|
||||
for (var i = 0; i < 16; i++)
|
||||
{
|
||||
ipad[i] = bkey[i] ^ 0x36363636;
|
||||
opad[i] = bkey[i] ^ 0x5C5C5C5C;
|
||||
}
|
||||
|
||||
var hash = core_sha1(ipad.concat(str2binb(data)), 512 + data.length * chrsz);
|
||||
return core_sha1(opad.concat(hash), 512 + 160);
|
||||
}
|
||||
|
||||
/*
|
||||
* Add integers, wrapping at 2^32. This uses 16-bit operations internally
|
||||
* to work around bugs in some JS interpreters.
|
||||
*/
|
||||
function safe_add(x, y)
|
||||
{
|
||||
var lsw = (x & 0xFFFF) + (y & 0xFFFF);
|
||||
var msw = (x >> 16) + (y >> 16) + (lsw >> 16);
|
||||
return (msw << 16) | (lsw & 0xFFFF);
|
||||
}
|
||||
|
||||
/*
|
||||
* Bitwise rotate a 32-bit number to the left.
|
||||
*/
|
||||
function rol(num, cnt)
|
||||
{
|
||||
return (num << cnt) | (num >>> (32 - cnt));
|
||||
}
|
||||
|
||||
/*
|
||||
* Convert an 8-bit or 16-bit string to an array of big-endian words
|
||||
* In 8-bit function, characters >255 have their hi-byte silently ignored.
|
||||
*/
|
||||
function str2binb(str)
|
||||
{
|
||||
var bin = Array();
|
||||
|
||||
for (var i = 0, n = 1 + ((str.length * chrsz) >> 5); i < n; i++)
|
||||
bin[i] = 0;
|
||||
|
||||
var mask = (1 << chrsz) - 1;
|
||||
for (var i = 0; i < str.length * chrsz; i += chrsz)
|
||||
bin[i >> 5] |= (str.charCodeAt(i / chrsz) & mask) << (24 - i % 32);
|
||||
return bin;
|
||||
}
|
||||
|
||||
/*
|
||||
* Convert an array of big-endian words to a string
|
||||
*/
|
||||
function binb2str(bin)
|
||||
{
|
||||
var str = "";
|
||||
var mask = (1 << chrsz) - 1;
|
||||
for (var i = 0; i < bin.length * 32; i += chrsz)
|
||||
str += String.fromCharCode((bin[i>>5] >>> (24 - i%32)) & mask);
|
||||
return str;
|
||||
}
|
||||
|
||||
/*
|
||||
* Convert an array of big-endian words to a hex string.
|
||||
*/
|
||||
function binb2hex(binarray)
|
||||
{
|
||||
var hex_tab = hexcase ? "0123456789ABCDEF" : "0123456789abcdef";
|
||||
var str = "";
|
||||
for (var i = 0; i < binarray.length * 4; i++)
|
||||
{
|
||||
str += hex_tab.charAt((binarray[i>>2] >> ((3 - i%4)*8+4)) & 0xF) +
|
||||
hex_tab.charAt((binarray[i>>2] >> ((3 - i%4)*8 )) & 0xF);
|
||||
}
|
||||
return str;
|
||||
}
|
||||
|
||||
/*
|
||||
* Convert an array of big-endian words to a base-64 string
|
||||
*/
|
||||
function binb2b64(binarray)
|
||||
{
|
||||
var tab = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";
|
||||
var str = "";
|
||||
for (var i = 0; i < binarray.length * 4; i += 3)
|
||||
{
|
||||
var triplet = (((binarray[i >> 2] >> 8 * (3 - i %4)) & 0xFF) << 16)
|
||||
| (((binarray[i+1 >> 2] >> 8 * (3 - (i+1)%4)) & 0xFF) << 8 )
|
||||
| ((binarray[i+2 >> 2] >> 8 * (3 - (i+2)%4)) & 0xFF);
|
||||
for (var j = 0; j < 4; j++)
|
||||
{
|
||||
if (i * 8 + j * 6 > binarray.length * 32) str += b64pad;
|
||||
else str += tab.charAt((triplet >> 6*(3-j)) & 0x3F);
|
||||
}
|
||||
}
|
||||
return str;
|
||||
}
|
||||
|
||||
@@ -1,96 +0,0 @@
|
||||
// The purpose of this code is to fix the height of overflow: auto blocks, because some browsers can't figure it out for themselves.
|
||||
function smf_codeBoxFix()
|
||||
{
|
||||
var codeFix = document.getElementsByTagName('code');
|
||||
for (var i = codeFix.length - 1; i >= 0; i--)
|
||||
{
|
||||
if (is_webkit && codeFix[i].offsetHeight < 20)
|
||||
codeFix[i].style.height = (codeFix[i].offsetHeight + 20) + 'px';
|
||||
|
||||
else if (is_ff && (codeFix[i].scrollWidth > codeFix[i].clientWidth || codeFix[i].clientWidth == 0))
|
||||
codeFix[i].style.overflow = 'scroll';
|
||||
|
||||
else if ('currentStyle' in codeFix[i] && codeFix[i].currentStyle.overflow == 'auto' && (codeFix[i].currentStyle.height == '' || codeFix[i].currentStyle.height == 'auto') && (codeFix[i].scrollWidth > codeFix[i].clientWidth || codeFix[i].clientWidth == 0) && (codeFix[i].offsetHeight != 0))
|
||||
codeFix[i].style.height = (codeFix[i].offsetHeight + 24) + 'px';
|
||||
}
|
||||
}
|
||||
|
||||
// Add a fix for code stuff?
|
||||
if ((is_ie && !is_ie4) || is_webkit || is_ff)
|
||||
addLoadEvent(smf_codeBoxFix);
|
||||
|
||||
// Toggles the element height and width styles of an image.
|
||||
function smc_toggleImageDimensions()
|
||||
{
|
||||
var oImages = document.getElementsByTagName('IMG');
|
||||
for (oImage in oImages)
|
||||
{
|
||||
// Not a resized image? Skip it.
|
||||
if (oImages[oImage].className == undefined || oImages[oImage].className.indexOf('bbc_img resized') == -1)
|
||||
continue;
|
||||
|
||||
oImages[oImage].style.cursor = 'pointer';
|
||||
oImages[oImage].onclick = function() {
|
||||
this.style.width = this.style.height = this.style.width == 'auto' ? null : 'auto';
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
// Add a load event for the function above.
|
||||
addLoadEvent(smc_toggleImageDimensions);
|
||||
|
||||
// Adds a button to a certain button strip.
|
||||
function smf_addButton(sButtonStripId, bUseImage, oOptions)
|
||||
{
|
||||
var oButtonStrip = document.getElementById(sButtonStripId);
|
||||
var aItems = oButtonStrip.getElementsByTagName('span');
|
||||
|
||||
// Remove the 'last' class from the last item.
|
||||
if (aItems.length > 0)
|
||||
{
|
||||
var oLastSpan = aItems[aItems.length - 1];
|
||||
oLastSpan.className = oLastSpan.className.replace(/\s*last/, 'position_holder');
|
||||
}
|
||||
|
||||
// Add the button.
|
||||
var oButtonStripList = oButtonStrip.getElementsByTagName('ul')[0];
|
||||
var oNewButton = document.createElement('li');
|
||||
setInnerHTML(oNewButton, '<a href="' + oOptions.sUrl + '" ' + ('sCustom' in oOptions ? oOptions.sCustom : '') + '><span class="last"' + ('sId' in oOptions ? ' id="' + oOptions.sId + '"': '') + '>' + oOptions.sText + '</span></a>');
|
||||
|
||||
oButtonStripList.appendChild(oNewButton);
|
||||
}
|
||||
|
||||
// Adds hover events to list items. Used for a versions of IE that don't support this by default.
|
||||
var smf_addListItemHoverEvents = function()
|
||||
{
|
||||
var cssRule, newSelector;
|
||||
|
||||
// Add a rule for the list item hover event to every stylesheet.
|
||||
for (var iStyleSheet = 0; iStyleSheet < document.styleSheets.length; iStyleSheet ++)
|
||||
for (var iRule = 0; iRule < document.styleSheets[iStyleSheet].rules.length; iRule ++)
|
||||
{
|
||||
oCssRule = document.styleSheets[iStyleSheet].rules[iRule];
|
||||
if (oCssRule.selectorText.indexOf('LI:hover') != -1)
|
||||
{
|
||||
sNewSelector = oCssRule.selectorText.replace(/LI:hover/gi, 'LI.iehover');
|
||||
document.styleSheets[iStyleSheet].addRule(sNewSelector, oCssRule.style.cssText);
|
||||
}
|
||||
}
|
||||
|
||||
// Now add handling for these hover events.
|
||||
var oListItems = document.getElementsByTagName('LI');
|
||||
for (oListItem in oListItems)
|
||||
{
|
||||
oListItems[oListItem].onmouseover = function() {
|
||||
this.className += ' iehover';
|
||||
};
|
||||
|
||||
oListItems[oListItem].onmouseout = function() {
|
||||
this.className = this.className.replace(new RegExp(' iehover\\b'), '');
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
// Add hover events to list items if the browser requires it.
|
||||
if (is_ie7down && 'attachEvent' in window)
|
||||
window.attachEvent('onload', smf_addListItemHoverEvents);
|
||||
@@ -1,541 +0,0 @@
|
||||
var cur_topic_id, cur_msg_id, buff_subject, cur_subject_div, in_edit_mode = 0;
|
||||
var hide_prefixes = Array();
|
||||
|
||||
function modify_topic(topic_id, first_msg_id)
|
||||
{
|
||||
if (!('XMLHttpRequest' in window))
|
||||
return;
|
||||
|
||||
if ('opera' in window)
|
||||
{
|
||||
var oTest = new XMLHttpRequest();
|
||||
if (!('setRequestHeader' in oTest))
|
||||
return;
|
||||
}
|
||||
|
||||
// Add backwards compatibility with old themes.
|
||||
if (typeof(cur_session_var) == 'undefined')
|
||||
cur_session_var = 'sesc';
|
||||
|
||||
if (in_edit_mode == 1)
|
||||
{
|
||||
if (cur_topic_id == topic_id)
|
||||
return;
|
||||
else
|
||||
modify_topic_cancel();
|
||||
}
|
||||
|
||||
in_edit_mode = 1;
|
||||
mouse_on_div = 1;
|
||||
cur_topic_id = topic_id;
|
||||
|
||||
if (typeof window.ajax_indicator == "function")
|
||||
ajax_indicator(true);
|
||||
getXMLDocument(smf_prepareScriptUrl(smf_scripturl) + "action=quotefast;quote=" + first_msg_id + ";modify;xml", onDocReceived_modify_topic);
|
||||
}
|
||||
|
||||
function onDocReceived_modify_topic(XMLDoc)
|
||||
{
|
||||
cur_msg_id = XMLDoc.getElementsByTagName("message")[0].getAttribute("id");
|
||||
|
||||
cur_subject_div = document.getElementById('msg_' + cur_msg_id.substr(4));
|
||||
buff_subject = getInnerHTML(cur_subject_div);
|
||||
|
||||
// Here we hide any other things they want hiding on edit.
|
||||
set_hidden_topic_areas('none');
|
||||
|
||||
modify_topic_show_edit(XMLDoc.getElementsByTagName("subject")[0].childNodes[0].nodeValue);
|
||||
if (typeof window.ajax_indicator == "function")
|
||||
ajax_indicator(false);
|
||||
}
|
||||
|
||||
function modify_topic_cancel()
|
||||
{
|
||||
setInnerHTML(cur_subject_div, buff_subject);
|
||||
set_hidden_topic_areas('');
|
||||
|
||||
in_edit_mode = 0;
|
||||
return false;
|
||||
}
|
||||
|
||||
function modify_topic_save(cur_session_id, cur_session_var)
|
||||
{
|
||||
if (!in_edit_mode)
|
||||
return true;
|
||||
|
||||
// Add backwards compatibility with old themes.
|
||||
if (typeof(cur_session_var) == 'undefined')
|
||||
cur_session_var = 'sesc';
|
||||
|
||||
var i, x = new Array();
|
||||
x[x.length] = 'subject=' + document.forms.quickModForm['subject'].value.replace(/&#/g, "&#").php_to8bit().php_urlencode();
|
||||
x[x.length] = 'topic=' + parseInt(document.forms.quickModForm.elements['topic'].value);
|
||||
x[x.length] = 'msg=' + parseInt(document.forms.quickModForm.elements['msg'].value);
|
||||
|
||||
if (typeof window.ajax_indicator == "function")
|
||||
ajax_indicator(true);
|
||||
sendXMLDocument(smf_prepareScriptUrl(smf_scripturl) + "action=jsmodify;topic=" + parseInt(document.forms.quickModForm.elements['topic'].value) + ";" + cur_session_var + "=" + cur_session_id + ";xml", x.join("&"), modify_topic_done);
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
function modify_topic_done(XMLDoc)
|
||||
{
|
||||
if (!XMLDoc)
|
||||
{
|
||||
modify_topic_cancel();
|
||||
return true;
|
||||
}
|
||||
|
||||
var message = XMLDoc.getElementsByTagName("smf")[0].getElementsByTagName("message")[0];
|
||||
var subject = message.getElementsByTagName("subject")[0];
|
||||
var error = message.getElementsByTagName("error")[0];
|
||||
|
||||
if (typeof window.ajax_indicator == "function")
|
||||
ajax_indicator(false);
|
||||
|
||||
if (!subject || error)
|
||||
return false;
|
||||
|
||||
subjectText = subject.childNodes[0].nodeValue;
|
||||
|
||||
modify_topic_hide_edit(subjectText);
|
||||
|
||||
set_hidden_topic_areas('');
|
||||
|
||||
in_edit_mode = 0;
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
// Simply restore any hidden bits during topic editing.
|
||||
function set_hidden_topic_areas(set_style)
|
||||
{
|
||||
for (var i = 0; i < hide_prefixes.length; i++)
|
||||
{
|
||||
if (document.getElementById(hide_prefixes[i] + cur_msg_id.substr(4)) != null)
|
||||
document.getElementById(hide_prefixes[i] + cur_msg_id.substr(4)).style.display = set_style;
|
||||
}
|
||||
}
|
||||
|
||||
// *** QuickReply object.
|
||||
function QuickReply(oOptions)
|
||||
{
|
||||
this.opt = oOptions;
|
||||
this.bCollapsed = this.opt.bDefaultCollapsed;
|
||||
}
|
||||
|
||||
// When a user presses quote, put it in the quick reply box (if expanded).
|
||||
QuickReply.prototype.quote = function (iMessageId, xDeprecated)
|
||||
{
|
||||
// Compatibility with older templates.
|
||||
if (typeof(xDeprecated) != 'undefined')
|
||||
return true;
|
||||
|
||||
if (this.bCollapsed)
|
||||
{
|
||||
window.location.href = smf_prepareScriptUrl(this.opt.sScriptUrl) + 'action=post;quote=' + iMessageId + ';topic=' + this.opt.iTopicId + '.' + this.opt.iStart;
|
||||
return false;
|
||||
}
|
||||
else
|
||||
{
|
||||
// Doing it the XMLhttp way?
|
||||
if (window.XMLHttpRequest)
|
||||
{
|
||||
ajax_indicator(true);
|
||||
getXMLDocument(smf_prepareScriptUrl(this.opt.sScriptUrl) + 'action=quotefast;quote=' + iMessageId + ';xml', this.onQuoteReceived);
|
||||
}
|
||||
// Or with a smart popup!
|
||||
else
|
||||
reqWin(smf_prepareScriptUrl(this.opt.sScriptUrl) + 'action=quotefast;quote=' + iMessageId, 240, 90);
|
||||
|
||||
// Move the view to the quick reply box.
|
||||
if (navigator.appName == 'Microsoft Internet Explorer')
|
||||
window.location.hash = this.opt.sJumpAnchor;
|
||||
else
|
||||
window.location.hash = '#' + this.opt.sJumpAnchor;
|
||||
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
// This is the callback function used after the XMLhttp request.
|
||||
QuickReply.prototype.onQuoteReceived = function (oXMLDoc)
|
||||
{
|
||||
var sQuoteText = '';
|
||||
|
||||
for (var i = 0; i < oXMLDoc.getElementsByTagName('quote')[0].childNodes.length; i++)
|
||||
sQuoteText += oXMLDoc.getElementsByTagName('quote')[0].childNodes[i].nodeValue;
|
||||
|
||||
replaceText(sQuoteText, document.forms.postmodify.message);
|
||||
|
||||
ajax_indicator(false);
|
||||
}
|
||||
|
||||
// The function handling the swapping of the quick reply.
|
||||
QuickReply.prototype.swap = function ()
|
||||
{
|
||||
document.getElementById(this.opt.sImageId).src = this.opt.sImagesUrl + "/" + (this.bCollapsed ? this.opt.sImageCollapsed : this.opt.sImageExpanded);
|
||||
document.getElementById(this.opt.sContainerId).style.display = this.bCollapsed ? '' : 'none';
|
||||
|
||||
this.bCollapsed = !this.bCollapsed;
|
||||
}
|
||||
|
||||
// *** QuickModify object.
|
||||
function QuickModify(oOptions)
|
||||
{
|
||||
this.opt = oOptions;
|
||||
this.bInEditMode = false;
|
||||
this.sCurMessageId = '';
|
||||
this.oCurMessageDiv = null;
|
||||
this.oCurSubjectDiv = null;
|
||||
this.sMessageBuffer = '';
|
||||
this.sSubjectBuffer = '';
|
||||
this.bXmlHttpCapable = this.isXmlHttpCapable();
|
||||
|
||||
// Show the edit buttons
|
||||
if (this.bXmlHttpCapable)
|
||||
{
|
||||
for (var i = document.images.length - 1; i >= 0; i--)
|
||||
if (document.images[i].id.substr(0, 14) == 'modify_button_')
|
||||
document.images[i].style.display = '';
|
||||
}
|
||||
}
|
||||
|
||||
// Determine whether the quick modify can actually be used.
|
||||
QuickModify.prototype.isXmlHttpCapable = function ()
|
||||
{
|
||||
if (typeof(window.XMLHttpRequest) == 'undefined')
|
||||
return false;
|
||||
|
||||
// Opera didn't always support POST requests. So test it first.
|
||||
if ('opera' in window)
|
||||
{
|
||||
var oTest = new XMLHttpRequest();
|
||||
if (!('setRequestHeader' in oTest))
|
||||
return false;
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
// Function called when a user presses the edit button.
|
||||
QuickModify.prototype.modifyMsg = function (iMessageId)
|
||||
{
|
||||
if (!this.bXmlHttpCapable)
|
||||
return;
|
||||
|
||||
// Add backwards compatibility with old themes.
|
||||
if (typeof(sSessionVar) == 'undefined')
|
||||
sSessionVar = 'sesc';
|
||||
|
||||
// First cancel if there's another message still being edited.
|
||||
if (this.bInEditMode)
|
||||
this.modifyCancel();
|
||||
|
||||
// At least NOW we're in edit mode
|
||||
this.bInEditMode = true;
|
||||
|
||||
// Send out the XMLhttp request to get more info
|
||||
ajax_indicator(true);
|
||||
|
||||
// For IE 5.0 support, 'call' is not yet used.
|
||||
this.tmpMethod = getXMLDocument;
|
||||
this.tmpMethod(smf_prepareScriptUrl(this.opt.sScriptUrl) + 'action=quotefast;quote=' + iMessageId + ';modify;xml', this.onMessageReceived);
|
||||
delete this.tmpMethod;
|
||||
}
|
||||
|
||||
// The callback function used for the XMLhttp request retrieving the message.
|
||||
QuickModify.prototype.onMessageReceived = function (XMLDoc)
|
||||
{
|
||||
var sBodyText = '', sSubjectText = '';
|
||||
|
||||
// No longer show the 'loading...' sign.
|
||||
ajax_indicator(false);
|
||||
|
||||
// Grab the message ID.
|
||||
this.sCurMessageId = XMLDoc.getElementsByTagName('message')[0].getAttribute('id');
|
||||
|
||||
// If this is not valid then simply give up.
|
||||
if (!document.getElementById(this.sCurMessageId))
|
||||
return this.modifyCancel();
|
||||
|
||||
// Replace the body part.
|
||||
for (var i = 0; i < XMLDoc.getElementsByTagName("message")[0].childNodes.length; i++)
|
||||
sBodyText += XMLDoc.getElementsByTagName("message")[0].childNodes[i].nodeValue;
|
||||
this.oCurMessageDiv = document.getElementById(this.sCurMessageId);
|
||||
this.sMessageBuffer = getInnerHTML(this.oCurMessageDiv);
|
||||
|
||||
// We have to force the body to lose its dollar signs thanks to IE.
|
||||
sBodyText = sBodyText.replace(/\$/g, '{&dollarfix;$}');
|
||||
|
||||
// Actually create the content, with a bodge for disappearing dollar signs.
|
||||
setInnerHTML(this.oCurMessageDiv, this.opt.sTemplateBodyEdit.replace(/%msg_id%/g, this.sCurMessageId.substr(4)).replace(/%body%/, sBodyText).replace(/\{&dollarfix;\$\}/g, '$'));
|
||||
|
||||
// Replace the subject part.
|
||||
this.oCurSubjectDiv = document.getElementById('subject_' + this.sCurMessageId.substr(4));
|
||||
this.sSubjectBuffer = getInnerHTML(this.oCurSubjectDiv);
|
||||
|
||||
sSubjectText = XMLDoc.getElementsByTagName('subject')[0].childNodes[0].nodeValue.replace(/\$/g, '{&dollarfix;$}');
|
||||
setInnerHTML(this.oCurSubjectDiv, this.opt.sTemplateSubjectEdit.replace(/%subject%/, sSubjectText).replace(/\{&dollarfix;\$\}/g, '$'));
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
// Function in case the user presses cancel (or other circumstances cause it).
|
||||
QuickModify.prototype.modifyCancel = function ()
|
||||
{
|
||||
// Roll back the HTML to its original state.
|
||||
if (this.oCurMessageDiv)
|
||||
{
|
||||
setInnerHTML(this.oCurMessageDiv, this.sMessageBuffer);
|
||||
setInnerHTML(this.oCurSubjectDiv, this.sSubjectBuffer);
|
||||
}
|
||||
|
||||
// No longer in edit mode, that's right.
|
||||
this.bInEditMode = false;
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
// The function called after a user wants to save his precious message.
|
||||
QuickModify.prototype.modifySave = function (sSessionId, sSessionVar)
|
||||
{
|
||||
// We cannot save if we weren't in edit mode.
|
||||
if (!this.bInEditMode)
|
||||
return true;
|
||||
|
||||
// Add backwards compatibility with old themes.
|
||||
if (typeof(sSessionVar) == 'undefined')
|
||||
sSessionVar = 'sesc';
|
||||
|
||||
var i, x = new Array();
|
||||
x[x.length] = 'subject=' + escape(document.forms.quickModForm['subject'].value.replace(/&#/g, "&#").php_to8bit()).replace(/\+/g, "%2B");
|
||||
x[x.length] = 'message=' + escape(document.forms.quickModForm['message'].value.replace(/&#/g, "&#").php_to8bit()).replace(/\+/g, "%2B");
|
||||
x[x.length] = 'topic=' + parseInt(document.forms.quickModForm.elements['topic'].value);
|
||||
x[x.length] = 'msg=' + parseInt(document.forms.quickModForm.elements['msg'].value);
|
||||
|
||||
// Send in the XMLhttp request and let's hope for the best.
|
||||
ajax_indicator(true);
|
||||
sendXMLDocument.call(this, smf_prepareScriptUrl(this.opt.sScriptUrl) + "action=jsmodify;topic=" + this.opt.iTopicId + ";" + sSessionVar + "=" + sSessionId + ";xml", x.join("&"), this.onModifyDone);
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
// Callback function of the XMLhttp request sending the modified message.
|
||||
QuickModify.prototype.onModifyDone = function (XMLDoc)
|
||||
{
|
||||
// We've finished the loading stuff.
|
||||
ajax_indicator(false);
|
||||
|
||||
// If we didn't get a valid document, just cancel.
|
||||
if (!XMLDoc || !XMLDoc.getElementsByTagName('smf')[0])
|
||||
{
|
||||
// Mozilla will nicely tell us what's wrong.
|
||||
if (XMLDoc.childNodes.length > 0 && XMLDoc.firstChild.nodeName == 'parsererror')
|
||||
setInnerHTML(document.getElementById('error_box'), XMLDoc.firstChild.textContent);
|
||||
else
|
||||
this.modifyCancel();
|
||||
return;
|
||||
}
|
||||
|
||||
var message = XMLDoc.getElementsByTagName('smf')[0].getElementsByTagName('message')[0];
|
||||
var body = message.getElementsByTagName('body')[0];
|
||||
var error = message.getElementsByTagName('error')[0];
|
||||
|
||||
if (body)
|
||||
{
|
||||
// Show new body.
|
||||
var bodyText = '';
|
||||
for (var i = 0; i < body.childNodes.length; i++)
|
||||
bodyText += body.childNodes[i].nodeValue;
|
||||
|
||||
this.sMessageBuffer = this.opt.sTemplateBodyNormal.replace(/%body%/, bodyText.replace(/\$/g, '{&dollarfix;$}')).replace(/\{&dollarfix;\$\}/g,'$');
|
||||
setInnerHTML(this.oCurMessageDiv, this.sMessageBuffer);
|
||||
|
||||
// Show new subject.
|
||||
var oSubject = message.getElementsByTagName('subject')[0];
|
||||
var sSubjectText = oSubject.childNodes[0].nodeValue.replace(/\$/g, '{&dollarfix;$}');
|
||||
this.sSubjectBuffer = this.opt.sTemplateSubjectNormal.replace(/%msg_id%/g, this.sCurMessageId.substr(4)).replace(/%subject%/, sSubjectText).replace(/\{&dollarfix;\$\}/g,'$');
|
||||
setInnerHTML(this.oCurSubjectDiv, this.sSubjectBuffer);
|
||||
|
||||
// If this is the first message, also update the topic subject.
|
||||
if (oSubject.getAttribute('is_first') == '1')
|
||||
setInnerHTML(document.getElementById('top_subject'), this.opt.sTemplateTopSubject.replace(/%subject%/, sSubjectText).replace(/\{&dollarfix;\$\}/g, '$'));
|
||||
|
||||
// Show this message as 'modified on x by y'.
|
||||
if (this.opt.bShowModify)
|
||||
setInnerHTML(document.getElementById('modified_' + this.sCurMessageId.substr(4)), message.getElementsByTagName('modified')[0].childNodes[0].nodeValue);
|
||||
}
|
||||
else if (error)
|
||||
{
|
||||
setInnerHTML(document.getElementById('error_box'), error.childNodes[0].nodeValue);
|
||||
document.forms.quickModForm.message.style.border = error.getAttribute('in_body') == '1' ? this.opt.sErrorBorderStyle : '';
|
||||
document.forms.quickModForm.subject.style.border = error.getAttribute('in_subject') == '1' ? this.opt.sErrorBorderStyle : '';
|
||||
}
|
||||
}
|
||||
|
||||
function InTopicModeration(oOptions)
|
||||
{
|
||||
this.opt = oOptions;
|
||||
this.bButtonsShown = false;
|
||||
this.iNumSelected = 0;
|
||||
|
||||
// Add backwards compatibility with old themes.
|
||||
if (typeof(this.opt.sSessionVar) == 'undefined')
|
||||
this.opt.sSessionVar = 'sesc';
|
||||
|
||||
this.init();
|
||||
}
|
||||
|
||||
InTopicModeration.prototype.init = function()
|
||||
{
|
||||
// Add checkboxes to all the messages.
|
||||
for (var i = 0, n = this.opt.aMessageIds.length; i < n; i++)
|
||||
{
|
||||
// Create the checkbox.
|
||||
var oCheckbox = document.createElement('input');
|
||||
oCheckbox.type = 'checkbox';
|
||||
oCheckbox.className = 'input_check';
|
||||
oCheckbox.name = 'msgs[]';
|
||||
oCheckbox.value = this.opt.aMessageIds[i];
|
||||
oCheckbox.instanceRef = this;
|
||||
oCheckbox.onclick = function () {
|
||||
this.instanceRef.handleClick(this);
|
||||
}
|
||||
|
||||
// Append it to the container
|
||||
var oCheckboxContainer = document.getElementById(this.opt.sCheckboxContainerMask + this.opt.aMessageIds[i]);
|
||||
oCheckboxContainer.appendChild(oCheckbox);
|
||||
oCheckboxContainer.style.display = '';
|
||||
}
|
||||
}
|
||||
|
||||
InTopicModeration.prototype.handleClick = function(oCheckbox)
|
||||
{
|
||||
if (!this.bButtonsShown && this.opt.sButtonStripDisplay)
|
||||
{
|
||||
var oButtonStrip = document.getElementById(this.opt.sButtonStrip);
|
||||
var oButtonStripDisplay = document.getElementById(this.opt.sButtonStripDisplay);
|
||||
|
||||
// Make sure it can go somewhere.
|
||||
if (typeof(oButtonStripDisplay) == 'object' && oButtonStripDisplay != null)
|
||||
oButtonStripDisplay.style.display = "";
|
||||
else
|
||||
{
|
||||
var oNewDiv = document.createElement('div');
|
||||
var oNewList = document.createElement('ul');
|
||||
|
||||
oNewDiv.id = this.opt.sButtonStripDisplay;
|
||||
oNewDiv.className = this.opt.sButtonStripClass ? this.opt.sButtonStripClass : 'buttonlist floatbottom';
|
||||
|
||||
oNewDiv.appendChild(oNewList);
|
||||
oButtonStrip.appendChild(oNewDiv);
|
||||
}
|
||||
|
||||
// Add the 'remove selected items' button.
|
||||
if (this.opt.bCanRemove)
|
||||
smf_addButton(this.opt.sButtonStrip, this.opt.bUseImageButton, {
|
||||
sId: this.opt.sSelf + '_remove_button',
|
||||
sText: this.opt.sRemoveButtonLabel,
|
||||
sImage: this.opt.sRemoveButtonImage,
|
||||
sUrl: '#',
|
||||
sCustom: ' onclick="return ' + this.opt.sSelf + '.handleSubmit(\'remove\')"'
|
||||
});
|
||||
|
||||
// Add the 'restore selected items' button.
|
||||
if (this.opt.bCanRestore)
|
||||
smf_addButton(this.opt.sButtonStrip, this.opt.bUseImageButton, {
|
||||
sId: this.opt.sSelf + '_restore_button',
|
||||
sText: this.opt.sRestoreButtonLabel,
|
||||
sImage: this.opt.sRestoreButtonImage,
|
||||
sUrl: '#',
|
||||
sCustom: ' onclick="return ' + this.opt.sSelf + '.handleSubmit(\'restore\')"'
|
||||
});
|
||||
|
||||
// Adding these buttons once should be enough.
|
||||
this.bButtonsShown = true;
|
||||
}
|
||||
|
||||
// Keep stats on how many items were selected.
|
||||
this.iNumSelected += oCheckbox.checked ? 1 : -1;
|
||||
|
||||
// Show the number of messages selected in the button.
|
||||
if (this.opt.bCanRemove && !this.opt.bUseImageButton)
|
||||
{
|
||||
setInnerHTML(document.getElementById(this.opt.sSelf + '_remove_button'), this.opt.sRemoveButtonLabel + ' [' + this.iNumSelected + ']');
|
||||
document.getElementById(this.opt.sSelf + '_remove_button').style.display = this.iNumSelected < 1 ? "none" : "";
|
||||
}
|
||||
|
||||
if (this.opt.bCanRestore && !this.opt.bUseImageButton)
|
||||
{
|
||||
setInnerHTML(document.getElementById(this.opt.sSelf + '_restore_button'), this.opt.sRestoreButtonLabel + ' [' + this.iNumSelected + ']');
|
||||
document.getElementById(this.opt.sSelf + '_restore_button').style.display = this.iNumSelected < 1 ? "none" : "";
|
||||
}
|
||||
|
||||
// Try to restore the correct position.
|
||||
var aItems = document.getElementById(this.opt.sButtonStrip).getElementsByTagName('span');
|
||||
if (aItems.length > 3)
|
||||
{
|
||||
if (this.iNumSelected < 1)
|
||||
{
|
||||
aItems[aItems.length - 3].className = aItems[aItems.length - 3].className.replace(/\s*position_holder/, 'last');
|
||||
aItems[aItems.length - 2].className = aItems[aItems.length - 2].className.replace(/\s*position_holder/, 'last');
|
||||
}
|
||||
else
|
||||
{
|
||||
aItems[aItems.length - 2].className = aItems[aItems.length - 2].className.replace(/\s*last/, 'position_holder');
|
||||
aItems[aItems.length - 3].className = aItems[aItems.length - 3].className.replace(/\s*last/, 'position_holder');
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
InTopicModeration.prototype.handleSubmit = function (sSubmitType)
|
||||
{
|
||||
var oForm = document.getElementById(this.opt.sFormId);
|
||||
|
||||
// Make sure this form isn't submitted in another way than this function.
|
||||
var oInput = document.createElement('input');
|
||||
oInput.type = 'hidden';
|
||||
oInput.name = this.opt.sSessionVar;
|
||||
oInput.value = this.opt.sSessionId;
|
||||
oForm.appendChild(oInput);
|
||||
|
||||
switch (sSubmitType)
|
||||
{
|
||||
case 'remove':
|
||||
if (!confirm(this.opt.sRemoveButtonConfirm))
|
||||
return false;
|
||||
|
||||
oForm.action = oForm.action.replace(/;restore_selected=1/, '');
|
||||
break;
|
||||
|
||||
case 'restore':
|
||||
if (!confirm(this.opt.sRestoreButtonConfirm))
|
||||
return false;
|
||||
|
||||
oForm.action = oForm.action + ';restore_selected=1';
|
||||
break;
|
||||
|
||||
default:
|
||||
return false;
|
||||
break;
|
||||
}
|
||||
|
||||
oForm.submit();
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
// *** Other functions...
|
||||
function expandThumb(thumbID)
|
||||
{
|
||||
var img = document.getElementById('thumb_' + thumbID);
|
||||
var link = document.getElementById('link_' + thumbID);
|
||||
var tmp = img.src;
|
||||
img.src = link.href;
|
||||
link.href = tmp;
|
||||
img.style.width = '';
|
||||
img.style.height = '';
|
||||
return false;
|
||||
}
|
||||
|
Before Width: | Height: | Size: 362 B |
|
Before Width: | Height: | Size: 388 B |
|
Before Width: | Height: | Size: 638 B |
|
Before Width: | Height: | Size: 70 B |
|
Before Width: | Height: | Size: 76 B |
|
Before Width: | Height: | Size: 270 B |
8004
years/2017/ukcavingblog.html
Normal file
BIN
years/2017/ukcavingblog_files/13868.jpg
Normal file
|
After Width: | Height: | Size: 3.0 KiB |
BIN
years/2017/ukcavingblog_files/15619.jpg
Normal file
|
After Width: | Height: | Size: 16 KiB |
BIN
years/2017/ukcavingblog_files/16883.jpg
Normal file
|
After Width: | Height: | Size: 14 KiB |
BIN
years/2017/ukcavingblog_files/17591.jpg
Normal file
|
After Width: | Height: | Size: 23 KiB |
BIN
years/2017/ukcavingblog_files/22367(1).jpg
Normal file
|
After Width: | Height: | Size: 14 KiB |
BIN
years/2017/ukcavingblog_files/22367.jpg
Normal file
|
After Width: | Height: | Size: 4.2 KiB |
BIN
years/2017/ukcavingblog_files/2762.jpg
Normal file
|
After Width: | Height: | Size: 17 KiB |
BIN
years/2017/ukcavingblog_files/35163542864_9d25763500.jpg
Normal file
|
After Width: | Height: | Size: 64 KiB |
BIN
years/2017/ukcavingblog_files/35163542954_a9e2f14622.jpg
Normal file
|
After Width: | Height: | Size: 59 KiB |
BIN
years/2017/ukcavingblog_files/35192455133_6ba22d9e8a.jpg
Normal file
|
After Width: | Height: | Size: 77 KiB |
BIN
years/2017/ukcavingblog_files/35203746864_6eb7d8a4a2_z.jpg
Normal file
|
After Width: | Height: | Size: 150 KiB |
BIN
years/2017/ukcavingblog_files/35203752154_4517e4bc68_z.jpg
Normal file
|
After Width: | Height: | Size: 95 KiB |
BIN
years/2017/ukcavingblog_files/35203753734_d1405bde2c_z.jpg
Normal file
|
After Width: | Height: | Size: 90 KiB |
BIN
years/2017/ukcavingblog_files/35203764404_fd4ef9be93_z.jpg
Normal file
|
After Width: | Height: | Size: 116 KiB |
BIN
years/2017/ukcavingblog_files/35203764664_3fa80ec26c_z.jpg
Normal file
|
After Width: | Height: | Size: 113 KiB |
BIN
years/2017/ukcavingblog_files/35233213593_afc901dabd_z.jpg
Normal file
|
After Width: | Height: | Size: 114 KiB |