+
Our Mobile Shipping Center is a specialized trailer equipped to offer mailing,
shipping, notarizing, copying, and faxing services. With no pickup or travel fees,
it's a good way to save money and skip the line at the post office.
diff --git a/www/routes.js b/www/routes.js
index 8262ae4..42642bd 100644
--- a/www/routes.js
+++ b/www/routes.js
@@ -4,6 +4,12 @@
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
*/
+var dynamicPages = [
+ "notary",
+ "telegram",
+ "trailer",
+ "moneyorder"
+];
var compiledPages = {};
var pagesToCompile = [
"home",
@@ -178,7 +184,7 @@ var routes = [
title: "Money Services",
href: "/money",
icon: "fa-duotone fa-money-bill-wave",
- text: "Manage cryptocurrency and verify money orders."
+ text: "Manage money orders and cryptocurrency."
},
{
title: "My Account",
@@ -235,7 +241,7 @@ var routes = [
content: compiledPages.money({
pages: [
{
- title: "Verify Money Order",
+ title: "Money Orders",
href: "/moneyorder",
icon: "fa-duotone fa-money-check-dollar",
text: "Check and verify a Helena Express money order."
@@ -254,13 +260,27 @@ var routes = [
{
path: '/moneyorder',
content: compiledPages.moneyorder(),
- name: 'moneyorder'
+ name: 'moneyorder',
+ on: {
+ pageBeforeIn: function () {
+ dyncontent = getDynamicPageContent("moneyorder");
+ if (dyncontent != null) {
+ $("#moneyorder-dyncontent").html(dyncontent);
+ }
+ }
+ }
},
{
path: '/notary',
content: compiledPages.notary(),
name: 'notary',
on: {
+ pageBeforeIn: function () {
+ dyncontent = getDynamicPageContent("notary");
+ if (dyncontent != null) {
+ $("#notary-dyncontent").html(dyncontent);
+ }
+ },
pageAfterIn: function () {
app.swiper.destroy("#notary-info-swiper");
app.swiper.create("#notary-info-swiper", {
@@ -433,6 +453,14 @@ var routes = [
})
}, {});
}, "GET");
+ },
+ on: {
+ pageBeforeIn: function () {
+ dyncontent = getDynamicPageContent("trailer");
+ if (dyncontent != null) {
+ $("#trailer-dyncontent").html(dyncontent);
+ }
+ }
}
},
{
@@ -448,6 +476,10 @@ var routes = [
}, function (error) {
$("#addPaymentMethodNag").css("display", "");
});
+ dyncontent = getDynamicPageContent("telegram");
+ if (dyncontent != null) {
+ $("#telegram-dyncontent").html(dyncontent);
+ }
}
}
},
diff --git a/www/settings.js b/www/settings.js
index 9d0bd74..59d72fa 100644
--- a/www/settings.js
+++ b/www/settings.js
@@ -6,6 +6,8 @@
var SETTINGS = {
apis: {
+ // Dynamic text content updater
+ dynamicappcontent: "http://localhost/helena.express/apis/dynamicappcontent/",
// Tracking
track: "http://localhost/helena.express/apis/track/",
trackmultiple: "http://localhost/helena.express/apis/trackmultiple/",