From de78dfd8a65fb692f87fe8b0e92f95b8065d4c48 Mon Sep 17 00:00:00 2001 From: Miguel Freitas Date: Fri, 17 Jul 2015 17:17:28 -0300 Subject: [PATCH] remove inline scripts --- following.html | 8 -------- home.html | 4 ---- index.html | 9 --------- js/interface_common.js | 17 +++++++++++++++++ js/tmobile.js | 8 ++++++++ login.html | 8 -------- network.html | 8 -------- profile-edit.html | 8 -------- tmobile.html | 9 --------- 9 files changed, 25 insertions(+), 54 deletions(-) diff --git a/following.html b/following.html index e54cbda..aed4a8e 100644 --- a/following.html +++ b/following.html @@ -27,14 +27,6 @@ - - diff --git a/home.html b/home.html index 8719458..f70c372 100644 --- a/home.html +++ b/home.html @@ -29,10 +29,6 @@ - - diff --git a/index.html b/index.html index b4ec1aa..07257a2 100644 --- a/index.html +++ b/index.html @@ -11,15 +11,6 @@ - diff --git a/js/interface_common.js b/js/interface_common.js index ac1b14b..6f17f22 100644 --- a/js/interface_common.js +++ b/js/interface_common.js @@ -1449,3 +1449,20 @@ function setTextcompleteDropdownListPos(position) { return this; } + +$(document).ready(function() +{ + var path = window.location.pathname; + var page = path.split("/").pop(); + if (page.indexOf("following.html") === 0) { + initInterfaceFollowing(); + } else if (page.indexOf("login.html") === 0) { + initInterfaceLogin(); + } else if (page.indexOf("network.html") === 0) { + initInterfaceNetwork(); + } else if (page.indexOf("profile-edit.html") === 0) { + initProfileEdit(); + } + + changeStyle(); +}); diff --git a/js/tmobile.js b/js/tmobile.js index 5a6eafc..dfd6c89 100644 --- a/js/tmobile.js +++ b/js/tmobile.js @@ -570,3 +570,11 @@ function tmobileTick() { } } +$(document).bind('mobileinit', function () { + $.mobile.allowCrossDomainPages = true; + $.mobile.zoom.enabled = false; + $.mobile.buttonMarkup.hoverDelay = 0; //defaults 200 + $.mobile.defaultDialogTransition = 'none'; + $.mobile.defaultPageTransition = 'none'; +}); + diff --git a/login.html b/login.html index 519b42f..8aface6 100644 --- a/login.html +++ b/login.html @@ -21,14 +21,6 @@ - - diff --git a/network.html b/network.html index 8e01960..80b525e 100644 --- a/network.html +++ b/network.html @@ -23,14 +23,6 @@ - - diff --git a/profile-edit.html b/profile-edit.html index c0e6809..3335852 100644 --- a/profile-edit.html +++ b/profile-edit.html @@ -23,14 +23,6 @@ - - diff --git a/tmobile.html b/tmobile.html index 91d53c8..7b63760 100644 --- a/tmobile.html +++ b/tmobile.html @@ -12,15 +12,6 @@ -