');// type=string
vars.i18n.en.string_splash_success = decodeSingleQuoteSafeString('We have received your email address and will notify you as soon as the fancam goes live.');// type=string
vars.i18n.en.string_character_texts_btn = decodeSingleQuoteSafeString('Character Selfie ');// type=string
vars.i18n.en.string_cutout_texts_btn = decodeSingleQuoteSafeString('Custom Cutout');// type=string
vars.i18n.en.siteloader_image = "https://s3.amazonaws.com/in3sixty-project-media/in3sixty/5de623d704721d4946f6206a/site-loader-20191205075755.gif?v=%$NOCACHE%"; // type=image unescaped
vars.i18n.en.overlay_default_image = "https://s3.amazonaws.com/in3sixty-project-media/in3sixty/5de9209a04721d4946f8a32c/ecardShareFrame-1-20191208192203.png?v=%$NOCACHE%"; // type=image unescaped
vars.i18n.en.overlay_screen_image = "%$THEMEPATH%/assets/img/sharefancam_frame_en.png?v=%$NOCACHE%"; // type=image unescaped
vars.i18n.en.overlay_sview_image = "https://s3.amazonaws.com/in3sixty-project-media/in3sixty/5de9209a04721d4946f8a32c/ecardShareFrame-1-20191208192208.png?v=%$NOCACHE%"; // type=image unescaped
vars.i18n.en.overlay_tview_image = "https://s3.amazonaws.com/in3sixty-project-media/in3sixty/5de9209a04721d4946f8a32c/ecardShareFrame-1-20191208192209.png?v=%$NOCACHE%"; // type=image unescaped
vars.i18n.en.ecard_frame = "https://s3.amazonaws.com/in3sixty-project-media/in3sixty/5de623d704721d4946f6206a/ecard_frame-20191203140419.png?v=%$NOCACHE%"; // type=image unescaped
vars.i18n.en.overlay_ecard_view_image = "https://s3.amazonaws.com/in3sixty-project-media/in3sixty/5de9209a04721d4946f8a32c/ecardShareFrame-1-20191208192215.png?v=%$NOCACHE%"; // type=image unescaped
vars.i18n.en.string_tagyourself_button = decodeSingleQuoteSafeString('');// type=string
vars.i18n.en.string_tagyourself_button_mobile = decodeSingleQuoteSafeString('');// type=string
vars.i18n.en.string_take_a_seat_button = decodeSingleQuoteSafeString('TAKE [br/] [div style=**u0027**font-size:20px;**u0027**] A SEAT [/div]');// type=string
vars.i18n.en.string_take_a_seat_button_mobile = decodeSingleQuoteSafeString('TAKE [br/] [div style=**u0027**font-size:30px;**u0027**] A SEAT [/div]');// type=string
vars.i18n.en.string_return_tot_fc_button = decodeSingleQuoteSafeString('RETURN TO [br/] [div style=**u0027**font-size:20px;**u0027**] FANCAM [/div]');// type=string
vars.i18n.en.string_return_to_fc_button_mobile = decodeSingleQuoteSafeString('RETURN TO [br/] [div style=**u0027**font-size:30px;**u0027**] FANCAM [/div]');// type=string
vars.i18n.en.more_fc_title = decodeSingleQuoteSafeString('MORE FANCAMS');// type=string
vars.i18n.en.more_scenes_title = decodeSingleQuoteSafeString('More Scenes');// type=string
vars.i18n.en.string_videobooth = decodeSingleQuoteSafeString('Video Booth');// type=string
vars.i18n.en.string_ecard = decodeSingleQuoteSafeString('DIGITAL POSTCARD');// type=string
vars.i18n.en.string_ecard_instruct = decodeSingleQuoteSafeString('USE THE CONTROLS TO FIND YOURSELF AND SNAP YOUR SELFIE, THEN SHARE IT WITH FRIENDS!');// type=string
vars.i18n.en.string_ecard_confirm = decodeSingleQuoteSafeString('SNAP IT!');// type=string
vars.i18n.en.string_ecard_shared = decodeSingleQuoteSafeString('SHARE YOUR DIGTAL POSTCARD');// type=string
vars.i18n.en.string_next = decodeSingleQuoteSafeString('NEXT');// type=string
vars.i18n.en.string_cancel = decodeSingleQuoteSafeString('CANCEL');// type=string
vars.i18n.en.string_tag = decodeSingleQuoteSafeString('TAG');// type=string
vars.i18n.en.string_showtags = decodeSingleQuoteSafeString('SHOW TAGS');// type=string
vars.i18n.en.string_hidetags = decodeSingleQuoteSafeString('HIDE TAGS');// type=string
vars.i18n.en.string_selectatag = decodeSingleQuoteSafeString('SELECT YOUR TAG [br/]TO TAG YOURSELF!');// type=string
vars.i18n.en.string_resend_email = decodeSingleQuoteSafeString('RESEND EMAIL');// type=string
vars.i18n.en.string_sending_email = decodeSingleQuoteSafeString('SENDING');// type=string
vars.i18n.en.string_sent_email = decodeSingleQuoteSafeString('SENT');// type=string
vars.i18n.en.string_error_sending_email = decodeSingleQuoteSafeString('ERROR SENDING EMAIL');// type=string
vars.i18n.en.string_verify_email_address = decodeSingleQuoteSafeString('PLEASE CHECK YOUR EMAIL');// type=string
vars.i18n.en.string_tutorial = decodeSingleQuoteSafeString('[div style=**u0027**font-size:px;**u0027**]TUTORIAL[/div]');// type=string
vars.i18n.en.string_termsandconditions = decodeSingleQuoteSafeString('TERMS AND CONDITIONS');// type=string
vars.i18n.en.string_removemytag = decodeSingleQuoteSafeString('MY PROFILE');// type=string
vars.i18n.en.string_viewthetutorial = decodeSingleQuoteSafeString('VIEW THE TUTORIAL');// type=string
vars.i18n.en.string_tutorial_subtitle = decodeSingleQuoteSafeString('LET US SHOW YOU AROUND WITH OUR BEGINNERS GUIDE.');// type=string
vars.i18n.en.string_date_format = decodeSingleQuoteSafeString('MMMM DD, YYYY');// type=string
vars.i18n.en.string_webvrtexts = decodeSingleQuoteSafeString('VR View');// type=string
vars.i18n.en.next_scene_title = decodeSingleQuoteSafeString('Next Scenes');// type=string
vars.i18n.en.previous_scene_title = decodeSingleQuoteSafeString('Previous Scenes');// type=string
vars.i18n.en.signup_optin_promotions_enabled = false; // type=boolean
vars.i18n.en.string_signup_optin_promotions = decodeSingleQuoteSafeString('Please send me Team News and Promotions');// type=string
vars.i18n.en.signup_optin_promotions_sponsor_enabled = false; // type=boolean
vars.i18n.en.string_signup_optin_promotions_sponsor = decodeSingleQuoteSafeString('Please send me Sponsor News and Promotions');// type=string
vars.i18n.en.signup_email_age_gate_enabled = false; // type=boolean
vars.i18n.en.signup_email_age_gate_age = decodeSingleQuoteSafeString('13');// type=string
vars.i18n.en.login_terms_of_use_url = decodeSingleQuoteSafeString('https://www.fancam.com/fancam-terms-and-conditions-privacy-policy/');// type=string
vars.i18n.en.login_privacy_policy_url = decodeSingleQuoteSafeString('https://www.fancam.com/fancam-terms-and-conditions-privacy-policy/');// type=string
vars.i18n.en.splash_screen_coming_soon_texts_enabled = false; // type=boolean
vars.i18n.en.coming_soon_header_image_enabled = false; // type=boolean
vars.i18n.en.coming_soon_logo_image_enabled = false; // type=boolean
vars.i18n.en.coming_soon_background_image_enabled = false; // type=boolean
vars.i18n.en.coming_soon_footer_image_enabled = false; // type=boolean
vars.i18n.en.show_close_button_when_live = false; // type=boolean
vars.i18n.en.custom_terms_of_service_enabled = false; // type=boolean
vars.i18n.en.string_terms_of_service = decodeSingleQuoteSafeString('Terms of service');// type=string
vars.i18n.en.string_get_notified_button = decodeSingleQuoteSafeString('Get Notified!');// type=string
vars.i18n.en.string_enter_your_email = decodeSingleQuoteSafeString('Enter your email');// type=string
vars.i18n.en.string_comp = decodeSingleQuoteSafeString('SWEEPSTAKES');// type=string
vars.i18n.en.string_comp_icon_title = decodeSingleQuoteSafeString('FIND ME TO WIN!');// type=string
vars.i18n.en.string_comp_small_icon_title = decodeSingleQuoteSafeString('FIND ME [br] TO WIN!');// type=string
vars.i18n.en.string_comp_header = decodeSingleQuoteSafeString('FIND THE HIDDEN DISCOVER CARD IN THE [br] CROWD FOR A CHANCE TO WIN A BIG TEN PRIZE PACK');// type=string
vars.i18n.en.string_comp_info = decodeSingleQuoteSafeString('');// type=string
vars.i18n.en.string_comp_footnote = decodeSingleQuoteSafeString('YOU CAN USE THE TRACKER THAT WILL APPEAR AT THE BOTTOM OF THE SCREEN TO HELP YOU WITH YOUR SEARCH. CLICK ON THE PRIZE TO SECURE YOU ENTRY.[br] GOOD LUCK!');// type=string
vars.i18n.en.string_comp_start_btn = decodeSingleQuoteSafeString('LETS GO');// type=string
vars.i18n.en.string_comp_optin_comp = decodeSingleQuoteSafeString('I AGREE TO THE TERMS AND CONDITIONS');// type=string
vars.i18n.en.string_comp_optin_more = decodeSingleQuoteSafeString('PLEASE SEND ME PROMITIONAL INFORMATION');// type=string
vars.i18n.en.string_comp_instructions_header = decodeSingleQuoteSafeString('LETS GO');// type=string
vars.i18n.en.string_comp_instructions = decodeSingleQuoteSafeString('TIME TO FIND THE DISCOVER CARD HIDING IN THE CROWD! [br] YOU CAN USE THE TRACKER THAT WILL APPEAR AT THE BOTTOM OF THE SCREEN TO HELP YOU WITH YOUR SEARCH. CLICK ON THE DISCOVER CARD TO SECURE YOUR ENTRY.[br] GOOD LUCK');// type=string
vars.i18n.en.string_comp_message_found_header = decodeSingleQuoteSafeString('[div style=**u0027**font-size:29px;**u0027**]CONGRATULATIONS![/div]');// type=string
vars.i18n.en.string_comp_message_found_text = decodeSingleQuoteSafeString('[div style=**u0027**font-size:20px;**u0027**]YOU HAVE FOUND THE DISCOVER CARD AND ARE NOW ONE STEP CLOSER TO WINNING AMAZING PRIZES![/div]');// type=string
vars.i18n.en.string_comp_message_found_first_footnote = decodeSingleQuoteSafeString('[div style=**u0027**font-size:19px;**u0027**]BUT FIRST WE WILL NEED TO KNOW MORE ABOUT YOU! [br] PLEASE FILL IN YOUR DETAILS[/div]');// type=string
vars.i18n.en.string_comp_message_found_more_footnote = decodeSingleQuoteSafeString('[div style=**u0027**font-size:19px;**u0027**]FOR EACH ITEM YOU FIND WE WILL ADD A NEW ENTRY INTO THE DRAW FOR YOU! [br] SO THE MORE YOU FIND THE HIGHER YOUR CHANCES OF WINNING ARE.[/div]');// type=string
vars.i18n.en.string_comp_message_found_all_header = decodeSingleQuoteSafeString('[div style=**u0027**font-size:29px;**u0027**]CONGRATULATIONS![/div]');// type=string
vars.i18n.en.string_comp_message_found_all_text = decodeSingleQuoteSafeString('[div style=**u0027**font-size:21px;**u0027**]YOU HAVE FOUND THE DISCOVER CARD AND NOW ONE STEP CLOSER TO WINNING THOSE AMAZING PRIZES![/div]');// type=string
vars.i18n.en.string_comp_message_found_all_footnote = decodeSingleQuoteSafeString('[div style=**u0027**font-size:21px;**u0027**]THANKS FOR PLAYING![br] WINNERS WILL BE NOTIFIED VIA EMAIL.[/div]');// type=string
vars.i18n.en.string_comp_message_already_found_header = decodeSingleQuoteSafeString('[div style=**u0027**font-size:29px;**u0027**]ALREADY ENTERED![/div]');// type=string
vars.i18n.en.string_comp_message_already_found_text = decodeSingleQuoteSafeString('[div style=**u0027**font-size:21px;**u0027**]YOU HAVE ALREADY FOUND THIS USING THIS EMAIL ADDRESS![/div]');// type=string
vars.i18n.en.string_comp_message_welcome_header = decodeSingleQuoteSafeString('[div style=**u0027**font-size:29px;**u0027**]WELCOME BACK![/div]');// type=string
vars.i18n.en.string_comp_message_welcome_text = decodeSingleQuoteSafeString('[div style=**u0027**font-size:21px;**u0027**]YOU HAVE ALREADY FOUND THE DISCOVER CARD. WINNERS WILL BE NOTIFIED VIA EMAIL![/div]');// type=string
vars.i18n.en.string_comp_age_gate_text = decodeSingleQuoteSafeString('[div style=**u0027**font-size:21px;**u0027**]YOU MUST BE OVER AGE OF 18 TO ENTER THE SITE[/div]');// type=string
vars.i18n.en.string_comp_address_header_text = decodeSingleQuoteSafeString('Enter your address');// type=string
vars.i18n.en.string_comp_header_text = decodeSingleQuoteSafeString('Enter your details');// type=string
vars.i18n.en.comp_terms_cond_pdf = "https://s3.amazonaws.com/in3sixty-project-media/in3sixty/5de623d704721d4946f6206a/Big-Ten-Fancam-Sweepstakes-Official-Rules-20191205120040.pdf"; // type=image unescaped
vars.i18n.en.title_video1 = decodeSingleQuoteSafeString('Title of Video 1');// type=string
vars.i18n.en.subtitle_video1 = decodeSingleQuoteSafeString('Subtitle of Video 1');// type=string
vars.i18n.en.title_video2 = decodeSingleQuoteSafeString('Title of Video 2');// type=string
vars.i18n.en.subtitle_video2 = decodeSingleQuoteSafeString('Subtitle of Video 2');// type=string
vars.i18n.en.title_video3 = decodeSingleQuoteSafeString('Title of Video 3');// type=string
vars.i18n.en.subtitle_video3 = decodeSingleQuoteSafeString('Subtitle of Video 3');// type=string
vars.i18n.en.title_video4 = decodeSingleQuoteSafeString('Title of Video 4');// type=string
vars.i18n.en.subtitle_video4 = decodeSingleQuoteSafeString('Subtitle of Video 4');// type=string
vars.i18n.en.title_video5 = decodeSingleQuoteSafeString('Title of Video 5');// type=string
vars.i18n.en.subtitle_video5 = decodeSingleQuoteSafeString('Subtitle of Video 5');// type=string
vars.i18n.en.email_subscription_title = decodeSingleQuoteSafeString('You**u0027**ve successfully signed up.');// type=string
vars.i18n.en.email_subscription_body = decodeSingleQuoteSafeString('We will let you know as soon as it goes live.');// type=string
vars.i18n.en.email_subscription_from_name = decodeSingleQuoteSafeString('');// type=string
vars.i18n.en.email_subscription_subject = decodeSingleQuoteSafeString('');// type=string
vars.i18n.en.email_tag_subject = decodeSingleQuoteSafeString('You found yourself in the crowd!');// type=string
vars.i18n.en.email_take_seat_subject = decodeSingleQuoteSafeString('You**u0027**ve taken your seat!');// type=string
vars.i18n.en.email_tag_header = decodeSingleQuoteSafeString('Congratulations! You**u0027**ve tagged yourself in');// type=string
vars.i18n.en.email_take_seat_header = decodeSingleQuoteSafeString('Congratulations! You**u0027**ve found your seat in');// type=string
vars.i18n.en.email_tag_body = decodeSingleQuoteSafeString('');// type=string
vars.i18n.en.email_competition_body = decodeSingleQuoteSafeString('We will let you know if you**u0027**re a winner.');// type=string
vars.i18n.en.email_verification_body = decodeSingleQuoteSafeString('We will let you know if you**u0027**re a winner.');// type=string
vars.i18n.en.string_ok = decodeSingleQuoteSafeString('OK');// type=string
vars.i18n.en.string_nothanks = decodeSingleQuoteSafeString('NO, THANKS');// type=string
vars.i18n.en.string_zoomusing = decodeSingleQuoteSafeString('ZOOM USING');// type=string
vars.i18n.en.string_moveusing = decodeSingleQuoteSafeString('MOVE USING');// type=string
vars.i18n.en.string_zoomandexplore = decodeSingleQuoteSafeString('ZOOM AND EXPLORE');// type=string
vars.i18n.en.string_trackpadscroll = decodeSingleQuoteSafeString('SCROLL');// type=string
vars.i18n.en.string_mousetoscroll = decodeSingleQuoteSafeString('SCROLL');// type=string
vars.i18n.en.string_keyboardkeys = decodeSingleQuoteSafeString('KEYBOARD KEYS');// type=string
vars.i18n.en.string_spread = decodeSingleQuoteSafeString('SPREAD');// type=string
vars.i18n.en.string_select = decodeSingleQuoteSafeString('Select');// type=string
vars.i18n.en.string_no_tag_zone = decodeSingleQuoteSafeString('You can**u0027**t sit here');// type=string
vars.i18n.en.string_failed_tagging_message = decodeSingleQuoteSafeString('Unable to use image, try another image');// type=string
vars.i18n.en.string_tapanddrag = decodeSingleQuoteSafeString('TAP AND DRAG');// type=string
vars.i18n.en.string_pinch = decodeSingleQuoteSafeString('PINCH');// type=string
vars.i18n.en.string_orthesecontrols = decodeSingleQuoteSafeString('OR THESE CONTROLS');// type=string
vars.i18n.en.string_trackpressdrag = decodeSingleQuoteSafeString('PRESS AND DRAG');// type=string
vars.i18n.en.string_mousepressdrag = decodeSingleQuoteSafeString('PRESS AND DRAG');// type=string
vars.i18n.en.string_keyboardarrowkeys = decodeSingleQuoteSafeString('KEYBOARD ARROW KEYS');// type=string
vars.i18n.en.string_tagyourselfusingthis = decodeSingleQuoteSafeString('TAG YOURSELF[br]USING THIS');// type=string
vars.i18n.en.string_moreoptionshere = decodeSingleQuoteSafeString('MORE[br]OPTIONS[br]HERE');// type=string
vars.i18n.en.string_sharewhatyoufind = decodeSingleQuoteSafeString('SHARE WHAT[br]YOU FIND[br]USING THIS');// type=string
vars.i18n.en.string_skip_tutorial = decodeSingleQuoteSafeString('SKIP TUTORIAL');// type=string
vars.i18n.en.string_enjoythefancam = decodeSingleQuoteSafeString('ENJOY THE [br]FANCAM');// type=string
vars.i18n.en.string_sharethisview = decodeSingleQuoteSafeString('[div style=**u0027**font-size:29px;**u0027**]SHARE THE VIEW[/div]');// type=string
vars.i18n.en.string_shareyourtag = decodeSingleQuoteSafeString('[div style=**u0027**font-size:29px;**u0027**]SHARE YOU TAG[/div]');// type=string
vars.languages = [];
vars.languages[0] = { code:"en", name:"en" };
vars.lang = 'en';
/* LANGUAGE SWITCHER */
i18next
.init({
resources: {'en' : { 'translation' : vars.i18n['en'] }},
lng: 'en',
fallbackLng: 'en'
}, function(err, t) {
console.log('localising');
localize = locI18next.init(i18next);
localize('[data-i18n]');
});
/* language switching */
function fc_changelang(lang, oncompleteaction){
console.log('changing language to ', lang);
if ((lang === undefined )){
console.log('fc_changelang: undefined language "'+ lang + '"');
return;
}
function _updateCurrentOptions(opts){
}
function _replaceQueryParam (param, newval, search) {
var regex = new RegExp( '([?;&])' + param + '=[^&;]*([;&]?)');
var query = search.replace(regex, '$1' + param + '=' + newval + '$2');
if (!regex.test(query)){
query = (query.length > 2 ? (query + '&') : '?') + (newval ? param + '=' + newval : '');
}
return query;
}
function _fetchOptionsForLang(lng, callback){
try {
var x = new (XMLHttpRequest || ActiveXObject)('MSXML2.XMLHTTP.3.0');
x.open('GET', '/20191207/options.json' + '?lang=' + lng, 1);
x.withCredentials = true;
x.onreadystatechange = function () {
if(this.readyState > 3){
if (this.status == 200 && this.responseText){
// console.log('resources loaded for "%s"', lng );
callback(JSON.parse(this.responseText));
}
else{
console.log('error loading options for lang');
callback({});
}
}
};
x.send();
}
catch (e) {
console.log(e);
}
}
function _applyOptions(lang, opts){
//console.log('_applyOptions for lang', lang, opts );
i18next.changeLanguage(lang);
localize('[data-i18n]');
for(var key in opts){ // just override/store on top.
if (opts.hasOwnProperty(key)) {
//console.log(key, opts[key]);
// convert any colors from hash to hex format 0x000
vars.options[key] = (typeof opts[key] === 'string') ? opts[key].replace(/^#([0-9a-f]{6}|[0-9a-f]{3})$/i, '0x\$1') : opts[key];
}
}
if (pano()){ // and update krpano
pano().set('options', vars.options);
pano().set('lang', lang);
if (oncompleteaction !== undefined){
pano().call(oncompleteaction);
}
}
if (vars.languages && vars.languages.length > 1){
window.history.replaceState({}, // update the main url
/* don't change site title */null ,
window.location.pathname + _replaceQueryParam('lng',lang, window.location.search));
}
}
if (vars.i18n[lang] !== undefined){
//console.log('already have resources cached for', lang);
_applyOptions(lang, vars.i18n[lang]);
}
else{
// console.log('caching new resources for', lang);
_fetchOptionsForLang(lang, function(opts){
vars.i18n[lang] = opts; // cache
i18next.addResources(lang, 'translation'/* TODO set the ns somewhere else*/, opts); //add to i18next
_applyOptions(lang, opts);
});
}
}
fc_changelang('en');
/* END LANGUAGE SWTICHER */
/* viewer */
embedpano({
html5:"prefer+webgl",
id:"panoSWFObject",
target:"panoDIV",
xml: "/20191207/pano.xml",
mobilescale:0.5,
initVars:initVars,
vars:vars,
onready:_onPanoReady,
onerror:_onPanoError
});
// for backwards compatibility
function fc_updateUrlQuery(atv, ath, fov, scene){
fc.updateUrlQuery(atv, ath, fov, scene);
}
/* TODO workaround, snapshot server not always receiving the events before 5 seconds,
send many */
var loaded_evt_count = 0;
var loaded_evt_max = 20;
var loaded_timer_interval = 1500;//ms
function _sendPanoLoadedEvt(){ // for the snapshot server..
var evt = document.createEvent("Event");
evt.initEvent("pano-loaded",true,true);
document.dispatchEvent(evt);
//console.log('sent pano loaded event');
loaded_evt_count++;
if (loaded_evt_count < loaded_evt_max){
setTimeout(_sendPanoLoadedEvt,loaded_timer_interval);
}
}
function fc_hideLoadingScreen(){
document.getElementById("panoDIV").style.visibility = 'visible';
document.body.style.background = 'none';
setTimeout(_sendPanoLoadedEvt,loaded_timer_interval);
}
function _onPanoError(message){
console.log('pano error');
_sendPanoLoadedEvt(); // nothing more to do..
}
function _onPanoReady(krpano){
console.log('pano ready');
}
/*
TODO move these functions out to the js library. - END
*/