@ -4,6 +4,12 @@
* file , You can obtain one at http : //mozilla.org/MPL/2.0/.
* file , You can obtain one at http : //mozilla.org/MPL/2.0/.
* /
* /
var dynamicPages = [
"notary" ,
"telegram" ,
"trailer" ,
"moneyorder"
] ;
var compiledPages = { } ;
var compiledPages = { } ;
var pagesToCompile = [
var pagesToCompile = [
"home" ,
"home" ,
@ -178,7 +184,7 @@ var routes = [
title : "Money Services" ,
title : "Money Services" ,
href : "/money" ,
href : "/money" ,
icon : "fa-duotone fa-money-bill-wave" ,
icon : "fa-duotone fa-money-bill-wave" ,
text : "Manage cryptocurrency and verify money orders ."
text : "Manage money orders and cryptocurrency."
} ,
} ,
{
{
title : "My Account" ,
title : "My Account" ,
@ -235,7 +241,7 @@ var routes = [
content : compiledPages . money ( {
content : compiledPages . money ( {
pages : [
pages : [
{
{
title : " Verify Money Order",
title : " Money Orders ",
href : "/moneyorder" ,
href : "/moneyorder" ,
icon : "fa-duotone fa-money-check-dollar" ,
icon : "fa-duotone fa-money-check-dollar" ,
text : "Check and verify a Helena Express money order."
text : "Check and verify a Helena Express money order."
@ -254,13 +260,27 @@ var routes = [
{
{
path : '/moneyorder' ,
path : '/moneyorder' ,
content : compiledPages . moneyorder ( ) ,
content : compiledPages . moneyorder ( ) ,
name : 'moneyorder'
name : 'moneyorder' ,
on : {
pageBeforeIn : function ( ) {
dyncontent = getDynamicPageContent ( "moneyorder" ) ;
if ( dyncontent != null ) {
$ ( "#moneyorder-dyncontent" ) . html ( dyncontent ) ;
}
}
}
} ,
} ,
{
{
path : '/notary' ,
path : '/notary' ,
content : compiledPages . notary ( ) ,
content : compiledPages . notary ( ) ,
name : 'notary' ,
name : 'notary' ,
on : {
on : {
pageBeforeIn : function ( ) {
dyncontent = getDynamicPageContent ( "notary" ) ;
if ( dyncontent != null ) {
$ ( "#notary-dyncontent" ) . html ( dyncontent ) ;
}
} ,
pageAfterIn : function ( ) {
pageAfterIn : function ( ) {
app . swiper . destroy ( "#notary-info-swiper" ) ;
app . swiper . destroy ( "#notary-info-swiper" ) ;
app . swiper . create ( "#notary-info-swiper" , {
app . swiper . create ( "#notary-info-swiper" , {
@ -433,6 +453,14 @@ var routes = [
} )
} )
} , { } ) ;
} , { } ) ;
} , "GET" ) ;
} , "GET" ) ;
} ,
on : {
pageBeforeIn : function ( ) {
dyncontent = getDynamicPageContent ( "trailer" ) ;
if ( dyncontent != null ) {
$ ( "#trailer-dyncontent" ) . html ( dyncontent ) ;
}
}
}
}
} ,
} ,
{
{
@ -448,6 +476,10 @@ var routes = [
} , function ( error ) {
} , function ( error ) {
$ ( "#addPaymentMethodNag" ) . css ( "display" , "" ) ;
$ ( "#addPaymentMethodNag" ) . css ( "display" , "" ) ;
} ) ;
} ) ;
dyncontent = getDynamicPageContent ( "telegram" ) ;
if ( dyncontent != null ) {
$ ( "#telegram-dyncontent" ) . html ( dyncontent ) ;
}
}
}
}
}
} ,
} ,