insuranceusa.com",style:{1:"rgb(112, 215, 255)",2:"rgb(112, 215, 255)",26:"auto",29:"baseline",32:"normal",39:"493.308px 9.5px",55:"rgb(112, 215, 255)",59:"underline",60:"rgb(112, 215, 255)",61:"underline rgb(112, 215, 255)",116:"493.308px 9.5px",122:"0px",123:"0px",124:"0px",125:"0px",126:"0px",127:"0px",128:"0px",129:"0px",144:"rgb(112, 215, 255)",201:"auto",206:"auto",250:"inline",254:"pointer",264:"rgb(112, 215, 255)",271:"rgb(112, 215, 255)",276:"rgb(112, 215, 255)",289:"rgb(112, 215, 255)",295:"rgb(112, 215, 255)",298:"rgb(112, 215, 255)",301:"rgb(112, 215, 255)",304:"rgb(112, 215, 255)",317:"rgb(112, 215, 255)",320:"rgb(112, 215, 255)",323:"rgb(112, 215, 255)",324:"auto"}},"children":[
{"text":"
insuranceusa.com"},]},]},
{"text":"\n"},]},
{"text":"\n"},]},]},
{"text":"\n"},
{"tag":"i","attrib":{style:{26:"auto",32:"normal",39:"25.4167px 9.5px",116:"25.4167px 9.5px",177:"0px",182:"0px",183:"0px",184:"0px",201:"auto",206:"auto",227:"italic",250:"inline",324:"auto"}},"children":[
{"text":"times!"},]},
{"text":"\n\n\n"},]},]}};
let zIndexMax = 0
let base_url = "http:\/\/beatlemaniaalumni.com";
function url_canonicalize( url ) {
url = url.replace(/[?;]jsessionid=[!0-9a-z]+/i,'')
let parts = new URL(url)
let path = parts.pathname
if (( path.length >= 2 )&&( path[0]=='/' )&&( path[1]=='/' )) {
path = path.substr( 1 )
} // Transforms // to / if set at the beginning of path
let path_parts = []
let path_orig_parts = path.split('/')
for ( let i = 0 ; i < path_orig_parts.length ; i++ ) {
let path_part = path_orig_parts[i]
if (( i==1 )&&( path_part=='' )) continue
if ( path_part == '.' ) continue // removes /.
if ( path_part == '..' ) {
if ( path_parts.length>1 ) { // removes /xxx/..
path_parts.pop()
}
continue; // and ^/../ which is weird stuff
}
path_parts.push( path_part )
}
path = path_parts.join('/');
let portStr = parts.port ? ':'+parts.port : ''
let queryStr = parts.search ? parts.search : ''
let hashStr = parts.hash ? parts.hash : ''
return parts.protocol + '//' + parts.hostname + portStr + path + queryStr + hashStr
}
function strip_filename( path ) {
last_slash = path.lastIndexOf('/')
return ( last_slash >= 0 )? path.substr( 0, last_slash+1 ) : '/'
}
function getAbsoluteUrl( url ) {
if ( url.match(/^data:|^javascript:/i ) ) return url
let base_parts = new URL(base_url)
if ( base_parts.protocol && base_parts.hostname ) {
if ( url.indexOf('//') == 0 ) {
url = base_parts.protocol + url
}
if ( url.indexOf('/') == 0 ) {
url = base_parts.protocol + '//' + base_parts.hostname + url;
}
if ( ! url.match(/^[a-z]{3,5}:\/\//i) ) {
let base_path = base_parts.pathname ? base_parts.pathname : '/'
url = base_parts.protocol + '//' + base_parts.hostname + strip_filename( base_path ) + url
}
}
return url_canonicalize(url)
}
function convert_url( tagName, attrib, value ) {
let entry = cache_url
switch ( attrib ) {
case 'src':
entry = entry.replace(/index2\.php/,'display2.php')
case 'href':
if ( value.startsWith('data:') ) return value
let postfix = ''
if ( tagName.toLowerCase() == 'iframe' ) postfix = '&inframe=1'
// console.log('convert url : ',entry+encodeURIComponent( getAbsoluteUrl(value) )+postfix)
return entry+encodeURIComponent( getAbsoluteUrl(value) )+postfix
}
return value
}
let console_timing_count = 0
function console_timing() {
if ( !( console_timing_count++ % 1000 ) ) {
console.log('1000 ticks')
}
}
let parse_inBody = false
function parse_json( json, parentStyles ) {
console_timing()
if ( json.tag ) {
let tag
switch ( json.tag ) {
case 'head': tag = document.head; break;
case 'body': tag = document.body; break; //document.createElement('div');
// document.body.appendChild(tag)
break;
default: try {
tag = document.createElement(json.tag)
} catch (error) { return document.createElement('span') /* sometimes, we get an invalid tag name ; drop it */ }
}
if ( json.tag == 'base' ) {
if ( json.attrib.href ) base_url = json.attrib.href
}
if ( json.tag == 'head' ) {
let style = document.createElement('style')
style.innerHTML = '.w { '+default_styles_css+' }'
tag.appendChild(style)
}
let ourStyle = {}
for ( const attrib in json.attrib ) {
if ( attrib == 'style' ) {
for ( const style in json.attrib.style ) {
let value = json.attrib.style[style]
let key = wikiwix_styles[style]
if ( default_styles[key] != value ) {
tag.style[key] = value
}
ourStyle[style] = value
}
for ( const style in parentStyles ) {
if ( !ourStyle.hasOwnProperty(style) ) {
let value = parentStyles[style]
let key = wikiwix_styles[style]
if ( default_styles[key] != value ) {
tag.style[wikiwix_styles[style]] = parentStyles[style]
}
ourStyle[style] = parentStyles[style]
}
}
if ( ourStyle[style_to_id['position'] ] != 'static' ) {
let zIndex = parseInt(ourStyle[style_to_id['z-index']])
if (( zIndex != NaN )&&( zIndex > zIndexMax )) zIndexMax = zIndex
}
} else {
try {
if ( attrib !== 'srcset' ) {
tag.setAttribute(
attrib,
convert_url(json.tag,attrib,json.attrib[attrib])
)
}
} catch (err) {}
}
}
if ( json.tag == 'body' ) {
tag.style.overflowY='auto'
/* tag.style.height='auto'
tag.style.inset='0'
tag.style.margin='0'
tag.style.zIndex='0'*/
}
if ( parse_inBody ) tag.setAttribute('class','w')
json.children.forEach(
(child)=>{
let node = parse_json(child,ourStyle)
if (( node instanceof Node )&&( json.tag != 'html' )) tag.appendChild( node )
}
)
return tag
} else if ( json.text ) {
return document.createTextNode( json.text )
}
return false
}
parse_json(wikiwix_dom.head,{})
parse_inBody = true
parse_json(wikiwix_dom.body,{})
/*
const availableWidth = document.documentElement.clientWidth - document.body.offsetWidth
if ( availableWidth>100 ) {
const adbox = document.getElementById( 'right_adsbygoogle' )
adbox.style.width = Math.min(availableWidth,320)
adbox.style.left = document.body.offsetWidth
console.log('calling');
(adsbygoogle = window.adsbygoogle || []).push({});
console.log('called');
}
*/
let foundAd = false
const inss = document.getElementsByTagName("ins")
if ( inss.length ) {
for ( let i = 0 ; i < inss.length ; i++ ) {
const ins = inss[i]
let slotId = false
if (( ins.offsetHeight > 160 )&&( ins.offsetWidth > 160 )) {
slotId = '8778917807' // carré
}
if (( ins.offsetHeight > 160 )&&( ins.offsetWidth > 3*ins.offsetHeight )) {
slotId = '4746505159' // horizontal
}
if (( ins.offsetWidth > 160 )&&( ins.offsetHeight > 3*ins.offsetWidth )) {
slotId = '7405523748' // vertical
}
if ( slotId ) {
console.log('Found ins tag ('+slotId+')')
while (ins.firstChild) {
ins.removeChild(ins.lastChild);
}
ins.setAttribute('data-ad-client','ca-pub-5410759189143838')
ins.setAttribute('data-ad-slot',slotId)
ins.setAttribute('data-ad-format','auto')
ins.setAttribute('data-full-width-responsive','true')
ins.className = 'adsbygoogle';
foundAd = true
}
}
}
const availableWidth = document.documentElement.clientWidth - document.body.offsetWidth
if (( availableWidth>160 )&& !foundAd ) {
const adbox = document.createElement('ins')
adbox.style.width = Math.min(availableWidth,320)
adbox.style.left = ''+document.body.offsetWidth-50+'px'
adbox.style.height = '100%';
adbox.style.top = '200px';
adbox.style.position = 'absolute'
adbox.style.zIndex = 1
adbox.className = 'adsbygoogle'
adbox.setAttribute('data-ad-client','ca-pub-5410759189143838')
adbox.setAttribute('data-ad-slot',8778917807)
adbox.setAttribute('data-ad-format','auto')
adbox.setAttribute('data-full-width-responsive','true')
document.body.insertBefore( adbox, document.getElementById('wikiwix_overlay_button') )
foundAd = true
}
if ( foundAd ) {
(adsbygoogle = window.adsbygoogle || []).push({});
}
if ( zIndexMax > 0 ) {
$('#wikiwix_container').css('z-index',zIndexMax+1)
$('#wikiwix_login_container').css('z-index',zIndexMax+2)
$('#wikiwix_minimizer').css('z-index',zIndexMax+3)
$('#popup_notice').css('z-index',zIndexMax+1)
}