var _____WB$wombat$assign$function_____ = function(name) {return (self._wb_wombat && self._wb_wombat.local_init && self._wb_wombat.local_init(name)) || self[name]; }; if (!self.__WB_pmw) { self.__WB_pmw = function(obj) { this.__WB_source = obj; return this; } } { let window = _____WB$wombat$assign$function_____("window"); let self = _____WB$wombat$assign$function_____("self"); let document = _____WB$wombat$assign$function_____("document"); let location = _____WB$wombat$assign$function_____("location"); let top = _____WB$wombat$assign$function_____("top"); let parent = _____WB$wombat$assign$function_____("parent"); let frames = _____WB$wombat$assign$function_____("frames"); let opener = _____WB$wombat$assign$function_____("opener"); (function(){var e;var t=function(){};var n=["assert","clear","count","debug","dir","dirxml","error","exception","group","groupCollapsed","groupEnd","info","log","markTimeline","profile","profileEnd","table","time","timeEnd","timeStamp","trace","warn"];var r=n.length;var i=window.console=window.console||{};while(r--){e=n[r];if(!i[e]){i[e]=t}}})(); var site_config = { //BASE VARS view: $('window'), /// PAGE ELEMENTS masthead: $(".masthead"), stickyNavWrapper: $("#stickyNavWrapper"), /// CAROUSEL DATA carousels: [{ carouselContainer: $('#testimonialCarousel'), interval: 6000, enabled: false } ], modal_content: { international_rates: "/modals/int-rates.html", international_countries: "/modals/int-countries.html", full_rates: "/modals/view-full-rates.html", intro_video: "/modals/intro-video.html", why_fb: "/modals/why-fb.cfm", login_modal: "/modals/login.cfm", how_to_video: "/modals/how-to-video.html", message: "/modals/message.html", unlimitedSocialAccess: "/modals/benefit-unlimited-social-access.html", multipleSims: "/modals/benefit-multiple-sims.html", prepayMonthlybilling: "/modals/benefit-prepay-monthlybilling.html", runsOnOptus: "/modals/benefit-runs-on-optus.html", noContracts: "/modals/benefit-no-contracts.html" }, } var yatangoUtils = { init: function () { yatangoUtils.setupWindowEvents(); yatangoUtils.setupNavEvents(); yatangoUtils.setupBackgroundSlideshow(); // yatangoUtils.setupAnchorFunctions(); yatangoUtils.setupScrollArrows(); yatangoUtils.setupCarousels(); yatangoUtils.setupModals(); }, setupNavEvents: function () { // $('#navWrapper .nav-collapse').click(function(){ // console.log('navwrap collapse'); // $('#navWrapper .collapse.in').removeClass('in').css('height', '0'); // }); // $('#stickyNavWrapper .nav-collapse .nav > li > a').click(function(){ // $('#stickyNavWrapper .collapse.in').removeClass('in').css('height', '0'); // console.log('stickynavwrap collapse'); // }); // $('#staticNavWrapper .nav-collapse .nav > li > a').click(function(){ // $('#staticNavWrapper .collapse.in').removeClass('in').css('height', '0'); // console.log('staticnavwrap collapse'); // }); }, setupWindowEvents: function () { $(window).resize(onWindowResize).trigger("resize"); $(window).scroll(onWindowScroll).trigger("scroll"); $('#footerSlideCancel, #footerSlideClose').click( function (e) { $('#footerSlideContainer').remove(); }); $('#footerSlideContainer').hide(); var stickyNavVisible = false; function onWindowResize() { var masthead = site_config.masthead; if ($(window).height() < 630) { masthead.height(630); onWindowScroll(); } else { masthead.height($(window).height() * 0.95); onWindowScroll(); $("#headline").css({ 'margin-top': function () { return masthead.height-($(this).height() / 2 ) +20; } }); } } function onWindowScroll() { var masthead = site_config.masthead; var stickyNav = site_config.stickyNavWrapper; if( $(window).scrollTop() > 2250 && $(window).scrollTop() < 2700) { $('#footerSlideContainer:hidden').fadeIn() } else { $('#footerSlideContainer:visible').fadeOut(); } if ($(window).scrollTop() > masthead.height() && !stickyNavVisible) { stickyNav.fadeIn(0, function () { TweenMax.to(stickyNav, 0.25, { top: "0", onComplete: function () { stickyNavVisible = true; } }); }) } else if ($(window).scrollTop() >= masthead.height() && stickyNavVisible) { return } else if ($(window).scrollTop() < masthead.height() && stickyNavVisible) { TweenMax.to(stickyNav, 0.25, { top: -stickyNav.height() - 5, onComplete: function () { stickyNav.fadeOut(0); stickyNavVisible = false; } }); } } }, setupBackgroundSlideshow: function () { if ($('body').hasClass('home')) { //If home page, setup backstretch slideshow and listener $.backstretch(site_config.slideshowImages,{fade: 500,duration: 8000}); $(window).on("backstretch.show", function (e, instance) { $("#headline").html(site_config.slideshowText[instance.index]).fadeIn(250); //console.log("next"); }); } }, setupCarousels: function () { $.each(site_config.carousels, function () { if (this.enabled) { this.carouselContainer.carousel({ interval: this.interval }); } else { return } }) }, setupScrollArrows: function () { var animating = false; scrollArrowTween = TweenMax.to($('.scroll-arrow'), 0.5, { top: "5px", onUpdate: function () { animating = true; }, onComplete: function () { TweenMax.to($('.scroll-arrow'), 0.5, { top: "0px", onUpdate: function () { animating = true; }, onComplete: function () { animating = false; } }); } }); $('.scroll-arrow').hover(function () { if (!animating) { scrollArrowTween.restart(); } }); window.setInterval(function () { if (!animating) { scrollArrowTween.restart(); } }, 5000); scrollArrowTween1 = TweenMax.to($('#go-btn span img'), 0.5, { right: "17px", onUpdate: function () { animating = true; }, onComplete: function () { TweenMax.to($('#go-btn span img'), 0.5, { right: "21px", onUpdate: function () { animating = true; }, onComplete: function () { animating = false; } }); } }); $('#go-btn').hover(function () { if (!animating) { scrollArrowTween1.restart(); } }, function(){ animating=false; } ); scrollArrowTween2 = TweenMax.to($('#go-btn1 span img'), 0.5, { right: "17px", onUpdate: function () { animating = true; }, onComplete: function () { TweenMax.to($('#go-btn1 span img'), 0.5, { right: "21px", onUpdate: function () { animating = true; }, onComplete: function () { animating = false; } }); } }); $('#go-btn1').hover(function () { if (!animating) { scrollArrowTween2.restart(); } }, function(){ animating=false; } ); }, modalDefs: { '#intRatesModal': { href: site_config.modal_content.international_rates, init: function (params) { var $modal = $(this); var $rate_items = $('.rate-table td:first-child', $modal); // Implement filtering by first letter of country name $('.rate-index a', $modal).click(function (e) { $('.rate-index a').removeClass('active'); $(this).addClass('active'); var filter_by = $(this).text(); $rate_items .parent() .hide() .end() .filter(function () { return $(this).text().substr(0, 1) == filter_by; }) .parent() .show(); }); } }, '#listOfRates': { href: site_config.modal_content.full_rates }, '#intCountriesModal': { href: site_config.modal_content.international_countries }, '#intVideoModal': { href: site_config.modal_content.intro_video }, '#whyFBModal': { href: site_config.modal_content.why_fb }, '#listOfRatesPromo': { href: site_config.modal_content.full_rates_promo }, '#loginModal': { href: site_config.modal_content.login_modal }, '#intHowToModal': { href: site_config.modal_content.how_to_video }, '#unlimitedSocialAccess': { href: site_config.modal_content.unlimitedSocialAccess }, '#multipleSims': { href: site_config.modal_content.multipleSims }, '#runsOnOptus': { href: site_config.modal_content.runsOnOptus }, '#prepayMonthlybilling': { href: site_config.modal_content.prepayMonthlybilling }, '#noContracts': { href: site_config.modal_content.noContracts }, // useful for general messages '#messageModal': { href: site_config.modal_content.message, init: function (params) { $modal = $(this); if ('title' in params) { $('.title-content', $modal).text(params.title); } if ('body' in params) { $('.body-content', $modal).text(params.body); } } } }, showModal: function (modal_id, init_params) { // //console.log("showModal: modal_id=" + modal_id + ", params="); // //console.log(init_params); // close any other open modals first... $('.modal.in').modal('hide'); var modal_lookup = yatangoUtils.modalDefs; init_params = init_params || {}; // if id already exists, ignore, otherwise load if ($(modal_id).length > 0) { //console.log("showModal: target " + modal_id + " already exists, ignoring..."); //console.log($(modal_id)); return; } else if (modal_id in modal_lookup) { var modal_def = modal_lookup[modal_id]; //console.log("Test2" + modal_def.href); var href = modal_def.href; var options = modal_def.options || {}; // load modal content via AJAX and inject into body $('#modalContainer').load(href, function () { //console.log("showModal: modal content loaded"); var $modal = $(modal_id); //console.log("Test2" + $modal); if ($modal.length == 0) { //console.log("showModal: WARNING: modal id " + modal_id + " not found"); } $modal .on('show', function (e) { // NOTE: accordion/collapse and tabs plugins also use show/hide events. // We need to check that this event is actually meant for us // (i.e. targetting a modal) and not a subcontrol within the modal var target = $(e.target); if (target && target.hasClass("modal")) { // setup positioning / scroll management // Centring hack $modal.css({ 'margin-left': function () { return $('window').pageXOffset - ($(this).width() / 2 ); }, 'margin-top': function () { return $('window').pageYOffset-($(this).height() / 2 ); } }); // listen for scroll events $(window).on('scroll.modal', function (e) { // Centring hack $modal.css({ 'margin-left': function () { return $('window').width-($(this).width() / 2 ); }, 'margin-top': function () { return $('window').pageYOffset-($(this).height() / 2 ); } }); }); // stop listening to scroll events when dialog is hidden $modal.on('hide', function (e) { var target = $(e.target); if (target && target.hasClass("modal")) { $(window).off('scroll.modal'); } }) // call init handler if one is defined if ('init' in modal_def) { $.proxy(modal_def.init, $modal)(init_params); } } }) .on('hidden', function (e) { var target = $(e.target); if (target && target.hasClass("modal")) { //console.log("modal hidden: destroying modal"); $modal.remove(); } }) .modal(options) .one('hide', function (e) { var target = $(e.target); if (target && target.hasClass("modal")) { $('body').focus() } }) }); } else { //console.log("click.yatango.modal: ERROR: cannot find modal content for " + modal_id); } }, setupModals: function () { $('body').on('click.yatango.modal', '[data-toggle="modal"]', function (e) { var $this = $(this) var modal_id = $this.attr('data-target'); //console.log(modal_id + " Modal id") e.preventDefault(); // NOTE: we pass the data attributes from the element // so we can pass params to the modal init function yatangoUtils.showModal(modal_id, $this.data()); }); } } //login form functions function forgotPassword() { $('#loginContainer').fadeOut(100, function () { $('#forgotPasswordContainer').fadeIn(100); }); var validateFieldEmail = new LiveValidation('field_email', { onValid: updateFieldClass, onInvalid: updateFieldClass, onlyOnBlur: true }); validateFieldEmail.add(Validate.Email); $("#field_email").click(function () { resetEmailError(""); }); $("#forgotPassSubmit").click(function () { if ($('#field_email').val() == "") { $("#resetErrorText").html("Enter your email address"); } else sendResetRequest($('#field_email')); }); } function sendResetRequest(emailField) { var dataString = 'field_email=' + emailField.val(); $.ajax({ type: "POST", url: "forgot_pwd.cfm?" + dataString, async: false, timeout: site_config.ajax_timeout, cache: false, dataType: "json", success: function (data) { if (data && data.success) { finishPassReset(); } else { resetEmailError(data.ResponseText); } }, error: function (e) { resetEmailError("An error has occured. Please try again."); } }); return false; } function cancelPassReset() { $('#forgotPasswordContainer').fadeOut(100, function () { $('#loginContainer').fadeIn(100); }); } function finishPassReset() { $('#forgotPasswordContainer').fadeOut(100, function () { $('#passwordSentContainer').fadeIn(100); }); } function resetEmailError(errorMsg) { $('#resetErrorText span').text(errorMsg); } function loginUsernameError(errorMsg) { $('#loginErrorText span').text(errorMsg) } function newPasswordError(errorMsg) { $('#newPasswordErrorText span').text(errorMsg) } function updateFieldClass() { this.addFieldClass(); } function setupLoginValidation() { var validateUsername = new LiveValidation('username', { onValid: updateFieldClass, onInvalid: updateFieldClass, onlyOnBlur: true }); validateUsername.add(Validate.Custom, { against: verifyLoginField }); } function setupPasswordValidation() { var validatePassword = new LiveValidation('password', { onValid: updateFieldClass, onInvalid: updateFieldClass, onlyOnBlur: true }); validatePassword.add(Validate.Custom, { against: function () { return verifyPassword($("#password").val()) } }); var validateConfirmPassword = new LiveValidation('confirm_password', { onValid: updateFieldClass, onInvalid: updateFieldClass, onlyOnBlur: true }); validateConfirmPassword.add(Validate.Custom, { against: function () { return comparePassword($("#confirm_password").val(), $("#password").val()) } }); $("#resetPassSubmit").click(function () { if (verifyPassword($("#password").val()) && comparePassword($("#confirm_password").val(), $("#password").val())) { addLoaderAndOverlay(); sendPasswordReset(); } }); $("#modalContainer").on('click', '.modal-footer a', function () { yatangoUtils.showModal("#loginModal"); }); } function comparePassword(pass1, pass2) { if (pass1 != pass2) { newPasswordError("Your passwords do not match!"); return false } else { newPasswordError(""); return true; } } function verifyPassword(theString) { var regexOneLetter = /[a-zA-Z]/; var regexOneNumber = /[0-9]/; var regex = /^(?=.*[a-zA-Z])(?=.*\d)[-+_!@#$%^&*().,?0-9a-zA-Z]{8,32}$/; if (testThis(regex, theString)) { // //console.log("success"); newPasswordError(""); return true; } else if (!testThis(regexOneLetter, theString)) { // //console.log("doesnt contain at least one letter a-z, A-Z"); newPasswordError("Your password must contain at least one letter - (a-z, A-Z)"); return false; } else if (!testThis(regexOneNumber, theString)) { // //console.log("doesnt contain at least one number 0-9"); newPasswordError("Your password must contain at least one number - (0-9)"); return false; } else if (testThis(regexOneLetter, theString) && testThis(regexOneNumber, theString) && !testThis(regex, theString)) { // //console.log("doesnt contain a minimum 8 characters"); newPasswordError("Your password must be between 8 and 32 characters and use only valid characters."); return false; } } function sendPasswordReset() { var dataString = 'password=' + $("#password").val() + '&token=' + $('input[name=token]').val(); $.ajax({ type: "POST", url: "fajax_handler.cfm?function=change_password", async: false, timeout: site_config.ajax_timeout, cache: false, data: dataString, dataType: "json", success: function (data) { removeLoaderAndOverlay(); if (data && data.success) { yatangoUtils.showModal("#messageModal", { title: "Your password has been changed", body: "Click OK to login" }); } else { newPasswordError("An error has occured. Please try again."); } }, error: function (e) { removeLoaderAndOverlay(); newPasswordError("An error has occured. Please try again."); } }); return false; } function photoUploadListener() { $('#upload_photo_submit').click(function () { //console.log('clicked'); if (checkPhotoFormat()) { return ajaxFileUpload(); }; }); } function ajaxFileUpload() { $.ajaxFileUpload({ url: 'utilities/ajax_handler.cfm?function=upload_photo', // url:'doajaxfileupload.php', secureuri: false, async: false, timeout: site_config.ajax_timeout, fileElementId: 'fileToUpload', dataType: 'json', success: function (data, status) { if (typeof (data.error) != 'undefined') { if (data.error != '') { alert(data.error); } else { alert(data.msg); } } }, error: function (data, status, e) { alert(e); } }) return false; } function checkPhotoFormat() { var regex = /.*\.(gif)|(jpeg)|(jpg)|(png)$/; var el = $('#fileToUpload').val(); el = el.toLowerCase(); if (regex.test(el)) { //console.log('valid file format'); return true; } else { //console.log('File format must be jpg, jpeg, gif or png!'); return false; } }; function testThis(regex, theString) { if (regex.test(theString)) { return true; } else { return false } } function verifyLoginField() { //determine if username is email or phonenumber var username = $('#username').attr("value"); username = username.replace(/ /g, ''); if (isNaN(username)) { //validate as email var atpos = username.indexOf("@"); var dotpos = username.lastIndexOf("."); if (atpos < 1 || dotpos < atpos + 2 || dotpos + 2 >= username.length) { loginUsernameError("That is not a valid mobile number / email address!"); return false; } else { loginUsernameError(""); return true; } } else { //validate as mobile var mobileRegEx = /^\({0,1}((0|\+61)(2|4|3|7|8)){0,1}\){0,1}(\ |-){0,1}[0-9]{2}(\ |-){0,1}[0-9]{2}(\ |-){0,1}[0-9]{1}(\ |-){0,1}[0-9]{3}$/; if (mobileRegEx.test(username)) { loginUsernameErrortext(""); return true; } else { loginUsernameError("That is not a valid mobile number / email address!"); return false; } } } function checkforLoginModal(modal) { if (modal.attr('id') == 'loginModal') { loadCookiesAndData(); setupLoginValidation(); } } function storeTvPromoCookie() { $.cookie('hasVisitedPromo', true, { path: '/', expires: 30 }) } function loadCookiesAndData() { var remember = $.cookie('remember'); if (remember == 'true') { var username = $.cookie('username'); var password = $.cookie('password'); // autofill the fields $('#username').attr("value", username); $('#password').attr("value", password); $('#rememberMe').prop('checked', true); } if (typeof errorText === 'undefined') { return } else { $('#loginErrorText span').text(errorText); } } function saveCookies() { if ($('#rememberMe').attr('checked')) { var username = $('#username').attr("value"); var password = $('#password').attr("value"); // set cookies to expire in x days $.cookie('username', username, { expires: 35 }); $.cookie('password', password, { expires: 35 }); $.cookie('remember', true, { expires: 35 }); } else { // reset cookies $.cookie('username', null); $.cookie('password', null); $.cookie('remember', null); } } // login overlays function addLoaderAndOverlay() { //add .overlay class to document var overlay = document.createElement("div"); overlay.setAttribute("id","overlay"); overlay.setAttribute("class", "overlay"); document.body.appendChild(overlay); //if modal overlay present, remove it removeModalBackdrop(); //add spinner var opts = { lines: 11, // The number of lines to draw length: 11, // The length of each line width: 6, // The line thickness radius: 15, // The radius of the inner circle corners: 1, // Corner roundness (0..1) rotate: 0, // The rotation offset color: '#21C404', // #rgb or #rrggbb speed: 1, // Rounds per second trail: 63, // Afterglow percentage shadow: false, // Whether to render a shadow hwaccel: false, // Whether to use hardware acceleration className: 'spinner', // The CSS class to assign to the spinner zIndex: 2e9, // The z-index (defaults to 2000000000) top: 'auto', // Top position relative to parent in px left: 'auto' // Left position relative to parent in px }; var target = document.getElementById('overlay'); if(!spinner) { var spinner = new Spinner(opts).spin(target); } } function removeModalBackdrop() { if($('div.modal-backdrop')) { $('div.modal-backdrop').fadeOut(100); } } function removeLoaderAndOverlay() { //remove overlay item // spinner will be also removed as overlay is parent document.body.removeChild(document.getElementById("overlay")); } function closeReferralBox() { $('.referralBox').fadeOut(); } //spin js min !function(t,e,i){var o=["webkit","Moz","ms","O"],r={},n;function a(t,i){var o=e.createElement(t||"div"),r;for(r in i)o[r]=i[r];return o}function s(t){for(var e=1,i=arguments.length;e>1):parseInt(i.left,10)+r)+"px",top:(i.top=="auto"?f.y-s.y+(t.offsetHeight>>1):parseInt(i.top,10)+r)+"px"})}o.setAttribute("aria-role","progressbar");e.lines(o,e.opts);if(!n){var l=0,p=i.fps,c=p/i.speed,h=(1-i.opacity)/(c*i.trail/100),m=c/i.lines;(function y(){l++;for(var t=i.lines;t;t--){var r=Math.max(1-(l+t*m)%c*h,i.opacity);e.opacity(o,i.lines-t,r,i)}e.timeout=e.el&&setTimeout(y,~~(1e3/p))})()}return e},stop:function(){var t=this.el;if(t){clearTimeout(this.timeout);if(t.parentNode)t.parentNode.removeChild(t);this.el=i}return this},lines:function(t,e){var i=0,o;function r(t,o){return u(a(),{position:"absolute",width:e.length+e.width+"px",height:e.width+"px",background:t,boxShadow:o,transformOrigin:"left",transform:"rotate("+~~(360/e.lines*i+e.rotate)+"deg) translate("+e.radius+"px"+",0)",borderRadius:(e.corners*e.width>>1)+"px"})}for(;i',e)}var e=u(a("group"),{behavior:"url(#default#VML)"});if(!p(e,"transform")&&e.adj){f.addRule(".spin-vml","behavior:url(#default#VML)");m.prototype.lines=function(e,i){var o=i.length+i.width,r=2*o;function n(){return u(t("group",{coordsize:r+" "+r,coordorigin:-o+" "+-o}),{width:r,height:r})}var a=-(i.width+i.length)*2+"px",f=u(n(),{position:"absolute",top:a,left:a}),l;function p(e,r,a){s(f,s(u(n(),{rotation:360/i.lines*e+"deg",left:~~r}),s(u(t("roundrect",{arcsize:i.corners}),{width:o,height:i.width,left:i.radius,top:-i.width>>1,filter:a}),t("fill",{color:i.color,opacity:i.opacity}),t("stroke",{opacity:0}))))}if(i.shadow)for(l=1;l<=i.lines;l++)p(l,-2,"progid:DXImageTransform.Microsoft.Blur(pixelradius=2,makeshadow=1,shadowopacity=.3)");for(l=1;l<=i.lines;l++)p(l);return s(e,f)};m.prototype.opacity=function(t,e,i,o){var r=t.firstChild;o=o.shadow&&o.lines||0;if(r&&e+o');if(n){for(var o in n){jQuery('').appendTo(s)}}var u=jQuery("#"+t);var a=jQuery(u).clone();jQuery(u).attr("id",i);jQuery(u).before(a);jQuery(u).appendTo(s);jQuery(s).css("position","absolute");jQuery(s).css("top","-1200px");jQuery(s).css("left","-1200px");jQuery(s).appendTo("body");return s},ajaxFileUpload:function(e){e=jQuery.extend({},jQuery.ajaxSettings,e);var t=(new Date).getTime();var n=jQuery.createUploadForm(t,e.fileElementId,typeof e.data=="undefined"?false:e.data);var r=jQuery.createUploadIframe(t,e.secureuri);var i="jUploadFrame"+t;var s="jUploadForm"+t;if(e.global&&!(jQuery.active++)){jQuery.event.trigger("ajaxStart")}var o=false;var u={};if(e.global)jQuery.event.trigger("ajaxSend",[u,e]);var a=function(t){var r=document.getElementById(i);try{if(r.contentWindow){u.responseText=r.contentWindow.document.body?r.contentWindow.document.body.innerHTML:null;u.responseXML=r.contentWindow.document.XMLDocument?r.contentWindow.document.XMLDocument:r.contentWindow.document}else if(r.contentDocument){u.responseText=r.contentDocument.document.body?r.contentDocument.document.body.innerHTML:null;u.responseXML=r.contentDocument.document.XMLDocument?r.contentDocument.document.XMLDocument:r.contentDocument.document}}catch(s){jQuery.handleError(e,u,null,s)}if(u||t=="timeout"){o=true;var a;try{a=t!="timeout"?"success":"error";if(a!="error"){var f=jQuery.uploadHttpData(u,e.dataType);if(e.success)e.success(f,a);if(e.global)jQuery.event.trigger("ajaxSuccess",[u,e])}else jQuery.handleError(e,u,a)}catch(s){a="error";jQuery.handleError(e,u,a,s)}if(e.global)jQuery.event.trigger("ajaxComplete",[u,e]);if(e.global&&!--jQuery.active)jQuery.event.trigger("ajaxStop");if(e.complete)e.complete(u,a);jQuery(r).unbind();setTimeout(function(){try{jQuery(r).remove();jQuery(n).remove()}catch(t){jQuery.handleError(e,u,null,t)}},100);u=null}};if(e.timeout>0){setTimeout(function(){if(!o)a("timeout")},e.timeout)}try{var n=jQuery("#"+s);jQuery(n).attr("action",e.url);jQuery(n).attr("method","POST");jQuery(n).attr("target",i);if(n.encoding){jQuery(n).attr("encoding","multipart/form-data")}else{jQuery(n).attr("enctype","multipart/form-data")}jQuery(n).submit()}catch(f){jQuery.handleError(e,u,null,f)}jQuery("#"+i).load(a);return{abort:function(){}}},uploadHttpData:function(r,type){var data=!type;data=type=="xml"||data?r.responseXML:r.responseText;if(type=="script")jQuery.globalEval(data);if(type=="json")eval("data = "+data);if(type=="html")jQuery("
").html(data).evalScripts();return data}}) jQuery(document).ready(function ($) { yatangoUtils.init(); }); } /* FILE ARCHIVED ON 06:32:36 Mar 04, 2019 AND RETRIEVED FROM THE INTERNET ARCHIVE ON 01:19:24 Jul 07, 2021. JAVASCRIPT APPENDED BY WAYBACK MACHINE, COPYRIGHT INTERNET ARCHIVE. ALL OTHER CONTENT MAY ALSO BE PROTECTED BY COPYRIGHT (17 U.S.C. SECTION 108(a)(3)). */ /* playback timings (ms): captures_list: 52.218 exclusion.robots: 0.081 exclusion.robots.policy: 0.074 RedisCDXSource: 0.832 esindex: 0.006 LoadShardBlock: 31.489 (3) PetaboxLoader3.datanode: 59.489 (4) CDXLines.iter: 17.475 (3) load_resource: 102.169 PetaboxLoader3.resolve: 44.0 */