Please note:
For information on how to work with this special "Single Page" website we suggest you read this information at least
once:
CLICK HERE
PS - this informational message will not appear for visitors to your website
// turns off sharing links when editing
function editCurrent(url) {
window.location.href = url;
}
function deleteBlogEntry(blogid, blogentid, msgid) {
var link = '/aspx/blob2/admin/blogs/blogsdeleteBlogEntry.aspx?blogid=' + blogid + '&blogentid=' + blogentid + '&msgid=' + msgid;
location.href = link;
return;
}
function deleteBlog1Entry(blogid, blog1blogid, blogentid, msgid) {
var link = '/aspx/blob2/admin/blogs/blogsdeleteBlogEntry.aspx?provider=blog1&blogid=' + blogid + '&blog1blogid=' + blog1blogid + '&blogentid=' + blogentid + '&msgid=' + msgid;
location.href = link;
return;
}
function deleteBlogComment(blogid, blogcommentid) {
var result = confirm("Are you sure you want to delete this blog entry comment?");
if (result) {
$('#ctl67_ctl00_ctl00_hf_FormAction').attr("value", "DELCOM|" + blogid + "|" + blogcommentid);
doAsyncPostback();
}
return result;
}
function scrollToAnchor(aid) {
var aTag = $(aid);
$('html,body').stop().animate({ scrollTop: aTag.offset().top - 100 }, 2500, 'easeInOutExpo');
}
$(document).ready(function () {
$(window).resize();
var commentid = 0;
var blogentryid = '0';
if (blogentryid.length > 1) {
$('#liEditArticle').fadeIn('fast', function () {
$('#liRemoveArticle').fadeIn('fast');
});
if ('7875e0a8-6197-4938-8caa-b4cfe3d6af4c' != '') {
setTimeout(function () {
getArticleViews();
}, 10);
}
}
else if ('7875e0a8-6197-4938-8caa-b4cfe3d6af4c' != '') {
setTimeout(function () {
getArticleViews();
}, 10);
}
else {
//do nothing
}
setTimeout(function () {
if ($('#disqus_comments_script_wrapper').length > 0) {
$('body').append($('#disqus_comments_script_wrapper'));
}
}, 12);
var bview = getCurrentView();
setTimeout(function () {
switch (bview) {
case "article": {
$('.blog-button-wrapper').show();
//$('.blog-button-wrapper').css('display','block');
$('a.btn-blog-action[data-target="edit"]').parents().closest('li').show();
$('a.btn-blog-action[data-target="remove"]').parents().closest('li').show();
break;
}
default: {
$('.blog-button-wrapper').show();
//$('.blog-button-wrapper').css('display','block');
$('a.btn-blog-action[data-target="edit"]').parents().closest('li').hide();
$('a.btn-blog-action[data-target="remove"]').parents().closest('li').hide();
}
}
}, 1000);
});// end doc.ready
$(window).resize(function () {
//setPageLayout();
setTimeout(function () {
// blog1 snippet...
if ($('body').find('#summary-masonry').length > 0) {
// this was a jquery method thats been lost or deprecated
// from unify that created the masonry view. since we're
// transitioning from Bootstrap3 to Bootrap4 before we update
// unify to b4 version...hide the masonry view.
// no one was using it on live but us.
//gridBoxesOnDemand();
}
}, 200);
});
$('body').on('click', '.blog-action', function (e) {
var target = $(this).attr('data-target')
switch (target) {
case "add": {
disableBackground("body", false, 0, 0, 0, 0)
break;
}
case "edit": {
disableBackground("body", false, 0, 0, 0, 0)
break;
}
}
});
$('body').on('click', 'a.blog1-tag', function (e) {
e.preventDefault();
e.stopPropagation();
doTagLookup($(this).text().trim());
});
$('body').on('click', 'a.blog1-category', function (e) {
e.preventDefault();
e.stopPropagation();
doCatLookup($(this).text().trim());
});
function doCatLookup(inval) {
try {
$.ajax({
type: 'POST',
url: '/aspx/Blob2/Blobs/BlobWebService.aspx/GetCatUrl',
data: '{"originalid":"16194","category":' + JSON.stringify(inval) + '}',
contentType: 'application/json; charset=utf-8',
dataType: 'json',
async: false,
cache: false,
success: function (response) {
if (response.d.length > 0) {
window.location.assign(response.d);
}
else {
window.location.assign("/blog1/category/unknown");
}
},
failure: function (response) {
},
error: function (response) {
}
});
}
catch (err) {
}
}
function doTagLookup(inval) {
try {
$.ajax({
type: 'POST',
url: '/aspx/Blob2/Blobs/BlobWebService.aspx/GetTagUrl',
data: '{"originalid":"16194","tag":' + JSON.stringify(inval) + '}',
contentType: 'application/json; charset=utf-8',
dataType: 'json',
async: false,
cache: false,
success: function (response) {
if (response.d.length > 0) {
window.location.assign(response.d);
}
else {
window.location.assign("/blog1/tag/unknown");
}
},
failure: function (response) {
},
error: function (response) {
}
});
}
catch (err) {
}
}
$(function () {
if ($('#anchor_FBStatus').length >= 1) {
$('#anchor_FBStatus').popover();
$('#anchor_TWStatus').popover();
$('#anchor_FBStatus').click(function (e) {
$('.popover-title').append('
');
$(this).popover();
});
$('#anchor_TWStatus').click(function (e) {
$('.popover-title').append('
');
$(this).popover();
});
$(document).click(function (e) {
if (e.target.id == "popovercloseid1") {
$('#anchor_FBStatus').popover('hide');
}
if (e.target.id == "popovercloseid2") {
$('#anchor_TWStatus').popover('hide');
}
});
}
});
function doAsyncPostback() {
//ff-bug #325 fix
setTimeout(function () {
__doPostBack("ctl67$ctl00$ctl00$lb_Async", "");
}, 1);
}
function getTempKey() {
return '8d221ce9-fe8a-4b8c-91b4-c9cc5849ca46';
}
function getTalkspotBlogId() {
return 46366;
}
function doAddArticle() {
//ff-bug #325 fix
setTimeout(function () {
__doPostBack("ctl67$ctl00$ctl00$btnAddArticle", "");
}, 1);
}
function doEditArticle() {
//ff-bug #325 fix
setTimeout(function () {
__doPostBack("ctl67$ctl00$ctl00$btnEditArticle", "");
}, 1);
}
function doRemoveArticle() {
$("#ctl67_ctl00_ctl00_btnDeleteArticle").click();
}
function getCurrentView() {
return $('#ctl67_ctl00_ctl00_hf_FormAction').val();
}
var backgroundListIndex = 0;
var backgroundList = [['1','/uploads/16194/pagetemplates/DesignCreated201801181644/images/bg.jpg'],['2','/uploads/16194/pagetemplates/DesignCreated201801181644/images/8a7fc9c8-608d-4bbf-86f3-a6dd9c0e8531.jpg'],['3','/uploads/16194/pagetemplates/DesignCreated201801181644/images/18d5277a-3b71-4fd8-82f4-5c6f5b3fcee5.jpg'],['4','/uploads/16194/pagetemplates/DesignCreated201801181644/images/6b279c4a-b305-489b-85b3-254beef0162f.jpg'],['5','/uploads/16194/pagetemplates/DesignCreated201801181644/images/68f2a7e3-069f-407e-bd31-d54375d9eaa6.jpg'],['6','/uploads/16194/pagetemplates/DesignCreated201801181644/images/71c0302a-4185-4304-be0a-57565d33d05b.jpg']];
$(document).ready(function () {
App.init();
$('.bg').css('background-color', '#ffffff');
var initial_backgroundPage = '1';
// the string value of "null" was being stored/returned from getItem call, I expanded this if block to cover all potential values
if (initial_backgroundPage == 'undefined' || initial_backgroundPage == undefined || initial_backgroundPage == null || initial_backgroundPage == "null") {
initial_backgroundPage = '1';
};
var targetTagId = convertBackgroundPageToTagId(initial_backgroundPage);
$('#pnlPageContent .menuItem').addClass('page-scroll');
$('a.page-scroll').bind('click', function (event) {
var $anchor = $(this);
var href = $anchor.attr('href');
var backgroundPage = convertTargetTagIdToBackgroundPage(href);
$('html, body').stop().animate({
scrollTop: $(href).offset().top
}, 1500, 'easeInOutExpo').promise().done(function () {
/* see if there is a background pic for this page */
setBackgroundPage(backgroundPage);
});
event.preventDefault();
});
//jQuery to collapse the navbar on scroll
$(window).scroll(function () {
if ($(".navbar").offset().top > 50) {
$(".navbar-fixed-top").addClass("top-nav-collapse");
} else {
$(".navbar-fixed-top").removeClass("top-nav-collapse");
}
});
$("div[id^='ts-footer']").css('background-color', 'rgba(80,80,80,.5)');
$("div[id^='ts-footer']").css('padding', '1px 1px 1px 1px');
$("[id^='ts-footer'] *").css('color', 'white');
$("[id^='ts-footer'] *").css('font-size', 'x-small');
if (typeof adminEditPage == 'undefined') {
}
else {
if (adminEditPage) {
$('#ts-one-page-info-alert').show(function () {
$(this).find('div.alert.alert-info').slideDown();
$('#pnlPageContent .section-header').slideDown();
});
$('.ts-section').css('border-top', '2px dotted pink');
$('.ts-section').css('border-bottom', '2px solid red');
}
}
for (i = 0; i < backgroundList.length; i++) {
var targetId = convertBackgroundPageToTagId(backgroundList[i][0]);
$(targetId).css('background-image', 'url(' + backgroundList[i][1] + ')');
$(targetId).css('background-size', '100%');
}
setTimeout(function () {
var destination = convertBackgroundPageToTagId(initial_backgroundPage);
$('html,body').stop().animate({
scrollTop: $(destination).offset().top
}, 10, 'easeInOutExpo').promise().done(function () {
/* see if there is a background pic for this page */
setBackgroundPage(initial_backgroundPage);
});
}, 500);
});
function setBackgroundPage(target_backgroundPage) {
localStorage.setItem("backgroundPage", target_backgroundPage);
return;
}
function convertBackgroundPageToTagId(backgroundPage) {
var targetTagId = '#a';
switch (backgroundPage) {
case '1':
targetTagId = '#a';
break;
case '2':
targetTagId = '#b';
break;
case '3':
targetTagId = '#c';
break;
case '4':
targetTagId = '#d';
break;
case '5':
targetTagId = '#e';
break;
case '6':
targetTagId = '#f';
break;
}
return targetTagId;
}
function convertTargetTagIdToBackgroundPage(targetTagId) {
var backgroundPage = '1';
switch (targetTagId) {
case '#a':
backgroundPage = '1';
break;
case '#b':
backgroundPage = '2';
break;
case '#c':
backgroundPage = '3';
break;
case '#d':
backgroundPage = '4';
break;
case '#e':
backgroundPage = '5';
break;
case '#f':
backgroundPage = '6';
break;
}
return backgroundPage;
}