<!--#if expr="<X-FC-URL-PARAMETER CONFIG exists>=1"--><X-FC-WHITESPACE [STRIP]>
<!--#rem Generator metadata --> <!--#set var="FMAGENERATOR" value="FirstMagic Today 1.0"-->
<!--#rem Copyright metadata --> <!--#set var="FMACOPYRIGHT" value="$FMAGENERATOR - Copyright Runar Thorvaldsen, 2017 - all rights reserved. See www.webtrait.com"--><!--#set var="FMPUBLISHERURL" value="http://www.webtrait.com"-->
<!--#rem System --> <!--#if expr="`$HTTPS`=`off`"--><!--#set var="HTPREFIX" value="http:"--><!--#else--><!--#set var="HTPREFIX" value="https:"--><!--#endif--><!--#set var="APPDOMAIN" value="$HTPREFIX//<X-FC-HTTP-DOMAIN-NAME>"-->
<!--#if expr="<X-FC-FIELD 1784 NUMBER>=1"--><!--#set var="WATERMARK" value="false"--><!--#else--><!--#set var="WATERMARK" value="true"--><!--#endif--><!--#if expr="<X-FC-FIELD 1942 NUMBER>=1"--><!--#set var="HTML5" value="true"-->
<!--#else--><!--#set var="HTML5" value="false"--><!--#endif--><!--#if expr="<X-FC-FIELD 1236 NUMBER>=1"--><!--#set var="DOLOCALIZE" value="true"--><!--#else--><!--#set var="DOLOCALIZE" value="false"--><!--#endif-->
<!--#set var="USEMINIMOO" value="true"-->
<!--#rem APP Default Path --> <!--#if expr="@length('<X-FC-FIELD 1327 STRING>')>1"--><!--#set var="FMROOTAPPTITLE" value="<X-FC-FIELD 1327 STRING>"--><!--#else--><!--#set var="FMROOTAPPTITLE" value="Today"--><!--#endif-->
<!--#set var="FMROOTAPP" expr="@lower('$FMROOTAPPTITLE')"--><!--#set var="FMROOTLIBRARYTITLE" value="<X-FC-FIELD 1884 STRING>"--><!--#set var="FMROOTLIBRARY" expr="@lower('$FMROOTLIBRARYTITLE')"-->
<!--#set var="GENERICBYLINE" value="/Setup?plugin=firstmagic&templates=app&formid=2657"-->
<!--#set var="XLOGIN" value="/"--><!--#set var="LOOKUPID" value="&formid=164"--><!--#set var="POLLID" value="&formid=167"-->
<!--#rem Softer text --> <!--#if expr="<X-FC-FIELD 1561 NUMBER>=1"--><!--#set var="DOANTIALIAS" value="true"--><!--#else--><!--#set var="DOANTIALIAS" value="false"--><!--#endif-->
<!--#rem Dates --> <!--#if expr="<X-FC-FIELD 1771 NUMBER>=1"--><!--#set var="SHOWDATES" value="true"--><!--#else--><!--#set var="SHOWDATES" value="false"--><!--#endif--><!--#if expr="<X-FC-FIELD 1056 NUMBER>==0"-->
<!--#set var="USECLOCK" value="USHOURMIN"--><!--#set var="USFORMAT" value="true"--><!--#elif expr="<X-FC-FIELD 1056 NUMBER>==1"--><!--#set var="USECLOCK" value="USHOURMINSEC"-->
<!--#set var="USFORMAT" value="true"--><!--#elif expr="<X-FC-FIELD 1056 NUMBER>==2"--><!--#set var="USECLOCK" value="EUHOURMIN"--><!--#set var="USFORMAT" value="false"-->
<!--#elif expr="<X-FC-FIELD 1056 NUMBER>==3"--><!--#set var="USECLOCK" value="EUHOURMINSEC"--><!--#set var="USFORMAT" value="false"--><!--#endif-->
<!--#rem Bylines --> <!--#if expr="<X-FC-FIELD 1300 NUMBER>==1"--><!--#set var="APPBYLINE" value="true"--><!--#else--><!--#set var="APPBYLINE" value="false"--><!--#endif-->
<!--#if expr="<X-FC-FIELD 1337 NUMBER>==1"--><!--#set var="PUBLICPROFILES" value="true"--><!--#else--><!--#set var="PUBLICPROFILES" value="false"--><!--#endif-->
<!--#rem Owner Panel --> <!--#if expr="@length('<X-FC-FIELD 1074 STRING>') >3"--><!--#set var="LOGOEXIST" value="true"--><!--#set var="LOGOPATH" value="<X-FC-FIELD 1074 STRING>"--><!--#else--><!--#set var="LOGOEXIST" value="false"--><!--#endif-->
<!--#set var="WTAUTHOR" value="<X-FC-FIELD 1030 STRING>"--><!--#set var="WTDESCRIPTION" value="<X-FC-FIELD 8021 STRING>"--><!--#set var="FBLONGITUDE" value="<X-FC-FIELD 1142 STRING>"-->
<!--#set var="FBLATITUDE" value="<X-FC-FIELD 1144 STRING>"--><!--#set var="CONTACTLINK" value="<X-FC-FIELD 1026 STRING>"--><!--#set var="CONTACTSTREET" value="<X-FC-FIELD 1132 STRING>"-->
<!--#set var="CONTACTPOSTCODE" value="<X-FC-FIELD 1128 STRING>"--><!--#set var="CONTACTCITY" value="<X-FC-FIELD 1130 STRING>"--><!--#set var="CONTACTCOUNTRY" value="<X-FC-FIELD 1138 STRING>"-->
<!--#set var="CONTACTPHONE" value="<X-FC-FIELD 1134 STRING>"--><!--#set var="CONTACTFAX" value="<X-FC-FIELD 1136 STRING>"-->
<!--#if expr="<X-FC-FIELD 1355 NUMBER>==1"--><!--#set var="DOAPPSOCIAL" value="true"--><!--#else--><!--#set var="DOAPPSOCIAL" value="false"--><!--#endif-->
<!--#rem Media Extras --> <!--#if expr="<X-FC-FIELD 1302 NUMBER>==1"--><!--#set var="STATICGMAPS" value="true"--><!--#else--><!--#set var="STATICGMAPS" value="false"--><!--#endif--><!--#set var="MAPAPIKEY" value="<X-FC-FIELD 1303 STRING>"-->
<!--#set var="APPWEBSITELINK" value="<X-FC-FIELD 1304 STRING>"--><!--#set var="APPBLOGLINK" value="<X-FC-FIELD 1305 STRING>"--><!--#set var="APPFACEBOOKLINK" value="<X-FC-FIELD 1306 STRING>"-->
<!--#set var="APPGPLUSLINK" value="<X-FC-FIELD 1307 STRING>"--><!--#set var="APPLINKEDINLINK" value="<X-FC-FIELD 1308 STRING>"--><!--#set var="APPTWITTERLINK" value="<X-FC-FIELD 1309 STRING>"-->
<!--#set var="APPEXTRA1LABEL" value="<X-FC-FIELD 1313 STRING>"--><!--#set var="APPEXTRA1LINK" value="<X-FC-FIELD 1310 STRING>"--><!--#set var="APPEXTRA2LABEL" value="<X-FC-FIELD 1311 STRING>"-->
<!--#set var="APPEXTRA2LINK" value="<X-FC-FIELD 1312 STRING>"--><!--#if expr="<X-FC-FIELD 1338 NUMBER>==1"--><!--#set var="GOTAGFIX" value="true"--><!--#else--><!--#set var="GOTAGFIX" value="false"--><!--#endif-->
<!--#rem Registry Terms --> <!--#rem MYRESUME --><!--#set var="FMARESUME" value="<X-FC-FIELD LANG.144.3 STRING>"--><!--#rem PHONE --><!--#set var="FMAPHONE" value="<X-FC-FIELD LANG.7536.10 STRING>"-->
<!--#rem MOBILE --><!--#set var="FMAMOBILE" value="<X-FC-FIELD LANG.7536.2 STRING>"--><!--#rem DIRECTORY --><!--#set var="FMADIRECTORY" value="<X-FC-FIELD LANG.290.1 STRING>"-->
<!--#rem FAX --><!--#set var="FMAFAX" value="<X-FC-FIELD LANG.243.7 STRING>"--><!--#rem RECENTACTIVITY --><!--#set var="FMARECENTACTIVITY" value="<X-FC-FIELD LANG.6050.27 STRING>"-->
<!--#rem DOWNLOAD --><!--#set var="FMADOWNLOAD" value="<X-FC-FIELD LANG.1106.1 STRING>"--><!--#rem NOTVIEWABLE --><!--#set var="FMANOTVIEWABLE" value="<X-FC-FIELD LANG.400.39 STRING>"-->
<!--#rem MORE --><!--#set var="FMAMORE" value="<X-FC-FIELD LANG.6006.14 STRING>"--><!--#rem LESS --><!--#set var="FMALESS" value="<X-FC-FIELD LANG.6044.1 STRING>"-->
<!--#rem SETUP --><!--#set var="FMASETUP" value="<X-FC-FIELD LANG.1119.1 STRING>"--><!--#set var="FMASETUP" value="<X-FC-FIELD LANG.6048.1 STRING> $WTAUTHOR"-->
<!--#rem NOCONNECTION --><!--#set var="FMANOCONNECTION" expr="@escape('<X-FC-FIELD LANG.100.72 STRING>')"--><!--#set var="FMAPERMALINK" value="<X-FC-FIELD LANG.6050.23 STRING>"-->
<!--#rem NOSTREAM --><!--#set var="FMANOSTREAMFOUND" expr="@escape('<X-FC-FIELD LANG.7511.5 STRING>')"--><!--#rem NOSERVICE --><!--#set var="FMANOSERVICE" expr="@escape('<X-FC-FIELD LANG.7514.4 STRING>')"-->
<!--#set var="FMAMYACCOUNTSETTINGS" value="<X-FC-FIELD LANG.6061.4 STRING>"-->
<!--#rem Custom Terms --> <!--#set var="FMGETAPP" value="Tap here to get our App"--><!--#set var="FMAGETURAPP" value="Get our App"--><!--#set var="FMATAP" value="Tap"--><!--#set var="FMAHOME" value="Back to the Homepage"-->
<!--#set var="FMANDROIDADDTOHOME" value="on the top right of your screen, and then tap <strong>Add to Home Screen</strong> from the Options Menu. Done!"-->
<!--#set var="FMAGENERICTAP" value="Install our App by tapping <strong>Pin to Home Screen</strong> in your device“s Browser Menu."--><!--#set var="FMAMESSAGE" value=""-->
<!--#set var="FMAIOSADDTOHOME" value="and then tap <strong>Add to Home Screen</strong>. Done!"--><!--#set var="FMALINKTOSITE" value="App Feed:"-->
<!--#rem Enabling the App --> <!--#if expr="<X-FC-FIELD 1390 NUMBER>==1"--><!--#set var="ENABLEAPP" value="true"--><!--#else--><!--#set var="ENABLEAPP" value="false"--><!--#endif-->
<!--#rem App Setup --> <!--#set var="PRECOMPOSEDICONS" value="false"--><!--#set var="APPWIDTHFIX" value="false"--><!--#set var="INSTALLERPROMPT" value="true"-->
<!--#if expr="@indexof ('$HTTP_USER_AGENT', 'Mobile')>0 || @indexof ('$HTTP_USER_AGENT', 'iPad')>0 || @indexof ('$HTTP_USER_AGENT', 'iPhone')>0 || @indexof ('$HTTP_USER_AGENT', 'Android')>0@indexof ('$HTTP_USER_AGENT', 'Windows Phone')>0"-->
<!--#set var="ACTIONEVENT" value="touchend"--><!--#else--><!--#set var="ACTIONEVENT" value="click"--><!--#endif-->
<!--#rem App default path --> <!--#set var="APPROOT" value="$APPDOMAIN/$FMROOTAPP"--><!--#set var="TITLELINK" value="$APPDOMAIN/$FMROOTAPP"--><!--#set var="APPCANONICAL" value=""--><!--#set var="APPCANONICALBACK" value="/"-->
<X-FC-WHITESPACE [RETAIN]><!--#else--><html lang="en">
<head>
<meta charset="utf-8" /><!--#include virtual="//Setup?plugin=firstmagic&templates=app&CONFIG&formid=2658" --><!--#if expr="`$DOLOCALIZE`=`true`"--><!--#include virtual="/<!--#echo expr=`$FMROOTLIBRARY`-->/appterms.inc" --><!--#endif--><!--#if expr="<X-FC-URL-PARAMETER mobilepreview exists>=1"--><!--#set var="CHECKDATE" expr="@indexof ('<X-FC-URL-PARAMETER>', 'Date')" --><!--#set var="GETTHISDATE" expr="@substr('<X-FC-URL-PARAMETER>',$CHECKDATE)"--><!--#endif-->
<title><!--#echo expr=`$WTAUTHOR`--></title>
<meta name="robots" content="noindex"/>
<meta name="generator" content="<!--#echo expr=`$FMAGENERATOR`-->"/>
<!--#if expr="$APPWIDTHFIX=true"-->-<meta name="viewport" content="initial-scale=1.0"><!--#else--><meta name="viewport" content="width=device-width" /><!--#endif-->
<meta name="application-name" content="<!--#echo expr=`$WTAUTHOR`-->"/>
<meta name="apple-mobile-web-app-title" content="<!--#echo expr=`$WTAUTHOR`-->"/>
<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent"/>
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="mobile-web-app-capable" content="yes">
<!--#if expr="`$USEMINIMOO`=`false` && `$DOLOCALIZE`=`true`"--><script type="text/javascript" src="/.templates/lib_mootools.js"></script><!--#else--><script type="text/javascript" src="/plugins/firstmagic/app/assets/moo.js"></script><!--#endif-->
<link rel="stylesheet" href="/plugins/firstmagic/app/assets/appformat.css" type="text/css"/><!--#if expr="`$DOLOCALIZE`=`true`"-->
<link rel="stylesheet" href="/<!--#echo expr=`$FMROOTLIBRARY`-->/apptheme.css" type="text/css"-->
<link rel="manifest" href="/<!--#echo expr=`$FMROOTLIBRARY`-->/manifest.json">
<link rel="shortcut icon" href="/<!--#echo expr=`$FMROOTLIBRARY`-->/favicon.ico"/>
<link rel="icon" sizes="128x128" href="/<!--#echo expr=`$FMROOTLIBRARY`-->/icon_128.png">
<link rel="shortcut icon" sizes="192x192" href="/<!--#echo expr=`$FMROOTLIBRARY`-->/icon_192.png">
<link rel="icon" sizes="144x144" href="/<!--#echo expr=`$FMROOTLIBRARY`-->/icon_144.png">
<link rel="apple-touch-icon<!--#if expr="$PRECOMPOSEDICONS=true"-->-precomposed<!--#endif-->" sizes="144x144" href="/<!--#echo expr=`$FMROOTLIBRARY`-->/icon_ios144.png" />
<link rel="apple-touch-icon<!--#if expr="$PRECOMPOSEDICONS=true"-->-precomposed<!--#endif-->" sizes="180x180" href="/<!--#echo expr=`$FMROOTLIBRARY`-->/icon_ios180.png" />
<meta name="msapplication-square150x150logo" content="/<!--#echo expr=`$FMROOTLIBRARY`-->/icon_150.png"/><!--#else-->
<link rel="stylesheet" href="/plugins/firstmagic/app/assets/apptheme.css" type="text/css"-->
<link rel="manifest" href="/plugins/firstmagic/app/assets/manifest.json">
<link rel="shortcut icon" href="/plugins/firstmagic/app/assets/favicon.ico"/>
<link rel="icon" sizes="128x128" href="/plugins/firstmagic/app/assets/icon_128.png">
<link rel="shortcut icon" sizes="192x192" href="/plugins/firstmagic/app/assets/icon_192.png">
<link rel="icon" sizes="144x144" href="plugins/firstmagic/app/assets/icon_144.png">
<link rel="apple-touch-icon" sizes="144x144" href="/plugins/firstmagic/app/assets/icon_ios144.png" />
<link rel="apple-touch-icon" sizes="180x180" href="/plugins/firstmagic/app/assets/icon_ios180.png" />
<meta name="msapplication-square150x150logo" content="/plugins/firstmagic/app/assets/icon_150.png"/><!--#endif-->
</head>
<body><!--#if expr="`$ENABLEAPP`=`true`"-->
<div class="appwrapper" id="fmapp">
<div id="appheader">
<div id="appbtnrow" class="spin">
<input type="button" class="appbtn appreturnmenu" id="btnsreturnbtn"/>
<input type="button" class="appbtn appmyprefs<!--#if expr="`$DOLOCALIZE`=`true`"--> localized<!--#endif-->" id="apprefsbtn" value=""/>
<input type="button" class="appbtn appabout" value="" id="appaboutbtn"/>
<input type="button" class="appbtn appoll" value="" id="appollbtn"/>
<input type="button" class="appbtn apphome" value="" id="apphomebtn"/>
<div id="apptitle" class="panelheader fctext"></div>
</div>
</div>
<div id="appview" class="appbody" style="opacity:0;visibility:hidden;"></div>
<div id="appoverlay" class="appfaded"></div>
<div id="appcanvas"><input type="button" id="reloadbtn" style="visibility:hidden;opacity:0;"/></div>
<div id="setupguide" class="appanels" style="visibility:hidden;opacity:0;z-index:0;">
<div class="appanelprofile">
<div class="panelheader fctext"><!--#echo expr=`$FMASETUP`--></div>
<div class="mediaitem mediafull sticky<!--#if expr="$HTML5=false" --> xhtmlmedia<!--#else--> html5media<!--#endif-->">
<div class="contentbox appcard fullcard">
<div class="appcardcontent nothumb" style="position:relative;">
<h2><!--#echo expr=`$FMAGETURAPP`--></h2>
<br>
<!--#if expr="@indexof ('$HTTP_USER_AGENT', 'iPhone')>1" -->
<div id="iosnote" class="fctable fctext devicenote">
<br>
<!--#echo expr=`$FMATAP`--> <div class="iosicon"></div> <!--#echo expr=`$FMAIOSADDTOHOME`-->
</div>
<!--#elif expr="@indexof ('$HTTP_USER_AGENT', 'Android')>1" -->
<div id="androidnote" class="fctable fctext devicenote">
<br><!--#echo expr=`$FMATAP`--> <div class="androidicon"></div> <!--#echo expr=`$FMANDROIDADDTOHOME`-->
</div>
<!--#else-->
<div id="genericnote" class="fctable fctext devicenote">
<br><!--#echo expr=`$FMAGENERICTAP`-->
</div>
<!--#endif-->
<div class="fctable fctext devicenote appmessage">
<!--#if expr="@length('$FMAMESSAGE')>0"--><br>
<!--#echo expr=`$FMAMESSAGE`-->
<br><!--#endif-->
<br><br>
<a href="<!--#echo expr=`$APPCANONICALBACK`-->" style="font-weight:700;text-decoration:underline;"><!--#echo expr=`$FMAHOME`--></a>
<br><br>
</div>
<div class="clear"></div>
</div>
</div>
</div>
</div>
</div>
<div id="preferences" class="appanels">
<div class="appanelprofile">
<div class="panelheader fctext"><!--#echo expr=`$FMAMYACCOUNTSETTINGS`--></div>
<a href="javascript:void(0);" class="movepanel moveleft"></a>
<div class="mediaitem mediafull sticky<!--#if expr="$HTML5=false" --> xhtmlmedia<!--#else--> html5media<!--#endif-->">
<div class="contentbox appcard fullcard">
<div class="appcardcontent nothumb" style="position:relative;">
<h2><!--#echo expr=`$FMALINKTOSITE`--></h2>
<div class="fctable fctext" style="position:relative;">
<input id="setstreamlink" type="text" value="" placeholder="Server URL" class="apptxtfield"/>
<div class="smallfctext" id="errornotice"> </div>
<input type="button" id="saveapplink" value="" title="Save" class="appformbtn"/>
</div>
<div class="clear"></div>
</div>
</div>
</div>
</div>
</div>
<div id="publisher" class="appanels">
<a href="javascript:void(0);" class="movepanel moveright"></a>
<div id="publishercontent"></div>
</div>
<div id="appbyline" class="appanels">
<a href="javascript:void(0);" class="movepanel moveright"></a>
<div id="appbylinecontent"></div>
</div>
</div>
<script type="text/javascript"><!--
window.addEvent('domready', function(){
applugin='firstmagic&templates=app';
defaultappstreamlink='<!--#echo expr=`$APPROOT`-->';
titlelink='<!--#echo expr=`$TITLELINK`-->';
lookupid='<!--#echo expr=`$LOOKUPID`-->';
pollid='<!--#echo expr=`$POLLID`-->';
genericbyline='<!--#echo expr=`$GENERICBYLINE`-->';
apptitle='<!--#echo expr=`$WTAUTHOR`-->';if (apptitle.length >1) defaultapptitle=apptitle; else defaultapptitle='<!--#echo expr=`$FMAGENERATOR`-->';
offlinemsg='<!--#echo expr=`$FMANOCONNECTION`-->';
wrongpathmsg='<!--#echo expr=`$FMANOSTREAMFOUND`--> ';
nopathheader='<!--#echo expr=`$FMANOSERVICE`-->';
var targetTime = new Date();var now = targetTime.getTime();targetTime.setHours(00,00,01,01);var time = targetTime.getTime() - now;if (time > 0) setTimeout(function(){reLoad();},time);
isonline='false';
applookup='';approot='';appstreamlink='';
pingfrequency=3600000;
timeoutdelay=10000;oldstamp=0;newstamp=0;connecterror=0;
document.addEvent('scroll', function(event){doBtnrow();});
$('btnsreturnbtn').addEvent('<!--#echo expr=`$ACTIONEVENT`-->', function(event){$('appheader').set('tween', {duration:600,transition:Fx.Transitions.Expo.easeOut});$('appheader').tween('width',window.scrollWidth),$('btnsreturnbtn').setStyle('display','none');});
$('fmapp').getElements('.movepanel').addEvent('<!--#echo expr=`$ACTIONEVENT`-->', function(event){closePanels();});
$('appoverlay').addEvent('<!--#echo expr=`$ACTIONEVENT`-->', function(event){closePanels();});
$('setstreamlink').addEvent('<!--#echo expr=`$ACTIONEVENT`-->', function(event){showSaveStream();});
$('appollbtn').addEvent('<!--#echo expr=`$ACTIONEVENT`-->', function(event){poll();});
$('apphomebtn').addEvent('<!--#echo expr=`$ACTIONEVENT`-->', function(event){refreshHome();});
$('apprefsbtn').addEvent('<!--#echo expr=`$ACTIONEVENT`-->', function(event){doPrefs();});
$('appaboutbtn').addEvent('<!--#echo expr=`$ACTIONEVENT`-->', function(event){doPublisher();});
$('saveapplink').addEvent('<!--#echo expr=`$ACTIONEVENT`-->', function(){serverLink();});
$('reloadbtn').addEvent('<!--#echo expr=`$ACTIONEVENT`-->', function(){reLoad();});
<!--#if expr="$INSTALLERPROMPT=true && <X-FC-URL-PARAMETER mobilepreview exists>=0"-->
<!--#if expr="@indexof ('$HTTP_USER_AGENT', 'Android')>0"-->if (window.matchMedia('(display-mode:standalone)').matches){doLaunch();}else {$('appheader').setStyle('display','none'),$('setupguide').set('tween', {duration:150}).fade('1');}<!--#else-->if (window.navigator.standalone == true){doLaunch();}else {$('appheader').setStyle('display','none'),$('setupguide').set('tween', {duration:150}).fade('1');}<!--#endif--><!--#else-->doLaunch();<!--#endif-->
});
function refreshHome(){}
function reLoad(){
window.location.reload(true);
}
function GetLinks(){
allLinks = $(document.body).getElements('a');for (var i=0; i<allLinks.length; i++){allLinks[i].target='popnew';}
}
function serverLink(){
newstamp=0,oldstamp=0,myapplink = $('setstreamlink').value;localStorage.setItem('storedLink', myapplink),$('setstreamlink').addClass('spin'),$('saveapplink').set('tween', {duration:150}).fade('0'),doLaunch();
}
function showSaveStream(){
editvalue=($('setstreamlink').value);if (editvalue.indexOf('://')>3)$('saveapplink').set('tween', {duration:300}).fade('1');
}
function doLaunch(){
if (localStorage['storedLink']){appstreamlink = localStorage.getItem('storedLink'),$('setstreamlink').value=(appstreamlink);if (appstreamlink.indexOf('://')>3) applookup=(appstreamlink+'?plugin='+applugin),bits = appstreamlink.split('/'),troot = bits[0],bits2 = bits[2].split(':'),appdom = bits2[0],approot=(troot+'//'+appdom),$('apptitle').innerHTML=('<a class="apptitlelink" id="publishername" href="'+(titlelink)+'" target="browserwin">'+defaultapptitle)+'</a>'; else approot='',$('apptitle').innerHTML=(nopathheader),$('appbtnrow').removeClass('spin'),doPrefs();} else if (defaultappstreamlink.length >8) appstreamlink=defaultappstreamlink,$('setstreamlink').value=(appstreamlink),approot='<!--#echo
expr=`$APPDOMAIN`-->',applookup=(appstreamlink+'?plugin='+applugin),$('apptitle').innerHTML=('<a class="apptitlelink" id="publishername" href="'+(titlelink)+'" target="browserwin">'+defaultapptitle)+'</a>',$('appbtnrow').removeClass('spin');else approot='',$('appbtnrow').removeClass('spin');var pingstamp = new Request ({url:applookup+pollid+'&poll&'+appstreamlink,method: 'get',onSuccess: function(response){isonline='true';newstamp = response; if(oldstamp==0) getFeed(); else if(newstamp>oldstamp) $('appview').getElements('.notification').set('tween', {duration:2000}).fade('1');oldstamp=newstamp;},timeout:timeoutdelay,onTimeout:function(){errormsg=offlinemsg,feedFailure();},onFailure: function(errornote){if(isonline=='true')errormsg = errornote.responseText;else errormsg = offlinemsg;feedFailure();}});pingstamp.send(); var pingIt = function(){pingstamp.send();if(connecterror==1){clearTimeout(theping);}};var
theping = pingIt.periodical(pingfrequency);if (document.getElementsByClassName('smooth').length>0)$('apptitle').addClass('smooth');
}
function doPrefs(){
if (document.getElementsByClassName('smooth').length>0)$('preferences').addClass('smooth');movedirection='-90';$('preferences').set('morph',{duration:300,unit: '%',transition:Fx.Transitions.Quad.easeIn,link:'chain'}),$('preferences').morph({'left':0});$('appoverlay').set('tween', {duration:300}).fade('0.5');$('preferences').addClass('openpanel');
}
function doAppByline(){
movedirection='100';thisname=(thisname);if(thisname=='generic')openbyline=genericbyline;else openbyline=(approot+'/__Open-User/'+(thisname)+'/__resume?plugin='+applugin+'&formid=20502&@'+(thisname));var req = new Request.HTML({url:openbyline,method: 'get',onSuccess: function(){$('appbyline').set('morph',{duration:300,unit: '%',transition:Fx.Transitions.Quad.easeIn,link:'chain'}),$('appbyline').morph({'left':10});$('appoverlay').set('tween', {duration:300}).fade('0.5');$('appbyline').addClass('openpanel'),GetLinks();},timeout:timeoutdelay,onTimeout:function(){errormsg=offlinemsg,feedFailure();},onFailure: function(errornote){errormsg = errornote.responseText,feedFailure();},update: $('appbylinecontent')}).send();
}
function doPublisher(){
movedirection='100';var req = new Request.HTML({url:approot+'/Setup?plugin='+applugin+'&formid=2657',method: 'get',onSuccess: function(){$('publisher').set('morph',{duration:300,unit: '%',transition:Fx.Transitions.Quad.easeIn,link:'chain'}),$('publisher').morph({'left':10});$('appoverlay').set('tween', {duration:300}).fade('0.5');$('publisher').addClass('openpanel'),GetLinks();},timeout:timeoutdelay,onTimeout:function(){errormsg=offlinemsg,feedFailure();},onFailure: function(errornote){errormsg = errornote.responseText,feedFailure();},update: $('publishercontent')}).send();
}
function poll(){
var getstamp = new Request ({url:applookup+pollid+'&poll',method: 'get',onRequest:function(){$('appbtnrow').addClass('spin');},onSuccess: function(response){newstamp = response;if(newstamp>oldstamp)$('appview').set('tween', {duration:300}).fade('0.5'),getFeed();},onComplete:function(){$('appbtnrow').removeClass('spin');},onFailure:function(){newstamp = oldstamp,errormsg=offlinemsg,feedFailure();}});getstamp.send(),oldstamp=newstamp;
}
function txtxpand(){
thiscardID=(thiscard);thispic=('pic'+thiscardID);thisprev=('i'+thiscardID);$(thisprev).setStyle('display','none');if ($(thispic)){currheight=$(thiscardID).scrollHeight/3*2+30;} else currheight=$(thiscardID).scrollHeight+30;thismore=('more'+thiscardID);thisless=('less'+thiscardID);thiscard=('card'+thiscardID);origheight=$(thiscardID).offsetHeight;$(thiscardID).set('morph',{duration:300,onComplete: function(){$(thismore).setStyle('display','none'),$(thisless).setStyle('display','block'),$(thiscard).removeClass('collapsedcard').addClass('fullcard');},transition:Fx.Transitions.Quad.easeOut,link:'chain'}),$(thiscardID).morph({'height':currheight});
}
function txtcontract(){
xthiscardID=(xthiscard);xthispic=('pic'+xthiscardID);xthisprev=('i'+xthiscardID);$(xthisprev).setStyle('display','block');if ($(xthispic)){currheight=$(xthiscardID).scrollHeight/3*2+30;} else currheight=$(xthiscardID).scrollHeight+30;thismore=('more'+xthiscardID);thisless=('less'+xthiscardID);thiscard=('card'+xthiscardID);$(xthiscardID).set('morph',{duration:200,onComplete: function(){$(thismore).setStyle('display','block'),$(thisless).setStyle('display','none'),$(thiscard).removeClass('fullcard').addClass('collapsedcard');},transition:Fx.Transitions.Quad.easeIn,link:'chain'}), $(xthiscardID).morph({'height':origheight});
}
function feedFailure(){
$('appview').innerHTML='<div class="smallfctext msgtxt">'+(errormsg)+'</div>',$('appbtnrow').removeClass('spin'),$('appview').set('tween', {duration:2000}).fade('1'),connecterror=1,$('errornotice').set('tween', {duration:150}).fade('1').innerHTML=(errormsg),$('setstreamlink').addClass('errorlink');$('reloadbtn').set('tween', {duration:500}).fade('1');
}
function noFailure(){
$('setstreamlink').removeClass('errorlink'),$('errornotice').set('tween', {duration:150}).fade('0').innerHTML=' ',$('setstreamlink').removeClass('spin');
}
function closePanels(){$('appoverlay').set('tween', {duration:50}).fade('0');var mypanel=($('fmapp').getElements('.openpanel'));mypanel.set('morph',{duration:300,unit: '%',transition:Fx.Transitions.Quad.easeOut,link:'chain'}),mypanel.morph({'left':movedirection});mypanel.removeClass('openpanel');
}
function doBtnrow(){
if(window.getScroll().y<60)$('appheader').setStyle('width',window.scrollWidth),$('btnsreturnbtn').setStyle('display','none');else $('appheader').setStyle('width','26px'),$('btnsreturnbtn').setStyle('display','block');
}
function getFeed(){
noFailure();var req = new Request.HTML({url:applookup+'&pull<!--#if expr="<X-FC-URL-PARAMETER mobilepreview exists>=1"-->&<!--#echo expr=`$GETTHISDATE`--><!--#endif-->'+lookupid,method: 'get',onSuccess: function(){if(newstamp==10) errormsg=(wrongpathmsg+appstreamlink),feedFailure();$('appview').set('tween',
{duration:300}).fade('1'),$('appbtnrow').removeClass('spin'),$('appview').getElements('.notification').addEvent('<!--#echo expr=`$ACTIONEVENT`-->', function(event){$('appbtnrow').addClass('spin'),getFeed();}),$('appview').getElements('.expandbtn').addEvent('<!--#echo expr=`$ACTIONEVENT`-->', function(event){thiscard = this.getAttribute('rel'),txtxpand();}),$('appview').getElements('.contractbtn').addEvent('<!--#echo
expr=`$ACTIONEVENT`-->', function(event){xthiscard = this.getAttribute('rel'),txtcontract();}),$('appview').getElements('.bylinebtn').addEvent('<!--#echo expr=`$ACTIONEVENT`-->', function(event){thisname = this.getAttribute('rel'),doAppByline(),GetLinks();$('reloadbtn').set('tween', {duration:100}).fade('0');});},timeout:timeoutdelay,onTimeout:function(){errormsg=offlinemsg,feedFailure();},onFailure: function(errornote){errormsg = errornote.responseText,feedFailure();},update: $('appview')}).send();
}
//--></script>
<!-- <!--#echo expr=`$FMACOPYRIGHT`--> --><!--#else--><div class="fctext" style="text-align:center;margin-top:50px;"><a href="<!--#echo expr=`$APPDOMAIN`-->"><!--#echo expr=`$APPDOMAIN`--></a></div><!--#endif--></body>
</html><!--#endif-->
| ||